/* --- CSS RESET & NORMALIZE --- */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html,
body {
  height: 100%;
  width: 100%;
}
html {
  font-size: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
}
body {
  min-height: 100vh;
  background: #fff;
  color: #173D4C;
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  letter-spacing: 0.01em;
  overflow-x: hidden;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
input,
button,
select,
textarea {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  outline: none;
}
ul, ol {
  margin-left: 1.5em;
  margin-bottom: 1em;
}

/* --- TYPOGRAPHY --- */
h1, h2, h3, h4, h5, h6 {
  color: #173D4C;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  margin-bottom: 20px;
  line-height: 1.15;
}
h1 { font-size: 2.5rem; margin-bottom: 24px; letter-spacing: -1px; }
h2 { font-size: 2rem; }
h3 { font-size: 1.4rem; }
h4 { font-size: 1.15rem; }
.subtitle {
  font-size: 1.2rem;
  color: #4F6F7E;
  font-family: 'Roboto', Arial, sans-serif;
  font-weight: 400;
  margin-bottom: 24px;
}
p, .text-section p, article p {
  color: #173D4C;
  font-size: 1rem;
  margin-bottom: 18px;
}
.text-section strong, strong {
  color: #173D4C;
  font-weight: 600;
}
a {
  color: #173D4C;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #39B8C9;
  text-decoration: underline;
}

/* --- CONTAINER & LAYOUT --- */
.container {
  width: 100%;
  max-width: 1160px;
  box-sizing: border-box;
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
}
.content-wrapper {
  padding-top: 20px;
  padding-bottom: 20px;
}

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

/* --- FLEX UTILITIES (MANDATORY) --- */
.content-grid, .resources-list, .feature-grid, .footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 12px 0 rgba(23, 61, 76, 0.05);
}
.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}
.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background: #F8F9FB;
  border-radius: 16px;
  margin-bottom: 24px;
  box-shadow: 0 2px 16px 0 rgba(23, 61, 76, 0.08);
}
.feature-item, .team-member, .resource-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}
.team-bios {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  margin-bottom: 24px;
}

/* --- HEADER & NAVIGATION --- */
header {
  background: #fff;
  border-bottom: 1px solid #F8F9FB;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 18px;
  padding-bottom: 18px;
}
.logo {
  display: flex;
  align-items: center;
  height: 48px;
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 24px;
}
.main-nav a {
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 1rem;
  color: #173D4C;
  border-radius: 8px;
  padding: 6px 10px;
  transition: background 0.2s, color 0.2s;
}
.main-nav a:hover, .main-nav a:focus {
  background: #F8F9FB;
  color: #39B8C9;
}
.main-nav .cta {
  background: #173D4C;
  color: #fff !important;
  padding: 10px 20px;
  border-radius: 28px;
  font-size: 1rem;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  letter-spacing: 0.01em;
  margin-left: 12px;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
  box-shadow: 0 2px 12px 0 rgba(23, 61, 76, 0.06);
}
.main-nav .cta:hover, .main-nav .cta:focus {
  background: #39B8C9;
  color: #fff;
}

/* --- MOBILE NAVIGATION --- */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 2rem;
  color: #173D4C;
  cursor: pointer;
  z-index: 104;
  transition: color 0.2s;
  margin-left: 24px;
  padding: 2px 10px;
}
.mobile-menu-toggle:focus {
  outline: 2px solid #39B8C9;
}
.mobile-menu {
  display: none;
}
.mobile-menu.open {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: #fff;
  z-index: 2000;
  box-shadow: 0 8px 32px 0 rgba(23,61,76,0.15);
  transform: translateX(0%);
  transition: transform 0.3s cubic-bezier(.77,0,.18,1);
  padding: 28px;
}
.mobile-menu-close {
  align-self: flex-end;
  background: none;
  border: none;
  font-size: 2.2rem;
  color: #173D4C;
  margin-bottom: 36px;
  cursor: pointer;
  padding: 4px 10px;
  border-radius: 8px;
  transition: background 0.2s, color 0.2s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: #F8F9FB;
  color: #39B8C9;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
  width: 100%;
}
.mobile-nav a {
  font-size: 1.2rem;
  font-family: 'Montserrat', Arial, sans-serif;
  color: #173D4C;
  padding: 12px 0;
  width: 100%;
  display: block;
  border-radius: 8px;
  transition: background 0.2s, color 0.2s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: #F8F9FB;
  color: #39B8C9;
}

/* --- HERO & CTA --- */
.hero-section {
  background: #F8F9FB;
  padding: 64px 0;
  margin-bottom: 60px;
}
.hero-section h1 {
  margin-bottom: 18px;
}
.hero-section .cta {
  margin-top: 28px;
}
.cta {
  background: #173D4C;
  color: #fff !important;
  padding: 14px 36px;
  border-radius: 28px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  font-size: 1.1rem;
  box-shadow: 0 2px 10px 0 rgba(23, 61, 76, 0.10);
  border: none;
  display: inline-block;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s, transform 0.13s;
}
.cta:hover, .cta:focus {
  background: #39B8C9;
  color: #fff;
  box-shadow: 0 4px 16px 0 rgba(23, 61, 76, 0.13);
  transform: translateY(-2px) scale(1.03);
}
.cta-link {
  color: #39B8C9;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 500;
  font-size: 1rem;
  border-bottom: 1px dotted #39B8C9;
  transition: color 0.2s, border-bottom 0.2s;
}
.cta-link:hover, .cta-link:focus {
  color: #173D4C;
  border-bottom: 1px solid #173D4C;
}

/* --- FEATURES --- */
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  margin-top: 20px;
}
.feature {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 2px 14px 0 rgba(23, 61, 76, 0.06);
  flex: 1 1 240px;
  min-width: 220px;
  max-width: 300px;
  padding: 28px 20px 22px 20px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  transition: box-shadow 0.2s, transform 0.17s;
}
.feature img {
  width: 40px;
  height: 40px;
  margin-bottom: 10px;
  opacity: 0.95;
  filter: grayscale(0.05);
}
.feature:hover, .feature:focus-within {
  box-shadow: 0 4px 22px 0 rgba(57,184,201,0.12);
  transform: translateY(-3px) scale(1.01);
}

/* --- CARDS --- */
.card {
  padding: 32px 28px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 14px 0 rgba(23, 61, 76, 0.06);
  transition: box-shadow 0.18s, transform 0.13s;
}
.card:hover, .card:focus-within {
  box-shadow: 0 4px 24px 0 rgba(57,184,201,0.08);
  transform: scale(1.015);
}

/* --- TESTIMONIALS --- */
.testimonial-card {
  background: #F8F9FB;
  color: #173D4C;
  border: 1px solid #E4E8EA;
  border-radius: 16px;
  box-shadow: 0 2px 18px 0 rgba(23,61,76,0.07);
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px 34px;
  font-size: 1rem;
  min-width: 0px;
}
.testimonial-card strong {
  font-size: 0.98rem;
  color: #173D4C;
  margin-left: 14px;
  letter-spacing: 0.01em;
  font-weight: 600;
}
.testimonial-card p {
  color: #173D4C;
  margin: 0;
}

/* --- NEWS FEED, ARTICLES --- */
.news-feed {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 16px;
}
.news-feed article {
  background: #F8F9FB;
  border-radius: 10px;
  box-shadow: 0 2px 12px 0 rgba(23,61,76,0.04);
  flex: 1 1 290px;
  padding: 24px 20px 18px 24px;
  min-width: 240px;
  transition: box-shadow 0.18s;
}
.news-feed article:hover {
  box-shadow: 0 4px 28px 0 rgba(57,184,201,0.08);
}

.featured-articles ul {
  margin-left: 1.2em;
  margin-top: 0.7em;
}
.featured-articles li {
  margin-bottom: 10px;
}

/* --- RESOURCES LIST --- */
.resources-list {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
}
.resource-item {
  background: #F8F9FB;
  border-radius: 12px;
  box-shadow: 0 1px 10px 0 rgba(23,61,76,0.04);
  flex: 1 1 260px;
  min-width: 200px;
  max-width: 310px;
  padding: 20px 18px 16px 18px;
}
.resource-item h3 {
  font-size: 1.2rem;
  margin-bottom: 12px;
}
.resource-item ul {
  margin-bottom: 6px;
}
.resource-item li {
  margin-bottom: 8px;
  color: #173D4C;
}
.resource-item a {
  color: #39B8C9;
  text-decoration: underline dotted;
  font-weight: 500;
}
.resource-item a:hover {
  color: #173D4C;
}

/* --- TEXT SECTION & INFO --- */
.text-section {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
ul, ol {
  margin-bottom: 16px;
  color: #173D4C;
}
li {
  margin-bottom: 7px;
}
.contact-info ul, .contact-hours ul {
  list-style-type: none;
  margin: 0;
  padding: 0;
}
.contact-info li {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}
.contact-info img {
  width: 18px;
  margin-right: 6px;
}

/* --- FOOTER --- */
footer {
  background: #F8F9FB;
  border-top: 1px solid #E4E8EA;
  margin-top: 64px;
  font-size: 0.98rem;
  letter-spacing: 0.01em;
}
.footer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px 0 14px 0;
}
.footer-top img {
  height: 40px;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.footer-nav a {
  color: #4F6F7E;
  font-size: 1rem;
  transition: color 0.2s;
  padding: 3px 8px;
  border-radius: 6px;
}
.footer-nav a:hover {
  color: #173D4C;
  background: #fff;
}
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 36px;
  justify-content: space-between;
  align-items: flex-start;
  padding: 18px 0 14px 0;
  border-top: 1px solid #E4E8EA;
}
.contact-snippet {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.98rem;
  color: #173D4C;
  margin-bottom: 12px;
}
.contact-snippet img {
  width: 16px;
  margin-right: 5px;
  vertical-align: middle;
}
.social-links {
  display: flex;
  gap: 18px;
  align-items: center;
}
.social-links a img {
  width: 28px;
  height: 28px;
  opacity: 0.82;
  transition: opacity 0.18s;
}
.social-links a:hover img {
  opacity: 1;
}
.newsletter-footer {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 4px;
}
.newsletter-footer label {
  font-size: 1rem;
  font-family: 'Montserrat', Arial, sans-serif;
  color: #173D4C;
  margin-bottom: 5px;
}
.newsletter-footer input[type="email"] {
  background: #fff;
  border-radius: 8px;
  border: 1px solid #E4E8EA;
  padding: 10px 14px;
  font-size: 1rem;
  transition: border 0.2s;
}
.newsletter-footer input[disabled] {
  background: #F8F9FB;
  color: #a7b7bf;
}
.newsletter-footer button {
  background: #39B8C9;
  color: #fff;
  border-radius: 24px;
  padding: 8px 24px;
  font-size: 1rem;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  letter-spacing: 0.02em;
  border: none;
  transition: background 0.18s, color 0.18s;
  cursor: pointer;
}
.newsletter-footer button[disabled] {
  opacity: 0.6;
  cursor: not-allowed;
}
.newsletter-footer button:hover:not([disabled]),
.newsletter-footer button:focus:not([disabled]) {
  background: #173D4C;
  color: #fff;
}

/* --- LEGAL SECTIONS --- */
.legal-section {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 2px 16px 0 rgba(23,61,76,0.05);
  padding-top: 30px;
  padding-bottom: 30px;
}

/* --- ANIMATIONS & TRANSITIONS --- */
.section, .card, .feature, .testimonial-card, .footer-nav a, .cta {
  transition: box-shadow 0.17s, transform 0.15s, background 0.16s, color 0.16s;
}

/* --- COOKIE CONSENT BANNER --- */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100vw;
  padding: 18px 20px;
  background: #F8F9FB;
  border-top: 1px solid #E4E8EA;
  box-shadow: 0 -2px 24px 0 rgba(23, 61, 76, 0.11);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  z-index: 3000;
  transition: transform 0.35s cubic-bezier(.77,0,.18,1);
  transform: translateY(0%);
}
.cookie-banner.hide {
  transform: translateY(120%);
}
.cookie-banner-message {
  font-size: 1rem;
  color: #173D4C;
  text-align: center;
  margin-bottom: 8px;
}
.cookie-banner-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}
.cookie-btn {
  border-radius: 22px;
  padding: 8px 20px;
  font-size: 1rem;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 500;
  cursor: pointer;
  border: none;
  margin: 0 8px;
  transition: background 0.16s, color 0.16s, box-shadow 0.17s;
}
.cookie-btn.accept {
  background: #39B8C9;
  color: #fff;
}
.cookie-btn.accept:hover, .cookie-btn.accept:focus {
  background: #173D4C;
  color: #fff;
}
.cookie-btn.reject {
  background: #fff;
  color: #173D4C;
  border: 1px solid #E4E8EA;
}
.cookie-btn.reject:hover, .cookie-btn.reject:focus {
  background: #F8F9FB;
  color: #39B8C9;
}
.cookie-btn.settings {
  background: #173D4C;
  color: #fff;
}
.cookie-btn.settings:hover, .cookie-btn.settings:focus {
  background: #39B8C9;
  color: #fff;
}

/* --- COOKIE MODAL --- */
.cookie-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(23,61,76,0.16);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 4000;
  opacity: 1;
  transition: opacity 0.2s;
}
.cookie-modal-overlay.hide {
  opacity: 0;
  pointer-events: none;
}
.cookie-modal {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 8px 40px 0 rgba(23,61,76,0.16);
  padding: 35px 30px 26px 30px;
  max-width: 410px;
  width: 90vw;
  display: flex;
  flex-direction: column;
  gap: 18px;
  position: relative;
  user-select: text;
}
.cookie-modal h2 {
  font-size: 1.22rem;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}
.cookie-category input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: #39B8C9;
}
.cookie-category .category-title {
  font-weight: 500;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
}
.cookie-modal-actions {
  display: flex;
  gap: 18px;
  margin-top: 12px;
}
.cookie-modal-close {
  position: absolute;
  top: 15px;
  right: 18px;
  background: none;
  border: none;
  font-size: 1.3rem;
  color: #173D4C;
  cursor: pointer;
  border-radius: 8px;
  padding: 2px 8px;
  transition: background 0.1s;
}
.cookie-modal-close:hover, .cookie-modal-close:focus {
  background: #F8F9FB;
  color: #39B8C9;
}

/* ----------- MEDIA QUERIES (MOBILE RESPONSIVE) ----------- */
@media (max-width: 1020px) {
  .footer-bottom, .resources-list, .content-grid,
  .feature-grid, .team-bios {
    gap: 16px !important;
  }
}
@media (max-width: 900px) {
  .container {
    padding-left: 12px;
    padding-right: 12px;
  }
  .main-nav {
    gap: 13px;
  }
}
@media (max-width: 768px) {
  .container, .content-wrapper {
    padding-left: 9px;
    padding-right: 9px;
  }
  h1 { font-size: 2rem; }
  h2 { font-size: 1.48rem; }
  .section, section {
    padding: 28px 8px;
    margin-bottom: 32px;
  }
  .footer-top, .footer-bottom {
    flex-direction: column;
    gap: 18px;
    align-items: flex-start;
  }
  .main-nav {
    display: none !important;
  }
  .mobile-menu-toggle {
    display: block;
  }
  .feature-grid,
  .news-feed,
  .resources-list,
  .footer-bottom,
  .team-bios {
    flex-direction: column;
    gap: 18px;
    align-items: stretch;
  }
  .testimonial-card {
    flex-direction: column;
    align-items: flex-start;
    padding: 16px 14px;
    gap: 8px;
  }
  .text-image-section {
    flex-direction: column;
    gap: 20px;
    align-items: flex-start;
  }
  .card, .feature, .resource-item, .news-feed article {
    max-width: 100%;
    min-width: 0;
    padding-left: 12px;
    padding-right: 12px;
  }
}
@media (max-width: 520px) {
  html {
    font-size: 14px;
  }
  .container {
    padding-left: 3px;
    padding-right: 3px;
  }
  .footer-top, .footer-bottom {
    padding-left: 0;
    padding-right: 0;
  }
  .footer-top img {
    height: 34px;
  }
  .newsletter-footer button {
    padding-left: 10px;
    padding-right: 10px;
  }
}

/* --- ACCESSIBILITY & MISC --- */
:focus-visible {
  outline: 2px solid #39B8C9;
  outline-offset: 2px;
}
::-webkit-input-placeholder, ::placeholder {
  color: #A3B5BB;
  opacity: 1;
}

/* Optionally hide cookie and mobile nav by default */
.cookie-modal-overlay,
.cookie-modal-overlay.hide,
.mobile-menu {
  display: none;
}
.mobile-menu.open {
  display: flex;
}

/* Overlay fix for cookie modal and mobile menu stacking */
body.mobile-menu-open {
  overflow: hidden;
}
body.modal-open {
  overflow: hidden;
}
