/* =========================
   Reset & Base
   ========================= */
* { 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: #000000; background-color: #F4F6F8; line-height: 1.6; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button, a { cursor: pointer; }
ul, ol { margin: 0; padding-left: 20px; }

/* =========================
   Theme Variables (with fallbacks)
   ========================= */
:root {
  --primary: #0F3B5F; /* brand */
  --secondary: #2E7D32; /* brand */
  --accent: #F2F5F7; /* brand */
  --ink: #121417; /* text */
  --ink-muted: #3E4751; 
  --gold: #C9A227; /* luxury accent */
  --gold-600: #B9923C; /* hover */
  --line: rgba(201,162,39,0.35);
  --surface: #FFFFFF;
  --surface-muted: #FAFBFC;
}

/* =========================
   Typography
   ========================= */
.h1, h1, .h2, h2, .h3, h3 { font-family: "Trebuchet MS", "Segoe UI", Verdana, sans-serif; letter-spacing: 0.3px; color: var(--primary); margin: 0 0 12px 0; }
h1 { font-size: 36px; line-height: 1.2; }
h2 { font-size: 28px; line-height: 1.25; }
h3 { font-size: 20px; line-height: 1.35; }
p { margin: 0 0 12px 0; color: var #121417; }
small { color: var(--ink-muted); }

@media (min-width: 768px) {
  h1 { font-size: 44px; }
  h2 { font-size: 32px; }
  h3 { font-size: 22px; }
}
@media (min-width: 1200px) {
  h1 { font-size: 52px; }
  h2 { font-size: 36px; }
  h3 { font-size: 24px; }
}

/* Luxury section heading underline */
.content-wrapper > h2 { position: relative; padding-bottom: 8px; }
.content-wrapper > h2::after { content: ""; display: block; height: 2px; width: 64px; background: var(--gold); margin-top: 10px; }

/* =========================
   Layout Containers (Flexbox only)
   ========================= */
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 20px; display: flex; flex-direction: column; }
.content-wrapper { display: flex; flex-direction: column; gap: 20px; align-items: flex-start; }

/* Mandatory spacing patterns */
.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; }
.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; }

/* Apply comfortable spacing to native sections as well */
section { margin-bottom: 60px; padding: 40px 0; }

/* =========================
   Header & Navigation (Luxury-Premium)
   ========================= */
header { background: var(--primary); color: #fff; border-bottom: 1px solid rgba(255,255,255,0.08); position: sticky; top: 0; z-index: 9000; }
header .content-wrapper { flex-direction: row; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 0; }
.brand img { height: 34px; width: auto; filter: drop-shadow(0 0 0 rgba(0,0,0,0)); }

.main-nav { display: none; align-items: center; gap: 20px; }
.main-nav a { color: #E9EEF2; padding: 8px 6px; border-bottom: 2px solid transparent; transition: color .2s ease, border-color .2s ease; }
.main-nav a:hover { color: #FFFFFF; border-bottom-color: var(--gold); }
.main-nav a[aria-current="page"] { color: #FFFFFF; border-bottom-color: var(--gold); }

/* CTA Button in header */
header .btn.primary { display: none; }

/* Mobile menu toggle */
.mobile-menu-toggle { display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; border-radius: 10px; border: 1px solid rgba(255,255,255,0.2); background: rgba(255,255,255,0.06); color: #fff; font-size: 20px; transition: background .2s ease, border-color .2s ease; }
.mobile-menu-toggle:hover { background: rgba(255,255,255,0.12); border-color: var(--gold); }
.mobile-menu-toggle:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

/* Desktop nav */
@media (min-width: 992px) {
  .main-nav { display: flex; }
  header .btn.primary { display: inline-flex; }
  .mobile-menu-toggle { display: none; }
}

/* =========================
   Mobile Menu Overlay
   ========================= */
.mobile-menu { position: fixed; top: 0; right: 0; bottom: 0; width: 88%; max-width: 420px; background: #0C2F4B; color: #fff; display: flex; flex-direction: column; padding: 20px; gap: 16px; transform: translateX(100%); transition: transform .35s ease; box-shadow: -10px 0 30px rgba(0,0,0,0.35); z-index: 12000; }
.mobile-menu.open { transform: translateX(0); }
.mobile-menu[aria-hidden="true"] { pointer-events: none; }
.mobile-menu-close { align-self: flex-end; display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 10px; background: rgba(255,255,255,0.08); color: #fff; border: 1px solid rgba(255,255,255,0.18); }
.mobile-menu-close:hover { background: rgba(255,255,255,0.15); border-color: var(--gold); }
.mobile-nav { display: flex; flex-direction: column; gap: 6px; padding-top: 10px; }
.mobile-nav a { padding: 12px 10px; border-radius: 10px; color: #F2F6F9; border: 1px solid transparent; transition: background .2s ease, border-color .2s ease; }
.mobile-nav a:hover { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.12); }
.mobile-nav a[aria-current="page"] { border-color: var(--gold); background: rgba(201,162,39,0.08); }

/* =========================
   Hero (Luxury tone)
   ========================= */
.hero { background: var(--primary); color: #FFFFFF; border-bottom: 1px solid rgba(255,255,255,0.12); position: relative; }
.hero .content-wrapper { padding: 24px 0; }
.hero h1, .hero p { color: #FFFFFF; }
.hero .content-wrapper::before { content: ""; display: block; width: 72px; height: 3px; background: var(--gold); border-radius: 2px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }

.trust ul { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 12px; }
.trust li { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid rgba(255,255,255,0.18); border-radius: 12px; background: rgba(255,255,255,0.05); color: #E8EEF4; }
.trust img { width: 18px; height: 18px; opacity: 0.95; }

.supporting-points ul { display: flex; flex-wrap: wrap; gap: 10px; padding-left: 0; list-style: none; }
.supporting-points li { background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.18); color: #F0F5FA; padding: 8px 12px; border-radius: 10px; }

/* =========================
   Buttons
   ========================= */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 18px; border-radius: 12px; border: 1px solid var(--gold); background: transparent; color: var(--primary); font-weight: 600; transition: background .2s ease, color .2s ease, box-shadow .2s ease, transform .08s ease; }
.btn:hover { background: rgba(201,162,39,0.08); box-shadow: 0 4px 14px rgba(201,162,39,0.18); }
.btn:active { transform: translateY(1px); }
.btn.primary { background: var(--gold); color: #ffffff; border-color: var(--gold); }
.btn.primary:hover { background: var(--gold-600); box-shadow: 0 6px 16px rgba(185,146,60,0.32); }
.btn:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

/* =========================
   Feature / Service / Industry Grids
   ========================= */
.feature-grid, .service-cards, .industry-grid, .case-list, .service-bundles, .testimonial-list { display: flex; flex-wrap: wrap; gap: 24px; }

.feature, .service-card, .industry, .case, .bundle { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 20px; display: flex; flex-direction: column; gap: 10px; box-shadow: 0 6px 24px rgba(15,59,95,0.06); }

/* Ensure minimum spacing between cards */
.feature, .service-card, .industry, .case, .bundle { margin-bottom: 20px; }

/* Flexible sizing */
.feature, .service-card, .industry, .case, .bundle { flex: 1 1 280px; }

.feature h3, .service-card h3, .industry h3, .case h3, .bundle h3 { color: var(--primary); margin-bottom: 6px; }
.feature a, .service-card a, .industry a, .case a, .bundle a { color: var(--primary); border-bottom: 1px solid transparent; padding-bottom: 2px; align-self: flex-start; }
.feature a:hover, .service-card a:hover, .industry a:hover, .case a:hover, .bundle a:hover { border-color: var(--gold); }

/* =========================
   Stats blocks
   ========================= */
.stats { background: var(--surface-muted); border: 1px solid var(--line); border-radius: 16px; padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.stats h3 { margin-bottom: 4px; }
.stats ul { display: flex; flex-wrap: wrap; gap: 10px 16px; }
.stats li { background: #fff; border: 1px solid var(--line); padding: 8px 12px; border-radius: 10px; }

/* =========================
   Testimonials (Light background for readability)
   ========================= */
.testimonial-list { align-items: stretch; }
.testimonial-card { background: #FFFFFF; border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 8px 24px rgba(0,0,0,0.06); align-items: flex-start; }
.testimonial-card p { color: #0E1114; font-style: normal; }
.testimonial-card .author { font-weight: 700; color: var(--primary); }
.testimonial-card .result { color: var(--secondary); font-weight: 600; }

/* =========================
   Contact Block
   ========================= */
.contact-block { display: flex; flex-direction: column; gap: 10px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 20px; }
.contact-block p { display: flex; align-items: center; gap: 10px; margin: 0; }
.contact-block img { width: 18px; height: 18px; }

/* =========================
   Footer
   ========================= */
footer { background: #0B2236; color: #E6EBEF; border-top: 1px solid rgba(255,255,255,0.06); }
footer section { padding: 32px 0; margin-bottom: 0; }
footer .content-wrapper { gap: 24px; }
.footer-brand { display: flex; flex-direction: column; gap: 12px; }
.footer-brand img { height: 34px; width: auto; filter: brightness(1.05); }
.footer-nav { display: flex; flex-wrap: wrap; gap: 12px 16px; }
.footer-nav a { color: #E6EBEF; padding: 6px 0; border-bottom: 1px solid transparent; }
.footer-nav a:hover { border-bottom-color: var(--gold); }
.footer-contact a { color: #E6EBEF; border-bottom: 1px dotted rgba(230,235,239,0.6); }
.footer-contact a:hover { color: #FFFFFF; border-bottom-color: var(--gold); }

@media (min-width: 992px) {
  footer .content-wrapper { flex-direction: row; align-items: flex-start; justify-content: space-between; }
}

/* =========================
   Lists & Content Styling
   ========================= */
.case ul, .industry ul, .feature ul, .service-card ul, .resources ul { display: flex; flex-direction: column; gap: 8px; }
.faq { display: flex; flex-direction: column; gap: 8px; background: var(--surface-muted); border: 1px solid var(--line); border-radius: 14px; padding: 16px; }
.resources { display: flex; flex-direction: column; gap: 10px; }

/* =========================
   Forms / Inputs baseline (for cookie modal switches, future forms)
   ========================= */
input[type="text"], input[type="email"], input[type="tel"], textarea, select { width: 100%; padding: 12px 14px; border-radius: 12px; border: 1px solid #D7DDE3; background: #fff; color: var(--ink); font-family: inherit; }
input:focus-visible, textarea:focus-visible, select:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

/* =========================
   Accessibility Focus for Links
   ========================= */
a:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; border-radius: 6px; }

/* =========================
   Responsive Behaviors
   ========================= */
.text-image-section { align-items: center; }
@media (max-width: 768px) {
  .text-image-section { flex-direction: column; }
}

/* On larger screens, lay out certain wrappers side-by-side if needed */
@media (min-width: 992px) {
  .hero .content-wrapper { flex-direction: column; }
}

/* =========================
   Utilities
   ========================= */
.hr { height: 1px; width: 100%; background: var(--line); }
.muted { color: var(--ink-muted); }

/* =========================
   Cookie Consent Banner (fixed)
   ========================= */
.cookie-banner { position: fixed; left: 0; right: 0; bottom: 0; z-index: 11000; background: #0F2840; color: #EAF2F9; border-top: 2px solid var(--gold); padding: 14px 16px; display: flex; flex-direction: column; gap: 12px; }
.cookie-banner .cookie-inner { display: flex; flex-direction: column; gap: 12px; }
.cookie-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.cookie-actions .btn { border-color: var(--gold); color: #F5F8FB; }
.cookie-actions .btn:hover { background: rgba(201,162,39,0.12); }
.cookie-actions .btn.primary { background: var(--gold); color: #0B0D0F; }
.cookie-actions .btn.primary:hover { background: var(--gold-600); }

@media (min-width: 768px) {
  .cookie-banner .cookie-inner { flex-direction: row; justify-content: space-between; align-items: center; }
}

/* Cookie Preferences Modal */
.cookie-modal { position: fixed; inset: 0; background: rgba(10,14,18,0.6); display: flex; align-items: center; justify-content: center; padding: 20px; opacity: 0; pointer-events: none; transition: opacity .25s ease; z-index: 13000; }
.cookie-modal.open { opacity: 1; pointer-events: auto; }
.cookie-modal .cookie-modal-content { background: #FFFFFF; color: var(--ink); width: 100%; max-width: 720px; border-radius: 16px; padding: 20px; display: flex; flex-direction: column; gap: 16px; border: 1px solid var(--line); box-shadow: 0 16px 40px rgba(0,0,0,0.18); }
.cookie-categories { display: flex; flex-direction: column; gap: 12px; }
.cookie-category { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 12px; border: 1px solid #E3E8EE; border-radius: 12px; background: #FBFCFD; }
.cookie-category .label { display: flex; flex-direction: column; gap: 4px; }
.cookie-modal .actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; }

/* Toggle switch (for analytics/marketing) */
.switch { position: relative; width: 46px; height: 26px; display: inline-flex; align-items: center; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch-track { width: 46px; height: 26px; border-radius: 999px; background: #C8CFD6; position: relative; transition: background .2s ease; display: inline-flex; align-items: center; padding: 2px; }
.switch-thumb { width: 22px; height: 22px; border-radius: 50%; background: #fff; transition: transform .2s ease; }
.switch input:checked + .switch-track { background: var(--gold); }
.switch input:checked + .switch-track .switch-thumb { transform: translateX(20px); }

/* =========================
   Tables/text blocks on legal pages
   ========================= */
main ul { gap: 8px; }
main ol { gap: 8px; }

/* =========================
   Card hover micro-interactions
   ========================= */
.feature:hover, .service-card:hover, .industry:hover, .case:hover, .bundle:hover { box-shadow: 0 10px 28px rgba(15,59,95,0.12); border-color: rgba(201,162,39,0.45); }

/* =========================
   Spacing consistency
   ========================= */
.actions, .stats, .testimonial-list, .feature-grid, .service-cards, .industry-grid, .case-list, .service-bundles { margin-top: 4px; }

/* =========================
   Link styles inside content paragraphs
   ========================= */
.content-wrapper a { text-underline-offset: 3px; }
.content-wrapper p a { color: var(--primary); border-bottom: 1px solid rgba(15,59,95,0.25); }
.content-wrapper p a:hover { border-bottom-color: var(--gold); }

/* =========================
   Header spacing adjustments for visual balance
   ========================= */
.hero .container { padding-top: 8px; padding-bottom: 8px; }

/* =========================
   Responsive layout for multi-column groups using Flex only
   ========================= */
@media (min-width: 768px) {
  .feature-grid, .service-cards, .industry-grid, .case-list, .service-bundles, .testimonial-list { justify-content: space-between; }
}

/* =========================
   Ensure no overlap & proper z-index
   ========================= */
header, .mobile-menu, .cookie-banner, .cookie-modal { z-index: 9000; }
.mobile-menu { z-index: 12000; }
.cookie-modal { z-index: 13000; }
.cookie-banner { z-index: 11000; }

/* =========================
   Additional fine details for luxury feel
   ========================= */
.surface-elevated { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 6px 24px rgba(0,0,0,0.06); padding: 20px; }
.hairline { border-top: 1px solid var(--line); }

/* =========================
   Page-specific tweaks
   ========================= */
/* Branched CTA under industry grid */
.industry-grid + .btn { align-self: flex-start; }

/* Current page highlighting in footer nav mirrors header */
footer .footer-nav a[aria-current="page"] { border-bottom-color: var(--gold); }

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