/* ===== 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;
  font-size: 100%;
  font: inherit;
  vertical-align: baseline;
}
article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
  display: block;
}
body {
  line-height: 1.5;
  font-family: 'Roboto', Arial, Helvetica, sans-serif;
  background: #F7F7F7;
  color: #1b2435;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
ol, ul { list-style: none; }
a { text-decoration: none; color: inherit; }
img, svg { max-width: 100%; height: auto; display: block; }
button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  line-height: inherit;
}
*:focus { outline: 2px solid #EFB90A; outline-offset: 2px; }
hr { border: none; border-top: 1px solid #D6DEED; }

/* ===== Brand Colors & Typography ===== */
:root {
  --primary: #21304B;
  --secondary: #EFB90A;
  --accent: #F7F7F7;
  --body: #1b2435;
  --muted: #6C7685;

  --font-display: 'Montserrat', Arial, Helvetica, sans-serif;
  --font-body: 'Roboto', Arial, Helvetica, sans-serif;

  --shadow-card: 0 2px 12px rgba(33, 48, 75, 0.06);
  --shadow-elevated: 0 4px 40px rgba(33,48,75,.15);
  --radius: 12px;
  --radius-btn: 6px;
  --gap-section: 60px;
  --gap-card: 24px;
  --gap-content: 20px;
}

/* ===== Layout Containers ===== */
.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;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
}

.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 24px;
}
.card {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  margin-bottom: 20px;
  padding: 28px 24px;
  position: relative;
  flex: 1 1 300px;
}

.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;
  background: #F4F6FA;
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  margin-bottom: 20px;
}

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

.features .feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  justify-content: flex-start;
  margin-top: 24px;
}
.features .feature-grid > div {
  background: #F4F6FA;
  border-radius: var(--radius);
  padding: 32px 28px 24px 28px;
  box-shadow: var(--shadow-card);
  flex: 1 1 260px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  min-width: 220px;
  max-width: 335px;
  transition: box-shadow 0.2s;
}
.features .feature-grid > div:hover {
  box-shadow: var(--shadow-elevated);
  transform: translateY(-4px);
}

/* ===== Header & Navigation ===== */
header {
  background: var(--primary);
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 99;
  width: 100%;
  box-shadow: 0 2px 8px rgba(33, 48, 75, 0.03);
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  padding-bottom: 12px;
  min-height: 72px;
  gap: 16px;
}
.logo img {
  height: 38px;
  width: auto;
  display: block;
}
.main-nav {
  display: flex;
  gap: 24px;
  font-family: var(--font-body);
  font-size: 1rem;
  align-items: center;
}
.main-nav a {
  color: #E7ECF6;
  padding: 6px 12px;
  border-radius: var(--radius-btn);
  transition: background 0.18s, color 0.18s;
}
.main-nav a:hover, .main-nav a:focus {
  background: rgba(235, 236, 245, 0.13);
  color: var(--secondary);
}
.cta-primary {
  font-family: var(--font-display);
  background: var(--secondary);
  color: var(--primary);
  border: none;
  border-radius: var(--radius-btn);
  padding: 12px 30px;
  font-size: 1.05rem;
  font-weight: 700;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
  box-shadow: 0 2px 8px rgba(239, 185, 10, 0.07);
  cursor: pointer;
  margin-left: 18px;
  display: inline-block;
  letter-spacing: 0.015em;
}
.cta-primary:hover, .cta-primary:focus {
  background: #e2a803;
  color: #fff;
  box-shadow: 0 6px 20px rgba(239, 185, 10, 0.13);
}

/* Burger (Mobile Menu) Button */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  color: #fff;
  font-size: 2rem;
  cursor: pointer;
  margin-left: 14px;
  z-index: 101;
  padding: 7px 15px 7px 10px;
  border-radius: var(--radius-btn);
  transition: background 0.16s;
}
.mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
  background: rgba(255,255,255,0.11);
}

/* ===== Mobile Menu Overlay ===== */
.mobile-menu {
  display: none;
  flex-direction: column;
  align-items: flex-start;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(33,48,75,0.98);
  box-shadow: 0 8px 32px rgba(33,48,75,0.19);
  z-index: 1002;
  transform: translateX(-100vw);
  transition: transform 0.36s cubic-bezier(.77,0,.18,1);
  padding: 0 10vw;
}
.mobile-menu.open {
  display: flex;
  transform: translateX(0);
}
.mobile-menu-close {
  background: none;
  color: #fff;
  border: none;
  font-size: 2.1rem;
  align-self: flex-end;
  margin-top: 40px;
  margin-bottom: 28px;
  cursor: pointer;
  padding: 7px 10px;
  border-radius: var(--radius-btn);
  transition: background 0.15s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: rgba(235,236,245,0.12);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 22px;
  width: 100%;
}
.mobile-nav a {
  color: #fff;
  font-family: var(--font-display);
  font-size: 1.18rem;
  padding: 12px 4px;
  border-radius: var(--radius-btn);
  transition: color 0.15s, background 0.13s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  color: var(--secondary);
  background: rgba(247,247,247,0.04);
}

@media (max-width:1024px) {
  .main-nav {
    gap: 14px;
  }
}
@media (max-width:900px) {
  .container {
    max-width: 100vw;
  }
}
@media (max-width: 900px) {
  .main-nav {
    display: none !important;
  }
  .mobile-menu-toggle {
    display: block;
  }
}

/* Enable Burger Menu JS
   .mobile-menu.open is handled via JS */

/* ===== HERO ===== */
.hero {
  background: linear-gradient(87deg, #f7f7f7 40%, #E7ECF6 100%);
  padding: 64px 0 40px 0;
  margin-bottom: 0;
}
.hero .container {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.hero .content-wrapper {
  align-items: flex-start;
  max-width: 680px;
  margin: 0 auto;
  gap: 20px;
}
.hero h1 {
  font-family: var(--font-display);
  font-size: 2.3rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 1.18;
}
.hero p {
  font-size: 1.14rem;
  color: var(--muted);
  margin-top: 11px;
  margin-bottom: 3px;
  max-width: 540px;
}
.hero .cta-primary {
  margin-top: 8px;
  margin-bottom: 6px;
}

@media (max-width:600px) {
 .hero {
   padding: 38px 0 26px 0;
 }
 .hero .container,
 .content-wrapper {
   padding: 0;
 }
 .hero h1 {
   font-size: 1.37rem;
 }
}

/* ===== Features, About, Services Sections ===== */
section.features, section.services, section.about, section.about-team, section.cta, section.contact-info, section.about-community {
  background: #FFF;
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  margin-bottom: 60px;
  padding: 40px 20px;
}

.features h2, .about h2, .services h2, .about-team h2, .cta h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.7rem;
  margin-bottom: 18px;
  color: var(--primary);
}
.features h3, .feature-item h3, .about-team h3 {
  font-family: var(--font-display);
  font-size: 1.21rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 7px;
}
.features ul, .services ul {
  margin-left: 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.features li, .services li{
  font-size: 1.07rem;
  color: var(--body);
  display: flex;
  align-items: center;
  gap: 14px;
  line-height: 1.6;
}
.features li img, .services li img {
  width: 28px;
  height: 28px;
}

section.cta {
  background: var(--primary);
  color: #fff;
  text-align: center;
  margin-bottom: 48px;
  box-shadow: 0 4px 20px rgba(33,48,75,0.12);
}
.cta h2 {
  color: #fff;
  font-size: 1.55rem;
  font-family: var(--font-display);
}
.cta .cta-primary {
  background: var(--secondary);
  color: var(--primary);
  margin-top: 18px;
  margin-bottom: 0;
}

/* ===== About Team, Contact Info, Text Sections ===== */
.about-team .text-section, .about-community .text-section, .contact-info .text-section, .legal .text-section {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.contact-info ul {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.contact-info li {
  font-size: 1.07rem;
  color: var(--body);
  display: flex;
  gap: 14px;
  align-items: center;
}
.contact-info li img {
  width: 24px;
  height: 24px;
  margin-right: 4px;
}

/* ===== Testimonials ===== */
section.testimonials .testimonial-card {
  background: #F4F6FA;
  box-shadow: var(--shadow-card);
  border-radius: var(--radius);
  font-size: 1.08rem;
  color: #23324C;
  font-family: var(--font-body);
  margin-bottom: 20px;
  min-width: 200px;
  max-width: 600px;
}
section.testimonials strong {
  color: var(--primary);
  font-weight: 600;
  font-family: var(--font-display);
}
section.testimonials h2 {
  margin-bottom: 28px;
}

/* ===== Legal/Policy Pages ===== */
.legal {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  margin-bottom: 60px;
  padding: 42px 20px;
}
.legal h1,
.legal h2 {
  color: var(--primary);
  font-family: var(--font-display);
}
.legal .text-section {
  margin-top: 22px;
  gap: 18px;
  color: var(--body);
  font-size: 1.06rem;
}
.legal .text-section h2 {
  margin-top: 14px;
  font-size: 1.1rem;
}
.legal .text-section ul {
  gap: 10px;
}

/* ===== Footer ===== */
footer {
  background: #21304B;
  color: #e8eefa;
  font-size: 1rem;
  width: 100%;
}
footer .container {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: center;
  padding: 30px 20px 18px 20px;
}
.footer-nav {
  display: flex;
  gap: 22px;
  margin-bottom: 2px;
  flex-wrap: wrap;
}
.footer-nav a {
  color: #fff;
  opacity: 0.93;
  font-size: 1rem;
  transition: color 0.15s, opacity 0.14s;
  padding: 2px 0;
  border-radius: var(--radius-btn);
}
.footer-nav a:hover, .footer-nav a:focus {
  color: var(--secondary);
  opacity: 1;
}
footer p {
  font-size: 0.96rem;
  opacity: 0.82;
}

/* ===== Typography Scale ===== */
h1 { font-family: var(--font-display); font-size: 2.1rem; font-weight: 700; color: var(--primary); margin-bottom: 18px; }
h2 { font-family: var(--font-display); font-size: 1.5rem; font-weight: 700; color: var(--primary); margin-bottom: 18px; }
h3 { font-family: var(--font-display); font-size: 1.19rem; font-weight: 600; color: var(--primary); margin-bottom: 7px; }
p, ul, li, a, label, input, button, textarea {
  font-family: var(--font-body);
  font-size: 1.06rem;
  color: var(--body);
  letter-spacing: 0.009em;
}
p {
  line-height: 1.7;
  margin-bottom: 10px;
  max-width: 680px;
}
strong { font-weight: 600; }

/* ===== Buttons, Links, Forms ===== */
button, .cta-primary {
  font-family: var(--font-display);
  border: none;
  border-radius: var(--radius-btn);
  font-size: 1.06rem;
  font-weight: 600;
  padding: 12px 28px;
  cursor: pointer;
  background: var(--secondary);
  color: var(--primary);
  transition: background 0.2s, color 0.2s, box-shadow 0.2s, transform 0.2s;
}
button:hover, button:focus, .cta-primary:hover, .cta-primary:focus {
  background: #dbb90a;
  color: #fff;
  box-shadow: 0 6px 20px rgba(239, 185, 10, 0.14);
  transform: translateY(-2px) scale(1.03);
}
button:active, .cta-primary:active {
  transform: scale(0.98);
}

/* Inline link highlighting */
a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.12s;
}
a:hover, a:focus {
  color: var(--secondary);
  text-decoration: underline;
}

/* ===== Card Style Utility ===== */
.card {
  transition: box-shadow 0.17s, transform 0.11s;
}
.card:hover, .card:focus-within {
  box-shadow: var(--shadow-elevated);
  transform: translateY(-3px) scale(1.01);
}

/* ===== Responsive ===== */
@media (max-width: 1050px) {
  .features .feature-grid > div, .card {
    min-width: 220px;
    max-width: calc(46vw);
  }
}
@media (max-width: 900px) {
  header .container {
    flex-wrap: wrap;
    min-height: 54px;
  }
  .features .feature-grid {
    gap: 18px;
  }
}
@media (max-width: 768px) {
  .features .feature-grid, .card-container, .content-grid {
    flex-direction: column;
    gap: 18px;
  }
  .text-image-section {
    flex-direction: column;
    align-items: flex-start;
  }
  .hero .content-wrapper {
    align-items: flex-start;
    text-align: left;
  }
  .footer-nav {
    gap: 11px;
    flex-direction: column;
    align-items: center;
  }
  .section, .features, .about, .about-team, .contact-info, .about-community, .services, .legal {
    padding: 22px 7px;
  }
}
@media (max-width: 530px) {
  h1 { font-size: 1.23rem; }
  .feature-grid > div { padding: 18px 8px 13px 8px; }
  .container { padding: 0 6px; }
}

/* ===== Cookie Consent Banner ===== */
#cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100vw;
  background: #F7F7F9;
  color: #21304B;
  box-shadow: 0 -2px 33px rgba(33,48,75,0.17);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 22px 16px 19px 16px;
  border-radius: 14px 14px 0 0;
  gap: 12px;
  font-size: 1.06rem;
  animation: cookiefadein .8s cubic-bezier(.23,1.1,.32,1) both;
}
@keyframes cookiefadein {
  from { transform: translateY(70px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
#cookie-banner p {
  margin-bottom: 6px;
  color: #21304B;
}
#cookie-banner .cookie-btns {
  display: flex;
  gap: 12px;
  margin-top: 7px;
}
.cookie-btn, .cookie-settings-btn, .cookie-accept-btn, .cookie-reject-btn {
  background: var(--secondary);
  color: var(--primary);
  border: none;
  border-radius: var(--radius-btn);
  padding: 10px 24px;
  font-weight: 600;
  font-family: var(--font-display);
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(239,185,10,0.13);
  text-align: center;
  transition: background 0.2s, color 0.2s, box-shadow 0.16s;
}
.cookie-btn:hover, .cookie-btn:focus, .cookie-accept-btn:hover, .cookie-accept-btn:focus, .cookie-reject-btn:hover, .cookie-reject-btn:focus {
  background: #dbb90a;
  color: #fff;
  box-shadow: 0 4px 18px rgba(239,185,10,0.11);
}
.cookie-reject-btn {
  background: #fff;
  color: var(--primary);
  border: 2px solid #EFB90A;
  transition: background 0.17s, color 0.15s;
}
.cookie-reject-btn:hover, .cookie-reject-btn:focus {
  background: #EFB90A;
  color: #fff;
}
.cookie-settings-btn {
  background: none;
  color: var(--muted);
  border: none;
  font-weight: 500;
  padding: 0 0 0 5px;
  text-decoration: underline;
  font-size: 1rem;
}
.cookie-settings-btn:hover, .cookie-settings-btn:focus {
  color: var(--secondary);
}

/* === Cookie Settings Modal === */
#cookie-modal {
  display: none;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  position: fixed;
  left: 0; top: 0;
  width: 100vw; height: 100vh;
  background: rgba(33,48,75,0.76);
  z-index: 10000;
  animation: cookieoverlayin 0.2s cubic-bezier(.23,1.2,.32,1) both;
}
@keyframes cookieoverlayin {
  0% { opacity:0; }
  100%{ opacity:1; }
}
#cookie-modal .cookie-modal-dialog {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 8px 32px rgba(33,48,75,0.18);
  max-width: 410px;
  width: 93vw;
  margin: 60px auto 0 auto;
  padding: 34px 30px 28px 30px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: relative;
  animation: cookiemodalin 0.28s cubic-bezier(.23,0,.32,1) both;
}
@keyframes cookiemodalin {
  from { transform: translateY(40px) scale(.91); opacity:0; }
  to   { transform: translateY(0) scale(1); opacity:1; }
}
#cookie-modal .cookie-modal-close {
  position: absolute;
  top: 18px;
  right: 16px;
  background: none;
  border: none;
  color: #7a86a6;
  font-size: 1.43rem;
  font-weight: 700;
  cursor: pointer;
  padding: 3px 8px;
  border-radius: var(--radius-btn);
  transition: background 0.14s;
}
#cookie-modal .cookie-modal-close:hover, #cookie-modal .cookie-modal-close:focus {
  background: rgba(33,48,75,0.09);
  color: var(--primary);
}
#cookie-modal h2 {
  font-family: var(--font-display);
  color: var(--primary);
  font-size: 1.17rem;
  margin-bottom: 7px;
}
#cookie-modal .cookie-category {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 10px;
}
#cookie-modal label {
  display: flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-body);
  font-size: 1rem;
}
#cookie-modal .cookie-toggle {
  width: 38px;
  height: 21px;
  appearance: none;
  background: #E3E9F2;
  border-radius: 12px;
  outline: none;
  margin-right: 6px;
  position: relative;
  cursor: pointer;
  transition: background 0.13s;
}
#cookie-modal .cookie-toggle:checked {
  background: var(--secondary);
}
#cookie-modal .cookie-toggle:before {
  content: '';
  position: absolute;
  left: 3px;
  top: 2.5px;
  width: 16.5px;
  height: 16.5px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 1px 6px rgba(33,48,75,.09);
  transition: left 0.13s;
}
#cookie-modal .cookie-toggle:checked:before {
  left: 18px;
}
#cookie-modal .cookie-category-desc {
  margin-left: 44px;
  color: var(--muted);
  margin-bottom: 6px;
  font-size: 0.97rem;
}
#cookie-modal .modal-actions {
  display: flex;
  gap: 13px;
  margin-top: 12px;
  justify-content: flex-end;
}
#cookie-modal .cookie-save-btn {
  background: var(--secondary);
  color: var(--primary);
  font-weight: 600;
  font-family: var(--font-display);
  border: none;
  padding: 9px 24px;
  border-radius: var(--radius-btn);
  cursor: pointer;
  transition: background 0.18s, color 0.18s;
}
#cookie-modal .cookie-save-btn:hover, #cookie-modal .cookie-save-btn:focus {
  background: #dbb90a;
  color: #fff;
}

@media (max-width: 550px) {
  #cookie-modal .cookie-modal-dialog { padding: 23px 8px 21px 8px;}
  #cookie-modal h2 { font-size: 1.05rem; }
}

/* ===== Animations ===== */
@media (prefers-reduced-motion: no-preference) {
  .cta-primary, .main-nav a, .features .feature-grid > div, .card {
    transition: box-shadow 0.17s, background 0.19s, color 0.12s, transform 0.14s;
  }
  .cta-primary, button {
    transition: background 0.19s, color 0.18s, box-shadow 0.13s, transform 0.13s;
  }
}

/* ===== Accessibility ===== */
@media (hover: none) and (pointer: coarse) {
  a:hover, button:hover, .cta-primary:hover,
  .main-nav a:hover, .footer-nav a:hover {
    filter: none;
  }
}
