/* ============================================================
   MASTERCOACHES.COM — Main Stylesheet
   Mobile-first, responsive, no frameworks
   ============================================================ */

/* ---------- Reset & Base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --color-navy:      #1a2744;
  --color-navy-mid:  #243058;
  --color-gold:      #c8922a;
  --color-gold-lt:   #e8b94a;
  --color-white:     #ffffff;
  --color-off-white: #f7f6f2;
  --color-mid:       #eef0f5;
  --color-text:      #2c2c2c;
  --color-muted:     #666;

  --font-heading: 'Georgia', 'Times New Roman', serif;
  --font-body:    'Helvetica Neue', Arial, sans-serif;

  --max-width: 1100px;
  --narrow:     720px;
  --radius:     6px;
  --transition: 0.2s ease;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.7;
  color: var(--color-text);
  background: var(--color-white);
}

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  line-height: 1.25;
}

h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); margin-bottom: 1rem; }
h3 { font-size: 1.2rem; margin-bottom: 0.5rem; }

p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

a { color: var(--color-gold); text-decoration: none; }
a:hover { text-decoration: underline; }

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

ul { list-style: none; }

/* ---------- Utilities ---------- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.25rem;
}

.narrow { max-width: var(--narrow); }

section { padding: 4rem 0; }

.section-title {
  text-align: center;
  margin-bottom: 2.5rem;
}

.section-intro {
  text-align: center;
  color: var(--color-muted);
  max-width: 600px;
  margin: -1.5rem auto 2.5rem;
}

.section-light { background: var(--color-off-white); }
.section-mid   { background: var(--color-mid); }
.section-dark  { background: var(--color-navy); color: var(--color-white); }
.section-dark h2, .section-dark h3 { color: var(--color-gold-lt); }
.section-dark p, .section-dark cite { color: #ccd; }

.hidden { display: none; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 0.65rem 1.5rem;
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  cursor: pointer;
  border: 2px solid transparent;
  transition: background var(--transition), color var(--transition), border-color var(--transition);
  text-decoration: none;
}

.btn-primary {
  background: var(--color-gold);
  color: var(--color-white);
  border-color: var(--color-gold);
}
.btn-primary:hover {
  background: var(--color-gold-lt);
  border-color: var(--color-gold-lt);
  text-decoration: none;
  color: var(--color-navy);
}

.btn-secondary {
  background: transparent;
  color: var(--color-navy);
  border-color: var(--color-navy);
}
.btn-secondary:hover {
  background: var(--color-navy);
  color: var(--color-white);
  text-decoration: none;
}

.btn-lg { padding: 0.9rem 2rem; font-size: 1.05rem; }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--color-navy);
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.85rem;
  padding-bottom: 0.85rem;
}

.logo {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  line-height: 1.2;
}
.logo-main    { font-family: var(--font-heading); font-size: 1.3rem; color: var(--color-white); font-weight: bold; }
.logo-tagline { font-size: 0.7rem; color: var(--color-gold-lt); letter-spacing: 0.05em; text-transform: uppercase; }
.logo-img     { max-height: 60px; width: auto; display: block; }

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}
.site-nav a { color: #ccd; font-size: 0.9rem; text-decoration: none; }
.site-nav a:hover { color: var(--color-white); }
.site-nav .btn-primary { color: var(--color-white); }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--color-white);
  font-size: 1.6rem;
  cursor: pointer;
}

/* Mobile nav */
@media (max-width: 768px) {
  .nav-toggle { display: block; }
  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: var(--color-navy-mid);
    flex-direction: column;
    align-items: flex-start;
    padding: 1rem 1.25rem 1.5rem;
    gap: 1rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  }
  .site-nav.open { display: flex; }
  .site-nav a { font-size: 1rem; }
}

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(135deg, var(--color-navy) 0%, var(--color-navy-mid) 100%);
  color: var(--color-white);
  padding: 6rem 0 5rem;
  text-align: center;
}
.hero h1 { color: var(--color-white); margin-bottom: 1.25rem; }
.hero-sub {
  font-size: 1.15rem;
  color: #ccd;
  max-width: 640px;
  margin: 0 auto 2rem;
}

/* ---------- Who For ---------- */
.who-for { text-align: center; }
.who-for h2 { color: var(--color-navy); }

/* ---------- Pillars ---------- */
.pillars-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
}
.pillar {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius);
  padding: 2rem;
}
.pillar-icon { font-size: 2rem; margin-bottom: 0.75rem; }
.pillar h3   { color: var(--color-gold-lt); margin-bottom: 0.5rem; }

/* ---------- Approach ---------- */
.approach { text-align: center; }
.approach h2 { color: var(--color-navy); }
.pull-quote {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-style: italic;
  color: var(--color-navy);
  border-left: 4px solid var(--color-gold);
  padding: 1rem 1.5rem;
  margin: 2rem auto;
  text-align: left;
  max-width: 540px;
}

/* ---------- Services ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}
.service-card {
  background: var(--color-white);
  border-radius: var(--radius);
  padding: 1.75rem;
  border-top: 4px solid var(--color-gold);
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.service-card h3 { color: var(--color-navy); }

/* ---------- Team ---------- */
.team-member {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
  margin-bottom: 3rem;
  background: var(--color-white);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.placeholder-photo {
  flex-shrink: 0;
  width: 100px; height: 100px;
  border-radius: 50%;
  background: var(--color-navy);
  color: var(--color-gold-lt);
  font-size: 1.8rem;
  font-family: var(--font-heading);
  display: flex; align-items: center; justify-content: center;
}
.team-bio h3 { color: var(--color-navy); font-size: 1.4rem; }

@media (max-width: 540px) {
  .team-member { flex-direction: column; align-items: center; text-align: center; }
}

.team-tribute {
  background: var(--color-navy);
  color: #ccd;
  border-radius: var(--radius);
  padding: 2rem;
  margin-bottom: 2rem;
}
.team-tribute h3 { color: var(--color-gold-lt); margin-bottom: 1rem; }

.methodologies { margin-top: 2rem; }
.methodologies h3 { color: var(--color-navy); margin-bottom: 1rem; }
.method-list li {
  padding: 0.5rem 0;
  border-bottom: 1px solid #dde;
  padding-left: 1.2rem;
  position: relative;
}
.method-list li::before { content: '✦'; position: absolute; left: 0; color: var(--color-gold); font-size: 0.75rem; top: 0.6rem; }

/* ---------- Video ---------- */
.video-section { text-align: center; }
.video-wrapper {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 */
  height: 0;
  overflow: hidden;
  border-radius: var(--radius);
  margin-top: 1.5rem;
}
.video-wrapper iframe {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
}

/* ---------- Testimonials ---------- */
.featured-testimonial {
  background: var(--color-navy);
  color: #ccd;
  border-radius: var(--radius);
  padding: 2.5rem;
  margin-bottom: 2.5rem;
}
.featured-testimonial blockquote {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-style: italic;
  line-height: 1.7;
  color: var(--color-white);
}
.featured-testimonial cite {
  display: block;
  margin-top: 1rem;
  color: var(--color-gold-lt);
  font-style: normal;
  font-weight: 600;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}
.testimonial {
  background: var(--color-white);
  border-radius: var(--radius);
  padding: 1.75rem;
  border-left: 4px solid var(--color-gold);
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.testimonial blockquote {
  font-style: italic;
  color: var(--color-text);
  margin-bottom: 1rem;
}
.testimonial cite {
  font-size: 0.9rem;
  color: var(--color-navy);
  font-weight: 600;
  font-style: normal;
}

/* ---------- Resources ---------- */
.resources-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  margin-bottom: 3rem;
}
.resource-card {
  background: var(--color-white);
  border-radius: var(--radius);
  padding: 2rem;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.resource-icon { font-size: 2.5rem; margin-bottom: 1rem; }
.resource-card h3 { color: var(--color-navy); margin-bottom: 0.75rem; }
.resource-card p  { margin-bottom: 1.25rem; }

.notify-signup {
  background: var(--color-navy);
  color: #ccd;
  border-radius: var(--radius);
  padding: 2rem;
  text-align: center;
  max-width: 520px;
  margin: 0 auto;
}
.notify-signup h3 { color: var(--color-gold-lt); }
.notify-form { margin-top: 1rem; }
.form-row { display: flex; gap: 0.75rem; flex-wrap: wrap; justify-content: center; }
.form-row input[type="email"] {
  flex: 1;
  min-width: 200px;
  padding: 0.65rem 1rem;
  border-radius: var(--radius);
  border: none;
  font-size: 1rem;
}

/* ---------- Insight ---------- */
.insight { text-align: center; }
.insight-quote {
  font-family: var(--font-heading);
  font-size: clamp(1.2rem, 3vw, 1.6rem);
  font-style: italic;
  color: var(--color-white);
  max-width: 620px;
  margin: 0 auto 1rem;
  line-height: 1.5;
}
.insight-author { color: var(--color-gold-lt); font-size: 0.95rem; }

/* ---------- Contact ---------- */
.contact h2 { color: var(--color-navy); text-align: center; }
.contact > .container > p { text-align: center; color: var(--color-muted); margin-bottom: 2rem; }

.contact-form { margin-top: 1rem; }
.form-group { margin-bottom: 1.25rem; }
.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.4rem;
  color: var(--color-navy);
}
.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 2px solid #dde;
  border-radius: var(--radius);
  font-size: 1rem;
  font-family: var(--font-body);
  transition: border-color var(--transition);
}
.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-gold);
}
.contact-form .btn { margin-top: 0.5rem; width: 100%; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--color-navy);
  color: #aab;
  padding: 3rem 0 2rem;
}
.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  text-align: center;
}
.footer-brand { display: flex; flex-direction: column; }
.footer-brand .logo-main { color: var(--color-white); font-size: 1.2rem; }
.footer-brand .logo-tagline { color: var(--color-gold-lt); font-size: 0.7rem; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; }
.footer-nav a { color: #aab; font-size: 0.9rem; }
.footer-nav a:hover { color: var(--color-white); }
.footer-legal { font-size: 0.85rem; color: #778; }
.footer-legal a { color: var(--color-gold-lt); }

/* ---------- Team photos (added Nov 2026) ---------- */
img.team-photo {
  flex-shrink: 0;
  width: 160px; height: 160px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--color-white);
  box-shadow: 0 2px 10px rgba(0,0,0,0.15);
}
.team-link { margin-top: 0.75rem; display: inline-block; }
.partners-photo { margin: 0 0 1.5rem; }
.partners-photo img { width: 100%; height: auto; border-radius: var(--radius); }
.partners-photo figcaption {
  font-size: 0.92rem;
  font-style: italic;
  line-height: 1.6;
  color: #b8bfd6;
  margin-top: 0.75rem;
}
.form-note { font-size: 0.85rem; color: var(--color-muted); margin-top: 0.75rem; }
.legal h1 { font-size: 2rem; margin-bottom: 0.25rem; }
.legal h2 { font-size: 1.3rem; margin: 2rem 0 0.5rem; color: var(--color-navy); }
.legal ul { list-style: disc; padding-left: 1.5rem; margin-bottom: 1rem; }
.legal .effective { color: var(--color-muted); font-size: 0.9rem; margin-bottom: 2rem; }

.who-for .team-bio { text-align: left; }
@media (max-width: 540px) { .who-for .team-bio, .team-bio { text-align: left; } .team-bio h3, .team-bio h1 { text-align: center; } }

/* Service card photos */
.service-card { overflow: hidden; }
.service-img {
  width: calc(100% + 3.5rem);
  max-width: none;
  margin: -1.75rem -1.75rem 1.25rem;
  aspect-ratio: 8 / 5;
  height: auto;
  object-fit: cover;
}

/* Resource cards with first-page thumbnails */
.resources-grid { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.resource-card { display: flex; flex-direction: column; padding: 1.5rem; }
.resource-card p { flex: 1; font-size: 0.95rem; }
.resource-card .btn { align-self: center; }
.resource-thumb { display: block; margin-bottom: 1.25rem; }
.resource-thumb img {
  width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: top;
  border: 1px solid #dde; border-radius: 4px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.12);
  transition: transform var(--transition);
}
.resource-thumb:hover img { transform: translateY(-3px); }
