/* ----------------------
   CSS RESET & NORMALIZE
-------------------------*/
html, body, div, span, applet, object, iframe, h1, h2, h3, h4, h5, h6, p, blockquote, pre, a, abbr, acronym, address, big, cite, code, del, dfn, em, img, ins, kbd, q, s, samp, small, strike, strong, sub, sup, tt, var, b, u, i, center, dl, dt, dd, ol, ul, li, fieldset, form, label, legend, table, caption, tbody, tfoot, thead, tr, th, td, article, aside, canvas, details, embed, figure, figcaption, footer, header, hgroup, menu, nav, output, ruby, section, summary, time, mark, audio, video {
  margin: 0;
  padding: 0;
  border: 0;
  box-sizing: border-box;
  font-size: 100%;
  vertical-align: baseline;
}
html {
  font-size: 16px;
  scroll-behavior: smooth;
}
body {
  line-height: 1.6;
  background: #eef2f8;
  color: #10223a;
  font-family: 'Roboto', Arial, sans-serif;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}
img {
  max-width: 100%;
  height: auto;
  vertical-align: middle;
  display: block;
}
ul, ol {
  padding-left: 1.5rem;
  margin-bottom: 1.2rem;
}
li {
  margin-bottom: 0.7em;
}
a {
  color: #204D74;
  text-decoration: none;
  transition: color 0.2s;
}
a:focus {
  outline: 2px dashed #29C187;
  outline-offset: 2px;
}
a:hover {
  color: #29C187;
  text-decoration: underline;
}
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, sans-serif;
  color: #204D74;
  font-weight: 700;
}
h1 { font-size: 2.5rem; margin-bottom: 24px; }
h2 { font-size: 2rem; margin-bottom: 20px; }
h3 { font-size: 1.3rem; margin-bottom: 16px; }
h4 { font-size: 1.12rem; }
p, address {
  font-size: 1rem;
  margin-bottom: 16px;
}
strong { font-weight: 700; }
small { font-size: 85%; }

/* Typography Scale - Mobile First, Responsive */
@media (min-width: 600px) {
  h1 { font-size: 3rem; }
  h2 { font-size: 2.3rem; }
  h3 { font-size: 1.45rem; }
  p, li, address { font-size: 1.1rem; }
}

/* ----------------------
   CONTAINER & LAYOUT
-------------------------*/
.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 16px;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: none;
  border-radius: 22px;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.text-section {
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-items: flex-start;
  justify-content: center;
}

/* Card & Card Grid patterns */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 3px 16px 0 rgba(32,77,116,0.06);
  padding: 32px 22px;
  transition: transform 0.22s, box-shadow 0.22s;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.card:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 10px 32px 0 rgba(32,77,116,0.14);
  z-index: 1;
}

.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
}

/***** Feature Grid *****/
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 20px;
  margin-bottom: 8px;
}
.feature-grid > div {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 2px 10px 0 rgba(41,193,135,0.08);
  flex: 1 1 220px;
  min-width: 200px;
  max-width: 270px;
  padding: 26px 18px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  transition: box-shadow 0.22s, transform 0.14s;
}
.feature-grid > div:hover {
  box-shadow: 0 8px 24px 0 rgba(32,77,116,0.23);
  transform: translateY(-2px) scale(1.018);
}
.feature-grid img {
  width: 44px;
  height: 44px;
}

/***** Feature Item *****/
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/***** Testimonial Cards *****/
.testimonial-card {
  display: flex;
  align-items: center;
  background: #f9fafb;
  border-radius: 16px;
  gap: 20px;
  padding: 20px;
  box-shadow: 0 2px 14px 0 rgba(32,77,116,0.08);
  margin-bottom: 20px;
  max-width: 530px;
}
.testimonial-card blockquote {
  font-family: 'Montserrat', Arial, sans-serif;
  color: #212c36;
  font-size: 1.08rem;
  font-style: italic;
  line-height: 1.55;
  margin: 0;
}
.testimonial-meta {
  color: #204D74;
  font-size: 1rem;
  font-weight: 500;
}

/***** Responsive Content Grids *****/
.content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
}

/***** Text + Image Section (for future expansion) *****/
.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}

@media (max-width: 768px) {
  .content-wrapper, .text-section, .content-grid, .feature-grid, .card-container, .text-image-section {
    flex-direction: column;
    align-items: stretch !important;
    gap: 20px;
  }
  .feature-grid > div, .testimonial-card, .card {
    max-width: 100%;
  }
  .testimonial-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 13px;
  }
  .container {
    padding-left: 8px;
    padding-right: 8px;
  }
  .section {
    padding: 26px 10px;
    margin-bottom: 46px;
  }
}

/* -------------------------
   HEADER & MAIN NAVIGATION
--------------------------*/
header {
  background: linear-gradient(95deg, #204D74 72%, #29C187 95%);
  padding: 0 0 1px 0;
  position: relative;
  box-shadow: 0 4px 20px 0 rgba(32,77,116,0.07);
  z-index: 20;
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 26px;
  padding: 14px 0 13px 0;
  max-width: 1160px;
  margin: 0 auto;
  flex-wrap: wrap;
}
.main-nav a {
  color: #fff;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.13rem;
  font-weight: 500;
  padding: 8px 0;
  transition: color 0.2s;
  border-radius: 4px;
  position: relative;
  z-index: 2;
}
.main-nav .logo img {
  height: 42px;
  width: auto;
  vertical-align: middle;
}
.main-nav .logo {
  margin-right: 19px;
  display: flex;
  align-items: center;
}
.main-nav a.btn-primary {
  margin-left: 12px;
}
.main-nav a:hover {
  color: #F3BB1B;
}

/***** Mobile Navigation Toggle *****/
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  color: #fff;
  font-size: 2rem;
  margin: 0 12px 0 0;
  padding: 8px 12px;
  cursor: pointer;
  z-index: 101;
  border-radius: 8px;
  transition: background 0.18s;
}
.mobile-menu-toggle:focus, .mobile-menu-toggle:hover {
  background: rgba(41,193,135,0.18);
}

/***** Mobile Menu Slide-In *****/
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  width: 100vw;
  background: rgba(32,77,116,.88);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  transform: translateX(-100vw);
  transition: transform 0.38s cubic-bezier(.63,.01,.73,.74);
  z-index: 1200;
}
.mobile-menu.active {
  transform: translateX(0);
}
.mobile-menu-close {
  background: none;
  border: none;
  color: #fff;
  font-size: 2.7rem;
  align-self: flex-end;
  margin: 25px 32px 9px 0;
  cursor: pointer;
  z-index: 1210;
  padding: 8px 10px;
  border-radius: 10px;
  transition: background 0.16s;
}
.mobile-menu-close:focus, .mobile-menu-close:hover {
  background: rgba(243,187,27,0.125);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin: 0 0 0 34px;
  font-family: 'Montserrat', Arial, sans-serif;
}
.mobile-nav a {
  color: #fff;
  font-size: 1.33rem;
  font-weight: 600;
  padding: 12px 0;
  border-radius: 8px;
  transition: background 0.16s, color 0.16s;
}
.mobile-nav a:focus, .mobile-nav a:hover {
  background: #204D74;
  color: #F3BB1B;
}

@media (max-width: 1024px) {
  .main-nav {
    gap: 19px;
  }
  .main-nav a {
    font-size: 1.01rem;
  }
}
@media (max-width: 900px) {
  .main-nav {
    gap: 13px;
    max-width: 100%;
    padding: 13px 10px;
  }
  .main-nav a.btn-primary {
    margin-left: 6px;
  }
}
@media (max-width: 820px) {
  .main-nav a:not(.logo):not(.btn-primary) {
    display: none;
  }
  .main-nav a.logo {
    margin-right: 7px;
  }
  .main-nav .btn-primary {
    margin-left: 0;
  }
  .mobile-menu-toggle {
    display: inline-block;
  }
}

/* Make mobile nav above content */
@media (max-width: 820px) {
  .mobile-menu { display: flex; }
}

/* ---------------------
   BUTTONS & LINKS
----------------------*/
.btn-primary {
  display: inline-block;
  padding: 12px 32px;
  background: linear-gradient(90deg, #29C187 85%, #F3BB1B 107%);
  color: #204D74 !important;
  border: none;
  border-radius: 30px;
  box-shadow: 0 2px 10px 0 rgba(41,193,135,0.10);
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.09rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-align: center;
  cursor: pointer;
  margin-top: 10px;
  transition: background 0.16s, color 0.16s, box-shadow 0.2s, transform 0.17s;
}
.btn-primary:hover, .btn-primary:focus {
  background: linear-gradient(94deg, #F3BB1B 60%, #29C187 110%);
  color: #fff !important;
  transform: translateY(-3px) scale(1.025);
  box-shadow: 0 5px 20px 0 rgba(243,187,27,0.10);
  outline: none;
}

/* ---------------------
   HERO & SECTIONS
----------------------*/
main > section:first-child {
  background: linear-gradient(102deg, #f9fafb 77%, #e0f7f0 110%);
  box-shadow: 0 2px 10px 0 rgba(32,77,116,0.07);
  border-radius: 22px;
  margin-bottom: 60px;
}
main > section:first-child .btn-primary {
  margin-top: 17px;
}

/***** Section background alternation *****/
section:nth-child(even) {
  background: #fff;
}
@media (max-width: 768px) {
  main > section:first-child,
  section:nth-child(even), .section {
    border-radius: 12px;
    margin-bottom: 36px;
    padding: 18px 6px;
  }
}

/* -----------------------
   FOOTER & FOOTER NAV
------------------------*/
footer {
  background: #204D74;
  color: #fff;
  padding: 30px 0 22px 0;
  border-top-left-radius: 24px;
  border-top-right-radius: 24px;
  box-shadow: 0 -4px 22px 0 rgba(41,193,135,0.06);
  width: 100vw;
}
footer .container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 18px;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}
.footer-nav a {
  color: #fff;
  font-size: 1rem;
  font-family: 'Montserrat', Arial, sans-serif;
  transition: color 0.16s;
  text-decoration: underline dotted rgba(243,187,27,0.32);
}
.footer-nav a:hover {
  color: #F3BB1B;
}
.footer-logo img {
  width: 55px;
  height: 55px;
  display: block;
}
.footer-contact span {
  font-size: 1rem;
  opacity: 0.86;
}
@media (max-width: 800px) {
  footer .container {
    flex-direction: column;
    align-items: center;
    gap: 14px;
  }
  .footer-logo { margin-bottom: 7px; }
  .footer-nav { justify-content: center; }
}

/* ----------------------
   COOKIE CONSENT BANNER
------------------------*/
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  background: #fff;
  box-shadow: 0 -8px 28px 0 rgba(32,77,116,0.11);
  padding: 22px 16px;
  z-index: 3000;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  border-top: 3px solid #29C187;
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 1rem;
  opacity: 0;
  pointer-events: none;
  transform: translateY(100%);
  transition: opacity 0.32s cubic-bezier(.65,.09,.69,.91), transform 0.32s cubic-bezier(.65,.09,.69,.91);
}
.cookie-banner.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
.cookie-banner-message {
  color: #204D74;
  font-size: 1rem;
  line-height: 1.5;
  flex: 1 1 auto;
}
.cookie-actions {
  display: flex;
  gap: 14px;
}
.cookie-btn {
  background: #29C187;
  color: #fff;
  border: none;
  border-radius: 24px;
  padding: 10px 22px;
  font-size: 1rem;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 2px 7px 0 rgba(41,193,135,0.10);
  transition: background 0.18s, color 0.18s, transform 0.15s;
}
.cookie-btn:hover, .cookie-btn:focus {
  background: #204D74;
  color: #F3BB1B;
  outline: none;
}
.cookie-btn.cookie-settings {
  background: #fff;
  color: #204D74;
  border: 2px solid #204D74;
  box-shadow: none;
}
.cookie-btn.cookie-settings:hover {
  background: #F3BB1B;
  color: #204D74;
  border-color: #F3BB1B;
}
.cookie-btn.reject {
  background: #eee;
  color: #204D74;
  border: 1.5px solid #204D74;
}
.cookie-btn.reject:hover {
  background: #fff8e3;
  color: #204D74;
}

@media(max-width: 570px) {
  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    padding: 15px 7px;
  }
  .cookie-banner-message {
    font-size: 0.97rem;
  }
  .cookie-actions{ gap: 7px; }
}

/* Cookie settings modal */
.cookie-modal-overlay {
  position: fixed;
  top: 0; left: 0; bottom: 0; right: 0;
  background: rgba(32,77,116,0.44);
  z-index: 4000;
  display: none;
  align-items: center;
  justify-content: center;
  transition: opacity 0.22s;
}
.cookie-modal-overlay.active {
  display: flex;
}
.cookie-modal {
  background: #fff;
  border-radius: 22px;
  box-shadow: 0 7px 28px 0 rgba(32,77,116,0.20);
  min-width: 320px;
  max-width: 95vw;
  padding: 34px 24px 22px 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  animation: cookieModalPop 0.22s cubic-bezier(.6,.2,.39,1.2);
}
@keyframes cookieModalPop {
  0% { transform: scale(0.87) translateY(42px); opacity: 0; }
  100% { transform: scale(1) translateY(0); opacity: 1; }
}
.cookie-modal h3 {
  font-size: 1.18rem;
  color: #204D74;
  margin-bottom: 14px;
}
.cookie-settings-list {
  display: flex;
  flex-direction: column;
  gap: 17px;
}
.cookie-setting {
  display: flex;
  align-items: center;
  gap: 11px;
}
.cookie-setting .cookie-toggle {
  accent-color: #29C187;
  width: 22px;
  height: 22px;
}
.cookie-setting strong {
  color: #204D74;
  font-size: 1rem;
}
.cookie-setting .cookie-desc {
  color: #666;
  font-size: 0.97rem;
  font-weight: 400;
}
.cookie-modal-actions {
  display: flex;
  flex-direction: row;
  gap: 13px;
  margin-top: 10px;
}
.cookie-modal-close-btn {
  background: none;
  border: none;
  color: #204D74;
  font-size: 2.2rem;
  position: absolute;
  top: 18px; right: 20px;
  cursor: pointer;
  padding: 3px 7px;
}
.cookie-modal-close-btn:hover, .cookie-modal-close-btn:focus {
  color: #29C187;
}

@media (max-width: 510px) {
  .cookie-modal {
    padding: 17px 8px 12px 14px;
    min-width: 220px;
  }
}

/*---------------------------
  MODERN GRADIENT SECTIONS
----------------------------*/
.gradient-bg {
  background: linear-gradient(105deg, #29C187 15%, #204D74 85%);
  color: #fff;
}
.gradient-bg-light {
  background: linear-gradient(95deg, #dff9ef 62%, #f9fafb 100%);
}
.section-accent {
  background: #F3BB1B;
  color: #204D74;
}

/*------------------------------
  MICRO-INTERACTIONS/TRANSITIONS
-------------------------------*/
*:focus {
  outline: 2px solid #29C187;
  outline-offset: 2px;
}
button {
  font-family: inherit;
  cursor: pointer;
  transition: background 0.18s, transform 0.12s;
}
button:active {
  transform: scale(0.97);
}

/*------------------------
   SPACING & GAPS (EXACT)
-------------------------*/
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
}
.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;
  align-items: center;
  gap: 20px;
  padding: 20px;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/*----------------------------
   RESPONSIVE BREAKPOINTS
-----------------------------*/
@media (max-width: 820px) {
  .feature-grid, .card-container, .content-grid, .section, .testimonial-card, .content-wrapper {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 18px;
  }
  .feature-grid > div {
    max-width: 100%;
    min-width: 0;
  }
}
@media (max-width: 520px) {
  h1 { font-size: 2.05rem; }
  h2 { font-size: 1.35rem; }
  h3 { font-size: 1.05rem; }
  .btn-primary,
  .cookie-btn {
    padding: 9px 15px;
    font-size: 1rem;
  }
}

/****** Hide elements offscreen for a11y ******/
.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0;
  margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); border: 0;
}
