/* ============================================================
   Coach Subu — Rise Above Yourself
   ============================================================ */

:root {
  --ink: #0f1b2d;
  --ink-soft: #1c2b40;
  --paper: #faf8f4;
  --paper-alt: #f1ede5;
  --text: #2b3442;
  --text-muted: #5d6a7d;
  --accent: #c47b2a;
  --accent-strong: #a5651c;
  --accent-soft: #f6e8d4;
  --light-on-dark: #f5f1e8;
  --muted-on-dark: #a8b3c4;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(15, 27, 45, 0.10);
  --shadow-lg: 0 18px 50px rgba(15, 27, 45, 0.18);
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Inter", system-ui, -apple-system, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--paper);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

.container { width: min(1120px, 92%); margin-inline: auto; }
.container.narrow { width: min(760px, 92%); }

/* ---------- Typography helpers ---------- */
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 0.9rem;
}

.section-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.8rem, 3.6vw, 2.6rem);
  line-height: 1.18;
  color: var(--ink);
  letter-spacing: -0.01em;
}

.section-title .accent { color: var(--accent); font-style: italic; }

.section-head { text-align: center; max-width: 640px; margin: 0 auto 3rem; }
.section-head .section-title { margin-top: 0.4rem; }

.section { padding: 5.5rem 0; }
.section-alt { background: var(--paper-alt); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-weight: 600;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }

.btn-primary {
  background: var(--accent);
  color: #fff;
  padding: 0.8rem 1.6rem;
  box-shadow: 0 6px 18px rgba(196, 123, 42, 0.35);
}
.btn-primary:hover { background: var(--accent-strong); box-shadow: 0 8px 24px rgba(196, 123, 42, 0.45); transform: translateY(-1px); }

.btn-ghost {
  background: transparent;
  color: var(--ink);
  padding: 0.8rem 1.6rem;
  border: 1.5px solid rgba(15, 27, 45, 0.25);
}
.btn-ghost:hover { border-color: var(--ink); background: rgba(15, 27, 45, 0.04); }

.btn-light {
  background: var(--light-on-dark);
  color: var(--ink);
  padding: 0.9rem 2rem;
}
.btn-light:hover { background: #fff; transform: translateY(-1px); box-shadow: var(--shadow); }

.btn-lg { padding: 1rem 2.1rem; font-size: 1.05rem; }
.btn-sm { padding: 0.55rem 1.15rem; font-size: 0.9rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 248, 244, 0.88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(15, 27, 45, 0.08);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 2rem;
  padding: 0.8rem 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--ink);
}

.brand-mark {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  object-fit: cover;
  background: #fff; /* JPEG logo has a baked-in light background */
  box-shadow: 0 2px 8px rgba(15, 27, 45, 0.15);
  flex-shrink: 0;
}

.brand-text { font-size: 1.1rem; font-weight: 400; }
.brand-text strong { font-weight: 700; }

.site-nav { display: flex; gap: 1.6rem; margin-left: auto; }

.site-nav a {
  text-decoration: none;
  color: var(--text-muted);
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.15s ease;
}
.site-nav a:hover { color: var(--accent); }

.nav-toggle { display: none; }

/* ---------- Hero ---------- */
.hero {
  background:
    radial-gradient(1000px 500px at 85% -10%, rgba(196, 123, 42, 0.16), transparent 60%),
    radial-gradient(700px 400px at 0% 110%, rgba(196, 123, 42, 0.10), transparent 55%),
    var(--paper);
  padding: 6.5rem 0 5.5rem;
  text-align: center;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 6.5vw, 4.4rem);
  font-weight: 700;
  line-height: 1.06;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: 1.2rem;
}

.hero h1 em {
  font-style: italic;
  color: var(--accent);
}

.hero-sub {
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  color: var(--text-muted);
  max-width: 620px;
  margin: 0 auto 2.2rem;
}
.hero-sub strong { color: var(--ink); }

.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 2.4rem;
}

.hero-credentials {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
  color: var(--text-muted);
  font-size: 0.92rem;
  font-weight: 500;
}
.hero-credentials li { position: relative; padding-left: 1.1rem; }
.hero-credentials li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

/* ---------- Audience ---------- */
.audience { text-align: center; padding: 4.5rem 0; }

/* ---------- Cards ---------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.4rem;
}
.card-grid.four { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }

.card {
  background: #fff;
  border: 1px solid rgba(15, 27, 45, 0.07);
  border-radius: var(--radius);
  padding: 1.8rem 1.5rem;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }

.card h3 {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--ink);
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
}

.card p { color: var(--text-muted); font-size: 0.95rem; }

.card-icon {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  font-size: 1.5rem;
  border-radius: 14px;
  background: var(--accent-soft);
  margin-bottom: 1.1rem;
}

/* ---------- Steps ---------- */
.steps {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.2rem;
  counter-reset: step;
}

.step {
  position: relative;
  background: #fff;
  border-radius: var(--radius);
  border: 1px solid rgba(15, 27, 45, 0.07);
  padding: 1.7rem 1.3rem 1.5rem;
  box-shadow: var(--shadow);
}

.step:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 2.35rem;
  right: -0.85rem;
  width: 0.55rem;
  height: 0.55rem;
  border-top: 2.5px solid var(--accent);
  border-right: 2.5px solid var(--accent);
  transform: rotate(45deg);
}

.step-num {
  display: grid;
  place-items: center;
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 50%;
  background: var(--ink);
  color: var(--light-on-dark);
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 0.9rem;
}

.step h3 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--ink);
  margin-bottom: 0.35rem;
}
.step p { color: var(--text-muted); font-size: 0.88rem; }

/* ---------- About ---------- */
.section-dark { background: var(--ink); }

.section-dark .section-title { color: var(--light-on-dark); }
.section-dark p { color: var(--muted-on-dark); }

.about-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 3.5rem;
  align-items: start;
}

.about-copy p { margin-bottom: 1.1rem; max-width: 56ch; }

.about-sign { font-size: 1.05rem; }
.about-sign strong { color: var(--light-on-dark); }

.about-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  padding: 1.8rem;
}

.about-card h3 {
  font-family: var(--font-display);
  color: var(--light-on-dark);
  margin-bottom: 1rem;
  font-size: 1.15rem;
}

.about-card ul { list-style: none; }
.about-card li {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--muted-on-dark);
  padding: 0.55rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.95rem;
}
.about-card li:last-child { border-bottom: none; }

/* ---------- Carousel ---------- */
.carousel {
  position: relative;
  max-width: 860px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.carousel-viewport {
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  background: #fff;
}

.carousel-track {
  display: flex;
  transition: transform 0.45s cubic-bezier(0.33, 1, 0.68, 1);
}

.carousel-slide {
  flex: 0 0 100%;
  min-width: 100%;
}

.carousel-slide img {
  width: 100%;
  height: auto;
  max-height: 560px;
  object-fit: contain;
  background: #fff;
}

.carousel-noscript { padding: 3rem; text-align: center; color: var(--text-muted); }

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: none;
  background: rgba(15, 27, 45, 0.75);
  color: #fff;
  font-size: 1.05rem;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background 0.15s ease, transform 0.15s ease;
}
.carousel-btn:hover { background: var(--accent); }
.carousel-btn.prev { left: -14px; }
.carousel-btn.next { right: -14px; }

.carousel-dots { display: flex; justify-content: center; gap: 0.55rem; }

.carousel-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: none;
  padding: 0;
  background: rgba(15, 27, 45, 0.22);
  cursor: pointer;
  transition: background 0.15s ease, transform 0.15s ease;
}
.carousel-dot[aria-selected="true"] {
  background: var(--accent);
  transform: scale(1.25);
}

/* ---------- CTA ---------- */
.cta { background: var(--ink-soft); text-align: center; }
.cta .section-title { color: var(--light-on-dark); margin-bottom: 0.9rem; }
.cta p { color: var(--muted-on-dark); margin-bottom: 2rem; font-size: 1.05rem; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink);
  color: var(--muted-on-dark);
  padding: 2.8rem 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.footer-inner .brand { color: var(--light-on-dark); }
.site-footer .brand-mark { box-shadow: 0 2px 10px rgba(0, 0, 0, 0.4); }
.footer-tagline { font-family: var(--font-display); font-style: italic; color: var(--accent); }
.footer-copy { margin-left: auto; font-size: 0.88rem; }

/* ---------- Booking modal ---------- */
.modal { position: fixed; inset: 0; z-index: 100; }
.modal[hidden] { display: none; }

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 27, 45, 0.65);
  backdrop-filter: blur(3px);
}

.modal-panel {
  position: relative;
  width: min(920px, 94vw);
  height: min(760px, 90vh);
  margin: 4vh auto;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  display: flex;
}

.modal-panel iframe { flex: 1; width: 100%; border: 0; }

.modal-close {
  position: absolute;
  top: 10px;
  right: 12px;
  z-index: 2;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background: rgba(15, 27, 45, 0.8);
  color: #fff;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
}
.modal-close:hover { background: var(--accent); }

body.modal-open { overflow: hidden; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .steps { grid-template-columns: 1fr; max-width: 460px; margin-inline: auto; }
  .step:not(:last-child)::after { display: none; }
  .about-grid { grid-template-columns: 1fr; gap: 2rem; }
  .carousel-btn.prev { left: 8px; }
  .carousel-btn.next { right: 8px; }
}

@media (max-width: 760px) {
  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--paper);
    border-bottom: 1px solid rgba(15, 27, 45, 0.1);
    display: none;
    padding: 0.6rem 0;
  }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 0.8rem 5%; }

  .nav-toggle {
    display: flex;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    margin-left: auto;
  }
  .nav-toggle span {
    width: 22px;
    height: 2px;
    background: var(--ink);
    border-radius: 2px;
    transition: transform 0.2s ease, opacity 0.2s ease;
  }

  .nav-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
  }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .header-inner .btn-primary { display: none; }
  .header-inner { gap: 1rem; }

  .section { padding: 4rem 0; }
  .hero { padding: 4.5rem 0 4rem; }
  .hero-credentials { gap: 1rem; flex-direction: column; align-items: center; }
  .footer-copy { margin-left: 0; width: 100%; }
  .modal-panel { margin: 2vh auto; height: 94vh; width: 96vw; }
}
