/*
Theme Name:  FRNT/END
Theme URI:   https://frntend.com
Author:      FRNT/END
Description: Custom theme for FRNT/END - social media marketing for coaches,
             nutritionists, cafes and personal brands. All editable content is
             driven by ACF field groups registered in functions.php.
Version:     1.3.0
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
License:     GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: frntend
*/

/* ------------------------------------------------------------------
   Everything below is the site stylesheet, unchanged from the static
   build. Class names are identical so the markup ports 1:1.
   ------------------------------------------------------------------ */

/* ============================================================
   FRNT/END — site styles
   Display: Michroma · Body: Arimo · Accent: #F5390C
   ============================================================ */

:root {
  --orange: #F5390C;
  --orange-600: #D32F08;
  --tint: #fff3ee;
  --tint-border: #ffd0be;

  --black: #000000;
  --white: #ffffff;
  --grey-bg: #f5f5f5;
  --grey-line: #e8e8e8;
  --grey-line-soft: #f0f0f0;
  --fg-2: #555555;
  --fg-3: #888888;

  --font-display: "Michroma", "Arial Black", Arial, sans-serif;
  --font-sans: "Arimo", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;

  --container: 1200px;
  --container-narrow: 880px;

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

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--white);
  color: var(--black);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
::selection { background: var(--orange); color: var(--white); }

:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; }

.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ── Layout ─────────────────────────────────────────────── */

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 48px);
}
.container--narrow { max-width: var(--container-narrow); }
.container--center { text-align: center; }

.section { padding: 120px 0; }
.section--tight { padding: 100px 0; }
.section--grey { background: var(--grey-bg); }
.section--dark { background: var(--black); color: var(--white); }

/* ── Type ───────────────────────────────────────────────── */

.display {
  font-family: var(--font-display);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  line-height: 1.06;
  margin: 0;
}

.hero-head { font-size: clamp(38px, 6vw, 84px); }
.page-head { font-size: clamp(34px, 5.5vw, 76px); }

.sec-head {
  font-size: clamp(24px, 3.4vw, 44px);
  line-height: 1.1;
  margin: 0 0 20px;
}

.eyebrow {
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--orange);
  margin: 0 0 14px;
}

.lead {
  font-size: 18px;
  line-height: 1.65;
  color: var(--fg-2);
  margin: 0;
}
.section--dark .lead, .hero .lead { color: rgba(255, 255, 255, 0.68); }

.accent { color: var(--orange); }

/* ── Buttons ────────────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 48px;
  padding: 0 24px;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 14px;
  border: none;
  border-radius: 0;
  cursor: pointer;
  white-space: nowrap;
  transition: background 180ms ease, color 180ms ease,
              transform 180ms ease, box-shadow 180ms ease;
}
.btn:hover { transform: translateY(-2px); }

.btn--sm { height: 40px; padding: 0 18px; font-size: 13px; }
.btn--md { height: 48px; padding: 0 24px; font-size: 14px; }
.btn--lg { height: 56px; padding: 0 32px; font-size: 15px; }
.btn--xl { height: 64px; padding: 0 40px; font-size: 16px; }
.btn--block { width: 100%; }

.btn--primary { background: var(--orange); color: var(--black); }
.btn--primary:hover {
  background: var(--orange-600); color: var(--white);
  box-shadow: 0 12px 32px rgba(245, 57, 12, 0.38);
}

.btn--secondary { background: var(--black); color: var(--white); }
.btn--secondary:hover { background: #1a1a1a; box-shadow: 0 8px 24px rgba(0, 0, 0, 0.24); }

.btn--outline { background: transparent; color: var(--black); border: 1.5px solid var(--black); }
.btn--outline:hover { background: var(--black); color: var(--white); }

.btn--outline-light {
  background: transparent; color: var(--white);
  border: 1.5px solid rgba(255, 255, 255, 0.5);
}
.btn--outline-light:hover { background: var(--white); color: var(--black); }

.btn-row { display: flex; gap: 12px; flex-wrap: wrap; }
.btn-row--center { justify-content: center; }

/* ── Icons ──────────────────────────────────────────────── */

.icon {
  width: 20px; height: 20px;
  flex-shrink: 0;
  display: inline-block;
  vertical-align: middle;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.icon--xs { width: 14px; height: 14px; }
.icon--sm { width: 16px; height: 16px; }
.icon--lg { width: 22px; height: 22px; }
.icon--xl { width: 32px; height: 32px; }
.icon-orange { color: var(--orange); }

.icon-tile {
  width: 44px; height: 44px;
  border-radius: 2px;
  background: var(--tint);
  color: var(--orange);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.icon-tile--lg {
  width: 72px; height: 72px;
  border: 1px solid var(--tint-border);
}

/* ── Reveal on scroll ───────────────────────────────────── */

.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 420ms var(--ease-out), transform 420ms var(--ease-out);
}
.js .reveal.is-visible { opacity: 1; transform: none; }

@keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes dialogIn { from { opacity: 0; transform: scale(0.97); } to { opacity: 1; transform: none; } }

/* ── Nav ────────────────────────────────────────────────── */

.nav {
  position: fixed; inset: 0 0 auto 0;
  z-index: 50;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background 260ms ease, border-color 260ms ease, backdrop-filter 260ms ease;
}
.nav.is-scrolled {
  background: rgba(0, 0, 0, 0.88);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom-color: rgba(255, 255, 255, 0.07);
}
.nav__inner { display: flex; align-items: center; height: 76px; gap: 32px; }
.nav__logo { display: inline-flex; align-items: center; line-height: 1; }
.nav__logo img { height: 22px; width: auto; display: block; }
.nav__links { display: flex; gap: 28px; margin-left: auto; align-items: center; }
.nav__link {
  color: var(--white); font-size: 13px; font-weight: 500;
  letter-spacing: 0.01em; opacity: 0.78; transition: opacity 150ms;
}
.nav__link:hover, .nav__link[aria-current="page"] { opacity: 1; }
.nav__cta { margin-left: 4px; }
.nav__links .nav__cta { display: none; }
.nav__toggle {
  display: none; margin-left: auto;
  background: transparent; border: 1px solid rgba(255, 255, 255, 0.25);
  color: var(--white); width: 42px; height: 42px;
  align-items: center; justify-content: center; cursor: pointer;
}

/* ── Hero (home) ────────────────────────────────────────── */

.hero {
  background: var(--black); color: var(--white);
  padding: 160px 0 108px;
  position: relative; overflow: hidden;
}
.hero__blob {
  position: absolute; right: -60px; top: 100px;
  width: 380px; height: 380px;
  background: var(--orange); transform: rotate(10deg); opacity: 0.92;
}
.hero__lattice {
  position: absolute; inset: 0; pointer-events: none;
  background-image:
    repeating-linear-gradient(45deg, rgba(255,255,255,0.05) 0 1px, transparent 1px 90px),
    repeating-linear-gradient(135deg, rgba(255,255,255,0.05) 0 1px, transparent 1px 90px);
}
.hero__inner { position: relative; z-index: 1; }
.hero h1 { max-width: 1020px; margin: 0 0 28px; animation: fadeUp 500ms 100ms both ease-out; }
.hero .lead { max-width: 540px; margin: 0 0 36px; animation: fadeUp 500ms 220ms both ease-out; }
.hero .btn-row { animation: fadeUp 500ms 320ms both ease-out; }

/* ── Page hero (inner pages) ────────────────────────────── */

.page-hero {
  background: var(--black); color: var(--white);
  padding: 160px 0 96px;
  position: relative; overflow: hidden;
}
.page-hero--short { padding-bottom: 80px; }
.page-hero__grid {
  position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 64px 64px;
}
.page-hero__blob { position: absolute; background: var(--orange); }
.page-hero__blob--right { right: -80px; top: 80px; width: 300px; height: 300px; transform: rotate(12deg); opacity: 0.88; }
.page-hero__blob--left { left: -60px; bottom: 0; width: 320px; height: 320px; transform: rotate(-8deg); opacity: 0.85; }
.page-hero__blob--small { right: -40px; top: 60px; width: 260px; height: 260px; transform: rotate(15deg); opacity: 0.9; }
.page-hero__inner { position: relative; z-index: 1; }
.page-hero h1 { margin: 0 0 24px; }
.page-hero .lead { max-width: 520px; }

/* ── Ticker ─────────────────────────────────────────────── */

.ticker {
  background: #080808; padding: 18px 0; overflow: hidden;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}
.ticker__track { display: flex; gap: 48px; width: max-content; animation: ticker 30s linear infinite; }
.ticker__item { display: inline-flex; align-items: center; gap: 48px; }
.ticker__name {
  font-family: var(--font-display); font-size: 13px; letter-spacing: 0.08em;
  color: var(--white); opacity: 0.32; white-space: nowrap;
}
.ticker__dot { color: var(--orange); opacity: 0.5; font-size: 9px; }

/* ── Grids ──────────────────────────────────────────────── */

.grid { display: grid; }
.grid--2 { grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.grid--3 { grid-template-columns: repeat(3, 1fr); gap: 14px; }
.grid--tiers { grid-template-columns: repeat(3, 1fr); gap: 18px; align-items: center; }
.grid--4 { grid-template-columns: repeat(4, 1fr); border-top: 2px solid var(--black); }

.section-head {
  display: flex; justify-content: space-between; align-items: flex-end;
  margin-bottom: 52px; flex-wrap: wrap; gap: 24px;
}

/* ── Pain / promise ─────────────────────────────────────── */

.check-list { list-style: none; padding: 0; margin: 20px 0 0; }
.check-list li {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 9px 0; border-top: 1px solid rgba(0, 0, 0, 0.06);
  font-size: 15px; line-height: 1.55; color: #444;
}
.check-list li .icon { margin-top: 2px; }

.promise-card {
  background: var(--black); color: var(--white);
  border-radius: 2px; padding: 40px 36px;
  position: relative; overflow: hidden;
}
.promise-card::after {
  content: ""; position: absolute; bottom: -24px; right: -24px;
  width: 150px; height: 150px; border-radius: 999px;
  background: var(--orange); opacity: 0.1;
}
.promise-card > * { position: relative; z-index: 1; }
.promise-card .sec-head { color: var(--white); font-size: clamp(22px, 2.8vw, 36px); }
.promise-card .check-list li { color: rgba(255, 255, 255, 0.8); border-top-color: rgba(255, 255, 255, 0.08); }

/* ── Service cards (home) ───────────────────────────────── */

.link-arrow {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--orange); font-size: 14px; font-weight: 700;
  letter-spacing: 0.02em; transition: opacity 150ms;
}
.link-arrow:hover { opacity: 0.7; }
.link-arrow--muted { color: rgba(255, 255, 255, 0.45); font-size: 13px; font-weight: 600; transition: color 150ms; }
.link-arrow--muted:hover { color: var(--white); opacity: 1; }

.svc-card {
  background: var(--white); border: 1px solid var(--grey-line);
  border-radius: 2px; padding: 26px 24px; display: block;
  transition: transform 200ms ease, box-shadow 200ms ease;
}
.svc-card:hover { transform: translateY(-3px); box-shadow: 0 8px 28px rgba(0, 0, 0, 0.08); }
.svc-card__name {
  font-family: var(--font-display); font-size: 15px;
  text-transform: uppercase; letter-spacing: 0.01em;
  margin: 16px 0 6px;
}
.svc-card p { font-size: 14px; color: #666; margin: 0; line-height: 1.55; }
.svc-card--wide { grid-column: 1 / -1; }

/* ── Process ────────────────────────────────────────────── */

.step { padding: 32px 24px 36px; border-right: 1px solid var(--grey-line); }
.step:last-child { border-right: none; }
.step__n { font-family: var(--font-display); font-size: 40px; line-height: 1; color: var(--orange); margin-bottom: 14px; }
.step__title { font-size: 19px; font-weight: 700; margin-bottom: 10px; }
.step p { font-size: 14px; color: var(--fg-2); margin: 0; line-height: 1.65; }

/* ── Mid CTA band ───────────────────────────────────────── */

.band { background: var(--black); padding: 52px 0; }
.band__inner {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 24px;
}
.band__title {
  font-family: var(--font-display); font-size: clamp(20px, 2.8vw, 32px);
  color: var(--white); text-transform: uppercase; line-height: 1;
}
.band__sub { font-size: 14px; color: rgba(255, 255, 255, 0.45); margin-top: 8px; }

/* ── Pricing ────────────────────────────────────────────── */

.tier {
  background: var(--white); color: var(--black);
  border: 1px solid var(--grey-line); border-radius: 2px;
  padding: 36px 28px; position: relative;
  display: flex; flex-direction: column;
}
.tier--featured {
  background: var(--black); color: var(--white);
  border: 2px solid var(--orange);
  padding: 44px 32px;
  transform: translateY(-10px);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.22);
}
.tier__badge {
  position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
  background: var(--orange); color: var(--white);
  font-size: 11px; font-weight: 700; letter-spacing: 0.14em;
  text-transform: uppercase; padding: 5px 14px; border-radius: 999px;
  white-space: nowrap;
}
.tier__name {
  font-family: var(--font-display); font-size: 26px;
  text-transform: uppercase; line-height: 1; margin-bottom: 6px;
}
.tier__tagline { font-size: 13px; color: var(--fg-3); margin-bottom: 24px; line-height: 1.5; }
.tier--featured .tier__tagline { color: rgba(255, 255, 255, 0.55); }
.tier__features { list-style: none; padding: 0; margin: 0 0 28px; flex-grow: 1; }
.tier__features li {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 0; font-size: 14px; line-height: 1.5; color: #333;
  border-top: 1px solid var(--grey-line-soft);
}
.tier__features li:first-child { border-top: none; }
.tier--featured .tier__features li { color: rgba(255, 255, 255, 0.85); border-top-color: rgba(255, 255, 255, 0.07); }

/* ── Testimonials ───────────────────────────────────────── */

.quotes { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 620px)); gap: 18px; }

.quote-card {
  background: #111; border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 2px; padding: 28px 24px; margin: 0;
  display: flex; flex-direction: column;
}
.stars { display: flex; gap: 3px; margin-bottom: 16px; color: var(--orange); font-size: 13px; }
.quote-card blockquote {
  font-size: 15px; line-height: 1.65; margin: 0; flex-grow: 1;
  color: rgba(255, 255, 255, 0.82);
}
.quote-card blockquote.is-clamped {
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 6; overflow: hidden;
}
.read-more {
  align-self: flex-start; margin-top: 12px;
  background: none; border: none; padding: 0; cursor: pointer;
  color: var(--orange); font-size: 12px; font-weight: 700; letter-spacing: 0.04em;
  display: inline-flex; align-items: center; gap: 5px;
}
.quote-card__by { margin-top: 22px; padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, 0.07); }
.quote-card__name { font-size: 14px; font-weight: 700; color: var(--white); }
.quote-card__role { font-size: 12px; color: #555; margin-top: 2px; }

/* ── FAQ ────────────────────────────────────────────────── */

.faq { border-top: 1px solid var(--grey-line); }
.faq__item { border-bottom: 1px solid var(--grey-line); }
.faq__q {
  width: 100%; text-align: left; background: transparent; border: 0;
  padding: 22px 0; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  font-size: 18px; font-weight: 700; color: var(--black); line-height: 1.3;
}
.faq__icon { color: var(--orange); display: inline-flex; transition: transform 220ms ease; }
.faq__q[aria-expanded="true"] .faq__icon { transform: rotate(45deg); }
.faq__a { max-height: 0; overflow: hidden; transition: max-height 300ms ease; }
.faq__a p { font-size: 15px; color: var(--fg-2); line-height: 1.7; margin: 0; padding-bottom: 24px; max-width: 680px; }

/* ── Final CTA ──────────────────────────────────────────── */

.final-cta { background: var(--orange); padding: 120px 0; }
.final-cta h2 { font-size: clamp(34px, 5.5vw, 72px); color: var(--white); margin: 0 0 20px; }
.final-cta h2 span { color: var(--black); }
.final-cta p { font-size: 18px; line-height: 1.6; max-width: 500px; margin: 0 auto 36px; color: var(--white); opacity: 0.9; }

/* ── Footer ─────────────────────────────────────────────── */

.footer { background: var(--black); color: var(--white); padding: 72px 0 32px; }
.footer__grid {
  display: grid; grid-template-columns: 1.8fr 1fr 1fr 1fr;
  gap: 40px; margin-bottom: 56px; align-items: start;
}
.footer__logo img { height: 23px; width: auto; display: block; }
.footer__blurb { font-size: 14px; color: #777; line-height: 1.65; max-width: 300px; margin: 20px 0 28px; }
.footer__h {
  font-size: 10px; font-weight: 700; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--orange); margin-bottom: 18px;
}
.footer__list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 11px; }
.footer__list a { font-size: 14px; color: #777; transition: color 150ms; }
.footer__list a:hover { color: var(--white); }
.footer__bottom {
  padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 12px;
}
.footer__bottom span { font-size: 12px; color: #444; }

/* ── Dialog ─────────────────────────────────────────────── */

.dialog-backdrop {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(0, 0, 0, 0.72);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center; padding: 20px;
  animation: dialogIn 200ms ease-out;
}
.dialog-backdrop[hidden] { display: none; }
.dialog {
  background: var(--white); color: var(--black);
  border-radius: 2px; padding: 40px 36px;
  width: min(520px, 100%); position: relative;
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.42);
  max-height: 90vh; overflow-y: auto;
}
.dialog__close {
  position: absolute; top: 16px; right: 16px;
  border: 0; background: transparent; cursor: pointer;
  padding: 6px; border-radius: 6px; display: flex; color: var(--black);
}
.dialog__title { font-family: var(--font-display); font-weight: 400; font-size: 28px; text-transform: uppercase; margin: 0 0 8px; line-height: 1.06; }
.dialog__intro { color: #666; font-size: 14px; line-height: 1.6; margin: 0 0 26px; }

.success { text-align: center; padding: 12px 0; }
.success__mark {
  width: 64px; height: 64px; border-radius: 999px; background: var(--tint);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 22px; color: var(--orange);
}
.success h3 { font-family: var(--font-display); font-weight: 400; font-size: 30px; text-transform: uppercase; margin: 0 0 10px; line-height: 1; }
.success p { color: #666; font-size: 15px; margin: 0; line-height: 1.6; }

/* ── Forms ──────────────────────────────────────────────── */

.form { display: grid; gap: 12px; }
.form--roomy { gap: 14px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field {
  display: block; width: 100%;
  font-family: var(--font-sans); font-size: 14px;
  padding: 12px 16px;
  background: #fafafa; border: 1px solid #e2e2e2; border-radius: 0;
  outline: none; color: var(--black);
  transition: border-color 150ms;
}
.field:focus { border-color: var(--orange); }
.field--lg { font-size: 15px; padding: 14px 18px; background: var(--white); border-color: #e0e0e0; }
textarea.field { resize: vertical; line-height: 1.6; }
.form__note { font-size: 12px; color: #aaa; margin: 0; text-align: center; line-height: 1.5; }
.form__note a { color: var(--orange); font-weight: 600; }

.form__error { font-size: 13px; color: var(--orange); margin: 0; line-height: 1.5; font-weight: 600; }
.form__error[hidden] { display: none; }
.form__error a { text-decoration: underline; }

/* Spam trap — off-screen rather than display:none so bots still fill it. */
.honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

.btn[disabled] { opacity: 0.65; cursor: progress; }
.btn[disabled]:hover { transform: none; box-shadow: none; }

/* ── Services page ──────────────────────────────────────── */

.svc-row { padding: 80px 0; border-bottom: 1px solid #ebebeb; background: var(--white); }
.svc-row--alt { background: var(--grey-bg); }
.svc-row__grid { display: grid; grid-template-columns: 1fr 2fr; gap: 64px; align-items: start; }
.svc-row__name {
  font-family: var(--font-display); font-size: clamp(22px, 2.8vw, 36px);
  text-transform: uppercase; line-height: 1; letter-spacing: -0.01em;
  margin: 24px 0 12px;
}
.svc-row__num { display: flex; align-items: center; gap: 8px; margin-top: 20px; }
.svc-row__num i { width: 8px; height: 8px; background: var(--orange); border-radius: 999px; display: inline-block; }
.svc-row__num span { font-size: 11px; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: var(--orange); }
.svc-row__panel {
  background: #f9f9f9; border: 1px solid var(--grey-line);
  border-radius: 2px; padding: 36px 32px; margin-top: 8px;
}
.svc-row--alt .svc-row__panel { background: var(--white); }
.svc-row__panel p { font-size: 18px; line-height: 1.7; margin: 0 0 24px; color: var(--black); }

.compare { overflow-x: auto; }
.compare table { width: 100%; border-collapse: collapse; min-width: 560px; }
.compare thead tr { border-bottom: 2px solid var(--black); }
.compare th:first-child {
  text-align: left; padding: 14px 16px;
  font-size: 11px; font-weight: 700; letter-spacing: 0.14em;
  text-transform: uppercase; color: #999;
}
.compare th { text-align: center; padding: 14px 16px; font-family: var(--font-display); font-weight: 400; font-size: 15px; text-transform: uppercase; }
.compare th.is-featured { color: var(--orange); }
.compare tbody tr { border-bottom: 1px solid var(--grey-line-soft); }
.compare tbody tr:nth-child(even) { background: #fafafa; }
.compare td { text-align: center; padding: 14px 16px; font-size: 14px; }
.compare td:first-child { text-align: left; font-weight: 600; color: #333; }
.compare .yes { color: var(--orange); font-weight: 700; }
.compare .no { color: #ccc; }

/* ── Work page ──────────────────────────────────────────── */

.case-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; align-items: stretch; }

.case-card {
  position: relative; overflow: hidden;
  background: var(--white); border: 1px solid var(--grey-line); border-radius: 2px;
  padding: 36px 32px; display: flex; flex-direction: column;
}
.case-card__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.36; pointer-events: none; }
.case-card__veil { position: absolute; inset: 0; background: rgba(255, 255, 255, 0.72); pointer-events: none; }
.case-card__body { position: relative; display: flex; flex-direction: column; flex-grow: 1; }
.case-card__head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 18px; }
.case-card__name { font-family: var(--font-display); font-size: 18px; text-transform: uppercase; }
.case-card blockquote { font-size: 15px; line-height: 1.65; margin: 0 0 24px; color: #222; flex-grow: 1; }

.stats {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px;
  padding: 22px 0; margin: 0 0 24px;
  border-top: 2px solid var(--black); border-bottom: 1px solid var(--grey-line);
}
.stat__v { font-family: var(--font-display); font-size: 20px; line-height: 1.05; }
.stat__l { font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 700; margin-top: 8px; color: #6a6a6a; line-height: 1.4; }

.case-card__foot { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; }
.case-card__who { font-size: 15px; font-weight: 700; margin-bottom: 2px; }
.case-card__role { font-size: 13px; color: var(--fg-3); margin-bottom: 12px; }
.tags { display: flex; gap: 6px; flex-wrap: wrap; }
.tag {
  font-size: 10px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  background: var(--grey-bg); border: 1px solid var(--grey-line);
  border-radius: 4px; padding: 3px 8px; color: #777;
}

.photo-card {
  background: var(--white); border: 1px solid var(--grey-line); border-radius: 2px;
  display: flex; flex-direction: column; overflow: hidden;
}
.photo-card img { display: block; width: 100%; flex-grow: 1; min-height: 0; object-fit: cover; }
.photo-card__body { padding: 32px 32px 36px; }
.photo-card__name { font-family: var(--font-display); font-size: 18px; text-transform: uppercase; margin-bottom: 4px; }
.photo-card__meta { font-size: 13px; color: var(--fg-3); margin-bottom: 20px; }

/* ── Contact page ───────────────────────────────────────── */

.contact-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 80px; align-items: start; }
.contact-list { display: flex; flex-direction: column; gap: 22px; margin-bottom: 40px; }
.contact-item { display: flex; align-items: center; gap: 16px; }
.contact-item__label { font-size: 11px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: #bbb; margin-bottom: 2px; }
.contact-item__value { font-size: 15px; font-weight: 600; }
.dm-card { background: var(--black); color: var(--white); border-radius: 2px; padding: 28px 24px; }
.dm-card__title { font-family: var(--font-display); font-size: 16px; text-transform: uppercase; margin-bottom: 8px; }
.dm-card p { font-size: 14px; color: rgba(255, 255, 255, 0.65); margin: 0 0 18px; line-height: 1.6; }
.form-panel { background: var(--white); border: 1px solid var(--grey-line); border-radius: 2px; padding: 44px 40px; }
.form-panel h3 { font-family: var(--font-display); font-weight: 400; font-size: 26px; text-transform: uppercase; margin: 0 0 28px; line-height: 1.25; }

/* ── Responsive ─────────────────────────────────────────── */

@media (max-width: 1000px) {
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .svc-card--wide { grid-column: auto; }
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .step:nth-child(2n) { border-right: none; }
  .step:nth-child(n+3) { border-top: 1px solid var(--grey-line); }
  .grid--tiers { grid-template-columns: 1fr; }
  .tier--featured { transform: none; }
  .contact-grid { grid-template-columns: 1fr; gap: 48px; }
  .case-grid { grid-template-columns: 1fr; }
  .svc-row__grid { grid-template-columns: 1fr; gap: 32px; }
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 36px; }
}

@media (max-width: 860px) {
  .nav__toggle { display: flex; }
  .nav__links {
    position: absolute; top: 76px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: rgba(0, 0, 0, 0.96);
    -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding: 8px 0 20px;
    margin-left: 0;
  }
  .nav__links[hidden] { display: none; }
  .nav__link { padding: 14px clamp(20px, 4vw, 48px); opacity: 1; font-size: 15px; }
  .nav__links .nav__cta { display: inline-flex; margin: 12px clamp(20px, 4vw, 48px) 0; }
  .nav__inner > .nav__cta { display: none; }
}

@media (max-width: 720px) {
  .section, .section--tight, .final-cta { padding: 80px 0; }
  .hero { padding: 128px 0 80px; }
  .page-hero { padding: 128px 0 72px; }
  .hero__blob { width: 240px; height: 240px; right: -80px; top: 80px; }
  /* keep the accent squares off the copy on narrow screens */
  .page-hero__blob--right,
  .page-hero__blob--small { width: 200px; height: 200px; right: -95px; top: 70px; }
  .page-hero__blob--left { width: 220px; height: 220px; left: -110px; }
  .grid--2 { grid-template-columns: 1fr; gap: 28px; }
  .grid--3 { grid-template-columns: 1fr; }
  .grid--4 { grid-template-columns: 1fr; }
  .step { border-right: none; }
  .step:nth-child(n+2) { border-top: 1px solid var(--grey-line); }
  .footer__grid { grid-template-columns: 1fr; gap: 32px; }
  .form__row { grid-template-columns: 1fr; }
  .form-panel { padding: 32px 24px; }
  .promise-card { padding: 32px 24px; }
  .stats { grid-template-columns: 1fr 1fr; }
  .section-head { align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .js .reveal { opacity: 1; transform: none; }
}

/* ==================================================================
   WordPress editorial content
   Additive only - no existing class is redefined. The static build
   had no blog/editor content, so these styles are new to the theme.
   ================================================================== */

.entry-content { font-size: 17px; line-height: 1.75; color: var(--fg-2); }
.entry-content > * + * { margin-top: 1.25em; }
.entry-content h2,
.entry-content h3,
.entry-content h4 {
  font-family: var(--font-display);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  line-height: 1.15;
  color: var(--black);
  margin-top: 1.8em;
}
.entry-content h2 { font-size: clamp(22px, 3vw, 32px); }
.entry-content h3 { font-size: clamp(19px, 2.4vw, 24px); }
.entry-content h4 { font-size: 18px; }
.entry-content a { color: var(--orange); text-decoration: underline; font-weight: 600; }
.entry-content strong { color: var(--black); }
.entry-content ul,
.entry-content ol { padding-left: 1.25em; }
.entry-content li + li { margin-top: 0.5em; }
.entry-content blockquote {
  margin: 0; padding: 4px 0 4px 22px;
  border-left: 2px solid var(--orange);
  font-size: 19px; color: var(--black);
}
.entry-content img { display: block; height: auto; border-radius: 2px; }
.entry-content code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.92em; background: var(--grey-bg); padding: 2px 6px;
}
.entry-content pre {
  background: var(--black); color: var(--white);
  padding: 20px; overflow-x: auto; border-radius: 2px;
}
.entry-content pre code { background: none; padding: 0; }

.svc-card__meta {
  font-size: 11px; font-weight: 700; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--fg-3); margin-top: 14px;
}

.post-nav {
  display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap;
  margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--grey-line);
  font-size: 14px; font-weight: 700;
}
.post-nav a { color: var(--orange); }

.pagination {
  display: flex; justify-content: center; margin-top: 48px;
}
.pagination .page-numbers {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 40px; height: 40px; padding: 0 12px;
  font-size: 14px; font-weight: 700;
  border: 1px solid var(--grey-line); background: var(--white);
  margin: 0 4px;
}
.pagination .page-numbers.current { background: var(--black); color: var(--white); border-color: var(--black); }
