/* ============================
   SamFrets
   Shared stylesheet
   ============================ */

:root {
  --cream: #f5eedf;
  --cream-dark: #ede1c8;
  --wood: #5c3a21;
  --wood-deep: #3e2814;
  --green: #3a5a40;
  --green-dark: #2a4230;
  --burgundy: #7a2333;
  --burgundy-dark: #5c1a26;
  --text: #2e2418;
  --text-inverse: #fbf6ec;
  --border: #d9c9a8;

  --font-heading: "Poppins", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: "Source Sans Pro", -apple-system, BlinkMacSystemFont, sans-serif;

  --header-height: 78px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text);
  background: var(--cream);
  line-height: 1.6;
}

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  color: var(--wood-deep);
  line-height: 1.2;
  margin: 0 0 0.5em;
}

h1 { font-size: 2.6rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.4rem; }

p { margin: 0 0 1em; }

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

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

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

section {
  padding: 64px 0;
}
section.alt {
  background: var(--cream-dark);
}

.section-title {
  text-align: center;
  margin-bottom: 32px;
}

/* Placeholder utility -------------------------------- */
.placeholder {
  border: 2px dashed var(--burgundy);
  background: rgba(122, 35, 51, 0.06);
  color: var(--burgundy-dark);
  padding: 16px;
  border-radius: 6px;
  font-style: italic;
  font-size: 0.95rem;
}
.placeholder-photo {
  border: 2px dashed var(--wood);
  background: rgba(92, 58, 33, 0.08);
  color: var(--wood-deep);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-style: italic;
  border-radius: 8px;
  width: 100%;
  aspect-ratio: 4 / 5;
  padding: 16px;
}
.profile-photo {
  border-radius: 8px;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}
.placeholder-video {
  border: 2px dashed var(--wood);
  background: rgba(92, 58, 33, 0.08);
  color: var(--wood-deep);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-style: italic;
  border-radius: 8px;
  width: 100%;
  aspect-ratio: 16 / 9;
  padding: 16px;
}
.video-embed {
  border-radius: 8px;
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
}
.video-facade {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 8px;
  background-size: cover;
  background-position: center;
  background-color: var(--wood-deep);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.video-play-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: rgba(20, 12, 6, 0.75);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease;
}
.video-facade:hover .video-play-icon,
.video-facade:focus-visible .video-play-icon {
  background: var(--burgundy);
}
.video-play-icon::after {
  content: "";
  border-style: solid;
  border-width: 11px 0 11px 18px;
  border-color: transparent transparent transparent #fff;
  margin-left: 4px;
}

/* Buttons -------------------------------------------- */
.btn {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 30px;
  font-weight: 600;
  cursor: pointer;
  border: 2px solid transparent;
  font-family: var(--font-body);
  font-size: 1rem;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.btn-primary {
  background: var(--green);
  color: var(--text-inverse);
}
.btn-primary:hover {
  background: var(--green-dark);
  text-decoration: none;
}
.btn-secondary {
  background: transparent;
  color: var(--wood-deep);
  border-color: var(--wood);
}
.btn-secondary:hover {
  background: var(--wood);
  color: var(--text-inverse);
  text-decoration: none;
}
.btn-row {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* Header / Nav ---------------------------------------- */
.site-header {
  background: var(--wood-deep);
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-height);
}
.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo {
  font-family: var(--font-heading);
  color: var(--text-inverse);
  font-size: 1.3rem;
  font-weight: 700;
}
.logo span {
  display: block;
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cream-dark);
}
.logo:hover { text-decoration: none; }

.mobile-nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-inverse);
  font-size: 1.8rem;
  cursor: pointer;
}

.main-nav > ul {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.main-nav > ul > li {
  position: relative;
}
.main-nav > ul > li > a,
.main-nav .dropdown-toggle {
  display: inline-block;
  padding: 12px 16px;
  color: var(--text-inverse);
  font-weight: 600;
  background: none;
  border: none;
  font-size: 1rem;
  font-family: var(--font-body);
  cursor: pointer;
  border-radius: 4px;
}
.main-nav > ul > li > a:hover,
.main-nav .dropdown-toggle:hover,
.main-nav > ul > li.active > a {
  background: rgba(255, 255, 255, 0.1);
  text-decoration: none;
}

.dropdown-menu {
  list-style: none;
  margin: 0;
  padding: 8px 0;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: 6px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
  display: none;
}
.has-dropdown.open .dropdown-menu {
  display: block;
}
.dropdown-menu li a {
  display: block;
  padding: 10px 18px;
  color: var(--text);
  font-weight: 500;
}
.dropdown-menu li a:hover {
  background: var(--cream-dark);
  text-decoration: none;
}

@media (max-width: 860px) {
  .mobile-nav-toggle { display: block; }
  .main-nav {
    display: none;
    position: absolute;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: var(--wood-deep);
    padding: 12px 0;
  }
  .main-nav.open { display: block; }
  .main-nav > ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }
  .main-nav > ul > li > a,
  .main-nav .dropdown-toggle {
    width: 100%;
    text-align: left;
    padding: 14px 24px;
  }
  .dropdown-menu {
    position: static;
    box-shadow: none;
    border: none;
    background: rgba(0, 0, 0, 0.15);
    display: none;
    width: 100%;
  }
  .has-dropdown.open .dropdown-menu { display: block; }
  .dropdown-menu li a { color: var(--text-inverse); padding-left: 40px; }
  .dropdown-menu li a:hover { background: rgba(255, 255, 255, 0.1); }
}

/* Footer ----------------------------------------------- */
.site-footer {
  background: var(--wood-deep);
  color: var(--cream-dark);
  padding: 40px 0;
  text-align: center;
}
.site-footer a { color: var(--text-inverse); font-weight: 600; }
.footer-logo {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  color: var(--text-inverse);
  margin-bottom: 4px;
}
.footer-copy {
  margin-top: 16px;
  font-size: 0.85rem;
  opacity: 0.7;
}

/* Hero --------------------------------------------------- */
.hero {
  position: relative;
  text-align: center;
  min-height: 620px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 0;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background: var(--cream-dark) url('../images/hero-sam.jpeg') center 25% / cover no-repeat;
}
.hero-bg-label {
  position: absolute;
  inset: 10px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  text-align: center;
  padding: 16px 40px;
  font-style: italic;
  font-size: 0.85rem;
  color: var(--wood-deep);
  border: 2px dashed var(--wood);
  border-radius: 8px;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(62, 40, 20, 0.25) 0%, rgba(62, 40, 20, 0.7) 100%);
}
.hero-content {
  position: relative;
  z-index: 2;
  padding: 100px 24px;
}
.hero .slogan {
  font-size: 2.4rem;
  max-width: 700px;
  margin: 0 auto 20px;
  color: var(--text-inverse);
  font-style: italic;
}
.hero .hero-subtitle {
  font-size: 1.15rem;
  font-weight: 600;
  max-width: 600px;
  margin: 0 auto 32px;
  color: var(--text-inverse);
}
.hero .btn-row {
  justify-content: center;
}
.hero .btn-secondary {
  color: var(--text-inverse);
  border-color: var(--text-inverse);
}
.hero .btn-secondary:hover {
  background: var(--text-inverse);
  color: var(--wood-deep);
}

/* Testimonials -------------------------------------------- */
.testimonial-slider {
  max-width: 700px;
  margin: 0 auto;
  position: relative;
}
.testimonial-track {
  overflow: hidden;
}
.testimonial-slides {
  display: flex;
  transition: transform 0.4s ease;
}
.testimonial-slide {
  flex: 0 0 100%;
  padding: 8px;
}
.testimonial-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 28px;
  text-align: center;
}
.testimonial-card .stars {
  color: var(--burgundy);
  margin-bottom: 10px;
}
.testimonial-text {
  font-style: italic;
  font-size: 1.05rem;
  margin-bottom: 16px;
}
.testimonial-author {
  font-weight: 700;
  color: var(--burgundy);
  margin: 0;
}
.testimonial-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  margin-top: 20px;
}
.testimonial-controls button {
  background: var(--wood);
  color: var(--text-inverse);
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1rem;
}
.testimonial-dots {
  display: flex;
  gap: 8px;
}
.testimonial-dots button {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: none;
  background: var(--border);
  padding: 0;
  cursor: pointer;
}
.testimonial-dots button.active {
  background: var(--burgundy);
}

/* Journey / method section --------------------------------- */
.journey-header {
  display: flex;
  align-items: center;
  gap: 32px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.journey-header .placeholder-photo {
  flex: 0 0 160px;
  aspect-ratio: 1 / 1;
}
.journey-header h2 { flex: 1; min-width: 260px; margin: 0; }

/* Tier cards + timeline -------------------------------------- */
.tier-cards {
  display: grid;
  grid-template-columns: 3fr 2fr 3fr;
  gap: 24px;
  margin-bottom: 16px;
}
.tier-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 28px;
  text-align: center;
}
.tier-card h3 { color: var(--burgundy); }

.tier-card-dark {
  background: var(--wood-deep);
  border-color: var(--wood-deep);
}
.tier-card-dark h3 { color: var(--text-inverse); }

a.tier-card {
  display: block;
  color: inherit;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
a.tier-card:hover {
  text-decoration: none;
  transform: translateY(-4px);
  box-shadow: 0 10px 24px rgba(62, 40, 20, 0.15);
  border-color: var(--green);
}

.grade-timeline {
  position: relative;
  padding-top: 40px;
}
.grade-timeline .tier-labels {
  display: flex;
  margin-bottom: 8px;
}
.grade-timeline .tier-label {
  text-align: center;
  font-weight: 700;
  font-family: var(--font-heading);
  color: var(--wood-deep);
  border-bottom: 3px solid var(--green);
  padding-bottom: 8px;
}
.grade-timeline .tier-label.beginner { flex: 3; border-color: var(--green); }
.grade-timeline .tier-label.intermediate { flex: 2; border-color: var(--wood); }
.grade-timeline .tier-label.advanced { flex: 3; border-color: var(--burgundy); }

.grade-track {
  display: flex;
  gap: 8px;
}
.grade-step {
  flex: 1;
  background: var(--cream-dark);
  border: 1px solid var(--border);
  border-radius: 6px;
  text-align: center;
  padding: 12px 4px;
  font-weight: 600;
  font-size: 0.9rem;
}

/* Bio section ------------------------------------------------ */
.bio-section::after {
  content: "";
  display: table;
  clear: both;
}
.bio-section .placeholder-photo,
.bio-section .profile-photo {
  float: left;
  width: 280px;
  margin: 0 40px 20px 0;
}

/* Video grid --------------------------------------------------- */
.video-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.video-grid figcaption {
  margin-top: 10px;
  font-weight: 600;
  text-align: center;
}

/* Closing CTA ---------------------------------------------------- */
.closing-cta {
  text-align: center;
}

/* Indented note (e.g. pricing callouts within a description) ------- */
.indent-block {
  margin-left: 24px;
  padding-left: 16px;
  border-left: 3px solid var(--border);
}

/* FAQ accordion ---------------------------------------------------- */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
}
.faq-item {
  border-bottom: 1px solid var(--border);
}
.faq-question {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 18px 0;
  font-size: 1.1rem;
  font-weight: 600;
  font-family: var(--font-heading);
  color: var(--wood-deep);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.faq-question .icon { transition: transform 0.2s ease; }
.faq-item.open .faq-question .icon { transform: rotate(45deg); }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}
.faq-item.open .faq-answer {
  max-height: 400px;
}
.faq-answer p {
  padding-bottom: 18px;
  margin: 0;
}

/* Contact section -------------------------------------------------- */
.contact-details {
  max-width: 500px;
  margin: 0 auto;
  text-align: center;
}
.contact-details .contact-line {
  font-size: 1.2rem;
  margin-bottom: 14px;
}

/* Skills grid ---------------------------------------------------------- */
.skills-group {
  margin-bottom: 48px;
}
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}
.skill-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
}
.skill-card-toggle {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 20px;
  cursor: pointer;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--wood-deep);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.skill-card-toggle .icon { transition: transform 0.2s ease; }
.skill-card.open .skill-card-toggle .icon { transform: rotate(45deg); }
.skill-card-video {
  display: none;
  padding: 0 20px 20px;
}
.skill-card.open .skill-card-video { display: block; }

/* Courses hub ------------------------------------------------------------ */
.courses-bullet {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 32px;
  margin-bottom: 32px;
}
.courses-bullet h2 { color: var(--burgundy); }
.sub-option-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
  margin-top: 20px;
}
.sub-option-card {
  display: block;
  background: var(--cream-dark);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 20px;
  font-weight: 600;
  color: var(--wood-deep);
  text-align: center;
}
.sub-option-card:hover {
  background: var(--green);
  color: var(--text-inverse);
  text-decoration: none;
}

.two-column {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}
.two-column .column {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 28px;
}
.two-column h3 { color: var(--burgundy); }

.repertoire-table {
  width: 100%;
  border-collapse: collapse;
}
.repertoire-table th, .repertoire-table td {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
}
.repertoire-table th {
  font-family: var(--font-heading);
  color: var(--wood-deep);
}

/* Simple page header (for interior pages) ----------------------------------- */
.page-header {
  text-align: center;
  padding: 56px 24px 8px;
}
.page-header p.intro {
  max-width: 700px;
  margin: 0 auto;
}

/* Responsive tweaks --------------------------------------------------------- */
@media (max-width: 860px) {
  .tier-cards { grid-template-columns: 1fr; }
  .video-grid { grid-template-columns: 1fr; }
  .two-column { grid-template-columns: 1fr; }
  .journey-header { flex-direction: column; text-align: center; }
  .bio-section { text-align: center; }
  .bio-section .placeholder-photo,
  .bio-section .profile-photo { float: none; width: 100%; max-width: 280px; margin: 0 auto 20px; }
  h1 { font-size: 2rem; }
  .hero .slogan { font-size: 1.8rem; }
  .grade-track { flex-wrap: wrap; }
}
