/* =========================
   Reset & Base Normalize
   ========================= */
* { box-sizing: border-box; }
html, body { height: 100%; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: Arial, Helvetica, sans-serif; color: #0B2439; background-color: #FFFFFF; line-height: 1.6; }
img { max-width: 100%; height: auto; display: block; }
a { color: #123B5D; text-decoration: none; }
a:hover { text-decoration: underline; }
button { font: inherit; cursor: pointer; background: transparent; border: none; color: inherit; }
:focus { outline: none; }
:focus-visible { outline: 3px dashed #1F6E5A; outline-offset: 2px; }

/* =========================
   Design Tokens (with fallbacks)
   ========================= */
:root {
  --primary: #123B5D;
  --secondary: #1F6E5A;
  --accent: #F5F7FA;
  /* Creative, vibrant auxiliary accents (artistic flair) */
  --vibrant-1: #E63973; /* magenta */
  --vibrant-2: #FFB703; /* sunflower */
  --ink: #0B2439;
  --muted: #5B6D7A;
  --surface: #FFFFFF;
  --surface-alt: #F9FBFD;
  --shadow: rgba(18,59,93,0.15);
}

/* =========================
   Typography
   ========================= */
h1, h2, h3, h4 { font-family: Georgia, 'Times New Roman', serif; color: #123B5D; line-height: 1.25; letter-spacing: 0.2px; }
h1 { font-size: 36px; margin: 0 0 16px; }
h2 { font-size: 28px; margin: 0 0 12px; }
h3 { font-size: 22px; margin: 16px 0 8px; }
h4 { font-size: 18px; margin: 12px 0 6px; }
p { margin: 0 0 14px; font-size: 16px;   }
.small, .microcopy { font-size: 14px; color: #5B6D7A; }
.subheadline { font-size: 18px; color: #11344F; opacity: 0.95; }
.brand-tagline { font-size: 14px; color: #1F6E5A; font-weight: 600; letter-spacing: 0.3px; }
.tagline { color: #1F6E5A; font-weight: 700; }

/* =========================
   Global Layout Helpers (Flex Only)
   ========================= */
.container { display: flex; flex-direction: column; align-items: stretch; width: 100%; max-width: 1200px; padding: 0 16px; margin: 0 auto; gap: 16px; }
.content-wrapper { display: flex; flex-direction: column; gap: 20px; }
.content-grid { display: flex; flex-wrap: wrap; gap: 20px; justify-content: space-between; }
.text-section { display: flex; flex-direction: column; gap: 12px; }
.text-image-section { display: flex; align-items: center; gap: 30px; flex-wrap: wrap; }
.card-container { display: flex; flex-wrap: wrap; gap: 24px; }
.card { margin-bottom: 20px; position: relative; background: #FFFFFF; border: 1px solid #E6EDF3; border-radius: 16px; padding: 20px; box-shadow: 0 6px 18px var(--shadow); }
.feature-item { display: flex; flex-direction: column; align-items: flex-start; gap: 15px; }
.section { margin-bottom: 60px; padding: 40px 20px; }

/* Ensure vertical rhythm across sections */
main > section { padding: 40px 0; border-bottom: 1px solid #EFF3F7; }
main > section:last-child { border-bottom: none; }

/* =========================
   Header & Navigation
   ========================= */
header { background: #FFFFFF; border-bottom: 4px solid #123B5D; position: sticky; top: 0; z-index: 1000; }
header .container { flex-direction: column; gap: 10px; padding-top: 12px; padding-bottom: 12px; }
.logo { display: flex; align-items: center; }
.logo img { height: 42px; }

.main-nav { display: none; flex-wrap: wrap; gap: 12px; align-items: center; }
.main-nav a { padding: 8px 10px; color: #123B5D; font-weight: 600; border-radius: 10px; transition: color 180ms ease, background-color 180ms ease, transform 180ms ease; }
.main-nav a:hover { background: #F5F7FA; transform: translateY(-1px); }
.main-nav a[aria-current="page"] { color: #1F6E5A; text-decoration: underline; text-underline-offset: 3px; }

/* Artistic highlight strip under header for creative flair */
header::after { content: ""; display: block; height: 4px; background: #E63973; box-shadow: inset 200px 0 0 0 #FFB703; opacity: 0.25; }

/* =========================
   Buttons
   ========================= */
.button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 18px; border-radius: 14px; border: 2px solid #123B5D; color: #123B5D; background: #FFFFFF; font-weight: 700; transition: background-color 200ms ease, color 200ms ease, transform 160ms ease, box-shadow 200ms ease, border-color 200ms ease; box-shadow: 0 6px 16px var(--shadow); }
.button:hover { background: #F5F7FA; transform: translateY(-1px); }
.button:active { transform: translateY(0); box-shadow: 0 3px 10px rgba(18,59,93,0.18); }
.button.primary { background: #123B5D; color: #FFFFFF; border-color: #123B5D; }
.button.primary:hover { background: #0F2F4A; }
.button.secondary { background: #1F6E5A; border-color: #1F6E5A; color: #FFFFFF; }
.button.secondary:hover { background: #185847; }

/* Micro artistic variant */
.button.vibrant { background: #E63973; border-color: #E63973; color: #FFFFFF; }
.button.vibrant:hover { background: #C02C5B; }

/* CTA group */
.cta-group, .contact-buttons { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

/* =========================
   Mobile Menu
   ========================= */
.mobile-menu-toggle { display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 10px; border: 2px solid #123B5D; color: #123B5D; background: #FFFFFF; align-self: flex-end; }
.mobile-menu-toggle:hover { background: #F5F7FA; }

.mobile-menu { position: fixed; top: 0; right: 0; bottom: 0; width: 100%; max-width: 420px; background: #FFFFFF; box-shadow: -8px 0 30px rgba(0,0,0,0.2); transform: translateX(100%); transition: transform 260ms ease-in-out; z-index: 1100; display: flex; flex-direction: column; }
.mobile-menu.active, .mobile-menu.open { transform: translateX(0); }
.mobile-menu-close { align-self: flex-end; margin: 12px; width: 40px; height: 40px; border-radius: 10px; border: 2px solid #123B5D; background: #FFFFFF; color: #123B5D; }
.mobile-nav { display: flex; flex-direction: column; gap: 8px; padding: 8px 20px 24px; }
.mobile-nav a { padding: 12px 10px; border-radius: 10px; font-weight: 600; color: #123B5D; border: 1px solid #E6EDF3; }
.mobile-nav a:hover { background: #F5F7FA; }

/* Dimmed backdrop when menu is open (use body.menu-open via JS) */
body.menu-open::after { content: ""; position: fixed; inset: 0; background: rgba(10, 24, 38, 0.45); z-index: 1050; }

/* =========================
   Hero & Key Elements
   ========================= */
.hero { background: #F5F7FA; position: relative; overflow: hidden; }
.hero .container { padding-top: 36px; padding-bottom: 28px; }
/* Decorative shapes for creative_artistic vibe (purely decorative) */
.hero::before, .hero::after { content: ""; position: absolute; border-radius: 28px; opacity: 0.12; z-index: 0; }
.hero::before { width: 180px; height: 180px; background: #E63973; top: -40px; right: -30px; transform: rotate(12deg); }
.hero::after { width: 240px; height: 240px; background: #FFB703; bottom: -60px; left: -40px; transform: rotate(-8deg); }
.hero .content-wrapper { position: relative; z-index: 1; }

.key-bullets { display: flex; flex-direction: column; gap: 8px; margin: 8px 0 4px; padding: 0; list-style: none; }
.key-bullets li { display: flex; align-items: flex-start; gap: 10px; padding: 8px 12px; background: #FFFFFF; border: 1px solid #E6EDF3; border-radius: 12px; box-shadow: 0 6px 14px var(--shadow); }
.key-bullets li::before { content: "✦"; color: #E63973; font-weight: 700; }

.language-switcher { display: flex; gap: 8px; align-items: center; font-weight: 700; }
.language-switcher a { color: #1F6E5A; }
.language-switcher a[aria-current="true"] { color: #123B5D; text-decoration: underline; text-underline-offset: 3px; }

.trust-badges { display: flex; flex-wrap: wrap; gap: 8px 12px; color: #5B6D7A; font-size: 14px; }
.trust-badges span { background: #FFFFFF; border: 1px solid #E6EDF3; padding: 6px 10px; border-radius: 999px; }

/* =========================
   Lists and Content Blocks
   ========================= */
.text-section ul { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 8px; }
.text-section ol { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 8px; }
.text-section a { color: #1F6E5A; font-weight: 700; border-bottom: 2px solid #E63973; padding-bottom: 1px; }
.text-section a:hover { color: #123B5D; }

.contact-inline { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; list-style: none; margin: 10px 0 0; padding: 0; }
.contact-inline li { display: flex; align-items: center; gap: 8px; color: #0B2439; background: #FFFFFF; border: 1px solid #E6EDF3; border-radius: 12px; padding: 8px 12px; box-shadow: 0 6px 14px var(--shadow); }
.contact-inline img { width: 18px; height: 18px; }

/* =========================
   Testimonials (high contrast, light background)
   ========================= */
.testimonial-card { display: flex; align-items: center; gap: 20px; padding: 20px; background: #FFFFFF; color: #0B2439; border: 2px solid #123B5D; border-radius: 16px; box-shadow: 0 10px 22px var(--shadow); position: relative; }
.testimonial-card::before { content: "\201C"; position: absolute; left: 14px; top: 6px; font-size: 48px; line-height: 1; color: #E63973; opacity: 0.25; pointer-events: none; }
.testimonial-card p { margin: 0; }
.testimonial-card + .testimonial-card { margin-top: 16px; }

/* =========================
   Footer
   ========================= */
footer { background: #0F2F4A; color: #EAF1F7; }
footer a { color: #EAF1F7; }
footer .container { padding-top: 28px; padding-bottom: 28px; }
.footer-top { display: flex; flex-wrap: wrap; gap: 20px; justify-content: space-between; }
.footer-top > div { background: rgba(255,255,255,0.03); padding: 16px; border-radius: 12px; flex: 1 1 240px; }
.footer-top h3 { color: #FFFFFF; margin-bottom: 8px; }
.quick-links ul, .privacy-links ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.address-block p { margin: 0 0 8px; }

.cta-strip { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 16px; }
.cta-strip .button { box-shadow: none; }

/* =========================
   Cookie Consent Banner & Modal
   ========================= */
.cookie-banner { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 1200; display: none; /* set to flex via JS */ flex-direction: column; gap: 12px; background: #FFFFFF; color: #0B2439; border: 2px solid #123B5D; border-radius: 16px; padding: 16px; box-shadow: 0 12px 28px rgba(0,0,0,0.2); }
.cookie-banner.show { display: flex; animation: slideUp 240ms ease-out; }
.cookie-banner p { margin: 0; }
.cookie-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.cookie-actions .button { padding: 10px 14px; }
.cookie-actions .accept { background: #1F6E5A; color: #FFFFFF; border-color: #1F6E5A; }
.cookie-actions .reject { background: #E63973; color: #FFFFFF; border-color: #E63973; }
.cookie-actions .settings { background: #FFFFFF; color: #123B5D; }

.cookie-modal { position: fixed; inset: 0; background: rgba(10,24,38,0.55); backdrop-filter: blur(2px); z-index: 1300; display: none; align-items: center; justify-content: center; padding: 20px; }
.cookie-modal.show { display: flex; animation: fadeIn 200ms ease-out; }
.cookie-modal-content { background: #FFFFFF; color: #0B2439; border: 2px solid #123B5D; border-radius: 16px; width: 100%; max-width: 720px; display: flex; flex-direction: column; gap: 16px; padding: 20px; box-shadow: 0 20px 40px rgba(0,0,0,0.25); }
.cookie-category { display: flex; align-items: center; justify-content: space-between; gap: 12px; border: 1px solid #E6EDF3; border-radius: 12px; padding: 12px; background: #F9FBFD; }
.cookie-category .label { display: flex; flex-direction: column; gap: 4px; }
.cookie-category .note { font-size: 14px; color: #5B6D7A; }

/* Toggle switch */
.toggle { position: relative; width: 46px; height: 28px; border-radius: 999px; background: #C6D2DB; border: 1px solid #9FB2C0; display: inline-flex; align-items: center; padding: 2px; transition: background-color 180ms ease; }
.toggle input { position: absolute; opacity: 0; inset: 0; }
.toggle .knob { width: 22px; height: 22px; border-radius: 50%; background: #FFFFFF; box-shadow: 0 2px 6px rgba(0,0,0,0.25); transform: translateX(0); transition: transform 180ms ease; }
.toggle input:checked + .knob { transform: translateX(18px); }
.toggle input:checked ~ .toggle { background: #1F6E5A; }

@keyframes slideUp { from { transform: translateY(20px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* =========================
   Utilities
   ========================= */
.hidden { display: none !important; }
.muted { color: #5B6D7A; }

/* =========================
   Artistic Accents (borders, shadows)
   ========================= */
.accent-bar { display: flex; width: 64px; height: 6px; background: #E63973; border-radius: 6px; box-shadow: 16px 0 0 #FFB703; }

/* =========================
   Responsive (Mobile-first)
   ========================= */
@media (min-width: 600px) {
  h1 { font-size: 40px; }
  h2 { font-size: 30px; }
}

@media (min-width: 768px) {
  header .container { flex-direction: row; align-items: center; justify-content: space-between; }
  .brand-tagline { margin-left: 10px; }
  .main-nav { display: flex; }
  .mobile-menu-toggle { display: none; }

  .hero .container { padding-top: 48px; padding-bottom: 40px; }

  .text-image-section { flex-direction: row; }
}

@media (min-width: 992px) {
  h1 { font-size: 48px; }
  h2 { font-size: 32px; }
  .main-nav a { padding: 10px 12px; }
}

/* =========================
   Page-specific niceties
   ========================= */
/* Address, legal blocks */
.address-block, .privacy-links, .quick-links { display: flex; flex-direction: column; gap: 8px; }

/* Ordered/unordered lists in standalone sections */
main > section > .container > .content-wrapper > ul,
main > section > .container > .content-wrapper > ol { display: flex; flex-direction: column; gap: 8px; padding-left: 20px; margin: 0; }

/* Make sure cards/sections don't overlap and have spacing */
.content-wrapper > * + * { margin-top: 6px; }

/* =========================
   Contrast Assurance for testimonials/reviews
   ========================= */
section:has(.testimonial-card) { background: #F9FBFD; }

/* =========================
   Extra Flex Patterns for future content
   ========================= */
/* These classes are included verbatim per requirements and extended above */
/* .section already defined */
/* .card-container already defined */
/* .card already defined */
/* .content-grid already defined */
/* .text-image-section already defined */
/* .testimonial-card already defined */
/* .feature-item already defined */

/* =========================
   Accessibility Tweaks
   ========================= */
[aria-current="page"], [aria-current="true"] { font-weight: 800; }

/* =========================
   Ensure adequate spacing between all content blocks
   ========================= */
.content-wrapper > .testimonial-card,
.content-wrapper > .text-section,
.content-wrapper > .cta-group,
.content-wrapper > ul,
.content-wrapper > ol,
.content-wrapper > p,
.content-wrapper > h2,
.content-wrapper > h3 { margin-bottom: 12px; }

/* =========================
   Artistic List Markers for top-level lists (non-key)
   ========================= */
main ul:not(.key-bullets):not(.contact-inline) > li { padding-left: 2px; }
main ul:not(.key-bullets):not(.contact-inline) > li::marker { color: #1F6E5A; }

/* =========================
   Forms (if added later)
   ========================= */
input, textarea, select { width: 100%; padding: 12px 14px; border-radius: 12px; border: 1px solid #D6E0E7; background: #FFFFFF; color: #0B2439; }
input:focus, textarea:focus, select:focus { border-color: #1F6E5A; box-shadow: 0 0 0 3px rgba(31,110,90,0.15); }

/* =========================
   Special: Header badges and creative flair
   ========================= */
.brand-tagline { display: inline-flex; align-items: center; gap: 8px; padding: 6px 10px; border: 1px dashed #1F6E5A; border-radius: 999px; background: #F0FAF7; }

/* =========================
   Prevent unintended overflow on small devices
   ========================= */
body, html { overflow-x: hidden; }

/* =========================
   End of stylesheet
   ========================= */