/* ============================================================
   Matt Lee Coaching — Stylesheet
   Colors: Dark Navy + Terracotta
   Fonts: Playfair Display (headings) + Inter (body)
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,700;0,900;1,400&family=Inter:wght@300;400;500;600&display=swap');

/* ---- CSS Variables ---- */
:root {
  --bg:          hsl(224, 28%, 10%);
  --bg-deep:     hsl(224, 28%, 8%);
  --card:        hsl(224, 28%, 14%);
  --card-hover:  hsl(224, 28%, 16%);
  --border:      hsl(224, 20%, 22%);
  --primary:     hsl(20, 68%, 52%);
  --primary-dim: hsl(20, 68%, 42%);
  --primary-fg:  hsl(0, 0%, 98%);
  --fg:          hsl(210, 20%, 92%);
  --muted:       hsl(210, 12%, 58%);
  --input-bg:    hsl(224, 20%, 13%);
  --radius-lg:   1rem;
  --radius-xl:   1.5rem;
  --radius-pill: 9999px;
  --shadow-lg:   0 8px 32px rgba(0,0,0,0.55);
  --transition:  0.25s ease;
}

/* ---- Reset & Base ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'Inter', sans-serif;
  background-color: var(--bg);
  color: var(--fg);
  overflow-x: hidden;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

/* ---- Typography ---- */
.font-display { font-family: 'Playfair Display', Georgia, serif; }

h1, h2, h3 { font-family: 'Playfair Display', Georgia, serif; line-height: 1.1; }

.eyebrow {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 1rem;
}

/* ---- Layout ---- */
.container { max-width: 80rem; margin: 0 auto; padding: 0 1.5rem; }

@media (min-width: 768px)  { .container { padding: 0 4rem; } }
@media (min-width: 1024px) { .container { padding: 0 6rem; } }

/* ---- Fade-In Animation (JS hooks) ---- */
.fade-in {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}
.fade-in.delay-1 { transition-delay: 0.1s; }
.fade-in.delay-2 { transition-delay: 0.2s; }
.fade-in.delay-3 { transition-delay: 0.3s; }
.fade-in.delay-4 { transition-delay: 0.45s; }


/* ================================================================
   NAV
   ================================================================ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  transition: background var(--transition), border-color var(--transition), backdrop-filter var(--transition);
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(10, 14, 23, 0.95);
  backdrop-filter: blur(12px);
  border-color: var(--border);
}
.nav__inner {
  max-width: 80rem;
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
@media (min-width: 768px) { .nav__inner { padding: 1rem 4rem; } }
@media (min-width: 1024px) { .nav__inner { padding: 1rem 6rem; } }

.nav__logo {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.nav__logo span { color: var(--primary); }

.nav__links {
  display: none;
  align-items: center;
  gap: 2rem;
}
@media (min-width: 768px) { .nav__links { display: flex; } }

.nav__links a {
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color var(--transition);
}
.nav__links a:hover { color: var(--fg); }

.btn-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--primary);
  color: var(--primary-fg);
  font-size: 0.875rem;
  font-weight: 600;
  padding: 0.5rem 1.25rem;
  border-radius: var(--radius-pill);
  transition: background var(--transition), gap var(--transition);
}
.btn-pill:hover { background: var(--primary-dim); }
.btn-pill--lg { font-size: 1rem; padding: 1rem 2rem; }
.btn-pill--outline {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--fg);
}
.btn-pill--outline:hover { border-color: var(--primary); color: var(--primary); }
.btn-pill--white {
  background: #fff;
  color: hsl(20, 68%, 40%);
}
.btn-pill--white:hover { background: rgba(255,255,255,0.9); }

.nav__hamburger {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
}
@media (min-width: 768px) { .nav__hamburger { display: none; } }

.nav__hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--fg);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}
.nav__hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__hamburger.open span:nth-child(2) { opacity: 0; }
.nav__hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav__mobile {
  display: none;
  flex-direction: column;
  gap: 1.25rem;
  background: var(--card);
  border-bottom: 1px solid var(--border);
  padding: 1.5rem;
}
.nav__mobile.open { display: flex; }
.nav__mobile a {
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--fg);
  font-size: 0.9375rem;
}


/* ================================================================
   HERO
   ================================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  //background: radial-gradient(ellipse at 30% 50%, hsl(224, 28%, 16%) 0%, hsl(224, 28%, 8%) 70%);
}

.hero__lines {
  position: absolute;
  inset: 0;
  opacity: 0.08;
  pointer-events: none;
  background-image: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 28px,
    hsl(224, 20%, 40%, 0.6) 28px,
    hsl(224, 20%, 40%, 0.6) 29px
  );
}

.hero__photo {
  position: absolute;
  inset-block: 0;
  right: 0;
  width: 55%;
  display: none;
  pointer-events: none;
}
@media (min-width: 1024px) { .hero__photo { display: block; } }

.hero__photo-fade-x {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    to right,
    hsl(224, 28%, 10%) 0%,
    hsl(224, 28%, 10%, 0.85) 20%,
    hsl(224, 28%, 10%, 0.45) 45%,
    transparent 70%
  );
}
.hero__photo-fade-y {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  height: 12rem;
  z-index: 1;
  background: linear-gradient(to top, hsl(224, 28%, 10%) 0%, transparent 100%);
}
.hero__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  filter: brightness(0.75) contrast(1.05);
}

.hero__content {
  position: relative;
  z-index: 10;
  padding: 0 1.5rem;
  max-width: 56rem;
}
@media (min-width: 768px) { .hero__content { padding: 0 4rem; } }
@media (min-width: 1024px) { .hero__content { padding: 0 6rem; } }

.hero__eyebrow {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 1.5rem;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.6s ease 0.1s forwards;
}

.hero__h1 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(3rem, 7vw, 6.5rem);
  font-weight: 900;
  line-height: 0.95;
  letter-spacing: -0.02em;
  color: var(--fg);
  margin-bottom: 1.5rem;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeUp 0.8s ease 0.2s forwards;
}
.hero__h1 .accent { color: var(--primary); }

.hero__sub {
  color: var(--muted);
  font-size: 1.125rem;
  max-width: 30rem;
  line-height: 1.7;
  margin-bottom: 2.5rem;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.7s ease 0.4s forwards;
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.7s ease 0.55s forwards;
}

.hero__scroll {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: var(--muted);
  z-index: 10;
  opacity: 0;
  animation: fadeIn 0.6s ease 1.2s forwards;
}
.hero__scroll span {
  font-size: 0.6875rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}
.hero__scroll svg {
  animation: bounce 1.5s ease-in-out infinite;
}

@keyframes fadeUp {
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  to { opacity: 1; }
}
@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(6px); }
}


/* ================================================================
   SECTIONS — shared
   ================================================================ */
.section { padding: 7rem 0; }
.section--alt {
  background: linear-gradient(180deg, hsl(224, 28%, 10%) 0%, hsl(224, 30%, 12%) 100%);
}

.section__header { text-align: center; margin-bottom: 4rem; }
.section__header--split {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  text-align: left;
  margin-bottom: 4rem;
}
@media (min-width: 768px) {
  .section__header--split {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
  }
}

.section__h2 {
  font-size: clamp(2rem, 5vw, 4rem);
  font-weight: 900;
  line-height: 1.1;
  color: var(--fg);
}
.section__h2 .accent { color: var(--primary); }

.section__lead {
  color: var(--muted);
  font-size: 1.125rem;
  line-height: 1.7;
  max-width: 28rem;
}
@media (min-width: 768px) { .section__lead { text-align: right; } }


/* ================================================================
   WHY COACHING — 2×2 grid
   ================================================================ */
.why-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
@media (min-width: 768px) { .why-grid { grid-template-columns: 1fr 1fr; } }

.why-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 2rem;
  display: flex;
  gap: 1rem;
  transition: border-color var(--transition);
}
.why-card:hover { border-color: rgba(209, 98, 46, 0.4); }

.why-card__icon { flex-shrink: 0; margin-top: 2px; color: var(--primary); }

.why-card__title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--fg);
  margin-bottom: 0.75rem;
}
.why-card__desc { color: var(--muted); line-height: 1.7; }


/* ================================================================
   ABOUT
   ================================================================ */
.about { position: relative; overflow: hidden; }
.about__pattern {
  position: absolute;
  inset: 0;
  opacity: 0.03;
  pointer-events: none;
  background-image: repeating-linear-gradient(
    45deg,
    hsl(20, 68%, 52%) 0px,
    hsl(20, 68%, 52%) 1px,
    transparent 1px,
    transparent 40px
  );
}
.about__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4rem;
  align-items: center;
}
@media (min-width: 1024px) { .about__grid { grid-template-columns: 1fr 1fr; } }

.about__photo-wrap {
  position: relative;
  border-radius: 1.5rem;
  overflow: visible;
}
.about__photo-inner {
  border-radius: 1.5rem;
  overflow: hidden;
  aspect-ratio: 4/5;
  box-shadow: var(--shadow-lg);
}
.about__photo-inner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  filter: brightness(0.9) contrast(1.05);
}
.about__photo-overlay {
  position: absolute;
  inset: 0;
  border-radius: 1.5rem;
  background: linear-gradient(to top, hsl(224, 28%, 10%, 0.5) 0%, transparent 50%);
}
.about__photo-corner {
  position: absolute;
  top: 1.5rem; right: 1.5rem;
  width: 4rem; height: 4rem;
  border: 2px solid rgba(209, 98, 46, 0.5);
  border-radius: 0.75rem;
}
.about__stat-badge {
  position: absolute;
  bottom: -1.5rem; right: -1.5rem;
  background: var(--primary);
  color: var(--primary-fg);
  border-radius: 1rem;
  padding: 1rem 1.5rem;
  box-shadow: var(--shadow-lg);
}
.about__stat-badge .num {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.875rem;
  font-weight: 900;
  display: block;
  line-height: 1;
}
.about__stat-badge .label { font-size: 0.875rem; font-weight: 500; opacity: 0.9; }

.about__h2 {
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 900;
  line-height: 1.1;
  color: var(--fg);
  margin-bottom: 2rem;
}
.about__h2 .accent { color: var(--primary); }

.about__body { display: flex; flex-direction: column; gap: 1.25rem; color: var(--muted); font-size: 1.125rem; line-height: 1.7; }

.about__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2.5rem;
}
.about__stat .num {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.875rem;
  font-weight: 900;
  color: var(--primary);
  display: block;
  line-height: 1;
}
.about__stat .lbl { font-size: 0.875rem; color: var(--muted); margin-top: 0.25rem; }


/* ================================================================
   SERVICES — 3-col grid
   ================================================================ */
.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
@media (min-width: 1024px) { .services-grid { grid-template-columns: repeat(3, 1fr); } }

.service-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 1.5rem;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color var(--transition), transform var(--transition);
}
.service-card:hover { border-color: rgba(209, 98, 46, 0.5); transform: translateY(-4px); }

.service-card__body { padding: 2rem; display: flex; flex-direction: column; flex: 1; }

.service-card__icon {
  width: 3.5rem; height: 3.5rem;
  border-radius: 0.75rem;
  background: rgba(209, 98, 46, 0.1);
  border: 1px solid rgba(209, 98, 46, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  color: var(--primary);
  transition: background var(--transition);
}
.service-card:hover .service-card__icon { background: rgba(209, 98, 46, 0.2); }

.service-card__sub {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.5rem;
}
.service-card__title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--fg);
  margin-bottom: 1rem;
}
.service-card__desc {
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 1.5rem;
  flex: 1;
}
.service-card__features { display: flex; flex-direction: column; gap: 0.75rem; }
.service-card__feature {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.875rem;
  color: var(--fg);
}
.service-card__feature svg { color: var(--primary); flex-shrink: 0; margin-top: 1px; }

.service-card__link {
  margin-top: 2rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--primary);
  transition: gap var(--transition);
}
.service-card__link:hover { gap: 0.75rem; }


/* ================================================================
   TESTIMONIALS — 3-col grid
   ================================================================ */
.testimonials-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
@media (min-width: 768px) { .testimonials-grid { grid-template-columns: repeat(3, 1fr); } }

.testimonial-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 1.5rem;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  height: 100%;
}
.testimonial-card__stars { display: flex; gap: 0.25rem; margin-bottom: 1.5rem; }
.testimonial-card__stars svg { color: var(--primary); fill: var(--primary); }
.testimonial-card__quote {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.125rem;
  line-height: 1.7;
  font-style: italic;
  color: var(--fg);
  flex: 1;
  margin-bottom: 2rem;
}
.testimonial-card__divider {
  border-top: 1px solid var(--border);
  padding-top: 1.5rem;
}
.testimonial-card__name { font-weight: 600; color: var(--fg); }
.testimonial-card__role { font-size: 0.875rem; color: var(--muted); margin-top: 0.25rem; }


/* ================================================================
   CTA BANNER
   ================================================================ */
.cta-banner {
  margin: 2rem 1.5rem;
  border-radius: 1.5rem;
  overflow: hidden;
  position: relative;
}
@media (min-width: 768px)  { .cta-banner { margin: 2rem 4rem; } }
@media (min-width: 1024px) { .cta-banner { margin: 2rem 6rem; } }

.cta-banner__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  filter: brightness(0.35) saturate(0.7);
}
.cta-banner__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, hsl(20, 68%, 35%, 0.85) 0%, hsl(224, 28%, 12%, 0.75) 100%);
}
.cta-banner__content {
  position: relative;
  z-index: 1;
  padding: 4rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  align-items: flex-start;
}
@media (min-width: 768px) {
  .cta-banner__content {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 4rem;
  }
}
.cta-banner__h2 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 900;
  color: #fff;
  line-height: 1.15;
  margin-bottom: 0.75rem;
}
.cta-banner__sub { color: rgba(255,255,255,0.8); font-size: 1.125rem; }


/* ================================================================
   CONTACT FORM
   ================================================================ */
.form-wrap {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 1.5rem;
  padding: 2rem;
}
@media (min-width: 768px) { .form-wrap { padding: 3rem; } }

.form-grid-2 { display: grid; grid-template-columns: 1fr; gap: 1.5rem; }
@media (min-width: 768px) { .form-grid-2 { grid-template-columns: 1fr 1fr; } }

.form-group { display: flex; flex-direction: column; gap: 0.5rem; }

.form-label {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--fg);
}
.form-label .optional { color: var(--muted); font-weight: 400; }

.form-input,
.form-select,
.form-textarea {
  background: var(--input-bg);
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  color: var(--fg);
  font-family: 'Inter', sans-serif;
  font-size: 0.9375rem;
  padding: 0.75rem 1rem;
  width: 100%;
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
  -webkit-appearance: none;
}
.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(209, 98, 46, 0.15);
}
.form-input::placeholder,
.form-textarea::placeholder { color: var(--muted); }
.form-textarea { resize: none; min-height: 9rem; }

.form-select { cursor: pointer; }
.form-select option { background: var(--card); color: var(--fg); }

.form-error { font-size: 0.8125rem; color: hsl(0, 72%, 60%); display: none; }
.form-error.visible { display: block; }

.form-submit {
  width: 100%;
  background: var(--primary);
  color: var(--primary-fg);
  font-size: 1rem;
  font-weight: 600;
  padding: 1rem 2rem;
  border-radius: var(--radius-pill);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: background var(--transition), opacity var(--transition);
  cursor: pointer;
  border: none;
  font-family: inherit;
}
.form-submit:hover { background: var(--primary-dim); }
.form-submit:disabled { opacity: 0.6; cursor: not-allowed; }

.form-notice {
  display: none;
  padding: 1rem 1.25rem;
  border-radius: 0.75rem;
  font-size: 0.9375rem;
  font-weight: 500;
  margin-bottom: 1.5rem;
}
.form-notice.success {
  display: block;
  background: rgba(34, 197, 94, 0.12);
  border: 1px solid rgba(34, 197, 94, 0.3);
  color: hsl(142, 70%, 70%);
}
.form-notice.error {
  display: block;
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: hsl(0, 70%, 70%);
}


/* ================================================================
   FOOTER
   ================================================================ */
.footer {
  border-top: 1px solid var(--border);
  padding: 3rem 0;
}
.footer__inner {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  align-items: center;
  text-align: center;
}
@media (min-width: 768px) {
  .footer__inner {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

.footer__logo {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--fg);
  margin-bottom: 0.25rem;
}
.footer__logo span { color: var(--primary); }
.footer__tagline { font-size: 0.875rem; color: var(--muted); }

.footer__social { display: flex; gap: 0.75rem; }
.footer__social a {
  width: 2.5rem; height: 2.5rem;
  border-radius: 50%;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  transition: color var(--transition), border-color var(--transition);
}
.footer__social a:hover { color: var(--primary); border-color: var(--primary); }

.footer__copy { font-size: 0.875rem; color: var(--muted); }


/* ================================================================
   SVG ICONS (inline helpers)
   ================================================================ */
svg { display: inline-block; vertical-align: middle; }
