/* === RESET & BASE STYLES === */
html {
  box-sizing: border-box;
  font-size: 100%;
}
*, *::before, *::after {
  box-sizing: inherit;
  margin: 0;
  padding: 0;
}
body {
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  color: #173351;
  background: #FAFAFA;
  font-size: 16px;
  line-height: 1.6;
  min-height: 100vh;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
ul, ol {
  list-style-position: inside;
}
a {
  color: #173351;
  text-decoration: none;
  transition: color 0.2s;
}
a:focus {
  outline: 2px solid #38AFA0;
  outline-offset: 0.2em;
}

/* === TYPOGRAPHY === */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 600;
  color: #173351;
  line-height: 1.2;
}
h1 {
  font-size: 2.5rem;
  margin-bottom: 20px;
}
h2 {
  font-size: 2rem;
  margin-bottom: 18px;
}
h3 {
  font-size: 1.25rem;
  margin-bottom: 10px;
  font-weight: 500;
}
h4 {
  font-size: 1.125rem;
}
p, ul, ol {
  font-size: 1rem;
  color: #173351;
  margin-bottom: 16px;
}
strong {
  font-weight: 600;
}

/* === LAYOUT CONTAINERS === */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
}
.content-wrapper {
  margin: 0 auto;
  max-width: 800px;
}
.section, section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: none;
}

/* === HEADER & NAVIGATION === */
header {
  background: #FAFAFA;
  border-bottom: 1px solid #E8EAEF;
  padding-top: 0;
  padding-bottom: 0;
  width: 100%;
  z-index: 12;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 70px;
  position: relative;
}
.logo {
  display: flex;
  align-items: center;
  padding: 12px 0;
  margin-right: 20px;
}
nav.main-nav {
  display: flex;
  align-items: center;
  gap: 16px;
}
.main-nav a {
  padding: 4px 14px;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1rem;
  font-weight: 500;
  border-radius: 6px;
  transition: background 0.18s, color 0.18s;
}
.main-nav a:hover, .main-nav a:focus {
  background: #38AFA0;
  color: #fff;
}
.btn-primary {
  background: #173351;
  color: #fff;
  padding: 12px 30px;
  border-radius: 30px;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1rem;
  font-weight: 600;
  border: none;
  box-shadow: 0px 2px 8px rgba(23,51,81,0.04);
  cursor: pointer;
  transition: background 0.2s, box-shadow 0.2s, transform 0.1s;
  margin-left: 16px;
  display: inline-block;
  text-align: center;
}
.btn-primary:hover, .btn-primary:focus {
  background: #38AFA0;
  color: #fff;
  box-shadow: 0 6px 22px rgba(56,175,160,0.15);
  transform: translateY(-2px) scale(1.03);
}
.btn-secondary {
  background: #38AFA0;
  color: #fff;
  padding: 12px 30px;
  border-radius: 30px;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1rem;
  font-weight: 600;
  border: none;
  box-shadow: 0px 2px 12px rgba(56,175,160,0.05);
  cursor: pointer;
  transition: background 0.2s, box-shadow 0.2s, transform 0.1s;
  display: inline-block;
  text-align: center;
}
.btn-secondary:hover, .btn-secondary:focus {
  background: #173351;
  color: #fff;
  box-shadow: 0 6px 22px rgba(23,51,81,0.13);
  transform: translateY(-2px) scale(1.03);
}

/* === MOBILE BURGER MENU === */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 2rem;
  color: #173351;
  cursor: pointer;
  margin-left: 10px;
  padding: 8px;
  border-radius: 8px;
  transition: background 0.16s;
  z-index: 50;
}
.mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
  background: #E8EAEF;
}
.mobile-menu {
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background: #FAFAFA;
  box-shadow: 0 6px 32px rgba(23,51,81,0.11);
  z-index: 100;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  padding-top: 40px;
  transform: translateX(-100%);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.38s cubic-bezier(0.6, 0, 0.4, 1), opacity 0.22s;
}
.mobile-menu.open {
  transform: translateX(0);
  opacity: 1;
  pointer-events: auto;
}
.mobile-menu-close {
  position: absolute;
  top: 18px;
  right: 24px;
  background: none;
  border: none;
  font-size: 2rem;
  color: #173351;
  z-index: 110;
  cursor: pointer;
  padding: 8px;
  border-radius: 8px;
  transition: background 0.16s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: #E8EAEF;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 18px;
  width: 100%;
  padding: 24px 32px 24px 32px;
}
.mobile-nav a {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1.25rem;
  color: #173351;
  padding: 12px;
  border-radius: 8px;
  transition: background 0.14s, color 0.14s;
  font-weight: 500;
  min-width: 170px;
  display: inline-block;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: #38AFA0;
  color: #fff;
}

@media (max-width: 1024px) {
  nav.main-nav {
    gap: 8px;
  }
}
@media (max-width: 900px) {
  nav.main-nav {
    gap: 4px;
  }
}
@media (max-width: 768px) {
  nav.main-nav {
    display: none;
  }
  .btn-primary {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
}

/* === HERO === */
.hero {
  background: none;
  padding: 60px 0 40px 0;
  margin-bottom: 0;
}
.hero .container, .hero .content-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
}
.hero h1 {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 10px;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.hero p {
  text-align: center;
  max-width: 600px;
  margin-bottom: 18px;
  color: #38516A;
  font-size: 1.125rem;
}
.hero .btn-primary {
  margin-top: 10px;
}

/* === FLEXBOX GRIDS (MANDATORY PATTERNS) === */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 3px 16px rgba(56,175,160,0.06);
  padding: 30px 24px;
  transition: box-shadow 0.16s, transform 0.12s;
}
.card:hover {
  box-shadow: 0 5px 32px rgba(23,51,81,0.13);
  transform: translateY(-2px) scale(1.015);
}
.content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
}
.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 2px 12px rgba(56,175,160,0.09);
  margin-bottom: 24px;
  min-width: 240px;
  max-width: 340px;
  transition: box-shadow 0.15s, transform 0.12s;
}
.testimonial-card p {
  font-size: 1.05rem;
  color: #173351;
  margin-bottom: 8px;
  text-align: center;
}
.testimonial-card span {
  font-size: 0.97rem;
  color: #38516A;
}
.testimonial-card:hover, .testimonial-card:focus-within {
  box-shadow: 0 5px 30px rgba(23,51,81,0.10);
  transform: translateY(-2px) scale(1.012);
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  padding: 20px 18px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(56,175,160,0.07);
  min-width: 220px;
  margin-bottom: 20px;
  transition: box-shadow 0.14s, transform 0.13s;
}
.feature-item img {
  width: 45px;
  height: 45px;
}
.feature-item h3 {
  font-size: 1.13rem;
  margin-bottom: 8px;
}
.feature-item p {
  color: #38516a;
  font-size: 0.97rem;
}
.feature-item:hover, .feature-item:focus-within {
  box-shadow: 0 5px 24px rgba(56,175,160,0.14);
  transform: translateY(-2px) scale(1.025);
}

.feature-grid, .benefits-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 12px;
  margin-bottom: 6px;
}
.benefits-grid > div {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 1.5px 7px rgba(56,175,160,0.07);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  min-width: 170px;
  max-width: 240px;
  padding: 14px 12px 16px;
  font-size: 1rem;
  margin-bottom: 18px;
  transition: box-shadow 0.14s, transform 0.13s;
}
.benefits-grid > div:hover, .benefits-grid > div:focus-within {
  box-shadow: 0 7px 22px rgba(56,175,160,0.13);
  transform: translateY(-2px) scale(1.025);
}

.benefits-grid img {
  width: 38px;
  height: 38px;
}

/* Testimonials Row */
.testimonial-row {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  align-items: stretch;
  justify-content: center;
  margin-top: 22px;
  margin-bottom: 6px;
}

/* === CTA SECTION === */
.cta {
  background: #38AFA0;
  color: #fff;
  text-align: center;
  border-radius: 14px;
  margin-bottom: 50px;
  box-shadow: 0 3px 20px rgba(56,175,160,0.09);
  padding-top: 48px;
  padding-bottom: 44px;
}
.cta h2, .cta p {
  color: #fff;
}
.cta .btn-primary {
  background: #fff;
  color: #173351;
  box-shadow: 0 2px 12px rgba(23,51,81,0.07);
  margin-top: 18px;
  transition: background 0.18s, color 0.18s, transform 0.14s;
}
.cta .btn-primary:hover, .cta .btn-primary:focus {
  background: #173351;
  color: #fff;
}

/* === LEGAL/ABOUT SECTIONS === */
.legal, .about, .about-preview, .contact {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 2px 12px rgba(23,51,81,0.05);
  margin-bottom: 60px;
  padding: 40px 20px;
}
.map-placeholder {
  background: #E8EAEF;
  padding: 16px 18px;
  border-radius: 10px;
  color: #173351;
  font-size: 0.98rem;
  margin-top: 16px;
}

/* === FORMS & INPUTS (if needed in the future) === */
input, textarea, select {
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  font-size: 1rem;
  padding: 10px 12px;
  border: 1px solid #E8EAEF;
  border-radius: 8px;
  outline: none;
  background: #FAFAFA;
  box-shadow: 0 1px 4px rgba(56,175,160,0.04);
  margin-bottom: 18px;
  transition: border 0.15s, box-shadow 0.15s;
}
input:focus, textarea:focus, select:focus {
  border: 1.5px solid #38AFA0;
  box-shadow: 0 3px 12px rgba(56,175,160,0.08);
}

/* === FOOTER === */
footer {
  background: #FAFAFA;
  border-top: 1px solid #E8EAEF;
  margin-top: 72px;
  padding: 0 0 38px 0;
  /* more white space */
}
footer .container {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 32px;
  justify-content: space-between;
  padding-top: 34px;
}
.logo-footer {
  flex: 0 0 auto;
  margin-right: 26px;
  margin-bottom: 18px;
}
.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-top: 3px;
}
.footer-nav a {
  color: #173351;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 0.95rem;
  border-radius: 6px;
  padding: 5px 8px;
  transition: background 0.16s, color 0.16s;
}
.footer-nav a:hover, .footer-nav a:focus {
  background: #38AFA0;
  color: #fff;
}
.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 0.97rem;
  color: #38516A;
}
.footer-contact img {
  width: 18px;
  height: 18px;
  margin-right: 5px;
  vertical-align: middle;
}

/* === SPACING & WHITE SPACE === */
section, .section {
  margin-bottom: 60px !important;
  padding-top: 40px;
  padding-bottom: 40px;
}
.card-container, .feature-grid, .benefits-grid, .testimonial-row {
  margin-top: 20px;
  gap: 24px !important;
}
.card, .feature-item, .testimonial-card, .benefits-grid > div {
  margin-bottom: 20px !important;
}
/* End of critical spacing patterns */

/* === RESPONSIVE DESIGN === */
@media (max-width: 1024px) {
  .feature-grid, .benefits-grid, .testimonial-row {
    gap: 14px;
  }
  .feature-item, .testimonial-card, .benefits-grid > div {
    min-width: 180px;
    max-width: 90%;
  }
  .content-wrapper {
    max-width: 98vw;
  }
}
@media (max-width: 900px) {
  .container {
    max-width: 95vw;
    padding-left: 7vw;
    padding-right: 7vw;
  }
  .content-wrapper {
    max-width: 100vw;
  }
}
@media (max-width: 768px) {
  .container {
    padding-left: 12px;
    padding-right: 12px;
  }
  .section, section {
    padding-left: 5px;
    padding-right: 5px;
  }
  .card-container, .feature-grid, .benefits-grid, .testimonial-row {
    flex-direction: column;
    gap: 20px !important;
    align-items: stretch;
  }
  .feature-item, .testimonial-card, .benefits-grid > div {
    min-width: 0;
    max-width: 100%;
  }
  .text-image-section {
    flex-direction: column !important;
    gap: 18px;
    text-align: center;
  }
  .hero h1 {
    font-size: 2rem;
  }
}
@media (max-width: 540px) {
  h1 { font-size: 1.5rem; }
  h2 { font-size: 1.13rem; }
  .btn-primary, .btn-secondary {
    padding: 9px 16px;
    font-size: 0.98rem;
  }
}
@media (max-width: 600px) {
  footer .container {
    flex-direction: column;
    gap: 16px;
    align-items: flex-start;
    padding-top: 16px;
  }
  .footer-contact, .footer-nav {
    padding-top: 0;
    gap: 7px;
  }
  .logo-footer {
    margin-bottom: 6px;
  }
}

/* === ANIMATIONS === */
.btn-primary, .btn-secondary, .main-nav a, .footer-nav a, .feature-item, .testimonial-card, .benefits-grid > div {
  transition: background 0.22s, color 0.22s, box-shadow 0.18s, transform 0.15s;
}

/* === COOKIE CONSENT BANNER === */
.cookie-consent-banner {
  position: fixed;
  left: 0;
  bottom: 0;
  width: 100%;
  background: #fff;
  box-shadow: 0 -2px 24px rgba(23,51,81,0.10);
  border-top: 1.5px solid #E8EAEF;
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 2000;
  padding: 18px 7vw 18px 7vw;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.23s, transform 0.25s;
}
.cookie-consent-banner.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
.cookie-consent-banner p {
  color: #173351;
  margin-bottom: 15px;
  text-align: center;
  font-size: 1rem;
}
.cookie-buttons {
  display: flex;
  gap: 14px;
  margin-top: 6px;
}
.cookie-btn {
  padding: 10px 28px;
  border-radius: 28px;
  border: none;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  margin: 0;
  background: #E8EAEF;
  color: #173351;
  transition: background 0.18s, color 0.13s, box-shadow 0.17s;
}
.cookie-btn.accept {
  background: #38AFA0;
  color: #fff;
}
.cookie-btn.reject {
  background: #173351;
  color: #fff;
}
.cookie-btn.settings {
  background: #FAFAFA;
  color: #173351;
  border: 1.2px solid #173351;
}
.cookie-btn:focus {
  outline: 2px solid #38AFA0;
}
.cookie-btn:hover {
  box-shadow: 0 3px 14px rgba(23,51,81,0.08);
  opacity: 0.93;
}

@media (max-width: 600px) {
  .cookie-consent-banner {
    padding: 14px 3vw 14px 3vw;
  }
  .cookie-buttons {
    flex-direction: column;
    gap: 8px;
  }
  .cookie-btn {
    width: 100%;
  }
}

/* === COOKIE MODAL === */
.cookie-modal-overlay {
  position: fixed;
  top:0; left:0;
  width:100vw; height: 100vh;
  background: rgba(23,51,81,0.23);
  z-index: 2100;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
}
.cookie-modal-overlay.visible {
  opacity: 1;
  pointer-events: auto;
}
.cookie-modal {
  background: #fff;
  border-radius: 14px;
  max-width: 400px;
  width: 98vw;
  padding: 32px 24px 22px 24px;
  box-shadow: 0 7px 32px rgba(23,51,81,0.13);
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-items: flex-start;
  position: relative;
  z-index: 2110;
  animation: modalFadeIn 0.32s cubic-bezier(0.42,0,0.6,1);
}
@keyframes modalFadeIn {
  from { opacity: 0; transform: scale(0.97) translateY(32px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}
.cookie-modal h3 {
  font-size: 1.3rem;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  margin-bottom: 12px;
}
.cookie-modal-category {
  display: flex;
  align-items: center;
  margin-bottom: 12px;
  gap: 10px;
}
.cookie-modal input[type="checkbox"] {
  accent-color: #38AFA0;
  width: 20px;
  height: 20px;
}
.cookie-modal .category-label {
  font-size: 1rem;
  color: #173351;
  margin-left: 6px;
}
.cookie-modal .essential {
  opacity: 0.65;
}
.cookie-modal .category-toggle[disabled] {
  cursor: not-allowed;
}
.cookie-modal .modal-actions {
  width: 100%;
  display: flex;
  gap: 12px;
  margin-top: 10px;
  justify-content: flex-end;
}
.cookie-modal .modal-close {
  position: absolute;
  top: 14px;
  right: 18px;
  background: none;
  border: none;
  font-size: 1.6rem;
  color: #173351;
  cursor: pointer;
  padding: 2px 7px;
  border-radius: 6px;
  transition: background 0.13s;
  z-index: 99;
}
.cookie-modal .modal-close:hover, .cookie-modal .modal-close:focus {
  background: #E8EAEF;
}

/* === ACCESSIBILITY - SELECTION, FOCUS, ETC. === */
::selection {
  background: #38AFA0;
  color: #fff;
}

/* === UTILITIES === */
.text-center { text-align: center; }
.mb-20 { margin-bottom: 20px !important; }
.mt-24 { margin-top: 24px !important; }

/* === MISC: Hide overlays when not needed === */
[hidden] { display: none !important; }

/* === PRINT STYLES === */
@media print {
  header, footer, .cookie-consent-banner, .mobile-menu { display: none !important; }
  .container, .content-wrapper { max-width: 100% !important; }
  body { background: #fff !important; color: #000 !important; }
}

/* === BRAND FONTS === */
@import url('https://fonts.googleapis.com/css?family=Montserrat:400,600,700&display=swap');
@import url('https://fonts.googleapis.com/css?family=Open+Sans:400,600,700&display=swap');
