/* ==========================================================================
   Apex Advisory — apex-advisory.de
   Light theme. Brand tokens consolidated from the AgentPM style guide.
   No serif anywhere — sans-serif system/Arial stack throughout.
   ========================================================================== */

:root {
  --navy:        #1F3864;
  --navy-deep:   #08132A;
  --blue:        #2E75B6;
  --gold:        #C9922A;
  --orange:      #C55A11;
  --light:       #D6E4F0;

  --ink:         #1A2435;   /* body text on white */
  --ink-soft:    #4A5568;   /* secondary text */
  --line:        #E2E8F0;   /* hairlines on white */
  --bg:          #FFFFFF;
  --bg-tint:     #F5F8FC;   /* faint section tint */

  --sans: Arial, "Helvetica Neue", Helvetica, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --maxw: 1080px;
  --radius: 6px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--bg);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

/* Signature orange top rule on every page */
.top-rule { height: 5px; background: var(--orange); width: 100%; }

a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 { color: var(--navy); line-height: 1.2; font-weight: 700; }
h1 { font-size: 2.4rem; letter-spacing: -0.01em; }
h2 { font-size: 1.7rem; margin-bottom: 0.6rem; }
h3 { font-size: 1.2rem; margin-bottom: 0.35rem; }
p { margin-bottom: 1rem; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 1.5rem; }

/* ---------- Header / nav ---------- */
header.site { border-bottom: 1px solid var(--line); position: sticky; top: 0; background: rgba(255,255,255,0.96); backdrop-filter: blur(6px); z-index: 50; }
.nav { display: flex; align-items: center; justify-content: space-between; padding: 0.85rem 1.5rem; max-width: var(--maxw); margin: 0 auto; gap: 1rem; }
.brand { display: flex; align-items: center; gap: 0.6rem; }
.brand img { width: 38px; height: 38px; display: block; }
.brand .bt { line-height: 1.1; }
.brand .bt strong { color: var(--navy); font-size: 1.02rem; letter-spacing: 0.01em; display: block; }
.brand .bt span { color: var(--gold); font-size: 0.78rem; letter-spacing: 0.01em; }
.brand:hover { text-decoration: none; }

.nav-links { display: flex; align-items: center; gap: 1.4rem; }
.nav-links a { color: var(--ink); font-size: 0.95rem; }
.nav-links a.active { color: var(--navy); font-weight: 700; }
.lang { font-size: 0.85rem; color: var(--ink-soft); border-left: 1px solid var(--line); padding-left: 1.1rem; }
.lang a { color: var(--ink-soft); }
.lang a.on { color: var(--navy); font-weight: 700; }

.nav-toggle { display: none; background: none; border: 1px solid var(--line); border-radius: var(--radius); padding: 0.4rem 0.6rem; cursor: pointer; color: var(--navy); font-size: 1.1rem; }

/* ---------- Buttons ---------- */
.btn { display: inline-block; font-family: var(--sans); font-weight: 700; font-size: 0.98rem; padding: 0.8rem 1.5rem; border-radius: var(--radius); cursor: pointer; border: 2px solid transparent; transition: background .15s, color .15s, border-color .15s; }
.btn-primary { background: var(--gold); color: var(--navy-deep); }
.btn-primary:hover { background: #b8831f; text-decoration: none; color: var(--navy-deep); }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,0.6); }
.btn-ghost:hover { background: rgba(255,255,255,0.12); text-decoration: none; color: #fff; }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: #16294b; color: #fff; text-decoration: none; }

/* ---------- Hero (navy band) ---------- */
.hero { background: var(--navy); color: var(--light); position: relative; overflow: hidden; }
.hero::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 6px; background: var(--orange); }
.hero .wrap { padding: 4.5rem 1.5rem 4rem; }
.hero .eyebrow { color: var(--gold); letter-spacing: 0.02em; font-size: 0.82rem; font-weight: 700; margin-bottom: 1rem; }
.hero h1 { color: #fff; max-width: 18ch; }
.hero p.lead { color: var(--light); font-size: 1.2rem; max-width: 60ch; margin: 1.2rem 0 2rem; }
.hero .cta-row { display: flex; gap: 0.9rem; flex-wrap: wrap; }

/* ---------- Sections ---------- */
section { padding: 3.5rem 0; }
section.tint { background: var(--bg-tint); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 62ch; margin-bottom: 2rem; }
.section-head .eyebrow { color: var(--orange); letter-spacing: 0.02em; font-size: 0.82rem; font-weight: 700; margin-bottom: 0.6rem; }
.lead-text { font-size: 1.08rem; color: var(--ink-soft); }

/* ---------- The ladder / cards ---------- */
.ladder { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 1.1rem; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; border-top: 4px solid var(--navy); }
.card.beachhead { border-top-color: var(--orange); }
.card.core { border-top-color: var(--gold); }
.card.recurring { border-top-color: var(--blue); }
.card.enable { border-top-color: var(--navy); }
.card .step { font-size: 0.78rem; letter-spacing: 0.01em; color: var(--ink-soft); font-weight: 700; margin-bottom: 0.5rem; }
.card h3 { margin-bottom: 0.5rem; }
.card p { font-size: 0.95rem; color: var(--ink-soft); margin-bottom: 0; }

/* ---------- Service detail blocks ---------- */
.service { border-top: 1px solid var(--line); padding: 2.2rem 0; display: grid; grid-template-columns: 1fr 2fr; gap: 2rem; }
.service:first-of-type { border-top: none; }
.service .s-label { }
.service .s-label .tag { display: inline-block; font-size: 0.76rem; letter-spacing: 0.01em; font-weight: 700; color: #fff; background: var(--navy); padding: 0.25rem 0.6rem; border-radius: 3px; margin-bottom: 0.7rem; }
.service .s-label .tag.beachhead { background: var(--orange); }
.service .s-label .tag.core { background: var(--gold); color: var(--navy-deep); }
.service .s-label .tag.recurring { background: var(--blue); }
.service h3 { font-size: 1.35rem; }
.service h4 { color: var(--navy); font-size: 0.95rem; margin: 1.1rem 0 0.4rem; }
.service ul { margin: 0 0 0 1.1rem; }
.service li { margin-bottom: 0.35rem; color: var(--ink-soft); }

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: 1fr; gap: 1.5rem; max-width: 70ch; }
.stat-row { display: flex; flex-wrap: wrap; gap: 2.5rem; margin: 2rem 0; }
.stat .n { font-size: 2.2rem; font-weight: 700; color: var(--navy); line-height: 1; }
.stat .l { font-size: 0.85rem; color: var(--ink-soft); }

/* ---------- Contact ---------- */
.contact-card { background: var(--bg-tint); border: 1px solid var(--line); border-radius: var(--radius); padding: 2rem; max-width: 52ch; }
.contact-card dl { display: grid; grid-template-columns: max-content 1fr; gap: 0.5rem 1.2rem; margin-top: 1rem; }
.contact-card dt { font-weight: 700; color: var(--navy); font-size: 0.92rem; }
.contact-card dd { color: var(--ink-soft); font-size: 0.95rem; }

/* ---------- CTA band ---------- */
.cta-band { background: var(--navy); color: var(--light); text-align: center; }
.cta-band h2 { color: #fff; }
.cta-band p { color: var(--light); max-width: 52ch; margin: 0.6rem auto 1.6rem; }

/* ---------- Legal pages ---------- */
.legal { max-width: 74ch; padding: 3rem 0; }
.legal h1 { margin-bottom: 1.5rem; }
.legal h2 { font-size: 1.25rem; margin-top: 2rem; }
.legal h3 { font-size: 1.05rem; margin-top: 1.3rem; }
.legal p, .legal li { font-size: 0.97rem; color: var(--ink); }
.legal ul { margin: 0 0 1rem 1.2rem; }
.legal .muted { color: var(--ink-soft); font-size: 0.9rem; }
.legal address { font-style: normal; line-height: 1.7; }

/* ---------- Footer ---------- */
footer.site { background: var(--navy-deep); color: var(--light); padding: 2.5rem 0 2rem; margin-top: 0; }
footer.site .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1.5rem; align-items: flex-start; }
footer.site .f-brand { display: flex; align-items: center; gap: 0.6rem; }
footer.site .f-brand img { width: 34px; height: 34px; }
footer.site .f-brand strong { color: #fff; display: block; font-size: 0.98rem; }
footer.site .f-brand span { color: var(--gold); font-size: 0.76rem; letter-spacing: 0.01em; }
footer.site nav a { color: var(--light); font-size: 0.9rem; display: block; margin-bottom: 0.4rem; }
footer.site .f-legal { font-size: 0.82rem; color: #7E92B5; }
footer.site .f-legal a { color: #9FB2D4; }
.f-col h4 { color: #fff; font-size: 0.92rem; letter-spacing: 0.01em; margin-bottom: 0.7rem; }

/* ---------- Consent banner ---------- */
#consent { position: fixed; left: 1rem; right: 1rem; bottom: 1rem; max-width: 720px; margin: 0 auto; background: #fff; border: 1px solid var(--line); border-top: 4px solid var(--orange); border-radius: var(--radius); box-shadow: 0 8px 30px rgba(8,19,42,0.18); padding: 1.2rem 1.3rem; z-index: 200; display: none; }
#consent.show { display: block; }
#consent p { font-size: 0.9rem; color: var(--ink); margin-bottom: 0.9rem; }
#consent .c-actions { display: flex; gap: 0.7rem; flex-wrap: wrap; }
#consent .btn { padding: 0.6rem 1.1rem; font-size: 0.9rem; }
#consent .btn-decline { background: #fff; color: var(--navy); border: 2px solid var(--line); }
#consent .btn-decline:hover { background: var(--bg-tint); }

/* ---------- Responsive ---------- */
@media (max-width: 760px) {
  h1 { font-size: 1.9rem; }
  .hero h1 { max-width: none; }
  .nav-toggle { display: inline-block; }
  .nav-links { display: none; position: absolute; top: 100%; left: 0; right: 0; background: #fff; border-bottom: 1px solid var(--line); flex-direction: column; align-items: flex-start; gap: 0; padding: 0.5rem 1.5rem 1rem; }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 0.6rem 0; width: 100%; }
  .lang { border-left: none; padding-left: 0; padding-top: 0.5rem; }
  .service { grid-template-columns: 1fr; gap: 0.8rem; }
}

/* Accessibility */
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
