/*
Theme Name: Card Machine Queen
Theme URI: https://cardmachinequeen.co.uk/
Author: Card Machine Queen
Description: A premium, lightweight WordPress theme for straight-talking card payment advice.
Version: 2.2.0
Requires at least: 6.0
Tested up to: 7.0
Requires PHP: 8.0
License: GNU General Public License v2 or later
Text Domain: cmq
*/

:root {
  --queen-orange: #f47c20;
  --soft-sage: #8fae9a;
  --deep-olive: #556b5b;
  --champagne-cream: #f6e9d7;
  --pale-pistachio: #dde8d8;
  --almond-white: #fffcf7;
  --mist-taupe: #e7e0d8;
  --accessible-olive: #26372b;
  --orange-link: var(--accessible-olive);
  --orange-dark: #d96a12;
  --orange-hover: #f68a38;
  --field-neutral: #f2ede7;

  /* Compatibility aliases shared by the blog stylesheet. */
  --orange: var(--queen-orange);
  --orange-text: var(--orange-link);
  --button-ink: var(--accessible-olive);
  --sage: var(--soft-sage);
  --olive: var(--deep-olive);
  --champagne: var(--champagne-cream);
  --pistachio: var(--pale-pistachio);
  --almond: var(--almond-white);
  --taupe: var(--mist-taupe);
  --ink: var(--deep-olive);
  --paper: var(--almond-white);
  --cream: var(--champagne-cream);
  --soft: var(--pale-pistachio);
  --coral: var(--queen-orange);
  --coral-dark: var(--orange-dark);
  --muted: var(--deep-olive);
  --line: rgba(85, 107, 91, 0.22);
  --shadow: 0 22px 60px rgba(38, 55, 43, 0.1);
  --shadow-hover: 0 26px 70px rgba(38, 55, 43, 0.15);
  --radius: 22px;
  --radius-small: 14px;
  --content: 1220px;
  --gutter: clamp(20px, 5vw, 72px);
  font-family: "DM Sans", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { overflow-x: clip; }
body {
  margin: 0;
  overflow-x: clip;
  background: var(--almond-white);
  color: var(--deep-olive);
  font-size: 16px;
  line-height: 1.65;
}
img, iframe { max-width: 100%; }
img { height: auto; }
a { color: inherit; }
button, input { font: inherit; }
h1, h2, h3, p, figure { margin-top: 0; }
h1, h2 {
  margin-bottom: 20px;
  font-family: "DM Serif Display", Georgia, serif;
  font-weight: 400;
  letter-spacing: -0.025em;
  line-height: 1.04;
}
h1 { font-size: clamp(2.4rem, 7vw, 5.125rem); }
h2 { font-size: clamp(1.9rem, 5vw, 4rem); }
h3 { margin-bottom: 10px; font-size: 1.1rem; line-height: 1.3; }
:focus-visible { outline: 3px solid var(--accessible-olive); outline-offset: 4px; }
.meet-section :focus-visible,
.video-section :focus-visible,
.final-cta :focus-visible,
.footer :focus-visible,
.cmq-box--cta :focus-visible { outline-color: var(--almond-white); }
section[id] { scroll-margin-top: 100px; }

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  padding: 11px 16px;
  border-radius: 999px;
  background: var(--accessible-olive);
  color: var(--almond-white);
  text-decoration: none;
  transform: translateY(-180%);
}
.skip-link:focus { transform: translateY(0); }

.reveal-ready [data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 250ms ease, transform 250ms ease;
}
.reveal-ready [data-reveal].is-revealed { opacity: 1; transform: none; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 24px;
  align-items: center;
  min-height: 86px;
  padding: 14px max(20px, calc((100vw - 1440px) / 2));
  border-bottom: 1px solid var(--line);
  background: rgba(255, 252, 247, 0.96);
  backdrop-filter: blur(14px);
}
.brand { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; }
.brand img { display: block; width: clamp(210px, 18vw, 285px); }
.menu-toggle, .nav-call { display: none; }
.nav, .header-actions, .cta-row, .footer nav { display: flex; align-items: center; gap: 20px; }
.nav { justify-content: center; font-size: 0.9rem; font-weight: 700; }
.nav a, .phone-link, .footer nav a { display: inline-flex; align-items: center; min-height: 44px; }
.nav a, .footer a, .phone-link { text-decoration: none; }
.nav a.nav-call { display: none; }
.nav a:hover, .footer a:hover, .phone-link:hover { color: var(--orange-link); }
.header-actions { justify-content: flex-end; gap: 14px; }
.phone-link { font-size: 0.92rem; font-weight: 700; white-space: nowrap; }

.button {
  display: inline-flex;
  gap: 12px;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 13px 24px;
  border: 2px solid var(--queen-orange);
  border-radius: 999px;
  background: var(--queen-orange);
  color: var(--accessible-olive);
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  box-shadow: none;
  cursor: pointer;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
}
.button:hover { transform: translateY(-2px); background: var(--orange-hover); }
.button-secondary { border-color: var(--deep-olive); background: transparent; color: var(--deep-olive); }
.button-secondary:hover { border-color: var(--deep-olive); background: var(--deep-olive); color: var(--almond-white); }
.button-small { min-height: 44px; padding: 10px 18px; font-size: 0.85rem; }
.text-link, .review-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--deep-olive);
  font-weight: 700;
  text-decoration-thickness: 1px;
  text-decoration-color: var(--queen-orange);
  text-underline-offset: 5px;
}
.eyebrow {
  margin: 0 0 14px;
  color: var(--deep-olive);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(380px, 0.8fr);
  grid-template-areas:
    "copy image"
    "actions image";
  gap: 24px clamp(38px, 6vw, 78px);
  align-items: center;
  max-width: 1440px;
  margin: 0 auto;
  padding: clamp(50px, 5vw, 72px) var(--gutter) clamp(70px, 6vw, 86px);
}
.hero::before, .meet-section::before {
  content: "";
  position: absolute;
  z-index: -1;
  width: 330px;
  height: 330px;
  border-radius: 58% 42% 66% 34% / 40% 58% 42% 60%;
  background: var(--pale-pistachio);
}
.hero::before { top: 8%; right: -80px; }
.hero-copy { position: relative; z-index: 1; grid-area: copy; align-self: end; }
.hero-actions { grid-area: actions; align-self: start; }
.hero h1 { max-width: 740px; }
.hero-lede { max-width: 600px; color: var(--accessible-olive); font-size: clamp(1.05rem, 1.4vw, 1.2rem); }
.cta-row { flex-wrap: wrap; margin: 26px 0 14px; }
.hero-phone-link { display: inline-flex; align-items: center; min-height: 50px; color: var(--deep-olive); font-weight: 600; text-underline-offset: 5px; }
.whatsapp-link { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; font-size: 0.88rem; font-weight: 600; text-underline-offset: 5px; opacity: 0.75; }
.whatsapp-link:hover { opacity: 1; }
.availability { margin: 4px 0 0; font-size: 0.82rem; font-weight: 600; color: var(--muted); }
.reassurance { max-width: 650px; margin: 12px 0 0; padding: 13px 16px; border-left: 4px solid var(--queen-orange); border-radius: 0 10px 10px 0; background: var(--pale-pistachio); color: var(--accessible-olive); font-size: 1rem; font-weight: 700; line-height: 1.55; }
.hero-card { position: relative; grid-area: image; width: min(100%, 610px); margin: 0; justify-self: center; }
.hero-card::before {
  content: "";
  position: absolute;
  inset: 26px -22px -22px 28px;
  z-index: -1;
  border-radius: 38% 62% 38% 62% / 54% 35% 65% 46%;
  background: var(--champagne-cream);
}
.hero-card img {
  display: block;
  width: 100%;
  aspect-ratio: 5 / 4;
  object-fit: cover;
  object-position: right center;
  border-radius: var(--radius);
}
.hero-card figcaption {
  position: absolute;
  right: 14px;
  bottom: 16px;
  display: flex;
  flex-direction: column;
  min-width: 182px;
  padding: 11px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-small);
  background: var(--almond-white);
  box-shadow: var(--shadow);
}
.hero-card figcaption { font-size: 0.9rem; }
.hero-card figcaption span { font-size: 0.76rem; }

.trust-strip {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  max-width: var(--content);
  margin: -22px auto 0;
  padding: 25px 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--almond-white);
  box-shadow: var(--shadow);
}
.trust-strip p { display: flex; gap: 11px; align-items: center; margin: 0; padding: 0 18px; font-size: 0.88rem; font-weight: 700; }
.trust-strip p + p { border-left: 1px solid var(--mist-taupe); }
.trust-strip span { display: grid; flex: 0 0 27px; width: 27px; height: 27px; place-items: center; border-radius: 50%; background: var(--soft-sage); color: var(--accessible-olive); }

.section { position: relative; padding: clamp(76px, 9vw, 128px) var(--gutter); }
.section > * { max-width: var(--content); margin-right: auto; margin-left: auto; }
.section-heading { max-width: 820px; margin-bottom: 48px; text-align: center; }
.section-heading > p:not(.eyebrow) { color: var(--muted); font-size: 1.05rem; }
.section-heading-left { margin-left: max(0px, calc((100% - var(--content)) / 2)); text-align: left; }
.section-split { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(360px, 0.75fr); gap: clamp(48px, 8vw, 110px); max-width: none; }
.section-split > * { width: 100%; }
.section-intro p:not(.eyebrow) { max-width: 620px; color: var(--muted); font-size: 1.08rem; }
.section-intro p.list-label, .list-label { font-size: 0.82rem; font-weight: 700; color: var(--accessible-olive); text-transform: uppercase; letter-spacing: 0.04em; margin-top: 18px; }
.problem-section { margin-top: 92px; background: var(--champagne-cream); }
.problem-list { margin: 0; padding: 0; list-style: none; }
.problem-list li { position: relative; padding: 18px 18px 18px 44px; border-bottom: 1px solid rgba(85, 107, 91, 0.28); font-weight: 600; }
.problem-list li::before { content: ""; position: absolute; top: 26px; left: 10px; width: 9px; height: 9px; border-radius: 50%; background: var(--queen-orange); }
.decision-callout { margin-top: 26px; padding: 18px 20px; border-left: 4px solid var(--queen-orange); border-radius: 12px; background: var(--champagne-cream); color: var(--accessible-olive); font-weight: 700; }
.process-trust { margin: 30px auto 0; color: var(--accessible-olive); font-weight: 700; text-align: center; }

.process-section { background: var(--almond-white); }
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.steps article { position: relative; min-height: 270px; padding: 32px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--pale-pistachio); }
.steps article:nth-child(2) { background: var(--champagne-cream); }
.steps span, .help-list article > span { display: block; margin-bottom: 46px; color: var(--deep-olive); font-family: "DM Sans", Arial, sans-serif; font-size: 1rem; font-weight: 700; letter-spacing: 0.08em; }
.steps h3 { max-width: 280px; font-family: "DM Serif Display", Georgia, serif; font-size: 1.75rem; font-weight: 400; letter-spacing: -0.015em; }
.steps p { margin-bottom: 0; color: var(--muted); }
.center { margin-top: 40px; text-align: center; }

.help-section { background: var(--champagne-cream); }
.help-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.help-list article { display: grid; grid-template-columns: 55px minmax(0, 0.75fr) minmax(0, 1fr); gap: 20px; align-items: baseline; padding: 28px 20px; border-bottom: 1px solid var(--line); }
.help-list article:nth-child(odd) { border-right: 1px solid var(--line); }
.help-list article > span { margin: 0; }
.help-list h3, .help-list p { margin: 0; }
.help-list p { color: var(--muted); font-size: 0.92rem; }

.pathways-section { background: var(--almond-white); }
.pathways { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.pathways a { display: flex; align-items: center; justify-content: space-between; min-height: 90px; padding: 24px 28px; border: 1px solid var(--line); border-radius: var(--radius-small); background: var(--pale-pistachio); font-weight: 700; text-decoration: none; transition: transform 160ms ease, background 160ms ease; }
.pathways a:first-child { grid-row: span 2; min-height: 194px; background: var(--champagne-cream); font-family: "DM Serif Display", Georgia, serif; font-size: 1.8rem; font-weight: 400; }
.pathways strong { display: block; font-family: "DM Serif Display", Georgia, serif; font-size: 1.25rem; font-weight: 400; }
.pathways small { display: block; max-width: 310px; margin-top: 5px; color: var(--muted); font-size: 0.78rem; font-weight: 500; }
.pathways a:hover { transform: translateY(-2px); background: var(--soft-sage); }
.pathways b { color: var(--accessible-olive); font-size: 1.3rem; }

.meet-section { display: grid; grid-template-columns: minmax(340px, 0.82fr) minmax(0, 1fr); gap: clamp(44px, 8vw, 110px); align-items: center; overflow: hidden; background: var(--deep-olive); color: var(--almond-white); }
.meet-section::before { right: 8%; bottom: -120px; z-index: 0; opacity: 0.18; }
.meet-section > * { position: relative; z-index: 1; }
.meet-image img { display: block; width: 100%; max-height: 650px; object-fit: cover; object-position: center top; border-radius: var(--radius); }
.meet-copy { max-width: 660px; }
.meet-copy h2 { color: var(--almond-white); }
.meet-copy p:not(.eyebrow) { color: var(--champagne-cream); font-size: 1.05rem; }
.meet-copy .button-secondary { margin-top: 14px; border-color: var(--almond-white); color: var(--almond-white); }
.meet-copy .button-secondary:hover { background: var(--almond-white); color: var(--deep-olive); }

.reviews-section { background: var(--champagne-cream); }
.testimonials { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.testimonials figure { display: flex; flex-direction: column; margin: 0; padding: 32px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--almond-white); }
.review-source { color: var(--deep-olive); font-size: 0.78rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; }
.review-source span { color: var(--queen-orange); font-size: 1.2rem; letter-spacing: 2px; }
.review-aggregate { margin: 0 0 28px; text-align: center; font-size: 1rem; font-weight: 700; }
.review-aggregate a { color: var(--deep-olive); text-underline-offset: 4px; }
.review-aggregate span { color: var(--queen-orange); }
.testimonials blockquote { margin: 18px 0 28px; font-size: 1.05rem; line-height: 1.65; }
.testimonials figcaption { margin-top: auto; font-weight: 700; }
.review-link { margin-top: 12px; font-size: 0.84rem; }

.comparison-section { background: var(--almond-white); }
.comparison { overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); }
.comparison > div { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.comparison > div > * { padding: 20px 28px; }
.comparison > div > * + * { border-left: 1px solid var(--line); background: var(--pale-pistachio); }
.comparison > div + div { border-top: 1px solid var(--line); }
.comparison-head { background: var(--deep-olive); color: var(--almond-white); font-weight: 700; }
.comparison-head > * + * { background: var(--accessible-olive) !important; }

.faq-section { background: var(--champagne-cream); }
.success-section { background: var(--almond-white); }
.faq-list { max-width: 920px; }
.faq-list details { border-bottom: 1px solid var(--line); background: var(--almond-white); }
.faq-list details:first-child { border-radius: var(--radius) var(--radius) 0 0; }
.faq-list details:last-child { border-radius: 0 0 var(--radius) var(--radius); border-bottom: 0; }
.faq-list summary { position: relative; min-height: 68px; padding: 22px 60px 22px 24px; font-weight: 700; cursor: pointer; list-style: none; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; position: absolute; top: 17px; right: 22px; color: var(--accessible-olive); font-size: 1.8rem; font-weight: 400; }
.faq-list details[open] summary::after { content: "−"; }
.faq-list details p { margin: -5px 60px 0 24px; padding-bottom: 24px; color: var(--muted); }

.final-cta { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(360px, 0.7fr); gap: clamp(44px, 8vw, 100px); align-items: center; padding: clamp(76px, 9vw, 128px) var(--gutter); background: var(--deep-olive); color: var(--almond-white); }
.final-cta > * { width: 100%; max-width: 590px; }
.final-cta-copy { justify-self: end; }
.final-cta h2 { color: var(--almond-white); }
.final-cta-copy > p:not(.eyebrow) { color: var(--champagne-cream); font-size: 1.15rem; }
.final-cta-copy p.availability { font-size: 0.82rem; }
.final-cta-copy .button { margin-top: 18px; }
.call-form { position: relative; margin: 0; padding: clamp(28px, 4vw, 44px); border-radius: var(--radius); background: var(--almond-white); color: var(--deep-olive); }
.call-form h3 { margin-bottom: 24px; font-family: "DM Serif Display", Georgia, serif; font-size: clamp(1.5rem, 4.5vw, 2.1rem); font-weight: 400; letter-spacing: -0.015em; }
.call-form label { display: block; margin: 13px 0 6px; font-size: 0.85rem; font-weight: 700; }
.call-form label span { font-weight: 400; }
.call-form input { width: 100%; min-height: 48px; padding: 11px 14px; border: 1px solid var(--mist-taupe); border-radius: 10px; background: var(--field-neutral); color: var(--accessible-olive); }
.call-form input:focus,
.call-form input:focus-visible { border-color: var(--accessible-olive); outline: 3px solid var(--accessible-olive); outline-offset: 2px; }
.call-form .button { width: 100%; margin-top: 20px; }
.form-note { margin: 13px 0 0; color: var(--muted); font-size: 0.78rem; text-align: center; }
.statement-check-section { background: var(--pale-pistachio); }
.statement-check-inner { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 56px); align-items: center; }
.statement-check-form { padding: clamp(24px, 3.5vw, 40px); border-radius: var(--radius); background: var(--almond-white); color: var(--deep-olive); }
.statement-check-form label { display: block; margin: 13px 0 6px; font-size: 0.85rem; font-weight: 700; }
.statement-check-form input { width: 100%; min-height: 48px; padding: 11px 14px; border: 1px solid var(--mist-taupe); border-radius: 10px; background: var(--field-neutral); color: var(--accessible-olive); }
.statement-check-form input:focus, .statement-check-form input:focus-visible { border-color: var(--accessible-olive); outline: 3px solid var(--accessible-olive); outline-offset: 2px; }
.statement-check-form .button { width: 100%; margin-top: 20px; }
.form-note a { font-weight: 700; text-underline-offset: 3px; }
.cmq-hp { position: absolute; inset: 0 auto auto 0; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); pointer-events: none; }

.footer { display: grid; justify-items: center; padding: 58px var(--gutter) 100px; background: var(--accessible-olive); color: var(--almond-white); text-align: center; }
.footer .brand img { width: min(420px, 82vw); }
.footer > p { max-width: 570px; color: var(--champagne-cream); }
.footer-address { margin: 0; color: var(--champagne-cream); font-style: normal; }
.footer .social-links { margin: 8px 0 22px; }
.footer nav { flex-wrap: wrap; justify-content: center; }
.footer-legal { margin: 22px 0 0; font-size: 0.8rem; }
.mobile-actions { display: none; }

@media (max-width: 1180px) {
  .site-header { grid-template-columns: auto auto 1fr; }
  .phone-link { display: none; }
  .menu-toggle { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 9px 16px; border: 1px solid var(--deep-olive); border-radius: 999px; background: transparent; color: var(--deep-olive); font-weight: 700; }
  .nav { position: absolute; top: calc(100% + 1px); right: 20px; left: 20px; display: none; flex-direction: column; align-items: stretch; padding: 18px; border: 1px solid var(--line); border-radius: 0 0 var(--radius) var(--radius); background: var(--almond-white); box-shadow: var(--shadow); }
  .nav.is-open { display: flex; }
  .nav a { display: flex; align-items: center; min-height: 44px; padding: 5px 10px; }
  .header-actions { justify-self: end; }
  .hero { grid-template-columns: minmax(0, 1fr) minmax(360px, 0.82fr); }
  .hero h1 { font-size: clamp(3.5rem, 6vw, 4rem); }
  .trust-strip { margin-right: 20px; margin-left: 20px; }
  .help-list article { grid-template-columns: 40px 1fr; }
  .help-list p { grid-column: 2; }
}

@media (max-width: 820px) {
  body { padding-bottom: calc(68px + env(safe-area-inset-bottom)); }
  .site-header { min-height: 72px; padding: 10px 18px; }
  .brand img { width: min(58vw, 238px); }
  .header-actions { display: none; }
  .site-header { grid-template-columns: 1fr auto; }
  .menu-toggle { grid-column: 2; }
  .nav a.nav-call { display: flex; color: var(--orange-link); }
  .hero { grid-template-columns: 1fr; grid-template-areas: "copy" "image" "actions"; gap: 25px; padding-top: 38px; padding-bottom: 58px; }
  .hero h1 { max-width: 680px; font-size: clamp(3.25rem, 8vw, 4.1rem); line-height: 1.03; }
  .hero-card { width: min(100%, 560px); }
  .hero-card img { height: 300px; aspect-ratio: auto; border-radius: var(--radius); object-position: right center; }
  .hero-card figcaption { right: 12px; bottom: 12px; }
  .trust-strip { grid-template-columns: repeat(2, 1fr); margin-top: -20px; }
  .trust-strip p { padding: 12px; }
  .trust-strip p + p { border-left: 0; }
  .trust-strip p:nth-child(even) { border-left: 1px solid var(--mist-taupe); }
  .section-split, .meet-section, .final-cta { grid-template-columns: 1fr; }
  .problem-section { margin-top: 50px; }
  .steps, .testimonials, .statement-check-inner { grid-template-columns: 1fr; }
  .steps article { min-height: 0; }
  .steps span { margin-bottom: 30px; }
  .help-list { grid-template-columns: 1fr; }
  .help-list article:nth-child(odd) { border-right: 0; }
  .pathways { grid-template-columns: 1fr; }
  .pathways a:first-child { grid-row: auto; min-height: 120px; }
  .meet-image { width: min(100%, 520px); }
  .final-cta-copy { justify-self: auto; }
  .mobile-actions { position: fixed; right: 0; bottom: 0; left: 0; z-index: 30; display: flex; min-height: calc(58px + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom); border-top: 1px solid rgba(255,255,255,.2); background: var(--accessible-olive); transform: translateY(110%); visibility: hidden; transition: transform 180ms ease, visibility 180ms ease; }
  .mobile-actions.is-visible { transform: translateY(0); visibility: visible; }
  .mobile-actions a { display: flex; width: 100%; align-items: center; justify-content: center; gap: 8px; padding: 10px; background: var(--accessible-olive); color: var(--almond-white); font-size: 0.9rem; font-weight: 700; text-align: center; text-decoration: none; }
  .mobile-actions a span { color: var(--almond-white); }
}

@media (max-width: 520px) {
  .cta-row { align-items: stretch; flex-direction: column; }
  .cta-row .button { width: 100%; padding-right: 18px; padding-left: 18px; white-space: nowrap; }
  .hero-phone-link { justify-content: center; }
  .whatsapp-link { display: block; text-align: center; }
  .site-header { min-height: 58px; padding-top: 6px; padding-bottom: 6px; }
  .hero { gap: 6px; padding-top: 6px; padding-bottom: 44px; }
  .hero-copy .eyebrow { margin-bottom: 6px; }
  .hero h1 { margin-bottom: 0; font-size: clamp(2.6875rem, 11.6vw, 2.875rem); line-height: .94; }
  .hero-card img { height: 215px; border-radius: var(--radius); object-position: 76% center; }
  .hero-card figcaption { min-width: 154px; padding: 8px 12px; }
  .hero-lede { margin-bottom: 0; font-size: .95rem; line-height: 1.4; }
  .cta-row { margin: 4px 0 10px; }
  .trust-strip { grid-template-columns: 1fr; padding: 15px; }
  .trust-strip p, .trust-strip p:nth-child(even) { border-left: 0; }
  .trust-strip p + p { border-top: 1px solid var(--mist-taupe); }
  .help-list article { grid-template-columns: 36px 1fr; padding-right: 0; padding-left: 0; }
  .comparison > div > * { padding: 16px 12px; font-size: 0.84rem; }
  .faq-list details p { margin-right: 24px; }
  .footer nav { flex-direction: column; gap: 10px; }
}

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

/* --- guide grid (homepage internal links) --------------------------------- */

.guides-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr));
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.guides-grid a {
  display: grid;
  gap: 6px;
  height: 100%;
  padding: 22px 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 252, 247, 0.9);
  box-shadow: var(--shadow);
  text-decoration: none;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.guides-grid a:hover,
.guides-grid a:focus-visible {
  transform: translateY(-4px);
  border-color: rgba(244, 124, 32, 0.36);
  box-shadow: var(--shadow-hover);
}

.guides-grid strong {
  color: var(--olive);
  font-size: 1.04rem;
  font-weight: 900;
}

.guides-grid span {
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.45;
}

/* --- homepage FAQ --------------------------------------------------------- */

.faq-list {
  max-width: 46rem;
  margin: 0 auto;
}

.faq-list details {
  padding: 0.95rem 1.25rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 252, 247, 0.9);
}

.faq-list details + details {
  margin-top: 0.7rem;
}

.faq-list summary {
  color: var(--olive);
  font-weight: 800;
  cursor: pointer;
}

.faq-list details[open] summary {
  margin-bottom: 0.6rem;
}

.faq-list p {
  margin: 0;
  color: var(--muted);
}

.text-link {
  color: var(--orange-text);
  font-weight: 900;
  text-underline-offset: 4px;
}

.text-link:hover {
  color: var(--olive);
}

/* --- 2.0.7 corrections ---------------------------------------------------- */

/* The checklist and its label share the right-hand column. */
.problem-checks { align-self: start; }
.problem-checks .list-label { margin: 0 0 6px; }

/* .meet-copy p:not(.eyebrow) was overriding these on the dark olive panel,
   leaving cream text on a pale strip and a near-black link on dark green. */
.meet-copy p.reassurance { color: var(--accessible-olive); }
.meet-copy .text-link { color: var(--almond-white); }
.meet-copy .text-link:hover { color: var(--queen-orange); }

/* Three reasons, three cards. The old two-column rule left the third item
   stranded and the rows pressed together. */
.help-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  border-top: 0;
}

.help-list article {
  display: block;
  padding: 32px;
  border: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--pale-pistachio);
}

.help-list article:nth-child(odd) { border-right: 1px solid var(--line); }
.help-list article:nth-child(2) { background: var(--champagne-cream); }

.help-list article > span {
  display: block;
  margin: 0 0 34px;
  color: var(--deep-olive);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.help-list h3 {
  margin: 0 0 10px;
  max-width: 280px;
  font-family: "DM Serif Display", Georgia, serif;
  font-size: 1.5rem;
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.015em;
}

.help-list p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

@media (max-width: 980px) {
  .help-list { grid-template-columns: 1fr; }
  .help-list article > span { margin-bottom: 18px; }
}

/* Trade tiles are recognition, not navigation: nothing here leaves the page. */
.guides-grid li {
  display: grid;
  gap: 6px;
  height: 100%;
  padding: 22px 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--almond-white);
  box-shadow: var(--shadow);
}

.guides-grid li strong {
  color: var(--deep-olive);
  font-size: 1.04rem;
  font-weight: 700;
}

.guides-grid li span {
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.5;
}

/* Guide links live in the footer, where they give Google crawl paths into the
   articles without pulling a ready-to-call reader off the page. */
.footer-guides {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 20px;
  max-width: 780px;
  font-size: 0.84rem;
}

.footer-guides a { color: var(--muted); font-weight: 600; }
.footer-guides a:hover { color: var(--queen-orange); }

/* Social row sits in the footer only. Icons are given an explicit size here so
   they can never inherit the container's dimensions. */
.footer .social-links {
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: center;
}

.footer .social-links a {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--deep-olive);
  transition: background 160ms ease, color 160ms ease, border-color 160ms ease;
}

.footer .social-links a:hover,
.footer .social-links a:focus-visible {
  border-color: var(--queen-orange);
  background: var(--queen-orange);
  color: var(--almond-white);
}

.footer .social-links svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.footer-social-label {
  margin: 0;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 700;
}

/* =========================================================================
   Original-homepage layout
   Styles the original page's markup with the existing design tokens only.
   No colours, fonts or tokens are changed above this line.
   ========================================================================= */

/* Hero: original keeps the lede, CTAs and reassurance inside .hero-copy and
   has no separate .hero-actions block, so the grid is a clean two columns. */
.hero {
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.82fr);
  grid-template-areas: none;
  align-items: center;
}
.hero-copy { grid-area: auto; align-self: center; }
.hero-card { grid-area: auto; }
.hero .cta-row { margin: 26px 0 18px; }

/* Trust strip: original uses numbered <article> blocks (span + heading + text)
   rather than single <p> rows. */
.trust-strip { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.trust-strip article {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin: 0;
  padding: 4px 24px;
}
.trust-strip article + article { border-left: 1px solid var(--mist-taupe); }
.trust-strip article span {
  display: grid;
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 50%;
  background: var(--soft-sage);
  color: var(--accessible-olive);
  font-size: 0.82rem;
  font-weight: 700;
}
.trust-strip article h2 {
  margin: 0 0 3px;
  font-family: "DM Sans", Arial, sans-serif;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.25;
}
.trust-strip article p {
  margin: 0;
  padding: 0;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 500;
}

/* Video section: rounded 16:9 embed beside the "Hi, I'm Zoe" copy.
   Full-bleed dark band, following the .meet-section pattern: the background
   runs edge to edge while padding-inline keeps the content on the --content
   measure. */
.video-section {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.85fr);
  gap: clamp(38px, 6vw, 80px);
  align-items: center;
  padding-block: clamp(64px, 8vw, 110px);
  padding-inline: max(var(--gutter), calc((100% - var(--content)) / 2));
  background: var(--deep-olive);
  color: var(--almond-white);
}
.video-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 1px solid rgba(255, 252, 247, 0.14);
  border-radius: var(--radius);
  background: var(--accessible-olive);
}
.video-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.video-copy { max-width: 560px; }
.video-copy h2 { margin-bottom: 16px; color: var(--almond-white); }
.video-copy p:not(.eyebrow):not(.reassurance) { color: var(--champagne-cream); font-size: 1.05rem; }
/* Eyebrow on the dark band, matching .final-cta .eyebrow. The .reassurance
   chip needs no override here: unlike .meet-copy, the rule above already
   exempts it, so it keeps its own pistachio/accessible-olive treatment. */
.video-section .eyebrow { color: var(--champagne-cream); }

/* How it works: original has four steps rather than three. */
#how-it-works .steps { grid-template-columns: repeat(4, minmax(0, 1fr)); }
#how-it-works .steps article:nth-child(2) { background: var(--pale-pistachio); }
#how-it-works .steps article:nth-child(even) { background: var(--champagne-cream); }
#how-it-works .steps h3 { font-size: 1.5rem; }
@media (max-width: 1080px) { #how-it-works .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { #how-it-works .steps { grid-template-columns: 1fr; } }

/* "Is this you?": champagne band, centred heading, readable copy measure. */
.problem-section { padding: clamp(76px, 9vw, 128px) var(--gutter); }
.problem-section > * { max-width: 860px; margin-inline: auto; }
.problem-section .eyebrow,
.problem-section h2 { text-align: center; }
.problem-copy { max-width: 760px; }
.problem-copy p { color: var(--deep-olive); font-size: 1.12rem; }
.problem-copy p + p { margin-top: 16px; }
.problem-copy p strong { color: var(--accessible-olive); }

/* "Why business owners call Zoe": image beside copy with an orange check list. */
.why-section {
  display: grid;
  grid-template-columns: minmax(320px, 0.85fr) minmax(0, 1fr);
  gap: clamp(44px, 8vw, 100px);
  align-items: center;
  max-width: var(--content);
  margin-inline: auto;
}
.why-section > * { max-width: none; width: 100%; margin: 0; }
.why-image img {
  display: block;
  width: 100%;
  max-height: 620px;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.why-copy p:not(.eyebrow) { color: var(--muted); font-size: 1.05rem; }
.check-list { margin: 24px 0 0; padding: 0; list-style: none; }
.check-list li {
  position: relative;
  padding: 9px 0 9px 34px;
  border-bottom: 1px solid var(--line);
  color: var(--deep-olive);
  font-weight: 600;
}
.check-list li:last-child { border-bottom: 0; }
.check-list li::before {
  content: "\2713";
  position: absolute;
  left: 4px;
  top: 9px;
  color: var(--queen-orange);
  font-weight: 800;
}

/* Final CTA on the dark-olive band: keep eyebrow, copy and promises legible. */
.final-cta .eyebrow { color: var(--champagne-cream); }
.contact-promises { margin: 22px 0 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.contact-promises li {
  position: relative;
  padding-left: 30px;
  color: var(--champagne-cream);
  font-weight: 600;
}
.contact-promises li::before {
  content: "\2713";
  position: absolute;
  left: 2px;
  top: 0;
  color: var(--queen-orange);
  font-weight: 800;
}
.call-direct {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 44px;
  margin-top: 14px;
  color: var(--deep-olive);
  font-weight: 700;
  text-decoration: none;
  text-underline-offset: 4px;
}
.call-direct:hover { text-decoration: underline; text-decoration-color: var(--queen-orange); }

/* Two-link mobile sticky bar (Call Zoe / Request a call). */
.mobile-actions a + a { border-left: 1px solid rgba(255, 255, 255, 0.2); }

@media (max-width: 820px) {
  /* Re-stack the hero on mobile. This rule must live below the desktop
     two-column .hero rule in the "Original-homepage layout" block, otherwise
     source order lets the desktop rule win and the image track crushes the
     text column. Single column: copy first, image beneath. */
  .hero { grid-template-columns: 1fr; align-items: start; }
  .hero-copy { align-self: start; }
  .hero-card { width: min(100%, 560px); justify-self: center; }
  .trust-strip { grid-template-columns: 1fr; }
  .trust-strip article { padding: 14px 16px; }
  .trust-strip article + article { border-left: 0; border-top: 1px solid var(--mist-taupe); }
  .video-section,
  .why-section { grid-template-columns: 1fr; }
  .why-image img { max-height: 460px; }
}

/* Social icons in the header (footer icons are styled above). */
.site-header .social-links { display: flex; gap: 10px; align-items: center; }
.site-header .social-links a {
  display: grid;
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid rgba(85, 107, 91, 0.4);
  border-radius: 50%;
  background: transparent;
  color: var(--deep-olive);
  transition: background 160ms ease, color 160ms ease, border-color 160ms ease;
}
.site-header .social-links a:hover,
.site-header .social-links a:focus-visible {
  border-color: var(--queen-orange);
  background: var(--queen-orange);
  color: var(--almond-white);
}
/* Explicit size + display:block so the viewBox-only SVG can never scale up to
   fill the circle (which reads as a solid dark disc). */
.site-header .social-links svg { display: block; width: 18px; height: 18px; fill: currentColor; }

/* Footer social icons sit on the dark-olive footer: draw them light so they
   are legible at rest, not only on hover (hover still fills orange). */
.footer .social-links a {
  color: var(--almond-white);
  border-color: rgba(255, 252, 247, 0.45);
}

/* The header-actions social row is hidden on mobile with the rest of the
   actions cluster, so surface the icons inside the open mobile menu instead.
   Hidden on desktop, where the header-actions icons are already visible. */
.nav .social-links { display: none; }

@media (max-width: 820px) {
  .nav .social-links {
    display: flex;
    gap: 14px;
    justify-content: center;
    margin-top: 8px;
    padding-top: 14px;
    border-top: 1px solid var(--line);
  }
  .nav .social-links a {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 50%;
    color: var(--deep-olive);
    transition: background 160ms ease, color 160ms ease, border-color 160ms ease;
  }
  .nav .social-links a:hover,
  .nav .social-links a:focus-visible {
    border-color: var(--queen-orange);
    background: var(--queen-orange);
    color: var(--almond-white);
  }
  .nav .social-links svg { width: 18px; height: 18px; fill: currentColor; }
}

/* --- Mobile hero rhythm --------------------------------------------------
   The legacy <=520 rules crammed the hero to fit a side-by-side image above
   the fold (line-height .94, zero heading margin, 6px top padding). The hero
   now stacks, so restore breathing room: space under the sticky header,
   normal heading leading, and a clear gap before the paragraph and buttons.
   This block is last in the file, so it wins over the legacy rules. */
@media (max-width: 820px) {
  .hero { gap: 22px; padding-top: 30px; padding-bottom: 48px; align-items: start; }
  .hero-copy .eyebrow { margin-bottom: 12px; }
  .hero h1 { margin-bottom: 16px; line-height: 1.07; font-size: clamp(2.2rem, 8.5vw, 3.3rem); }
  .hero-lede { margin-bottom: 0; font-size: 1rem; line-height: 1.5; }
  .hero .cta-row { margin: 20px 0 0; }
  .hero .reassurance { margin-top: 16px; }
  .hero-card { margin-top: 4px; }
}

/* =========================================================================
   2.1.9 Motion & micro-interaction layer (additive only)

   Everything below this banner is an enhancement pass on the finished
   design: no colours, fonts, copy or layout change. Each numbered block
   (M1–M11) is self-contained — delete a block to remove that enhancement.

   Accessibility: all entrance/reveal styles only apply under .reveal-ready,
   which site.js never adds when the visitor prefers reduced motion, and the
   site-wide prefers-reduced-motion block above squashes every transition and
   animation as a second line of defence. Block M11 adds a third, explicit
   safety net for the new hidden states.
   ========================================================================= */

/* --- M1. Motion tokens & shared keyframes ---------------------------------
   New custom properties only; the existing :root variables are untouched. */
:root {
  --cmq-ease: cubic-bezier(0.22, 1, 0.36, 1);        /* soft, decisive ease-out for entrances */
  --cmq-ease-gentle: cubic-bezier(0.33, 1, 0.68, 1); /* smaller, calmer — for hover moves */
}

/* One rise and one slide, reused by the reveals, the stagger and the hero. */
@keyframes cmq-rise {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: none; }
}
@keyframes cmq-slide-in {
  from { opacity: 0; transform: translateX(-12px); }
  to   { opacity: 1; transform: none; }
}

/* --- M2. Refined [data-reveal]: graceful easing + directional variety -----
   The base reveal (line ~102) used a uniform 250ms ease translateY. These
   overrides keep the same mechanism (is-revealed still just clears
   opacity/transform) but slow it to 400ms on a soft ease-out, and vary the
   direction per section so the page doesn't repeat one identical move. */
.reveal-ready [data-reveal] {
  transform: translateY(20px);
  transition: opacity 400ms var(--cmq-ease), transform 400ms var(--cmq-ease);
}

/* Full-width colour bands read better as a calm pure fade than a slide. */
.reveal-ready .problem-section[data-reveal],
.reveal-ready .video-section[data-reveal],
.reveal-ready .final-cta[data-reveal] { transform: none; }

/* The "why business owners call Zoe" section leads with its portrait,
   so it eases in gently from the left instead of rising. Scoped to
   :not(.is-revealed): this rule sits after the original is-revealed rule
   (same specificity), so it must stop matching once the section reveals. */
.reveal-ready .why-section[data-reveal]:not(.is-revealed) { transform: translateX(-22px); }

/* Sections whose children stagger (M3) hold still themselves — the parent
   only fades, so the card-by-card motion inside is the star. */
.reveal-ready .trust-strip[data-reveal],
.reveal-ready #how-it-works[data-reveal],
.reveal-ready .reviews-section[data-reveal] { transform: none; }

/* --- M3. Staggered child reveals -------------------------------------------
   Trust-strip items, how-it-works steps, review cards and the check-list
   ticks arrive one after another instead of as a single slab. Implemented
   with a keyframe + animation-delay (not transition-delay) so the delay
   evaporates once the entrance finishes and can never lag a later hover
   transition. `backwards` fill keeps each child hidden while it waits. */
.reveal-ready .trust-strip[data-reveal]:not(.is-revealed) article,
.reveal-ready [data-reveal]:not(.is-revealed) .steps article,
.reveal-ready [data-reveal]:not(.is-revealed) .testimonials figure,
.reveal-ready .why-section[data-reveal]:not(.is-revealed) .check-list li { opacity: 0; }

.reveal-ready .trust-strip[data-reveal].is-revealed article,
.reveal-ready [data-reveal].is-revealed .steps article,
.reveal-ready [data-reveal].is-revealed .testimonials figure {
  animation: cmq-rise 400ms var(--cmq-ease) backwards;
}
.reveal-ready .trust-strip[data-reveal].is-revealed article:nth-child(2),
.reveal-ready [data-reveal].is-revealed .steps article:nth-child(2),
.reveal-ready [data-reveal].is-revealed .testimonials figure:nth-child(2) { animation-delay: 90ms; }
.reveal-ready .trust-strip[data-reveal].is-revealed article:nth-child(3),
.reveal-ready [data-reveal].is-revealed .steps article:nth-child(3),
.reveal-ready [data-reveal].is-revealed .testimonials figure:nth-child(3) { animation-delay: 180ms; }
.reveal-ready [data-reveal].is-revealed .steps article:nth-child(4) { animation-delay: 270ms; }

/* Check-list ticks cascade in from the left, quickly (50ms apart). */
.reveal-ready .why-section[data-reveal].is-revealed .check-list li {
  animation: cmq-slide-in 350ms var(--cmq-ease) backwards;
}
.reveal-ready .why-section[data-reveal].is-revealed .check-list li:nth-child(2) { animation-delay: 50ms; }
.reveal-ready .why-section[data-reveal].is-revealed .check-list li:nth-child(3) { animation-delay: 100ms; }
.reveal-ready .why-section[data-reveal].is-revealed .check-list li:nth-child(4) { animation-delay: 150ms; }
.reveal-ready .why-section[data-reveal].is-revealed .check-list li:nth-child(5) { animation-delay: 200ms; }
.reveal-ready .why-section[data-reveal].is-revealed .check-list li:nth-child(6) { animation-delay: 250ms; }
.reveal-ready .why-section[data-reveal].is-revealed .check-list li:nth-child(7) { animation-delay: 300ms; }

/* --- M4. Hero entrance sequence (first load) -------------------------------
   The hero section opts out of the generic reveal and instead sequences its
   own children: eyebrow → heading → lede → CTAs → reassurance, with the
   portrait rising alongside. Gated on .reveal-ready like everything else,
   so no-JS and reduced-motion visitors simply see the hero at rest. */
.reveal-ready .hero[data-reveal] { opacity: 1; transform: none; transition: none; }

.reveal-ready .hero .hero-copy > * { animation: cmq-rise 400ms var(--cmq-ease) both; }
.reveal-ready .hero .hero-copy > *:nth-child(2) { animation-delay: 70ms; }
.reveal-ready .hero .hero-copy > *:nth-child(3) { animation-delay: 140ms; }
.reveal-ready .hero .hero-copy > *:nth-child(4) { animation-delay: 210ms; }
.reveal-ready .hero .hero-copy > *:nth-child(5) { animation-delay: 280ms; }
.reveal-ready .hero .hero-card { animation: cmq-rise 400ms var(--cmq-ease) 160ms both; }

/* --- M5. Sticky-header scrolled state ---------------------------------------
   site.js toggles .is-scrolled once the page leaves the very top. At rest the
   header keeps its flat look; scrolled, it picks up a soft shadow and lets a
   touch more of the backdrop blur through. Same ink tone as --shadow. */
.site-header {
  transition: box-shadow 250ms var(--cmq-ease), background-color 250ms var(--cmq-ease);
}
.site-header.is-scrolled {
  background: rgba(255, 252, 247, 0.9);
  box-shadow: 0 12px 34px rgba(38, 55, 43, 0.1);
}

/* --- M6. Buttons: shadow bloom, press state, CTA sheen ----------------------
   Extends the original .button transition (transform/background/border-color)
   with box-shadow and color, keeps the existing -2px hover lift, and adds a
   quick "press" so clicks feel physical. Shadow uses the existing tokens. */
.button {
  position: relative;
  overflow: hidden; /* clips the sheen; box-shadow and focus outline are unaffected */
  transition:
    transform 160ms var(--cmq-ease-gentle),
    background 160ms ease,
    border-color 160ms ease,
    color 160ms ease,
    box-shadow 240ms var(--cmq-ease-gentle);
}
.button:hover,
.button:focus-visible { box-shadow: var(--shadow-hover); }
.button:active {
  transform: translateY(0);
  box-shadow: var(--shadow);
  transition-duration: 80ms;
}

/* Soft light sweep across the primary orange CTA on hover/focus. Runs once
   per hover (animation, not transition), never intercepts the pointer. */
.button:not(.button-secondary)::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 40%;
  background: linear-gradient(105deg,
    rgba(255, 252, 247, 0) 0%,
    rgba(255, 252, 247, 0.4) 50%,
    rgba(255, 252, 247, 0) 100%);
  transform: translateX(-150%) skewX(-18deg);
  opacity: 0;
  pointer-events: none;
}
.button:not(.button-secondary):hover::after,
.button:not(.button-secondary):focus-visible::after {
  animation: cmq-sheen 550ms var(--cmq-ease);
}
@keyframes cmq-sheen {
  from { opacity: 1; transform: translateX(-150%) skewX(-18deg); }
  to   { opacity: 1; transform: translateX(350%) skewX(-18deg); }
}

/* --- M7. Underline-draw on nav and footer links -----------------------------
   An orange rule draws in from the left on hover/focus and exits to the
   right (origin swap). Header version is desktop-only: in the ≤1180px
   dropdown menu the links are full-width rows where a drawn rule misreads. */
@media (min-width: 1181px) {
  .nav a { position: relative; }
  .nav a::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: 9px;
    left: 0;
    height: 2px;
    border-radius: 2px;
    background: var(--queen-orange);
    transform: scaleX(0);
    transform-origin: 100% 50%;
    transition: transform 240ms var(--cmq-ease);
  }
  .nav a:hover::after,
  .nav a:focus-visible::after {
    transform: scaleX(1);
    transform-origin: 0 50%;
  }
}
.footer nav a { position: relative; }
.footer nav a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 7px;
  left: 0;
  height: 2px;
  border-radius: 2px;
  background: var(--queen-orange);
  transform: scaleX(0);
  transform-origin: 100% 50%;
  transition: transform 240ms var(--cmq-ease);
}
.footer nav a:hover::after,
.footer nav a:focus-visible::after {
  transform: scaleX(1);
  transform-origin: 0 50%;
}

/* --- M8. Smooth colour transitions on text links ---------------------------
   The hover colours already exist; this only makes the change glide instead
   of snap. Underlined links also thicken their orange rule slightly. */
.nav a,
.footer a,
.phone-link,
.hero-phone-link,
.whatsapp-link,
.text-link,
.review-link,
.review-aggregate a,
.footer-guides a,
.call-direct {
  transition: color 180ms ease, opacity 180ms ease,
    text-decoration-color 180ms ease, text-decoration-thickness 180ms ease;
}
.text-link:hover,
.text-link:focus-visible,
.review-link:hover,
.review-link:focus-visible { text-decoration-thickness: 2px; }

/* --- M9. Card & tile micro-interactions -------------------------------------
   Steps, review cards and help tiles get a gentle 3px raise with a soft
   shadow bloom (rest cards are flat, so blooming to --shadow is enough).
   Pathway tiles keep their existing hover and add the bloom plus an
   arrow-nudge on the trailing glyph. Form fields ease their focus colours. */
.steps article,
.help-list article,
.testimonials figure {
  transition: transform 240ms var(--cmq-ease-gentle), box-shadow 240ms var(--cmq-ease-gentle);
}
.steps article:hover,
.help-list article:hover,
.testimonials figure:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.pathways a {
  transition: transform 160ms var(--cmq-ease-gentle), background 160ms ease,
    box-shadow 240ms var(--cmq-ease-gentle);
}
.pathways a:hover,
.pathways a:focus-visible { box-shadow: var(--shadow-hover); }
.pathways b { transition: transform 200ms var(--cmq-ease-gentle); }
.pathways a:hover b,
.pathways a:focus-visible b { transform: translateX(5px); }

.call-form input,
.statement-check-form input {
  transition: border-color 160ms ease, background-color 160ms ease;
}

/* --- M10. Mobile menu entrance ----------------------------------------------
   The dropdown already toggles via display; an animation (which restarts on
   display change) lets it settle in rather than pop. Toggle logic untouched. */
@media (max-width: 1180px) {
  .nav.is-open { animation: cmq-menu-in 220ms var(--cmq-ease); }
}
@keyframes cmq-menu-in {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: none; }
}

/* --- M11. Reduced-motion safety net ------------------------------------------
   .reveal-ready is never added under reduced motion, and the global
   prefers-reduced-motion block already zeroes durations — but if the OS
   setting flips mid-session, this guarantees nothing above can hide content
   or sweep light across a button. */
@media (prefers-reduced-motion: reduce) {
  .reveal-ready [data-reveal] article,
  .reveal-ready [data-reveal] .testimonials figure,
  .reveal-ready [data-reveal] .check-list li,
  .reveal-ready .hero .hero-copy > *,
  .reveal-ready .hero .hero-card {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
  }
  .button:not(.button-secondary)::after { content: none; }
  .nav a::after,
  .footer nav a::after { transition: none; }
}
