/* ==========================
   Luminous Accord - Vibrant Energetic UI
   Single CSS file for all pages
   Requirements met: Flexbox-only layouts, responsive mobile-first, mobile menu, cookie consent, mandatory spacing patterns, brand colors/fonts, high-contrast testimonials
   ========================== */

/* ---------- CSS Reset & Normalize ---------- */
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body { font-family: Arial, Helvetica, sans-serif; line-height: 1.6; color: #0B2A42; background: #FFFFFF; }
img, svg { max-width: 100%; height: auto; display: inline-block; }
img { vertical-align: middle; }
a { color: inherit; text-decoration: none; }
ul, ol { padding-left: 1.2rem; }
h1, h2, h3, h4, h5, h6 { margin: 0 0 12px 0; line-height: 1.25; font-family: Georgia, 'Times New Roman', serif; }
p { margin: 0 0 14px 0; }
button { font-family: inherit; border: 0; background: none; padding: 0; cursor: pointer; }
:focus-visible { outline: 3px solid #00E5FF; outline-offset: 2px; }

/* ---------- Design Tokens ---------- */
:root {
  --primary: #0B2A42;        /* Deep brand blue */
  --secondary: #C69C3F;      /* Gold accent */
  --accent: #F2F5F7;         /* Light background */
  --bg: #FFFFFF;             /* Base background */
  --ink: #0B2A42;            /* Base text */
  --ink-muted: #3E5464;      /* Muted text */
  --electric-cyan: #00E5FF;  /* High-energy accent */
  --electric-violet: #6C4CF5;/* Energetic secondary accent */
  --danger: #E53935;
  --success: #12B886;
  --shadow-1: 0 6px 18px rgba(11,42,66,0.12);
  --shadow-2: 0 12px 28px rgba(11,42,66,0.18);
  --radius: 12px;
}

/* ---------- Global Layout ---------- */
.container { display: flex; width: 100%; padding: 0 20px; justify-content: center; }
.content-wrapper { display: flex; flex-direction: column; gap: 18px; width: 100%; max-width: 1120px; }

/* 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; gap: 12px; background: var(--bg); border: 1px solid #E6EDF2; border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow-1); }
.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; background: var(--accent); border-left: 4px solid var(--secondary); border-radius: var(--radius); box-shadow: var(--shadow-1); color: var(--ink); }
.feature-item { display: flex; flex-direction: column; align-items: flex-start; gap: 15px; }

/* ---------- Typography Scale ---------- */
body { font-size: 16px; }
h1 { font-size: 34px; letter-spacing: -0.02em; }
h2 { font-size: 28px; }
h3 { font-size: 20px; }
.subheadline { font-size: 18px; color: var(--accent-ink, #E8F3F9); }
.small { font-size: 14px; color: var(--ink-muted); }
strong { font-weight: 700; }

/* ---------- Header & Navigation ---------- */
header { position: sticky; top: 0; z-index: 1000; background: #FFFFFF; border-bottom: 2px solid #E9EEF2; }
header .container { justify-content: space-between; align-items: center; min-height: 64px; gap: 12px; }
.logo img { height: 36px; }

.main-nav { display: none; align-items: center; gap: 16px; flex-wrap: wrap; }
.main-nav a { color: var(--ink); font-weight: 700; padding: 10px 12px; border-radius: 10px; transition: color .2s ease, background-color .2s ease, transform .2s ease; }
.main-nav a:hover { background: var(--accent); transform: translateY(-1px); }
.main-nav a[aria-current='page'] { color: var(--secondary); }

/* Header CTA */
.cta { display: none; color: var(--primary); background: var(--secondary); padding: 10px 16px; border-radius: 14px; font-weight: 800; letter-spacing: .02em; box-shadow: var(--shadow-1); transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease; }
.cta:hover { transform: translateY(-2px); box-shadow: var(--shadow-2); background: #B48830; }
.cta:active { transform: translateY(0); }

/* Mobile Menu Toggle */
.mobile-menu-toggle { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; font-size: 22px; border-radius: 10px; background: var(--primary); color: #FFFFFF; box-shadow: var(--shadow-1); transition: transform .2s ease, background-color .2s ease; }
.mobile-menu-toggle:hover { transform: translateY(-1px); background: #0D3654; }

/* Mobile Menu Overlay */
.mobile-menu { position: fixed; inset: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 20px; padding: 24px; background: var(--primary); color: #FFFFFF; transform: translateX(100%); transition: transform .35s ease; z-index: 9999; }
.mobile-menu.open, .mobile-menu.active, .mobile-menu[aria-hidden='false'] { transform: translateX(0); }
.mobile-menu-close { align-self: flex-end; width: 44px; height: 44px; border-radius: 10px; background: #0D3654; color: #FFFFFF; font-size: 22px; display: inline-flex; align-items: center; justify-content: center; box-shadow: var(--shadow-1); }
.mobile-nav { display: flex; flex-direction: column; gap: 12px; width: 100%; }
.mobile-nav a { padding: 14px 12px; border-radius: 12px; background: rgba(255,255,255,0.06); font-weight: 700; color: #FFFFFF; }
.mobile-nav a:hover { background: rgba(255,255,255,0.12); }
.mobile-nav a[aria-current='page'] { background: rgba(198,156,63,0.25); color: #FFEAB8; }

/* ---------- Hero Section ---------- */
.hero { background: var(--primary); color: #FFFFFF; position: relative; overflow: hidden; }
.hero .container { padding-top: 36px; padding-bottom: 36px; }
.hero .content-wrapper { gap: 20px; }
.hero h1 { color: #FFFFFF; font-weight: 800; }
.hero .subheadline { color: #D6E6F2; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.value-badges { display: flex; flex-wrap: wrap; gap: 10px; }
.value-badges span { display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border: 2px solid var(--electric-cyan); color: #FFFFFF; border-radius: 999px; font-weight: 700; font-size: 14px; background: rgba(0,229,255,0.08); }

/* ---------- Sections ---------- */
main section { padding: 36px 0; }
section .text-section { display: flex; flex-direction: column; gap: 14px; color: var(--ink); }
.kpis { display: flex; flex-wrap: wrap; gap: 10px; padding: 12px 14px; background: #FFF8E6; border: 1px solid #FFE4A3; border-radius: 10px; color: #5B4210; }

/* ---------- Buttons & Links ---------- */
.btn-primary { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 14px 20px; font-weight: 900; letter-spacing: .02em; border-radius: 14px; background: var(--secondary); color: var(--primary); border: 2px solid transparent; box-shadow: var(--shadow-1); transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease, border-color .2s ease; }
.btn-primary:hover { transform: translateY(-2px); box-shadow: var(--shadow-2); background: #B48830; border-color: #FFD36A; }
.btn-primary:active { transform: translateY(0); }

.btn-link { display: inline-flex; align-items: center; gap: 8px; color: var(--secondary); font-weight: 800; border-bottom: 2px solid currentColor; padding-bottom: 2px; transition: color .2s ease, transform .2s ease; }
.btn-link:hover { color: #B48830; transform: translateY(-1px); }

/* Generic anchors */
a:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Breadcrumb ---------- */
.breadcrumb { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: 14px; color: #CFE0EA; }
.breadcrumb a { color: #FFFFFF; font-weight: 700; }
.breadcrumb span { color: #CFE0EA; }

/* ---------- Lists ---------- */
.text-section ul, .text-section ol { display: flex; flex-direction: column; gap: 8px; margin: 0; padding-left: 20px; }
.text-section li { padding-left: 0; }

/* Inline contact icons */
.text-section p img { width: 20px; height: 20px; margin-right: 8px; filter: none; }

/* ---------- Testimonials (High Contrast Light) ---------- */
.testimonial-card p { margin: 0; }
.testimonial-card p + p { color: var(--ink-muted); }
.testimonial-card:hover { box-shadow: var(--shadow-2); transform: translateY(-2px); transition: transform .2s ease, box-shadow .2s ease; }

/* ---------- Footer ---------- */
footer { background: var(--primary); color: #FFFFFF; margin-top: 20px; }
footer .container { padding-top: 28px; padding-bottom: 28px; }
footer .content-wrapper { gap: 16px; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 12px; }
.footer-nav a { color: #D6E6F2; font-weight: 700; padding: 8px 10px; border-radius: 10px; }
.footer-nav a[aria-current='page'] { color: #FFEAB8; background: rgba(255,255,255,0.06); }
footer .text-section { color: #CFE0EA; }
.social { display: flex; align-items: center; gap: 12px; }
.social a img { width: 22px; height: 22px; filter: brightness(1.2); }

/* ---------- Utility & Micro-interactions ---------- */
.shadow-1 { box-shadow: var(--shadow-1); }
.bg-accent { background: var(--accent); }
.badge { display: inline-flex; align-items: center; padding: 6px 10px; border-radius: 999px; background: #EAF7FF; color: #0A5672; font-weight: 800; }

/* ---------- Page-specific minor styles ---------- */
/* Emphasize action sections at end of pages */
main section:last-of-type .btn-primary { align-self: flex-start; }

/* Insights list emphasis */
.text-section a { color: var(--primary); font-weight: 800; }
.text-section a:hover { color: var(--secondary); }

/* ---------- Mobile Navigation Behavior (global helpers) ---------- */
body.menu-open { overflow: hidden; }

/* ---------- Cookie Consent Banner ---------- */
.cookie-banner { position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 9998; display: flex; flex-direction: column; gap: 12px; padding: 16px; background: #FFFFFF; color: var(--ink); border: 2px solid var(--secondary); border-radius: 14px; box-shadow: var(--shadow-2); transform: translateY(150%); opacity: 0; transition: transform .35s ease, opacity .35s ease; }
.cookie-banner.show { transform: translateY(0); opacity: 1; }
.cookie-banner .cookie-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.cookie-banner .btn { display: inline-flex; align-items: center; justify-content: center; padding: 10px 14px; border-radius: 12px; font-weight: 800; }
.cookie-banner .btn-accept { background: var(--secondary); color: var(--primary); }
.cookie-banner .btn-reject { background: #F0F3F7; color: var(--ink); border: 1px solid #E0E7EF; }
.cookie-banner .btn-settings { background: var(--primary); color: #FFFFFF; }
.cookie-banner .btn:hover { transform: translateY(-1px); box-shadow: var(--shadow-1); }

/* Cookie Preferences Modal */
.cookie-modal { position: fixed; inset: 0; z-index: 9999; display: none; align-items: center; justify-content: center; padding: 20px; background: rgba(11,42,66,0.6); }
.cookie-modal.open { display: flex; }
.cookie-modal .cookie-modal-content { display: flex; flex-direction: column; gap: 16px; width: 100%; max-width: 640px; background: #FFFFFF; color: var(--ink); border-radius: 16px; border: 2px solid var(--secondary); box-shadow: var(--shadow-2); padding: 20px; }
.cookie-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid #EAEFF4; }
.cookie-row:last-child { border-bottom: 0; }
.cookie-row .label { display: flex; flex-direction: column; gap: 4px; }
.toggle { position: relative; width: 52px; height: 30px; background: #E2E8F0; border-radius: 999px; transition: background-color .2s ease; }
.toggle[aria-checked='true'] { background: #12B886; }
.toggle::after { content: ""; position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; background: #FFFFFF; border-radius: 50%; box-shadow: 0 2px 6px rgba(0,0,0,0.2); transition: transform .2s ease; }
.toggle[aria-checked='true']::after { transform: translateX(22px); }
.cookie-modal .actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; }

/* ---------- Accessibility & States ---------- */
[aria-current='page'] { position: relative; }
[aria-current='page']::after { content: ""; display: block; height: 2px; background: var(--secondary); margin-top: 4px; border-radius: 2px; }

/* ---------- Responsive Rules ---------- */
@media (min-width: 600px) {
  h1 { font-size: 40px; }
  h2 { font-size: 30px; }
  .hero .container { padding-top: 48px; padding-bottom: 48px; }
}

@media (min-width: 768px) {
  .text-image-section { flex-direction: row; }
  .content-grid > * { flex: 1 1 calc(50% - 20px); }
  .card-container > .card { flex: 1 1 calc(50% - 24px); }
}

@media (min-width: 992px) {
  .main-nav { display: flex; }
  .cta { display: inline-flex; }
  .mobile-menu-toggle { display: none; }

  h1 { font-size: 48px; }
  h2 { font-size: 36px; }
  h3 { font-size: 24px; }

  .content-grid > * { flex: 1 1 calc(33.333% - 20px); }
  .card-container > .card { flex: 1 1 calc(33.333% - 24px); }

  .hero .content-wrapper { flex-direction: column; max-width: 1120px; }
}

@media (min-width: 1200px) {
  h1 { font-size: 56px; }
}

/* ---------- Page Element Enhancements for Energy & Vibrance ---------- */
/* Gold underline accent for h2 */
.content-wrapper > h2 { position: relative; display: inline-flex; align-items: center; gap: 12px; }
.content-wrapper > h2::after { content: ""; display: inline-block; width: 56px; height: 6px; background: var(--secondary); border-radius: 4px; }

/* Subtle energetic border for sections on light backgrounds */
main section:nth-child(odd) .content-wrapper { background: #4e4e4e15; border: 1px solid #EAF0F5; border-radius: var(--radius); padding: 16px; }

/* ---------- Breadcrumbs in non-hero contexts (fallback) ---------- */
section .breadcrumb { color: var(--ink-muted); }
section .breadcrumb a { color: var(--primary); }

/* ---------- Inline Buttons in content ---------- */
.content-wrapper .actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Forms (future-proof if added) ---------- */
input, select, textarea { width: 100%; padding: 12px 14px; border: 1px solid #DFE7EE; border-radius: 10px; font-size: 16px; }
input:focus, select:focus, textarea:focus { border-color: var(--secondary); box-shadow: 0 0 0 3px rgba(198,156,63,0.25); outline: none; }
label { font-weight: 700; color: var(--ink); margin-bottom: 6px; display: inline-flex; }

/* ---------- Cards (generic) ---------- */
.card:hover { box-shadow: var(--shadow-2); transform: translateY(-2px); transition: transform .2s ease, box-shadow .2s ease; }

/* ---------- Contact quick links ---------- */
.text-section a[href^='tel'], .text-section a[href^='mailto'] { color: var(--secondary); font-weight: 800; }
.text-section a[href^='tel']:hover, .text-section a[href^='mailto']:hover { color: #B48830; }

/* ---------- Ensure spacing between all content blocks ---------- */
main .content-wrapper > * + * { margin-top: 4px; }
section + section { margin-top: 10px; }

/* ---------- Prevent overlap and manage z-index ---------- */
.hero, header, .mobile-menu, .cookie-banner, .cookie-modal { will-change: transform; }

/* ---------- High-contrast rules for testimonials & reviews ---------- */
/* Dark text already enforced via base; ensure links readable */
.testimonial-card a { color: var(--primary); font-weight: 800; text-decoration: underline; }

/* ---------- Misc small touches ---------- */
hr { border: 0; height: 1px; background: #E6EDF2; margin: 16px 0; }

/* ---------- Breadcrumb symbol spacing in hero where provided as text '›' ---------- */
.breadcrumb { letter-spacing: .02em; }

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