/* =====================================
   Reset & Base
   ===================================== */
*, *::before, *::after { box-sizing: border-box; }
html, body { height: 100%; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: Verdana, Geneva, Tahoma, sans-serif; color: #24424A; background: #FAFCFE; line-height: 1.6; }
img { max-width: 100%; height: auto; display: block; }
a { color: #153E75; text-decoration: none; }
a:hover { text-decoration: underline; }
button { font: inherit; cursor: pointer; border: none; background: transparent; color: inherit; }
:focus-visible { outline: 3px solid rgba(46, 125, 122, 0.6); outline-offset: 2px; border-radius: 8px; }

/* =====================================
   Theme Variables (Soft Pastel)
   ===================================== */
:root {
  --primary: #153E75; /* deep calm blue (brand) */
  --secondary: #2E7D7A; /* teal (brand) */
  --accent: #F5F7FA; /* light gray (brand) */
  /* Pastel complements */
  --p-blue: #E8F1FB; /* soft blue */
  --p-teal: #EAF7F5; /* soft teal */
  --p-pink: #FDEEEF; /* soft pink */
  --p-peach: #FFF6E8; /* soft peach */
  --p-lav: #F3F0FF; /* soft lavender */
  --text: #24424A; /* dark slate for readability */
  --muted: #5F6C7B; /* secondary text */
  --border: #E6EDF4; /* soft border */
  --white: #FFFFFF;
  --radius: 14px;
  --shadow-sm: 0 3px 10px rgba(21, 62, 117, 0.06);
  --shadow-md: 0 10px 24px rgba(21, 62, 117, 0.10);
  --shadow-lg: 0 20px 40px rgba(21, 62, 117, 0.12);
}

/* =====================================
   Typography
   ===================================== */
h1, h2, h3, h4 { font-family: Georgia, 'Times New Roman', serif; color: var(--primary); line-height: 1.25; margin: 0 0 12px; }
h1 { font-size: 32px; }
h2 { font-size: 24px; color: #1A457F; }
h3 { font-size: 18px; color: #2E5E8C; }
h4 { font-size: 16px; }
p { margin: 0 0 14px; color: var(--text); }
.subheadline { color: var(--secondary); font-weight: 600; }

ul, ol { margin: 0 0 16px 18px; padding: 0; }
ul li, ol li { margin-bottom: 8px; }

/* =====================================
   Layout Helpers (Flex-only)
   ===================================== */
.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 16px; display: flex; flex-direction: column; align-items: stretch; gap: 0; }
.content-wrapper { display: flex; flex-direction: column; gap: 18px; align-items: flex-start; }

/* Mandatory spacing classes */
.section { margin-bottom: 60px; padding: 40px 20px; }
.card-container { display: flex; flex-wrap: wrap; gap: 24px; }
.card { margin-bottom: 20px; position: relative; display: flex; flex-direction: column; gap: 12px; background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-sm); padding: 18px; }
.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; }

/* =====================================
   Header & Navigation
   ===================================== */
header { background: var(--p-blue); border-bottom: 1px solid var(--border); position: relative; z-index: 50; }
header .container { flex-direction: row; align-items: center; justify-content: space-between; gap: 12px; padding-top: 12px; padding-bottom: 12px; }
header img { height: 36px; width: auto; filter: drop-shadow(0 1px 0 rgba(0,0,0,0.06)); }

.main-nav { display: none; align-items: center; gap: 16px; }
.main-nav a { color: #234B86; background: var(--white); padding: 8px 12px; border-radius: 999px; font-size: 14px; box-shadow: var(--shadow-sm); transition: background 0.2s ease, transform 0.2s ease; }
.main-nav a:hover { background: #EEF4FF; transform: translateY(-1px); text-decoration: none; }

.mobile-menu-toggle { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 10px; background: var(--white); color: var(--primary); box-shadow: var(--shadow-sm); transition: transform 0.2s ease, box-shadow 0.2s ease; }
.mobile-menu-toggle:hover { transform: translateY(-1px); box-shadow: var(--shadow-md); }

/* Mobile Menu Overlay */
.mobile-menu { position: fixed; top: 0; right: 0; bottom: 0; left: 0; background: rgba(21, 62, 117, 0.08); display: flex; pointer-events: none; opacity: 0; transition: opacity 0.25s ease; z-index: 100; }
.mobile-menu .mobile-nav { margin-left: auto; width: 86%; max-width: 360px; background: var(--white); height: 100%; display: flex; flex-direction: column; gap: 12px; padding: 20px; transform: translateX(100%); transition: transform 0.3s ease; box-shadow: var(--shadow-lg); }
.mobile-menu.open { opacity: 1; pointer-events: auto; }
.mobile-menu.open .mobile-nav { transform: translateX(0); }
.mobile-menu-close { align-self: flex-start; margin: 12px 0 8px 12px; width: 40px; height: 40px; border-radius: 10px; background: var(--p-teal); color: var(--secondary); font-weight: 700; box-shadow: var(--shadow-sm); }
.mobile-nav a { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 12px; color: var(--primary); background: var(--accent); box-shadow: var(--shadow-sm); transition: background 0.2s ease, transform 0.2s ease; }
.mobile-nav a:hover { background: #EBF3FF; transform: translateX(2px); text-decoration: none; }

/* =====================================
   Hero & Sections
   ===================================== */
main > section { margin-bottom: 60px; padding: 40px 0; display: flex; }
main > section .container { align-items: stretch; }
main > section:first-of-type { background: var(--p-peach); border-bottom: 1px solid var(--border); }

/* Content accents */
.content-wrapper > .cta-group { display: flex; flex-wrap: wrap; gap: 12px; }
.trust-badges { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; margin: 6px 0 0; padding: 0; }
.trust-badges li { background: var(--p-lav); color: #3C3A66; padding: 8px 12px; border-radius: 999px; font-size: 13px; border: 1px solid #E9E6FF; box-shadow: var(--shadow-sm); }

/* Feature grid */
.feature-grid { display: flex; flex-wrap: wrap; gap: 20px; }
.feature-grid > div { flex: 1 1 260px; display: flex; flex-direction: column; gap: 10px; background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow-sm); transition: transform 0.2s ease, box-shadow 0.2s ease; }
.feature-grid > div:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }

/* Icon list as pastel chips */
.icon-list { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 10px; }
.icon-list span { display: inline-flex; align-items: center; padding: 8px 12px; border-radius: 999px; background: var(--p-teal); color: #246862; border: 1px solid #DDF0ED; box-shadow: var(--shadow-sm); font-size: 13px; }

/* Service cards */
.service-cards { display: flex; flex-wrap: wrap; gap: 20px; }
.service-cards > div { flex: 1 1 260px; display: flex; flex-direction: column; gap: 10px; background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow-sm); transition: transform 0.2s ease, box-shadow 0.2s ease; }
.service-cards > div:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }

.service-highlights { display: flex; flex-wrap: wrap; gap: 10px 20px; }
.service-highlights li { background: var(--p-blue); border: 1px solid #D9E8FA; color: #1F3D66; padding: 8px 12px; border-radius: 10px; list-style: none; margin-left: 0; }

/* Steps list */
.step-list { counter-reset: step; list-style: none; margin-left: 0; display: flex; flex-direction: column; gap: 10px; }
.step-list li { counter-increment: step; display: flex; align-items: center; gap: 12px; background: var(--accent); border: 1px solid var(--border); border-radius: 12px; padding: 10px 12px; box-shadow: var(--shadow-sm); }
.step-list li::before { content: counter(step); display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 50%; background: var(--p-pink); color: #9A3B44; font-weight: 700; box-shadow: var(--shadow-sm); }

/* Testimonials (ensure readability) */
.testimonial-card { background: var(--p-blue); border: 1px solid #D8E6F7; border-radius: var(--radius); box-shadow: var(--shadow-sm); color: #20364F; }
.testimonial-card blockquote { margin: 0; color: #1C2F45; font-style: italic; }
.testimonial-card p { margin: 0; color: #1C2F45; }

/* Contact details */
.contact-details { display: flex; flex-direction: column; gap: 8px; padding: 12px 0; }

/* Values list */
.values { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; margin-left: 0; }
.values li { background: var(--p-peach); color: #8B5B14; border: 1px solid #FFE7C2; padding: 8px 12px; border-radius: 10px; }

/* =====================================
   Buttons
   ===================================== */
.cta-btn, .secondary-btn, .btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 18px; border-radius: 999px; font-weight: 700; letter-spacing: 0.2px; transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, color 0.18s ease; text-decoration: none; }
.cta-btn { background: #73b4d9; color: var(--white); box-shadow: var(--shadow-sm); }
.cta-btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); text-decoration: none; }
.secondary-btn { background: var(--p-teal); color: var(--secondary); border: 1px solid #D7EEEA; box-shadow: var(--shadow-sm); }
.secondary-btn:hover { background: #E1F3EF; transform: translateY(-2px); text-decoration: none; }

/* Generic button variants (used in cookie UI) */
.btn-accept { background: var(--secondary); color: var(--white); box-shadow: var(--shadow-sm); }
.btn-accept:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.btn-reject { background: var(--p-pink); color: #8E303A; border: 1px solid #F8C8CE; }
.btn-reject:hover { background: #FADDE0; }
.btn-settings { background: var(--accent); color: var(--primary); border: 1px solid var(--border); }
.btn-settings:hover { background: #ECF2F7; }

/* =====================================
   Footer
   ===================================== */
footer { background: var(--p-teal); border-top: 1px solid var(--border); }
footer .container { padding-top: 24px; padding-bottom: 24px; gap: 20px; }
.footer-nav { display: flex; flex-direction: column; gap: 16px; }
.footer-nav nav { display: flex; flex-wrap: wrap; gap: 10px 16px; }
.footer-nav a { color: #195457; background: var(--white); padding: 8px 12px; border-radius: 999px; font-size: 14px; box-shadow: var(--shadow-sm); }
.footer-nav a:hover { background: #EFFAF7; text-decoration: none; }
.footer-contact { display: flex; flex-direction: column; gap: 6px; color: #1F5558; }

/* =====================================
   Cookie Consent (Banner + Modal)
   ===================================== */
.cookie-banner { position: fixed; left: 0; right: 0; bottom: 0; display: flex; align-items: center; justify-content: center; padding: 14px; background: rgba(255, 246, 232, 0.98); border-top: 1px solid #FFE3BD; box-shadow: 0 -6px 20px rgba(21,62,117,0.08); z-index: 999; transform: translateY(110%); transition: transform 0.3s ease; }
.cookie-banner.show { transform: translateY(0); }
.cookie-banner .cookie-inner { width: 100%; max-width: 1180px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; }
.cookie-banner p { margin: 0; color: #6A4C16; flex: 1 1 220px; }
.cookie-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.cookie-actions .btn { padding: 10px 14px; border-radius: 999px; font-weight: 700; }

/* Cookie Preferences Modal */
.cookie-modal { position: fixed; inset: 0; background: rgba(0,0,0,0.25); display: flex; align-items: center; justify-content: center; z-index: 1000; opacity: 0; pointer-events: none; transition: opacity 0.25s ease; }
.cookie-modal.show { opacity: 1; pointer-events: auto; }
.cookie-modal .modal { background: var(--white); width: 92%; max-width: 560px; border-radius: 16px; border: 1px solid var(--border); box-shadow: var(--shadow-lg); display: flex; flex-direction: column; gap: 14px; padding: 20px; }
.cookie-modal .modal-header { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.cookie-modal .modal-body { display: flex; flex-direction: column; gap: 12px; }
.cookie-modal .option { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px; background: var(--accent); border-radius: 12px; border: 1px solid var(--border); }
.cookie-modal .modal-actions { display: flex; justify-content: flex-end; gap: 10px; }

/* =====================================
   Utilities & Micro-interactions
   ===================================== */
.muted { color: var(--muted); }
.shadow-sm { box-shadow: var(--shadow-sm); }
.rounded { border-radius: var(--radius); }

/* Subtle reveal for cards */
@keyframes riseIn { from { transform: translateY(8px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
.service-cards > div, .feature-grid > div, .testimonial-card, .card { animation: riseIn 0.4s ease both; }

/* =====================================
   Responsive (Mobile-first)
   ===================================== */
/* Mobile base: main-nav hidden; burger visible; stacks are column-based via flex */

@media (min-width: 600px) {
  h1 { font-size: 36px; }
  h2 { font-size: 28px; }
  .contact-details { flex-direction: row; flex-wrap: wrap; gap: 12px 24px; }
}

@media (min-width: 768px) {
  header .container { padding-top: 14px; padding-bottom: 14px; }
  .main-nav { display: flex; }
  .mobile-menu-toggle { display: none; }
  main > section { padding: 56px 0; }
  .content-wrapper { gap: 20px; }
  .text-image-section { flex-direction: row; }
}

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

@media (min-width: 992px) {
  h1 { font-size: 42px; }
  h2 { font-size: 32px; }
  .footer-nav { flex-direction: row; justify-content: space-between; align-items: flex-start; }
}

/* =====================================
   Generic element styling for page consistency
   ===================================== */
section .container { gap: 20px; }
blockquote { quotes: "\201E" "\201C"; position: relative; padding-left: 12px; }
blockquote:before { content: '\201E'; color: #B57D84; font-size: 24px; margin-right: 6px; }

/* Lists readability */
section ul li, section ol li { color: var(--text); }

/* Ensure minimum spacing between cards/sections */
section + section { margin-top: 20px; }

/* Prevent overlaps and maintain stacking context */
header, .mobile-menu, .cookie-banner, .cookie-modal { isolation: isolate; }

/* =====================================
   Specific tweaks to match provided HTML
   ===================================== */
/* Headline pairs spacing */
.content-wrapper h1 + h2 { margin-top: -4px; color: #20508F; }

/* Buttons group under hero */
.content-wrapper .cta-group .cta-btn + .secondary-btn { margin-left: 0; }

/* Footer spacing fix */
footer .footer-contact div { line-height: 1.5; }

/* Ensure links in content are visible */
.content-wrapper a { color: var(--primary); }

/* Dark text on testimonials (critical contrast) */
.testimonial-card strong { color: #1C2F45; }

/* =====================================
   Additional Layout Classes used by requirements
   ===================================== */
/* For any future .card grids or content rows */
.card-row { display: flex; flex-wrap: wrap; gap: 20px; }

/* Ensure minimum margins between all content blocks */
.content-wrapper > * + * { margin-top: 4px; }

/* =====================================
   Header CTA alignment on small screens
   ===================================== */
header .cta-btn { display: none; }
@media (min-width: 768px) {
  header .cta-btn { display: inline-flex; }
}

/* =====================================
   Background alternation for visual rhythm (soft pastel)
   ===================================== */
main > section:nth-of-type(2) { background: var(--p-teal); }
main > section:nth-of-type(4) { background: var(--p-lav); }
main > section:nth-of-type(6) { background: var(--p-blue); }

/* Keep text legible on pastel backgrounds */
main > section:nth-of-type(2) *,
main > section:nth-of-type(4) *,
main > section:nth-of-type(6) * { color: initial; }

/* Container alignment inside colored sections */
main > section:nth-of-type(2) .container,
main > section:nth-of-type(4) .container,
main > section:nth-of-type(6) .container { }

/* =====================================
   Forms (future-proof, if added)
   ===================================== */
input, select, textarea { width: 100%; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--border); background: var(--white); box-shadow: var(--shadow-sm) inset; font: inherit; color: var(--text); }
input:focus, select:focus, textarea:focus { outline: none; border-color: #B6D8F8; box-shadow: 0 0 0 3px rgba(21,62,117,0.12); }

/* =====================================
   Print (basic)
   ===================================== */
@media print { .mobile-menu, .cookie-banner, .cookie-modal { display: none !important; } a { text-decoration: underline; } }
