/* =========================================================
   Jacob Anderson Coaching — styles
   ========================================================= */

:root {
  /* Brand palette */
  --navy: #1f2f3d;
  --near-black: #101820;
  --red: #e65b4f;
  --red-dark: #cf4a3f;
  --teal: #5bbfc3;
  --off-white: #f5f1e8;
  --white: #ffffff;

  /* Derived tokens */
  --bg: var(--near-black);
  --surface: var(--navy);
  --surface-2: #243747;
  --text: var(--off-white);
  --text-dim: #aebac4;
  --border: rgba(245, 241, 232, 0.12);

  --radius: 14px;
  --radius-pill: 999px;
  --shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
  --maxw: 1140px;

  --font-head: "Oswald", "Arial Narrow", sans-serif;
  --font-body: "Inter", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 clamp(1.1rem, 4vw, 2.5rem);
}

.accent { color: var(--red); }
.accent-teal { color: var(--teal); }

/* ---------- Typography helpers ---------- */
.eyebrow,
.kicker {
  font-family: var(--font-body);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--teal);
  margin: 0 0 1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
}

.eyebrow .dot {
  width: 9px; height: 9px;
  background: var(--red);
  border-radius: 50%;
  display: inline-block;
}

.section-head { margin-bottom: clamp(2rem, 5vw, 3.25rem); }

.section-title {
  font-family: var(--font-head);
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1;
  font-size: clamp(2rem, 6vw, 3.25rem);
  margin: 0;
}

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: var(--off-white);
  --btn-fg: var(--red);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-head);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 700;
  font-size: 1.02rem;
  padding: 0.95rem 1.9rem;
  border-radius: var(--radius-pill);
  border: 2px solid transparent;
  background: var(--btn-bg);
  color: var(--btn-fg);
  cursor: pointer;
  transition: transform 0.15s ease, background 0.2s ease, color 0.2s ease,
    box-shadow 0.2s ease;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background: var(--red);
  color: var(--white);
  transform: translateY(-2px);
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
  box-shadow: none;
}
.btn-ghost:hover,
.btn-ghost:focus-visible {
  border-color: var(--teal);
  color: var(--teal);
  transform: translateY(-2px);
}

.btn-block { width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(16, 24, 32, 0.82);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 70px;
}

.brand { display: flex; align-items: center; gap: 0.7rem; }

.brand-mark {
  width: 42px; height: 42px;
  display: grid;
  place-items: center;
  background: var(--red);
  color: var(--white);
  font-family: var(--font-head);
  font-weight: 700;
  border-radius: 10px;
  transform: rotate(-4deg);
  box-shadow: 0 6px 16px rgba(230, 91, 79, 0.4);
}

.brand-name {
  font-family: var(--font-head);
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 0.95;
  display: flex;
  flex-direction: column;
  font-size: 1.05rem;
}
.brand-name small {
  font-size: 0.62rem;
  letter-spacing: 0.32em;
  color: var(--teal);
  font-weight: 600;
}

.nav { display: flex; align-items: center; gap: 1.6rem; }
.nav a {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-dim);
  transition: color 0.2s ease;
}
.nav a:hover { color: var(--white); }
.nav .nav-cta {
  color: var(--white);
  background: var(--red);
  padding: 0.5rem 1.15rem;
  border-radius: var(--radius-pill);
  font-family: var(--font-head);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.nav .nav-cta:hover { background: var(--red-dark); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background:
    radial-gradient(900px 500px at 80% -10%, rgba(91, 191, 195, 0.10), transparent 60%),
    linear-gradient(160deg, var(--navy), var(--near-black) 70%);
  overflow: hidden;
  padding: clamp(3rem, 8vw, 6rem) 0 clamp(3.5rem, 9vw, 6.5rem);
}

.hero-shapes { position: absolute; inset: 0; pointer-events: none; }
.shape {
  position: absolute;
  background: var(--red);
  opacity: 0.92;
}
.shape-1 {
  width: 520px; height: 220px;
  top: -70px; right: -120px;
  transform: rotate(-18deg);
  border-radius: 24px;
  opacity: 0.16;
}
.shape-2 {
  width: 340px; height: 130px;
  bottom: 8%; left: -110px;
  transform: rotate(-18deg);
  background: var(--teal);
  opacity: 0.12;
  border-radius: 18px;
}
.shape-3 {
  width: 0; height: 0;
  top: 30%; right: 8%;
  border-left: 90px solid transparent;
  border-right: 90px solid transparent;
  border-bottom: 150px solid var(--red);
  opacity: 0.10;
  transform: rotate(14deg);
  background: none;
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.hero-title {
  font-family: var(--font-head);
  text-transform: uppercase;
  font-weight: 700;
  font-size: clamp(3.2rem, 11vw, 6.5rem);
  line-height: 0.9;
  letter-spacing: 0.005em;
  margin: 0 0 1.25rem;
}

.hero-text {
  font-size: clamp(1.05rem, 2.2vw, 1.22rem);
  color: var(--text-dim);
  max-width: 30ch;
  margin: 0 0 2rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-bottom: 1.8rem;
}

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 1.4rem;
  color: var(--text-dim);
  font-size: 0.9rem;
  font-weight: 600;
}
.hero-trust li { display: flex; align-items: center; gap: 0.5rem; }
.hero-trust li::before {
  content: "";
  width: 7px; height: 7px;
  background: var(--teal);
  border-radius: 50%;
}

/* Hero media */
.media-frame { position: relative; }
.trainer-photo {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center top;
  border-radius: 22px;
  box-shadow: var(--shadow);
  display: block;
}

.media-badge {
  position: absolute;
  bottom: -18px; right: -10px;
  background: var(--off-white);
  color: var(--near-black);
  border-radius: 16px;
  padding: 0.85rem 1.15rem;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  z-index: 3;
}
.media-badge strong {
  font-family: var(--font-head);
  font-size: 1.6rem;
  line-height: 1;
  color: var(--red);
}
.media-badge span { font-size: 0.72rem; font-weight: 600; }

/* ---------- Benefits ---------- */
.benefits { padding: clamp(3.5rem, 8vw, 6rem) 0; }

.benefit-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.25rem;
}

.benefit-card {
  background: linear-gradient(180deg, var(--surface), var(--surface-2));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.8rem 1.6rem;
  position: relative;
  overflow: hidden;
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.benefit-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 4px;
  background: linear-gradient(90deg, var(--red), var(--teal));
}
.benefit-card:hover {
  transform: translateY(-4px);
  border-color: rgba(91, 191, 195, 0.4);
}
.benefit-card h3 {
  font-family: var(--font-head);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  font-size: 1.18rem;
  margin: 1rem 0 0.5rem;
}
.benefit-card p { margin: 0; color: var(--text-dim); font-size: 0.95rem; }

/* Check icon */
.check {
  width: 38px; height: 38px;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(91, 191, 195, 0.14);
  position: relative;
}
.check::after {
  content: "";
  width: 11px; height: 19px;
  border: solid var(--teal);
  border-width: 0 3px 3px 0;
  transform: rotate(45deg) translate(-1px, -2px);
}
.check-sm { width: 24px; height: 24px; vertical-align: middle; }
.check-sm::after { width: 6px; height: 11px; border-width: 0 2.5px 2.5px 0; }

/* ---------- How it works ---------- */
.how {
  padding: clamp(3.5rem, 8vw, 6rem) 0;
  background:
    linear-gradient(180deg, transparent, rgba(31, 47, 61, 0.5) 50%, transparent),
    var(--bg);
  position: relative;
}

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  counter-reset: step;
}
.step {
  position: relative;
  padding: 2.2rem 1.6rem 1.6rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.step-num {
  position: absolute;
  top: -22px; left: 1.5rem;
  width: 48px; height: 48px;
  display: grid;
  place-items: center;
  background: var(--red);
  color: var(--white);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.4rem;
  border-radius: 12px;
  transform: rotate(-5deg);
  box-shadow: 0 8px 18px rgba(230, 91, 79, 0.4);
}
.step h3 {
  font-family: var(--font-head);
  text-transform: uppercase;
  font-size: 1.2rem;
  margin: 0.4rem 0 0.5rem;
}
.step p { margin: 0; color: var(--text-dim); font-size: 0.95rem; }

/* ---------- Enquiry ---------- */
.enquiry {
  padding: clamp(3.5rem, 8vw, 6rem) 0;
  position: relative;
  overflow: hidden;
}
.enquiry::before {
  content: "";
  position: absolute;
  top: -120px; left: -120px;
  width: 460px; height: 260px;
  background: var(--red);
  opacity: 0.10;
  transform: rotate(-18deg);
  border-radius: 30px;
  pointer-events: none;
}

.enquiry-grid {
  position: relative;
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(2rem, 5vw, 3.5rem);
  align-items: start;
}

.enquiry-text { color: var(--text-dim); max-width: 38ch; }

.enquiry-list { margin-top: 1.6rem; display: grid; gap: 0.85rem; }
.enquiry-list li {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-weight: 600;
}

/* Form */
.lead-form {
  background: linear-gradient(180deg, var(--surface), var(--surface-2));
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: clamp(1.6rem, 4vw, 2.4rem);
  box-shadow: var(--shadow);
}

.field { margin-bottom: 1.15rem; }
.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.lead-form label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 0.45rem;
  letter-spacing: 0.01em;
}
.optional { color: var(--text-dim); font-weight: 400; font-size: 0.82rem; }

.lead-form input,
.lead-form select,
.lead-form textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  background: var(--near-black);
  border: 1.5px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}
.lead-form textarea { resize: vertical; min-height: 110px; }

.lead-form input::placeholder,
.lead-form textarea::placeholder { color: #6f7d88; }

.lead-form select {
  appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%235bbfc3' stroke-width='3'><path d='M6 9l6 6 6-6'/></svg>");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
  cursor: pointer;
}

.lead-form input:focus,
.lead-form select:focus,
.lead-form textarea:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(91, 191, 195, 0.25);
}

.lead-form input:focus-visible,
.lead-form select:focus-visible,
.lead-form textarea:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 1px;
}

/* invalid state */
.field.invalid input,
.field.invalid select { border-color: var(--red); }
.field.invalid input:focus,
.field.invalid select:focus { box-shadow: 0 0 0 3px rgba(230, 91, 79, 0.25); }

.error {
  margin: 0.4rem 0 0;
  color: var(--red);
  font-size: 0.82rem;
  font-weight: 600;
}

.lead-form .btn-block { margin-top: 0.5rem; }

/* Honeypot field — invisible to humans, catches spam bots */
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-note { margin: 0.9rem 0 0; text-align: center; font-size: 0.9rem; min-height: 1.2em; }

/* success */
.form-success {
  margin-top: 1.4rem;
  text-align: center;
  padding: 1.6rem 1.2rem;
  background: rgba(91, 191, 195, 0.10);
  border: 1px solid rgba(91, 191, 195, 0.35);
  border-radius: var(--radius);
  animation: pop 0.35s ease;
}
.form-success h3 {
  font-family: var(--font-head);
  text-transform: uppercase;
  margin: 0.6rem 0 0.3rem;
  font-size: 1.4rem;
}
.form-success p { margin: 0; color: var(--text-dim); }
.success-icon {
  width: 56px; height: 56px;
  margin: 0 auto;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--teal);
}
.success-icon::after {
  content: "";
  width: 14px; height: 26px;
  border: solid var(--near-black);
  border-width: 0 4px 4px 0;
  transform: rotate(45deg) translate(-1px, -3px);
}

@keyframes pop {
  from { transform: scale(0.96); opacity: 0; }
  to   { transform: scale(1); opacity: 1; }
}

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--border);
  background: var(--near-black);
  padding: 2.5rem 0;
}
.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.2rem;
  text-align: center;
}
.contact-strip {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem 2rem;
}
.contact-item {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-weight: 600;
  padding: 0.55rem 1.1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  transition: border-color 0.2s ease, color 0.2s ease;
}
.contact-item:hover { border-color: var(--teal); color: var(--teal); }
.copyright { margin: 0; color: var(--text-dim); font-size: 0.85rem; }

/* ---------- Responsive ---------- */
@media (max-width: 880px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-media { order: -1; max-width: 360px; }
  .enquiry-grid { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
  .nav { gap: 0.9rem; }
  .nav a:not(.nav-cta) { display: none; }
  .field-row { grid-template-columns: 1fr; gap: 0; }
  .hero-actions .btn { width: 100%; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
