/* ============================================================
   MERIDIAN ADVISORY GMBH
   Design System v3.0 — High Contrast Dark & Gold
   ============================================================ */

/* ─── TOKENS ─────────────────────────────────────────────── */
:root {
  --navy:        #0b1929;
  --navy-mid:    #122035;
  --navy-light:  #1c3050;
  --navy-card:   #162a44;
  --gold:        #c9a96e;
  --gold-light:  #dfc08a;
  --gold-dim:    #9a7a4e;
  --parchment:   #f2ede4;
  --parchment-2: #e9e2d6;
  --white:       #ffffff;
  --text-dark:   #14110d;
  --text-mid:    #3c3629;
  --text-muted:  #7a7165;
  --grey-line:   #d4cec5;

  --font-serif:  'Playfair Display', Georgia, serif;
  --font-sans:   'Inter', system-ui, sans-serif;

  --space-xs:  0.4rem;
  --space-sm:  0.9rem;
  --space-md:  1.3rem;
  --space-lg:  2rem;
  --space-xl:  2.75rem;
  --space-2xl: 3.75rem;
  --space-3xl: 5.5rem;

  --header-h:  74px;
  --max-w:     1200px;
  --max-w-text: 760px;
  --radius:    4px;
  --radius-md: 8px;
  --shadow-card: 0 4px 24px rgba(0,0,0,0.1), 0 1px 4px rgba(0,0,0,0.06);
  --shadow-lg:   0 16px 56px rgba(0,0,0,0.22);
  --transition:  0.24s ease;
}

/* ─── RESET ──────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-sans);
  color: var(--text-dark);
  background: var(--parchment);   /* warm parchment — no white-on-white */
  line-height: 1.74;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a  { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font: inherit; }

/* ─── CONTAINER ──────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: clamp(1rem, 4vw, 2rem);
}

/* ─── TYPOGRAPHY ─────────────────────────────────────────── */
h1, h2, h3, h4, h5 {
  font-family: var(--font-serif);
  font-weight: 700;
  line-height: 1.18;
  color: var(--navy);
}
h1 { font-size: clamp(2rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); }
h3 { font-size: clamp(1.1rem, 2.5vw, 1.4rem); }
h4 { font-size: 1rem; font-family: var(--font-sans); font-weight: 700; }

p { color: var(--text-mid); margin-bottom: 1em; }
p:last-child { margin-bottom: 0; }
.lead { font-size: 1.08rem; line-height: 1.84; color: var(--text-mid); }

/* On dark bg */
.on-dark h1, .on-dark h2, .on-dark h3, .on-dark h4 { color: var(--white); }
.on-dark p, .on-dark .lead { color: rgba(255,255,255,0.68); }

/* ─── DEMO NOTICE ────────────────────────────────────────── */
.demo-notice {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1100;
  background: var(--gold);
  color: var(--navy);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-align: center;
  padding: 0.4rem 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  flex-wrap: wrap;
}
.demo-notice a {
  color: var(--navy);
  text-decoration: underline;
  margin-left: 0.75rem;
  font-weight: 700;
}


/* ─── GOLD LINE ──────────────────────────────────────────── */
.gold-line {
  width: 52px; height: 3px;
  background: var(--gold);
  margin-bottom: var(--space-md);
  flex-shrink: 0;
}
.gold-line.center { margin-inline: auto; }

/* ─── SECTION LABEL ──────────────────────────────────────── */
.section-label {
  display: block;
  font-family: var(--font-sans);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.45rem;
}

/* ─── BUTTONS ────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.85rem;
  font-family: var(--font-sans);
  font-size: 0.83rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  border-radius: var(--radius);
  transition: var(--transition);
  text-transform: uppercase;
  white-space: nowrap;
  cursor: pointer; line-height: 1;
}
.btn-primary  { background: var(--gold); color: var(--navy); border: 2px solid var(--gold); }
.btn-primary:hover { background: var(--gold-light); border-color: var(--gold-light); transform: translateY(-1px); }
.btn-outline  { background: transparent; color: var(--white); border: 2px solid rgba(201,169,110,0.65); }
.btn-outline:hover { background: var(--gold); border-color: var(--gold); color: var(--navy); }
.btn-outline-dark { background: transparent; color: var(--navy); border: 2px solid var(--navy); }
.btn-outline-dark:hover { background: var(--navy); color: var(--white); }

/* ─── UTILITIES ──────────────────────────────────────────── */
.mb-sm  { margin-bottom: var(--space-sm); }
.mb-md  { margin-bottom: var(--space-md); }
.mb-lg  { margin-bottom: var(--space-lg); }
.mt-lg  { margin-top: var(--space-lg); }
.text-center { text-align: center; }
.text-gold   { color: var(--gold); }
.text-white  { color: var(--white); }

.highlight-box {
  background: rgba(201,169,110,0.12);
  border-left: 4px solid var(--gold);
  padding: var(--space-md) var(--space-lg);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
}
.highlight-box p { font-size: 0.92rem; color: var(--text-mid); }

/* ─── REVEAL ANIMATION ───────────────────────────────────── */
.reveal {
  opacity: 0; transform: translateY(20px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.reveal.visible { opacity: 1; transform: none; }

/* ============================================================
   DEMO NOTICE — header & content offsets
   --notice-h is set dynamically by JS based on actual height.
   ============================================================ */

body:has(.demo-notice) #site-header {
  top: var(--notice-h, 36px);
}
body:has(.demo-notice) .mobile-nav {
  top: calc(var(--header-h) + var(--notice-h, 36px));
}
body:has(.demo-notice) .breadcrumb {
  margin-top: calc(var(--header-h) + var(--notice-h, 36px));
}
body:has(.demo-notice) .hero-content {
  padding-top: calc(var(--header-h) + var(--notice-h, 36px));
}
body:has(.demo-notice) .page-hero {
  padding-top: calc(var(--space-3xl) + var(--notice-h, 36px));
}

/* ============================================================
   HEADER
   ============================================================ */
#site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--header-h);
  background: var(--navy);
  border-bottom: 1px solid rgba(201,169,110,0.18);
  transition: box-shadow var(--transition);
}
#site-header.scrolled { box-shadow: 0 6px 40px rgba(0,0,0,0.45); }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  gap: 1rem;
}

.site-logo { display: flex; flex-direction: column; gap: 2px; flex-shrink: 0; }
.site-logo .logo-name {
  font-family: var(--font-serif);
  font-size: 1.08rem; font-weight: 700;
  color: var(--white); letter-spacing: 0.01em; line-height: 1.1;
}
.site-logo .logo-sub {
  font-size: 0.56rem; font-weight: 600;
  color: var(--gold); letter-spacing: 0.22em; text-transform: uppercase;
}

/* Desktop nav */
.main-nav { display: flex; align-items: center; flex-shrink: 0; }
.main-nav ul {
  display: flex; align-items: center;
  flex-wrap: nowrap; gap: 1rem; list-style: none;
}
.main-nav a {
  font-size: 0.77rem; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: rgba(255,255,255,0.75);
  transition: color var(--transition);
  position: relative; padding-bottom: 2px;
  white-space: nowrap;
}
.main-nav a::after {
  content: ''; position: absolute;
  bottom: 0; left: 0; width: 0; height: 1.5px;
  background: var(--gold); transition: width var(--transition);
}
.main-nav a:hover, .main-nav a.active { color: var(--gold); }
.main-nav a:hover::after, .main-nav a.active::after { width: 100%; }

/* Dropdown */
.nav-item { position: relative; }
/* Invisible bridge to prevent hover gap */
.nav-item::after {
  content: ''; position: absolute;
  bottom: -14px; left: 0; right: 0; height: 14px;
}
.nav-dropdown {
  display: none;
  position: absolute; top: calc(100% + 12px); left: 0;
  min-width: 240px;
  background: var(--navy-mid);
  border: 1px solid rgba(201,169,110,0.18);
  border-top: 2px solid var(--gold);
  box-shadow: 0 16px 48px rgba(0,0,0,0.4);
  z-index: 200;
}
.nav-item:hover .nav-dropdown { display: block; }
.nav-dropdown li { list-style: none; }
.nav-dropdown a {
  display: block; padding: 0.7rem 1.2rem;
  font-size: 0.79rem; font-weight: 500;
  text-transform: none; letter-spacing: 0.03em;
  color: rgba(255,255,255,0.72);
}
.nav-dropdown a:hover { color: var(--gold); background: rgba(201,169,110,0.07); }
.nav-dropdown a::after { display: none; }

/* CTA pill */
.nav-cta {
  background: var(--gold) !important; color: var(--navy) !important;
  padding: 0.48rem 1.1rem !important; border-radius: var(--radius);
  font-weight: 700 !important;
  line-height: 1 !important;
}
.nav-cta::after { display: none !important; }
.nav-cta:hover { background: var(--gold-light) !important; }

/* Hamburger */
.hamburger { display: none; flex-direction: column; gap: 5px; padding: 8px; flex-shrink: 0; }
.hamburger span { display: block; width: 22px; height: 2px; background: var(--white); transition: var(--transition); border-radius: 2px; }
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile nav */
.mobile-nav {
  display: none; position: fixed;
  top: var(--header-h); left: 0; right: 0; bottom: 0;
  background: var(--navy); overflow-y: auto; z-index: 999;
  padding: var(--space-sm) var(--space-sm) var(--space-xl);
  flex-direction: column;
}
.mobile-nav.open { display: flex; }
.mobile-nav a {
  display: block; padding: 0.9rem 1rem;
  font-size: 1rem; font-weight: 500;
  color: rgba(255,255,255,0.78);
  border-bottom: 1px solid rgba(255,255,255,0.07);
  transition: color var(--transition), background var(--transition);
}
.mobile-nav a:hover { color: var(--gold); background: rgba(201,169,110,0.06); }
.mobile-nav .mobile-cta {
  margin-top: var(--space-md); padding: 1rem;
  background: var(--gold); color: var(--navy) !important;
  text-align: center; font-weight: 700;
  border-radius: var(--radius); border-bottom: none;
}

/* ============================================================
   BREADCRUMB
   ============================================================ */
.breadcrumb { background: var(--parchment-2); padding: 0.7rem 0; margin-top: var(--header-h); border-bottom: 1px solid var(--grey-line); }
.breadcrumb-list { display: flex; align-items: center; gap: 0.45rem; flex-wrap: wrap; }
.breadcrumb-list li { display: flex; align-items: center; gap: 0.45rem; font-size: 0.78rem; color: var(--text-muted); }
.breadcrumb-list li a { color: var(--gold-dim); transition: color var(--transition); }
.breadcrumb-list li a:hover { color: var(--navy); }
.breadcrumb-list li::after { content: '/'; color: var(--grey-line); }
.breadcrumb-list li:last-child::after { display: none; }
.breadcrumb-list li:last-child { color: var(--text-mid); font-weight: 600; }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative; min-height: 100svh;
  display: flex; align-items: center;
  overflow: hidden; background: var(--navy);
  padding-bottom: 110px;
}
.hero-bg {
  position: absolute; inset: 0;
  background:
    linear-gradient(135deg, rgba(11,25,41,0.97) 0%, rgba(18,32,53,0.88) 55%, rgba(11,25,41,0.94) 100%),
    url('images/hero-bg.webp') center/cover no-repeat;
  z-index: 0;
}
.hero-bg::after {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse 60% 70% at 72% 50%, rgba(201,169,110,0.08) 0%, transparent 65%);
}
.hero-content { position: relative; z-index: 2; max-width: 680px; padding-top: var(--header-h); }

.hero-badge {
  display: inline-block; font-size: 0.64rem; font-weight: 700;
  letter-spacing: 0.24em; text-transform: uppercase; color: var(--gold);
  border: 1px solid rgba(201,169,110,0.38); padding: 0.3rem 0.85rem;
  border-radius: 2px; margin-bottom: var(--space-md);
}
.hero h1 { font-size: clamp(2.2rem, 5.5vw, 3.6rem); color: var(--white); line-height: 1.1; margin-bottom: var(--space-md); }
.hero h1 em { font-style: normal; color: var(--gold); }
.hero-lead { font-size: 1.05rem; color: rgba(255,255,255,0.68); margin-bottom: var(--space-lg); line-height: 1.82; max-width: 540px; }
.hero-actions { display: flex; gap: 0.9rem; flex-wrap: wrap; align-items: center; }

/* Hero bullet points */
.hero-bullets { display: flex; flex-direction: column; gap: 0.55rem; margin-bottom: var(--space-lg); }
.hero-bullet {
  display: flex; align-items: center; gap: 0.65rem;
  font-size: 0.87rem; color: rgba(255,255,255,0.72); font-weight: 500;
}
.hero-bullet::before {
  content: '';
  flex-shrink: 0; width: 6px; height: 6px;
  background: var(--gold); border-radius: 50%;
}

/* Stats bar */
.hero-stats {
  position: absolute; bottom: 0; left: 0; right: 0;
  background: rgba(8,18,32,0.92);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid rgba(201,169,110,0.18); z-index: 3;
}
.hero-stats-inner { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat-item {
  padding: 1.25rem var(--space-md); text-align: center;
  border-right: 1px solid rgba(201,169,110,0.1);
}
.stat-item:last-child { border-right: none; }
.stat-number {
  font-family: var(--font-serif); font-size: 1.8rem; font-weight: 700;
  color: var(--gold); line-height: 1; margin-bottom: 0.3rem;
}
.stat-label { font-size: 0.66rem; color: rgba(255,255,255,0.42); letter-spacing: 0.1em; text-transform: uppercase; line-height: 1.4; }

/* ============================================================
   PAGE HERO
   ============================================================ */
.page-hero {
  background: var(--navy);
  padding: var(--space-xl) 0 var(--space-lg);
  position: relative; overflow: hidden;
}
.page-hero::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse 60% 80% at 78% 50%, rgba(201,169,110,0.07) 0%, transparent 70%);
}
.page-hero-content { position: relative; z-index: 1; }
.page-hero h1 { color: var(--white); }
.page-hero p { color: rgba(255,255,255,0.6); max-width: 600px; margin-top: 0.8rem; font-size: 1.05rem; line-height: 1.78; }
.page-hero .accent-line { width: 52px; height: 2px; background: var(--gold); margin: var(--space-md) 0; }

/* ============================================================
   SECTIONS
   ============================================================ */
/* Default: parchment background */
.section    { padding: var(--space-3xl) 0; background: var(--parchment); }
.section-sm { padding: var(--space-2xl) 0; background: var(--parchment); }
/* Alternation: white background */
.section-bg { background: var(--white); }
/* Dark */
.section-dark { background: var(--navy); }
.section-dark h2, .section-dark h3, .section-dark h4 { color: var(--white); }
.section-dark p { color: rgba(255,255,255,0.65); }
.section-dark .section-label { color: var(--gold); }

.section-header { margin-bottom: var(--space-xl); }
.section-header.center { text-align: center; }
.section-header.center .gold-line { margin-inline: auto; }

/* ============================================================
   TRUST BAR
   ============================================================ */
.trust-bar {
  background: var(--navy-mid);
  padding: 1.25rem 0;
  border-top: 1px solid rgba(201,169,110,0.15);
  border-bottom: 1px solid rgba(201,169,110,0.15);
}
.trust-bar-inner {
  display: flex; align-items: center; justify-content: center;
  gap: var(--space-xl); flex-wrap: wrap; row-gap: var(--space-sm);
}
.trust-item {
  display: flex; align-items: center; gap: 0.65rem;
  color: rgba(255,255,255,0.68); font-size: 0.82rem; font-weight: 500;
  white-space: nowrap;
}
.trust-item svg { color: var(--gold); flex-shrink: 0; }

/* ============================================================
   SERVICE CARDS
   — White on parchment bg: strong shadow = clear contrast
   — White on dark bg: inverted navy card
   ============================================================ */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 290px), 1fr));
  gap: var(--space-md);
}

/* Light bg version */
.service-card {
  background: var(--white);
  border-top: 3px solid transparent;
  padding: var(--space-lg) var(--space-md);
  transition: var(--transition);
  display: flex; flex-direction: column;
  box-shadow: var(--shadow-card);
}
.service-card:hover {
  border-top-color: var(--gold);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.15);
}

/* Dark bg version — used inside .section-dark */
.section-dark .service-card {
  background: var(--navy-card);
  border: 1px solid rgba(201,169,110,0.2);
  border-top: 3px solid transparent;
  box-shadow: none;
}
.section-dark .service-card:hover {
  border-color: var(--gold);
  border-top-color: var(--gold);
  background: var(--navy-light);
}
.section-dark .service-card h3 { color: var(--white); }
.section-dark .service-card p  { color: rgba(255,255,255,0.62); }
.section-dark .service-card .checklist li { color: rgba(255,255,255,0.72); }
.section-dark .service-card .checklist li::before { border-color: rgba(201,169,110,0.6); background-color: rgba(201,169,110,0.15); }
.section-dark .service-card .service-card-link { color: var(--gold-light); }
.service-card-icon {
  width: 48px; height: 48px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(201,169,110,0.12);
  border-radius: 50%; margin-bottom: var(--space-md);
  color: var(--gold); flex-shrink: 0;
  border: 1.5px solid rgba(201,169,110,0.35);
}
.section-dark .service-card-icon { background: rgba(201,169,110,0.1); }

.service-card h3 { font-size: 1.1rem; margin-bottom: 0.6rem; }
.service-card p  { font-size: 0.87rem; line-height: 1.74; flex: 1; }
.service-card-link {
  display: inline-flex; align-items: center; gap: 0.4rem;
  margin-top: var(--space-md); font-size: 0.75rem; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold);
  transition: gap var(--transition);
}
.service-card-link:hover { gap: 0.7rem; }

/* ============================================================
   TWO-COLUMN LAYOUT
   ============================================================ */
.two-col {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: var(--space-xl); align-items: center;
}
.two-col.reverse > :first-child { order: 2; }
.two-col.reverse > :last-child  { order: 1; }

.feature-img-wrap {
  position: relative; border-radius: var(--radius-md);
  overflow: hidden; box-shadow: var(--shadow-lg);
}
.feature-img-wrap img { width: 100%; height: 400px; object-fit: cover; }

/* Checklist */
.checklist { display: flex; flex-direction: column; gap: 0.75rem; margin: var(--space-md) 0; }
.checklist li {
  display: flex; align-items: flex-start; gap: 0.75rem;
  font-size: 0.9rem; color: var(--text-mid); line-height: 1.58;
}
.checklist li::before {
  content: '';
  flex-shrink: 0; width: 20px; height: 20px; margin-top: 0;
  background: rgba(201,169,110,0.12)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2 6l3 3 5-5' stroke='%23c9a96e' stroke-width='1.8' fill='none' stroke-linecap='round'/%3E%3C/svg%3E")
    center/11px no-repeat;
  border: 1.5px solid rgba(201,169,110,0.5); border-radius: 50%;
  flex-shrink: 0;
}
.on-dark .checklist li { color: rgba(255,255,255,0.75); }

/* ============================================================
   PROCESS STEPS — dark panel style
   ============================================================ */
.process-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr));
  gap: 0;
  border: 1px solid var(--grey-line);
  background: var(--navy);  /* always dark regardless of section */
}
.step {
  padding: var(--space-lg) var(--space-md) var(--space-md);
  background: var(--navy);
  border-right: 1px solid rgba(201,169,110,0.15);
  position: relative; transition: background var(--transition);
}
.step:last-child { border-right: none; }
.step:hover { background: var(--navy-light); }
.step-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 42px; height: 42px; border-radius: 50%;
  background: transparent; border: 2px solid var(--gold);
  color: var(--gold); font-family: var(--font-serif);
  font-size: 1.05rem; font-weight: 700;
  margin-bottom: var(--space-md); flex-shrink: 0;
}
.step h4 { font-size: 0.97rem; margin-bottom: 0.5rem; color: var(--white); }
.step p   { font-size: 0.85rem; color: rgba(255,255,255,0.6); margin: 0; }

/* ============================================================
   QUOTE BLOCK
   ============================================================ */
.quote-block {
  background: var(--navy-mid);
  border-left: 4px solid var(--gold);
  padding: var(--space-lg) var(--space-2xl);
}
.quote-block blockquote {
  font-family: var(--font-serif); font-style: italic;
  font-size: clamp(1.05rem, 2.5vw, 1.3rem); color: var(--white); line-height: 1.68;
}
.quote-block cite {
  display: block; margin-top: var(--space-sm);
  font-family: var(--font-sans); font-size: 0.76rem; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--gold); font-style: normal;
}

/* ============================================================
   FAQ ACCORDION
   ============================================================ */
.faq-list { display: flex; flex-direction: column; }
.faq-item { border-bottom: 1px solid var(--grey-line); }
.faq-item:first-child { border-top: 1px solid var(--grey-line); }
.faq-question {
  display: flex; justify-content: space-between; align-items: center;
  padding: 1.15rem 0; cursor: pointer;
  font-weight: 600; color: var(--text-dark); font-size: 0.96rem;
  gap: 1rem; transition: color var(--transition); user-select: none;
}
.faq-question:hover { color: var(--gold-dim); }
.faq-icon {
  flex-shrink: 0; width: 24px; height: 24px;
  display: flex; align-items: center; justify-content: center;
  border: 2px solid var(--grey-line); border-radius: 50%;
  color: var(--text-muted); font-size: 0.9rem;
  transition: var(--transition); line-height: 1;
}
.faq-item.open .faq-icon { border-color: var(--gold); color: var(--gold); transform: rotate(45deg); }
.faq-answer {
  display: none; padding: 0 0 1.2rem;
  font-size: 0.9rem; color: var(--text-mid); line-height: 1.8;
}
.faq-item.open .faq-answer { display: block; }

/* ============================================================
   CONTACT FORM
   ============================================================ */
.contact-page-grid {
  display: grid; grid-template-columns: 1.25fr 1fr;
  gap: var(--space-xl); align-items: start;
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.9rem; }
.form-grid .full { grid-column: 1 / -1; }
.form-group { display: flex; flex-direction: column; gap: 0.3rem; }
.form-group label {
  font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-mid);
}
.form-group input,
.form-group textarea,
.form-group select {
  padding: 0.82rem 1rem;
  border: 1.5px solid var(--grey-line);
  border-radius: var(--radius); font-family: var(--font-sans);
  font-size: 0.91rem; color: var(--text-dark); background: var(--white);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none; width: 100%; -webkit-appearance: none;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201,169,110,0.14);
}
.form-group textarea { resize: vertical; min-height: 130px; }
.form-check-label {
  display: flex; align-items: flex-start; gap: 0.75rem; cursor: pointer;
  font-size: 0.87rem; font-weight: 400; color: var(--text-mid);
  text-transform: none; letter-spacing: 0; line-height: 1.55;
}
.form-check-label input[type="checkbox"] {
  flex-shrink: 0; width: 16px; height: 16px;
  margin-top: 2px; accent-color: var(--gold); cursor: pointer;
}
.form-note { font-size: 0.74rem; color: var(--text-muted); margin-top: 0.55rem; }
.form-status {
  margin-top: var(--space-sm); padding: 1rem;
  border-radius: var(--radius); font-size: 0.87rem; display: none;
}
.form-status.success { background: #ecfdf5; color: #065f46; border: 1px solid #6ee7b7; display: block; }
.form-status.error   { background: #fef2f2; color: #991b1b; border: 1px solid #fca5a5; display: block; }

/* ============================================================
   CONTACT ITEMS
   ============================================================ */
.contact-items { display: flex; flex-direction: column; gap: var(--space-md); }
.contact-item  { display: flex; align-items: flex-start; gap: 1rem; }
.contact-item-icon {
  width: 44px; height: 44px; background: rgba(201,169,110,0.14);
  border: 1.5px solid rgba(201,169,110,0.35);
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; color: var(--gold); font-size: 1rem;
}
.contact-item-body h4 {
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--gold-dim);
  margin-bottom: 0.25rem; font-family: var(--font-sans);
}
.contact-item-body p, .contact-item-body a { font-size: 0.91rem; color: var(--text-mid); }
.contact-item-body a:hover { color: var(--gold-dim); }

/* ============================================================
   REFERENCES
   ============================================================ */
.refs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
  gap: var(--space-md);
}
.ref-card {
  background: var(--white); box-shadow: var(--shadow-card);
  overflow: hidden; transition: var(--transition); border-top: 3px solid transparent;
}
.ref-card:hover { box-shadow: 0 12px 40px rgba(0,0,0,0.14); border-top-color: var(--gold); transform: translateY(-3px); }
.ref-card-body { padding: var(--space-md); }
.ref-card-tag {
  display: inline-block; font-size: 0.64rem; font-weight: 700;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--gold-dim); margin-bottom: 0.5rem;
}
.ref-card h3 { font-size: 1rem; margin-bottom: 0.45rem; }
.ref-card p  { font-size: 0.84rem; }

/* ============================================================
   CTA SECTION
   ============================================================ */
.cta-section {
  background: var(--navy);
  padding: var(--space-2xl) 0; text-align: center;
  position: relative; overflow: hidden;
}
.cta-section::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse 60% 80% at 50% 50%, rgba(201,169,110,0.08) 0%, transparent 70%);
}
.cta-section h2 { color: var(--white); position: relative; z-index: 1; }
.cta-section p {
  color: rgba(255,255,255,0.6); max-width: 520px;
  margin: var(--space-md) auto var(--space-lg);
  position: relative; z-index: 1;
}
.cta-section .actions {
  position: relative; z-index: 1;
  display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap;
}

/* ============================================================
   KEY METRICS ROW
   ============================================================ */
.metrics-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr));
  gap: 0; border: 1px solid var(--grey-line);
  background: var(--white); box-shadow: var(--shadow-card);
}
.metric-item {
  padding: var(--space-lg) var(--space-md); text-align: center;
  border-right: 1px solid var(--grey-line);
}
.metric-item:last-child { border-right: none; }
.metric-number {
  font-family: var(--font-serif); font-size: 2.4rem; font-weight: 700;
  color: var(--navy); line-height: 1; margin-bottom: 0.35rem;
}
.metric-number span { color: var(--gold); }
.metric-label { font-size: 0.72rem; color: var(--text-muted); letter-spacing: 0.1em; text-transform: uppercase; line-height: 1.5; }

/* ============================================================
   ICON FEATURE BOXES (3-col why-us)
   ============================================================ */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr));
  gap: var(--space-md);
}
.feature-box {
  padding: var(--space-lg) var(--space-md);
  background: var(--navy-card);
  border: 1px solid rgba(201,169,110,0.15);
  border-top: 3px solid var(--gold);
  transition: var(--transition);
}
.feature-box:hover { background: var(--navy-light); }
.feature-box-icon {
  width: 52px; height: 52px;
  background: rgba(201,169,110,0.1); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--gold); margin-bottom: var(--space-md); flex-shrink: 0;
}
.feature-box h3 { font-size: 1.05rem; color: var(--white); margin-bottom: 0.5rem; }
.feature-box p  { font-size: 0.86rem; color: rgba(255,255,255,0.6); margin: 0; }

/* ============================================================
   PROSE (legal)
   ============================================================ */
.prose { max-width: var(--max-w-text); }
.prose h2 {
  font-size: 1.3rem; margin: var(--space-lg) 0 0.65rem;
  padding-top: var(--space-lg); border-top: 1px solid var(--grey-line);
}
.prose h2:first-child { border-top: none; margin-top: 0; padding-top: 0; }
.prose h3 { font-size: 1rem; margin: var(--space-md) 0 0.4rem; }
.prose p  { font-size: 0.93rem; line-height: 1.84; }
.prose ul { margin: 0.7rem 0 1rem 1.4rem; list-style: disc; }
.prose ul li { color: var(--text-mid); font-size: 0.93rem; line-height: 1.7; margin-bottom: 0.3rem; }
.prose address { font-style: normal; }

/* ============================================================
   FOOTER
   ============================================================ */
#site-footer { background: #060e17; padding-top: var(--space-2xl); color: rgba(255,255,255,0.5); font-size: 0.87rem; }
.footer-grid {
  display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: var(--space-xl); padding-bottom: var(--space-2xl);
  border-bottom: 1px solid rgba(201,169,110,0.12);
}
.footer-col h4 {
  font-family: var(--font-sans); font-size: 0.66rem; font-weight: 700;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--gold); margin-bottom: var(--space-md);
}
.footer-col p { font-size: 0.84rem; line-height: 1.8; color: rgba(255,255,255,0.42); }
.footer-logo { display: flex; flex-direction: column; gap: 4px; margin-bottom: var(--space-md); }
.footer-logo .name { font-family: var(--font-serif); font-size: 1.1rem; color: var(--white); font-weight: 700; }
.footer-logo .sub  { font-size: 0.56rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--gold); }
.footer-col ul { display: flex; flex-direction: column; gap: 0.5rem; }
.footer-col ul a { color: rgba(255,255,255,0.44); font-size: 0.83rem; transition: color var(--transition); }
.footer-col ul a:hover { color: var(--gold); }
.footer-bottom {
  padding: 1.2rem 0; display: flex; align-items: center;
  justify-content: space-between; flex-wrap: wrap; gap: 0.75rem;
}
.footer-copyright { font-size: 0.74rem; color: rgba(255,255,255,0.24); }
.footer-legal-links { display: flex; gap: var(--space-md); }
.footer-legal-links a { font-size: 0.74rem; color: rgba(255,255,255,0.3); transition: color var(--transition); }
.footer-legal-links a:hover { color: var(--gold); }

/* ============================================================
   TEAM CARDS
   ============================================================ */
.team-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 300px)); gap: var(--space-lg); justify-content: center; }
.team-card { text-align: center; }
.team-card-photo {
  width: 150px; height: 150px; border-radius: 50%; object-fit: cover;
  margin: 0 auto var(--space-md);
  border: 4px solid rgba(201,169,110,0.3); box-shadow: var(--shadow-card);
}
.team-card h3 { font-size: 1.1rem; }
.team-card .role {
  display: block; font-size: 0.7rem; font-weight: 700;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--gold-dim); margin-bottom: 0.65rem;
}
.team-card p { font-size: 0.85rem; }

/* ============================================================
   FAQ 2-col
   ============================================================ */
.faq-two-col { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-xl); align-items: start; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
/* 1024px */
@media (max-width: 1024px) {
  :root { --space-xl: 2rem; --space-2xl: 2.75rem; --space-3xl: 3.75rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: var(--space-lg); }
  .main-nav ul { gap: 0.7rem; }
  .main-nav a  { font-size: 0.72rem; }
}

/* 900px — hamburger */
@media (max-width: 900px) {
  .main-nav  { display: none; }
  .hamburger { display: flex; }
  .two-col           { grid-template-columns: 1fr; gap: var(--space-lg); }
  .two-col.reverse > :first-child { order: unset; }
  .two-col.reverse > :last-child  { order: unset; }
  .contact-page-grid { grid-template-columns: 1fr; }
  .faq-two-col       { grid-template-columns: 1fr; }
  .feature-img-wrap img { height: 280px; }
  .metrics-grid { grid-template-columns: 1fr 1fr; }
  .metric-item:nth-child(2n) { border-right: none; }
  .metric-item:nth-child(n+3) { border-top: 1px solid var(--grey-line); }
  .team-grid { grid-template-columns: repeat(2, minmax(0, 300px)); }
}

/* 768px */
@media (max-width: 768px) {
  :root { --space-xl: 1.75rem; --space-2xl: 2.25rem; --space-3xl: 3.25rem; --header-h: 60px; }

  /* ── Demo notice: compact on mobile ── */
  .demo-notice { font-size: 0.66rem; padding: 0.35rem 0.75rem; gap: 0.2rem; }
  .demo-notice a { margin-left: 0.3rem; }

  /* ── Hero ── */
  .hero {
    min-height: auto;
    padding-bottom: 0;
    flex-direction: column;
    align-items: stretch;
  }
  .hero-content {
    padding-top: calc(var(--header-h) + 1.75rem);
    padding-bottom: var(--space-lg);
    max-width: 100%;
  }
  .hero h1 { font-size: clamp(1.9rem, 7vw, 2.6rem); }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .hero-stats { position: static; }
  .hero-stats-inner { grid-template-columns: 1fr 1fr; }
  .stat-item { padding: 0.9rem var(--space-md); }

  /* ── Page Hero ── */
  .page-hero { padding: var(--space-2xl) 0 var(--space-lg); }
  body:has(.demo-notice) .page-hero { padding-top: calc(var(--space-2xl) + 36px); }

  /* ── Grids → 1 col ── */
  .services-grid { grid-template-columns: 1fr; }
  .refs-grid     { grid-template-columns: 1fr; }
  .team-grid     { grid-template-columns: 1fr; max-width: 340px; margin-inline: auto; }
  .feature-grid  { grid-template-columns: 1fr; }

  /* ── Process ── */
  .process-steps { grid-template-columns: 1fr; }
  .step { border-right: none; border-bottom: 1px solid rgba(201,169,110,0.12); }
  .step:last-child { border-bottom: none; }

  /* ── Quote ── */
  .quote-block { padding: var(--space-md); }

  /* ── Trust bar ── */
  .trust-bar-inner { flex-direction: column; align-items: flex-start; gap: var(--space-sm); padding: 0 var(--space-sm); }
  .trust-item { white-space: normal; font-size: 0.78rem; }

  /* ── Footer ── */
  .footer-grid { grid-template-columns: 1fr; gap: var(--space-lg); padding-bottom: var(--space-lg); }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 0.5rem; }

  /* ── CTA ── */
  .cta-section .actions { flex-direction: column; align-items: center; }
  .cta-section .actions .btn { width: min(100%, 320px); }

  /* ── Form ── */
  .form-grid { grid-template-columns: 1fr; }
  .form-grid .full { grid-column: 1; }

  /* ── Metrics ── */
  .metrics-grid { grid-template-columns: 1fr 1fr; }

  /* ── Feature image ── */
  .feature-img-wrap img { height: 240px; }

  /* ── Highlight box ── */
  .highlight-box { padding: var(--space-sm) var(--space-md); }
}

/* 480px — small phones */
@media (max-width: 480px) {
  :root { --header-h: 56px; }

  h1 { font-size: 1.7rem; }
  h2 { font-size: 1.35rem; }
  .lead { font-size: 0.97rem; }
  .btn { padding: 0.75rem 1.2rem; font-size: 0.78rem; }

  /* ── Demo notice ── */
  .demo-notice { font-size: 0.62rem; letter-spacing: 0.02em; padding: 0.25rem 0.5rem; }
  .demo-notice strong { display: block; }
  .demo-notice a { display: block; margin-left: 0; margin-top: 0.15rem; }

  /* ── Hero ── */
  .hero h1 { font-size: 1.85rem; }
  .hero-badge { font-size: 0.58rem; padding: 0.22rem 0.65rem; letter-spacing: 0.18em; }
  .hero-bullet { font-size: 0.82rem; }

  /* ── Stats ── */
  .hero-stats-inner { grid-template-columns: 1fr 1fr; }
  .stat-number { font-size: 1.4rem; }
  .stat-label { font-size: 0.58rem; }
  .stat-item { padding: 0.75rem 0.5rem; }

  /* ── Metrics ── */
  .metrics-grid { grid-template-columns: 1fr; }
  .metric-item { border-right: none; border-bottom: 1px solid var(--grey-line); }
  .metric-item:last-child { border-bottom: none; }

  /* ── Quote ── */
  .quote-block { padding: var(--space-sm) var(--space-md); }

  /* ── Section spacing ── */
  .section    { padding: var(--space-2xl) 0; }
  .section-sm { padding: var(--space-xl) 0; }

  /* ── Service cards ── */
  .service-card { padding: var(--space-md); }

  /* ── Feature image ── */
  .feature-img-wrap img { height: 200px; }

  /* ── Page hero ── */
  .page-hero h1 { font-size: 1.65rem; }
  .page-hero p { font-size: 0.93rem; }

  /* ── Team card ── */
  .team-card-photo { width: 110px; height: 110px; }

  /* ── Table (contact items) ── */
  .contact-item-icon { width: 38px; height: 38px; }
}

/* 360px — very small phones */
@media (max-width: 360px) {
  .container { padding-inline: 0.75rem; }
  h1 { font-size: 1.5rem; }
  h2 { font-size: 1.2rem; }
  .hero h1 { font-size: 1.6rem; }
  .hero-stats-inner { grid-template-columns: 1fr; }
  .stat-item { border-bottom: 1px solid rgba(201,169,110,0.1); border-right: none; }
  .stat-item:last-child { border-bottom: none; }
  .btn { padding: 0.7rem 1rem; font-size: 0.74rem; }
}

/* Demo safety banner */
.demo-banner {
  background: #111827;
  color: #ffffff;
  font-size: 0.9rem;
  line-height: 1.4;
  position: relative;
  z-index: 10000;
}

.demo-banner__inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0.65rem 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.demo-banner small {
  color: rgba(255,255,255,0.78);
}

.demo-banner a {
  color: #ffffff;
  text-decoration: underline;
  font-weight: 600;
  white-space: nowrap;
}

@media (max-width: 700px) {
  .demo-banner__inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.35rem;
  }
}
