/*
Theme Name: EcommerceSEOFirm
Theme URI: https://ecommerceseofirm.com/
Author: EcommerceSEOFirm
Author URI: https://ecommerceseofirm.com/
Description: A clean, lightweight, block-compatible WordPress theme for EcommerceSEOFirm — an enterprise eCommerce SEO agency. UNIQUE palette (2.3.0): deep plum ink #22102E, warm paper #FFF6E8, vivid tangerine #FF5A1F accent. Inter body and Sora headings (Google Fonts), vanilla CSS/JS 3D hero with a slow wave/tide motion and a scrolling marquee strip, scroll-reveal and fade in/out animations, an animated 4-step process section and FAQ accordion on the homepage, and a lead-form band (WPForms) on every page, no page-builder dependency, no jQuery, minimal CSS/JS. Long-form content styles for detailed service pages: FAQ blocks, six-feature grids, styled images and a CTA band, all on one card radius/shadow set.
Version: 2.4.1
Requires at least: 6.0
Tested up to: 6.9
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: ecommerceseofirm
Tags: custom-menu, custom-logo, featured-images, threaded-comments, translation-ready, blog, e-commerce
*/

/* ============================================================
   EcommerceSEOFirm 2.3.0 — UNIQUE palette: deep plum / warm
   paper / vivid tangerine #FF5A1F. This palette was designed
   for this site only — it is NOT webdaddy.sg's beige/teal
   scheme, NOT the old cream #faf6ee + dark teal #0e6b5c, and
   NOT a generic blue/white SaaS theme. Only the ANIMATION
   TECHNIQUES follow webdaddy's approach: a slow 7s wave/tide
   divider, a scrolling marquee strip, and the easing
   cubic-bezier(.2,.8,.2,1) for reveals and hover lifts.
   Inter (body) + Sora (headings) via Google Fonts, with a
   system fallback stack. Vanilla CSS/JS 3D hero + wave/tide
   motion + marquee + scroll reveal. Animations are
   transform/opacity only.
   2.4.1: dropdown submenu support for the Primary menu
   (parent custom links "#" with ul.sub-menu children — warm-paper
   card, tangerine top border and caret, hover/focus/click reveal;
   indented, border-left submenus in the mobile column menu).
   See "Dropdown submenus (2.4.1)".
   2.4.0: animated 4-step process section on the homepage
   (front-page.php, after the page content), an FAQ accordion
   that enhances the existing homepage FAQ in main.js, and a
   lead-form band on every page/post (footer.php, WPForms form
   ID 84 "Get Your SEO Audit", with a /consultation/ fallback
   when the plugin is inactive). See "Process (2.4.0)",
   "FAQ accordion (2.4.0)" and "Lead-form band (2.4.0)".
   2.3.1: sizing-only fix — content images capped at 520px tall
   (420px on small screens), so portrait photos no longer render
   ~1100px tall and dominate the page. See "Images (2.3.1)" below.
   2.3.0: unique plum/tangerine scheme — warm paper #FFF6E8
   background, deep plum #22102E ink and hero, vivid tangerine
   #FF5A1F as the accent (burnt tangerine #B23A07 for text
   links, where vivid tangerine on paper would fail contrast),
   a slow 7s wave/tide divider at the foot of the hero, a
   scrolling marquee strip under the hero, the
   cubic-bezier(.2,.8,.2,1) easing for reveals and hover lifts,
   and a deep-plum #1A0B22 CTA band / footer with warm-paper
   text and tangerine accents. See "Wave + marquee (2.3.0)".
   Logo note: the existing logo is a teal shopping bag — it
   clashes with this scheme and should be recoloured to
   tangerine #FF5A1F (bag + magnifier) with plum #22102E
   outlines on warm paper (see README 2.3.0). It was NOT
   redesigned in this task.
   2.2.0: custom homepage fade in/out animations — hero copy
   fades in staggered on load, hero cards fade in with a slight
   rise, sections fade in and fade out (to 0.35, never 0) as they
   leave the viewport above, orbs/ring fade in, and images in
   .entry-content fade in on entry. See "Fade in/out (2.2.0)".
   2.1.0: one card radius/shadow set for the whole site, and
   long-form styles for detailed service pages (FAQ blocks,
   six-feature grids, styled images, CTA band). See the
   "Long-form content" section below.
   ============================================================ */

:root {
  /* UNIQUE palette (2.3.0, designed for this site — "Plum &
     Tangerine"): warm paper #FFF6E8 is the main light
     background, deep plum #22102E the ink / dark base, vivid
     tangerine #FF5A1F the signature accent. Why: plum reads as
     premium, high-ticket and editorial (not SaaS blue, not
     agency teal); tangerine is the colour of checkout, sales
     and growth — warm, urgent, unmistakable on plum and on
     paper. Paper is warm apricot-ivory, not cold white, so the
     plum/tangerine pair feels like a shop, not a dashboard. */
  --paper: #FFF6E8;
  --paper-2: #F3E3C8;
  --paper-3: #EAD9C2;
  --offwhite: #FFFDF7;
  --ink: #22102E;
  --ink-soft: #3D2A42;
  --ink-muted: #6E5A6E;
  --ink-muted-dark: #C9B3C4;
  --line: #EAD9C2;
  --line-strong: #C9A98F;
  /* Vivid tangerine #FF5A1F is an ACCENT (fills, borders, dots,
     buttons with plum-ink text) — never small body text on
     paper, where its contrast is too low. --accent-text
     #B23A07 (burnt tangerine) is the tangerine used for text
     links: 5.6:1 on warm paper (measured). Buttons: tangerine
     fill with plum-ink text, 5.7:1; hover: burnt tangerine
     fill with white text, 6.0:1. Ink on paper is 16.6:1. */
  --accent: #FF5A1F;
  --accent-text: #B23A07;
  --accent-dark: #B23A07;
  --accent-deep: #7A2505;
  --accent-soft: #FFE3D3;
  --accent-glow: #FF5A1F;
  --peach: #FFB38A;
  /* Shades of the same two hues only, used sparingly (one
     hero-card bar each, marquee dots): light tangerine
     #FF8A3D and deep plum #5A2A68. Never main backgrounds,
     never a third hue. */
  --tangerine-light: #FF8A3D;
  --plum-mid: #5A2A68;
  /* Easing for reveals and hover lifts (2.3.0) — the smooth
     cubic-bezier(.2,.8,.2,1) curve, a technique borrowed
     from webdaddy's motion style, not its colours. */
  --ease: cubic-bezier(.2, .8, .2, 1);
  --white: #ffffff;
  --danger: #9b2c2c;
  /* One radius/shadow set for the whole site (skill: design system). */
  --radius: 14px;
  --radius-sm: 8px;
  --shadow-sm: 0 6px 16px rgba(34, 16, 46, .08);
  --shadow-md: 0 18px 36px rgba(34, 16, 46, .16);
  --shadow-lg: 0 24px 48px rgba(0, 0, 0, .35);
  --max: 1180px;
  --max-narrow: 760px;
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-heading: "Sora", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, video, iframe { max-width: 100%; height: auto; }
img { border-style: none; }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--ink);
  line-height: 1.2;
  margin: 0 0 .6em;
  font-weight: 750;
  letter-spacing: -.01em;
}
h1 { font-size: clamp(2rem, 4.5vw, 3.25rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.25rem); }
h3 { font-size: 1.35rem; }
h4 { font-size: 1.15rem; }

p { margin: 0 0 1.1em; }
ul, ol { margin: 0 0 1.1em; padding-left: 1.4em; }
li { margin-bottom: .35em; }
a { color: var(--accent-text); text-decoration: underline; text-underline-offset: 3px; }
a:hover, a:focus { color: var(--accent-deep); }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--accent-text);
  outline-offset: 2px;
}
strong { font-weight: 700; }
small { font-size: .875em; }
blockquote {
  margin: 1.5em 0; padding: .9em 1.2em;
  border-left: 4px solid var(--accent);
  background: var(--paper-2); color: var(--ink-soft);
}
code { font-size: .9em; background: var(--paper-2); padding: .1em .35em; border-radius: 4px; }
pre { background: #1A0B22; color: var(--paper); padding: 1em; overflow: auto; border-radius: var(--radius-sm); }
pre code { background: transparent; color: inherit; padding: 0; }
hr { border: 0; border-top: 1px solid var(--line); margin: 2em 0; }
table { width: 100%; border-collapse: collapse; margin-bottom: 1.5em; }
th, td { text-align: left; padding: .6em .75em; border-bottom: 1px solid var(--line); }
th { background: var(--paper-2); }

/* Skip link */
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--ink); color: var(--white); padding: .7em 1em;
}
.skip-link:focus { left: .5em; top: .5em; color: var(--white); }

/* Layout */
.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 1.25rem; }
.container--narrow { max-width: var(--max-narrow); }
.site-main { padding: 2.5rem 0 3.5rem; }

/* Header */
.site-header {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 50;
}
.site-header__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; padding-top: .9rem; padding-bottom: .9rem;
}
.site-brand { display: flex; align-items: center; gap: .7rem; text-decoration: none; }
.site-brand .custom-logo { max-height: 44px; width: auto; }
.site-title { font-size: 1.25rem; font-weight: 800; color: var(--ink); line-height: 1.1; margin: 0; }
.site-title a { color: var(--ink); text-decoration: none; }
.site-title a:hover { color: var(--accent-text); }
.site-tagline { font-size: .85rem; color: var(--ink-muted); margin: 0; }

.menu-toggle {
  display: none; background: var(--ink); color: var(--paper);
  border: 0; border-radius: var(--radius-sm); padding: .6em .9em;
  font: inherit; font-weight: 650; cursor: pointer;
}
.primary-menu { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .25rem; }
.primary-menu a {
  display: block; padding: .5em .75em; color: var(--ink);
  text-decoration: none; font-weight: 600; border-radius: var(--radius-sm);
}
.primary-menu a:hover, .primary-menu a:focus { background: var(--paper-2); color: var(--accent-dark); }
.primary-menu .current-menu-item > a,
.primary-menu .current_page_item > a { color: var(--accent-text); box-shadow: inset 0 -2px 0 var(--accent); }

/* Dropdown submenus (2.4.1) — the Primary menu groups pages under
   parent custom links ("Shopify SEO", "eCommerce SEO", URL "#").
   WordPress prints a parent as li.menu-item-has-children with a
   nested ul.sub-menu. Desktop: the submenu is a warm-paper card
   dropped directly below its parent, hidden until hover, keyboard
   focus, or the JS .submenu-open toggle. Transform/opacity only,
   site easing, 0.25s. Reduced motion: the global reduced-motion
   block at the end of this file already kills the transition, so
   the submenu shows/hides instantly.
   Current-item highlighting inside submenus needs no extra rule:
   the .current-menu-item rule above matches descendants at any
   depth, so a child page keeps its tangerine underline. */
.primary-menu .menu-item-has-children { position: relative; }
/* Tangerine caret on parent links (CSS triangle, no icon font). */
.primary-menu .menu-item-has-children > a { padding-right: 1.5em; }
.primary-menu .menu-item-has-children > a::after {
  content: "";
  position: absolute; right: .55em; top: 50%;
  width: .45em; height: .45em;
  border-right: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: translateY(-70%) rotate(45deg);
  transition: transform .25s var(--ease);
  pointer-events: none;
}
/* Caret points up while its submenu is open (JS toggle). */
.primary-menu .menu-item-has-children.submenu-open > a::after {
  transform: translateY(-30%) rotate(225deg);
}
.primary-menu .sub-menu {
  list-style: none; margin: 0; padding: .4rem 0;
  position: absolute; top: 100%; left: 0;
  min-width: 260px;
  background: var(--offwhite);
  border-top: 3px solid var(--accent);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-md);
  opacity: 0; visibility: hidden;
  transform: translateY(6px);
  transition: opacity .25s var(--ease), transform .25s var(--ease), visibility .25s;
  z-index: 60;
}
.primary-menu .menu-item-has-children:hover > .sub-menu,
.primary-menu .menu-item-has-children:focus-within > .sub-menu,
.primary-menu .menu-item-has-children.submenu-open > .sub-menu {
  opacity: 1; visibility: visible; transform: translateY(0);
}
.primary-menu .sub-menu a {
  padding: .55em 1em; white-space: normal;
  border-radius: 0;
}
.primary-menu .sub-menu a:hover,
.primary-menu .sub-menu a:focus { background: var(--paper-2); }

/* Hero — deep plum gradient with a CSS-only gradient mesh and a
   3D floating-card scene. No images, no libraries. */
.hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(42rem 26rem at 85% -10%, rgba(255, 90, 31, .45), transparent 60%),
    radial-gradient(36rem 24rem at -10% 110%, rgba(178, 58, 7, .55), transparent 60%),
    linear-gradient(135deg, #1A0B22 0%, #2E133D 48%, #5A2A68 100%);
  color: var(--paper);
  /* 2.3.0: extra bottom padding so the wave divider (see
     "Wave + marquee") never overlaps the hero copy or cards. */
  padding: 4rem 0 6rem;
}
/* Soft 3D mesh blobs (CSS only). */
.hero::before,
.hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  border-radius: 50%;
  filter: blur(70px);
  opacity: .55;
  pointer-events: none;
}
.hero::before {
  width: 26rem; height: 26rem;
  top: -8rem; right: 6%;
  background: radial-gradient(circle, #FF5A1F, transparent 65%);
}
.hero::after {
  width: 20rem; height: 20rem;
  bottom: -10rem; left: -4rem;
  background: radial-gradient(circle, #FFB38A, transparent 65%);
  opacity: .35;
}
.hero__inner {
  position: relative; z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: 3rem;
  align-items: center;
}
.hero h1, .hero .hero__title { color: var(--white); margin-bottom: .35em; }
/* 1.0.1: the front-page hero title is now a <p class="hero__title">, not
   an <h1> (the page content supplies the only H1). Give it the H1 look
   explicitly, since it no longer inherits the h1 element styles. */
.hero__title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4.5vw, 3.25rem);
  font-weight: 750;
  line-height: 1.2;
  letter-spacing: -.01em;
}
/* 2.0.1: hero copy colour is scoped to the copy column ONLY.
   It used to be `.hero p`, which also matched the <p> elements
   inside the floating hero cards — and at specificity (0,1,1) it
   outranked `.hero-card__label` / `.hero-card__text` (0,1,0),
   painting the card text light grey (#EAD9C2) on a near-white card.
   That was the faded / semi-transparent look on the live site.
   The eyebrow/title overrides below keep their own colours. */
.hero__copy .hero__eyebrow { color: var(--peach); }
.hero__copy .hero__title { color: var(--white); }
.hero__eyebrow { font-size: .85rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--peach); margin: 0 0 .8em; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.5rem; }

/* ============================================================
   Fade in/out (2.2.0) — homepage custom fade animations.
   All transform/opacity only, vanilla CSS, no libraries.
   - Hero copy fades in on load, staggered 0.15s apart:
     eyebrow 0s, title 0.15s, excerpt 0.30s, buttons 0.45s.
     The keyframes use fill mode `backwards` (not `both`), so
     during the delay the element sits at opacity 0, and once
     the animation ends it returns to its normal stylesheet
     opacity — nothing is ever left hidden by a fill mode.
     This is a CSS animation, not a JS-gated reveal: it runs
     on load whether or not main.js loads, and it is short
     (0.7s), so the hero is fully visible well under a second
     after first paint. Reduced motion kills it (see the media
     query at the end of this file).
   - Hero orbs/ring and the gradient-mesh blobs fade in gently
     (1.2–1.6s, fill backwards, returning to their base opacity
     afterwards — orb--2 keeps its 0.8, the mesh keeps 0.55/0.35).
   - Hero cards fade in (opacity only, staggered 0.25s /
     0.40s / 0.55s). The "rise" is supplied by the float
     keyframes themselves, which drift the cards up 12px and
     back — animating `translate` in the fade-in as well would
     fight the float, because both would write the same
     property. So the fade-in animates opacity only; see the
     .hero-card rules below for the combined animation list.
   ============================================================ */
@keyframes hero-fade-in {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes hero-card-fade {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes hero-orb-fade {
  from { opacity: 0; }
  to { opacity: 1; }
}
.hero__eyebrow { animation: hero-fade-in .7s ease backwards; }
.hero__title { animation: hero-fade-in .7s ease .15s backwards; }
.hero__excerpt { animation: hero-fade-in .7s ease .30s backwards; }
.hero__excerpt p { margin-bottom: 0; }
.hero__actions { animation: hero-fade-in .7s ease .45s backwards; }
.hero::before { animation: hero-orb-fade 1.6s ease backwards; }
.hero::after { animation: hero-orb-fade 1.6s ease .15s backwards; }
.hero__orb, .hero__ring { animation: hero-orb-fade 1.2s ease .2s backwards; }
/* The excerpt colour rule (2.0.1, scoped copy colour) must also
   cover the excerpt inside its new .hero__excerpt wrapper. */
.hero__copy > p, .hero__copy .hero__excerpt p { color: var(--paper); max-width: 44rem; }

/* 3D scene — perspective on the container, preserve-3d on the tilt
   layer, floating cards inside. */
.hero__scene {
  position: relative;
  min-height: 21rem;
  perspective: 1200px;
  perspective-origin: 50% 40%;
}
.hero__tilt {
  position: relative;
  width: 100%; height: 100%; min-height: 21rem;
  transform-style: preserve-3d;
  will-change: transform;
  transition: transform .25s ease-out;
}
.hero__orb {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(255,255,255,.55), rgba(255,90,31,.25) 45%, transparent 70%);
  box-shadow: 0 30px 60px rgba(0,0,0,.35);
  transform: translateZ(40px);
  pointer-events: none;
}
.hero__orb--1 { width: 9rem; height: 9rem; top: 0; right: 8%; }
.hero__orb--2 { width: 5rem; height: 5rem; bottom: 12%; left: 2%; opacity: .8; }
.hero__ring {
  position: absolute;
  width: 13rem; height: 13rem;
  right: -2rem; bottom: -1rem;
  border: 2px solid rgba(255,255,255,.25);
  border-radius: 50%;
  transform: translateZ(20px) rotateX(62deg);
  pointer-events: none;
}
.hero-card {
  position: absolute;
  /* 2.0.1: solid white, NOT translucent glass. rgba(255,255,255,.92)
     + backdrop-filter: blur(6px) let the deep plum gradient and the
     bright orbs bleed through and wash the card out. */
  background: #ffffff;
  color: var(--ink);
  border: 1px solid rgba(26, 30, 36, .12);
  border-radius: var(--radius);
  padding: 1rem 1.15rem;
  box-shadow: var(--shadow-lg);
  transform-style: preserve-3d;
  /* 2.2.0: fade in on load (opacity only — see the "Fade in/out"
     section above) alongside the infinite float. The two
     animations write different properties (opacity vs translate),
     so they do not fight each other. Card--2/--3 override the
     delays below. */
  animation: hero-float 6s ease-in-out infinite, hero-card-fade .8s ease .25s backwards;
  will-change: transform;
  /* 2.0.1: hero cards are visible on first paint and must NEVER
     depend on scroll-reveal (.reveal starts at opacity 0). */
  opacity: 1;
}
.hero-card__label {
  margin: 0 0 .2em;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.02rem;
  color: var(--ink);
}
.hero-card__text { margin: 0; font-size: .88rem; line-height: 1.45; color: var(--ink-soft); }
/* 2.0.1: belt and braces — these (0,2,0+) rules beat any future
   `.hero p`-style rule, so card text can never again be painted
   light grey on white. Label ink #22102E, body ink-soft #3D2A42. */
.hero .hero-card p { color: var(--ink-soft); }
.hero .hero-card__label { color: var(--ink); }
.hero-card__bar {
  height: 5px; width: 3.2rem; border-radius: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent-glow));
  margin-bottom: .6em;
}
.hero-card--1 { top: 4%; left: 4%; width: 15.5rem; transform: translateZ(70px); }
/* 2.3.0: one shade accent per card bar, sparingly — light
   tangerine on card 2, deep plum on card 3 (same two hues). */
.hero-card--2 .hero-card__bar { background: linear-gradient(90deg, var(--tangerine-light), #FFC08A); }
.hero-card--3 .hero-card__bar { background: linear-gradient(90deg, var(--plum-mid), #8A5A9E); }
.hero-card--2 { top: 36%; right: 0; width: 14.5rem; animation: hero-float 6s ease-in-out -2s infinite, hero-card-fade .8s ease .40s backwards; transform: translateZ(110px); }
.hero-card--3 { bottom: 2%; left: 16%; width: 15rem; animation: hero-float 6s ease-in-out -4s infinite, hero-card-fade .8s ease .55s backwards; transform: translateZ(50px); }
@keyframes hero-float {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -12px; }
}

/* ============================================================
   Wave + marquee (2.3.0) — creative motion, techniques
   borrowed from webdaddy's motion style, re-skinned here.
   - Hero wave: two layered SVG waves pinned to the foot of
     the hero (front-page.php prints .hero__wave--back in a
     translucent vivid tangerine and .hero__wave in solid warm paper,
     so the hero melts into the warm-paper page below). Each wave
     drifts 7s ease-in-out infinite alternate, like a slow tide, never a fast wobble.
     Transform only (translateX), pointer-events none, and the
     waves sit below the hero copy (z-index 1 vs .hero__inner
     z-index 2), so they can never obscure text. The back wave
     is offset half a cycle, so the two layers move against
     each other.
   - Marquee: a tangerine strip directly under the hero
     (.marquee in front-page.php) scrolling the service names
     on a 28s linear loop. The track holds two identical
     copies, so translateX(-50%) loops seamlessly. Plum-ink text
     on vivid tangerine (never vivid tangerine text on paper), and
     the scroll pauses on hover. Reduced motion stops it
     (see the media query at the end of this file) — the
     strip then shows the first set of names statically.
   ============================================================ */
@keyframes wave-drift {
  from { transform: translateX(0); }
  to { transform: translateX(-6%); }
}
@keyframes marquee-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
.hero__wave {
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 72px;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
}
.hero__wave--back { bottom: 22px; height: 62px; opacity: .55; }
.hero__wave svg {
  display: block;
  width: 200%; height: 100%;
  animation: wave-drift 7s ease-in-out infinite alternate;
}
.hero__wave--back svg { animation-delay: -3.5s; }
.marquee {
  background: var(--accent);
  color: var(--ink);
  overflow: hidden;
  position: relative;
  z-index: 2;
}
.marquee__track {
  display: flex;
  width: max-content;
  animation: marquee-scroll 28s linear infinite;
}
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__item {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: .95rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  white-space: nowrap;
  padding: .8rem 0;
}
.marquee__item .marquee__dot { color: var(--ink); }

/* ============================================================
   Animated process section (2.4.0) — homepage template
   section in front-page.php, placed after the page content.
   Four cards (01–04) with a connecting line that draws
   across as the section reveals. Cards stagger in on scroll
   via the existing .reveal observer (inline --reveal-delay,
   0.08s apart) — transform/opacity only, vanilla CSS, no
   libraries. The numbered circles pop in with a slight scale
   once their card is visible. Hover lift -4px with the
   borrowed easing. Reduced motion: the global media query at
   the end of this file forces .reveal visible and kills
   transitions, so the line is drawn and the circles are shown
   statically (see the explicit rules there too).
   ============================================================ */
.process { padding: 3.5rem 0; }
.process .section__head { max-width: var(--max-narrow); }
.process__steps {
  list-style: none;
  margin: 2rem 0 0;
  padding: 0;
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(4, 1fr);
  position: relative;
}
/* Connecting line — drawn behind the numbered circles. It
   starts at scaleX(0) and draws to full width when the
   section itself gets .reveal--visible from the observer.
   transform-origin left, so it draws left to right. */
.process__steps::before {
  content: "";
  position: absolute;
  top: 2.6rem;
  left: 6%;
  right: 6%;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--tangerine-light));
  border-radius: 3px;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 1s var(--ease) .3s;
  z-index: 0;
}
.process.reveal--visible .process__steps::before { transform: scaleX(1); }
.process__card {
  background: var(--offwhite);
  border: 1px solid var(--line);
  border-top: 3px solid var(--accent);
  border-radius: var(--radius);
  padding: 1.4rem;
  position: relative;
  z-index: 1;
  transition: transform .45s var(--ease), box-shadow .45s var(--ease), border-color .45s var(--ease);
  will-change: transform;
}
/* Hover lift must beat the html.js .reveal--visible rule
   (specificity 0,2,1), or the card would never lift. */
html.js .process__card.reveal--visible:hover,
.process__card:hover,
.process__card:focus-within {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--accent);
}
.process__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 50%;
  background: var(--accent);
  color: var(--ink);
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.15rem;
  margin-bottom: .9rem;
  box-shadow: 0 0 0 5px var(--paper), 0 0 0 6px var(--accent-soft);
  /* Pop-in: starts small and transparent, scales up once its
     card is visible (transition-delay lets the card arrive first). */
  transform: scale(.6);
  opacity: 0;
  transition: transform .5s var(--ease) .2s, opacity .5s ease .2s;
}
.process__card.reveal--visible .process__num { transform: scale(1); opacity: 1; }
.process__card h3 { margin-bottom: .4em; font-size: 1.15rem; }
.process__card p { color: var(--ink-soft); margin-bottom: 0; }

/* ============================================================
   FAQ accordion (2.4.0) — JS enhancement in main.js. The
   homepage FAQ stays plain H2 + H3s + paragraphs in the page
   content; main.js wraps each Q&A into .faq-accordion__item
   (only on the front page, only when it finds an H2 containing
   "Frequently Asked Questions" followed by 2+ H3s — otherwise
   it does nothing and the content is untouched). The question
   becomes a <button> (keyboard accessible, aria-expanded);
   the answer panel opens with a max-height + opacity
   transition, one open at a time, first open by default.
   The chevron rotates when open. If JS is disabled or the
   enhancement fails, the FAQ simply reads as normal headings
   and paragraphs — nothing is ever hidden by CSS alone.
   ============================================================ */
.faq-accordion { margin: 2rem 0; }
.faq-accordion__item {
  background: var(--offwhite);
  border: 1px solid var(--line);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius-sm);
  margin-bottom: 1rem;
  overflow: hidden;
}
.faq-accordion__button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
  padding: 1.1rem 1.4rem;
  background: transparent;
  border: 0;
  border-radius: 0;
  color: var(--ink);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.1rem;
  line-height: 1.35;
  text-align: left;
  cursor: pointer;
}
.faq-accordion__button:hover { background: var(--paper-2); color: var(--ink); }
.faq-accordion__question { flex: 1; }
.faq-accordion__chevron {
  flex: none;
  width: .7rem;
  height: .7rem;
  border-right: 3px solid var(--accent-text);
  border-bottom: 3px solid var(--accent-text);
  transform: rotate(45deg) translateY(-2px);
  transition: transform .45s var(--ease);
}
.faq-accordion__button[aria-expanded="true"] .faq-accordion__chevron {
  transform: rotate(225deg) translateY(-2px);
}
.faq-accordion__panel {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height .5s var(--ease), opacity .4s ease;
}
.faq-accordion__panel.faq-accordion__panel--open { opacity: 1; }
.faq-accordion__panel p {
  padding: 0 1.4rem 1.25rem;
  margin: 0;
  color: var(--ink-soft);
}

/* ============================================================
   Lead-form band (2.4.0) — footer.php, after </main> and
   before the footer, so it appears on EVERY page and post
   (every template calls get_footer()). Deep plum section
   with a tangerine top border; the form sits in an offwhite
   card. WPForms styles are scoped under .lead-band so they
   never leak into wp-admin or other forms. The form itself
   is WPForms Lite form ID 84 ("Get Your SEO Audit").
   ============================================================ */
.lead-band {
  background: linear-gradient(135deg, #1A0B22 0%, #2E133D 60%, #5A2A68 100%);
  border-top: 3px solid var(--accent);
  color: var(--paper);
  padding: 3rem 0;
}
.lead-band__inner {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: 2.5rem;
  align-items: start;
}
.lead-band__copy .section__eyebrow { color: var(--peach); }
.lead-band h2 { color: var(--white); margin-bottom: .5em; }
.lead-band__copy p { color: var(--ink-muted-dark); max-width: 32rem; }
.lead-band__form {
  background: var(--offwhite);
  color: var(--ink);
  border: 1px solid var(--line);
  border-top: 3px solid var(--accent);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--shadow-lg);
}
.lead-band__form p { color: var(--ink-soft); }
/* WPForms Lite (form ID 84) — scoped styles. */
.lead-band .wpforms-container { margin: 0; }
.lead-band .wpforms-title { display: none; }
.lead-band .wpforms-field { margin-bottom: 1rem; padding: 0; }
.lead-band .wpforms-field-label {
  display: block;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: .95rem;
  color: var(--ink);
  margin-bottom: .35em;
}
.lead-band .wpforms-required-label { color: var(--accent-text); }
.lead-band .wpforms-field-sublabel { font-size: .85rem; color: var(--ink-muted); }
.lead-band .wpforms-field input[type="text"],
.lead-band .wpforms-field input[type="email"],
.lead-band .wpforms-field input[type="url"],
.lead-band .wpforms-field input[type="tel"],
.lead-band .wpforms-field select,
.lead-band .wpforms-field textarea {
  width: 100%;
  font: inherit;
  padding: .6em .75em;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: var(--white);
  color: var(--ink);
}
.lead-band .wpforms-field input:focus,
.lead-band .wpforms-field select:focus,
.lead-band .wpforms-field textarea:focus {
  border-color: var(--accent-text);
  outline: 3px solid var(--accent-soft);
  outline-offset: 0;
}
.lead-band .wpforms-submit-container { margin-top: 1.25rem; }
.lead-band .wpforms-submit,
.lead-band button[type="submit"] {
  width: 100%;
  background: var(--accent);
  color: var(--ink);
  border: 1px solid var(--accent);
  font-weight: 700;
  padding: .75em 1.2em;
}
.lead-band .wpforms-submit:hover,
.lead-band button[type="submit"]:hover { background: var(--accent-dark); color: var(--white); }
.lead-band .wpforms-confirmation-container-full {
  background: var(--accent-soft);
  border: 1px solid var(--accent);
  color: var(--ink);
  border-radius: var(--radius-sm);
  padding: 1rem 1.25rem;
  margin: 0;
}
.lead-band .wpforms-error-container {
  background: #FDECEC;
  border: 1px solid var(--danger);
  color: var(--danger);
  border-radius: var(--radius-sm);
  padding: 1rem 1.25rem;
  margin: 0 0 1rem;
}
.lead-band .wpforms-field-error { color: var(--danger); font-size: .9rem; }

/* Scroll reveal — fade + translateY, staggered via --reveal-delay.
   JS (IntersectionObserver) adds .reveal--visible. Transform/opacity only.
   2.1.0 URGENT FIX — no-JS safety net: .reveal is hidden ONLY
   when JavaScript is actually running. main.js adds class "js" to
   <html> as its first step; without that class (JS disabled, or
   main.js failed to load) .reveal elements are fully visible by
   default, so content can never be stuck invisible. Reveal must
   also never be applied to a container taller than a viewport
   (see front-page.php: the whole-content wrapper no longer
   carries .reveal) — only small sections and grid cards below
   the hero are reveal-gated, and main.js reveals anything taller
   than the viewport immediately. */
html.js .reveal {
  opacity: 0;
  transform: translateY(24px);
  /* 2.3.0: the borrowed easing, 0.6s — was .7s ease. */
  transition: opacity .6s var(--ease), transform .6s var(--ease);
  transition-delay: var(--reveal-delay, 0s);
}
html.js .reveal--visible { opacity: 1; transform: translateY(0); }
/* 2.0.1: nothing inside the hero may ever be reveal-gated — the
   hero (including its cards) is visible on first paint, always. */
.hero .reveal { opacity: 1; transform: none; }

/* 2.2.0 — fade OUT: a .reveal section that has already been seen
   and is then scrolled fully out of view ABOVE the viewport gets
   .is-out from main.js. It fades to 0.35, never to 0 — content
   the user may scroll back to stays faintly readable, and the
   section restores to full opacity the moment it re-enters the
   viewport (main.js removes .is-out on intersection). The
   transition-delay is forced to 0s so the fade-out is snappy
   instead of waiting out the grid stagger delay. This only
   applies to small .reveal sections/cards below the hero; the
   whole-content wrapper carries no .reveal (2.1.0 fix), so the
   page body can never fade out. */
html.js .reveal.reveal--visible.is-out {
  opacity: .35;
  transform: translateY(-8px);
  transition-delay: 0s;
}

/* 2.2.0 — images inside .entry-content fade in gently when they
   enter the viewport. main.js adds .img-fade to each image and
   .img-fade--visible on intersection (plus a 3s fallback that
   reveals all of them). Hidden only under html.js, so with JS
   disabled or main.js failed the images are visible by default.
   Transform/opacity only. */
html.js .entry-content img.img-fade {
  opacity: 0;
  transition: opacity .8s ease;
}
html.js .entry-content img.img-fade--visible { opacity: 1; }

/* Buttons — hover lift + shadow, transform/box-shadow only. */
.button, .wp-block-button__link {
  display: inline-block; background: var(--accent); color: var(--ink);
  padding: .7em 1.3em; border-radius: var(--radius-sm); border: 1px solid var(--accent);
  font-weight: 700; text-decoration: none; cursor: pointer; line-height: 1.4;
  /* 2.3.0: vivid tangerine button with INK text (vivid tangerine with
     white text fails contrast); hover lift is -4px with
     the borrowed easing, 0.45s. */
  transition: transform .45s var(--ease), box-shadow .45s var(--ease), background-color .45s var(--ease), color .45s var(--ease);
  will-change: transform;
}
.button:hover, .button:focus, .wp-block-button__link:hover { background: var(--accent-dark); color: var(--white); transform: translateY(-4px); box-shadow: 0 10px 22px rgba(178, 58, 7, .35); }
.button:active { transform: translateY(0); box-shadow: none; }
.button--ghost, .wp-block-button.is-style-outline .wp-block-button__link {
  background: transparent; color: var(--ink); border-color: var(--ink);
}
.button--ghost:hover { background: var(--ink); color: var(--white); }
.hero .button--ghost { color: var(--paper); border-color: var(--paper); }
.hero .button--ghost:hover { background: var(--paper); color: var(--ink); }

/* Cards / grids — one radius/shadow set site-wide (2.1.0).
   Every card gets a subtle tangerine top-border accent. */
.section { padding: 3.5rem 0; }
.section--tint { background: var(--paper-2); }
.section__head { max-width: var(--max-narrow); margin-bottom: 1.75rem; }
.section__eyebrow { font-size: .85rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--accent-text); margin: 0 0 .5em; }
.grid { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); perspective: 1000px; }
.card {
  background: var(--offwhite); border: 1px solid var(--line);
  border-top: 3px solid var(--accent);
  border-radius: var(--radius); padding: 1.4rem; display: flex; flex-direction: column;
  transform-style: preserve-3d;
  transition: transform .45s var(--ease), box-shadow .45s var(--ease), border-color .45s var(--ease);
  will-change: transform;
}
.card:hover, .card:focus-within {
  transform: translateY(-4px) rotateX(2deg);
  box-shadow: var(--shadow-md);
  border-color: var(--accent);
}
/* Tangerine icon dot at the top of a card (service-card.php prints
   <span class="card__dot">; decorative only). */
.card__dot {
  display: block; width: .85rem; height: .85rem; border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-glow));
  box-shadow: 0 0 0 4px var(--accent-soft);
  margin-bottom: .9rem;
}
.card h3 { margin-bottom: .4em; }
.card h3 a { color: var(--ink); text-decoration: none; }
.card h3 a:hover { color: var(--accent-text); }
.card p { color: var(--ink-soft); flex: 1; }
.card__link { font-weight: 700; }

/* ============================================================
   Long-form content (2.1.0) — styles for the detailed,
   Thrive-style service pages: generous section padding, clear
   H2/H3 hierarchy, FAQ blocks, six-feature grids, styled
   images and a final CTA band. All classes below are opt-in:
   add them in the block editor via Block settings → Advanced →
   Additional CSS class(es), or use the FAQ / CTA Band block
   patterns (inc/patterns.php). No content is hardcoded here —
   the classes only style whatever the editor puts in the page.
   Animations are transform/opacity only (hover lift); no new
   keyframes are added in this section.
   ============================================================ */

/* H2/H3 hierarchy inside page/post content. Each H2 section is
   separated by generous space and a hairline rule, so a 1000+
   word page reads as distinct sections instead of one wall. */
.entry-content > h2 {
  margin-top: 2.75rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--line);
  scroll-margin-top: 5rem;
}
.entry-content > h2:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}
.entry-content > h3 {
  margin-top: 2rem;
  scroll-margin-top: 5rem;
}
/* Lead paragraph — the first paragraph after the H1 reads
   slightly larger, like an intro standfirst. */
.entry-content > p:first-of-type {
  font-size: 1.15rem;
  line-height: 1.7;
  color: var(--ink-soft);
}
/* Tangerine list markers inside long-form content. */
.entry-content ul li::marker { color: var(--accent-text); font-weight: 700; }
.entry-content ol li::marker { color: var(--accent-text); font-weight: 700; }

/* Images — one hero image, one per major section, rounded,
   shadowed, centred, with room for a caption.
   2.3.1: content images are capped at 520px tall. Root cause:
   3 of the 4 Pexels photos are PORTRAIT 1600x2400 (ratio 0.67),
   and with only max-width: 100% + height: auto they rendered
   ~1100px+ tall at full content width and looked very long.
   The cap keeps the natural aspect ratio (width/height auto,
   object-fit: contain — nothing stretched, nothing cropped):
   a 1600x2400 portrait renders ~347px wide x 520px tall,
   centred. Landscape images (1920x1280) are essentially
   unchanged: at ~760px content width they render ~507px tall,
   already under the cap. */
.entry-content figure { margin: 2.25rem auto; text-align: center; }
.entry-content figure img,
.entry-content .wp-block-image img {
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  display: block;
  margin-left: auto;
  margin-right: auto;
  max-width: 100%;
  max-height: 520px;
  width: auto;
  height: auto;
  object-fit: contain;
}
/* Same cap for any other image inside page/post content, so a
   portrait photo inserted outside a figure block cannot run
   long either. Display block + auto margins keep it centred;
   inline images in running text are not used on this site. */
.entry-content img {
  max-width: 100%;
  max-height: 520px;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
  margin-left: auto;
  margin-right: auto;
}
.entry-content figcaption,
.wp-block-image figcaption {
  font-size: .9rem;
  color: var(--ink-muted);
  margin-top: .65em;
  text-align: center;
}

/* FAQ blocks — question as a strong heading, answer below.
   Use a Group block with class "faq", each Q&A a Group with
   class "faq__item", the question a Heading with class
   "faq__question" and the answer a Paragraph with class
   "faq__answer" (see the FAQ block pattern). Native <details>
   elements get the same card treatment. */
.faq { margin: 2rem 0; }
.faq__item,
.entry-content details {
  background: var(--offwhite);
  border: 1px solid var(--line);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius-sm);
  padding: 1.25rem 1.4rem;
  margin-bottom: 1rem;
}
.faq__question {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.1rem;
  line-height: 1.35;
  color: var(--ink);
  margin: 0 0 .4em;
}
.faq__answer { margin: 0; color: var(--ink-soft); }
.entry-content details summary {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--ink);
  cursor: pointer;
}
.entry-content details[open ] summary { margin-bottom: .5em; }
.entry-content details p:last-child { margin-bottom: 0; }

/* Six-feature grid — "why this agency is better" blocks.
   Use a Group block with class "feature-grid"; each feature a
   Group with class "feature-card" containing a dot span
   ("feature-card__dot"), an H3 and a paragraph. Same radius,
   shadow and tangerine top accent as .card, same hover lift. */
.feature-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  margin: 2rem 0;
  perspective: 1000px;
}
.feature-card {
  background: var(--offwhite);
  border: 1px solid var(--line);
  border-top: 3px solid var(--accent);
  border-radius: var(--radius);
  padding: 1.4rem;
  transform-style: preserve-3d;
  transition: transform .45s var(--ease), box-shadow .45s var(--ease), border-color .45s var(--ease);
  will-change: transform;
}
.feature-card:hover, .feature-card:focus-within {
  transform: translateY(-4px) rotateX(2deg);
  box-shadow: var(--shadow-md);
  border-color: var(--accent);
}
.feature-card__dot {
  display: block;
  width: .85rem; height: .85rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-glow));
  box-shadow: 0 0 0 4px var(--accent-soft);
  margin-bottom: .9rem;
}
.feature-card h3 { margin-top: 0; margin-bottom: .4em; }
.feature-card p { color: var(--ink-soft); margin-bottom: 0; }

/* Final CTA band — deep plum gradient, white text, centred.
   Use a Group block with class "cta-band" as the last block of
   a service page (see the CTA Band block pattern). Buttons
   inside invert to white-on-tangerine. */
/* 2.3.0: deep plum #1A0B22 with warm-paper text and
   tangerine accents. Buttons are vivid tangerine with ink text. */
.cta-band {
  background: #1A0B22;
  border-top: 3px solid var(--accent);
  color: var(--paper);
  border-radius: var(--radius);
  padding: 2.5rem 2rem;
  margin: 3rem 0 1rem;
  text-align: center;
}
.cta-band h2, .cta-band h3 { color: var(--white); margin-bottom: .5em; }
.cta-band p { color: var(--ink-muted-dark); max-width: 44rem; margin-left: auto; margin-right: auto; }
.cta-band .button,
.cta-band .wp-block-button__link {
  background: var(--accent);
  color: var(--ink);
  border-color: var(--accent);
}
.cta-band .button:hover, .cta-band .button:focus,
.cta-band .wp-block-button__link:hover {
  background: var(--paper);
  color: var(--ink);
}
.cta-band .button--ghost,
.cta-band .wp-block-button.is-style-outline .wp-block-button__link {
  background: transparent;
  color: var(--paper);
  border-color: var(--paper);
}
.cta-band .button--ghost:hover,
.cta-band .wp-block-button.is-style-outline .wp-block-button__link:hover {
  background: var(--paper);
  color: var(--ink);
}

/* Pricing */
.pricing { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.price-card { background: var(--offwhite); border: 1px solid var(--line); border-top: 3px solid var(--accent); border-radius: var(--radius); padding: 1.5rem; }
.price-card--featured { border: 2px solid var(--accent); }
.price-card__name { font-weight: 800; font-size: 1.1rem; margin: 0 0 .25em; }
.price-card__price { font-size: 2rem; font-weight: 800; margin: 0 0 .5em; }
.price-card__price span { font-size: .9rem; font-weight: 500; color: var(--ink-muted); }
.price-card ul { list-style: disc; }

/* Entry / post */
.entry-header { margin-bottom: 1.5rem; }
.entry-meta { color: var(--ink-muted); font-size: .9rem; margin: 0 0 1rem; }
.entry-meta a { color: var(--ink-muted); }
.entry-content > *:first-child { margin-top: 0; }
.entry-content a { overflow-wrap: anywhere; }
.post-thumbnail { margin: 0 0 1.5rem; }
.post-thumbnail img { border-radius: var(--radius); display: block; }
.entry-footer { border-top: 1px solid var(--line); margin-top: 2rem; padding-top: 1rem; color: var(--ink-muted); font-size: .9rem; }
.post-navigation { display: flex; justify-content: space-between; gap: 1rem; margin-top: 2rem; }
.post-navigation a { font-weight: 650; }

/* Founder / author */
.founder {
  display: flex; gap: 1.25rem; align-items: flex-start;
  background: var(--offwhite); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.5rem; margin: 2rem 0;
}
.founder__avatar { width: 72px; height: 72px; border-radius: 50%; background: var(--paper-2); display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 1.4rem; color: var(--accent-text); flex: none; overflow: hidden; }
.founder__avatar img { width: 100%; height: 100%; object-fit: cover; }

/* Testimonial — rendered ONLY when real testimonial data is passed in.
   The theme ships no hardcoded testimonials. */
.testimonial {
  background: var(--offwhite); border: 1px solid var(--line); border-left: 4px solid var(--accent);
  border-radius: var(--radius-sm); padding: 1.25rem 1.4rem; margin: 1.5rem 0;
}
.testimonial blockquote { background: none; border: 0; padding: 0; margin: 0 0 .75em; color: var(--ink); }
.testimonial__cite { color: var(--ink-muted); font-size: .92rem; }

/* Case study */
.case-study {
  background: #1A0B22; color: var(--paper);
  border-radius: var(--radius); padding: 1.75rem; margin: 2rem 0;
}
.case-study h2, .case-study h3 { color: var(--white); }
.case-study p { color: var(--ink-muted-dark); }
.case-study__metrics { display: flex; flex-wrap: wrap; gap: 1.5rem; margin: 1.25rem 0; }
.case-study__metric strong { display: block; font-size: 1.5rem; color: var(--white); }
.case-study__metric span { font-size: .9rem; color: var(--ink-muted-dark); }

/* Archive / search */
.archive-title { margin-bottom: .25em; }
.archive-description { color: var(--ink-muted); max-width: var(--max-narrow); }
.post-list { list-style: none; margin: 0; padding: 0; }
.post-list li { border-bottom: 1px solid var(--line); padding: 1.25rem 0; }
.post-list h2 { font-size: 1.4rem; margin-bottom: .25em; }
.post-list h2 a { color: var(--ink); text-decoration: none; }
.post-list h2 a:hover { color: var(--accent-text); }
.pagination { margin-top: 2rem; display: flex; gap: .5rem; flex-wrap: wrap; }
.pagination a, .pagination span { padding: .45em .8em; border: 1px solid var(--line); border-radius: var(--radius-sm); text-decoration: none; color: var(--ink); background: var(--offwhite); }
.pagination .current { background: var(--ink); color: var(--paper); border-color: var(--ink); }

/* Search form */
.search-form { display: flex; gap: .5rem; max-width: 420px; }
.search-form label { flex: 1; }
.search-form input[type="search"] { width: 100%; }

/* Forms */
input[type="text"], input[type="email"], input[type="url"], input[type="search"], input[type="tel"], textarea, select {
  font: inherit; padding: .6em .75em; border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm); background: var(--white); color: var(--ink); width: 100%;
}
button, input[type="submit"] {
  font: inherit; font-weight: 700; background: var(--accent); color: var(--ink);
  border: 1px solid var(--accent); border-radius: var(--radius-sm); padding: .6em 1.2em; cursor: pointer;
}
button:hover, input[type="submit"]:hover { background: var(--accent-dark); color: var(--white); }

/* Comments */
.comments-area { margin-top: 2.5rem; border-top: 1px solid var(--line); padding-top: 1.5rem; }
.comment-list { list-style: none; padding: 0; }
.comment { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 1rem; margin-bottom: 1rem; background: var(--offwhite); }

/* Sidebar / widgets */
.site-content { display: grid; gap: 2.5rem; grid-template-columns: 1fr; }
.site-content--with-sidebar { grid-template-columns: minmax(0, 1fr) 300px; }
.widget-area .widget { background: var(--offwhite); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.25rem; margin-bottom: 1.25rem; }
.widget-area .widget-title { font-size: 1.05rem; }

/* Footer */
/* 2.3.0: near-black #1A0B22, warm-paper text, tangerine accents — deep-plum dark sections. */
.site-footer { background: #1A0B22; color: var(--ink-muted-dark); padding: 2.5rem 0 1.5rem; margin-top: 1rem; }
.site-footer a { color: var(--paper); }
.site-footer a:hover { color: var(--accent); }
.site-footer h2, .site-footer h3 { color: var(--white); }
.site-footer__grid { display: grid; gap: 2rem; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); margin-bottom: 2rem; }
.footer-menu { list-style: none; margin: 0; padding: 0; }
.footer-menu li { margin-bottom: .4em; }
.site-footer__bottom { border-top: 1px solid #3D1E4D; padding-top: 1.25rem; display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; font-size: .9rem; }

/* Block editor alignment */
.alignwide { max-width: var(--max); margin-left: auto; margin-right: auto; }
.alignfull { max-width: none; }
.wp-block-group.has-background { padding: 1.5rem; }

/* Responsive */
@media (max-width: 860px) {
  .site-content--with-sidebar { grid-template-columns: 1fr; }
  .menu-toggle { display: inline-block; }
  .primary-nav { display: none; width: 100%; }
  .primary-nav.toggled { display: block; }
  .site-header__inner { flex-wrap: wrap; }
  .primary-menu { flex-direction: column; }
  /* 2.4.1: submenus in the toggled column menu — indented under
     their parent with a tangerine left border, no absolute
     positioning, hidden until the parent is toggled open
     (.submenu-open). The desktop opacity/visibility hide is
     neutralised here so display alone controls visibility. */
  .primary-menu .sub-menu {
    position: static; min-width: 0;
    opacity: 1; visibility: visible; transform: none;
    box-shadow: none; border-top: 0;
    border-left: 3px solid var(--accent);
    border-radius: 0;
    margin: .25rem 0 .25rem .75em; padding: .25rem 0;
    background: transparent;
    display: none;
  }
  .primary-menu .menu-item-has-children.submenu-open > .sub-menu { display: block; }
  .founder { flex-direction: column; }
  .hero__inner { grid-template-columns: 1fr; gap: 2rem; }
  .hero__scene { min-height: 19rem; }
  .hero-card--1 { left: 0; }
  .hero-card--3 { left: 8%; }
  /* 2.4.0: process cards go 2-up, lead band stacks. */
  .process__steps { grid-template-columns: repeat(2, 1fr); }
  .lead-band__inner { grid-template-columns: 1fr; gap: 1.75rem; }
}

@media (max-width: 640px) {
  /* 2.3.1: lower content-image cap on small screens, so a
     portrait photo still cannot dominate a phone viewport. */
  .entry-content figure img,
  .entry-content .wp-block-image img,
  .entry-content img { max-height: 420px; }
  /* 2.4.0: process cards go 1-up and the connecting line is
     hidden — a horizontal line makes no sense in a vertical stack. */
  .process__steps { grid-template-columns: 1fr; }
  .process__steps::before { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    transition-delay: 0s !important;
  }
  /* Reveal content must be visible with no animation.
     2.1.0: scoped to html.js too, so it still beats the
     html.js .reveal hiding rule above. */
  html.js .reveal, .reveal { opacity: 1; transform: none; }
  /* 2.2.0: faded-out sections and fading images are also forced
     fully visible — no fade in, no fade out, no hero load fade. */
  html.js .reveal.reveal--visible.is-out { opacity: 1; transform: none; }
  html.js .entry-content img.img-fade { opacity: 1; transition: none; }
  .hero-card { animation: none; }
  .hero__wave svg, .marquee__track { animation: none; }
  .hero__tilt { transition: none; }
  .hero__eyebrow, .hero__title, .hero__excerpt, .hero__actions,
  .hero__orb, .hero__ring, .hero::before, .hero::after { animation: none; }
  /* 2.4.0: the process line is fully drawn, the numbered
     circles are shown at full size, and the FAQ chevron does
     not animate — everything is static and visible. */
  .process__steps::before { transform: scaleX(1); transition: none; }
  .process__num { transform: scale(1); opacity: 1; transition: none; }
  .faq-accordion__panel, .faq-accordion__chevron { transition: none; }
}
