/* ============================================================
   The Coaching Room, Whitefield — Designed by Stu
   Warm minimal boutique studio: bone / ink / coral / grey
   ============================================================ */

:root {
  --bone: #faf6f0;
  --bone-deep: #f1eae0;
  --ink: #211d19;
  --ink-soft: #6d655b;
  --coral: #f0644a;
  --coral-deep: #d94e35;
  --grey: #837c70;
  --grey-deep: #635d53;
  --peach: #ffe8e0;
  --line: rgba(33, 29, 25, 0.12);

  --font-head: "Sora", sans-serif;
  --font-body: "Instrument Sans", sans-serif;

  --radius: 20px;
  --radius-sm: 12px;
  --wrap: 1180px;
  --shadow: 0 16px 40px -18px rgba(33, 29, 25, 0.25);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 90px; overflow-x: clip; }

body {
  overflow-x: clip;
  font-family: var(--font-body);
  background: var(--bone);
  color: var(--ink);
  line-height: 1.65;
  font-size: 1.0625rem;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }
iframe { max-width: 100%; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }

h1, h2, h3 { font-family: var(--font-head); line-height: 1.08; letter-spacing: -0.02em; }

h1 { font-size: clamp(2.6rem, 6vw, 4.4rem); font-weight: 800; }
h2 { font-size: clamp(2rem, 4.5vw, 3.1rem); font-weight: 800; margin-bottom: 0.5em; }
h3 { font-size: 1.25rem; font-weight: 700; }

h1 em, h2 em, .brand em, .footer-brand em {
  font-style: normal;
  color: var(--coral);
}

.eyebrow {
  font-family: var(--font-head);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--grey);
  margin-bottom: 1rem;
}

.lead, .section-lead {
  font-size: 1.15rem;
  color: var(--ink-soft);
  max-width: 35em;
}

section { padding: clamp(4rem, 9vw, 7.5rem) 0; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0.85em 1.7em;
  border-radius: 999px;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.18s ease, background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}
.btn:hover { transform: translateY(-2px); }

.btn-solid { background: var(--grey); color: #fff; }
.btn-solid:hover { background: var(--grey-deep); }

.btn-ghost { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-ghost:hover { background: var(--ink); color: var(--bone); }

/* ---------- header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 246, 240, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 74px;
}

.brand {
  --logo-size: clamp(84px, 10vw, 124px);
  position: relative;
  height: 74px;
  width: var(--logo-size);
  flex-shrink: 0;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
}
.brand img {
  position: absolute;
  top: 6px;
  left: 0;
  width: var(--logo-size);
  height: var(--logo-size);
  object-fit: cover;
  box-shadow: 0 0 0 6px var(--bone), var(--shadow);
  transition: transform 0.25s ease;
}
.brand:hover img { transform: translateY(2px); }

.main-nav { display: flex; align-items: center; gap: 2rem; }
.main-nav ul { display: flex; gap: 1.6rem; list-style: none; }
.main-nav ul a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.15s ease;
}
.main-nav ul a:hover { color: var(--coral); }
.main-nav .btn { padding: 0.65em 1.4em; font-size: 0.85rem; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 44px;
  height: 44px;
  background: none;
  border: 0;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 26px;
  height: 2.5px;
  margin: 0 auto;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.nav-open .nav-toggle span:first-child { transform: translateY(4.25px) rotate(45deg); }
.nav-open .nav-toggle span:last-child { transform: translateY(-4.25px) rotate(-45deg); }

/* ---------- hero ---------- */
.hero {
  position: relative;
  min-height: min(88vh, 780px);
  display: flex;
  align-items: center;
  padding: clamp(4rem, 9vw, 7rem) 0;
  color: var(--ink);
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
}
.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(100deg, rgba(250, 246, 240, 0.95) 0%, rgba(250, 246, 240, 0.82) 45%, rgba(250, 246, 240, 0.35) 100%),
    linear-gradient(to top, rgba(250, 246, 240, 0.6) 0%, rgba(250, 246, 240, 0) 35%);
}
.hero-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--wrap);
}
.hero-inner .eyebrow {
  display: flex;
  align-items: center;
  gap: 0.6em;
}
.hero-inner .eyebrow .dot {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--grey);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}
.h1-brand {
  display: block;
  font-size: clamp(1.15rem, 2.4vw, 1.6rem);
  font-weight: 700;
  letter-spacing: 0;
  margin-bottom: 0.6rem;
  color: var(--ink);
}
.hero-inner .lead {
  margin: 1.4rem 0 2.2rem;
}
.hero-ctas { display: flex; gap: 1rem; flex-wrap: wrap; }

.hero-points {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 2rem;
  margin-top: clamp(2.5rem, 6vw, 4rem);
  padding: 0;
}
.hero-points li {
  font-family: var(--font-head);
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ink-soft);
}
.hero-points li::before {
  content: "+";
  color: var(--coral);
  margin-right: 0.5em;
}

/* ---------- ticker ---------- */
.ticker {
  background: var(--ink);
  color: var(--bone);
  overflow: hidden;
  padding: 0.9rem 0;
}
.ticker-track {
  display: flex;
  gap: 1.6rem;
  width: max-content;
  animation: ticker 28s linear infinite;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  white-space: nowrap;
}
.ticker-track span:nth-child(even) { color: var(--grey); }
@keyframes ticker { to { transform: translateX(-50%); } }

/* ---------- story ---------- */
.story { background: var(--bone-deep); }
.story .section-lead { margin-bottom: 1.4rem; }

.story-hint {
  font-family: var(--font-head);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--grey);
  margin-bottom: 1.5rem;
}
.story-hint span {
  display: inline-block;
  animation: nudge 1.6s ease-in-out infinite;
}
@keyframes nudge {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(6px); }
}

.story-strip {
  display: flex;
  gap: 1.4rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 1.5rem max(24px, calc((100vw - var(--wrap)) / 2 + 24px));
  scrollbar-width: none;
}
.story-strip::-webkit-scrollbar { display: none; }

.story-card {
  flex: 0 0 clamp(230px, 26vw, 300px);
  scroll-snap-align: center;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.25s ease;
}
.story-card:nth-child(odd) { transform: rotate(-1.6deg); }
.story-card:nth-child(even) { transform: rotate(1.6deg) translateY(14px); }
.story-card:hover { transform: rotate(0) translateY(0) scale(1.03); }
.story-card img { width: 100%; height: 100%; object-fit: cover; }

.story-foot {
  margin-top: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.story-foot p {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.2rem;
  max-width: 30em;
}

/* ---------- about ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: center;
}
.about-copy p:not(.eyebrow) {
  color: var(--ink-soft);
  max-width: 35em;
}
.about-copy p + p { margin-top: 1em; }
.about-ctas {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 2rem;
}
.about-photo {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.about-photo img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- train ---------- */
.train { background: var(--bone-deep); }
.train-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-top: 2.5rem;
}
.train-card {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.train-card figure { aspect-ratio: 16 / 10; overflow: hidden; }
.train-card figure img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.train-card:hover figure img { transform: scale(1.04); }

.train-body { padding: 1.8rem 2rem 2.2rem; }
.train-tag {
  font-family: var(--font-head);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--coral);
  margin: 0.3rem 0 1.2rem;
}
.train-body ul { list-style: none; display: grid; gap: 0.9rem; }
.train-body li {
  padding-left: 1.4rem;
  position: relative;
  font-size: 0.98rem;
  color: var(--ink-soft);
}
.train-body li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.55em;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--coral);
}
.train-body li strong { color: var(--ink); }

/* ---------- timetable ---------- */
.timetable { background: var(--ink); color: var(--bone); }
.timetable .eyebrow { color: var(--grey); }
.timetable h2 em { color: var(--coral); }

.tt-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.2rem;
  margin-top: 2.5rem;
}
.tt-day {
  background: rgba(250, 246, 240, 0.06);
  border: 1px solid rgba(250, 246, 240, 0.12);
  border-radius: var(--radius-sm);
  padding: 1.4rem 1.5rem 1.6rem;
}
.tt-day h3 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--coral);
  margin-bottom: 1rem;
}
.tt-slot { padding: 0.6rem 0; border-top: 1px solid rgba(250, 246, 240, 0.1); }
.tt-slot:first-of-type { border-top: 0; padding-top: 0; }
.tt-time {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: rgba(250, 246, 240, 0.55);
}
.tt-name {
  display: block;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.98rem;
  margin-top: 0.15rem;
}
.tt-name small {
  display: block;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 0.78rem;
  color: rgba(250, 246, 240, 0.55);
}
.tt-none { color: rgba(250, 246, 240, 0.4); font-size: 0.95rem; }

.tt-cta { background: var(--grey); border-color: var(--grey); }
.tt-cta h3 { color: #fff; }
.tt-cta p { font-size: 0.95rem; margin-bottom: 1.2rem; color: rgba(255, 255, 255, 0.9); }
.tt-cta .btn-solid { background: var(--ink); }
.tt-cta .btn-solid:hover { background: #000; }

/* ---------- team ---------- */
.team { background: var(--bone-deep); }
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 2.5rem;
}
.team-card figure {
  aspect-ratio: 3 / 4;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  margin-bottom: 1.2rem;
}
.team-card figure img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.team-card:hover figure img { transform: scale(1.05); }
.team-role {
  font-family: var(--font-head);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--coral);
  margin: 0.35rem 0 0.7rem;
}
.team-card p:last-child { color: var(--ink-soft); font-size: 0.97rem; }

/* ---------- reviews ---------- */
.reviews { background: var(--bone); text-align: center; }
.reviews .section-lead { margin: 0 auto 2.5rem; }
.reviews-ctas {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}
.reviews .gr-reviews {
  --gr-accent: var(--grey);
  --gr-bg: #fff;
  --gr-border: rgba(33, 29, 25, 0.12);
  --gr-text: var(--ink);
  --gr-muted: var(--ink-soft);
  --gr-radius: var(--radius-sm);
  text-align: left;
}
.reviews .gr-reviews .gr-btn {
  border-radius: 999px;
  font-family: var(--font-head);
}
.reviews-leave { margin-top: 1.5rem; font-size: 0.95rem; }
.reviews-leave a { color: var(--coral); font-weight: 600; text-decoration: none; }
.reviews-leave a:hover { text-decoration: underline; }

/* ---------- instagram ---------- */
.insta { background: var(--ink); color: var(--bone); }
.insta h2 em { color: var(--coral); }
.insta-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}
.insta-head h2 { margin-bottom: 0; }
.insta .btn-ghost { border-color: rgba(250, 246, 240, 0.7); color: #fff; }
.insta .btn-ghost:hover { background: var(--bone); color: var(--ink); border-color: var(--bone); }
.insta-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1rem;
}
.insta-grid a {
  display: block;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.insta-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease, opacity 0.4s ease;
}
.insta-grid a:hover img { transform: scale(1.06); opacity: 0.85; }

/* ---------- contact ---------- */
.contact { background: var(--bone-deep); padding-bottom: 0; }
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: start;
}
.contact-details {
  list-style: none;
  margin-top: 2rem;
  display: grid;
  gap: 1.1rem;
}
.contact-details li { color: var(--ink-soft); }
.contact-details strong {
  display: block;
  font-family: var(--font-head);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ink);
  margin-bottom: 0.15rem;
}
.contact-details a { color: var(--coral); font-weight: 600; text-decoration: none; }
.contact-details a:hover { text-decoration: underline; }
.todo-note { color: var(--coral); font-size: 0.85rem; }

#dbs-contact {
  background: #fff;
  border-radius: var(--radius);
  padding: 2.2rem;
  box-shadow: var(--shadow);
  display: grid;
  gap: 1.2rem;
}
.field label {
  display: block;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.85rem;
  margin-bottom: 0.4rem;
}
.field label span { font-weight: 400; color: var(--ink-soft); }
.field input, .field textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 0.8em 1em;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--bone);
  color: var(--ink);
  transition: border-color 0.15s ease;
}
.field input:focus, .field textarea:focus {
  outline: none;
  border-color: var(--grey);
}
#dbs-contact .btn { justify-self: start; }
#dbs-result {
  font-weight: 600;
  padding: 0.8em 1em;
  border-radius: var(--radius-sm);
  background: var(--peach);
  color: var(--coral-deep);
}
#dbs-result.success { background: #e5f3e5; color: #2c6b2f; }

/* ---------- contact map ---------- */
.contact-map {
  margin-top: clamp(3rem, 6vw, 5rem);
  width: 100%;
  height: 420px;
  background: var(--ink);
}
.contact-map iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}
/* ---------- credit banner ---------- */
.credit-banner {
  background: linear-gradient(100deg, var(--ink) 0%, #3a2f28 55%, var(--coral-deep) 100%);
  color: var(--bone);
  padding: 1.1rem 0;
}
.credit-banner .wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.2rem;
  flex-wrap: wrap;
  text-align: center;
}
.credit-banner p { font-family: var(--font-head); font-weight: 600; font-size: 0.9rem; }
.credit-divider {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--coral);
}
.credit-banner a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.credit-banner a:hover { color: var(--peach); }

/* ---------- footer ---------- */
.site-footer { background: var(--ink); color: var(--bone); padding: 2.5rem 0; }
.site-footer .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.footer-brand { font-family: var(--font-head); font-weight: 800; font-size: 1.05rem; }
.footer-brand span {
  display: block;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 0.8rem;
  color: rgba(250, 246, 240, 0.5);
}
.site-footer nav { display: flex; gap: 1.5rem; }
.site-footer nav a {
  color: rgba(250, 246, 240, 0.75);
  font-size: 0.9rem;
  text-decoration: none;
}
.site-footer nav a:hover { color: var(--coral); }
.footer-copy { font-size: 0.85rem; color: rgba(250, 246, 240, 0.45); }

/* ---------- cookie banner ---------- */
.cookie-banner {
  position: fixed;
  bottom: 20px;
  left: 20px;
  right: 20px;
  max-width: 520px;
  margin: 0 auto;
  z-index: 100;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: 0 24px 60px -12px rgba(33, 29, 25, 0.4);
  padding: 1.5rem 1.7rem;
}
.cookie-banner p { font-size: 0.92rem; color: var(--ink-soft); margin-bottom: 1rem; }
.cookie-banner a { color: var(--coral); font-weight: 600; }
.cookie-actions { display: flex; gap: 0.8rem; }
.cookie-actions .btn { padding: 0.6em 1.4em; font-size: 0.85rem; }

/* ---------- reveal animation ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .ticker-track { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- legal pages ---------- */
.legal-page { padding: clamp(3rem, 6vw, 5rem) 0; }
.legal-page .wrap { max-width: 760px; }
.legal-page h1 { font-size: clamp(2rem, 5vw, 3rem); margin-bottom: 0.5em; }
.legal-page h2 { font-size: 1.4rem; margin: 2em 0 0.6em; }
.legal-page p, .legal-page li { color: var(--ink-soft); margin-bottom: 0.9em; }
.legal-page ul { padding-left: 1.3em; }
.legal-page .legal-updated { font-size: 0.9rem; color: var(--coral); }

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .about-grid { grid-template-columns: 1fr; }
  .about-photo { max-width: 560px; }
  .insta-grid { grid-template-columns: repeat(3, 1fr); }
  .train-grid { grid-template-columns: 1fr; }
  .tt-grid { grid-template-columns: repeat(2, 1fr); }
  .team-grid { grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .site-header { background: var(--bone); backdrop-filter: none; -webkit-backdrop-filter: none; }
  .brand { --logo-size: 78px; }
  .brand img { top: 4px; box-shadow: 0 0 0 4px var(--bone), var(--shadow); }
  .main-nav {
    position: fixed;
    inset: 74px 0 auto 0;
    background: var(--bone);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: flex-start;
    padding: 1.5rem 24px 2rem;
    gap: 1.2rem;
    clip-path: inset(0 0 100% 0);
    visibility: hidden;
    transition: clip-path 0.3s ease, visibility 0s linear 0.3s;
    z-index: 40;
  }
  .nav-open .main-nav {
    clip-path: inset(0 0 0 0);
    visibility: visible;
    transition: clip-path 0.3s ease;
  }
  .main-nav ul { flex-direction: column; gap: 1rem; }
  .main-nav ul a { font-size: 1.1rem; font-weight: 600; }
  .nav-toggle { display: flex; }

  .tt-grid { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: 1fr; }
  .story-foot { flex-direction: column; align-items: flex-start; }
  .site-footer .wrap { flex-direction: column; align-items: flex-start; }
}
