/* ═══════════════════════════════════════════════════════════════
   Sam Howden — Shared Stylesheet
   Used by: index.html, lessons.html, recording.html, tuning.html
═══════════════════════════════════════════════════════════════ */

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

:root {
  --navy:       #1e3a5f;
  --navy-light: #2b5086;
  --gold:       #c9a84c;
  --text:       #333333;
  --text-light: #5a6472;
  --bg:         #ffffff;
  --bg-alt:     #f4f7fb;
  --border:     #d8e2ef;
  --radius:     10px;
  --shadow:     0 4px 24px rgba(30, 58, 95, 0.10);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
}

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

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

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

/* ── Layout helpers ───────────────────────────────────── */
.container {
  width: min(1100px, 92%);
  margin-inline: auto;
}

section { padding: 80px 0; }

.section-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
}

.section-title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  color: var(--navy);
  margin-bottom: 16px;
}

.section-intro {
  font-size: 1.05rem;
  color: var(--text-light);
  max-width: 600px;
}

/* ── Navigation ───────────────────────────────────────── */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.nav-logo {
  font-family: 'Playfair Display', serif;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--navy);
}

.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text);
  transition: color 0.2s;
}

.nav-links a:hover { color: var(--navy); text-decoration: none; }

.nav-links a.active { color: var(--navy); font-weight: 600; }

.nav-cta {
  background: var(--navy);
  color: #fff !important;
  padding: 8px 20px;
  border-radius: 6px;
  transition: background 0.2s !important;
}

.nav-cta:hover { background: var(--navy-light) !important; }

/* Hamburger (mobile) */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: all 0.3s;
}

/* ── Buttons ──────────────────────────────────────────── */
.btn {
  display: inline-block;
  padding: 13px 28px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.2s;
  border: 2px solid transparent;
}

.btn-primary {
  background: var(--gold);
  color: #fff;
}
.btn-primary:hover { background: #b8973e; text-decoration: none; }

.btn-outline {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,0.5);
}
.btn-outline:hover { background: rgba(255,255,255,0.1); text-decoration: none; }

.btn-navy {
  background: var(--navy);
  color: #fff;
}
.btn-navy:hover { background: var(--navy-light); text-decoration: none; }

/* ── Hero (index only) ────────────────────────────────── */
.hero {
  background: linear-gradient(135deg, var(--navy) 0%, #2b5086 60%, #3a6ba8 100%);
  color: #fff;
  padding: 120px 0 100px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.hero-content {
  position: relative;
  max-width: 680px;
}

.hero-eyebrow {
  display: inline-block;
  background: rgba(201,168,76,0.25);
  color: var(--gold);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 20px;
  margin-bottom: 24px;
  border: 1px solid rgba(201,168,76,0.4);
}

.hero h1 {
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 700;
  margin-bottom: 20px;
  color: #fff;
}

.hero h1 span { color: var(--gold); }

.hero-sub {
  font-size: 1.15rem;
  opacity: 0.88;
  margin-bottom: 36px;
  max-width: 520px;
}

.hero-buttons { display: flex; gap: 14px; flex-wrap: wrap; }

/* ── Page Hero (service pages) ────────────────────────── */
.page-hero {
  background: linear-gradient(135deg, var(--navy) 0%, #2b5086 60%, #3a6ba8 100%);
  color: #fff;
  padding: 80px 0 70px;
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.page-hero-content { position: relative; }

.page-hero-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: rgba(255,255,255,0.75);
  font-size: 0.88rem;
  font-weight: 500;
  margin-bottom: 20px;
  transition: color 0.2s;
}
.page-hero-back:hover { color: #fff; text-decoration: none; }

.page-hero .hero-eyebrow { margin-bottom: 18px; }

.page-hero h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  color: #fff;
  margin-bottom: 14px;
}

.page-hero-sub {
  font-size: 1.1rem;
  opacity: 0.85;
  max-width: 560px;
}

/* ── About ────────────────────────────────────────────── */
#about { background: var(--bg-alt); }

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.about-photo-wrap {
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 4/5;
  background: var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-light);
  font-size: 0.9rem;
  text-align: center;
  padding: 20px;
}

.about-photo-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.about-photo-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
}

.about-text p { margin-bottom: 16px; color: var(--text-light); }

.about-stats {
  display: flex;
  gap: 32px;
  margin-top: 28px;
  padding-top: 28px;
  border-top: 1px solid var(--border);
}

.stat-num {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--navy);
  display: block;
}

.stat-label {
  font-size: 0.82rem;
  color: var(--text-light);
  font-weight: 500;
}

/* ── Services ─────────────────────────────────────────── */
#services .section-header { margin-bottom: 52px; }

.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

.services-footnote {
  margin-top: 28px;
  font-size: 0.93rem;
  color: var(--text-light);
}

.service-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 36px 32px;
  box-shadow: var(--shadow);
  transition: transform 0.25s, box-shadow 0.25s;
  display: flex;
  flex-direction: column;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 40px rgba(30, 58, 95, 0.15);
}

.service-icon {
  width: 54px;
  height: 54px;
  border-radius: 12px;
  background: var(--bg-alt);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
  font-size: 1.6rem;
}

.service-card h3 {
  font-size: 1.25rem;
  color: var(--navy);
  margin-bottom: 12px;
}

.service-card p {
  color: var(--text-light);
  font-size: 0.95rem;
  flex: 1;
}

.service-list {
  list-style: none;
  margin-top: 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.service-list li {
  font-size: 0.9rem;
  color: var(--text-light);
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.service-list li::before {
  content: '✓';
  color: var(--navy);
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 1px;
}

.service-price-hint {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--navy);
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}

.service-cta {
  display: inline-block;
  margin-top: 16px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--navy);
  border-bottom: 2px solid var(--navy);
  padding-bottom: 2px;
  transition: color 0.2s, border-color 0.2s;
  align-self: flex-start;
}

.service-cta:hover { color: var(--gold); border-color: var(--gold); text-decoration: none; }

/* ── Rates ────────────────────────────────────────────── */
#rates { background: var(--bg-alt); }

.rates-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}

.rate-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 32px 28px;
  text-align: center;
  box-shadow: var(--shadow);
  position: relative;
}

.rate-card.featured { border-color: var(--navy); }

.rate-badge {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--navy);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 14px;
  border-radius: 20px;
}

.rate-service {
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-light);
  margin-bottom: 8px;
}

.rate-name {
  font-family: 'Playfair Display', serif;
  font-size: 1.3rem;
  color: var(--navy);
  margin-bottom: 16px;
}

.rate-price {
  font-family: 'Playfair Display', serif;
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--navy);
}

.rate-unit {
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  color: var(--text-light);
  font-weight: 400;
}

.rate-desc {
  font-size: 0.9rem;
  color: var(--text-light);
  margin-top: 12px;
}

.rate-note {
  margin-top: 40px;
  text-align: center;
  font-size: 0.9rem;
  color: var(--text-light);
}

/* ── Contact ──────────────────────────────────────────── */
#contact { background: var(--bg); }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 60px;
  align-items: start;
  margin-top: 48px;
}

.contact-info h3 {
  font-size: 1.15rem;
  color: var(--navy);
  margin-bottom: 20px;
}

.contact-items { display: flex; flex-direction: column; gap: 16px; }

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.contact-item-icon {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.contact-item-text strong {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 2px;
}

.contact-item-text span {
  font-size: 0.95rem;
  color: var(--text);
}

/* Form */
.contact-form {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 36px;
}

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 18px;
}

.form-group label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
}

.form-group input,
.form-group select,
.form-group textarea {
  padding: 11px 14px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  color: var(--text);
  background: var(--bg);
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(30, 58, 95, 0.1);
}

.form-group textarea { resize: vertical; min-height: 120px; }

.form-submit {
  width: 100%;
  background: var(--navy);
  color: #fff;
  border: none;
  padding: 14px;
  border-radius: 8px;
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}

.form-submit:hover { background: var(--navy-light); }

.form-note {
  font-size: 0.8rem;
  color: var(--text-light);
  text-align: center;
  margin-top: 12px;
}

.form-success {
  display: none;
  background: #e8f5e9;
  border: 1px solid #a5d6a7;
  color: #2e7d32;
  border-radius: 8px;
  padding: 16px;
  margin-top: 16px;
  font-size: 0.95rem;
  text-align: center;
}

/* ── Detail Section (service pages) ──────────────────── */
.detail-section { background: var(--bg); }
.detail-section.alt { background: var(--bg-alt); }

.detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

.detail-grid.reverse { direction: rtl; }
.detail-grid.reverse > * { direction: ltr; }

.detail-text h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  color: var(--navy);
  margin-bottom: 16px;
  margin-top: 8px;
}

.detail-text p {
  color: var(--text-light);
  margin-bottom: 16px;
}

.detail-list {
  list-style: none;
  margin-top: 8px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.detail-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.95rem;
  color: var(--text-light);
}

.detail-list li::before {
  content: '✓';
  color: var(--navy);
  font-weight: 700;
  flex-shrink: 0;
}

.detail-photo-wrap {
  border-radius: 14px;
  overflow: hidden;
  aspect-ratio: 4/5;
  background: var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-light);
  font-size: 0.9rem;
  text-align: center;
  padding: 20px;
}

.detail-photo-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.photo-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.photo-placeholder-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: rgba(255,255,255,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
}

/* ── Video Section (service pages) ───────────────────── */
.video-section { background: var(--bg-alt); }

.video-wrap {
  margin-top: 40px;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--shadow);
  background: #111;
  max-width: 820px;
  margin-inline: auto;
}

.video-wrap video {
  width: 100%;
  display: block;
}

.video-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 80px 24px;
  color: rgba(255,255,255,0.55);
  font-size: 0.95rem;
  text-align: center;
}

.video-play-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  padding-left: 4px;
}

/* ── Service Page Rates ───────────────────────────────── */
.page-rates { background: var(--bg); }

.page-rates-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
  margin-top: 48px;
  max-width: 720px;
}

/* ── Video Carousel ───────────────────────────────────── */
.carousel {
  position: relative;
  margin-top: 40px;
  max-width: 820px;
  margin-inline: auto;
}

.carousel-track {
  position: relative;
  overflow: hidden;
  border-radius: 14px;
  background: #111;
  box-shadow: var(--shadow);
}

.carousel-slide {
  display: none;
}

.carousel-slide.active {
  display: block;
}

.carousel-slide video {
  width: 100%;
  display: block;
}

.carousel-caption {
  text-align: center;
  font-size: 0.88rem;
  color: var(--text-light);
  margin-top: 12px;
  font-style: italic;
}

.carousel-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-top: 20px;
}

.carousel-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid var(--navy);
  background: var(--bg);
  color: var(--navy);
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, color 0.2s;
  flex-shrink: 0;
}

.carousel-btn:hover {
  background: var(--navy);
  color: #fff;
}

.carousel-dots {
  display: flex;
  gap: 8px;
  align-items: center;
}

.carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--border);
  border: none;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
  padding: 0;
}

.carousel-dot.active {
  background: var(--navy);
  transform: scale(1.3);
}

/* ── FAQ Section ──────────────────────────────────────── */
.faq-section { background: var(--bg-alt); }

.faq-list {
  margin-top: 40px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 760px;
}

.faq-list details {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0;
  box-shadow: var(--shadow);
}

.faq-list summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  font-family: 'Playfair Display', serif;
  font-size: 1.05rem;
  color: var(--navy);
  cursor: pointer;
  list-style: none;
  user-select: none;
}

.faq-list summary::-webkit-details-marker { display: none; }

.faq-list summary::after {
  content: '+';
  font-size: 1.4rem;
  font-weight: 300;
  color: var(--navy);
  flex-shrink: 0;
  margin-left: 16px;
  transition: transform 0.2s;
}

.faq-list details[open] summary::after {
  content: '×';
}

.faq-list details[open] summary {
  border-bottom: 1px solid var(--border);
}

.faq-answer {
  padding: 18px 24px 20px;
  color: var(--text-light);
  font-size: 0.97rem;
  line-height: 1.75;
}

/* ── CTA Banner ───────────────────────────────────────── */
.cta-banner {
  background: var(--navy);
  color: #fff;
  padding: 80px 0;
  text-align: center;
}

.cta-banner h2 {
  color: #fff;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  margin-bottom: 16px;
}

.cta-banner p {
  opacity: 0.82;
  font-size: 1.05rem;
  max-width: 480px;
  margin-inline: auto;
  margin-bottom: 32px;
}

/* ── Footer ───────────────────────────────────────────── */
footer {
  background: var(--navy);
  color: rgba(255,255,255,0.7);
  padding: 40px 0;
  text-align: center;
}

footer .footer-name {
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem;
  color: #fff;
  margin-bottom: 8px;
}

footer p { font-size: 0.88rem; }
footer a { color: var(--gold); }

/* ── Responsive ───────────────────────────────────────── */
@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; }
  .about-photo-wrap { aspect-ratio: 3/2; max-width: 480px; }
  .services-grid { grid-template-columns: 1fr; gap: 20px; }
  .rates-grid { grid-template-columns: 1fr; max-width: 400px; margin-inline: auto; }
  .contact-grid { grid-template-columns: 1fr; gap: 36px; }
  .form-row { grid-template-columns: 1fr; }
  .detail-grid { grid-template-columns: 1fr; }
  .detail-grid.reverse { direction: ltr; }
  .detail-photo-wrap { aspect-ratio: 3/2; max-width: 480px; }
  .page-rates-grid { max-width: 400px; }
}

@media (max-width: 640px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }

  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid var(--border);
    padding: 20px 24px;
    gap: 18px;
    box-shadow: var(--shadow);
  }

  .hero { padding: 80px 0 70px; }
  section { padding: 60px 0; }
  .contact-form { padding: 24px; }
  .cta-banner { padding: 60px 0; }
}
