/* ==========================================================================
   Living the Dream — shared styles
   ========================================================================== */

:root {
  --sky-50: #f0f9ff;
  --sky-100: #e0f2fe;
  --sky-200: #bae6fd;
  --sky-300: #7dd3fc;
  --sky-400: #38bdf8;
  --sky-500: #0ea5e9;
  --sky-600: #0284c7;
  --sky-700: #0369a1;
  --sky-900: #0c4a6e;

  --ink: #0a1a2f;
  --ink-2: #33445a;
  --muted: #64748b;
  --line: #dfe7ef;
  --bg: #ffffff;
  --tint: #f2f8fc;

  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius: 18px;
  --radius-sm: 12px;

  --shadow-1: 0 1px 2px rgba(10, 26, 47, 0.04), 0 6px 20px -8px rgba(2, 132, 199, 0.12);
  --shadow-2: 0 30px 60px -30px rgba(2, 132, 199, 0.45), 0 10px 24px -12px rgba(10, 26, 47, 0.15);
  --shadow-btn: 0 10px 24px -10px rgba(14, 165, 233, 0.75);

  --font-display: "Archivo", "Inter", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --header-h: 76px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body.no-scroll { overflow: hidden; }

img { max-width: 100%; display: block; }
figure { margin: 0; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
[hidden] { display: none !important; }
.icon { width: 24px; height: 24px; flex: none; }

::selection { background: var(--sky-200); color: var(--ink); }
:focus-visible { outline: 3px solid var(--sky-300); outline-offset: 3px; border-radius: 4px; }

.container { width: min(1180px, 100% - 40px); margin-inline: auto; }

/* ---------- Type ---------- */

.display, .h2, h3 {
  font-family: var(--font-display);
  font-stretch: 75%;
  font-weight: 900;
  text-transform: uppercase;
  color: var(--ink);
}

.display {
  font-size: clamp(3.6rem, 8vw, 7.2rem);
  line-height: 0.86;
  letter-spacing: -0.01em;
  margin: 0 0 28px;
}

.h2 {
  font-size: clamp(2.6rem, 6vw, 4.4rem);
  line-height: 0.9;
  letter-spacing: -0.005em;
  margin: 0 0 22px;
}

h3 { font-size: 1.75rem; font-weight: 850; line-height: 1; letter-spacing: 0; margin: 0; }

.hl { color: var(--sky-500); }
.nowrap { white-space: nowrap; }

.label {
  margin: 0 0 16px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--sky-700);
}

.lead { font-size: clamp(1.08rem, 1.5vw, 1.22rem); color: var(--ink-2); max-width: 30em; margin: 0 0 32px; }
.muted { color: var(--muted); }

/* Used by the workout page */
.accent {
  background: linear-gradient(100deg, var(--sky-600) 0%, var(--sky-400) 70%, #67e8f9 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 650;
  color: var(--ink);
  border-bottom: 2px solid var(--sky-400);
  padding-bottom: 2px;
  transition: color 0.2s, border-color 0.2s;
}
.text-link:hover { color: var(--sky-700); border-color: var(--sky-700); }
.text-link span { transition: transform 0.2s; }
.text-link:hover span { transform: translateX(3px); }

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

.btn {
  --pad-y: 12px;
  --pad-x: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: var(--pad-y) var(--pad-x);
  border-radius: 8px;
  border: 1.5px solid transparent;
  font-weight: 700;
  font-size: 0.98rem;
  line-height: 1.2;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s, border-color 0.2s, color 0.2s, transform 0.15s;
  -webkit-tap-highlight-color: transparent;
}
.btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.btn:active { transform: translateY(1px); }

.btn-primary { color: #fff; background: var(--sky-600); }
.btn-primary:hover { background: var(--sky-700); }

.btn-ghost { background: #fff; border-color: var(--line); color: var(--ink); }
.btn-ghost:hover { border-color: var(--ink); }

.btn-white { background: #fff; color: var(--sky-700); }
.btn-white:hover { background: var(--sky-50); }
.btn .ig-icon { width: 20px; height: 20px; stroke-width: 2; }

.btn-sm { --pad-y: 9px; --pad-x: 16px; font-size: 0.9rem; }
.btn-lg { --pad-y: 16px; --pad-x: 28px; font-size: 1rem; }
.btn-block { width: 100%; }

/* ---------- Brand (workout page header) ---------- */

.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand img { height: 44px; width: auto; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text strong { font-family: var(--font-display); font-stretch: 80%; font-weight: 850; font-size: 1.1rem; text-transform: uppercase; }
.brand-text small { font-size: 0.7rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--sky-700); }

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #fff;
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s;
}
.site-header.scrolled, .site-header.menu-open { border-color: var(--line); }

.header-inner { height: var(--header-h); display: flex; align-items: center; gap: 28px; }

.logo img { height: 60px; width: auto; }
.logo-sm img { height: 72px; }

.nav { display: flex; gap: 28px; margin-left: auto; }
.nav a { position: relative; font-weight: 600; font-size: 0.95rem; color: var(--ink-2); padding: 6px 0; transition: color 0.2s; }
.nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--sky-500); transform: scaleX(0); transform-origin: left; transition: transform 0.25s var(--ease); }
.nav a:hover { color: var(--ink); }
.nav a:hover::after { transform: scaleX(1); }

.nav-toggle {
  display: none;
  margin-left: auto;
  width: 44px;
  height: 44px;
  border-radius: 8px;
  border: 1.5px solid var(--line);
  background: #fff;
  position: relative;
  cursor: pointer;
}
.nav-toggle span { position: absolute; left: 12px; right: 12px; height: 2px; background: var(--ink); transition: transform 0.3s var(--ease), top 0.3s var(--ease); }
.nav-toggle span:first-child { top: 16px; }
.nav-toggle span:last-child { top: 25px; }
.menu-open .nav-toggle span:first-child { top: 20.5px; transform: rotate(45deg); }
.menu-open .nav-toggle span:last-child { top: 20.5px; transform: rotate(-45deg); }

.mobile-menu {
  position: absolute;
  inset: var(--header-h) 0 auto 0;
  height: calc(100dvh - var(--header-h));
  padding: 16px 20px 40px;
  display: flex;
  flex-direction: column;
  background: #fff;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s, visibility 0.25s;
}
.mobile-menu a:not(.btn) {
  font-family: var(--font-display);
  font-stretch: 75%;
  font-weight: 900;
  text-transform: uppercase;
  font-size: 2.4rem;
  line-height: 1;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.mobile-menu .btn { margin-top: 28px; }
.menu-open .mobile-menu { opacity: 1; visibility: visible; }

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

.hero { padding: clamp(36px, 6vw, 80px) 0 clamp(56px, 7vw, 96px); }

.hero-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(32px, 6vw, 88px); align-items: center; }

.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; }

.hero-photo { position: relative; }
.hero-photo img { width: 100%; height: auto; aspect-ratio: 4 / 4.8; object-fit: cover; object-position: 50% 0%; border-radius: 10px; }

/* ---------- Marquee ---------- */

.marquee { overflow: hidden; background: var(--sky-600); color: #fff; padding: 14px 0; }
.marquee-track { display: flex; align-items: center; gap: 28px; width: max-content; animation: marquee 45s linear infinite; }
.marquee span { font-family: var(--font-display); font-stretch: 75%; font-weight: 900; font-size: clamp(1.3rem, 2.4vw, 1.9rem); text-transform: uppercase; letter-spacing: 0.01em; }
.marquee i { width: 8px; height: 8px; border-radius: 50%; background: var(--sky-200); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Sections ---------- */

.section { padding: clamp(72px, 10vw, 128px) 0; }
.section-tint { background: var(--tint); }

/* About */
.about-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.about-photo img { width: 100%; height: auto; aspect-ratio: 4 / 4.6; object-fit: cover; object-position: 50% 20%; border-radius: 10px; }
.about-body > p:not(.label) { font-size: 1.1rem; color: var(--ink-2); margin: 0 0 18px; max-width: 34em; }
.about-body .text-link { margin-top: 10px; }

/* Training */
.training-head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: end;
  margin-bottom: 48px;
}
.training-head .h2 { margin: 0; }
.training-head > p { margin: 0; color: var(--ink-2); font-size: 1.08rem; max-width: 28em; justify-self: end; }

.offers { list-style: none; padding: 0; margin: 0; border-bottom: 1.5px solid var(--ink); }
.offer {
  display: grid;
  grid-template-columns: 90px 1fr 1.2fr;
  gap: 24px;
  align-items: baseline;
  padding: 32px 0;
  border-top: 1.5px solid var(--ink);
}
.offer-num { font-family: var(--font-display); font-stretch: 75%; font-weight: 900; font-size: 1.75rem; color: var(--sky-500); line-height: 1; }
.offer p { margin: 0; color: var(--ink-2); }
.offer .offer-tags { margin-top: 10px; font-size: 0.88rem; font-weight: 600; color: var(--muted); }

/* Workout machine */
.machine-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 6vw, 96px); align-items: center; }
.machine-copy > p:not(.label) { color: var(--ink-2); font-size: 1.08rem; margin: 0; max-width: 30em; }

.steps { list-style: none; counter-reset: step; padding: 0; margin: 28px 0 36px; display: grid; gap: 14px; max-width: 30em; }
.steps li { counter-increment: step; display: grid; grid-template-columns: 34px 1fr; color: var(--ink-2); }
.steps li::before { content: counter(step) "."; font-family: var(--font-display); font-stretch: 75%; font-weight: 900; font-size: 1.35rem; line-height: 1.2; color: var(--sky-500); }
.steps strong { color: var(--ink); }

.machine-mock {
  padding: 20px;
  border-radius: 24px;
  background: var(--sky-500);
  max-width: 460px;
  margin-inline: auto;
  width: 100%;
  box-shadow: 0 30px 60px -36px rgba(2, 132, 199, 0.7);
}
.mock-display {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 14px 18px;
  border-radius: 12px;
  background: #06213a;
  color: var(--sky-300);
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 0.9rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.blink { animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

.mock-slots { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.mini-slot {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 16px;
  border-radius: 12px;
  background: #fff;
  font-weight: 650;
  font-size: 0.95rem;
  transition: transform 0.2s var(--ease);
}
.mini-slot:hover { transform: translateY(-2px); }
.mini-slot .icon { width: 28px; height: 28px; color: var(--sky-600); }
.mini-slot.mini-wide { grid-column: 1 / -1; flex-direction: row; align-items: center; }
.mini-wide .icon { color: var(--ink); }
.mini-slot em { position: absolute; top: 12px; right: 12px; font-style: normal; font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 0.72rem; font-weight: 700; color: var(--sky-700); background: var(--sky-50); padding: 3px 7px; border-radius: 5px; }

.mock-tray { margin-top: 14px; height: 50px; border-radius: 12px; background: #06213a; display: grid; place-items: center; }
.mock-tray span { width: 60%; height: 6px; border-radius: 6px; background: rgba(125, 211, 252, 0.25); }

/* Reviews */
.reviews-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 28px 48px; margin-bottom: 48px; }
.reviews-head .h2 { margin: 0; }
.reviews-links { display: grid; justify-items: end; gap: 14px; }
.google-badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 11px 18px 11px 14px;
  border: 1.5px solid var(--line);
  border-radius: 8px;
  background: #fff;
  transition: border-color 0.2s, transform 0.2s var(--ease);
}
.google-badge:hover { border-color: var(--ink); transform: translateY(-1px); }
.google-badge svg { width: 28px; height: 28px; flex: none; }
.google-badge strong { display: block; font-size: 0.98rem; line-height: 1.2; }
.google-badge small { display: block; font-size: 0.82rem; color: var(--muted); }
.google-arrow { margin-left: 6px; font-weight: 700; }
.review-source { display: inline-flex; align-items: center; gap: 6px; margin-top: 6px; font-size: 0.82rem; font-weight: 600; color: var(--muted); }
.review-source svg { width: 14px; height: 14px; }
.review-source:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.reviews { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 40px 32px; }
.review { margin: 0; padding-top: 22px; border-top: 1.5px solid var(--ink); display: flex; flex-direction: column; }
.review blockquote { margin: 0 0 22px; font-size: 1.1rem; line-height: 1.55; color: var(--ink); }
.review blockquote::before { content: "“"; display: block; height: 0.55em; font-family: var(--font-display); font-weight: 900; font-size: 3.4rem; line-height: 1; color: var(--sky-500); }
.review figcaption { margin-top: auto; display: grid; gap: 2px; }
.review figcaption span { font-size: 0.88rem; color: var(--muted); }

/* Contact */
.contact { background: var(--sky-600); color: #fff; padding: clamp(72px, 10vw, 120px) 0; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 6vw, 96px); align-items: center; }
.contact-avatar { width: 88px; height: 88px; border-radius: 50%; border: 3px solid #fff; object-fit: cover; margin-bottom: 24px; }
.contact .h2 { color: #fff; }
.contact-copy > p { margin: 0 0 30px; max-width: 30em; font-size: 1.1rem; color: rgba(255, 255, 255, 0.88); }
.contact-list { list-style: none; padding: 0; margin: 0; max-width: 30em; border-bottom: 1px solid rgba(255, 255, 255, 0.3); }
.contact-list li { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 14px 0; border-top: 1px solid rgba(255, 255, 255, 0.3); }
.contact-list span { font-size: 0.76rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(255, 255, 255, 0.7); }
.contact-list a { font-weight: 650; font-size: 1.05rem; overflow-wrap: anywhere; text-align: right; }
.contact-list a:hover { text-decoration: underline; text-underline-offset: 4px; }

.contact-form { padding: clamp(22px, 4vw, 34px); border-radius: 14px; background: #fff; color: var(--ink); box-shadow: 0 30px 60px -30px rgba(6, 33, 58, 0.6); }
.contact-form h3 { margin: 0 0 20px; font-size: 1.6rem; }
.contact-form .field { margin-bottom: 14px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }
.form-status { margin: 12px 0 0; min-height: 1.4em; font-size: 0.92rem; font-weight: 550; color: var(--muted); }
.form-status.is-error { color: #b91c1c; }
.form-status.is-success { color: #047857; }
.form-status a { text-decoration: underline; }

/* Form fields */
.field { display: grid; gap: 6px; }
.field > span { font-size: 0.84rem; font-weight: 650; color: var(--ink-2); }
.field em { font-style: normal; font-weight: 500; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 1rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.field textarea { resize: vertical; min-height: 110px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--sky-500); box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.15); }
.field input::placeholder { color: #9aa8b8; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 0.88rem; color: var(--ink-2); cursor: pointer; }
.check input { flex: none; width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--sky-600); }

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

.site-footer { padding: 40px 0; }
.footer-inner { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.footer-nav { display: flex; gap: 24px; margin-left: auto; flex-wrap: wrap; }
.footer-nav a { color: var(--ink-2); font-weight: 600; font-size: 0.92rem; }
.footer-nav a:hover { color: var(--sky-700); }
.fine { margin: 0; color: var(--muted); font-size: 0.85rem; width: 100%; padding-top: 20px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 20px; }
.credit { color: var(--muted); }
.credit:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Reveal ---------- */

.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */

@media (max-width: 960px) {
  .nav, .header-cta { display: none; }
  .nav-toggle { display: block; }
  .hero-grid, .about-grid, .machine-grid, .training-head, .contact-grid { grid-template-columns: 1fr; }
  .hero-photo { max-width: 560px; }
  .about-photo { max-width: 480px; }
  .training-head > p { justify-self: start; }
  .reviews-links { justify-items: start; }
  .offer { grid-template-columns: 60px 1fr; }
  .offer > div { grid-column: 2; }
}

@media (min-width: 961px) {
  .mobile-menu { display: none; }
}

@media (max-width: 560px) {
  :root { --header-h: 68px; }
  .container { width: min(1180px, 100% - 32px); }
  .logo img { height: 52px; }
  .display { font-size: 16vw; }
  .hero-actions .btn { flex: 1 1 100%; }
  .offer { grid-template-columns: 1fr; gap: 10px; padding: 26px 0; }
  .offer > div { grid-column: auto; }
  .footer-nav { margin-left: 0; gap: 18px; }
  .field-row { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; }
}
