/* Lucas Edwards Fitness
   One page, no framework. Rebuilt from the WordPress (Avada) site in November 2026, then given its own design:
   sticky header, hero with actions, credentials strip, plan cards, "Why Lucas", two-column contact, blue newsletter band. */

/* Fonts: Questrial (headings) and Oxygen (text), self-hosted. SIL Open Font License 1.1. */
@font-face {
  font-family: "Questrial";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/questrial-latin-400-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Oxygen";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/oxygen-latin-400-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Oxygen";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/oxygen-latin-700-normal.woff2") format("woff2");
}

:root {
  --white: #ffffff;
  --paper: #f4f4f6;       /* light panels */
  --grey: #9490a0;        /* labels, footer text */
  /* Accents: the blue and black from Lucas's original logo. Black text on the blue (8:1);
     white text on it is too faint, so blue text on light backgrounds uses the darker blues. */
  --blue: #1babe2;        /* logo blue: buttons, accents, icons on black */
  --blue-light: #4cc3ef;  /* button hover */
  --blue-dark: #0a77a8;   /* blue text on white */
  --blue-deep: #075a80;   /* blue text on the grey Training Plans background */
  --ink: #333333;         /* body text on light backgrounds */
  --black: #000000;
  --facebook: #1877f2;
  --instagram: #e1306c;
  --divider: #9c9ba1;     /* the V at the top of "Get Started" */

  --font-heading: "Questrial", Arial, Helvetica, sans-serif;
  --font-body: "Oxygen", Arial, Helvetica, sans-serif;

  --site-width: 1140px;   /* header and footer */
  --row-width: 1186px;    /* page sections */
  --gutter: 30px;
  --header-h: 104px;
  --ease-out: cubic-bezier(.2, .8, .2, 1);
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: 1px;
  color: var(--grey);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, svg { display: block; max-width: 100%; }

h1, h2, h3 {
  margin: 0;
  font-family: var(--font-heading);
  font-weight: 400;
  line-height: 1.1;
  text-align: center;
}

p { margin: 0 0 20px; }

a { color: var(--blue-dark); }

main section[id] { scroll-margin-top: 80px; }

.wrap {
  width: 100%;
  max-width: calc(var(--row-width) + 2 * var(--gutter));
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.wrap.narrow { max-width: calc(745px + 2 * var(--gutter)); }

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

.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--black);
  color: var(--white);
  text-decoration: none;
}
.skip-link:focus { top: 12px; }

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

/* line icons drawn for the site (credentials, "Why Lucas") */
.icon {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* small uppercase label above a heading */
.eyebrow {
  margin: 0 0 14px;
  font-size: 13px;
  line-height: 1.4;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--blue-dark);
  text-align: center;
}

.section-title {
  font-size: clamp(34px, 1.4rem + 2.8vw, 56px);
  letter-spacing: .015em;
  color: var(--black);
}
/* a short blue accent under each section heading, drawn when the heading appears */
.section-title::after {
  content: "";
  display: block;
  width: 56px;
  height: 3px;
  margin: 18px auto 0;
  background: var(--blue);
  transform-origin: center;
  transition: transform .7s .35s var(--ease-out);
}
.section-title.is-left { text-align: left; }
.section-title.is-left::after { margin-left: 0; transform-origin: left; }

/* ---------- Header (stays at the top, slims down once you scroll) ---------- */

/* Pinned over the page rather than sitting in it, with a fixed-height space reserved below it, so the
   header slimming down or growing back never moves the page (it used to make the page lurch at the top). */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 40;
  background: rgba(255, 255, 255, .96);
  -webkit-backdrop-filter: saturate(1.4) blur(8px);
  backdrop-filter: saturate(1.4) blur(8px);
  transition: box-shadow .3s ease;
}
.site-header.is-scrolled { box-shadow: 0 6px 24px rgba(0, 0, 0, .08); }
.site-header ~ main { padding-top: var(--header-h); }

.header-inner {
  max-width: calc(var(--site-width) + 2 * var(--gutter));
  display: flex;
  align-items: center;
  gap: 24px;
  height: var(--header-h);
  transition: height .3s var(--ease-out);
}
.is-scrolled .header-inner { height: 72px; }

.logo { display: block; margin-right: auto; }
.logo img { width: 160px; height: auto; transition: width .3s var(--ease-out); }
.is-scrolled .logo img { width: 112px; }

.main-nav { display: flex; align-items: center; gap: 30px; }
.nav-link {
  position: relative;
  padding: 6px 0;
  color: #111;
  font-size: 13px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  text-decoration: none;
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 2px;
  background: var(--blue);
  transform: scaleX(0);
  transition: transform .3s var(--ease-out);
}
.nav-link:hover::after,
.nav-link.is-active::after { transform: scaleX(1); }

.social { display: flex; align-items: center; gap: 15px; }
.social a {
  display: block;
  line-height: 0;
  transition: transform .35s cubic-bezier(.34, 1.56, .64, 1), filter .2s ease;
}
.social a:hover,
.social a:focus-visible { transform: translateY(-3px) scale(1.1) rotate(-4deg); filter: brightness(1.08); }
.social a:active { transform: scale(.95); }
.social svg { width: 34px; height: 38px; }
.social-facebook { color: var(--facebook); }
.social-instagram { color: var(--instagram); }

.header-social { gap: 12px; padding-left: 26px; border-left: 1px solid rgba(0, 0, 0, .1); }
.header-social svg { width: 28px; height: 32px; }

/* ---------- Buttons ---------- */

.btn {
  position: relative;
  overflow: hidden;
  display: inline-block;
  border: 0;
  border-radius: 0;
  background: var(--blue);
  color: var(--black);
  font: 14px/17px var(--font-body);
  letter-spacing: 3px;
  text-transform: uppercase;
  text-decoration: none;
  text-align: center;
  padding: 13px 29px;
  cursor: pointer;
  transition: background-color .2s ease, color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.btn:hover, .btn:focus-visible {
  background: var(--blue-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(0, 0, 0, .25);
}
.btn:active { transform: translateY(0) scale(.98); box-shadow: none; }
/* a light sweep across the button on hover */
.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, .45) 50%, transparent 70%);
  transform: translateX(-120%);
  transition: transform .7s ease;
  pointer-events: none;
}
.btn:hover::before { transform: translateX(120%); }
.btn[disabled] { cursor: wait; }
/* while a form is sending: the label fades and a spinner turns in its place */
.btn.is-loading { color: transparent; }
.btn.is-loading::after {
  content: "";
  position: absolute;
  top: 50%; left: 50%;
  width: 18px; height: 18px;
  margin: -9px 0 0 -9px;
  border: 2px solid rgba(0, 0, 0, .25);
  border-top-color: #000;
  border-radius: 50%;
  animation: spin .7s linear infinite;
}

.btn-lg { font-size: 16px; line-height: 20px; padding: 17px 38px; }
.btn-sm { font-size: 12px; line-height: 15px; letter-spacing: 2.5px; padding: 11px 20px; }

/* outlined, for dark photos */
.btn-ghost { background: transparent; color: var(--white); box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .85); }
.btn-ghost:hover, .btn-ghost:focus-visible { background: var(--white); color: var(--black); box-shadow: 0 8px 18px rgba(0, 0, 0, .25); }

/* black, for the blue newsletter band */
.btn-dark { background: var(--black); color: var(--white); }
.btn-dark:hover, .btn-dark:focus-visible { background: #1d1d1d; }
.btn-dark::before { background: linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, .18) 50%, transparent 70%); }
.btn-dark.is-loading { color: transparent; }
.btn-dark.is-loading::after { border-color: rgba(255, 255, 255, .3); border-top-color: #fff; }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(48px, 8vw, 120px) 0 clamp(84px, 10vw, 150px);
  isolation: isolate;
}

.hero-bg {
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 140%;
  z-index: -2;
  background: #2b2723 url("../img/hero.webp") center top / cover no-repeat;
  will-change: transform;
  animation: hero-zoom 9s cubic-bezier(.2, .6, .2, 1) both;
}
@media (max-width: 900px) {
  .hero-bg { background-image: url("../img/hero-1280.webp"); }
}

/* darken the photo a touch overall, more along the bottom edge */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(0deg, rgba(0, 0, 0, .6) 0%, rgba(0, 0, 0, 0) 30%), rgba(0, 0, 0, .12);
  pointer-events: none;
}

.hero-box {
  max-width: 820px;
  margin: 0 auto;
  padding: 54px 60px 56px;
  background: rgba(0, 0, 0, .55);
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
  border-top: 3px solid var(--blue);
  color: var(--white);
  text-align: center;
  animation: fade-in-down .9s ease both;
}

.hero .eyebrow { color: var(--blue); margin-bottom: 18px; }

.hero h1 {
  font-size: clamp(42px, 1.6rem + 4.2vw, 80px);
  letter-spacing: -2px;
  color: var(--white);
  margin-bottom: 22px;
}

.hero-lead { margin: 0 auto; max-width: 660px; color: rgba(255, 255, 255, .92); }

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  margin-top: 34px;
}

.hero .eyebrow    { animation: rise .8s .15s var(--ease-out) both; }
.hero h1          { animation: rise .8s .25s var(--ease-out) both; }
.hero-lead        { animation: rise .8s .45s var(--ease-out) both; }
.hero-actions     { animation: rise .8s .6s var(--ease-out) both; }

.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 22px;
  width: 44px;
  height: 44px;
  margin-left: -22px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  opacity: .8;
  animation: cue 2s 1.4s ease-in-out infinite;
}
.scroll-cue:hover { opacity: 1; color: var(--blue); }
.scroll-cue svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Credentials strip ---------- */

.credentials { background: var(--black); color: rgba(255, 255, 255, .78); }

.credential-list {
  list-style: none;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  padding-top: 28px;
  padding-bottom: 28px;
}
.credential-list li {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  font-size: 15px;
}
.credential-list .icon { width: 34px; height: 34px; flex: none; color: var(--blue); }
.credential-list strong { color: var(--white); font-weight: 700; }

/* ---------- Training Plans ---------- */

.plans {
  background: #c9c8cd url("../img/bg-plans.webp") center bottom / cover no-repeat;
  padding: clamp(60px, 7vw, 100px) 0;
}
.plans .eyebrow { color: var(--blue-deep); }

.plan-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: stretch;
  gap: 32px;
  margin-top: 56px;
}

.plan {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 26px 28px 30px;
  background: var(--white);
  box-shadow: 0 10px 30px rgba(0, 0, 0, .08);
  text-align: center;
  transition: transform .5s var(--ease-out), box-shadow .5s var(--ease-out);
}
.plan:hover,
.plan:focus-within { transform: translateY(-6px); box-shadow: 0 22px 44px rgba(0, 0, 0, .16); }

.plan-photo {
  width: 100%;
  max-width: 750px;
  height: auto;
  aspect-ratio: 750 / 565;  /* hold the space before the photo loads, so links to lower sections land in the right place */
  margin: 0 auto 22px;
  filter: saturate(0);
  -webkit-mask: url("../img/frame-mask.svg") center / auto 100% no-repeat;
  mask: url("../img/frame-mask.svg") center / auto 100% no-repeat;
  transition: filter .4s ease, -webkit-mask-size .5s var(--ease-out), mask-size .5s var(--ease-out);
}
/* the photo turns to colour and the brackets close in on it */
.plan:hover .plan-photo,
.plan:focus-within .plan-photo {
  filter: saturate(1);
  -webkit-mask-size: auto 93%;
  mask-size: auto 93%;
}

.plan-body { display: flex; flex-direction: column; flex: 1; }

.plan-number {
  display: block;
  margin-bottom: 8px;
  font-family: var(--font-heading);
  font-size: 14px;
  letter-spacing: 4px;
  color: var(--blue-dark);
}

.plan h3 {
  font-size: 24px;
  letter-spacing: 1px;
  color: var(--black);
  margin-bottom: 12px;
}

.plan p { color: var(--ink); margin-bottom: 0; }

/* The plan name is the link, stretched over the whole card: clicking anywhere on a card goes to
   Get Started with that plan already in the message (site.js). */
.plan-title { color: inherit; text-decoration: none; transition: color .2s ease; }
.plan-title::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.plan-title:focus-visible { outline: none; }
.plan-title:focus-visible::after { outline: 2px solid var(--blue); outline-offset: 4px; }
.plan:hover .plan-title { color: var(--blue-dark); }

.plans-cta { margin-top: 48px; text-align: center; }

/* ---------- Why Lucas ---------- */

.why { background: var(--white); padding: clamp(64px, 8vw, 116px) 0; }

.why-grid {
  display: grid;
  grid-template-columns: 5fr 6fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
}
.why .eyebrow { text-align: left; }

.why-quote {
  position: relative;
  margin: 40px 0 0;
  padding: 34px 96px 30px 38px;
  background: var(--black);
  border-left: 4px solid var(--blue);
}
.why-quote::before {
  content: "\201C";
  position: absolute;
  top: -6px;
  right: 22px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 120px;
  line-height: 1;
  color: var(--blue);
  opacity: .9;
}
.why-quote p {
  margin: 0 0 16px;
  font-family: var(--font-heading);
  font-size: clamp(22px, 1rem + 1.2vw, 28px);
  line-height: 1.3;
  letter-spacing: .5px;
  color: var(--white);
}
.why-quote footer {
  font-size: 13px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--blue);
}
.why-quote footer::before { content: "\2014\00a0"; }

.feature-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; }

.feature {
  display: flex;
  align-items: flex-start;
  gap: 22px;
  padding: 26px 28px;
  background: var(--paper);
  transition: transform .4s var(--ease-out), box-shadow .4s var(--ease-out), background-color .4s ease;
}
.feature:hover { transform: translateY(-3px); background: var(--white); box-shadow: 0 16px 36px rgba(0, 0, 0, .1); }
.feature .icon {
  width: 56px;
  height: 56px;
  flex: none;
  padding: 14px;
  background: var(--black);
  color: var(--blue);
  transition: transform .4s cubic-bezier(.34, 1.56, .64, 1);
}
.feature:hover .icon { transform: rotate(-6deg) scale(1.06); }
.feature h3 { text-align: left; font-size: 22px; color: var(--black); margin: 4px 0 8px; }
.feature p { margin: 0; color: var(--ink); }

/* ---------- Get Started (contact form) ---------- */

.get-started {
  position: relative;
  background: #141518 url("../img/bg-contact.webp") center / cover no-repeat;
  padding-bottom: clamp(60px, 8vw, 100px);
}

.divider {
  display: block;
  width: 100%;
  height: 99px;
  fill: var(--divider);
}

.contact-grid {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: clamp(40px, 6vw, 72px);
  align-items: start;
  padding-top: clamp(48px, 7vw, 90px);
}

.contact-intro { color: rgba(255, 255, 255, .78); font-size: 17px; line-height: 1.7; }
.contact-intro .eyebrow { color: var(--blue); text-align: left; }
.contact-intro .section-title { color: var(--white); margin-bottom: 28px; }
.contact-alt { font-size: 15px; color: var(--grey); }
.contact-alt a { color: var(--blue); text-decoration: none; border-bottom: 1px solid rgba(27, 171, 226, .5); }
.contact-alt a:hover { border-bottom-color: var(--blue); }

.contact-form {
  padding: 36px 36px 16px;
  background: rgba(255, 255, 255, .04);
  border: 1px solid rgba(255, 255, 255, .1);
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
}

/* ---------- Forms ---------- */

.site-form { position: relative; }

.trap {
  position: absolute !important;
  left: -10000px;
  width: 1px; height: 1px;
  overflow: hidden;
}

.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }

.field { margin-bottom: 24px; }

.field label {
  display: block;
  margin-bottom: 10px;
  color: var(--grey);
}

.field abbr { text-decoration: none; border: 0; cursor: help; }

.site-form input[type="text"],
.site-form input[type="email"],
.site-form textarea {
  display: block;
  width: 100%;
  margin: 0;
  border: 0;
  border-radius: 0;
  background: var(--white);
  color: var(--ink);
  font: 14px/1.4 var(--font-body);
  letter-spacing: normal;
  -webkit-appearance: none;
  appearance: none;
  transition: box-shadow .2s ease;
}
.site-form input[type="text"],
.site-form input[type="email"] { height: 46px; padding: 0 14px; }
.site-form textarea { height: 120px; min-height: 96px; padding: 13px 14px; resize: vertical; }

.site-form ::placeholder { color: var(--grey); opacity: 1; }

.site-form input[type="text"]:focus,
.site-form input[type="email"]:focus,
.site-form textarea:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(27, 171, 226, .6);
}

.site-form [aria-invalid="true"] {
  box-shadow: inset 0 0 0 2px #c0392b;
  animation: shake .4s cubic-bezier(.36, .07, .19, .97);
}

.field-check {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 28px;
}
.field-check input {
  width: 16px; height: 16px;
  margin: 0;
  flex: none;
  accent-color: var(--blue);
}
.field-check label { margin: 0; cursor: pointer; }

.form-actions { margin-bottom: 20px; }

.form-notice {
  margin: 0 0 20px;
  padding: 18px 24px;
  border: 1px solid currentColor;
  text-align: center;
  font-size: 15px;
}
.form-notice:not([hidden]) { animation: notice-in .45s var(--ease-out); }
.form-notice.is-success { color: var(--blue-dark); background: #eaf7fd; }
.notice-check {
  display: inline-block;
  width: 20px; height: 20px;
  margin-right: 8px;
  vertical-align: -4px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 24;
  stroke-dashoffset: 24;
  animation: draw .5s .2s ease forwards;
}
.form-notice.is-error { color: #a33a2c; background: #fbf0ee; }
.form-notice[hidden] { display: none; }

/* ---------- Newsletter (blue band) ---------- */

.newsletter { background: var(--blue); padding: clamp(48px, 6vw, 72px) 0; color: var(--black); }

.newsletter-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}
.newsletter .section-title { font-size: clamp(30px, 1.2rem + 1.6vw, 40px); }
.newsletter .section-title::after { background: var(--black); margin-top: 14px; width: 44px; }
.newsletter-intro p { margin: 16px 0 0; font-size: 17px; }

.newsletter-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
}
.newsletter-row input[type="email"] { height: 52px; }
.newsletter-row .btn { padding: 0 30px; }
.newsletter .site-form input:focus { box-shadow: 0 0 0 3px rgba(0, 0, 0, .7); }
.newsletter .form-notice { margin: 14px 0 0; }

/* ---------- Footer ---------- */

.site-footer { background: var(--black); color: var(--grey); padding: 56px 0 24px; }

.footer-grid {
  max-width: calc(var(--site-width) + 2 * var(--gutter));
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 32px;
  align-items: center;
}
.footer-logo { width: 140px; height: auto; filter: invert(1); }
.footer-brand p { margin: 10px 0 0; font-size: 13px; }

.footer-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 30px; }
.footer-nav a {
  color: #d6d6da;
  font-size: 13px;
  letter-spacing: 2px;
  text-transform: uppercase;
  text-decoration: none;
  transition: color .2s ease;
}
.footer-nav a:hover { color: var(--blue); }

.copyright {
  max-width: calc(var(--site-width));
  margin: 40px auto 0;
  padding: 20px var(--gutter) 0;
  border-top: 1px solid rgba(255, 255, 255, .1);
  font-size: 12px;
  text-align: center;
}

/* ---------- Back to top ---------- */

.to-top {
  position: fixed;
  right: 75px;
  bottom: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 35px;
  border-radius: 4px 4px 0 0;
  background: var(--ink);
  color: var(--white);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity .25s ease, transform .25s ease, visibility .25s, background-color .2s ease;
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--blue); color: var(--black); }
.to-top:hover svg { animation: nudge-up .5s ease-in-out infinite alternate; }
.to-top svg {
  width: 18px; height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ---------- Scroll reveals ---------- */

/* Elements marked data-reveal rise and fade in as they come into view (site.js adds is-revealed).
   Only with JavaScript on (the "js" class), so nothing is ever hidden without it. */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .7s ease var(--reveal-delay, 0ms), transform .8s var(--ease-out) var(--reveal-delay, 0ms);
}
.js [data-reveal].is-revealed { opacity: 1; transform: none; }
.js [data-reveal]:not(.is-revealed) .section-title::after { transform: scaleX(0); }

/* once revealed, cards and features go back to their own hover timing and lift */
.js .plan[data-reveal].is-revealed { transition: transform .5s var(--ease-out), box-shadow .5s var(--ease-out), opacity .7s ease; }
.js .plan[data-reveal].is-revealed:hover,
.js .plan[data-reveal].is-revealed:focus-within { transform: translateY(-6px); }
.js .feature[data-reveal].is-revealed { transition: transform .4s var(--ease-out), box-shadow .4s var(--ease-out), background-color .4s ease, opacity .7s ease; }
.js .feature[data-reveal].is-revealed:hover { transform: translateY(-3px); }

@keyframes fade-in-down { from { opacity: 0; transform: translate3d(0, -40px, 0); } to { opacity: 1; transform: none; } }
@keyframes rise      { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes hero-zoom { from { scale: 1.08; } to { scale: 1; } }
@keyframes cue       { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(8px); } }
@keyframes notice-in { from { opacity: 0; transform: translateY(-8px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes draw      { to { stroke-dashoffset: 0; } }
@keyframes spin      { to { transform: rotate(360deg); } }
@keyframes nudge-up  { from { transform: translateY(1px); } to { transform: translateY(-3px); } }
@keyframes shake {
  10%, 90% { transform: translateX(-1px); }
  20%, 80% { transform: translateX(2px); }
  30%, 50%, 70% { transform: translateX(-4px); }
  40%, 60% { transform: translateX(4px); }
}

/* ---------- Tablet and phone ---------- */

@media (max-width: 960px) {
  .main-nav .nav-link { display: none; }
  .why-grid,
  .contact-grid,
  .newsletter-grid { grid-template-columns: 1fr; }
  .why-intro { max-width: 640px; }
  .footer-grid { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .footer-brand { display: flex; flex-direction: column; align-items: center; }
}

@media (max-width: 800px) {
  :root { --gutter: 20px; --header-h: 76px; }

  .logo img { width: 124px; }
  .is-scrolled .logo img { width: 104px; }
  .is-scrolled .header-inner { height: 62px; }
  .header-social { padding-left: 18px; }

  .hero-box { padding: 34px 22px 32px; }
  .hero-lead { font-size: 15px; }
  .hero-actions { margin-top: 28px; }
  .hero-actions .btn { flex: 1 1 220px; }

  .credential-list { grid-template-columns: 1fr; gap: 14px; justify-items: start; max-width: 360px; }
  .credential-list li { justify-content: flex-start; }

  .plan-grid { margin-top: 40px; gap: 24px; }
  .plans-cta { margin-top: 36px; }

  .divider { height: 60px; }
  .contact-form { padding: 26px 20px 8px; }
  .field-row { grid-template-columns: 1fr; gap: 0; }

  .newsletter-row { grid-template-columns: 1fr; }
  .newsletter-row .btn { height: 50px; }

  .to-top { right: 20px; }
}

@media (max-width: 760px) {
  .plan-grid { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .header-social { display: none; }
  .feature { padding: 22px 20px; gap: 16px; }
  .feature .icon { width: 48px; height: 48px; padding: 12px; }
  .why-quote { padding: 28px 72px 24px 28px; }
  .why-quote::before { font-size: 96px; right: 16px; }
}

@media (max-width: 480px) {
  .hero h1 { letter-spacing: -1px; }
  .eyebrow { font-size: 12px; letter-spacing: 2.5px; }
  .btn-sm { padding: 10px 14px; letter-spacing: 2px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-box, .hero h1, .hero .eyebrow, .hero-lead, .hero-actions, .hero-bg, .scroll-cue { animation: none; }
  .hero-bg { height: 100%; }
  .plan, .plan-photo, .feature, .feature .icon, .social a, .to-top, .btn, .btn::before,
  .site-header, .header-inner, .logo img, .nav-link::after { transition: none; }
  .plan:hover, .plan:focus-within, .feature:hover, .feature:hover .icon, .btn:hover, .social a:hover,
  .js .plan[data-reveal].is-revealed:hover, .js .plan[data-reveal].is-revealed:focus-within,
  .js .feature[data-reveal].is-revealed:hover { transform: none; }
  .js [data-reveal] { opacity: 1; transform: none; transition: none; }
  .js [data-reveal]:not(.is-revealed) .section-title::after { transform: none; }
  .site-form [aria-invalid="true"], .form-notice:not([hidden]), .to-top:hover svg { animation: none; }
  .notice-check { animation: none; stroke-dashoffset: 0; }
}
