/* CLIENTOX SHARED STYLES — used by all pages */
:root {
  --bg: #F3EEE4;
  --bg-2: #EBE4D6;
  --ink: #1A1814;
  --ink-soft: #4A4638;
  --muted: #8A8375;
  --line: #D6CDB9;
  --accent: #E85D2C;
  --accent-dark: #C34A1F;
  --forest: #2A4F3D;
  --cream: #FAF6EE;
  /* Nav-specific dark theme tokens */
  --nav-line: #2A2620;
  --nav-text: #C5BDAE;
  --nav-text-muted: #8A8375;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: 'Instrument Sans', sans-serif;
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
.display { font-family: 'Fraunces', serif; font-weight: 500; letter-spacing: -0.02em; }
.mono { font-family: 'JetBrains Mono', monospace; font-size: 12px; text-transform: uppercase; letter-spacing: 0.08em; }
.container { max-width: 1280px; margin: 0 auto; padding: 0 32px; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

/* ============================================================
   NAVBAR — dark theme matching the footer
   ============================================================ */
nav {
  position: sticky; top: 0; z-index: 100;
  background: var(--ink);
  border-bottom: 1px solid var(--nav-line);
  color: var(--cream);
  transition: box-shadow 0.25s ease;
}
nav.scrolled {
  background: var(--ink);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
}
section[id] { scroll-margin-top: 80px; }
.nav-inner {
  display: flex; justify-content: space-between; align-items: center;
  padding: 18px 32px; max-width: 1280px; margin: 0 auto;
}
@media (max-width: 860px) { .nav-inner { padding: 14px 20px; } }

.logo {
  font-family: 'Fraunces', serif; font-size: 26px; font-weight: 600;
  letter-spacing: -0.03em; color: var(--cream);
}
.logo span { color: var(--accent); font-style: italic; }

.nav-links { display: flex; gap: 32px; align-items: center; }
.nav-links > a, .nav-links > .dropdown > .dd-trigger {
  font-size: 15px; color: var(--nav-text); transition: color 0.2s;
  cursor: pointer; display: inline-flex; align-items: center; gap: 4px;
  background: transparent; border: none; font-family: inherit;
}
.nav-links > a:hover:not(.btn-primary),
.nav-links > .dropdown > .dd-trigger:hover { color: var(--cream); }
.nav-links > a.active:not(.btn-primary) { color: var(--accent); }

/* Book a call button — solid terracotta fill */
.nav-links > a.btn-primary {
  background: var(--accent); color: var(--cream);
  padding: 12px 22px; border-radius: 100px; font-size: 15px; font-weight: 500;
  transition: all 0.25s; display: inline-flex; align-items: center; gap: 8px;
  border: 1px solid var(--accent);
  box-shadow: 0 2px 8px rgba(232, 93, 44, 0.25);
}
.nav-links > a.btn-primary:hover {
  background: var(--accent-dark); border-color: var(--accent-dark);
  color: var(--cream); transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(232, 93, 44, 0.35);
}
.nav-links > a.btn-primary .arrow { transition: transform 0.25s; }
.nav-links > a.btn-primary:hover .arrow { transform: translate(3px, -3px) rotate(-45deg); }

/* Generic btn-primary used outside nav (page CTAs) — keeps original ink style */
.btn-primary:not(nav .btn-primary) {
  background: var(--ink); color: var(--cream);
  padding: 12px 22px; border-radius: 100px; font-size: 15px; font-weight: 500;
  transition: all 0.25s; display: inline-flex; align-items: center; gap: 8px;
}
.btn-primary:not(nav .btn-primary):hover { background: var(--accent); color: var(--cream); transform: translateY(-1px); }
.btn-primary .arrow { transition: transform 0.25s; }
.btn-primary:hover .arrow { transform: translate(3px, -3px) rotate(-45deg); }

/* ============================================================
   DROPDOWN — dark panel with light text
   ============================================================ */
.dropdown { position: relative; }
.dd-trigger .chev {
  width: 14px;
  height: 14px;
  color: var(--accent);
  transition: transform 0.25s;
  display: inline-block;
  vertical-align: middle;
  margin-left: 4px;
  flex-shrink: 0;
  fill: none;
}
.dd-trigger .chev path { fill: none; stroke: currentColor; }
.dropdown:hover .dd-trigger .chev,
.dropdown.expanded .dd-trigger .chev { transform: rotate(180deg); }

.dd-menu {
  position: absolute; top: 100%; left: 50%;
  transform: translateX(-50%) translateY(8px);
  background: var(--ink);
  border: 1px solid var(--nav-line);
  border-radius: 16px; padding: 16px; min-width: 280px;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.45);
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity 0.22s, visibility 0.22s, transform 0.22s;
  margin-top: 4px;
}
/* Invisible bridge so cursor doesn't drop hover when moving from trigger to menu */
.dd-menu::before {
  content: ''; position: absolute; top: -16px; left: 0; right: 0; height: 16px;
  background: transparent;
}
.dropdown:hover .dd-menu,
.dropdown.expanded .dd-menu,
.dropdown:focus-within .dd-menu {
  opacity: 1; visibility: visible; pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.dd-menu a {
  display: flex; padding: 10px 14px; border-radius: 10px;
  font-size: 14px; color: var(--nav-text) !important;
  align-items: center; justify-content: space-between; gap: 12px;
  transition: background 0.15s, color 0.15s;
}
.dd-menu a:hover { background: rgba(232, 93, 44, 0.12); color: var(--cream) !important; }
.dd-menu a.active { background: rgba(232, 93, 44, 0.06); color: var(--accent) !important; }

.dd-menu a .dd-label {
  color: var(--nav-text) !important;
  font-weight: 500;
  font-size: inherit;
  display: inline-block;
}
.dd-menu a:hover .dd-label { color: var(--cream) !important; }
.dd-menu a.active .dd-label { color: var(--accent) !important; }

.dd-menu a .price-tag {
  font-family: 'JetBrains Mono', monospace; font-size: 10px;
  color: var(--accent);
  background: rgba(232, 93, 44, 0.1);
  padding: 3px 7px; border-radius: 4px;
  letter-spacing: 0.04em; flex-shrink: 0;
}
.dd-menu a:hover .price-tag, .dd-menu a.active .price-tag {
  background: rgba(232, 93, 44, 0.2);
}

/* Green "Beta Live" variant — for products in active beta */
.dd-menu a .price-tag.price-tag-green {
  color: #5DCAA5;
  background: rgba(93, 202, 165, 0.12);
  border: 1px solid rgba(93, 202, 165, 0.3);
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.dd-menu a .price-tag.price-tag-green::before {
  content: '';
  display: inline-block;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #5DCAA5;
  animation: livePulseGreen 2s infinite;
}
.dd-menu a:hover .price-tag.price-tag-green,
.dd-menu a.active .price-tag.price-tag-green {
  background: rgba(93, 202, 165, 0.2);
  border-color: rgba(93, 202, 165, 0.5);
}
@keyframes livePulseGreen {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(93, 202, 165, 0.6); }
  50% { opacity: 0.7; box-shadow: 0 0 0 4px rgba(93, 202, 165, 0); }
}

.dd-section-label {
  font-family: 'JetBrains Mono', monospace; font-size: 10px;
  color: var(--nav-text-muted) !important; padding: 10px 14px 4px;
  text-transform: uppercase; letter-spacing: 0.14em; font-weight: 500;
  background: transparent !important;
  opacity: 1 !important;
}
.dd-section-label:first-child { padding-top: 4px; }

/* ============================================================
   HAMBURGER (mobile only)
   ============================================================ */
.hamburger {
  display: none;
  background: transparent; border: none; cursor: pointer;
  width: 44px; height: 44px;
  flex-direction: column; align-items: center; justify-content: center;
  gap: 5px; padding: 10px;
  z-index: 1001;
}
.hamburger span {
  display: block; width: 24px; height: 2px;
  background: var(--cream); border-radius: 2px;
  transition: all 0.3s ease;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); background: var(--accent); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); background: var(--accent); }

/* ============================================================
   MOBILE NAVIGATION
   ============================================================ */
@media (max-width: 860px) {
  .hamburger { display: flex; }

  .nav-links {
    position: fixed; top: 0; left: 0; right: 0; bottom: 0;
    background: var(--ink);
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    padding: 80px 24px 32px;
    gap: 4px;
    transform: translateX(100%);
    transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
    overflow-y: auto;
    z-index: 1000;
  }
  .nav-links.open { transform: translateX(0); }

  .nav-links > a, .nav-links > .dropdown > .dd-trigger {
    font-size: 18px; padding: 16px 12px;
    border-bottom: 1px solid var(--nav-line);
    width: 100%; justify-content: space-between;
    color: var(--nav-text); font-weight: 500;
  }
  .nav-links > a.active:not(.btn-primary) { color: var(--accent); }
  .nav-links > a:last-child { border-bottom: none; }

  /* Mobile dropdown — collapses inline */
  .nav-links > .dropdown { width: 100%; }
  .nav-links > .dropdown > .dd-trigger {
    width: 100%; justify-content: space-between;
    border-bottom: 1px solid var(--nav-line);
  }
  .dd-menu {
    position: static; opacity: 1; visibility: visible; pointer-events: auto;
    transform: none; box-shadow: none; border: none;
    background: rgba(0, 0, 0, 0.25);
    margin: 0; min-width: 0; width: 100%;
    border-radius: 8px; max-height: 0; overflow: hidden;
    padding: 0;
    transition: max-height 0.35s cubic-bezier(0.22, 1, 0.36, 1), padding 0.35s ease, margin 0.35s ease;
  }
  .dd-menu::before { display: none; }
  .dropdown.expanded .dd-menu {
    max-height: 800px; padding: 8px 8px 12px; margin: 8px 0;
  }
  /* CRITICAL: override desktop transform so dropdown stays in place on mobile.
     Desktop rule .dropdown.expanded .dd-menu has translateX(-50%) which shifts
     the panel off the left edge on mobile, hiding service names. */
  .dropdown.expanded .dd-menu,
  .dropdown:hover .dd-menu,
  .dropdown:focus-within .dd-menu {
    transform: none !important;
    left: auto !important;
    position: static !important;
  }
  /* Disable hover-open on mobile so only click toggles.
     :not(.expanded) goes on .dropdown (where the class lives), not on .dd-menu. */
  .dropdown:not(.expanded):hover .dd-menu {
    max-height: 0; padding: 0;
  }

  .dd-menu a { padding: 14px 12px; font-size: 16px; }
  .dd-menu a .price-tag { font-size: 11px; }

  .nav-links > a.btn-primary {
    margin-top: 16px; width: 100%;
    justify-content: center; padding: 16px;
    border-radius: 100px; font-size: 16px;
  }

  body.nav-open { overflow: hidden; }
}

/* ============================================================
   SERVICE PAGE HERO (unchanged from original)
   ============================================================ */
.svc-hero {
  padding: 80px 0 40px;
  background: var(--bg);
}
.breadcrumb {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: 'JetBrains Mono', monospace; font-size: 11px;
  letter-spacing: 0.08em; color: var(--muted);
  text-transform: uppercase; margin-bottom: 24px;
}
.breadcrumb a { color: var(--muted); transition: color 0.2s; }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb .sep { color: var(--line); }
.breadcrumb .current { color: var(--accent); }

.svc-hero-grid {
  display: grid; grid-template-columns: 1.3fr 1fr; gap: 60px;
  align-items: center;
}
@media (max-width: 900px) { .svc-hero-grid { grid-template-columns: 1fr; gap: 40px; } }

.svc-hero-tag {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--accent); margin-bottom: 20px;
  font-family: 'JetBrains Mono', monospace; font-size: 12px;
  letter-spacing: 0.08em; text-transform: uppercase; font-weight: 500;
}
.svc-hero-tag::before { content: ''; width: 28px; height: 1px; background: var(--accent); }

h1.svc-title {
  font-family: 'Fraunces', serif; font-weight: 400;
  font-size: clamp(40px, 6vw, 80px); line-height: 1.0; letter-spacing: -0.04em;
  margin-bottom: 24px;
}
h1.svc-title em { font-style: italic; color: var(--accent); font-weight: 500; }

.svc-hero-sub {
  font-size: clamp(17px, 1.6vw, 20px); color: var(--ink-soft);
  margin-bottom: 32px; line-height: 1.5;
}

.svc-hero-meta {
  display: flex; gap: 32px; flex-wrap: wrap;
  margin-bottom: 32px; padding: 20px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.svc-meta-item .label {
  font-family: 'JetBrains Mono', monospace; font-size: 10px;
  letter-spacing: 0.08em; color: var(--muted);
  text-transform: uppercase; margin-bottom: 4px;
}
.svc-meta-item .value {
  font-family: 'Fraunces', serif; font-size: 22px;
  color: var(--ink); font-weight: 500; letter-spacing: -0.02em;
}
.svc-meta-item .value em { font-style: italic; color: var(--accent); }

.svc-cta-row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }

.btn-large {
  background: var(--accent); color: var(--cream);
  padding: 16px 28px; border-radius: 100px;
  font-size: 16px; font-weight: 500;
  display: inline-flex; align-items: center; gap: 10px;
  transition: all 0.25s;
  box-shadow: 0 6px 0 var(--accent-dark), 0 10px 24px rgba(232, 93, 44, 0.25);
}
.btn-large:hover { transform: translateY(2px); box-shadow: 0 4px 0 var(--accent-dark), 0 6px 14px rgba(232, 93, 44, 0.3); }
.btn-ghost {
  color: var(--ink); padding: 16px 22px; font-size: 16px; font-weight: 500;
  border-bottom: 2px solid var(--ink); transition: color 0.2s, border-color 0.2s;
}
.btn-ghost:hover { color: var(--accent); border-color: var(--accent); }

/* MOCKUP CONTAINER */
.svc-mockup {
  background: var(--cream); border: 1px solid var(--line);
  border-radius: 24px; padding: 24px;
  position: relative;
  box-shadow: 0 30px 60px -30px rgba(26, 24, 20, 0.18);
}
.svc-mockup svg { width: 100%; height: auto; display: block; }

/* SERVICE FEATURES SECTION */
.svc-features { padding: 80px 0; background: var(--bg-2); }
.svc-section-label {
  display: inline-flex; align-items: center; gap: 10px;
  margin-bottom: 20px; color: var(--accent);
  font-family: 'JetBrains Mono', monospace; font-size: 12px;
  letter-spacing: 0.08em; text-transform: uppercase; font-weight: 500;
}
.svc-section-label::before { content: ''; width: 28px; height: 1px; background: var(--accent); }

.svc-section-title {
  font-family: 'Fraunces', serif; font-weight: 400;
  font-size: clamp(32px, 4.5vw, 52px); line-height: 1.05; letter-spacing: -0.03em;
  max-width: 800px; margin-bottom: 20px;
}
.svc-section-title em { font-style: italic; color: var(--accent); }
.svc-section-sub { font-size: 17px; color: var(--ink-soft); max-width: 640px; margin-bottom: 50px; }

.svc-features-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
}
@media (max-width: 900px) { .svc-features-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .svc-features-grid { grid-template-columns: 1fr; } }

.svc-feature-card {
  background: var(--cream); border: 1px solid var(--line);
  border-radius: 16px; padding: 24px;
  display: flex; flex-direction: column; gap: 10px;
  transition: all 0.3s;
}
.svc-feature-card:hover {
  transform: translateY(-3px);
  border-color: var(--accent);
  box-shadow: 0 16px 32px -16px rgba(26, 24, 20, 0.12);
}
.svc-feature-card .num {
  font-family: 'Fraunces', serif; font-style: italic;
  color: var(--accent); font-size: 24px; line-height: 1;
}
.svc-feature-card h4 {
  font-family: 'Fraunces', serif; font-weight: 500;
  font-size: 19px; letter-spacing: -0.01em; color: var(--ink);
}
.svc-feature-card p { color: var(--ink-soft); font-size: 14px; line-height: 1.55; }

/* CTA SECTION */
.svc-cta {
  padding: 80px 0; background: var(--ink); color: var(--cream);
  position: relative; overflow: hidden;
}
.svc-cta::before {
  content: ''; position: absolute; top: -200px; left: -200px;
  width: 500px; height: 500px; border-radius: 50%;
  background: var(--accent); opacity: 0.12; filter: blur(40px);
}
.svc-cta-inner {
  display: grid; grid-template-columns: 1.2fr 1fr; gap: 60px;
  align-items: center; position: relative; z-index: 1;
}
@media (max-width: 900px) { .svc-cta-inner { grid-template-columns: 1fr; gap: 40px; } }
.svc-cta h2 {
  font-family: 'Fraunces', serif; font-weight: 400;
  font-size: clamp(32px, 4.5vw, 48px); line-height: 1.05; letter-spacing: -0.03em;
  margin-bottom: 20px;
}
.svc-cta h2 em { font-style: italic; color: var(--accent); }
.svc-cta p { font-size: 16px; color: #C5BDAE; margin-bottom: 24px; line-height: 1.55; }
.svc-cta-bullets { list-style: none; }
.svc-cta-bullets li { padding: 6px 0; color: #C5BDAE; font-size: 14px; display: flex; gap: 10px; align-items: center; }
.svc-cta-bullets .tick { color: var(--accent); }

form {
  background: var(--cream); color: var(--ink);
  padding: 28px; border-radius: 18px;
  display: flex; flex-direction: column; gap: 12px;
}
form h3 { font-family: 'Fraunces', serif; font-weight: 500; font-size: 22px; letter-spacing: -0.02em; margin-bottom: 4px; }
form label { font-size: 12px; color: var(--ink-soft); font-weight: 500; margin-bottom: -8px; }
form input, form select, form textarea {
  font-family: inherit; font-size: 15px; padding: 11px 13px;
  background: var(--bg); border: 1px solid var(--line); border-radius: 10px;
  color: var(--ink); outline: none; transition: border-color 0.2s;
}
form input:focus, form select:focus { border-color: var(--accent); }
form button {
  background: var(--accent); color: var(--cream);
  padding: 13px; border-radius: 10px; font-size: 15px; font-weight: 500;
  margin-top: 6px; transition: background 0.2s;
}
form button:hover { background: var(--accent-dark); }
.form-note { font-size: 11px; color: var(--ink-soft); text-align: center; }

/* ============================================================
   FOOTER STYLES — REMOVED.
   The dark footer is now fully self-contained inside
   clientox-shared.js (footerStyles + footerHTML). Keeping the
   old cream-footer rules here was creating double borders.
   ============================================================ */

/* REVEAL ANIMATIONS */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.on { opacity: 1; transform: translateY(0); }
.stagger-1 { transition-delay: 0.08s; }
.stagger-2 { transition-delay: 0.16s; }
.stagger-3 { transition-delay: 0.24s; }
.stagger-4 { transition-delay: 0.32s; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1 !important; transform: none !important; }
}

/* CROSS-SELL — Beyond [Service] section (used on service pages) */
.svc-cross { padding: 96px 0; background: var(--cream); border-top: 1px solid var(--line); }
.svc-cross-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
  margin-top: 48px;
}
@media (max-width: 900px) { .svc-cross-grid { grid-template-columns: 1fr; } }
.cross-card {
  background: var(--bg-2); border: 1px solid var(--line);
  border-radius: 20px; padding: 32px 28px;
  display: flex; flex-direction: column; gap: 14px;
  transition: all 0.3s; text-decoration: none; color: inherit;
}
.cross-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px -20px rgba(26, 24, 20, 0.12);
  border-color: var(--accent);
}
.cross-card .cross-price {
  font-family: 'JetBrains Mono', monospace; font-size: 11px;
  text-transform: uppercase; letter-spacing: 0.08em; color: var(--accent);
}
.cross-card h4 {
  font-family: 'Fraunces', serif; font-weight: 500;
  font-size: 26px; letter-spacing: -0.02em;
}
.cross-card p { color: var(--ink-soft); font-size: 15px; line-height: 1.55; flex: 1; }
.cross-card ul { list-style: none; margin-top: 4px; padding: 0; }
.cross-card ul li {
  padding: 6px 0; font-size: 14px; color: var(--ink-soft);
  display: flex; gap: 10px; align-items: flex-start;
}
.cross-card ul li::before { content: '✦'; color: var(--accent); flex-shrink: 0; }
.cross-card .cross-link {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(232, 93, 44, 0.08); padding: 10px 18px;
  border-radius: 100px; align-self: flex-start;
  color: var(--accent); font-weight: 500; font-size: 14px;
  transition: gap 0.25s, background 0.25s, color 0.25s; margin-top: 6px;
}
.cross-card:hover .cross-link {
  gap: 14px; background: var(--accent); color: var(--cream);
}
.bundle-banner {
  margin-top: 36px; background: var(--ink); color: var(--cream);
  border-radius: 100px; padding: 22px 32px; text-align: center;
  font-family: 'Fraunces', serif; font-size: 18px; font-weight: 400;
}
.bundle-banner em { font-style: italic; color: var(--accent); font-weight: 500; }
@media (max-width: 700px) {
  .svc-cross { padding: 64px 0; }
  .bundle-banner { padding: 18px 22px; font-size: 15px; border-radius: 22px; }
}

/* PROBLEM list (used on homepage and optionally service pages) */
.problem-list { list-style: none; max-width: 820px; margin-top: 40px; border-top: 1px solid var(--line); padding: 0; }
.problem-list li {
  display: flex; gap: 18px; align-items: flex-start;
  padding: 22px 0; border-bottom: 1px solid var(--line);
  font-family: 'Fraunces', serif; font-size: 22px; font-weight: 400;
  line-height: 1.45; letter-spacing: -0.01em; color: var(--ink);
  transition: padding 0.25s;
}
.problem-list li:hover { padding-left: 12px; }
.problem-list li .x {
  flex-shrink: 0; width: 32px; height: 32px; border-radius: 50%;
  background: var(--accent); color: var(--cream);
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 600; margin-top: 4px;
}
.problem-list li em { font-style: italic; color: var(--accent); font-weight: 500; }
@media (max-width: 700px) {
  .problem-list li { font-size: 17px; padding: 18px 0; gap: 14px; }
  .problem-list li .x { width: 26px; height: 26px; font-size: 12px; }
}