/* ========================  CSS RESET & BASE  ======================== */
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,
main, 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 {
  font-size: 16px;
  scroll-behavior: smooth;
  /* Enable font smoothing */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
body {
  font-family: 'Roboto', Arial, Helvetica, sans-serif;
  font-weight: 400;
  color: #172535;
  background: #fff;
  min-height: 100vh;
  line-height: 1.6;
  letter-spacing: 0.01em;
}
*, *:before, *:after {
  box-sizing: inherit;
}
ul, ol {
  list-style: none;
}
a {
  color: inherit;
  text-decoration: none;
  background: none;
  transition: color 0.2s, background 0.2s;
}
img, svg {
  vertical-align: middle;
  max-width: 100%;
  height: auto;
  border: 0;
  display: inline-block;
}
button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  line-height: inherit;
  color: inherit;
  background: none;
  border: none;
  outline: none;
  box-shadow: none;
}

/* =======================  COLOR VARIABLES (with fallback) ======================= */
:root {
  --primary: #254C70;
  --secondary: #A9C2CB;
  --accent: #F9EBCD;
  --dark: #172535;
  --white: #ffffff;
  --light: #F6FAFE;
  --card-bg: #fff;
  --shadow: 0 4px 24px 0 rgba(37,76,112,0.09);
  --border-radius: 18px;
  --transition: 0.3s cubic-bezier(.4,0,.2,1);
  --button-hover: #254C70;
}

/* =======================  TYPOGRAPHY BOLD + MODERN ======================= */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: 0.01em;
}
h1 {
  font-size: 2.5rem;
  margin-bottom: 18px;
  line-height: 1.15;
}
h2 {
  font-size: 2rem;
  margin-bottom: 14px;
  line-height: 1.18;
}
h3 {
  font-size: 1.25rem;
  margin-bottom: 10px;
  line-height: 1.22;
}
h4 {
  font-size: 1.03125rem;
  margin-bottom: 8px;
  font-weight: 700;
}

.subheadline {
  font-family: 'Roboto', Arial, Helvetica, sans-serif;
  font-size: 1.125rem;
  color: var(--secondary);
  font-weight: 500;
  margin-bottom: 18px;
  max-width: 600px;
}
p {
  margin-bottom: 0.9em;
  color: var(--dark);
  font-size: 1rem;
}
strong, b {
  font-weight: 700;
}

/* --- Typography scaling for small screens --- */
@media (max-width: 768px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.375rem; }
  h3 { font-size: 1.125rem; }
}

/* =======================  CONTAINER & LAYOUT  ======================= */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* --- Utility flex containers --- */
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: flex-start;
}
.features-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 10px;
}
.footer-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 16px;
}

@media (max-width: 1020px) {
  .footer-grid {
    gap: 24px;
    flex-direction: column;
    align-items: stretch;
  }
}

/* --- General section spacing --- */
section {
  margin-bottom: 60px;
  padding: 40px 0 40px 0;
  background: none;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.cta-section {
  background: var(--accent);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  margin-bottom: 60px;
  padding: 40px 0;
}

@media (max-width: 768px) {
  section, .section, .cta-section {
    padding: 24px 0;
    margin-bottom: 40px;
  }
}

/* =======================  HEADER & NAVIGATION  ======================= */
header {
  background: var(--white);
  border-bottom: 2px solid var(--accent);
  padding: 0;
  position: sticky;
  top: 0; left: 0; width: 100%;
  z-index: 100;
}
header .container {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 24px;
  justify-content: space-between;
  min-height: 70px;
}
header nav {
  display: flex;
  flex-direction: row;
  gap: 20px;
  align-items: center;
}
header nav a {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1rem;
  color: var(--primary);
  font-weight: 700;
  letter-spacing: 0.02em;
  padding: 10px 0;
  border-bottom: 2px solid transparent;
  transition: color 0.2s, border-bottom 0.2s;
}
header nav a:hover, header nav a:focus {
  color: var(--dark);
  border-bottom: 2px solid var(--secondary);
}
.cta-btn {
  background: var(--primary);
  color: var(--white) !important;
  border-radius: 100px;
  padding: 12px 28px;
  font-size: 1rem;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 800;
  letter-spacing: .02em;
  box-shadow: 0 4px 16px 0 rgba(37,76,112,0.12);
  border: none;
  outline: none;
  margin-left: 10px;
  transition: background var(--transition), transform 0.15s;
  cursor: pointer;
  display: inline-block;
}
.cta-btn:hover, .cta-btn:focus {
  background: var(--secondary);
  color: var(--primary) !important;
  transform: translateY(-2px) scale(1.02);
}

/* --- Hamburger / mobile nav --- */
.mobile-menu-toggle {
  display: none;
  background: var(--primary);
  color: var(--white);
  font-size: 2rem;
  border-radius: 50%;
  border: none;
  padding: 8px 16px;
  cursor: pointer;
  margin-left: 16px;
  transition: background 0.2s, color 0.2s;
  z-index: 210;
}
.mobile-menu-toggle:focus,
.mobile-menu-toggle:hover {
  background: var(--secondary);
  color: var(--primary);
}
.mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  height: 100vh;
  width: 100vw;
  max-width: 400px;
  background: var(--primary);
  color: var(--white);
  z-index: 220;
  box-shadow: -2px 0 32px 0 rgba(37,76,112,0.19);
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(.4,0,.2,1);
  pointer-events: none;
  opacity: 0;
}
.mobile-menu.open {
  transform: translateX(0);
  pointer-events: all;
  opacity: 1;
}
.mobile-menu-close {
  background: none;
  color: var(--white);
  font-size: 2rem;
  border: none;
  align-self: flex-end;
  margin: 20px 24px 0 0;
  cursor: pointer;
  transition: color 0.2s;
  z-index: 222;
}
.mobile-menu-close:focus, .mobile-menu-close:hover {
  color: var(--secondary);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
  margin-top: 36px;
  padding: 0 36px 36px 36px;
}
.mobile-nav a {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 700;
  font-size: 1.4rem;
  color: var(--white);
  padding: 8px 0;
  transition: color 0.2s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  color: var(--accent);
}

@media (max-width: 1020px) {
  header nav { display: none; }
  .mobile-menu-toggle { display: block; }
}
@media (min-width: 1021px) {
  .mobile-menu { display: none !important; }
}
@media (max-width: 1020px) {
  .footer-grid { flex-direction: column; gap: 24px; }
}

/* =======================  HERO SECTION  ======================= */
.hero {
  background: linear-gradient(120deg, var(--accent) 60%, var(--secondary) 100%);
  padding: 56px 0 40px 0;
  border-radius: 0 0 40px 40px;
  box-shadow: 0 10px 32px 0 rgba(169,194,203,0.13);
  min-height: 280px;
}
.hero .container {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
}
.hero .content-wrapper {
  flex-direction: column;
  gap: 20px;
  align-items: flex-start;
}
.hero h1 {
  color: var(--primary);
  font-size: 2.7rem;
  line-height: 1.14;
  font-weight: 800;
  letter-spacing: 0.01em;
}
.hero .cta-btn {
  margin-top: 10px;
}
@media (max-width: 768px) {
  .hero {
    padding: 32px 0 24px 0;
    border-radius: 0 0 24px 24px;
    min-height: 160px;
  }
}

/* =======================  CARDS, FEATURES, TESTIMONIALS ======================= */
.features-grid > div,
.card, .faq-list > div {
  background: var(--card-bg);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 240px;
  min-height: 220px;
  gap: 10px;
  margin-bottom: 20px;
  transition: box-shadow 0.19s, transform 0.15s;
}
.features-grid > div:hover,
.card:hover,.faq-list > div:hover {
  box-shadow: 0 8px 28px 0 rgba(37,76,112,0.18);
  transform: translateY(-4px) scale(1.01);
}
.features-grid img {
  width: 42px;
  height: 42px;
  margin-bottom: 8px;
}
.features-grid h3 {
  color: var(--primary);
  font-size: 1.18rem;
  font-weight: 800;
  margin-bottom: 2px;
}
.features-grid p {
  color: var(--dark);
  font-size: 1rem;
}
@media (max-width: 900px) {
  .features-grid {
    flex-direction: column;
  }
  .features-grid > div {
    min-width: 100%;
    width: 100%;
    min-height: 120px;
  }
}

/* Testimonials */
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
  padding: 28px 24px;
  background: var(--light);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  margin-bottom: 20px;
  margin-right: 10px;
  max-width: 480px;
  min-width: 220px;
  transition: box-shadow 0.19s, transform 0.15s;
  border-left: 6px solid var(--secondary);
}
.testimonial-card p {
  color: var(--dark);
  font-size: 1.1rem;
  font-family: 'Roboto', Arial, Helvetica, sans-serif;
  font-style: italic;
}
.testimonial-card strong {
  color: var(--primary);
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 700;
  font-size: 1.02rem;
}
.testimonial-card:hover {
  box-shadow: 0 8px 32px 0 rgba(37,76,112,0.19);
  transform: translateY(-3px) scale(1.018);
}

@media (min-width: 769px) {
  .content-wrapper {
    flex-direction: row;
    gap: 28px;
    flex-wrap: wrap;
  }
  .testimonial-card {
    flex: 1 0 280px;
  }
}
@media (max-width: 768px) {
  .testimonial-card, .features-grid > div {
    min-width: 100%;
    max-width: 100%;
  }
}

/* =======================  TEXT & IMAGE SECTION ======================= */
.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}

@media (max-width: 768px) {
  .text-image-section { flex-direction: column; gap: 18px; padding: 0; }
}

.text-section {
  display: flex;
  flex-direction: column;
  gap: 15px;
  align-items: flex-start;
  /* For .feature-item if exists */
}

/* =======================  FAQ LIST ======================= */
.faq-list {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: flex-start;
  align-items: flex-start;
  margin-top: 18px;
}
.faq-list > div h3 {
  color: var(--primary);
  font-size: 1.03rem;
  margin-bottom: 6px;
}
.faq-list > div p {
  font-size: 0.99rem;
  color: var(--dark);
}

@media (max-width: 800px) {
  .faq-list {
    flex-direction: column;
    gap: 16px;
  }
}

/* =======================  QUICK TIPS (GUIDE) ======================= */
.quick-tips {
  background: var(--secondary);
  border-radius: 14px;
  padding: 22px 24px;
  margin-top: 12px;
  box-shadow: 0 3px 16px rgba(169,194,203,0.13);
}
.quick-tips h4 {
  color: var(--primary);
  font-size: 1.13rem;
  font-weight: 700;
  margin-bottom: 8px;
}
.quick-tips ul {
  padding-left: 22px;
}
.quick-tips li {
  list-style: disc;
  color: var(--dark);
  font-size: .99rem;
  margin-bottom: 7px;
}

/* =======================  LISTS & ELEMENTS  ======================= */
ul, ol {
  margin-bottom: 0.7em;
}
ul ul,
ol ol {
  margin-bottom: 0;
}
ul {
  list-style: disc inside;
  padding-left: 18px;
}
li {
  margin-bottom: 0.4em;
  line-height: 1.6;
}

/* =======================  BUTTONS & FORMS ======================= */
button, .btn, .cta-btn {
  outline: none;
  cursor: pointer;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 700;
  border-radius: 100px;
  transition: background var(--transition), color var(--transition), transform 0.15s;
}
.btn-primary {
  background: var(--primary);
  color: var(--white);
  padding: 10px 28px;
  font-size: 1.1rem;
  border: none;
  box-shadow: var(--shadow);
}
.btn-primary:hover, .btn-primary:focus {
  background: var(--secondary);
  color: var(--primary);
}
.btn-secondary {
  background: var(--secondary);
  color: var(--primary);
  padding: 10px 24px;
  border: none;
}
.btn-secondary:hover, .btn-secondary:focus {
  background: var(--primary);
  color: var(--white);
}

/* =======================  MAP PLACEHOLDER (Contact Page) ======================= */
.map-placeholder {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 10px;
  background: var(--accent);
  border-radius: 10px;
  padding: 10px 16px;
  font-size: 1rem;
  color: var(--primary);
  font-weight: 700;
}

/* =======================  FOOTER ======================= */
footer {
  background: #F6FAFE;
  border-top: 2px solid var(--accent);
  margin-top: 80px;
  padding-top: 40px;
}
.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: flex-start;
}
.footer-brand img {
  width: 52px;
  height: 52px;
}
footer h4 {
  font-size: 1.09rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 10px;
}
footer nav a {
  display: block;
  padding: 4px 0;
  font-family: 'Roboto', Arial, Helvetica, sans-serif;
  font-size: 1rem;
  color: var(--primary);
  font-weight: 700;
  margin-bottom: 2px;
  transition: color 0.16s;
}
footer nav a:hover,
footer nav a:focus {
  color: var(--secondary);
}
footer ul {
  list-style: none;
  padding-left: 0;
}
footer li {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--dark);
  font-size: 0.97rem;
  margin-bottom: 6px;
}
.footer-bottom {
  border-top: 1px solid #e4eaf2;
  margin-top: 24px;
  padding: 16px 0 0 0;
  text-align: left;
  color: #6C7B92;
  font-size: 0.98rem;
}
@media (max-width: 900px) {
  .footer-grid { flex-direction: column; gap: 24px; }
  footer { padding-top: 22px; }
}

/* =======================  COOKIE CONSENT BANNER & MODAL ======================= */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 990;
  background: var(--card-bg);
  border-top: 3px solid var(--primary);
  box-shadow: 0 -8px 32px rgba(37,76,112,0.12);
  padding: 18px 20px;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 24px;
  justify-content: space-between;
  min-height: 60px;
  font-family: 'Roboto', Arial, Helvetica, sans-serif;
  font-size: 1rem;
  transition: transform 0.35s, opacity 0.19s;
}
.cookie-banner.hidden {
  transform: translateY(100%);
  opacity: 0;
  pointer-events: none;
}
.cookie-banner p {
  color: var(--primary);
  font-size: 1rem;
  margin-right: 24px;
  max-width: 620px;
}
.cookie-banner .cookie-btns {
  display: flex;
  flex-direction: row;
  gap: 12px;
  align-items: center;
}
.cookie-banner button {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 700;
  padding: 9px 22px;
  border-radius: 100px;
  border: none;
  font-size: 0.98rem;
  transition: background 0.18s, color 0.18s, box-shadow 0.18s;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(37,76,112,0.09);
}
.cookie-banner .accept-btn {
  background: var(--primary);
  color: var(--white);
}
.cookie-banner .accept-btn:hover, .cookie-banner .accept-btn:focus {
  background: var(--secondary);
  color: var(--primary);
}
.cookie-banner .reject-btn {
  background: #ececec;
  color: var(--primary);
}
.cookie-banner .reject-btn:hover, .cookie-banner .reject-btn:focus {
  background: #dedede;
  color: var(--primary);
}
.cookie-banner .settings-btn {
  background: var(--secondary);
  color: var(--primary);
}
.cookie-banner .settings-btn:hover, .cookie-banner .settings-btn:focus {
  background: var(--primary);
  color: var(--white);
}
@media (max-width: 768px) {
  .cookie-banner {
    flex-direction: column;
    gap: 18px;
    align-items: flex-start;
    padding: 16px 10px;
  }
  .cookie-banner p {
    margin-right: 0;
    font-size: 0.99rem;
  }
}
/* Cookie modal / settings */
.cookie-modal {
  position: fixed;
  left: 0; top: 0; right: 0; bottom: 0;
  width: 100vw; height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  z-index: 9999;
  background: rgba(37,76,112,0.43);
  transition: opacity 0.2s;
  opacity: 1;
  pointer-events: all;
}
.cookie-modal.hidden {
  opacity: 0; pointer-events: none;
}
.cookie-modal-dialog {
  background: var(--card-bg);
  border-radius: 16px 16px 0 0;
  box-shadow: 0 -10px 48px 0 rgba(37,76,112,0.22);
  padding: 38px 28px 28px 28px;
  width: 100%;
  max-width: 420px;
  transform: translateY(0);
  animation: modalSlideUp 0.33s cubic-bezier(.4,0,.2,1);
}
@keyframes modalSlideUp {
  from { transform: translateY(100px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
.cookie-modal-dialog h3 {
  color: var(--primary);
  font-size: 1.12rem;
  margin-bottom: 12px;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 700;
}
.cookie-options {
  display: flex;
  flex-direction: column;
  gap: 22px;
  margin: 16px 0 18px 0;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 16px;
}
.cookie-category label {
  font-family: 'Roboto', Arial, Helvetica, sans-serif;
  font-size: 1rem;
  font-weight: 600;
  color: var(--primary);
  cursor: pointer;
}
.cookie-category input[type="checkbox"] {
  accent-color: var(--primary);
  width: 20px;
  height: 20px;
}
.cookie-category.disabled label {
  opacity: 0.5;
  cursor: not-allowed;
}
.cookie-modal-dialog .cookie-modal-actions {
  display: flex;
  gap: 12px;
  margin-top: 16px;
}
/* =======================  RESPONSIVE LAYOUT ADJUSTMENTS ======================= */
@media (max-width: 900px) {
  .container { padding: 0 12px; }
}
@media (max-width: 768px) {
  .content-wrapper { flex-direction: column; gap: 18px; }
  section, .section { padding: 24px 0; }
}
@media (max-width: 600px) {
  .container { padding: 0 6px; }
  .footer-grid { gap: 18px; }
}

/* =======================  MICRO-INTERACTIONS & EFFECTS ======================= */
.card, .testimonial-card, .faq-list > div, .features-grid > div {
  transition: box-shadow 0.2s, transform 0.16s;
}
.card:hover, .testimonial-card:hover, .faq-list > div:hover, .features-grid > div:hover {
  box-shadow: 0 8px 28px 0 rgba(37,76,112,0.20);
  transform: translateY(-5px) scale(1.01);
}
.cta-btn:active, .card:active { transform: scale(.98) translateY(0); }

/* =======================  GEOMETRIC DECORATIVE ELEMENTS (USING CSS) ======================= */
.hero .container::before {
  content: "";
  position: absolute;
  top: -80px; left: 70%;
  width: 120px; height: 120px;
  background: var(--primary);
  border-radius: 30% 60% 48% 52%/50% 55% 45% 50%;
  opacity: 0.13;
  z-index: 0;
  pointer-events: none;
  display: none;
}
@media (min-width: 1000px) {
  .hero .container { position: relative; }
  .hero .container::before { display: block; }
}

/* =======================  MISC UTILITIES ======================= */
.mr-1 { margin-right: 8px; }
.flex-between { display: flex !important; justify-content: space-between !important; align-items: center !important; }
.mb-2 { margin-bottom: 16px !important; }

/* =======================  Z-INDEX LAYERING  ======================= */
.mobile-menu,
.cookie-modal, .cookie-banner {
  z-index: 9999;
}
header, nav { z-index: 110; }

/* =======================  ACCESSIBILITY FOCUS STATES ======================= */
a:focus, .cta-btn:focus, button:focus {
  outline: 2px solid var(--secondary);
  outline-offset: 2px;
}

/* ========== END ========= */

