/* Coach Stuart Miller — shared styles */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,400;9..144,500;9..144,600&family=Inter:wght@400;500;600&display=swap');

:root {
  --charcoal: #1c1c1a;
  --cream: #f7f5f0;
  --forest: #2e3b2e;
  --accent: #a3231a;
  --warm-gray: #8a8577;
  --line: #ddd8cc;
  --max-width: 1100px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

body {
  margin: 0;
  background: var(--cream);
  color: var(--charcoal);
  font-family: 'Inter', -apple-system, sans-serif;
  font-size: 17px;
  line-height: 1.6;
}

h1, h2, h3, h4 {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 500;
  line-height: 1.15;
  margin: 0;
  color: var(--charcoal);
}

a {
  color: inherit;
}

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

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

/* Header */
.site-header {
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  background: var(--cream);
  z-index: 50;
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 20px;
  padding-bottom: 20px;
  position: relative;
}

.wordmark {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 20px;
  font-weight: 600;
  text-decoration: none;
  letter-spacing: -0.01em;
  display: flex;
  align-items: center;
  gap: 10px;
}

.wordmark img {
  height: 26px;
  width: auto;
  display: block;
}

.wordmark span {
  color: var(--accent);
}

.footer-logo {
  height: 20px;
  width: auto;
  display: block;
}

.floating-schedule-btn {
  position: fixed;
  bottom: 20px;
  left: 20px;
  z-index: 999;
  background: var(--accent);
  color: #ffffff;
  text-decoration: none;
  padding: 14px 22px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 14px rgba(0,0,0,0.2);
  transition: transform 0.15s ease;
}

.floating-schedule-btn:hover {
  transform: translateY(-2px);
}

footer .footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

nav {
  display: flex;
  gap: 32px;
}

nav a {
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  color: var(--charcoal);
  border-bottom: 1px solid transparent;
  padding-bottom: 2px;
  transition: border-color 0.15s ease;
}

nav a:hover {
  border-color: var(--accent);
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  flex-direction: column;
  gap: 5px;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--charcoal);
}

@media (max-width: 720px) {
  nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--cream);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    gap: 0;
    padding: 8px 0;
  }

  nav.nav-open {
    display: flex;
  }

  nav a {
    padding: 14px 32px;
    border-bottom: 1px solid var(--line);
  }

  nav a:last-child {
    border-bottom: none;
  }

  .menu-toggle {
    display: flex;
  }
}

/* Hero */
.hero {
  padding: 88px 0 72px;
  border-bottom: 1px solid var(--line);
}

.hero-with-image .wrap {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 56px;
  align-items: center;
}

.hero-image img {
  width: 100%;
  border-radius: 12px;
  display: block;
}

@media (max-width: 860px) {
  .hero-with-image .wrap {
    grid-template-columns: 1fr;
  }
  .hero-image {
    order: -1;
    max-width: 320px;
    margin: 0 auto;
  }
}

.hero-eyebrow {
  color: var(--warm-gray);
  font-size: 15px;
  margin-bottom: 18px;
}

.hero h1 {
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  max-width: 15ch;
  letter-spacing: -0.01em;
}

.hero p.lede {
  font-size: 19px;
  color: #48453d;
  max-width: 52ch;
  margin-top: 24px;
}

.hero-actions {
  margin-top: 36px;
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  text-decoration: none;
  padding: 13px 26px;
  font-size: 15px;
  font-weight: 500;
  border-radius: 3px;
  border: 1px solid var(--charcoal);
  transition: background 0.15s ease, color 0.15s ease;
}

.btn-primary {
  background: var(--charcoal);
  color: var(--cream);
}

.btn-primary:hover {
  background: var(--accent);
  border-color: var(--accent);
}

.btn-secondary {
  background: transparent;
  color: var(--charcoal);
}

.btn-secondary:hover {
  background: var(--charcoal);
  color: var(--cream);
}

/* Section framing */
section {
  padding: 72px 0;
  border-bottom: 1px solid var(--line);
}

section:last-of-type {
  border-bottom: none;
}

.section-head {
  max-width: 60ch;
  margin-bottom: 44px;
}

.section-head h2 {
  font-size: clamp(1.7rem, 3vw, 2.2rem);
}

.section-head p {
  color: var(--warm-gray);
  margin-top: 14px;
  font-size: 16px;
}

/* Programs */
.programs {
  display: grid;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.program {
  background: var(--cream);
  padding: 32px;
  display: grid;
  grid-template-columns: 1fr 2fr auto;
  gap: 24px;
  align-items: start;
}

.program-name {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 20px;
  font-weight: 500;
}

.program-tag {
  display: inline-block;
  font-size: 13px;
  color: var(--forest);
  margin-top: 6px;
}

.program-desc {
  color: #48453d;
  font-size: 15.5px;
}

.program-link {
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  color: var(--accent);
  white-space: nowrap;
  align-self: center;
}

@media (max-width: 720px) {
  .program {
    grid-template-columns: 1fr;
  }
}

/* Avenues */
.avenues {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.avenue-card {
  background: var(--cream);
  padding: 40px 32px;
  text-decoration: none;
  color: inherit;
  display: block;
  transition: background 0.15s ease;
}

.avenue-card:hover {
  background: #efece2;
}

.avenue-num {
  color: var(--warm-gray);
  font-size: 14px;
  margin-bottom: 20px;
}

.avenue-card h3 {
  font-size: 24px;
  margin-bottom: 12px;
}

.avenue-card p {
  color: #48453d;
  font-size: 15px;
  margin: 0 0 20px;
}

.avenue-link {
  font-size: 14px;
  font-weight: 500;
  color: var(--accent);
}

@media (max-width: 780px) {
  .avenues {
    grid-template-columns: 1fr;
  }
}

/* Program detail pages */
.detail-hero {
  padding: 72px 0 48px;
  border-bottom: 1px solid var(--line);
}

.problem-solution {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

@media (max-width: 780px) {
  .problem-solution {
    grid-template-columns: 1fr;
  }
}

.ps-card {
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: 4px;
}

.ps-label {
  font-size: 13px;
  color: var(--warm-gray);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 12px;
}

.detail-hero-image {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 4px;
  margin-top: 36px;
}

.detail-hero p.lede {
  font-size: 18px;
  color: #48453d;
  max-width: 58ch;
  margin-top: 20px;
}

.offer-list {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--line);
}

.offer {
  padding: 32px 0;
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-columns: 1fr 2fr auto;
  gap: 24px;
  align-items: start;
}

.offer-name {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 20px;
  font-weight: 500;
}

.offer-tag {
  display: inline-block;
  font-size: 13px;
  color: var(--forest);
  margin-top: 6px;
}

.offer-desc {
  color: #48453d;
  font-size: 15.5px;
}

.offer-includes {
  margin: 10px 0 0;
  padding-left: 18px;
  color: #48453d;
  font-size: 15px;
}

.offer-includes li {
  margin-bottom: 4px;
}

@media (max-width: 720px) {
  .offer {
    grid-template-columns: 1fr;
  }
}

/* About page */
.about-layout {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 56px;
  align-items: start;
}

.about-photo img {
  width: 100%;
  border-radius: 4px;
}

.about-bio p {
  color: #302f2b;
  margin: 0 0 20px;
  font-size: 17px;
}

@media (max-width: 780px) {
  .about-layout {
    grid-template-columns: 1fr;
  }
  .about-photo {
    max-width: 280px;
    margin: 0 auto;
  }
}

/* Background / credentials */
.credentials {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 56px;
  align-items: start;
}

.credentials p {
  color: #48453d;
}

.cred-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
}

.cred-list li {
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-size: 15px;
}

.cred-list .cred-role {
  color: var(--warm-gray);
  text-align: right;
}

@media (max-width: 780px) {
  .credentials {
    grid-template-columns: 1fr;
  }
}

/* Blog list */
.post-list {
  display: flex;
  flex-direction: column;
}

.post-item {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 24px;
  padding: 26px 0;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  color: inherit;
}

.post-item:first-child {
  border-top: 1px solid var(--line);
}

.post-date {
  color: var(--warm-gray);
  font-size: 14px;
  padding-top: 4px;
}

.post-item h3 {
  font-size: 20px;
  font-weight: 500;
}

.post-item p {
  color: #48453d;
  margin: 8px 0 0;
  font-size: 15.5px;
}

@media (max-width: 600px) {
  .post-item {
    grid-template-columns: 1fr;
    gap: 6px;
  }
}

/* Article page */
.article-head {
  padding: 56px 0 40px;
  border-bottom: 1px solid var(--line);
  max-width: 70ch;
}

.article-head .post-date {
  padding-top: 0;
}

.article-head h1 {
  font-size: clamp(2rem, 4vw, 2.8rem);
  margin-top: 16px;
}

.article-body {
  max-width: 68ch;
  padding: 48px 0;
  font-size: 17px;
}

.article-body p {
  margin: 0 0 22px;
  color: #302f2b;
}

.article-body h2 {
  font-size: 24px;
  margin: 40px 0 16px;
}

.article-body blockquote {
  border-left: 3px solid var(--accent);
  margin: 32px 0;
  padding-left: 20px;
  color: var(--forest);
  font-family: 'Fraunces', Georgia, serif;
  font-size: 19px;
}

/* Contact form */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
}

.field {
  margin-bottom: 20px;
}

.field label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 6px;
}

.field input,
.field textarea,
.field select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: #fff;
  font-family: inherit;
  font-size: 15px;
  color: var(--charcoal);
}

.field textarea {
  resize: vertical;
  min-height: 110px;
}

.field input:focus,
.field textarea:focus,
.field select:focus {
  outline: 2px solid var(--forest);
  outline-offset: 1px;
}

.contact-info h3 {
  font-size: 18px;
  margin-bottom: 12px;
}

.contact-info p {
  color: var(--warm-gray);
  font-size: 15px;
}

@media (max-width: 780px) {
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

/* Footer */
footer {
  padding: 40px 0;
}

footer .wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

footer p {
  color: var(--warm-gray);
  font-size: 14px;
  margin: 0;
}

footer nav {
  gap: 20px;
}

footer nav a {
  font-size: 14px;
  color: var(--warm-gray);
}

.footer-contact {
  font-size: 14px;
  color: var(--warm-gray);
}

.footer-contact a {
  color: var(--warm-gray);
  text-decoration: underline;
}

.footer-contact a:hover {
  color: var(--accent);
}

:focus-visible {
  outline: 2px solid var(--forest);
  outline-offset: 2px;
}
