/* ----------------- CSS RESET and 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, 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: inherit; font-size: 100%;
  vertical-align: baseline;
  box-sizing: border-box; 
}

article, aside, details, figcaption, figure, footer, header, hgroup, menu, nav, section {
  display: block;
}
body {
  line-height: 1; background: #f5f8fa; color: #22272B;
}
ol, ul { list-style: none; }
blockquote, q { quotes: none; }
blockquote:before, blockquote:after, q:before, q:after { content: ''; content: none; }
table { border-collapse: collapse; border-spacing: 0; }
img { max-width: 100%; display: block; }

/* ----------------- BRAND & FONT ----------------- */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@600;700&family=Open+Sans:wght@400;600&display=swap');
:root {
  --color-primary: #18436e;
  --color-primary-dark: #13385a;
  --color-secondary: #f5f8fa;
  --color-white: #ffffff;
  --color-accent: #cf9f2d;
  --color-accent-dark: #b78209;
  --color-text: #22272B;
  --color-contrast: #18436e;
  --color-faint: #e3e8ec;
  --shadow-elevate: 0 2px 10px rgba(33, 43, 59, 0.08);
  --font-display: 'Montserrat', Arial, sans-serif;
  --font-body: 'Open Sans', Arial, sans-serif;
  --radius-base: 12px;
  --radius-small: 8px;
  --radius-pill: 40px;
  --transition-fast: 0.19s cubic-bezier(.4,0,.2,1);
  --transition-mid: 0.33s cubic-bezier(.4,0,.2,1);
}
body {
  font-family: var(--font-body);
  font-size: 16px; color: var(--color-text); background: var(--color-secondary);
  min-height: 100vh;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--color-primary);
  letter-spacing: 0.01em;
}
h1 { font-size: 2.5rem; line-height: 1.15; margin-bottom: 16px; text-transform: uppercase; }
h2 { font-size: 2rem; line-height: 1.2; margin-bottom: 16px; text-transform: uppercase; }
h3 { font-size: 1.2rem; font-weight: 600; letter-spacing: 0.04em; margin-bottom: 8px; }
h4, h5, h6 { font-size: 1rem; font-weight: 600; margin-bottom: 8px; }
p, ul, ol { font-size: 1rem; line-height: 1.7; }
strong { font-weight: 700; }
.subheadline {
  font-size: 1.15rem; font-family: var(--font-body); color: var(--color-primary-dark); font-weight: 600;
  margin-bottom: 16px;
}

/* ----------------- BASICS & LAYOUT ----------------- */
.container {
  width: 100%; max-width: 1180px; margin-left: auto; margin-right: auto; padding: 0 18px;
  display: flex; flex-direction: column; 
}
.content-wrapper {
  width: 100%; display: flex; flex-direction: column; gap: 20px;
  margin-bottom: 20px; /* in compliance with required spacing */
}

.section {
  margin-bottom: 60px; padding: 40px 20px; background: var(--color-white); border-radius: var(--radius-base);
}

.features-grid, .card-container, .testimonial-list, .content-grid {
  display: flex; flex-wrap: wrap; gap: 24px; justify-content: flex-start;
}
.card-container { gap: 24px; }
.card { margin-bottom: 20px; position: relative; border-radius: var(--radius-base); box-shadow: var(--shadow-elevate); background: var(--color-white); }
.content-grid { 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; padding: 20px;
  margin-bottom: 20px; background: var(--color-faint); border-radius: var(--radius-base);
  box-shadow: 0 1px 4px rgba(24,67,110, 0.07);
  border-left: 5px solid var(--color-accent);
}
.feature-item,
.features-grid > .feature {
  display: flex; flex-direction: column; align-items: flex-start; gap: 15px;
  background: var(--color-white);
  border: 1.5px solid var(--color-faint);
  border-radius: var(--radius-small);
  padding: 24px 20px; box-shadow: var(--shadow-elevate);
  min-width: 220px; flex: 1 1 260px; max-width: 350px;
  transition: box-shadow var(--transition-fast), transform var(--transition-fast);
}
.features-grid > .feature:hover {
  box-shadow: 0 6px 30px rgba(33,67,110,0.12);
  transform: translateY(-4px) scale(1.02);
}

/* ----------------- HERO & CTA ----------------- */
section .cta, a.cta, .cta {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 14px 32px; 
  font-family: var(--font-display); font-size: 1.1rem; letter-spacing: 0.04em;
  font-weight: 700; color: #fff; background: var(--color-accent);
  border: none; border-radius: var(--radius-pill); cursor: pointer; text-transform: uppercase;
  box-shadow: 0 2px 10px rgba(207,159,45,0.11);
  transition: background var(--transition-fast), box-shadow var(--transition-fast), transform var(--transition-fast), color var(--transition-fast);
  margin-top: 14px;
  outline: none;
  text-decoration: none;
}
.cta:hover, .cta:focus {
  background: var(--color-primary);
  color: #fff;
  box-shadow: 0 3px 18px rgba(24,67,110,0.15);
  transform: translateY(-2px);
}
/* Main nav CTA button distinct */
nav .cta {
  margin-left: 18px; background: var(--color-accent); color: #fff; border: none;
}
nav .cta:hover, nav .cta:focus {
  background: var(--color-primary); color: #fff;
}

/* ----------------- HEADER & NAVIGATION ----------------- */
header {
  background: var(--color-primary);
  box-shadow: 0 2px 12px rgba(24,67,110, 0.06);
  position: sticky;
  top: 0;
  width: 100%;
  z-index: 50;
}
header .container {
  flex-direction: row; align-items: center; justify-content: space-between;
  min-height: 68px;
}
.logo {
  display: flex; align-items: center;
  margin-right: 25px;
}
.logo img {
  height: 36px; width: auto;
  display: block;
  filter: drop-shadow(0 1px 0 rgba(255,255,255,0.1));
}
.main-nav {
  display: flex; flex-direction: row; align-items: center; gap: 19px;
}
.main-nav a {
  font-family: var(--font-display); font-weight: 600;
  color: #fff; text-decoration: none;
  letter-spacing: 0.02em; font-size: 1rem;
  padding: 10px 4px;
  transition: color var(--transition-fast), border-bottom var(--transition-fast);
  border-bottom: 2px solid transparent;
}
.main-nav a:hover, .main-nav a:focus {
  color: var(--color-accent);
  border-bottom: 2.5px solid var(--color-accent);
}
.main-nav .cta { color: #fff; }

/* ----- MOBILE NAVIGATION ----- */
.mobile-menu-toggle {
  display: none; background: none; border: none;
  color: #fff; font-size: 2.1rem; cursor: pointer;
  margin-left: 28px; z-index: 150;
}
.mobile-menu {
  display: none;
  position: fixed; top: 0; left: 0; width: 100vw; height: 100vh;
  background: rgba(24, 67, 110, 0.98);
  flex-direction: column; align-items: flex-start; justify-content: flex-start;
  z-index: 2000;
  padding: 0 0 40px 0;
  transform: translateX(100vw);
  transition: transform var(--transition-mid);
}
.mobile-menu.active {
  display: flex;
  transform: translateX(0);
}
.mobile-menu-close {
  background: none; border: none;
  color: #fff; font-size: 2.2rem; align-self: flex-end;
  margin: 24px 28px 18px 0; cursor: pointer;
}
.mobile-nav {
  display: flex; flex-direction: column; gap: 26px;
  width: 100%; align-items: center;
}
.mobile-nav a {
  color: #fff; font-size: 1.24rem; font-family: var(--font-display);
  font-weight: 700; letter-spacing: 0.05em; text-decoration: none;
  padding: 15px 0;
  width: 80%; text-align: center; border-radius: var(--radius-pill);
  transition: background var(--transition-fast), color var(--transition-fast);
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: var(--color-accent);
  color: var(--color-primary);
}

@media (max-width: 1024px) {
  .main-nav { gap: 13px; }
}
@media (max-width: 900px) {
  header .container { padding: 0 8px; }
  h1 { font-size: 2rem; }
  h2 { font-size: 1.45rem; }
}
@media (max-width: 768px) {
  .main-nav { display: none !important; }
  .mobile-menu-toggle { display: block; }
  .logo img { height: 32px; }
}

/* Activate .mobile-menu when opened by JS class */

/* ----------------- SECTION & BLOCKS ----------------- */
section {
  margin-bottom: 60px;
  padding: 40px 0;
  background: transparent;
}
.content-wrapper.text-section {
  background: var(--color-white);
  border-radius: var(--radius-base);
  box-shadow: var(--shadow-elevate);
  padding: 30px 24px;
}
.text-section ul, .text-section ol {
  padding-left: 30px; margin-bottom: 16px;
}
.text-section ul li, .text-section ol li { margin-bottom: 12px; position: relative; }
.text-section ul li:before {
  content: ""; display: inline-block;
  width: 10px; height: 10px;
  background: var(--color-primary);
  border-radius: 2px;
  margin-right: 13px;
  vertical-align: middle;
}
.text-section ol li { counter-increment: li; }
.text-section ol li:before {
  content: counter(li) "."; color: var(--color-accent); font-family: var(--font-display); margin-right: 12px; font-weight: bold;
}
.text-section h2 { margin-top: 28px; }

.info-box {
  background: var(--color-primary);
  color: #fff;
  border-radius: var(--radius-small);
  padding: 20px 18px;
  font-weight: 500;
  margin-top: 14px; margin-bottom: 14px;
}
.disclaimer {
  background: #fff8e1;
  color: #5d5d5d;
  border-left: 4px solid var(--color-accent);
  border-radius: var(--radius-small);
  padding: 12px 16px;
  margin-bottom: 14px;
  font-size: 0.97rem;
}

/* ----------------- LISTS & CARDS ----------------- */
.service-list {
  display: flex; flex-direction: column; gap: 16px;
  margin-bottom: 14px;
}
.service-list li {
  padding-left: 18px;
  position: relative;
}
.service-list li:before {
  content: "▢";
  position: absolute; left: 0;
  color: var(--color-accent);
  font-size: 1.12em;
  font-family: var(--font-display);
}

.card {
  background: var(--color-white);
  border: 1.5px solid var(--color-faint);
  box-shadow: var(--shadow-elevate);
  border-radius: var(--radius-base);
  margin-bottom: 20px; transition: box-shadow var(--transition-fast);
}
.card:hover { box-shadow: 0 5px 18px rgba(24,67,110,0.11); }

/* Testimonial Cards */
.testimonial-card {
  background: var(--color-faint);
  color: #212121;
  border-left: 5px solid var(--color-accent);
  border-radius: var(--radius-small);
  font-size: 1.07rem;
  font-style: italic;
  box-shadow: 0 1px 5px rgba(24,67,110,0.07);
  margin-bottom: 20px;
}
.testimonial-meta {
  font-family: var(--font-display); font-weight: 700; font-size: 1em;
  color: var(--color-accent-dark); letter-spacing: 0.01em;
  margin-top: 4px;
}

.features-grid {
  row-gap: 24px;
  column-gap: 24px;
  width: 100%;
  flex-wrap: wrap;
  justify-content: flex-start;
}
.features-grid > .feature {
  min-width: 220px; flex: 1 1 250px; max-width: 345px; margin-bottom: 20px;
}
.feature img {
  height: 48px; width: 48px; background: var(--color-secondary); border-radius: var(--radius-small);
}


/* ----------------- CONTACT BLOCKS ----------------- */
.contact-info-block {
  display: flex; flex-wrap: wrap; gap: 30px; align-items: flex-start;
  background: var(--color-white);
  border-radius: var(--radius-base);
  box-shadow: var(--shadow-elevate);
  padding: 26px 22px; margin-bottom: 24px;
}
.contact-details {
  flex: 1 1 240px; display: flex; flex-direction: column; gap: 16px;
  font-size: 1rem;
}
.contact-details img {
  width: 20px; height: 20px; margin-right: 10px; vertical-align: middle; display: inline-block;
}
.contact-map-placeholder {
  flex: 1 1 340px;
  background: var(--color-faint);
  min-height: 120px;
  border-radius: var(--radius-base);
  display: flex; align-items: center; justify-content: center;
  color: var(--color-primary-dark);
  font-size: 1.08rem;
  font-family: var(--font-display);
  font-style: italic;
}

/* ----------------- FOOTER ----------------- */
footer { background: #fff; box-shadow: 0 -2px 10px rgba(33,43,59,0.07); margin-top: 32px; }
footer .container { flex-direction: row; justify-content: space-between; align-items: center; padding: 28px 10px; }
.footer-menu {
  display: flex; flex-wrap: wrap; gap: 24px;
}
.footer-menu a {
  color: var(--color-primary-dark); font-family: var(--font-display);
  font-size: 1rem; font-weight: 600; text-decoration: none;
  transition: color var(--transition-fast);
}
.footer-menu a:hover, .footer-menu a:focus {
  color: var(--color-accent);
}
.footer-info {
  font-size: 0.99em; color: #717e8a; margin-top: 10px;
}

@media (max-width: 800px) {
  footer .container { flex-direction: column; gap: 17px; align-items: flex-start; }
  .footer-menu { gap: 13px 21px; }
}

/* ----------------- FAQ ----------------- */
.faq-list {
  display: flex; flex-direction: column; gap: 22px;
}
.faq-item {
  background: var(--color-faint);
  border-left: 4px solid var(--color-accent);
  border-radius: var(--radius-small);
  padding: 18px 16px; box-shadow: var(--shadow-elevate);
}
.faq-item h3 {
  margin-bottom: 7px; color: var(--color-primary); font-size: 1.06rem; text-transform: none;
}

/* ----------------- RESPONSIVE & FLEXBOX ADJUSTMENTS ----------------- */
@media (max-width: 900px) {
  .features-grid > .feature,
  .feature-item {
    min-width: 60vw;
    max-width: 90vw;
  }
  .contact-info-block { flex-direction: column; }
}
@media (max-width: 640px) {
  .content-wrapper, .text-section, .service-list, .container, .testimonial-list { gap: 12px; }
  .section { padding: 28px 4px; }
  .content-wrapper.text-section { padding: 19px 7px; }
  .testimonial-card { font-size: 0.99rem; }
  .features-grid { gap: 12px; }
  .contact-info-block { flex-direction: column; padding: 17px 6px; }
  .contact-details { font-size: .99rem; gap: 9px; }
  .contact-map-placeholder { min-height: 64px; font-size: 0.96rem; }
  .footer-menu { gap: 10px 11px; }
  .footer-info { font-size: 0.93rem; }
}
@media (max-width: 768px) {
  .container { padding: 0 6px; }
  .content-wrapper { gap: 10px; }
  .text-image-section { flex-direction: column; align-items: flex-start; gap: 22px; }
  .section { padding: 18px 0; }
  h1 { font-size: 1.35rem; }
  h2 { font-size: 1.08rem; }
}

/* ----------------- HOVER EFFECTS & MICRO-INTERACTIONS ----------------- */
.card, .feature, .cta, .faq-item, .testimonial-card {
  transition: box-shadow 0.15s cubic-bezier(.4,0,.2,1),
              transform 0.17s cubic-bezier(.4,0,.2,1),
              background 0.17s cubic-bezier(.4,0,.2,1),
              color 0.18s cubic-bezier(.41,0,.2,1);
}
.card:hover, .faq-item:hover, .testimonial-card:hover {
  box-shadow: 0 8px 24px rgba(24,67,110,0.10);
  transform: translateY(-2px) scale(1.01);
}

/* Links */
a {
  color: var(--color-primary); text-decoration: underline; transition: color var(--transition-fast);
}
a:hover, a:focus {
  color: var(--color-accent);
}
a.logo { text-decoration: none; }

/* ------------ GEOMETRIC/STRUCTURED DECORATIVE ACCENTS ------------ */
.section, .content-wrapper, .feature, .faq-item, .contact-info-block {
  /* Use subtle SVG background accents if wanted */
  position: relative;
  z-index: 1;
}
.section:after {
  content: "";
  display: block;
  position: absolute;
  bottom: 2px; right: 2px;
  width: 44px; height: 44px;
  background: url('data:image/svg+xml,%3Csvg width="44" height="44" xmlns="http://www.w3.org/2000/svg"%3E%3Crect fill="%23cf9f2d" fill-opacity="0.13" x="4" y="4" width="36" height="36" rx="12"/%3E%3C/svg%3E') no-repeat center/contain;
  z-index: 0;
  opacity: 0.8;
  pointer-events: none;
}

/* ----------------- COOKIE CONSENT BANNER & MODAL ----------------- */
.cookie-banner {
  display: flex; flex-direction: row; align-items: center; justify-content: space-between;
  position: fixed; left: 0; bottom: 0; width: 100vw;
  background: var(--color-primary-dark); color: #fff;
  padding: 22px 14px; box-shadow: 0 -2px 24px rgba(24,67,110,0.11);
  z-index: 3000;
  font-size: 1rem;
  font-family: var(--font-body);
  transition: transform 0.33s cubic-bezier(.4,0,.2,1);
}
.cookie-banner.hide { transform: translateY(100%); pointer-events: none; opacity: 0; }
.cookie-banner-text { max-width: 62vw; }
.cookie-banner-buttons {
  display: flex; gap: 13px;
}
.cookie-banner button {
  border: none; outline: none; cursor: pointer; font-family: var(--font-display);
  border-radius: var(--radius-pill); font-weight: 600;
  font-size: 1rem; padding: 10px 20px;
  transition: background var(--transition-fast), color var(--transition-fast);
}
.cookie-banner .cookie-accept {
  background: var(--color-accent); color: #fff;
}
.cookie-banner .cookie-accept:hover, .cookie-banner .cookie-accept:focus {
  background: var(--color-primary);
}
.cookie-banner .cookie-reject {
  background: transparent; color: #fff;
  border: 2px solid var(--color-accent);
}
.cookie-banner .cookie-reject:hover, .cookie-banner .cookie-reject:focus {
  background: var(--color-accent); color: #fff;
}
.cookie-banner .cookie-settings {
  background: var(--color-primary-dark); border: 2px solid var(--color-faint); color: #fff;
}
.cookie-banner .cookie-settings:hover, .cookie-banner .cookie-settings:focus {
  background: var(--color-accent); color: #fff;
}

/* Cookie Modal */
.cookie-modal-backdrop {
  position: fixed; left: 0; top: 0; width: 100vw; height: 100vh;
  background: rgba(33,67,110,0.33); z-index: 4000;
  display: none; align-items: center; justify-content: center;
  animation: cookieFadeIn 0.31s cubic-bezier(.4,0,.2,1);
}
.cookie-modal-backdrop.active { display: flex; }
@keyframes cookieFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
.cookie-modal {
  background: #fff;
  color: var(--color-primary-dark);
  border-radius: var(--radius-base);
  padding: 36px 26px 30px 26px;
  box-shadow: 0 12px 52px rgba(24,67,110,0.20);
  max-width: 390px; width: 95vw;
  display: flex; flex-direction: column; align-items: flex-start;
  animation: scaleInCookie 0.32s cubic-bezier(.4,0,.2,1);
}
@keyframes scaleInCookie {
  0% { transform: scale(0.86); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}
.cookie-modal h2 {
  color: var(--color-accent-dark); margin-bottom: 10px; font-size: 1.12em;
}
.cookie-modal-category {
  display: flex; flex-direction: row; align-items: center; gap: 12px;
  width: 100%; margin-bottom: 14px;
}
.cookie-toggle {
  appearance: none; width: 38px; height: 22px; background: var(--color-faint);
  border-radius: 20px; position: relative; outline: none; cursor: pointer; transition: background 0.18s cubic-bezier(.42,0,.24,1);
}
.cookie-toggle:checked { background: var(--color-accent); }
.cookie-toggle:before {
  content: ""; width: 19px; height: 19px; background: #fff; border-radius: 50%; position: absolute;
  top: 1px; left: 2px; transition: left 0.19s cubic-bezier(.5,0,.2,1);
  box-shadow: var(--shadow-elevate);
}
.cookie-toggle:checked:before { left: 17px; }
.cookie-modal-actions {
  display: flex; flex-direction: row; gap: 15px; margin-top: 22px; width: 100%; justify-content: flex-end;
}
.cookie-modal .cookie-accept, .cookie-modal .cookie-reject, .cookie-modal .cookie-close {
  font-family: var(--font-display); border-radius: var(--radius-pill);
  font-size: 1rem; font-weight: 600;
  padding: 9px 23px; border: none; background: var(--color-accent); color: #fff; cursor: pointer;
  transition: background var(--transition-fast);
}
.cookie-modal .cookie-close {
  background: var(--color-primary-dark); color: #fff;
}
.cookie-modal .cookie-accept:hover, .cookie-modal .cookie-close:hover {
  background: var(--color-primary-dark);
}
.cookie-modal .cookie-reject {
  background: #fff; color: var(--color-accent); border: 2px solid var(--color-accent);
}
.cookie-modal .cookie-reject:hover { background: var(--color-accent); color: #fff; }

/* Make cookie banner responsive */
@media (max-width: 600px) {
  .cookie-banner { flex-direction: column; align-items: flex-start; gap: 14px; padding: 18px 6px; }
  .cookie-banner-text { max-width: 90vw; margin-bottom: 7px; }
  .cookie-banner-buttons { width: 100%; gap: 8px; }
}

/* ----------------- THANK YOU / SUCCESS PAGE ----------------- */
.text-section h1, .thankyou-msg {
  font-size: 2.2rem;
  color: var(--color-accent-dark);
  margin-bottom: 14px;
}

/* ----------------- PRINT (for docs) ----------------- */
@media print {
  header, footer, .cookie-banner, .cookie-modal-backdrop { display: none !important; }
  section, .container { box-shadow: none !important; background: #fff !important; }
}

/* ----------------- FOCUS STATE ----------------- */
:focus {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

/* -------- SCROLLBAR -------- */
::-webkit-scrollbar { width: 10px; background: var(--color-secondary); }
::-webkit-scrollbar-thumb {
  background: var(--color-faint);
  border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover { background: var(--color-accent); }

/* ----------------- UTILITIES & OVERRIDES ----------------- */
.hide, [hidden] { display: none !important; }
.uppercase { text-transform: uppercase; }
.bold { font-weight: 700; }
/* FORBIDDEN: CSS Grid, Columns, break-inside: do not appear anywhere in this CSS. */
