/*
Theme Name: Sparrow Digital
Theme URI: https://sparrowdigital.org
Author: Sparrow Digital
Author URI: https://sparrowdigital.org
Description: Custom WordPress theme for Sparrow Digital, converted from a hand-built static site. Editorial masthead hero, navy/gold brand, GSAP-powered scroll motion, custom cursor, FAQ accordion and price cards.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
Tested up to: 6.6
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: sparrow-digital
*/

/* ==========================================================================
   Sparrow Digital — design tokens
   ========================================================================== */
:root {
  --bg: #faf9f6;
  --bg-alt: #f1efe7;
  --bg-card: #ffffff;
  --border: rgba(16, 32, 58, 0.08);
  --border-strong: rgba(16, 32, 58, 0.16);
  --fg: #0f1f3a;
  --fg-muted: #57616f;
  --fg-faint: #87909d;
  --accent: #b8891f;
  --accent-dark: #96701a;
  --accent-2: #1a3f7a;
  --accent-2-dark: #102a54;
  --gradient: linear-gradient(135deg, var(--accent-2) 0%, var(--accent) 100%);
  --radius: 14px;
  --radius-sm: 8px;
  --max: 1180px;
  --shadow: 0 20px 60px -20px rgba(15, 31, 58, 0.22);
  --ff-display: "Fraunces", Georgia, "Times New Roman", serif;
  --ff-body: "Inter", "Segoe UI", system-ui, sans-serif;

  /* fixed-dark tokens: used deliberately for a few high-contrast sections
     (nav backdrop text stays theme-aware; footer/cta stay dark on purpose) */
  --dark-bg: #0d1f3d;
  --dark-bg-2: #16305c;
  --dark-fg: #faf6ea;
  --dark-fg-muted: #aab4c9;
  --dark-border: rgba(255, 255, 255, 0.12);

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { max-width: 100%; overflow-x: hidden; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--ff-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
/* .js is added by an inline head script; without it (JS disabled) the page
   is simply visible, no transition gate. */
/* Opacity-only fade on purpose — a lingering transform on body (even
   translateY(0)) changes the containing block for every position:fixed
   descendant from the viewport to body itself, per spec. That broke the
   cursor dot, cursor glow and scroll-progress bar's fixed positioning. */
html.js body { opacity: 0; transition: opacity .38s ease; }
html.js body.page-loaded { opacity: 1; }
html.js body.page-leaving { opacity: 0; transition: opacity .22s ease; }

img, svg { display: block; max-width: 100%; }

a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
  font-family: var(--ff-display);
  font-weight: 600;
  line-height: 1.06;
  letter-spacing: -0.01em;
  margin: 0 0 0.5em;
  overflow-wrap: break-word;
}

h1 { font-size: clamp(1.9rem, 5.5vw, 4.6rem); }
h2 { font-size: clamp(1.6rem, 3.6vw, 2.8rem); }
h3 { font-size: 1.35rem; font-weight: 600; }

@media (max-width: 480px) {
  .cta-banner h2 br { display: none; }
}

p { margin: 0 0 1em; color: var(--fg-muted); }

.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--ff-body);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-faint);
  margin-bottom: 14px;
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  background: var(--accent);
  display: inline-block;
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--ff-body);
  font-weight: 700;
  font-size: 0.92rem;
  letter-spacing: 0.01em;
  padding: 15px 28px;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  transform: translate(var(--mx, 0px), var(--my, 0px));
  transition: transform 0.18s var(--ease), box-shadow 0.18s ease, background 0.18s ease, color 0.18s ease, border-color .18s ease;
}
.btn-primary {
  background: var(--fg);
  color: var(--dark-fg);
}
.btn-primary:hover { transform: translate(var(--mx, 0px), calc(var(--my, 0px) - 2px)); background: var(--accent-2-dark); }

.btn-ghost {
  background: transparent;
  color: var(--fg);
  border-color: var(--fg);
}
.btn-ghost:hover { background: var(--fg); color: var(--dark-fg); transform: translate(var(--mx, 0px), calc(var(--my, 0px) - 2px)); }

.btn-gold {
  background: var(--accent);
  color: var(--fg);
}
.btn-gold:hover { transform: translate(var(--mx, 0px), calc(var(--my, 0px) - 2px)); background: var(--accent-dark); }

.btn-block { width: 100%; }

/* ==========================================================================
   Header / nav
   ========================================================================== */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: var(--gradient);
  z-index: 200;
  transition: width .1s linear;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 249, 246, 0.78);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow .25s ease;
}
.site-header.scrolled { box-shadow: 0 8px 24px -16px rgba(20, 20, 30, 0.25); }
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  max-width: var(--max);
  margin: 0 auto;
}
.logo-lockup { display: flex; align-items: center; gap: 10px; font-family: var(--ff-display); font-weight: 700; font-size: 1.15rem; letter-spacing: -0.01em; }
.logo-lockup .logo-word-2 { color: var(--accent); }
.logo-mark { width: 34px; height: auto; flex-shrink: 0; }

.nav-links {
  position: relative;
  display: flex;
  align-items: center;
  gap: 30px;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.nav-links a { position: relative; color: var(--fg); padding: 6px 0; transition: color .18s ease; }
.nav-links a:hover,
.nav-links li.current-menu-item > a,
.nav-links li.current_page_item > a,
.nav-links a.active { color: var(--accent-dark); }
.nav-indicator {
  position: absolute;
  bottom: 0;
  height: 3px;
  background: var(--accent);
  border-radius: 2px;
  opacity: 0;
  transition: left .32s var(--ease), width .32s var(--ease), opacity .2s ease;
  pointer-events: none;
}
.nav-indicator.visible { opacity: 1; }
@media (max-width: 860px) { .nav-indicator { display: none; } }

.nav-actions { display: flex; align-items: center; gap: 20px; }
.nav-phone {
  display: flex;
  align-items: center;
  gap: 9px;
  font-family: var(--ff-display);
  font-weight: 600;
  font-size: 0.96rem;
  color: var(--fg);
}
.nav-phone-icon {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1.5px solid var(--fg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  flex-shrink: 0;
}
@media (max-width: 1080px) { .nav-phone span:last-child { display: none; } }
@media (max-width: 860px) { .nav-phone { display: none; } }
.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  width: 42px;
  height: 42px;
  color: var(--fg);
  font-size: 1.2rem;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  transition: transform .3s var(--ease), border-color .2s ease;
}
.nav-toggle span { display: inline-block; transition: transform .3s var(--ease); }
.nav-toggle.open span { transform: rotate(180deg); }
.nav-toggle:hover { border-color: var(--accent); }

@media (max-width: 860px) {
  /* z-index set explicitly (rather than relying on default stacking) so
     this panel always paints above page content, regardless of any
     stacking context individual sections create for their own reveal
     animations. */
  .nav-links { position: fixed; z-index: 120; inset: 68px 0 0 0; background: var(--bg); flex-direction: column; justify-content: flex-start; gap: 0; padding: 12px 24px 32px; transform: translateY(-8px); opacity: 0; pointer-events: none; transition: opacity .2s ease, transform .2s ease; border-top: 1px solid var(--border); }
  .nav-links.open { opacity: 1; transform: translateY(0); pointer-events: auto; }
  .nav-links li { width: 100%; border-bottom: 1px solid var(--border); }
  .nav-links a { display: block; padding: 16px 4px; }
  .nav-actions .btn-primary { display: none; }
  .nav-toggle { display: inline-flex; }
}

/* While the mobile menu is open: make the normally-translucent
   "frosted glass" header fully solid (it was blurring/blending with
   whatever page content was scrolled behind it, which is what looked
   like a rendering glitch), and lock background scrolling. Class is
   toggled on <body> by main.js. */
body.nav-open .site-header { background: var(--bg); backdrop-filter: none; }
body.nav-open { overflow: hidden; }

/* ==========================================================================
   Masthead hero — asymmetric, editorial. Deliberately not a centered
   hero-with-gradient-button: dateline kicker, oversized wordmark with the
   bird reduced to a small stamp, rule-separated lead/CTA row.
   ========================================================================== */
.hero {
  position: relative;
  overflow: hidden;
  padding: 56px 0 64px;
  border-bottom: 3px solid var(--fg);
}
.hero-decor {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}
.feather {
  position: absolute;
  border-radius: 0% 60% 0% 60%;
  filter: blur(1px);
  opacity: 0.3;
}
.hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 24px;
  align-items: center;
  min-height: 480px;
}
.hero-copy { max-width: 640px; }
.hero-headline {
  font-family: var(--ff-body);
  font-weight: 800;
  font-size: clamp(2.5rem, 5.6vw, 4.2rem);
  line-height: 1.03;
  letter-spacing: -0.02em;
  margin: 0 0 24px;
}
.hero-headline em {
  font-family: var(--ff-display);
  font-style: italic;
  font-weight: 500;
  color: var(--accent-dark);
}
.hero-copy p.lead { font-size: 1.1rem; max-width: 46ch; }
.hero-ctas { display: flex; gap: 14px; margin-top: 28px; flex-wrap: wrap; }

.hero-visual {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 48%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
  pointer-events: none;
}
.hero-visual img {
  width: 88%;
  height: auto;
  transform: rotate(-9deg) translateX(9%);
}

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; min-height: 0; }
  .hero-visual { position: static; width: 62%; max-width: 300px; margin: 32px auto 0; }
  .hero-visual img { transform: rotate(-6deg); }
}

/* Custom cursor — white circle + mix-blend-mode:difference means it reads
   as dark over light backgrounds and flips to white over dark/black
   elements automatically, no per-element detection needed. Native cursor
   is only hidden once JS confirms the replacement is actually rendering
   (see html.has-custom-cursor), so nothing goes cursor-less if JS fails. */
html.has-custom-cursor,
html.has-custom-cursor a,
html.has-custom-cursor button,
html.has-custom-cursor .btn,
html.has-custom-cursor input,
html.has-custom-cursor textarea,
html.has-custom-cursor select {
  cursor: none;
}
.cursor-dot {
  position: fixed;
  top: 0;
  left: 0;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  mix-blend-mode: difference;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: width .25s var(--ease), height .25s var(--ease);
  opacity: 0;
}
.cursor-dot.visible { opacity: 1; }
.cursor-dot.hovering { width: 46px; height: 46px; }
/* Bird mark movement */
.logo-mark { animation: idlebob 5.5s ease-in-out infinite; transform-origin: 70% 30%; }
@keyframes idlebob {
  0%, 100% { transform: rotate(0deg); }
  50% { transform: rotate(-4deg); }
}
.logo-lockup:hover .logo-mark { animation: hop 0.55s var(--ease); }
@keyframes hop {
  0% { transform: translateY(0) rotate(0deg); }
  35% { transform: translateY(-6px) rotate(-10deg); }
  65% { transform: translateY(0) rotate(6deg); }
  100% { transform: translateY(0) rotate(0deg); }
}

@media (max-width: 640px) {
  .masthead-row { flex-direction: column; align-items: flex-start; gap: 8px; }
  .masthead-stamp { order: -1; margin-bottom: 16px; }
  .masthead-sub { flex-direction: column; align-items: flex-start; }
}

/* ==========================================================================
   Proof band — bold solid-colour full-bleed section with a tilted mockup,
   standing in for real client photography we don't have.
   ========================================================================== */
.proof-band { background: var(--accent); padding: 80px 0; overflow: hidden; }
.proof-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
@media (max-width: 860px) { .proof-grid { grid-template-columns: 1fr; } }
.proof-copy h2 { color: var(--fg); max-width: 11ch; }
.proof-stars { color: var(--fg); letter-spacing: 4px; font-size: 1.15rem; margin: 20px 0 10px; }
.proof-quote {
  font-family: var(--ff-display);
  font-style: italic;
  font-weight: 500;
  font-size: 1.3rem;
  color: var(--fg);
  max-width: 34ch;
  margin: 0 0 8px;
}
.proof-cite { font-size: 0.85rem; color: rgba(15, 31, 58, 0.65); margin: 0 0 26px; }

.browser-mock {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 34px 64px -20px rgba(15, 31, 58, 0.35);
  transform: rotate(4deg);
  overflow: hidden;
  max-width: 420px;
  margin: 0 auto;
}
.browser-chrome { display: flex; gap: 6px; padding: 12px 14px; background: var(--bg-alt); }
.browser-chrome span { width: 10px; height: 10px; border-radius: 50%; background: rgba(15, 31, 58, 0.18); }
.browser-body { padding: 28px 24px 40px; display: flex; flex-direction: column; gap: 12px; }
.browser-body .bar { height: 13px; border-radius: 4px; background: var(--border-strong); }
.browser-body .bar.short { width: 45%; }
.browser-body .block { height: 90px; border-radius: 8px; background: linear-gradient(135deg, var(--accent-2), var(--accent)); margin-top: 12px; }

/* ==========================================================================
   Pull quote
   ========================================================================== */
.pull-quote-section { padding: 60px 0; border-bottom: 1px solid var(--border-strong); }
.pull-quote {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
}
.pull-quote .eyebrow { justify-content: center; }
.pull-quote .eyebrow::before { display: none; }
.pull-quote blockquote {
  margin: 0;
  font-family: var(--ff-display);
  font-style: italic;
  font-size: clamp(1.35rem, 2.8vw, 1.9rem);
  font-weight: 500;
  line-height: 1.35;
  color: var(--fg);
}
.pull-quote figcaption {
  margin-top: 18px;
  font-size: 0.9rem;
  color: var(--fg-faint);
  letter-spacing: 0.02em;
}

/* ==========================================================================
   Sections
   ========================================================================== */
section { padding: 88px 0; }
.section-alt { background: var(--bg-alt); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-head { max-width: 640px; margin-bottom: 52px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

/* ==========================================================================
   Cards / grids
   ========================================================================== */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px; }
.grid-3 > *, .grid-2 > *, .steps > *, .footer-grid > *, .contact-grid > * { min-width: 0; }
@media (max-width: 900px) { .grid-3, .grid-2 { grid-template-columns: 1fr; } }

.card {
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  border-radius: 4px;
  padding: 34px;
  position: relative;
  transition: border-color .2s ease;
}
.card:hover { border-color: var(--fg); }

.icon-badge {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: transparent;
  border: 1px solid var(--fg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: var(--fg);
  font-size: 1.1rem;
  transition: background .25s ease, color .25s ease;
}
.card:hover .icon-badge { background: var(--fg); color: var(--dark-fg); }

/* Service / pricing cards */
.price-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: stretch; }
@media (max-width: 900px) { .price-grid { grid-template-columns: 1fr; } }
.price-card {
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  border-radius: 20px;
  padding: 40px 32px;
  display: flex;
  flex-direction: column;
  transition: transform .25s var(--ease), box-shadow .25s ease;
}
.price-card:hover { transform: translateY(-4px); box-shadow: 0 24px 44px -26px rgba(15, 31, 58, 0.25); }
.price-card.featured {
  background: var(--fg);
  border-color: var(--fg);
  color: var(--dark-fg);
  box-shadow: 0 30px 60px -24px rgba(15, 31, 58, 0.4);
}
.price-card.featured:hover { box-shadow: 0 34px 64px -22px rgba(15, 31, 58, 0.48); }
.price-card.featured h3 { color: var(--dark-fg); }
.price-card.featured p { color: var(--dark-fg-muted); }
.price-card.featured .price { color: var(--dark-fg); }
.price-card.featured .price span { color: var(--dark-fg-muted); }
.price-card.featured ul li { color: var(--dark-fg-muted); }
.price-card.featured ul li::before { color: var(--accent); }
.price-card.featured .btn-ghost { border-color: var(--dark-fg); color: var(--dark-fg); }
.price-card.featured .btn-ghost:hover { background: var(--dark-fg); color: var(--fg); }
.price-card-tag {
  display: inline-flex;
  align-self: flex-start;
  align-items: center;
  background: var(--accent);
  color: var(--fg);
  font-family: var(--ff-body);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 999px;
  margin-bottom: 18px;
}
.price-card .price { font-family: var(--ff-display); font-weight: 600; font-size: 2.6rem; margin: 14px 0 4px; }
.price-card .price span { font-size: 1rem; color: var(--fg-faint); font-family: var(--ff-body); }
.price-card ul { list-style: none; margin: 22px 0 30px; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.price-card ul li { display: flex; align-items: flex-start; gap: 10px; color: var(--fg-muted); font-size: 0.95rem; }
.price-card ul li::before { content: "✓"; color: var(--accent-dark); font-weight: 700; }
.price-card .btn { margin-top: auto; }

/* ==========================================================================
   FAQ accordion — bold solid-colour band with white rounded question cards.
   ========================================================================== */
.faq-band { background: var(--accent); }
.faq-band .eyebrow { color: var(--fg); }
.faq-band .eyebrow::before { background: var(--fg); }
.faq-band .section-head h2 { color: var(--fg); }
.faq-band .section-head p { color: rgba(15, 31, 58, 0.7); }
.faq-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 760px) { .faq-grid { grid-template-columns: 1fr; } }
.faq-item {
  background: #fff;
  border-radius: 18px;
  padding: 22px 24px;
  cursor: pointer;
  align-self: start;
}
.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.faq-question h3 {
  font-size: 1.05rem;
  margin: 0;
}
.faq-icon {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(184, 137, 31, 0.12);
  color: var(--accent-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1.2rem;
  font-weight: 600;
  transition: transform .3s var(--ease), background .2s ease;
}
.faq-item.open .faq-icon { transform: rotate(135deg); background: var(--accent); color: var(--fg); }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height .35s var(--ease);
}
.faq-item.open .faq-answer { max-height: 240px; }
.faq-answer p { margin: 14px 0 0; color: var(--fg-muted); font-size: 0.95rem; }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; counter-reset: step; }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr; } }
.step { position: relative; padding-top: 8px; }
.step .step-num {
  font-family: var(--ff-display);
  font-size: 3rem;
  font-weight: 700;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--border-strong);
  display: block;
  margin-bottom: 10px;
}

/* Testimonial / quote */
.quote-block {
  border-left: 3px solid var(--accent);
  padding-left: 26px;
  font-family: var(--ff-display);
  font-size: 1.3rem;
  color: var(--fg);
  font-weight: 500;
}

/* CTA banner — deliberately dark for contrast against the light page */
.cta-banner {
  background: var(--dark-bg);
  border-top: 3px solid var(--accent);
  color: var(--dark-fg);
  padding: 64px 48px;
  text-align: center;
}
@media (max-width: 600px) {
  .cta-banner { padding: 44px 22px; }
}
.cta-banner p { color: var(--dark-fg-muted); }
.cta-banner .eyebrow { color: var(--accent); }
.cta-banner .eyebrow::before { background: var(--accent); }

/* ==========================================================================
   Bold colour bands — reused across pages so the navy/gold brand shows up
   somewhere other than just buttons and the footer.
   ========================================================================== */
.value-band { background: var(--accent); }
.value-band .eyebrow { color: var(--fg); }
.value-band .eyebrow::before { background: var(--fg); }
.value-band .section-head h2 { color: var(--fg); }
.value-band .section-head p { color: rgba(15, 31, 58, 0.7); }

.quote-panel {
  background: var(--fg);
  color: var(--dark-fg);
  border-radius: 20px;
  padding: 44px 38px;
  font-family: var(--ff-display);
  font-style: italic;
  font-weight: 500;
  font-size: 1.35rem;
  line-height: 1.42;
}

.card-navy { background: var(--fg); border-color: var(--fg); }
.card-navy h4, .card-navy p, .card-navy a { color: var(--dark-fg); }
.card-navy .icon-badge { border-color: var(--dark-fg); color: var(--dark-fg); }
.card-navy .icon-badge:hover, .card-navy:hover .icon-badge { background: var(--dark-fg); color: var(--fg); }

.card-gold { background: var(--accent); border-color: var(--accent); }
.card-gold h3, .card-gold p { color: var(--fg); }
.card-gold .btn-ghost { border-color: var(--fg); color: var(--fg); }
.card-gold .btn-ghost:hover { background: var(--fg); color: var(--dark-fg); }

/* Contact form */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }

.field { margin-bottom: 20px; display: flex; flex-direction: column; gap: 8px; }
.field label { font-size: 0.85rem; font-weight: 600; color: var(--fg-muted); }
.field input, .field select, .field textarea {
  background: var(--bg-alt);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  padding: 13px 14px;
  color: var(--fg);
  font-family: var(--ff-body);
  font-size: 0.98rem;
  resize: vertical;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); }

.form-note { font-size: 0.82rem; color: var(--fg-faint); margin-top: 10px; }
.form-success { display: none; background: rgba(26, 63, 122, 0.08); border: 1px solid var(--accent-2); color: var(--accent-2-dark); padding: 14px 16px; border-radius: var(--radius-sm); font-size: 0.92rem; margin-bottom: 20px; }
.form-success.visible { display: block; }

.contact-detail { display: flex; gap: 16px; align-items: flex-start; margin-bottom: 26px; }
.contact-detail .icon-badge { margin-bottom: 0; flex-shrink: 0; }
.contact-detail h4 { margin-bottom: 4px; }
.contact-detail p { margin: 0; }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer { border-top: 1px solid var(--dark-border); padding: 64px 0 32px; background: var(--dark-bg); color: var(--dark-fg-muted); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 48px; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
.footer-grid h4 { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--dark-fg-muted); margin-bottom: 18px; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.footer-grid ul a { color: var(--dark-fg-muted); font-size: 0.94rem; transition: color .18s ease, transform .18s ease; display: inline-block; }
.footer-grid ul a:hover { color: var(--accent); transform: translateX(3px); }
.site-footer .footer-brand p { color: var(--dark-fg-muted); max-width: 32ch; font-size: 0.94rem; }
.site-footer .logo-lockup { color: var(--dark-fg); }
.footer-socials { display: flex; gap: 12px; margin-top: 18px; }
.footer-socials a { width: 38px; height: 38px; border: 1px solid var(--dark-border); border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 0.85rem; color: var(--dark-fg-muted); transition: border-color .18s ease, color .18s ease, transform .18s ease; }
.footer-socials a:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 28px; border-top: 1px solid var(--dark-border); font-size: 0.82rem; color: var(--dark-fg-muted); flex-wrap: wrap; gap: 12px; }

/* ==========================================================================
   Page hero (inner pages)
   ========================================================================== */
.page-hero { position: relative; overflow: hidden; padding: 70px 0 56px; border-bottom: 1px solid var(--border); }
.page-hero .eyebrow { margin-bottom: 18px; }
.page-hero p.lead { max-width: 60ch; font-size: 1.08rem; }
.page-hero .container { position: relative; z-index: 1; }

/* Reveal-on-scroll — animated by GSAP/ScrollTrigger in main.js.
   No CSS opacity:0 here on purpose: if JS fails to load, content stays
   visible (progressive enhancement) instead of permanently hidden. */
.reveal { will-change: transform, opacity; }

/* Utility */
.mt-0 { margin-top: 0; }
.text-center { text-align: center; }
.badge-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.badge-pill { border: 1px solid var(--border-strong); border-radius: 999px; padding: 6px 14px; font-size: 0.8rem; color: var(--fg-muted); }

/* ==========================================================================
   Floating side CTA — front page only
   ========================================================================== */
.side-cta {
  position: fixed;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  z-index: 150;
  display: flex;
  align-items: center;
  background: var(--accent);
  color: var(--fg);
  font-family: var(--ff-body);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 22px 11px;
  writing-mode: vertical-rl;
  transition: padding .25s var(--ease), background .2s ease;
}
.side-cta:hover { padding-right: 16px; background: var(--accent-dark); }
@media (max-width: 860px) { .side-cta { display: none; } }
