/*
Theme Name: Memovox
Theme URI: https://memovox.com.au
Author: Memovox
Description: Warm luxe-editorial theme for Memovox — video guestbook hire, Melbourne. DM Serif Display + Karla, cream/yellow/gold/ink palette (no reds), mobile-first, scroll-reveal animations, magnetic CTAs, postcode delivery-zone checker, pricing inclusion dropdowns.
Version: 1.8.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: memovox
*/

:root {
  --cream: #FFFDF4;
  --paper: #FFF8D4;
  --yellow: #FFE047;
  --gold: #F0A80E;
  --honey: #FFD203;
  --ink: #141414;
  --grey: #70665D;
  --line: rgba(20, 20, 20, 0.16);
  --logo: #6E655B;
  --serif: "DM Serif Display", Georgia, serif;
  --sans: "Karla", -apple-system, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  font-weight: 400;
  background: var(--cream);
  color: var(--ink);
  line-height: 1.7;
  overflow-x: hidden;
}
::selection { background: var(--yellow); }
em { font-style: italic; }
img { max-width: 100%; height: auto; }

/* Grain atmosphere */
body::before {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 2000; opacity: 0.35; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.42 0 0 0 0 0.38 0 0 0 0 0.3 0 0 0 0.05 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Cursor follower */
.cursor-dot {
  position: fixed; top: 0; left: 0; width: 12px; height: 12px; border-radius: 50%;
  background: var(--gold); pointer-events: none; z-index: 3000; opacity: 0;
  transform: translate(-50%, -50%);
  transition: width 0.25s, height 0.25s, opacity 0.3s, background 0.25s;
  mix-blend-mode: multiply;
}
.cursor-dot.on { opacity: 0.85; }
.cursor-dot.grow { width: 44px; height: 44px; background: var(--yellow); }
@media (hover: none) { .cursor-dot { display: none; } }

/* Scroll progress */
#mvx-progress { position: fixed; top: 0; left: 0; height: 3px; width: 0%; background: linear-gradient(90deg, var(--yellow), var(--gold)); z-index: 1001; }

.label { font-size: 0.7rem; letter-spacing: 0.35em; text-transform: uppercase; font-weight: 700; color: var(--grey); }

/* ---------- Nav ---------- */
.site-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; justify-content: space-between; align-items: center;
  /* Fluid, mobile-first: header scales with the viewport (values clamp between mobile and wide). */
  padding: clamp(9px, 1.25vw, 15px) clamp(18px, 5vw, 72px);
  background: rgba(255, 253, 244, 0.82);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: padding 0.35s ease, background 0.35s ease;
}
.site-nav.scrolled {
  background: rgba(255, 253, 244, 0.9);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  padding: clamp(6px, 0.85vw, 10px) clamp(18px, 5vw, 72px);
  border-bottom: 1px solid var(--line);
}
.logo { font-family: var(--serif); font-size: clamp(1.15rem, 1rem + 0.7vw, 1.55rem); color: var(--logo); text-decoration: none; line-height: 1; letter-spacing: 0.01em; }
.logo em { color: var(--logo); font-style: italic; }
/* Cap the WordPress custom logo so a large/square upload can't stretch the header.
   the_custom_logo() renders its own <a class="custom-logo-link"><img class="custom-logo">. */
.logo img, .custom-logo { max-height: clamp(24px, 2.4vw, 32px) !important; width: auto !important; height: auto; display: block; }
.custom-logo-link { display: inline-flex; align-items: center; line-height: 0; text-decoration: none; }
.nav-links { display: flex; gap: clamp(20px, 2.3vw, 38px); align-items: center; }
.nav-links ul { display: flex; gap: clamp(20px, 2.3vw, 38px); list-style: none; align-items: center; }
.nav-links a:not(.btn) {
  color: var(--ink); text-decoration: none; font-size: clamp(0.72rem, 0.66rem + 0.18vw, 0.82rem);
  letter-spacing: 0.16em; text-transform: uppercase; font-weight: 700;
  position: relative; padding: 4px 0;
}
.nav-links a:not(.btn)::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: 0;
  background: var(--gold); border-radius: 2px; transition: width 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}
.nav-links a:not(.btn):hover::after { width: 100%; }

/* Mobile nav */
.nav-toggle { display: none; background: none; border: 1px solid var(--ink); border-radius: 2px; padding: 10px 12px; cursor: pointer; }
.nav-toggle span { display: block; width: 20px; height: 2px; background: var(--ink); margin: 4px 0; transition: transform 0.3s, opacity 0.3s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
.mobile-menu {
  display: none; position: fixed; inset: 0; z-index: 99; background: var(--cream);
  padding: 96px 7vw calc(40px + env(safe-area-inset-bottom)); flex-direction: column; gap: 2px;
  min-height: 100vh; min-height: 100dvh; overflow-y: auto; -webkit-overflow-scrolling: touch;
  transform: translateY(-14px); opacity: 0; pointer-events: none;
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.35s;
}
.mobile-menu.open { transform: none; opacity: 1; pointer-events: auto; }
.mobile-menu ul { list-style: none; }
.mobile-menu a, .mobile-menu ul a {
  font-family: var(--serif); font-size: 1.9rem; color: var(--ink); text-decoration: none;
  padding: 18px 0; border-bottom: 1px solid var(--line);
  display: flex; align-items: center; justify-content: space-between;
}
.mobile-menu a:not(.btn)::after { content: "→"; font-family: var(--sans); font-size: 1rem; color: var(--gold); opacity: 0; transform: translateX(-8px); transition: opacity 0.25s, transform 0.25s; }
.mobile-menu a:active { color: var(--gold); }
.mobile-menu a:active::after { opacity: 1; transform: none; }
.mobile-menu .btn { font-family: var(--sans); font-size: 0.82rem; text-align: center; justify-content: center; margin-top: auto; border: 1px solid var(--ink); color: var(--cream); background: var(--ink); }
.mobile-menu .btn::after { content: none; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; font-size: 0.78rem; letter-spacing: 0.22em;
  text-transform: uppercase; font-weight: 700; font-family: var(--sans);
  color: var(--ink); text-decoration: none; border: 1px solid var(--ink);
  padding: 16px 42px; border-radius: 2px;
  transition: background 0.3s, color 0.3s, transform 0.2s ease, box-shadow 0.3s;
  background: transparent; cursor: pointer; will-change: transform;
}
.btn:hover { background: var(--ink); color: var(--yellow); box-shadow: 0 10px 30px rgba(20, 20, 20, 0.15); }
.btn.solid { background: var(--ink); color: var(--cream); }
.btn.solid:hover { background: var(--ink); color: var(--yellow); }
.btn.small { padding: clamp(8px, 0.7vw, 12px) clamp(18px, 1.6vw, 30px); font-size: clamp(0.7rem, 0.66rem + 0.12vw, 0.8rem); }

/* ---------- Hero ---------- */
.hero { min-height: 100vh; display: flex; flex-direction: column; justify-content: center; padding: 140px 6vw 80px; position: relative; }
.hero::after {
  content: ""; position: absolute; right: -120px; top: 16%; width: 420px; height: 420px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 224, 71, 0.35), transparent 65%); pointer-events: none;
  animation: mvx-breathe 7s ease-in-out infinite;
}
@keyframes mvx-breathe { 50% { transform: scale(1.15); opacity: 0.8; } }
.hero .label { margin-bottom: 36px; }
.hero h1 {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(3.2rem, 8.5vw, 8rem); line-height: 1.0;
  letter-spacing: -0.02em; max-width: 15ch;
}
.hero h1 .word { display: inline-block; opacity: 0; transform: translateY(0.6em) rotate(2deg); animation: mvx-word-in 0.8s cubic-bezier(0.22, 1, 0.36, 1) forwards; }
@keyframes mvx-word-in { to { opacity: 1; transform: none; } }
.hero h1 .it { font-style: italic; color: var(--gold); position: relative; white-space: nowrap; }
.hero h1 .it svg { position: absolute; left: 0; bottom: -0.12em; width: 100%; height: 0.16em; overflow: visible; }
.hero h1 .it svg path {
  fill: none; stroke: var(--yellow); stroke-width: 6; stroke-linecap: round;
  stroke-dasharray: 400; stroke-dashoffset: 400;
  animation: mvx-draw 1.1s 1s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
@keyframes mvx-draw { to { stroke-dashoffset: 0; } }
.hero-row { display: flex; justify-content: space-between; align-items: flex-end; gap: 60px; margin-top: 70px; flex-wrap: wrap; }
.hero-sub { max-width: 44ch; font-size: 1.08rem; }
.hero-sub strong { font-weight: 700; }
.hero-sub p + p { margin-top: 1em; }
.hero-cta { display: flex; gap: 18px; flex-wrap: wrap; }
.hero-meta {
  position: absolute; top: 50%; right: 6vw;
  transform: rotate(90deg) translateX(50%); transform-origin: right center;
  font-size: 0.65rem; letter-spacing: 0.4em; text-transform: uppercase; color: var(--grey);
}
.hero-hint { position: absolute; bottom: 34px; left: 6vw; display: flex; align-items: center; gap: 12px; font-size: 0.72rem; letter-spacing: 0.3em; text-transform: uppercase; color: var(--grey); }
.hero-hint .line { width: 44px; height: 1px; background: var(--grey); transform-origin: left; animation: mvx-hint 2.2s ease-in-out infinite; }
@keyframes mvx-hint { 0%, 100% { transform: scaleX(0.4); opacity: 0.4; } 50% { transform: scaleX(1); opacity: 1; } }

/* ---------- Reveal ---------- */
.fade { opacity: 0; transform: translateY(26px); transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.22, 1, 0.36, 1); }
.fade.in { opacity: 1; transform: none; }

/* ---------- Marquee (black bar) ---------- */
.marquee { background: var(--ink); color: var(--cream); overflow: hidden; padding: 16px 0; transform: rotate(-1deg) scale(1.02); margin: 10px 0; }
.marquee-track { display: flex; width: max-content; animation: mvx-tick 24s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee span { font-family: var(--serif); font-size: 1.3rem; white-space: nowrap; padding-right: 48px; }
.marquee .star { color: var(--yellow); font-size: 1rem; padding-right: 48px; align-self: center; }
@keyframes mvx-tick { to { transform: translateX(-50%); } }

/* ---------- Sections ---------- */
.mvx-section { padding: 130px 6vw; }
.sec-head {
  display: flex; align-items: baseline; justify-content: space-between;
  border-bottom: 1px solid var(--ink); padding-bottom: 22px; gap: 30px; flex-wrap: wrap;
}
h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(2.2rem, 4.5vw, 3.6rem); line-height: 1.05; }
h2 .it { font-style: italic; color: var(--gold); }
h2 .hl { background: linear-gradient(transparent 60%, var(--yellow) 60%); }

/* ---------- Steps ---------- */
.step-row {
  display: grid; grid-template-columns: 110px 1fr 1.4fr 60px; gap: 40px;
  align-items: baseline; padding: 44px 0; border-bottom: 1px solid var(--line);
  transition: background 0.35s ease, padding-left 0.35s cubic-bezier(0.22, 1, 0.36, 1); cursor: default;
}
.step-row:hover { background: var(--paper); padding-left: 24px; }
.step-no { font-family: var(--serif); font-style: italic; font-size: 1.6rem; color: var(--gold); }
.step-row h3 { font-family: var(--serif); font-weight: 400; font-size: 1.9rem; }
.step-row p { color: var(--grey); max-width: 52ch; font-size: 1rem; }
.step-arrow { font-size: 1.5rem; color: var(--gold); opacity: 0; transform: translateX(-14px); transition: all 0.35s cubic-bezier(0.22, 1, 0.36, 1); justify-self: end; }
.step-row:hover .step-arrow { opacity: 1; transform: none; }
.events-line { margin-top: 56px; font-family: var(--serif); font-size: clamp(1.3rem, 2.6vw, 2rem); font-style: italic; color: var(--grey); }
.events-line b { color: var(--ink); font-weight: 400; transition: color 0.25s; cursor: default; }
.events-line b:hover { color: var(--gold); }

/* ---------- Pricing ---------- */
.tiers { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--ink); margin-top: 70px; background: var(--cream); }
.tier {
  padding: 56px 44px; border-right: 1px solid var(--ink); display: flex; flex-direction: column; position: relative;
  transition: background 0.4s ease, transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.4s;
}
.tier:last-child { border-right: none; }
.tier:hover { background: var(--paper); transform: translateY(-6px); box-shadow: 0 24px 50px rgba(20, 20, 20, 0.10); z-index: 2; }
.tier.mid { background: var(--ink); color: var(--cream); }
.tier.mid:hover { background: #000; }
.tier .label { margin-bottom: 8px; }
.tier.mid .label { color: rgba(255, 248, 212, 0.6); }
.turnaround { display: inline-block; font-size: 0.66rem; letter-spacing: 0.2em; text-transform: uppercase; font-weight: 700; color: var(--grey); margin-bottom: 16px; }
.turnaround b { color: var(--gold); font-weight: 700; }
.tier.mid .turnaround { color: rgba(255, 248, 212, 0.6); }
.tier.mid .turnaround b { color: var(--yellow); }
.tier h3 { font-family: var(--serif); font-weight: 400; font-size: 2rem; margin-bottom: 6px; }
.tier .for { font-size: 0.88rem; color: var(--grey); min-height: 44px; margin-bottom: 30px; }
.tier.mid .for { color: rgba(255, 248, 212, 0.65); }
.tier .price { font-family: var(--serif); font-size: 3.4rem; line-height: 1; margin-bottom: 6px; }
.tier .price sup { font-size: 1.3rem; }
.tier .price .today { font-family: var(--sans); font-size: 0.9rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--gold); }
.tier.mid .price { color: var(--yellow); }
.tier.mid .price .today { color: var(--yellow); }
.tier .dep { font-size: 0.78rem; color: var(--grey); margin-bottom: 34px; }
.tier .dep b { color: var(--gold); font-weight: 700; }
.tier.mid .dep { color: rgba(255, 248, 212, 0.62); }
.tier.mid .dep b { color: var(--yellow); }
/* payment mode visibility */
.price.mode-deposit, .dep.mode-deposit { display: none; }
.tiers.deposit-mode .price.mode-full, .tiers.deposit-mode .dep.mode-full { display: none; }
.tiers.deposit-mode .price.mode-deposit { display: block; }
.tiers.deposit-mode .dep.mode-deposit { display: block; }
.tier > ul { list-style: none; margin-bottom: 30px; }
.tier > ul li { padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 0.92rem; transition: padding-left 0.25s ease; }
.tier > ul li:hover { padding-left: 8px; }
.tier.mid > ul li { border-color: rgba(255, 248, 212, 0.2); }
.tier > ul li::before { content: "—  "; color: var(--gold); }
.tier.mid > ul li::before { color: var(--yellow); }
.tier > ul li a { color: inherit; text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 3px; transition: opacity 0.25s; }
.tier > ul li a:hover { opacity: 0.65; }
.tier .btn { text-align: center; margin-top: auto; }
.tier.mid .btn { border-color: var(--yellow); color: var(--yellow); }
.tier.mid .btn:hover { background: var(--yellow); color: var(--ink); }
/* legible text selection on the dark Prestige tier */
.tier.mid ::selection { background: var(--yellow); color: var(--ink); }
.best-note {
  position: absolute; top: -1px; right: -1px; background: var(--yellow); color: var(--ink);
  font-size: 0.62rem; letter-spacing: 0.3em; text-transform: uppercase; font-weight: 700; padding: 10px 18px;
}

/* Payment toggle */
.pay-toggle { display: inline-flex; margin: 40px 0 0; border: 1px solid var(--ink); border-radius: 2px; overflow: hidden; }
.pay-opt {
  font-family: var(--sans); font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; font-weight: 700;
  background: transparent; color: var(--ink); border: none; padding: 12px 22px; cursor: pointer; transition: background 0.3s, color 0.3s;
}
.pay-opt + .pay-opt { border-left: 1px solid var(--ink); }
.pay-opt.active { background: var(--ink); color: var(--yellow); }
.pay-opt b { font-weight: 700; color: var(--gold); }
.pay-opt.active b { color: var(--yellow); }

/* Value-added inclusions dropdown */
.incl { margin: 0 0 30px; }
.incl summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 12px;
  font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 700; color: var(--gold);
  padding: 14px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); transition: color 0.25s;
}
.incl summary::-webkit-details-marker { display: none; }
.incl summary:hover { color: var(--ink); }
.incl summary .chev { font-family: var(--sans); font-weight: 300; font-size: 1.3rem; line-height: 1; transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1); color: var(--gold); }
.incl[open] summary .chev { transform: rotate(135deg); }
.incl ul { list-style: none; margin: 0; padding: 6px 0 4px; }
.incl li { padding: 10px 0; border-bottom: 1px dashed var(--line); font-size: 0.88rem; }
.incl li:last-child { border-bottom: none; }
.incl li::before { content: "+  "; color: var(--gold); font-weight: 700; }
.incl .val { display: block; font-family: var(--serif); font-style: italic; color: var(--gold); font-size: 0.85rem; }
.tier.mid .incl summary { color: var(--yellow); border-color: rgba(255, 248, 212, 0.2); }
.tier.mid .incl summary:hover { color: var(--cream); }
.tier.mid .incl summary .chev { color: var(--yellow); }
.tier.mid .incl li { border-color: rgba(255, 248, 212, 0.2); }
.tier.mid .incl li::before { color: var(--yellow); }
.tier.mid .incl .val { color: var(--yellow); }

/* ---------- Why memovox ---------- */
.compare-wrap { overflow-x: auto; margin-top: 70px; }
.compare { width: 100%; min-width: 560px; border-collapse: collapse; border: 1px solid var(--ink); }
.compare th, .compare td { padding: 24px 30px; text-align: left; font-size: 0.95rem; }
.compare thead th { border-bottom: 1px solid var(--ink); font-size: 0.7rem; letter-spacing: 0.3em; text-transform: uppercase; font-weight: 700; color: var(--grey); }
.compare thead th.us { color: var(--gold); }
.compare tbody tr { transition: background 0.3s ease; }
.compare tbody tr:hover { background: var(--paper); }
.compare tbody tr + tr td { border-top: 1px solid var(--line); }
.compare td.us { font-weight: 700; }
.compare td.us::before { content: "✓  "; color: var(--gold); }
.compare td.them { color: var(--grey); }

/* ---------- Quote ---------- */
.quote-sec { background: var(--paper); text-align: center; position: relative; overflow: hidden; }
.quote-sec::before { content: "\201C"; position: absolute; top: -60px; left: 4vw; font-family: var(--serif); font-size: 22rem; color: rgba(240, 168, 14, 0.14); line-height: 1; }
.quote-sec blockquote { font-family: var(--serif); font-size: clamp(1.6rem, 3.4vw, 2.8rem); line-height: 1.3; max-width: 26ch; margin: 36px auto; font-style: italic; position: relative; }
.quote-sec blockquote .hl { background: linear-gradient(transparent 62%, var(--yellow) 62%); font-style: normal; }
.quote-sec cite { font-style: normal; font-size: 0.8rem; letter-spacing: 0.3em; text-transform: uppercase; color: var(--grey); font-weight: 700; }
.quote-sec .stars { color: var(--gold); letter-spacing: 4px; }

/* ---------- Delivery zone checker ---------- */
.zone-sec { border-top: 1px solid var(--ink); text-align: center; position: relative; }
.zone-sec h2 { margin: 26px auto 14px; }
.zone-sec .intro { color: var(--grey); max-width: 54ch; margin: 0 auto; }
.zone-instr { display: block; font-size: 0.72rem; letter-spacing: 0.28em; text-transform: uppercase; font-weight: 700; color: var(--grey); margin: 54px auto 10px; }
.zone-form { display: flex; gap: 0; max-width: 460px; margin: 0 auto; border-bottom: 1px solid var(--ink); transition: border-color 0.3s; }
.zone-form:focus-within { border-bottom-color: var(--gold); }
.zone-form input {
  flex: 1; padding: 16px 8px; font-size: 1.5rem; font-family: var(--serif);
  border: none; background: transparent; outline: none; color: var(--ink); text-align: center; letter-spacing: 0.25em;
}
.zone-form input::placeholder { color: var(--line); }
.zone-form .btn { border: none; border-left: 1px solid var(--ink); }
.zone-result { margin-top: 34px; min-height: 3.4em; opacity: 0; transform: translateY(10px); transition: all 0.45s cubic-bezier(0.22, 1, 0.36, 1); }
.zone-result.show { opacity: 1; transform: none; }
.zone-result .big { font-family: var(--serif); font-size: 1.7rem; display: block; font-style: italic; }
.zone-result .big.yes { color: var(--gold); }
.zone-note { font-size: 0.86rem; color: var(--grey); margin: 20px auto 0; max-width: 52ch; }
.zone-note a, .zone-result a { color: var(--gold); text-decoration: none; border-bottom: 1px solid var(--gold); transition: opacity 0.25s; }
.zone-note a:hover, .zone-result a:hover { opacity: 0.7; }
.zone-burst { position: absolute; pointer-events: none; font-size: 1.1rem; z-index: 500; animation: mvx-burst 1s ease-out forwards; }
@keyframes mvx-burst {
  0% { transform: translate(0, 0) scale(0.6); opacity: 1; }
  100% { transform: translate(var(--dx), var(--dy)) scale(1.2) rotate(40deg); opacity: 0; }
}

/* ---------- FAQ ---------- */
.faq { max-width: 820px; margin: 70px auto 0; }
.faq-item { border-bottom: 1px solid var(--line); transition: background 0.3s; }
.faq-item.open { background: linear-gradient(90deg, rgba(255, 248, 212, 0.7), transparent); }
.faq-q {
  width: 100%; background: none; border: none; font-family: var(--serif); font-size: 1.35rem; text-align: left;
  padding: 30px 44px 30px 0; cursor: pointer; color: var(--ink); position: relative;
  transition: padding-left 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}
.faq-item.open .faq-q, .faq-q:hover { padding-left: 14px; }
.faq-q::after {
  content: "+"; position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  font-family: var(--sans); font-weight: 300; font-size: 1.7rem;
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), color 0.3s; color: var(--gold);
}
.faq-item.open .faq-q::after { transform: translateY(-50%) rotate(135deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.45s cubic-bezier(0.22, 1, 0.36, 1); }
.faq-a p { padding: 0 60px 30px 14px; color: var(--grey); font-size: 0.98rem; }

/* ---------- CTA ---------- */
.cta { text-align: center; border-top: 1px solid var(--ink); position: relative; overflow: hidden; }
.cta h2 { font-size: clamp(2.6rem, 6vw, 5rem); max-width: 18ch; margin: 26px auto 40px; }
.cta p.tag { font-style: italic; font-family: var(--serif); color: var(--grey); font-size: 1.15rem; margin-bottom: 44px; }
.cta .sun {
  position: absolute; left: 50%; bottom: -260px; transform: translateX(-50%); width: 520px; height: 520px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 224, 71, 0.5), rgba(255, 224, 71, 0.12) 55%, transparent 70%);
  pointer-events: none; animation: mvx-breathe 6s ease-in-out infinite;
}

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--ink); padding: 60px 6vw;
  display: flex; justify-content: space-between; gap: 30px; flex-wrap: wrap;
  font-size: 0.8rem; color: var(--grey);
}
.site-footer .cols { display: flex; gap: 60px; flex-wrap: wrap; }
.site-footer .cols ul { list-style: none; }
.site-footer a { color: var(--ink); text-decoration: none; display: block; padding: 3px 0; transition: color 0.25s, transform 0.25s; }
.site-footer a:hover { color: var(--gold); transform: translateX(4px); }
.site-footer .ack { max-width: 44ch; line-height: 1.8; }
.site-footer .foot-tag { font-family: var(--serif); font-style: italic; font-size: 1.05rem; color: var(--ink); margin-top: 12px; max-width: 30ch; }
.site-footer .ig { display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; border: 1px solid var(--ink); border-radius: 50%; padding: 0; transition: background 0.25s, color 0.25s, transform 0.25s; }
.site-footer .ig:hover { background: var(--ink); color: var(--yellow); transform: translateY(-2px); }
.site-footer .ig svg { width: 20px; height: 20px; }

/* ---------- Generic page content ---------- */
.page-content { max-width: 780px; margin: 0 auto; padding: 180px 6vw 120px; }
.page-content h1 { font-family: var(--serif); font-weight: 400; font-size: clamp(2.4rem, 5vw, 4rem); margin-bottom: 40px; }
.page-content h2, .page-content h3 { font-family: var(--serif); font-weight: 400; margin: 1.6em 0 0.6em; }
.page-content p { margin-bottom: 1em; }
.page-content a { color: var(--gold); }

/* ---------- Contact page (template-contact.php) ---------- */
/* Same hero as everywhere else, minus the lead-gen "ticket stub" eyebrow —
   contact is a direct, functional page, not a confessional offer, so it
   keeps the plain sitewide .label instead. */
.contact-hero { min-height: auto; padding-bottom: 40px; }
.contact-hero h1 { max-width: 16ch; }
.contact-hero .leadgen-subhead { margin-top: 18px; }

.contact-methods {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
  max-width: 820px; margin: 0 auto; padding: 0 6vw 60px;
}
.contact-method {
  display: flex; flex-direction: column; gap: 10px; align-items: flex-start;
  background: var(--cream); border: 1px solid var(--ink); border-radius: 2px; padding: 24px 22px;
  text-decoration: none; color: var(--ink);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s;
}
.contact-method:hover { transform: translateY(-4px); box-shadow: 4px 6px 0 rgba(20, 20, 20, 0.08); }
.contact-method svg { width: 26px; height: 26px; color: var(--gold); }
.contact-method .label-sm { font-size: 0.7rem; letter-spacing: 0.16em; text-transform: uppercase; font-weight: 700; color: var(--grey); }
.contact-method .value { font-family: var(--serif); font-size: 1.15rem; word-break: break-word; }
@media (max-width: 700px) { .contact-methods { grid-template-columns: 1fr; } }

/* =====================================================================
   LANDING PAGE DESIGN SYSTEM (template-leadgen.php)
   =====================================================================
   Every landing page (tm1, tm2, tm3...) is built from the SAME tokens,
   fonts, buttons, motion and section rhythm as the main site — nothing
   here introduces a new palette or typeface. That's what makes a landing
   page read as memovox rather than a bolted-on builder page, regardless
   of what offer or content strategy it's selling.

   Two layers below:

   1. CORE (this block) — the hero, content column, and closing CTA band
      that EVERY landing page uses, no matter the offer.

   2. CONTENT MODULES (further down) — optional block patterns you pick
      per offer, based on what actually fits that page's strategy:
        - Feature grid / Numbered steps  -> agnostic, fits any offer
        - Chapter stack / Testimonial polaroids / Postage stamp
          -> built for tm1's "you're getting a real keepsake" angle
             (multi-part guides, downloadable documents); skip these
             for offers that aren't about handing over a document.
      Mix and match — a future page might use Numbered steps + a plain
      testimonial grid and nothing else, and that's the point.
   ===================================================================== */

/* ---- CORE: hero, content column, closing CTA — used by every landing page ---- */
/* Reuses .hero's eyebrow/headline/glow treatment so opt-in pages read as part
   of the site, not a bolted-on builder page; trimmed to content height instead
   of forcing a full viewport since these pages are read top-to-bottom. */
.leadgen-hero { min-height: auto; padding-bottom: 60px; }
.leadgen-hero h1 { max-width: 20ch; }
.leadgen-subhead { font-size: 1.15rem; color: var(--grey); max-width: 60ch; margin-top: 18px; }
.leadgen-hero-media { margin-top: 40px; max-width: 560px; }
.leadgen-hero-media img { width: 100%; border-radius: 4px; border: 1px solid var(--line); display: block; }
/* The hero above already clears the fixed nav, so the content column shouldn't repeat that offset. */
.leadgen-content.page-content { max-width: 820px; padding-top: 0; }
.leadgen-cta { border-top: 1px solid var(--ink); }

/* Hero eyebrow on lead-gen pages reads as a stamped ticket stub — a small,
   generic bit of texture any offer can use (not tied to tm1's content), and
   reinforces "this is a considered, human page" without touching the plain
   .label used sitewide. */
.leadgen-hero .label {
  display: inline-block; border: 1px dashed var(--gold); border-radius: 999px;
  padding: 7px 18px; background: var(--paper); transform: rotate(-1.5deg);
}

/* ---- AGNOSTIC CONTENT MODULES — fit any offer, any content strategy ---- */

/* Feature grid ("Lead-gen: Feature grid" block pattern). Plain benefit/feature
   cards — no theme beyond the shared tokens, so it works whether the offer is
   a download, a discount, a consult booking, anything. Same gold italic serif
   numeral treatment as the main site's step-no, for visual continuity. */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin: 36px 0; }
.feature-card {
  background: var(--cream); border: 1px solid var(--ink); border-radius: 2px; padding: 28px 26px;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s;
}
.feature-card:hover { transform: translateY(-4px); box-shadow: 4px 6px 0 rgba(20, 20, 20, 0.08); }
.feature-card .num { font-family: var(--serif); font-style: italic; font-size: 1.8rem; color: var(--gold); display: block; margin-bottom: 10px; }
.feature-card h4 { font-family: var(--serif); font-weight: 400; font-size: 1.25rem; margin: 0 0 8px; }
.feature-card p { color: var(--grey); font-size: 0.92rem; margin: 0; }
@media (max-width: 700px) { .feature-grid { grid-template-columns: 1fr; } }

/* Numbered steps ("Lead-gen: Numbered steps" block pattern). This is simply
   the main site's own "How it works" component (.step-row/.step-no, defined
   above) reused as-is — the most literal way a landing page can look like an
   extension of memovox.com.au: a future page describing a different process
   (booking flow, referral steps, whatever) gets the identical treatment. */

/* ---- TM1-SPECIFIC CONTENT MODULES — built for "here's a real document to keep" ---- */

/* Chapter stack ("Lead-gen: Offer chapters" block pattern). The offer list
   becomes a loosely fanned stack of numbered playbook pages — ties the visual
   to the actual thing being given away, rather than reading as
   a generic bullet list. Auto-numbered via CSS counters so pattern authors just
   write plain paragraphs inside each .chapter-card. */
.chapter-stack { counter-reset: chapter; display: flex; flex-direction: column; gap: 20px; margin: 40px 0; }
.chapter-card {
  counter-increment: chapter; position: relative; background: var(--cream);
  border: 1px solid var(--ink); border-radius: 2px;
  padding: 26px 30px 26px 88px; box-shadow: 4px 4px 0 rgba(20, 20, 20, 0.06);
}
.chapter-card.fade { transform: translateY(24px) rotate(var(--tilt, 0deg)); }
.chapter-card.fade.in { transform: rotate(var(--tilt, 0deg)); }
.chapter-card:nth-child(odd) { --tilt: -0.6deg; }
.chapter-card:nth-child(even) { --tilt: 0.5deg; }
.chapter-card:nth-child(1) { transition-delay: 0s; }
.chapter-card:nth-child(2) { transition-delay: 0.08s; }
.chapter-card:nth-child(3) { transition-delay: 0.16s; }
.chapter-card:nth-child(4) { transition-delay: 0.24s; }
.chapter-card:nth-child(5) { transition-delay: 0.32s; }
.chapter-card:nth-child(6) { transition-delay: 0.4s; }
.chapter-card::before {
  content: counter(chapter, decimal-leading-zero); position: absolute; left: 24px; top: 50%;
  transform: translateY(-50%); font-family: var(--serif); font-style: italic;
  font-size: 2.1rem; color: var(--gold); line-height: 1;
}
.chapter-card::after {
  content: ""; position: absolute; top: 0; right: 0; width: 22px; height: 22px;
  background: linear-gradient(135deg, transparent 50%, var(--paper) 52%);
  border-left: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.chapter-card p { margin: 0; }
@media (min-width: 701px) {
  .chapter-card:nth-child(odd) { margin-right: 8%; }
  .chapter-card:nth-child(even) { margin-left: 8%; }
}

/* ---------- Testimonial polaroids ("Lead-gen: Testimonial grid" block pattern) ----------
   Review screenshots pinned like photos on a memory board — alternating tilt,
   settles flat on hover. */
.leadgen-testimonials { display: flex; flex-wrap: wrap; gap: 28px; margin: 40px 0 28px; }
.leadgen-testimonials .wp-block-image {
  margin: 0; width: min(260px, 78vw); background: var(--cream); border: 1px solid var(--ink);
  padding: 14px 14px 32px; box-shadow: 5px 6px 0 rgba(20, 20, 20, 0.08);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s;
}
.leadgen-testimonials .wp-block-image:nth-child(odd) { transform: rotate(-2.5deg); }
.leadgen-testimonials .wp-block-image:nth-child(even) { transform: rotate(2deg); }
.leadgen-testimonials .wp-block-image:hover {
  transform: rotate(0deg) scale(1.03); box-shadow: 8px 10px 0 var(--yellow), 8px 10px 0 1px var(--ink);
}
.leadgen-testimonials img { width: 100%; display: block; }
@media (max-width: 640px) { .leadgen-testimonials { justify-content: center; } }
.page-content strong { font-weight: 700; color: var(--ink); }

/* Lists authored in the block editor (e.g. lead-magnet offer bullets) */
.page-content ul, .page-content ol { margin: 0 0 1.4em; padding-left: 0; list-style: none; }
.page-content ul li { position: relative; padding-left: 28px; margin-bottom: 12px; }
.page-content ul li::before { content: "—"; position: absolute; left: 0; color: var(--gold); font-weight: 700; }
.page-content ol { counter-reset: mvxlist; }
.page-content ol li { counter-increment: mvxlist; position: relative; padding-left: 32px; margin-bottom: 12px; }
.page-content ol li::before {
  content: counter(mvxlist) "."; position: absolute; left: 0; color: var(--gold);
  font-weight: 700; font-family: var(--serif);
}

/* Content photos (e.g. lead-magnet hero/testimonial images) get the brand's card framing */
.page-content img { border-radius: 4px; border: 1px solid var(--line); display: block; }
.page-content figure { margin: 32px 0; }

/* CTA text-links authored as plain links but intended as buttons
   (e.g. "Download for free" -> #free-playbook) get real button styling. */
.page-content a[href*="free-playbook" i] {
  display: inline-block; border: 1px solid var(--ink); border-radius: 2px;
  padding: 12px 28px; font-family: var(--sans); font-weight: 700; font-size: 0.78rem;
  letter-spacing: 0.18em; text-transform: uppercase; text-decoration: none; color: var(--ink);
  transition: background 0.3s, color 0.3s;
}
.page-content a[href*="free-playbook" i]:hover { background: var(--ink); color: var(--yellow); }

/* Reused FAQ accordion inside page content (see enhanceFaqBlocks() in theme.js) */
.page-content .faq { margin: 40px 0 32px; }
.page-content .faq-a p { margin-bottom: 0; }
.page-content .faq + a { display: inline-block; margin-top: 8px; }

/* Contact Form 7 / generic forms embedded in page content, styled as a card */
.page-content .wpcf7,
.page-content form[action*="admin-ajax"] {
  position: relative; overflow: hidden;
  background: var(--paper); border: 1px solid var(--ink); border-radius: 2px;
  padding: clamp(28px, 4vw, 48px); margin: 40px 0;
}
/* Postage-stamp accent — a small keepsake touch reinforcing "this is being sent to you". */
.page-content .wpcf7::before,
.page-content form[action*="admin-ajax"]::before {
  content: "\2726"; position: absolute; top: 16px; right: 20px; width: 36px; height: 44px;
  border: 1.5px dashed var(--gold); border-radius: 2px; pointer-events: none;
  display: flex; align-items: center; justify-content: center;
  color: var(--gold); font-size: 0.95rem; opacity: 0.55; transform: rotate(4deg);
}
.page-content .wpcf7 p,
.page-content form[action*="admin-ajax"] p { margin-bottom: 18px; }
.page-content .wpcf7 fieldset,
.page-content form[action*="admin-ajax"] fieldset { border: none; margin: 0; padding: 0; }
.page-content .wpcf7 input[type="text"],
.page-content .wpcf7 input[type="email"],
.page-content .wpcf7 input[type="tel"],
.page-content .wpcf7 textarea,
.page-content form[action*="admin-ajax"] input[type="text"],
.page-content form[action*="admin-ajax"] input[type="email"],
.page-content form[action*="admin-ajax"] input[type="tel"],
.page-content form[action*="admin-ajax"] textarea {
  width: 100%; font-family: var(--sans); font-size: 16px; /* 16px prevents iOS zoom-on-focus */
  padding: 14px 16px; min-height: 48px; border: 1px solid var(--line); border-radius: 2px;
  background: var(--cream); color: var(--ink); outline: none;
  transition: border-color 0.25s, box-shadow 0.25s; -webkit-appearance: none; appearance: none;
}
.page-content .wpcf7 input:focus,
.page-content form[action*="admin-ajax"] input:focus,
.page-content .wpcf7 textarea:focus,
.page-content form[action*="admin-ajax"] textarea:focus {
  border-color: var(--gold); box-shadow: 0 0 0 3px rgba(240, 168, 14, 0.18);
}
.page-content .wpcf7 input::placeholder,
.page-content form[action*="admin-ajax"] input::placeholder { color: var(--grey); opacity: 0.85; }
.page-content .wpcf7 button[type="submit"],
.page-content .wpcf7 input[type="submit"],
.page-content form[action*="admin-ajax"] button[type="submit"],
.page-content form[action*="admin-ajax"] input[type="submit"] {
  display: block; width: 100%; min-height: 48px; margin-top: 6px;
  background: var(--ink); color: var(--cream); border: 1px solid var(--ink); border-radius: 2px;
  font-family: var(--sans); font-weight: 700; font-size: 0.82rem; letter-spacing: 0.2em;
  text-transform: uppercase; cursor: pointer; transition: background 0.3s, color 0.3s, box-shadow 0.3s;
}
.page-content .wpcf7 button[type="submit"]:hover,
.page-content form[action*="admin-ajax"] button[type="submit"]:hover {
  background: var(--ink); color: var(--yellow); box-shadow: 0 10px 30px rgba(20, 20, 20, 0.15);
}
/* CF7 response + inline validation messaging, on-brand (no red) but still distinct from success */
.page-content .wpcf7-response-output {
  border: 1px solid var(--ink) !important; border-radius: 2px; padding: 14px 18px;
  margin-top: 18px !important; font-size: 0.92rem; background: var(--cream);
}
.page-content .wpcf7-mail-sent-ok {
  border-color: var(--gold) !important; background: var(--paper);
}
.page-content .wpcf7-validation-errors,
.page-content .wpcf7-mail-sent-ng,
.page-content .wpcf7-aborted,
.page-content .wpcf7-spam-blocked {
  border-color: var(--gold) !important; border-left-width: 4px !important; background: #FFF8E6;
}
.page-content .wpcf7-not-valid-tip {
  color: var(--ink); font-weight: 700; font-size: 0.82rem; margin-top: 6px; display: block;
}
.page-content .wpcf7-not-valid-tip::before { content: "! "; color: var(--gold); }
.page-content .wpcf7-form-control-wrap { display: block; margin-bottom: 4px; }

/* ---------- Mobile (base is mobile-friendly; refinements under 900px) ---------- */
@media (max-width: 900px) {
  .mvx-section { padding: 80px 6vw; }
  .page-content { padding: 120px 6vw 80px; }
  .page-content .wpcf7,
  .page-content form[action*="admin-ajax"] { padding: 24px 20px; }
  .hero { padding: 120px 6vw 70px; min-height: 88vh; }
  .hero .label { margin-bottom: 24px; }
  .leadgen-hero { min-height: auto; padding: 110px 6vw 40px; }
  .leadgen-hero h1 { max-width: none; }
  .leadgen-content.page-content { padding-top: 0; }
  .hero-row { margin-top: 44px; gap: 34px; }
  .hero-cta { width: 100%; }
  .hero-cta .btn { flex: 1; text-align: center; padding: 16px 10px; }
  .sec-head { flex-direction: column-reverse; align-items: flex-start; gap: 12px; }
  .tiers { grid-template-columns: 1fr; }
  .tier { border-right: none; border-bottom: 1px solid var(--ink); padding: 44px 26px; }
  .tier:last-child { border-bottom: none; }
  .tier:hover { transform: none; box-shadow: none; }
  .tier .for { min-height: 0; }
  .tier .btn { display: block; text-align: center; }
  .step-row { grid-template-columns: 56px 1fr; gap: 16px 20px; padding: 32px 0; }
  .step-row p { grid-column: 1 / -1; }
  .step-row:hover { padding-left: 0; background: none; }
  .step-no { font-size: 1.2rem; }
  .step-row h3 { font-size: 1.5rem; }
  .step-arrow { display: none; }
  .marquee span { font-size: 1.05rem; padding-right: 30px; }
  .marquee .star { padding-right: 30px; }
  .compare th, .compare td { padding: 16px 16px; font-size: 0.88rem; }
  .zone-form { max-width: 100%; }
  .zone-form input { font-size: 1.2rem; min-width: 0; }
  .zone-form .btn { padding: 16px 22px; }
  .faq { margin-top: 44px; }
  .faq-q { font-size: 1.12rem; padding: 24px 40px 24px 0; }
  .faq-a p { padding: 0 20px 24px 0; }
  .quote-sec::before { font-size: 11rem; top: -24px; }
  .site-footer { flex-direction: column; gap: 36px; }
  .nav-links { display: none; }
  .nav-toggle { display: block; }
  .mobile-menu { display: flex; }
  .hero-meta, .hero-hint { display: none; }
  .cursor-dot { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001s !important; transition-duration: 0.001s !important; }
  .fade, .hero h1 .word { opacity: 1; transform: none; }
  .cursor-dot { display: none; }
}

/* WordPress core classes */
.alignleft { float: left; margin-right: 1.5em; }
.alignright { float: right; margin-left: 1.5em; }
.aligncenter { display: block; margin: 0 auto; }
.screen-reader-text {
  border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%);
  height: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute !important;
  width: 1px; word-wrap: normal !important;
}
