/*
Theme Name: My PPC Expert
Theme URI: https://myppcexpert.com
Author: New Lead Consulting
Author URI: https://myppcexpert.com
Description: Custom one-page theme for My PPC Expert, a freelance Google Ads expert. Zero plugins. Blog posts loop from the database and open in an in-page overlay. Services, plans, testimonials, and FAQs are editable as lists in wp-admin; all other copy lives in the Customizer. The $200 audit buttons open an inline Google Calendar booking embed.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: myppcexpert
*/

/* ═══════════════════════════════════════════════════════════
   DESIGN TOKENS
   Every colour is a variable. The palette pass swaps only
   the values below, nothing else in the file changes.
   ═══════════════════════════════════════════════════════════ */
:root {
  /* Base */
  --bg:           #0A0809;
  --bg-raised:    #110E10;
  --bg-card:      #141113;
  --bg-hover:     #1A1619;

  /* Primary accent (muted coral). Palette switcher overrides --accent; shades derive from it. */
  --accent:       #E2857A;
  --accent-deep:  color-mix(in srgb, var(--accent) 84%, #000);
  --on-accent:    #17100F;  /* text sitting on top of the accent */
  --accent-tint:  color-mix(in srgb, var(--accent) 10%, transparent);
  --accent-line:  color-mix(in srgb, var(--accent) 30%, transparent);
  --accent-glow:  color-mix(in srgb, var(--accent) 16%, transparent);

  /* Second accent: apricot (locked). Shades derive from it. */
  --accent2:      #EAB27C;
  --accent2-deep: color-mix(in srgb, var(--accent2) 82%, #000);
  --accent2-tint: color-mix(in srgb, var(--accent2) 12%, transparent);
  --accent2-line: color-mix(in srgb, var(--accent2) 34%, transparent);

  /* Type */
  --text:         #F5F1F2;
  --text-soft:    #B5AAAD;
  --text-mute:    #7C7175;
  --text-faint:   #514A4D;

  /* Lines */
  --line:         rgba(255, 255, 255, 0.07);
  --line-strong:  rgba(255, 255, 255, 0.13);

  /* Fonts */
  --serif: 'Fraunces', Georgia, serif;
  --sans:  'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Rhythm */
  --pad:    clamp(20px, 5vw, 40px);
  --gutter: 1100px;
  --radius: 14px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px; /* clears the sticky nav on anchor jumps */
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-weight: 400;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img, svg { max-width: 100%; display: block; }

.wrap {
  width: 100%;
  max-width: var(--gutter);
  margin: 0 auto;
  padding-left: var(--pad);
  padding-right: var(--pad);
}

section { padding: clamp(72px, 10vw, 120px) 0; }

/* ── Shared type ───────────────────────────────────────── */
.eyebrow {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: "";
  width: 24px;
  height: 1px;
  background: var(--accent-line);
}

h2.title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(30px, 4.4vw, 46px);
  line-height: 1.15;
  letter-spacing: -0.015em;
  margin-bottom: 18px;
}
h2.title em { font-style: italic; color: var(--accent); }

.lede {
  color: var(--text-soft);
  font-size: 17px;
  max-width: 620px;
  font-weight: 300;
}

.section-head { margin-bottom: clamp(40px, 5vw, 60px); }

/* ── Buttons ───────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.01em;
  padding: 14px 26px;
  border-radius: 100px;
  border: 1px solid transparent;
  transition: transform .25s ease, background .25s ease, border-color .25s ease, color .25s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--accent2);
  color: var(--on-accent);
  font-weight: 600;
}
.btn-primary:hover {
  background: var(--accent2-deep);
  transform: translateY(-2px);
}
.btn-ghost {
  border-color: var(--line-strong);
  color: var(--text);
  background: transparent;
}
.btn-ghost:hover {
  border-color: var(--accent2-line);
  color: var(--accent2);
  background: var(--accent2-tint);
}
.btn-lg { padding: 17px 34px; font-size: 15px; }

/* ═══════════════════════════════════════════════════════════
   1. NAV  (sticky, anchor links, zero JS)
   ═══════════════════════════════════════════════════════════ */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 8, 9, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 72px;
}
.logo {
  font-family: var(--serif);
  font-size: 23px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.logo span { color: var(--accent); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
  list-style: none;
}
.nav-links a {
  font-size: 14px;
  color: var(--text-soft);
  font-weight: 400;
  transition: color .2s ease;
  position: relative;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -5px;
  width: 0; height: 1px;
  background: var(--accent);
  transition: width .25s ease;
}
.nav-links a:hover { color: var(--text); }
.nav-links a:hover::after { width: 100%; }

/* ═══════════════════════════════════════════════════════════
   2. HERO
   ═══════════════════════════════════════════════════════════ */
.hero {
  padding-top: clamp(60px, 8vw, 92px);
  padding-bottom: clamp(60px, 8vw, 92px);
  position: relative;
  overflow: hidden;
}
.hero::before { /* soft accent bloom, top-left */
  content: "";
  position: absolute;
  top: -260px; left: -180px;
  width: 620px; height: 620px;
  background: radial-gradient(circle, var(--accent-glow) 0%, transparent 66%);
  pointer-events: none;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(40px, 6vw, 72px);
  align-items: center;
  position: relative;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 12px;
  color: var(--accent2);
  border: 1px solid var(--line-strong);
  background: var(--bg-raised);
  padding: 7px 15px;
  border-radius: 100px;
  margin-bottom: 26px;
}
.dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent2);
}
h1 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(38px, 6vw, 66px);
  line-height: 1.06;
  letter-spacing: -0.025em;
  margin-bottom: 24px;
}
h1 em {
  font-style: italic;
  color: var(--accent);
}
.hero p.lede { font-size: 18px; margin-bottom: 34px; }
.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 26px;
}
.hero-note {
  font-size: 13px;
  color: var(--text-mute);
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
}
.hero-note span { display: flex; align-items: center; gap: 6px; }
.hero-note span::before { content: "·"; color: var(--accent); }
.hero-note span:first-child::before { display: none; }

/* Sketch illustration placeholder */
.sketch {
  padding: 30px 24px 20px;
  text-align: center;
}
.sketch svg { margin: 0 auto; width: 100%; max-width: 360px; height: auto; }
.sketch-cap {
  margin-top: 16px;
  font-size: 11px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--text-faint);
}

/* ═══════════════════════════════════════════════════════════
   3. STATS STRIP
   ═══════════════════════════════════════════════════════════ */
.stats {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--bg-raised);
  padding: 0;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.stat {
  padding: 40px 26px;
  text-align: center;
  border-right: 1px solid var(--line);
}
.stat:last-child { border-right: none; }
.stat-n {
  font-family: var(--serif);
  font-size: clamp(30px, 3.6vw, 42px);
  font-weight: 600;
  color: var(--accent);
  line-height: 1;
  letter-spacing: -0.02em;
}
.stat-l {
  margin-top: 10px;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-mute);
}

/* ═══════════════════════════════════════════════════════════
   4. SERVICES
   ═══════════════════════════════════════════════════════════ */
.cards-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 26px;
  transition: border-color .3s ease, background .3s ease, transform .3s ease;
}
.card:hover {
  border-color: var(--accent2-line);
  background: var(--bg-hover);
  transform: translateY(-3px);
}
.card-n {
  font-family: var(--serif);
  font-size: 13px;
  color: var(--accent2);
  letter-spacing: 0.1em;
  margin-bottom: 16px;
}
.card h3 {
  font-family: var(--serif);
  font-size: 21px;
  font-weight: 500;
  letter-spacing: -0.01em;
  margin-bottom: 11px;
}
.card p {
  font-size: 14.5px;
  color: var(--text-soft);
  font-weight: 300;
  line-height: 1.6;
}
.tag {
  display: inline-block;
  margin-top: 18px;
  font-size: 10.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent2);
  background: var(--accent2-tint);
  border: 1px solid var(--accent2-line);
  padding: 4px 11px;
  border-radius: 100px;
}

/* ═══════════════════════════════════════════════════════════
   5. PRICING
   ═══════════════════════════════════════════════════════════ */
.pricing { background: var(--bg-raised); }

/* Featured $200 audit */
.audit {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 40px;
  align-items: center;
  background: var(--bg);
  border: 1px solid var(--accent2-line);
  border-radius: var(--radius);
  padding: clamp(28px, 4vw, 44px);
  margin-bottom: 20px;
  position: relative;
  overflow: hidden;
}
.audit::before {
  content: "";
  position: absolute;
  top: -140px; right: -100px;
  width: 380px; height: 380px;
  background: radial-gradient(circle, var(--accent-glow) 0%, transparent 68%);
  pointer-events: none;
}
.audit-body { position: relative; }
.audit h3 {
  font-family: var(--serif);
  font-size: clamp(26px, 3.4vw, 34px);
  font-weight: 500;
  letter-spacing: -0.015em;
  margin-bottom: 12px;
}
.audit > .audit-body > p {
  color: var(--text-soft);
  font-size: 15.5px;
  font-weight: 300;
  margin-bottom: 20px;
  max-width: 520px;
}
.check {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px 22px;
}
.check li {
  font-size: 14px;
  color: var(--text-soft);
  font-weight: 300;
  display: flex;
  gap: 9px;
  align-items: flex-start;
}
.check li::before {
  content: "✓";
  color: var(--accent2);
  font-size: 12px;
  line-height: 1.7;
  flex-shrink: 0;
}
.audit-price {
  text-align: center;
  position: relative;
  padding-left: 40px;
  border-left: 1px solid var(--line);
  min-width: 220px;
}
.audit-price .amt {
  font-family: var(--serif);
  font-size: 58px;
  font-weight: 600;
  color: var(--accent2);
  line-height: 1;
  letter-spacing: -0.03em;
}
.audit-price .per {
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-mute);
  margin: 10px 0 20px;
}

/* Monthly plans */
.plans {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.plan {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 26px;
  display: flex;
  flex-direction: column;
  transition: border-color .3s ease, transform .3s ease;
}
.plan:hover { border-color: var(--accent2-line); transform: translateY(-3px); }
.plan h4 {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 500;
  margin-bottom: 6px;
}
.plan .who {
  font-size: 13px;
  color: var(--text-mute);
  font-weight: 300;
  margin-bottom: 20px;
  min-height: 38px;
}
.plan .amt {
  font-family: var(--serif);
  font-size: 34px;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 2px;
}
.plan .amt small {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 400;
  color: var(--text-mute);
  letter-spacing: 0;
}
.plan .from {
  font-size: 11px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 22px;
}
.plan ul {
  list-style: none;
  display: grid;
  gap: 9px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  margin-bottom: 24px;
  flex: 1;
}
.plan li {
  font-size: 13.5px;
  color: var(--text-soft);
  font-weight: 300;
  display: flex;
  gap: 9px;
  align-items: flex-start;
}
.plan li::before {
  content: "–";
  color: var(--accent2);
  flex-shrink: 0;
  font-size: 11px;
  line-height: 1.8;
}
.plan .btn { width: 100%; }

.fine {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-top: 20px;
}
.fine-box {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 26px;
  background: var(--bg-card);
}
.fine-box h5 {
  font-family: var(--serif);
  font-size: 16px;
  font-weight: 500;
  margin-bottom: 12px;
}
.fine-box ul { list-style: none; display: grid; gap: 7px; }
.fine-box li {
  font-size: 13.5px;
  color: var(--text-soft);
  font-weight: 300;
  display: flex;
  gap: 9px;
}
.fine-box li::before { content: "·"; color: var(--accent); }

/* ═══════════════════════════════════════════════════════════
   6. ABOUT
   ═══════════════════════════════════════════════════════════ */
.about-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(40px, 6vw, 72px);
  align-items: center;
}
.about-copy p {
  color: var(--text-soft);
  font-weight: 300;
  font-size: 16px;
  margin-bottom: 16px;
}
.about-copy p strong { color: var(--text); font-weight: 500; }
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 26px;
}
.tags span {
  font-size: 12px;
  color: var(--text-soft);
  border: 1px solid var(--line-strong);
  background: var(--bg-raised);
  padding: 6px 13px;
  border-radius: 100px;
  font-weight: 300;
}
.creds {
  display: grid;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.cred {
  background: var(--bg-card);
  padding: 22px 24px;
}
.cred h4 {
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 500;
  color: var(--accent2);
  margin-bottom: 5px;
}
.cred p {
  font-size: 13.5px;
  color: var(--text-soft);
  font-weight: 300;
  line-height: 1.55;
}

/* ═══════════════════════════════════════════════════════════
   7. TESTIMONIALS
   ═══════════════════════════════════════════════════════════ */
.quotes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.quote {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  transition: border-color .3s ease;
}
.quote:hover { border-color: var(--accent2-line); }
.quote .mark {
  font-family: var(--serif);
  font-size: 46px;
  line-height: 0.6;
  color: var(--accent2);
  opacity: 0.5;
  margin-bottom: 18px;
}
.quote p {
  font-size: 15px;
  color: var(--text-soft);
  font-weight: 300;
  line-height: 1.7;
  flex: 1;
  margin-bottom: 24px;
}
.who-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
.avi {
  width: 38px; height: 38px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--accent2-tint);
  border: 1px solid var(--accent2-line);
  color: var(--accent2);
  font-size: 12px;
  font-weight: 600;
  flex-shrink: 0;
}
.who-row .n { font-size: 14px; font-weight: 500; }
.who-row .r { font-size: 12.5px; color: var(--text-mute); font-weight: 300; }

/* ═══════════════════════════════════════════════════════════
   8. BLOG  (CSS :target overlays, zero JS)
   ═══════════════════════════════════════════════════════════ */
.blog { background: var(--bg-raised); }
.posts {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}
.post {
  display: block;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 28px;
  transition: border-color .3s ease, transform .3s ease, background .3s ease;
}
.post:hover {
  border-color: var(--accent2-line);
  background: var(--bg-hover);
  transform: translateY(-3px);
}
.post .meta {
  font-size: 11px;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--accent2);
  margin-bottom: 14px;
}
.post h3 {
  font-family: var(--serif);
  font-size: 21px;
  font-weight: 500;
  line-height: 1.28;
  letter-spacing: -0.01em;
  margin-bottom: 12px;
}
.post p {
  font-size: 14.5px;
  color: var(--text-soft);
  font-weight: 300;
  line-height: 1.6;
  margin-bottom: 18px;
}
.post .more {
  font-size: 13px;
  color: var(--accent2);
  font-weight: 500;
  display: inline-flex;
  gap: 7px;
  align-items: center;
}

/* Overlay: hidden until its id is the :target */
.overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(6, 5, 5, 0.86);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: none;
  padding: 24px;
  overflow-y: auto;
}
.overlay:target { display: block; }

.overlay-scrim { /* click anywhere outside to close */
  position: fixed;
  inset: 0;
  cursor: default;
}
.overlay-card {
  position: relative;
  max-width: 720px;
  margin: 40px auto;
  background: var(--bg-card);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  padding: clamp(30px, 5vw, 52px);
}
.overlay-close {
  position: absolute;
  top: 18px; right: 18px;
  width: 34px; height: 34px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  color: var(--text-soft);
  display: grid;
  place-items: center;
  font-size: 16px;
  background: var(--bg);
  transition: color .2s ease, border-color .2s ease;
}
.overlay-close:hover { color: var(--accent2); border-color: var(--accent2-line); }

.overlay-card .meta {
  font-size: 11px;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--accent2);
  margin-bottom: 14px;
}
.overlay-card h2 {
  font-family: var(--serif);
  font-size: clamp(24px, 3.4vw, 33px);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.015em;
  margin-bottom: 26px;
  padding-right: 40px;
}
.article p {
  font-size: 15.5px;
  color: var(--text-soft);
  font-weight: 300;
  line-height: 1.75;
  margin-bottom: 15px;
}
.article h4 {
  font-family: var(--serif);
  font-size: 19px;
  font-weight: 500;
  color: var(--text);
  margin: 30px 0 12px;
}
.article ul {
  list-style: none;
  display: grid;
  gap: 8px;
  margin: 0 0 18px;
}
.article li {
  font-size: 15px;
  color: var(--text-soft);
  font-weight: 300;
  display: flex;
  gap: 10px;
  line-height: 1.65;
}
.article li::before { content: "–"; color: var(--accent2); flex-shrink: 0; }
.article .pull {
  border-left: 2px solid var(--accent2);
  padding: 4px 0 4px 18px;
  margin: 22px 0;
  font-family: var(--serif);
  font-size: 18px;
  font-style: italic;
  color: var(--text);
}
.overlay-foot {
  margin-top: 34px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
}
.overlay-foot p { font-size: 13.5px; color: var(--text-mute); font-weight: 300; }
.post-hero { margin: 0 0 24px; border: 1px solid var(--line-strong); border-radius: var(--radius); background: var(--bg-raised); }
.post-hero svg { display: block; width: 100%; height: auto; max-height: 168px; color: var(--accent); padding: 14px 18px; }

/* ═══════════════════════════════════════════════════════════
   9. FAQ  (native details/summary, zero JS)
   ═══════════════════════════════════════════════════════════ */
.faq-list {
  display: grid;
  gap: 10px;
  max-width: 820px;
}
details {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  transition: border-color .25s ease;
}
details[open] { border-color: var(--accent-line); }
summary {
  list-style: none;
  cursor: pointer;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  font-size: 15.5px;
  font-weight: 400;
  color: var(--text);
  transition: color .2s ease;
}
summary::-webkit-details-marker { display: none; }
summary:hover { color: var(--accent); }
summary::after {
  content: "+";
  font-size: 19px;
  color: var(--accent);
  flex-shrink: 0;
  line-height: 1;
  transition: transform .25s ease;
}
details[open] summary::after { content: "−"; }
details p {
  padding: 0 24px 22px;
  font-size: 14.5px;
  color: var(--text-soft);
  font-weight: 300;
  line-height: 1.7;
  max-width: 90%;
}

/* ═══════════════════════════════════════════════════════════
   10. CTA BAND + CONTACT
   ═══════════════════════════════════════════════════════════ */
.cta-band {
  background: var(--bg-raised);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  position: relative;
  overflow: hidden;
  text-align: center;
}
.cta-band::before {
  content: "";
  position: absolute;
  bottom: -280px; left: 50%;
  transform: translateX(-50%);
  width: 720px; height: 560px;
  background: radial-gradient(circle, var(--accent-glow) 0%, transparent 66%);
  pointer-events: none;
}
.cta-inner { position: relative; max-width: 660px; margin: 0 auto; }
.cta-band h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(30px, 4.6vw, 48px);
  line-height: 1.13;
  letter-spacing: -0.02em;
  margin-bottom: 18px;
}
.cta-band h2 em { font-style: italic; color: var(--accent); }
.cta-band p {
  color: var(--text-soft);
  font-weight: 300;
  font-size: 17px;
  margin-bottom: 32px;
}
.cta-btns {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 34px;
}
.contact-row {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
  padding-top: 30px;
  border-top: 1px solid var(--line);
}
.contact-item { text-align: center; }
.contact-item .k {
  font-size: 11px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 7px;
}
.contact-item .v {
  font-size: 15px;
  color: var(--text);
  transition: color .2s ease;
}
a.contact-item:hover .v { color: var(--accent); }

/* ═══════════════════════════════════════════════════════════
   11. FOOTER
   ═══════════════════════════════════════════════════════════ */
footer { padding: 44px 0; }
.foot-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.foot-links {
  display: flex;
  gap: 26px;
  list-style: none;
}
.foot-links a {
  font-size: 13.5px;
  color: var(--text-mute);
  transition: color .2s ease;
}
.foot-links a:hover { color: var(--accent); }
.copy { font-size: 13px; color: var(--text-faint); }

/* ═══════════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════════ */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; }
  .sketch { max-width: 340px; margin: 0 auto; }
  .about-grid { grid-template-columns: 1fr; }
  .cards-3, .plans, .quotes { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2) { border-right: none; }
  .stat:nth-child(1), .stat:nth-child(2) { border-bottom: 1px solid var(--line); }
  .audit { grid-template-columns: 1fr; gap: 28px; }
  .audit-price {
    padding-left: 0;
    padding-top: 26px;
    border-left: none;
    border-top: 1px solid var(--line);
  }
}

@media (max-width: 760px) {
  /* Zero-JS mobile nav: links drop, logo + audit CTA stay */
  .nav-links { display: none; }
  .nav-inner { height: 64px; }
  html { scroll-padding-top: 78px; }
  .cards-3, .plans, .quotes, .posts, .fine { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr; }
  .stat { border-right: none; border-bottom: 1px solid var(--line); }
  .stat:last-child { border-bottom: none; }
  .check { grid-template-columns: 1fr; }
  .contact-row { gap: 26px; }
  .btn { width: 100%; }
  .hero-cta .btn, .cta-btns .btn { width: 100%; }
  .foot-inner { flex-direction: column; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}


/* ═══════════════════════════════════════════════════════════
   WORDPRESS ADDITIONS  (not in the static mockup)
   Everything below adapts the mockup to real WP output:
   admin-bar offset, accessibility helpers, real post content
   inside the overlay/article, and the standalone single-post page.
   ═══════════════════════════════════════════════════════════ */

/* Logged-in admin bar pushes the sticky nav down so it isn't hidden. */
.admin-bar .nav { top: 32px; }
@media screen and (max-width: 782px) {
  .admin-bar .nav { top: 46px; }
}

/* Accessibility: visually-hidden text (skip links, labels). */
.screen-reader-text {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px; width: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  position: absolute !important;
  word-wrap: normal !important;
}
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 300;
  background: var(--accent2);
  color: var(--on-accent);
  padding: 10px 18px;
  border-radius: 0 0 8px 0;
  font-size: 14px;
  font-weight: 600;
}
.skip-link:focus { left: 0; }

/* Keyboard focus ring, apricot to match the system. */
a:focus-visible, button:focus-visible, summary:focus-visible,
.btn:focus-visible, input:focus-visible {
  outline: 2px solid var(--accent2);
  outline-offset: 3px;
}

/* ── Real post content inside the overlay + single page ──────
   The mockup hand-authored .article markup. Real posts from the
   editor emit h2/h3, blockquote, ol, figures, links, etc. These
   rules make WP output match the mockup's article styling.       */
.article h2,
.article h3 {
  font-family: var(--serif);
  font-weight: 500;
  color: var(--text);
  letter-spacing: -0.01em;
  line-height: 1.25;
  margin: 32px 0 12px;
}
.article h2 { font-size: 23px; }
.article h3 { font-size: 20px; }
.article h5, .article h6 {
  font-family: var(--serif);
  font-weight: 500;
  color: var(--text);
  font-size: 16px;
  margin: 26px 0 10px;
}
.article ol {
  list-style: none;
  counter-reset: art;
  display: grid;
  gap: 8px;
  margin: 0 0 18px;
}
.article ol li {
  counter-increment: art;
  font-size: 15px;
  color: var(--text-soft);
  font-weight: 300;
  display: flex;
  gap: 10px;
  line-height: 1.65;
}
.article ol li::before {
  content: counter(art);
  color: var(--accent2);
  font-family: var(--serif);
  font-weight: 600;
  flex-shrink: 0;
}
.article a {
  color: var(--accent2);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: var(--accent2-line);
  transition: text-decoration-color .2s ease;
}
.article a:hover { text-decoration-color: var(--accent2); }
.article strong { color: var(--text); font-weight: 600; }
.article em { font-style: italic; }
.article blockquote {
  border-left: 2px solid var(--accent2);
  padding: 4px 0 4px 18px;
  margin: 22px 0;
  font-family: var(--serif);
  font-size: 18px;
  font-style: italic;
  color: var(--text);
}
.article blockquote p { margin: 0; font-size: inherit; }
.article img,
.article figure { margin: 22px 0; border-radius: var(--radius); }
.article figure img { margin: 0; }
.article figcaption {
  margin-top: 8px;
  font-size: 12.5px;
  color: var(--text-mute);
  text-align: center;
}
.article > *:first-child { margin-top: 0; }
.aligncenter { margin-left: auto; margin-right: auto; }

/* ── Standalone single-post page (direct URL / SEO / sharing) ──
   Front-page blog cards open the overlay; a shared or indexed
   post URL lands here instead. Reuses the article + card look.  */
.single-post-main { padding: clamp(48px, 7vw, 90px) 0 clamp(64px, 9vw, 110px); }
.single-wrap { max-width: 760px; }
.single-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-mute);
  margin-bottom: 26px;
  transition: color .2s ease;
}
.single-back:hover { color: var(--accent2); }
.single-post-main .meta {
  font-size: 11px;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--accent2);
  margin-bottom: 14px;
}
.single-post-main h1.post-title {
  font-family: var(--serif);
  font-size: clamp(28px, 4.4vw, 44px);
  font-weight: 500;
  line-height: 1.14;
  letter-spacing: -0.02em;
  margin-bottom: 18px;
}
.single-post-main .post-date {
  font-size: 13px;
  color: var(--text-mute);
  margin-bottom: 30px;
}
.single-post-main .post-hero { margin: 0 0 30px; max-height: 320px; overflow: hidden; }
.single-post-main .post-hero img { width: 100%; height: auto; object-fit: cover; }
.single-foot {
  margin-top: 40px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  justify-content: space-between;
}
.single-foot p { font-size: 14px; color: var(--text-soft); font-weight: 300; }

/* Empty-state helper if a looped section has no items yet. */
.empty-note {
  grid-column: 1 / -1;
  font-size: 14px;
  color: var(--text-mute);
  font-weight: 300;
  text-align: center;
  padding: 20px;
}

/* ═══════════════════════════════════════════════════════════
   MOBILE OPTIMIZATIONS  (phones, <= 760px; desktop unchanged)
   1. Roomier hero + compact sticky CTA (was cramped/full-width)
   2. Illustration sits ABOVE the headline
   3. Swipeable side-scrolling carousels for stats, services,
      plans, testimonials, and blog, so the page isn't one long
      scroll. Zero JS (CSS scroll-snap); a peek of the next card
      signals that you can swipe.
   ═══════════════════════════════════════════════════════════ */
@media (max-width: 760px) {

  /* --- 1: compact sticky CTA so it stops crowding the logo --- */
  .nav-inner { height: 62px; }
  .nav .btn-primary {
    width: auto;
    padding: 10px 15px;
    font-size: 12.5px;
  }

  /* --- 1: more breathing room around the hero --- */
  .hero { padding-top: 26px; padding-bottom: 62px; }
  .hero-grid { gap: 0; }
  .badge { margin-bottom: 22px; }
  .hero h1 { margin-bottom: 20px; }
  .hero p.lede { margin-bottom: 26px; }
  .hero-cta { margin-bottom: 26px; }

  /* --- 2: illustration sits between the intro paragraph and the buttons.
     display:contents unwraps the text column so the sketch can be ordered
     in among the badge / headline / intro / CTA in the single column. --- */
  .hero-grid > div:first-child { display: contents; }
  .hero-grid .badge     { order: 1; }
  .hero-grid h1         { order: 2; }
  .hero-grid p.lede     { order: 3; }
  .hero-grid .sketch    { order: 4; max-width: 280px; margin: 4px auto 22px; }
  .hero-grid .hero-cta  { order: 5; }
  .hero-grid .hero-note { order: 6; }

  /* --- 3: side-scrolling carousels --- */
  .cards-3, .plans, .quotes, .posts {
    display: flex;
    grid-template-columns: none;
    gap: 14px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    margin-inline: calc(-1 * var(--pad));
    padding: 2px var(--pad) 14px;
    scroll-padding-left: var(--pad);
  }
  .cards-3 > *, .plans > *, .quotes > *, .posts > * {
    flex: 0 0 83%;
    scroll-snap-align: start;
  }

  /* stats: same swipe treatment, keep the vertical dividers */
  .stats-grid {
    display: flex;
    grid-template-columns: none;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    margin-inline: calc(-1 * var(--pad));
    padding-inline: var(--pad);
    scroll-padding-left: var(--pad);
  }
  .stats-grid .stat {
    flex: 0 0 56%;
    scroll-snap-align: start;
    border-right: 1px solid var(--line);
    border-bottom: none;
    padding: 30px 20px;
  }
  .stats-grid .stat:last-child { border-right: none; }

  /* hide the scrollbar; the peek of the next card is the cue */
  .cards-3, .plans, .quotes, .posts, .stats-grid { scrollbar-width: none; }
  .cards-3::-webkit-scrollbar,
  .plans::-webkit-scrollbar,
  .quotes::-webkit-scrollbar,
  .posts::-webkit-scrollbar,
  .stats-grid::-webkit-scrollbar { display: none; }
}
