/* -----------------------------
   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,
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;
  font-size: 100%;
  font: inherit;
  vertical-align: baseline;
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  background: #f7fafc;
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  color: #214e6b;
  font-size: 16px;
  line-height: 1.6;
  min-height: 100vh;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
a {
  color: #214e6b;
  text-decoration: none;
  transition: color 0.2s;
}
a:focus {
  outline: 2px dashed #214e6b;
  outline-offset: 2px;
}
ul, ol {
  margin-left: 24px;
  margin-bottom: 16px;
}
strong, b {
  font-weight: 700;
}

/* -----------------------------
   VARIABLES & GRADIENTS
------------------------------*/
:root {
  --sb-primary: #214e6b;
  --sb-secondary: #84c8fc;
  --sb-accent: #ffd166;
  --sb-bg-gradient: linear-gradient(135deg, #f1f8ff 0%, #eaf4fe 50%, #e1f3f9 100%);
  --sb-card-gradient: linear-gradient(120deg, #ffffff 60%, #eaf4fe 100%);
  --sb-button-gradient: linear-gradient(90deg, #84c8fc 0%, #ffd166 100%);
  --sb-shadow: 0 4px 24px 0 rgba(33, 78, 107, 0.09);
  --sb-radius: 16px;
}

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

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}

/* Gradient backgrounds for hero and important sections */
section:first-of-type, .hero-bg {
  background: var(--sb-bg-gradient);
}

/* Card and Flexible Containers */
.card-container, .feature-grid, .featured-post-grid, .service-cards, .service-grid, .service-list, .resource-grid, .testimonials, .faq-list, .team-bios, .content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 20px;
  justify-content: space-between;
}
.card, .service-list > div, .service-cards > div, .service-grid > div, .resource-grid > div, .featured-post-grid > div, .faq-list > .text-section, .team-bios > .text-section {
  margin-bottom: 20px;
  background: var(--sb-card-gradient);
  border-radius: var(--sb-radius);
  box-shadow: var(--sb-shadow);
  padding: 24px 20px;
  flex: 1 1 260px;
  min-width: 260px;
  max-width: 100%;
  transition: box-shadow 0.2s, transform 0.2s;
}
.card:hover, .service-cards > div:hover, .service-list > div:hover, .service-grid > div:hover, .resource-grid > div:hover, .featured-post-grid > div:hover {
  box-shadow: 0 12px 32px 0 rgba(33, 78, 107, 0.18);
  transform: translateY(-4px) scale(1.025);
}

.text-section {
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.team-bios {
  gap: 24px;
  margin-bottom: 20px;
}

.team-values ul {
  padding-left: 20px;
}

.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;
}

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

/* -----------------------------
   TYPOGRAPHY
------------------------------*/
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', 'Open Sans', Arial, Helvetica, sans-serif;
  color: var(--sb-primary);
  font-weight: 800;
  letter-spacing: -1px;
  margin-bottom: 12px;
  line-height: 1.15;
}
h1 {
  font-size: 2.5rem;
}
h2 {
  font-size: 2rem;
}
h3 {
  font-size: 1.25rem;
}
h4 {
  font-size: 1.125rem;
}
p, li, address {
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  font-size: 1rem;
  color: #20506e;
}

@media (max-width: 1024px) {
  h1 {
    font-size: 2.1rem;
  }
  h2 {
    font-size: 1.5rem;
  }
  .card, .service-list > div, .service-cards > div, .service-grid > div, .resource-grid > div {
    min-width: 200px;
  }
}
@media (max-width: 768px) {
  h1 {
    font-size: 1.6rem;
  }
  h2 {
    font-size: 1.25rem;
    margin-bottom: 8px;
  }
  .container {
    padding: 0 10px;
  }
  .content-wrapper {
    gap: 16px;
  }
  .card, .service-list > div, .service-cards > div, .service-grid > div, .resource-grid > div {
    min-width: 100%;
    padding: 20px 12px;
  }
}

/* -----------------------------
   MAIN NAV BAR
------------------------------*/
header {
  background: #fff;
  box-shadow: 0 4px 24px 0 rgba(33, 78, 107, 0.06);
  position: sticky;
  top: 0;
  z-index: 101;
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 32px;
  justify-content: center;
  padding: 16px 0;
  font-family: 'Montserrat', 'Open Sans', Arial, Helvetica, sans-serif;
  font-weight: 600;
  background: transparent;
  flex-wrap: wrap;
}
.main-nav a {
  padding: 6px 14px;
  border-radius: 8px;
  transition: background 0.2s, color 0.2s, box-shadow 0.18s;
  color: var(--sb-primary);
}
.main-nav a:hover,
.main-nav a:focus {
  background: var(--sb-secondary);
  color: #14405d;
}
.main-nav img {
  height: 38px;
  margin-right: 8px;
}

.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: 'Montserrat', 'Open Sans', Arial, Helvetica, sans-serif;
  font-weight: 700;
  border-radius: 14px;
  border: none;
  padding: 11px 28px;
  font-size: 1.075rem;
  box-shadow: 0 2px 16px 0 rgba(33, 78, 107, 0.06);
  cursor: pointer;
  transition: background 0.2s, box-shadow 0.2s, color 0.15s, transform 0.1s;
  margin: 10px 0 10px 12px;
}
.cta.primary {
  background: var(--sb-button-gradient);
  color: #214e6b;
}
.cta.secondary {
  background: #fff;
  color: var(--sb-primary);
  border: 2px solid var(--sb-secondary);
}
.cta.primary:hover, .cta.primary:focus {
  background: linear-gradient(90deg, #ffd166 0%, #84c8fc 100%);
  color: #174263;
  box-shadow: 0 6px 28px rgba(33, 78, 107, 0.16);
}
.cta.secondary:hover, .cta.secondary:focus {
  background: var(--sb-secondary);
}

/* Hide and show burger/mobile menu appropriately */
.mobile-menu-toggle {
  display: none;
  background: var(--sb-secondary);
  color: #1b456c;
  border: none;
  font-size: 2rem;
  border-radius: 11px;
  padding: 7px 16px;
  margin-left: auto;
  cursor: pointer;
  box-shadow: 0 2px 12px 0 rgba(33, 78, 107, 0.09);
  transition: background 0.15s, color 0.15s;
  z-index: 106;
}
.mobile-menu-toggle:focus {
  outline: 2px solid var(--sb-primary);
}

@media (max-width: 991px) {
  .main-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
    position: absolute;
    right: 20px;
    top: 13px;
  }
}

/* -----------------------------
   MOBILE SLIDE-OUT MENU
------------------------------*/
.mobile-menu {
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: #fff;
  box-shadow: 0 8px 24px rgba(33,78,107,0.15);
  z-index: 200;
  transform: translateX(-100%);
  transition: transform 0.4s cubic-bezier(0.37,0,0.63,1);
  padding: 16px 0;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  align-self: flex-end;
  background: none;
  border: none;
  font-size: 2rem;
  color: var(--sb-primary);
  cursor: pointer;
  margin: 10px 24px 10px 0;
  z-index: 201;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-top: 30px;
  width: 100%;
  align-items: center;
}
.mobile-nav a {
  text-align: left;
  width: 100%;
  padding: 12px 28px;
  font-size: 1.16rem;
  border-radius: 8px;
  color: var(--sb-primary);
  font-family: 'Montserrat', 'Open Sans', Arial, Helvetica, sans-serif;
  font-weight: 500;
  background: transparent;
  transition: background 0.18s, color 0.18s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: var(--sb-secondary);
  color: #14405d;
}

/* Fallback in case javascript disables menu closing */
@media (min-width: 992px) {
  .mobile-menu {
    display: none !important;
  }
}

/* -----------------------------
   FEATURE, SERVICE, RESOURCE GRIDS
------------------------------*/
.feature-grid, .service-cards, .service-grid, .service-list, .resource-grid, .featured-post-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
  margin-bottom: 12px;
}
.feature-grid > div, .service-cards > div, .service-grid > div, .service-list > div, .resource-grid > div, .featured-post-grid > div {
  background: var(--sb-card-gradient);
  border-radius: var(--sb-radius);
  box-shadow: var(--sb-shadow);
  padding: 24px 20px;
  min-width: 260px;
  flex: 1 1 260px;
  max-width: 320px;
  transition: box-shadow 0.18s, transform 0.18s;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.feature-grid img, .service-grid img, .service-list img, .resource-grid img {
  width: 44px;
  height: 44px;
  margin-bottom: 6px;
}

@media (max-width: 991px) {
  .feature-grid > div,
  .service-cards > div,
  .service-grid > div,
  .service-list > div,
  .resource-grid > div,
  .featured-post-grid > div {
    min-width: 170px;
    flex: 1 1 100%;
    max-width: 100%;
  }
  .feature-grid, .service-cards, .service-grid, .service-list, .resource-grid, .featured-post-grid {
    gap: 16px;
  }
}
@media (max-width: 640px) {
  .feature-grid, .service-cards, .service-grid, .service-list, .resource-grid, .featured-post-grid {
    flex-direction: column;
    gap: 14px;
  }
}

/* -----------------------------
   TESTIMONIALS
------------------------------*/
.testimonials {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 20px;
}
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  padding: 20px;
  border-radius: 14px;
  background: #fffbed;
  box-shadow: 0 2px 16px 0 rgba(33, 78, 107, 0.09);
  min-width: 240px;
  flex: 1 1 250px;
  max-width: 360px;
}
.testimonial-card p {
  color: #214e6b;
  font-size: 1.07rem;
  font-style: italic;
}
.testimonial-card strong {
  font-size: 0.99rem;
  color: #214e6b;
}

@media (max-width: 900px) {
  .testimonials {
    flex-direction: column;
    gap: 18px;
  }
  .testimonial-card {
    max-width: 100%;
    min-width: 185px;
  }
}

/* -----------------------------
   TAG FILTERS, TOPIC ICONS, NEWSLETTER
------------------------------*/
.tag-filter {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 20px;
}
.tag-filter a {
  background: #eaf4fe;
  border-radius: 14px;
  padding: 5px 14px;
  color: #214e6b;
  font-weight: 500;
  transition: background 0.16s, color 0.14s;
}
.tag-filter a:hover, .tag-filter a:focus {
  background: var(--sb-secondary);
  color: #14405d;
}
.topic-icons {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}
.topic-icons img {
  height: 42px;
  width: 42px;
  border-radius: 50%;
  background: #eaf4fe;
  padding: 6px;
}
.quick-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}
.quick-links a {
  color: var(--sb-primary);
  font-weight: 600;
  text-decoration: underline;
  transition: color 0.17s;
}
.quick-links a:hover, .quick-links a:focus {
  color: var(--sb-accent);
}

.newsletter-signup {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 28px 20px;
  background: var(--sb-card-gradient);
  border-radius: var(--sb-radius);
  align-items: flex-start;
  margin-bottom: 26px;
  box-shadow: var(--sb-shadow);
}

/* -----------------------------
   FOOTER
------------------------------*/
footer {
  background: #214e6b;
  color: #fff;
  padding: 40px 0 20px;
}
footer .container {
  padding-bottom: 0;
}
.footer-nav {
  display: flex;
  gap: 14px 26px;
  flex-wrap: wrap;
  margin-bottom: 22px;
}
.footer-nav a {
  color: #fafdff;
  font-size: 1rem;
  font-family: 'Montserrat', 'Open Sans', Arial, Helvetica, sans-serif;
  font-weight: 500;
  opacity: 0.90;
  transition: color 0.17s, opacity 0.17s;
}
.footer-nav a:hover,
.footer-nav a:focus {
  color: var(--sb-accent);
  opacity: 1;
}
.footer-contact,
.footer-social {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 12px;
  flex-wrap: wrap;
  font-size: 0.97rem;
  color: #fff;
}
.footer-contact a {
  color: #fff;
  text-decoration: underline;
}
.footer-contact a:hover,
.footer-contact a:focus {
  color: var(--sb-accent);
}
.footer-social img {
  height: 28px;
  width: 28px;
  margin-right: 6px;
}

/* -----------------------------
   FORM, MAP, FAQ
------------------------------*/
.text-section ul, .text-section ol {
  margin-left: 20px;
  margin-bottom: 12px;
}
.text-section a {
  color: var(--sb-primary);
  text-decoration: underline;
}
.text-section a:hover,
.text-section a:focus {
  color: var(--sb-accent);
}
.map-embed {
  margin-top: 10px;
  background: #eaf4fe;
  border-radius: 12px;
  padding: 18px;
  font-size: 0.97rem;
  color: #214e6b;
  text-align: center;
}
.faq-list {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}
.faq-list .text-section {
  flex: 1 1 260px;
  border-radius: 11px;
  background: #f7fafc;
  padding: 20px 16px;
  box-shadow: 0 2px 10px rgba(33,78,107,0.05);
}

/* -----------------------------
   COOKIE CONSENT BANNER
------------------------------*/
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  background: #fff;
  color: #214e6b;
  box-shadow: 0 -4px 28px rgba(33, 78, 107, 0.08);
  z-index: 230;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  padding: 20px 25px;
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  font-size: 1rem;
  transition: transform 0.3s, opacity 0.22s;
  border-top-left-radius: 18px;
  border-top-right-radius: 18px;
}
.cookie-banner.hide {
  transform: translateY(110%);
  opacity: 0;
  pointer-events: none;
}
.cookie-banner .cookie-btn {
  margin-right: 12px;
  margin-top: 8px;
  box-shadow: 0 1px 8px 0 rgba(33, 78, 107, 0.05);
}
.cookie-banner .cookie-btn {
  padding: 10px 22px;
  border-radius: 13px;
  font-family: 'Montserrat', 'Open Sans', Arial, Helvetica, sans-serif;
  font-weight: 600;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  margin-left: 6px;
  transition: background 0.15s, color 0.14s;
}
.cookie-banner .accept-all {
  background: var(--sb-button-gradient);
  color: #214e6b;
  border: none;
}
.cookie-banner .accept-all:hover, .cookie-banner .accept-all:focus {
  background: linear-gradient(90deg, #ffd166 0%, #84c8fc 100%);
}
.cookie-banner .reject-all {
  background: #eaf4fe;
  color: #214e6b;
  border: 2px solid var(--sb-secondary);
}
.cookie-banner .reject-all:hover, .cookie-banner .reject-all:focus {
  background: #fff;
}
.cookie-banner .settings-btn {
  background: #fffbed;
  color: #214e6b;
  border: 1px solid #ffd166;
}
.cookie-banner .settings-btn:hover, .cookie-banner .settings-btn:focus {
  background: #ffeaca;
}

.cookie-modal {
  display: flex;
  flex-direction: column;
  position: fixed;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  z-index: 240;
  background: rgba(33, 78, 107, 0.26);
  justify-content: center;
  align-items: center;
  transition: opacity 0.24s;
  opacity: 1;
  pointer-events: all;
}
.cookie-modal.hide {
  opacity: 0;
  pointer-events: none;
}
.cookie-modal-content {
  background: #fff;
  border-radius: 18px;
  padding: 36px 32px 26px;
  min-width: 320px;
  max-width: 90vw;
  box-shadow: 0 6px 32px 0 rgba(33, 78, 107, 0.14);
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-items: stretch;
  position: relative;
}
.cookie-modal-content h3 {
  font-size: 1.22rem;
  margin-bottom: 6px;
  color: var(--sb-primary);
  font-family: 'Montserrat', 'Open Sans', Arial, Helvetica, sans-serif;
  font-weight: 700;
}
.cookie-modal-content .modal-close {
  position: absolute;
  top: 13px;
  right: 18px;
  background: none;
  border: none;
  font-size: 2rem;
  color: #214e6b;
  cursor: pointer;
  z-index: 10;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 12px;
}
.cookie-category label {
  font-size: 1rem;
  color: #214e6b;
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
}
.cookie-category .toggle-switch {
  width: 40px;
  height: 22px;
  background: #eaf4fe;
  border-radius: 11px;
  position: relative;
  cursor: pointer;
}
.cookie-category .toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}
.cookie-category .toggle-slider {
  position: absolute;
  left: 2px;
  top: 2px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #84c8fc;
  transition: left 0.18s, background 0.18s;
}
.cookie-category input:checked + .toggle-slider {
  left: 20px;
  background: #ffd166;
}
.cookie-category .always-on {
  color: #8ba2b2;
  font-size: 0.97rem;
  font-style: italic;
  margin-left: 6px;
}
.cookie-modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 10px;
}
.cookie-modal-actions button {
  padding: 10px 20px;
  font-size: 1rem;
  font-family: 'Montserrat', 'Open Sans', Arial, Helvetica, sans-serif;
  border-radius: 12px;
  border: none;
  transition: background 0.15s, color 0.13s;
  cursor: pointer;
}
.cookie-modal-actions .save {
  background: var(--sb-button-gradient);
  color: #214e6b;
  font-weight: 600;
}
.cookie-modal-actions .save:hover {
  background: linear-gradient(90deg, #ffd166 0%, #84c8fc 100%);
}
.cookie-modal-actions .cancel {
  background: #eaf4fe;
  color: #214e6b;
  border: 1px solid #84c8fc;
}
.cookie-modal-actions .cancel:hover {
  background: #fff;
}

/* -----------------------------
   SPACING, ALIGNMENT, FLEX
------------------------------*/
.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;
}

@media (max-width: 768px) {
  .content-grid, .card-container, .feature-grid, .service-cards, .service-grid, .service-list, .resource-grid, .featured-post-grid, .testimonials {
    flex-direction: column;
    gap: 14px;
  }
  .text-image-section {
    flex-direction: column;
    gap: 18px;
    align-items: flex-start;
  }
  .section {
    padding: 26px 5px;
    margin-bottom: 36px;
  }
}

/* -----------------------------
   SCROLLBAR
------------------------------*/
::-webkit-scrollbar {
  width: 9px;
  background: #eaf4fe;
}
::-webkit-scrollbar-thumb {
  background: #84c8fc;
  border-radius: 6px;
}

/* -----------------------------
   TRANSITIONS, MICRO-INTERACTIONS
------------------------------*/
a, .cta, .card, .service-list > div, .service-cards > div, .service-grid > div, .resource-grid > div, .featured-post-grid > div, .cookie-btn, .tag-filter a {
  transition: background 0.2s, color 0.2s, box-shadow 0.18s, transform 0.12s;
}

/* -----------------------------
   ACCESSIBLE FOCUS STATES
------------------------------*/
:focus {
  outline: 2px dashed var(--sb-secondary);
  outline-offset: 2px;
}

/* -----------------------------
   MISC UTILS
------------------------------*/
.hide {
  display: none !important;
}
section {
  padding: 15px;
}
/* ------------------------------------
   END
-------------------------------------*/