/* ============================================
   Fullerton Music Studio - Stylesheet
   ============================================ */

/* --- CSS Variables --- */
:root {
  --cream: #f5f0e8;
  --olive: #3d4a3a;
  --gold: #b8963e;
  --brown: #8b5e3c;
  --white: #ffffff;
  --dark: #2c2c2c;
  --overlay: rgba(0, 0, 0, 0.55);
  --shadow: 0 2px 16px rgba(0, 0, 0, 0.08);
  --radius: 12px;
  --transition: 0.3s ease;
  --max-width: 1200px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: var(--dark);
  background: var(--white);
  overflow-x: hidden;
}

body.nav-open {
  overflow: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

button {
  font: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

/* --- Skip Link --- */
.skip-link {
  position: absolute;
  top: -100%;
  left: 16px;
  background: var(--gold);
  color: var(--white);
  padding: 8px 16px;
  border-radius: 4px;
  z-index: 1000;
  font-weight: 600;
}

.skip-link:focus {
  top: 16px;
}

/* --- Typography --- */
h1, h2, h3, h4 {
  font-family: 'Playfair Display', serif;
  line-height: 1.3;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.25rem; }

p + p {
  margin-top: 1em;
}

/* --- Container --- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* --- Section Padding --- */
.section {
  padding: 80px 0;
}

/* --- Section Accent Line --- */
.accent-line {
  width: 60px;
  height: 3px;
  background: var(--gold);
  margin-bottom: 24px;
}

/* --- Section Heading --- */
.section-heading {
  color: var(--gold);
  margin-bottom: 16px;
}

/* ============================================
   HEADER
   ============================================ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  transition: background var(--transition), box-shadow var(--transition);
}

.site-header.scrolled {
  background: #a05a41;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--white);
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  font-weight: 700;
  z-index: 101;
}

.logo img {
  height: 44px;
  width: auto;
}

/* Desktop Nav */
.nav-list {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-list a {
  color: var(--white);
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  padding: 8px 0;
  position: relative;
  transition: color var(--transition);
}

.nav-list a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gold);
  transition: width var(--transition);
}

.nav-list a:hover::after,
.nav-list a:focus::after {
  width: 100%;
}

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 44px;
  height: 44px;
  z-index: 101;
  color: var(--white);
}

.nav-toggle svg {
  width: 28px;
  height: 28px;
}

.nav-toggle .icon-close {
  display: none;
}

.nav-toggle[aria-expanded="true"] .icon-hamburger {
  display: none;
}

.nav-toggle[aria-expanded="true"] .icon-close {
  display: block;
}

/* Mobile Nav Overlay */
.nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 99;
}

.nav-overlay.active {
  display: block;
}

/* ============================================
   HERO
   ============================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  text-align: left;
  color: var(--white);
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 55%;
  height: 100%;
  background: linear-gradient(to right, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.7) 60%, transparent 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 560px;
  padding: 140px 24px 0 48px;
}

.hero h1 {
  font-size: 3rem;
  font-style: italic;
  color: var(--gold);
  margin-bottom: 20px;
}

.hero p {
  font-size: 1.1rem;
  line-height: 1.8;
  margin-bottom: 32px;
  opacity: 0.95;
}

.btn-primary {
  display: inline-block;
  background: var(--gold);
  color: var(--white);
  padding: 14px 36px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.02em;
  transition: background var(--transition), transform var(--transition);
}

.btn-primary:hover,
.btn-primary:focus {
  background: #a3822e;
  transform: translateY(-1px);
}

.btn-outline {
  display: inline-block;
  border: 2px solid var(--gold);
  color: var(--gold);
  padding: 12px 32px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  transition: background var(--transition), color var(--transition);
}

.btn-outline:hover,
.btn-outline:focus {
  background: var(--gold);
  color: var(--white);
}

/* Page Hero (FAQ, Location) */
.page-hero {
  min-height: auto;
  padding: 64px 0 16px;
  background: #a05a41;
}

.page-hero .hero-content {
  text-align: center;
  max-width: 100%;
  padding: 16px 24px 0;
  margin: 0 auto;
}

.page-hero::before {
  display: none;
}

.page-hero h1 {
  font-style: normal;
  color: var(--white);
}

.page-hero p {
  color: var(--white);
  opacity: 0.85;
}

/* ============================================
   WHAT WE OFFER
   ============================================ */
.offerings {
  background: var(--cream);
}

.offerings-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  margin-top: 40px;
}

.offering-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px 24px;
  box-shadow: var(--shadow);
  text-align: center;
  transition: transform var(--transition), box-shadow var(--transition);
}

.offering-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.offering-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--brown);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}

.offering-icon svg {
  width: 28px;
  height: 28px;
}

.offering-card h3 {
  margin-bottom: 12px;
  color: var(--dark);
}

.offering-card p {
  font-size: 0.95rem;
  color: #555;
  line-height: 1.6;
}

/* ============================================
   MEET SUSAN FULLERTON
   ============================================ */
.bio {
  background: var(--olive);
  color: var(--white);
}

.bio-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
}

.bio-photo {
  width: 220px;
  height: 220px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--gold);
  flex-shrink: 0;
}

.bio-content .accent-line {
  margin-top: 0;
}

.bio-content h2 {
  color: var(--gold);
  margin-bottom: 16px;
}

.bio-content p {
  opacity: 0.92;
  line-height: 1.8;
}

.bio-contact {
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.bio-contact a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--gold);
  font-weight: 500;
  transition: opacity var(--transition);
}

.bio-contact a:hover {
  opacity: 0.8;
}

.bio-contact svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.bio-content .btn-outline {
  margin-top: 28px;
}

/* ============================================
   WHERE MUSIC COMES TO LIFE
   ============================================ */
.studio {
  background: var(--white);
}

.studio-inner {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.studio-inner p {
  font-size: 1.05rem;
  color: #555;
  margin-top: 20px;
  line-height: 1.8;
}

.studio-image {
  margin-top: 40px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
  background: var(--dark);
  color: var(--white);
  padding: 40px 0;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  text-align: center;
}

.footer-nav {
  display: flex;
  gap: 24px;
}

.footer-nav a {
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: color var(--transition);
}

.footer-nav a:hover {
  color: var(--gold);
}

.footer-brand {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  font-weight: 700;
  opacity: 0.9;
}

.footer-copy {
  font-size: 0.85rem;
  opacity: 0.6;
}

/* ============================================
   FAQ ACCORDION
   ============================================ */
.faq-section {
  background: var(--cream);
}

.faq-list {
  max-width: 800px;
  margin: 40px auto 0;
}

.faq-item {
  background: var(--white);
  border-radius: var(--radius);
  margin-bottom: 12px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  font-size: 1rem;
  font-weight: 600;
  color: var(--dark);
  text-align: left;
  background: none;
  cursor: pointer;
  gap: 16px;
  min-height: 44px;
  transition: color var(--transition);
}

.faq-question:hover {
  color: var(--gold);
}

.faq-chevron {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  transition: transform var(--transition);
  color: var(--gold);
}

.faq-question[aria-expanded="true"] .faq-chevron {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}

.faq-answer-inner {
  padding: 0 24px 20px;
  color: #555;
  line-height: 1.7;
}

/* ============================================
   CTA SECTION
   ============================================ */
.cta-section {
  background: var(--olive);
  color: var(--white);
  text-align: center;
}

.cta-section h2 {
  color: var(--gold);
  margin-bottom: 16px;
}

.cta-section p {
  opacity: 0.92;
  margin-bottom: 8px;
}

.cta-contact {
  margin: 24px 0 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.cta-contact a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--gold);
  font-weight: 500;
}

.cta-contact svg {
  width: 20px;
  height: 20px;
}

/* ============================================
   LOCATION PAGE
   ============================================ */
.location-description {
  background: var(--cream);
}

.location-description-inner {
  max-width: 800px;
  margin: 0 auto;
}

.location-description p {
  font-size: 1.05rem;
  color: #555;
  line-height: 1.8;
  margin-top: 20px;
}

.location-gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 40px;
}

.location-gallery img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  width: 100%;
  height: 250px;
  object-fit: cover;
}

/* Nearby Schools */
.schools {
  background: var(--white);
}

.schools-list {
  max-width: 700px;
  margin: 32px auto 0;
}

.school-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid #e8e4dc;
}

.school-item:last-child {
  border-bottom: none;
}

.school-item svg {
  width: 22px;
  height: 22px;
  color: var(--brown);
  flex-shrink: 0;
  margin-top: 2px;
}

.school-item strong {
  display: block;
  margin-bottom: 2px;
  color: var(--dark);
}

.school-item p {
  font-size: 0.95rem;
  color: #555;
}

/* Maps */
.map-section {
  background: var(--cream);
  text-align: center;
}

.map-section h2 {
  color: var(--gold);
  margin-bottom: 24px;
}

.map-container {
  width: 80%;
  margin: 0 auto;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.map-container iframe {
  width: 100%;
  height: 400px;
  border: 0;
}

/* ============================================
   RESPONSIVE - Tablet (768px+)
   ============================================ */
@media (min-width: 768px) {
  h1 { font-size: 3rem; }
  h2 { font-size: 2.25rem; }

  .hero h1 {
    font-size: 3.5rem;
  }

  .offerings-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .bio-inner {
    flex-direction: row;
    text-align: left;
  }

  .bio-photo {
    width: 260px;
    height: 260px;
  }

  .footer-inner {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }

  .location-gallery img {
    height: 300px;
  }
}

/* ============================================
   RESPONSIVE - Desktop (1024px+)
   ============================================ */
@media (min-width: 1024px) {
  .hero h1 {
    font-size: 4rem;
  }

  .offerings-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .nav-toggle {
    display: none !important;
  }

  .map-container iframe {
    height: 500px;
  }
}

/* ============================================
   RESPONSIVE - Mobile (<768px)
   ============================================ */
@media (max-width: 767px) {
  .nav-toggle {
    display: flex;
  }

  .nav-list {
    position: fixed;
    top: 0;
    right: 0;
    width: 280px;
    height: 100vh;
    flex-direction: column;
    align-items: flex-start;
    background: var(--olive);
    padding: 80px 32px 32px;
    gap: 0;
    transform: translateX(100%);
    transition: transform var(--transition);
    z-index: 100;
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.15);
  }

  .nav-list.open {
    transform: translateX(0);
  }

  .nav-list a {
    font-size: 1.1rem;
    padding: 14px 0;
    width: 100%;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  .hero {
    min-height: auto;
    background-position: center 20%;
  }

  .hero::before {
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, transparent 0%, rgba(0,0,0,0.05) 30%, rgba(0,0,0,0.2) 40%, rgba(0,0,0,0.45) 50%, rgba(0,0,0,0.7) 60%, rgba(0,0,0,0.85) 70%, rgba(0,0,0,0.9) 100%);
  }

  .hero h1 {
    font-size: 2.2rem;
  }

  .hero-content {
    align-self: center;
    text-align: center;
    padding: 60vh 24px 40px;
    max-width: 100%;
  }

  .section {
    padding: 60px 0;
  }

  .location-gallery {
    grid-template-columns: 1fr;
  }

  .location-gallery img {
    height: 220px;
  }
}

/* --- Focus Styles --- */
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

/* ============================================
   ANIMATIONS & HOVER EFFECTS
   ============================================ */

/* Scroll-triggered fade-in */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Staggered children */
.fade-in-children > * {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.fade-in-children.visible > * {
  opacity: 1;
  transform: translateY(0);
}

.fade-in-children.visible > *:nth-child(1) { transition-delay: 0s; }
.fade-in-children.visible > *:nth-child(2) { transition-delay: 0.1s; }
.fade-in-children.visible > *:nth-child(3) { transition-delay: 0.2s; }
.fade-in-children.visible > *:nth-child(4) { transition-delay: 0.3s; }
.fade-in-children.visible > *:nth-child(5) { transition-delay: 0.4s; }
.fade-in-children.visible > *:nth-child(6) { transition-delay: 0.5s; }

/* Logo hover */
.logo {
  transition: opacity var(--transition);
}

.logo:hover {
  opacity: 0.85;
}

/* Nav link hover glow */
.nav-list a:hover {
  color: var(--gold);
}

/* Button hover enhancements */
.btn-primary {
  box-shadow: 0 2px 8px rgba(184, 150, 62, 0.3);
}

.btn-primary:hover,
.btn-primary:focus {
  box-shadow: 0 4px 16px rgba(184, 150, 62, 0.45);
}

.btn-outline {
  transition: background var(--transition), color var(--transition), box-shadow var(--transition);
}

.btn-outline:hover,
.btn-outline:focus {
  box-shadow: 0 4px 16px rgba(184, 150, 62, 0.3);
}

/* Bio photo hover */
.bio-photo {
  transition: transform var(--transition), box-shadow var(--transition);
}

.bio-photo:hover {
  transform: scale(1.03);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

/* Studio image hover */
.studio-image {
  transition: transform var(--transition), box-shadow var(--transition);
}

.studio-image:hover {
  transform: scale(1.01);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

/* FAQ item hover */
.faq-item {
  transition: box-shadow var(--transition);
}

.faq-item:hover {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

/* School item hover */
.school-item {
  transition: padding-left var(--transition), background var(--transition);
  border-radius: 8px;
  padding-left: 0;
  padding-right: 0;
}

.school-item:hover {
  padding-left: 12px;
  background: rgba(184, 150, 62, 0.05);
}

/* Location gallery image hover */
.location-gallery img {
  transition: transform var(--transition), box-shadow var(--transition);
}

.location-gallery img:hover {
  transform: scale(1.02);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

/* CTA contact link hover */
.cta-contact a {
  transition: opacity var(--transition), transform var(--transition);
}

.cta-contact a:hover {
  opacity: 0.8;
  transform: translateX(4px);
}

/* Footer nav hover */
.footer-nav a {
  position: relative;
}

.footer-nav a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gold);
  transition: width var(--transition);
}

.footer-nav a:hover::after {
  width: 100%;
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  .fade-in,
  .fade-in-children > * {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* --- Utility --- */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
