/* -------------------------------------------------------
   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 {
  border: 0;
  font-size: 100%;
  font: inherit;
  vertical-align: baseline;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html {
  box-sizing: border-box;
  font-size: 16px; /* Mobile-first base size */
}
*, *:before, *:after {
  box-sizing: inherit;
}
body {
  background: #F1F5F9;
  color: #253F5C;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}
a, button {
  color: inherit;
  text-decoration: none;
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
}
ul, ol {
  list-style: none;
  margin: 0;
  padding: 0;
}
img {
  max-width: 100%;
  display: block;
  height: auto;
}
h1, h2, h3, h4, h5, h6 {
  font-family: 'Roboto Slab', serif;
  color: #253F5C;
  font-weight: 700;
  line-height: 1.2;
}
h1 { font-size: 2.5rem; margin-bottom: 18px; }
h2 { font-size: 2rem; margin-bottom: 16px; }
h3 { font-size: 1.35rem; margin-bottom: 10px; }
h4 { font-size: 1.1rem; margin-bottom: 4px; }
.section {
  margin-bottom: 60px; 
  padding: 40px 20px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 2px 10px 0 rgba(37,63,92, 0.08);
}

/* -------------------------------------------------------
   LAYOUT & STRUCTURE
------------------------------------------------------- */
.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 20px;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

/* Flex spacing patterns (MANDATORY) */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: #fff;
  border-radius: 13px;
  margin-bottom: 20px;
  position: relative;
  box-shadow: 0 2px 8px rgba(37,63,92,0.08);
  padding: 26px 22px;
  transition: box-shadow 0.22s, transform 0.16s;
}
.card:hover {
  box-shadow: 0 4px 16px rgba(55, 207, 230, 0.11);
  transform: translateY(-3px) 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: flex-start;
  gap: 20px;
  background: #F1F5F9;
  border: 1px solid #D8E2ED;
  border-radius: 13px;
  padding: 24px 26px;
  flex: 1 1 280px;
  margin-bottom: 24px;
  box-shadow: 0 2px 8px rgba(37,63,92, 0.06);
}
.testimonial-card p {
  color: #253F5C;
  font-size: 1.1rem;
  margin-bottom: 8px;
}
.testimonial-author {
  font-weight: 600;
  color: #37CFE6;
  font-size: 0.95rem;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  background: #fff;
  border-radius: 13px;
  box-shadow: 0 2px 8px rgba(55, 207, 230, 0.07);
  padding: 24px 22px;
  margin-bottom: 20px;
}

/* -------------------------------------------------------
   HEADER & NAVIGATION
------------------------------------------------------- */
header {
  background: #fff;
  box-shadow: 0 2px 8px rgba(37,63,92, 0.08);
  position: relative;
  z-index: 100;
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  min-height: 74px;
  gap: 32px;
}
header img {
  height: 45px;
  width: auto;
}
nav {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 18px;
}
nav a {
  color: #253F5C;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  font-weight: 500;
  padding: 7px 11px;
  border-radius: 6px;
  transition: background 0.23s, color 0.22s;
}
nav a:hover, nav a:focus {
  background: #F1F5F9;
  color: #37CFE6;
  outline: none;
}
nav .cta, .cta.primary {
  background: #253F5C;
  color: #fff !important;
  border-radius: 30px;
  font-weight: 700;
  padding: 12px 30px;
  margin-left: 12px;
  transition: background 0.21s, box-shadow 0.24s, color 0.18s, transform 0.13s;
  box-shadow: 0 3px 12px rgba(55,207,230,0.08);
  border: none;
}
nav .cta:hover, nav .cta:focus, .cta.primary:hover, .cta.primary:focus {
  background: #37CFE6;
  color: #253F5C !important;
  box-shadow: 0 6px 22px rgba(55,207,230,0.17);
  transform: translateY(-2px) scale(1.04);
}

/* -------------------------------------------------------
   MOBILE MENU
------------------------------------------------------- */
.mobile-menu-toggle {
  font-size: 2rem;
  color: #253F5C;
  background: #fff;
  border: none;
  border-radius: 7px;
  padding: 2px 10px 0 10px;
  display: none;
  transition: background 0.2s, color 0.22s;
  z-index: 106;
}
.mobile-menu-toggle:focus {
  outline: 2px solid #37CFE6;
}
.mobile-menu {
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  background: rgba(37, 63, 92, 0.97);
  transform: translateX(-100vw);
  transition: transform 0.33s cubic-bezier(.77,0,.175,1);
  z-index: 1200;
  display: flex; flex-direction: column; align-items: flex-start;
  justify-content: flex-start;
  padding: 0;
}
.mobile-menu.open {
  transform: translateX(0);
  box-shadow: 8px 0 30px rgba(37,63,92,0.19);
}
.mobile-menu-close {
  align-self: flex-end;
  margin: 18px 22px 0 0;
  background: transparent;
  color: #fff;
  font-size: 2rem;
  border: none;
  cursor: pointer;
  z-index: 1202;
  transition: color .18s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  color: #37CFE6;
  outline: none;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;
  align-items: flex-start;
  margin: 34px 0 0 32px;
}
.mobile-nav a {
  font-size: 1.15rem;
  color: #fff;
  padding: 10px 0;
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: color .19s, background .19s;
  border-radius: 7px;
  min-width: 200px;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  color: #37CFE6;
  background: rgba(255,255,255,0.10);
  outline: none;
}

/* Show/hide desktop nav + hamburger */
@media (max-width: 1024px) {
  nav { display: none; }
  .mobile-menu-toggle { display: block; }
}
@media (min-width: 1025px) {
  .mobile-menu { display: none !important; }
}

/* -------------------------------------------------------
   HERO SECTIONS
------------------------------------------------------- */
.hero {
  padding: 60px 0 40px 0;
  background: linear-gradient(166deg, #F1F5F9 80%, #37CFE6 110%);
  margin-bottom: 50px;
}
.hero .content-wrapper {
  gap: 21px;
  align-items: flex-start;
}
.hero h1 {
  color: #253F5C;
  font-size: 2.2rem;
  font-family: 'Roboto Slab', serif;
  font-weight: 800;
}
.hero h2 {
  color: #596980;
  font-size: 1.15rem;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 400;
  margin-bottom: 14px;
}
.hero .cta {
  margin-top: 10px;
  font-size: 1.15rem;
}

/* -------------------------------------------------------
   FEATURE GRID & SERVICE LIST
------------------------------------------------------- */
.feature-grid,
.services-list,
.resources-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 22px;
  margin-bottom: 10px;
  justify-content: space-between;
}
.feature, .service, .resource {
  background: #fff;
  border-radius: 13px;
  box-shadow: 0 2px 8px rgba(55,207,230, 0.08);
  padding: 24px 22px;
  flex: 1 1 225px;
  min-width: 220px;
  max-width: 340px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-start;
  transition: box-shadow 0.25s, transform 0.15s;
}
.feature img, .service img, .resource img {
  height: 38px;
  width: 38px;
  margin-bottom: 8px;
}
.feature:hover, .service:hover, .resource:hover {
  box-shadow: 0 6px 18px rgba(37,63,92,0.11);
  transform: translateY(-2px) scale(1.018);
}
.services-list, .resources-list {
  gap: 28px;
}
.service-highlights, .quick-facts {
  margin-top: 16px;
}
.service-highlights ul, .quick-facts ul {
  padding-left: 20px;
  color: #53617F;
}

/* -------------------------------------------------------
   TESTIMONIALS
------------------------------------------------------- */
.testimonials {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  margin-bottom: 16px;
}
.trusted-by {
  margin-top: 22px;
  color: #253F5C;
  font-size: 1.06rem;
  font-weight: 500;
  letter-spacing: 0.02em;
}

/* -------------------------------------------------------
   BUTTONS & LINKS
------------------------------------------------------- */
.cta, .cta.primary, .btn {
  display: inline-block;
  border-radius: 30px;
  background: #253F5C;
  color: #fff !important;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: bold;
  font-size: 1rem;
  padding: 12px 26px;
  box-shadow: 0 3px 9px rgba(55,207,230,0.10);
  transition: background 0.18s, color 0.16s, box-shadow 0.18s, transform 0.13s;
  border: none;
  outline: none;
}
.cta.primary, .btn.primary {
  background: #37CFE6;
  color: #253F5C !important;
}
.cta:hover, .cta:focus, .btn:hover, .btn:focus {
  background: #37CFE6;
  color: #253F5C !important;
  transform: translateY(-2px) scale(1.03);
}
.cta.primary:hover, .cta.primary:focus, .btn.primary:hover, .btn.primary:focus {
  background: #253F5C;
  color: #fff !important;
}
a {
  text-decoration: none;
  color: #253F5C;
  transition: color 0.18s;
}
a:hover, a:focus {
  color: #37CFE6;
  outline: none;
}

/* -------------------------------------------------------
   FOOTER
------------------------------------------------------- */
footer {
  background: #253F5C;
  color: #fff;
  padding: 50px 0 30px 0;
  margin-top: 80px;
}
footer .container {
  flex-direction: column;
  gap: 24px;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 14px;
}
.footer-nav a {
  color: #fff;
  font-size: 1rem;
  font-weight: 500;
  opacity: 0.89;
  padding: 3px 10px;
  border-radius: 7px;
  transition: background 0.17s, color 0.16s;
}
.footer-nav a:hover, .footer-nav a:focus {
  color: #37CFE6;
  background: rgba(55, 207, 230, 0.08);
  outline: none;
}
.footer-contact p, .footer-contact a, .footer-hours {
  font-size: 0.99rem;
  color: #fff;
  opacity: 0.84;
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 7px;
}
.footer-contact img {
  width: 18px;
  height: 18px;
  margin-right: 5px;
  display: inline-block;
}
.footer-hours {
  margin-bottom: 7px;
  font-style: italic;
}
footer span {
  color: #B8D1EA;
  font-size: 0.92rem;
  opacity: 0.7;
}

/* -------------------------------------------------------
   MISC LIST & SECTIONS
------------------------------------------------------- */
.news-list, .case-study-list, .featured-articles ul {
  flex-direction: column;
  gap: 21px;
  margin-bottom: 18px;
}
.news-list li, .case-study-list li, .featured-articles ul li {
  color: #253F5C;
  background: #F7FAFD;
  border-left: 4px solid #37CFE6;
  padding: 13px 14px;
  margin-bottom: 12px;
  border-radius: 8px;
  font-size: 1.04rem;
  line-height: 1.6;
  transition: background 0.18s, box-shadow 0.19s;
}
.news-list li:hover, .case-study-list li:hover, .featured-articles ul li:hover {
  background: #E7F7FC;
  box-shadow: 0 0 12px rgba(37,63,92,0.07);
}
.featured-articles h3 {
  margin-bottom: 9px;
  color: #253F5C;
  font-weight: 600;
}
.featured-articles ul a {
  color: #37CFE6;
  font-weight: 500;
  padding-left: 7px;
}
.featured-articles ul a:hover {
  text-decoration: underline;
}
.text-section {
  display: flex;
  flex-direction: column;
  gap: 18px;
  font-size: 1.08rem;
  color: #53617F;
}
.quick-facts ul li,
.service-highlights ul li {
  padding-bottom: 9px;
  color: #253F5C;
  font-size: 1.01rem;
}

/* -------------------------------------------------------
   CONTACT DETAILS
------------------------------------------------------- */
.contact-details {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 1.04rem;
  color: #253F5C;
  margin-top: 10px;
}
.contact-details img {
  width: 20px;
  height: 20px;
  margin-right: 10px;
}
.contact-details a {
  color: #37CFE6;
}

/* -------------------------------------------------------
   RESPONSIVE DESIGN (MOBILE-FIRST)
------------------------------------------------------- */
@media (max-width: 1024px) {
  .container {
    max-width: 97vw;
    padding: 0 10px;
  }
  .feature-grid, .services-list, .resources-list, .testimonials {
    flex-direction: column;
    gap: 18px;
  }
}
@media (max-width: 768px) {
  html {
    font-size: 15px;
  }
  header .container {
    min-height: 56px;
    padding: 0 9px;
    gap: 18px;
  }
  .hero {
    padding: 35px 0 23px 0;
    margin-bottom: 30px;
  }
  .hero h1 { font-size: 1.59rem; }
  .hero h2 { font-size: 1rem; }
  .section {
    margin-bottom: 38px;
    padding: 24px 10px;
  }
  .card, .feature, .service, .resource {
    min-width: 0;
    padding: 18px 12px;
  }
  .testimonials, .feature-grid, .resources-list, .services-list {
    gap: 14px;
  }
  .testimonial-card {
    padding: 16px 11px;
  }
  .text-image-section {
    flex-direction: column !important;
    gap: 13px;
  }
  .footer-nav {
    flex-direction: column;
    gap: 13px;
  }
}
@media (max-width: 480px) {
  h1 { font-size: 1.25rem; }
  h2 { font-size: 1.08rem; }
  .footer-contact p, .footer-contact a, .footer-hours, .footer-nav a {
    font-size: 0.89rem;
  }
}

/* -------------------------------------------------------
   TRANSITIONS & MICRO-INTERACTIONS
------------------------------------------------------- */
.section, .card, .feature, .service, .resource, .testimonial-card {
  transition: box-shadow 0.22s, transform 0.12s, background 0.16s;
}
input, textarea, select {
  font-family: 'Montserrat', Arial, sans-serif;
  border-radius: 8px;
  border: 1px solid #D8E2ED;
  background: #fff;
  padding: 11px 16px;
  font-size: 1rem;
  transition: border-color .18s, box-shadow .17s;
}
input:focus, textarea:focus, select:focus {
  border: 1.5px solid #37CFE6;
  outline: none;
  box-shadow: 0 0 0 2px #B8D1EA44;
}

/* -------------------------------------------------------
   COOKIE CONSENT BANNER
------------------------------------------------------- */
.cookie-banner {
  position: fixed;
  left: 0;
  bottom: 0;
  width: 100vw;
  background: #253F5C;
  color: #fff;
  z-index: 1310;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 19px 30px;
  box-shadow: 0 -3px 18px rgba(37,63,92,0.12);
  animation: cookiefadein 0.6s;
}
@keyframes cookiefadein {
  0% { transform: translateY(100%); opacity: 0; }
  100% { transform: translateY(0); opacity: 1; }
}
.cookie-banner p {
  font-size: 1rem;
  max-width: 700px;
  color: #fff;
}
.cookie-btns {
  display: flex;
  flex-direction: row;
  gap: 14px;
}
.cookie-btn, .cookie-btn-primary, .cookie-btn-secondary {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  border-radius: 22px;
  border: none;
  padding: 10px 22px;
  font-weight: 600;
  transition: background 0.18s, color 0.14s, transform 0.11s;
  cursor: pointer;
}
.cookie-btn-primary {
  background: #37CFE6;
  color: #253F5C;
}
.cookie-btn-primary:hover, .cookie-btn-primary:focus {
  background: #253F5C;
  color: #fff;
}
.cookie-btn-secondary {
  background: #f1f5f9;
  color: #253F5C;
}
.cookie-btn-secondary:hover, .cookie-btn-secondary:focus {
  background: #E4EFF5;
}
.cookie-btn {
  background: #fff;
  color: #253F5C;
  border: 1px solid #D8E2ED;
}
.cookie-btn:hover, .cookie-btn:focus {
  background: #37CFE6;
  color: #fff;
}
@media (max-width: 600px) {
  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 13px;
    padding: 13px 10px;
  }
  .cookie-btns {
    flex-direction: column;
    width: 100%;
    gap: 7px;
    align-items: flex-start;
  }
}

/* Cookie Modal */
.cookie-modal-overlay {
  position: fixed;
  z-index: 1320;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(37,63,92,0.69);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: cookiemodalfadein 0.4s;
}
@keyframes cookiemodalfadein {
  0% { opacity: 0; }
  100% { opacity: 1; }
}
.cookie-modal {
  background: #fff;
  color: #253F5C;
  border-radius: 17px;
  box-shadow: 0 8px 26px rgba(55,207,230, 0.13);
  max-width: 430px;
  width: 95%;
  padding: 36px 28px 28px 28px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  animation: modalslidein 0.38s;
}
@keyframes modalslidein {
  0% { transform: translateY(-40px); opacity: 0; }
  100% { transform: translateY(0); opacity: 1; }
}
.cookie-modal h3 {
  margin-bottom: 18px;
  font-size: 1.39rem;
  color: #253F5C;
  font-weight: 700;
}
.cookie-modal ul {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.cookie-modal li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 1.04rem;
}
.cookie-toggle {
  margin-left: auto;
  margin-right: 0;
}
.cookie-switch {
  width: 40px;
  height: 22px;
  background: #F1F5F9;
  border-radius: 14px;
  position: relative;
  margin-left: 10px;
  cursor: pointer;
  transition: background 0.18s;
}
.cookie-switch.active {
  background: #37CFE6;
}
.cookie-switch .slider {
  position: absolute;
  height: 18px;
  width: 18px;
  border-radius: 50%;
  background: #fff;
  left: 2px;
  top: 2px;
  box-shadow: 0 1px 4px #99ceef33;
  transition: left 0.19s;
}
.cookie-switch.active .slider {
  left: 20px;
}
.cookie-modal-actions {
  display: flex;
  flex-direction: row;
  gap: 14px;
  margin-top: 14px;
  justify-content: flex-end;
}
.cookie-modal-close {
  background: #253F5C;
  color: #fff;
  border-radius: 50%;
  border: none;
  position: absolute;
  right: 19px;
  top: 16px;
  width: 32px;
  height: 32px;
  font-size: 1.38rem;
  cursor: pointer;
  transition: background 0.16s, color 0.13s;
  z-index: 10;
}
.cookie-modal-close:hover, .cookie-modal-close:focus {
  background: #E6F7FF;
  color: #37CFE6;
  outline: none;
}

/* -------------------------------------------------------
   FORM ELEMENTS (for future-proof)
------------------------------------------------------- */
form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
  max-width: 542px;
}
label {
  font-weight: 600;
  font-size: 1rem;
}

/* -------------------------------------------------------
   Z-INDEX FIX (navigation & modals)
------------------------------------------------------- */
header, .mobile-menu, .cookie-banner, .cookie-modal-overlay {
  z-index: 1100;
}

/* -------------------------------------------------------
   UTILITIES
------------------------------------------------------- */
.mb-0 { margin-bottom: 0 !important; }
.mb-1 { margin-bottom: 7px !important; }
.mb-2 { margin-bottom: 16px !important; }
.mt-1 { margin-top: 8px !important; }
.mt-2 { margin-top: 18px !important; }
.gap-1 { gap: 7px !important; }
.gap-2 { gap: 20px !important; }

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

/* -------------------------------------------------------
   SCROLLBAR (subtle for browsers that support)
------------------------------------------------------- */
::-webkit-scrollbar {
  width: 8px;
  background: #F7FAFD;
}
::-webkit-scrollbar-thumb {
  background: #B8D1EA;
  border-radius: 8px;
}

/* -------------------------------------------------------
   BRAND FONT-FACES (fallback for Google Fonts)
------------------------------------------------------- */
@font-face {
  font-family: 'Roboto Slab';
  font-style: normal;
  font-weight: 400;
  src: local('Roboto Slab'), local('RobotoSlab-Regular');
}
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 400;
  src: local('Montserrat'), local('Montserrat-Regular');
}
