/* =====================
   Reset & Base Normalize
   ===================== */
*, *::before, *::after { box-sizing: border-box; }
html { line-height: 1.15; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: Arial, Helvetica, sans-serif; color: #0F1F2C; background: #FFFFFF; }
img, picture, video, canvas, svg { display: block; max-width: 100%; height: auto; }
input, button, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: none; padding: 0; }
ul, ol { margin: 0 0 16px 24px; padding: 0; }
p { margin: 0 0 16px; }
:focus-visible { outline: 2px solid #2C6E6F; outline-offset: 2px; }

/* =====================
   Brand Theme (with fallbacks)
   ===================== */
:root {
  --primary: #0E3A5B;
  --secondary: #2C6E6F;
  --accent: #F4F7FA;
  --text: #0F1F2C;
  --muted: #6A7A89;
  --border: #E5EBF0;
  --radius: 10px;
  --shadow-1: 0 1px 2px rgba(0,0,0,0.04), 0 8px 24px rgba(14,58,91,0.06);
  --shadow-2: 0 4px 18px rgba(14,58,91,0.12);
}

/* =====================
   Typography
   ===================== */
h1, h2, h3 { font-family: Georgia, 'Times New Roman', serif; color: var(--primary); margin: 0 0 8px; line-height: 1.2; }
h1 { font-size: 32px; }
h2 { font-size: 24px; margin-top: 8px; }
h3 { font-size: 18px; }
@media (min-width: 768px) {
  h1 { font-size: 40px; }
  h2 { font-size: 28px; }
  h3 { font-size: 20px; }
}
@media (min-width: 1200px) {
  h1 { font-size: 48px; }
  h2 { font-size: 32px; }
  h3 { font-size: 22px; }
}
body { font-size: 16px; line-height: 1.65; letter-spacing: 0.2px; color: var(--text); }
strong { color: var(--primary); }
a { color: var(--primary); text-decoration: none; transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease; }
a:hover { color: var(--secondary); }

/* =====================
   Containers & Sections
   ===================== */
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 16px; }
main > section { padding: 40px 0; }
.content-wrapper { display: flex; flex-direction: column; gap: 16px; }

/* =====================
   Mandatory Spacing & Flex Patterns (as required)
   ===================== */
.section { margin-bottom: 60px; padding: 40px 20px; }
.card-container { display: flex; flex-wrap: wrap; gap: 24px; }
.card { margin-bottom: 20px; position: relative; }
.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; }

/* Enhancements on top of mandatory patterns (mobile-first) */
.text-image-section { flex-direction: column; }
.text-image-section > * { flex: 1 1 260px; min-width: 260px; }
@media (min-width: 768px) {
  .text-image-section { flex-direction: row; }
}
.content-grid > * { flex: 1 1 320px; }
.card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow-1); }
.card:hover { transform: translateY(-2px); box-shadow: var(--shadow-2); }
.testimonial-card { background: #FFFFFF; border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-1); flex-direction: column; align-items: flex-start; }
@media (min-width: 768px) {
  .testimonial-card { flex-direction: row; align-items: center; }
}

/* =====================
   Header & Navigation
   ===================== */
header { position: sticky; top: 0; background: #FFFFFF; border-bottom: 1px solid var(--border); z-index: 1000; }
header .container { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 16px; }
.logo img { height: 36px; width: auto; }

/* Desktop navigation */
.main-nav { display: none; align-items: center; gap: 8px; flex-wrap: wrap; }
.main-nav a { color: var(--text); padding: 8px 10px; border-radius: 8px; }
.main-nav a:hover, .main-nav a:focus-visible { background: var(--accent); color: var(--primary); }
.main-nav a[aria-current="page"] { color: #FFFFFF; background: var(--primary); }
.main-nav a.cta { background: var(--primary); color: #FFFFFF; padding: 10px 14px; border-radius: 10px; box-shadow: var(--shadow-1); }
.main-nav a.cta:hover { background: #0B2F49; }

/* Mobile burger */
.mobile-menu-toggle { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; font-size: 22px; color: var(--primary); border: 1px solid var(--border); border-radius: 8px; background: #FFFFFF; box-shadow: var(--shadow-1); }
.mobile-menu-toggle:hover { background: var(--accent); }

/* Mobile menu panel */
.mobile-menu { position: fixed; top: 0; right: 0; height: 100%; width: 100%; max-width: 360px; background: #FFFFFF; box-shadow: -10px 0 30px rgba(14,58,91,0.15); transform: translateX(100%); transition: transform 0.35s ease; z-index: 1100; display: flex; flex-direction: column; padding: 24px; gap: 12px; }
.mobile-menu.open, .mobile-menu.active, .mobile-menu.is-open, .mobile-menu[aria-hidden="false"] { transform: translateX(0); }
.mobile-menu-close { position: absolute; top: 12px; right: 12px; width: 40px; height: 40px; font-size: 22px; color: var(--primary); border-radius: 8px; border: 1px solid var(--border); background: #FFFFFF; }
.mobile-menu-close:hover { background: var(--accent); }
.mobile-nav { display: flex; flex-direction: column; gap: 8px; margin-top: 32px; }
.mobile-nav a { padding: 12px 10px; border-radius: 8px; color: var(--text); }
.mobile-nav a:hover { background: var(--accent); color: var(--primary); }
.mobile-nav a[aria-current="page"] { background: var(--primary); color: #FFFFFF; }

/* Show desktop nav on larger screens */
@media (min-width: 992px) {
  .main-nav { display: flex; }
  .mobile-menu-toggle { display: none; }
  .mobile-menu { display: none; }
}

/* =====================
   Hero Sections
   ===================== */
.hero { background: var(--accent); border-bottom: 1px solid var(--border); }
.hero .container { padding-top: 48px; padding-bottom: 48px; }
.hero p { color: var(--text); }

/* =====================
   Buttons & CTAs
   ===================== */
.button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 18px; border-radius: var(--radius); border: 1px solid transparent; text-decoration: none; font-weight: 600; transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease; }
.button.primary { background: var(--primary); color: #FFFFFF; box-shadow: var(--shadow-1); }
.button.primary:hover { background: #0B2F49; transform: translateY(-1px); }
.button.secondary { background: #FFFFFF; border-color: var(--border); color: var(--primary); }
.button.secondary:hover { background: var(--accent); border-color: var(--primary); }
.cta-group { display: flex; flex-wrap: wrap; gap: 12px; }

/* =====================
   Lists & Content Elements
   ===================== */
.content-wrapper > ul, .content-wrapper > ol { margin-left: 20px; }
.content-wrapper > ul li, .content-wrapper > ol li { margin-bottom: 8px; }
ol { padding-left: 20px; }

/* =====================
   Footer
   ===================== */
footer { background: #FFFFFF; border-top: 1px solid var(--border); }
footer .container { padding-top: 40px; padding-bottom: 40px; }
footer .content-wrapper { display: flex; flex-direction: column; gap: 24px; }
footer .brand { display: flex; flex-direction: column; gap: 10px; }
footer .brand img { height: 32px; width: auto; }
footer nav, footer .contact { display: flex; flex-direction: column; gap: 8px; }
footer h3 { font-size: 16px; color: var(--primary); margin-bottom: 6px; }
footer a { color: var(--text); }
footer a:hover { color: var(--primary); }
footer .social { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 6px; }
@media (min-width: 992px) {
  footer .content-wrapper { flex-direction: row; align-items: flex-start; justify-content: space-between; gap: 32px; }
  footer .brand { flex: 1 1 240px; }
  footer .footer-main, footer .footer-legal { flex: 1 1 200px; }
  footer .contact { flex: 1 1 300px; }
}

/* =====================
   Utility & Layout Helpers
   ===================== */
.accent-bg { background: var(--accent); }
.muted { color: var(--muted); }
.divider { height: 1px; background: var(--border); width: 100%; }

/* =====================
   Accessibility & States
   ===================== */
a[aria-current="page"], nav a[aria-current="page"] { font-weight: 700; }

/* =====================
   Cards for FAQs and Highlights
   ===================== */
.content-wrapper > div > h3 + p, .content-wrapper > h3 + ul { margin-top: 4px; }

/* =====================
   Spacing Consistency
   ===================== */
.content-wrapper > * + * { margin-top: 0; }

/* =====================
   Mobile Menu Overlay (optional helper)
   ===================== */
.mobile-menu-overlay { position: fixed; inset: 0; background: rgba(14,58,91,0.35); opacity: 0; pointer-events: none; transition: opacity 0.3s ease; z-index: 1090; }
.mobile-menu-overlay.show { opacity: 1; pointer-events: auto; }

/* =====================
   Cookie Consent Banner & Modal
   ===================== */
.cookie-banner { position: fixed; left: 0; right: 0; bottom: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 12px; background: #FFFFFF; color: var(--text); border-top: 1px solid var(--border); box-shadow: 0 -10px 30px rgba(14,58,91,0.06); padding: 16px; transform: translateY(110%); transition: transform 0.3s ease; z-index: 1200; }
.cookie-banner.show, .cookie-banner.open { transform: translateY(0); }
.cookie-banner .cookie-text { flex: 1 1 240px; min-width: 220px; }
.cookie-banner .cookie-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-left: auto; }
.cookie-btn { display: inline-flex; align-items: center; justify-content: center; padding: 10px 14px; border-radius: 8px; border: 1px solid var(--border); background: #FFFFFF; color: var(--primary); transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease; }
.cookie-btn:hover { background: var(--accent); border-color: var(--primary); }
.cookie-btn.accept { background: var(--primary); color: #FFFFFF; border-color: var(--primary); box-shadow: var(--shadow-1); }
.cookie-btn.accept:hover { background: #0B2F49; }
.cookie-btn.reject { color: var(--secondary); border-color: var(--border); }
.cookie-btn.settings { color: var(--primary); }

.cookie-modal { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(14,58,91,0.5); display: flex; align-items: center; justify-content: center; padding: 24px; z-index: 1300; opacity: 0; pointer-events: none; transition: opacity 0.3s ease; }
.cookie-modal.show, .cookie-modal.open { opacity: 1; pointer-events: auto; }
.cookie-modal .modal { background: #FFFFFF; width: 100%; max-width: 640px; border-radius: 12px; box-shadow: var(--shadow-2); padding: 24px; display: flex; flex-direction: column; gap: 16px; }
.cookie-modal .modal header { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.cookie-modal .modal .modal-body { display: flex; flex-direction: column; gap: 12px; }
.cookie-option { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px; border: 1px solid var(--border); border-radius: 8px; }
.cookie-option .label { display: flex; flex-direction: column; gap: 4px; }
.cookie-option .status { color: var(--muted); font-size: 14px; }
.cookie-modal .modal .modal-actions { display: flex; align-items: center; justify-content: flex-end; gap: 10px; margin-top: 8px; }

/* Toggle style for cookie categories (checkbox based) */
.toggle { position: relative; display: inline-flex; align-items: center; width: 44px; height: 24px; border-radius: 24px; background: #D9E3EB; border: 1px solid var(--border); transition: background 0.2s ease, border-color 0.2s ease; }
.toggle::after { content: ""; width: 18px; height: 18px; border-radius: 50%; background: #FFFFFF; box-shadow: 0 1px 2px rgba(0,0,0,0.1); transform: translateX(2px); transition: transform 0.2s ease; }
input[type="checkbox"].toggle-input { position: absolute; opacity: 0; pointer-events: none; }
input[type="checkbox"].toggle-input:checked + .toggle { background: var(--secondary); border-color: var(--secondary); }
input[type="checkbox"].toggle-input:checked + .toggle::after { transform: translateX(22px); }

/* =====================
   Tables (if any in guides)
   ===================== */
table { width: 100%; border-collapse: collapse; margin: 12px 0; }
th, td { text-align: left; padding: 10px; border-bottom: 1px solid var(--border); }
th { color: var(--primary); font-weight: 700; }

/* =====================
   Forms (generic styles for future use)
   ===================== */
input[type="text"], input[type="email"], input[type="tel"], textarea { width: 100%; padding: 12px 14px; border: 1px solid var(--border); border-radius: 8px; background: #FFFFFF; transition: border-color 0.2s ease, box-shadow 0.2s ease; }
input:focus, textarea:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(14,58,91,0.15); }
label { display: block; margin-bottom: 6px; color: var(--text); }

/* =====================
   Specific Content Tweaks
   ===================== */
.hero .cta-group, .content-wrapper .cta-group { margin-top: 4px; }
.brand p { color: var(--muted); }
footer .newsletter p { color: var(--muted); }

/* =====================
   Responsive spacing enhancements
   ===================== */
@media (min-width: 768px) {
  .container { padding: 0 24px; }
  .hero .container { padding-top: 64px; padding-bottom: 64px; }
}

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