/* ==========================================================================
   Violin with Miss Betty — stylesheet
   ========================================================================== */

:root {
  --ink: #1c1a19;
  --charcoal: #4a4644;
  --warm-grey: #8f8884;
  --red: #b3272d;
  --cream: #faf6f1;
  --cream-deep: #f1ebe2;
  --white: #ffffff;
  --line: #e4dcd1;

  --font-display: "Cormorant Garamond", "Georgia", serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --max-width: 1140px;
  --nav-height: 84px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-height);
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 0.5em;
}

p {
  margin: 0 0 1em;
}

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

.eyebrow {
  display: block;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 0.9em;
}

section {
  padding: 6.5rem 0;
}

.section-head {
  max-width: 640px;
  margin: 0 auto 3.5rem;
  text-align: center;
}

.section-head h2 {
  font-size: clamp(2rem, 4vw, 2.8rem);
}

.section-head p {
  color: var(--charcoal);
  font-size: 1.05rem;
  margin-bottom: 0;
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  padding: 0.9em 1.9em;
  border-radius: 999px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

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

.btn-primary {
  background: var(--red);
  color: var(--white);
}

.btn-primary:hover {
  background: #97181d;
}

.btn-outline {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.55);
  color: var(--white);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.12);
}

.btn-dark {
  background: var(--ink);
  color: var(--white);
}

.btn-dark:hover {
  background: #000;
}

/* ---- Navbar ---- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  background: rgba(250, 246, 241, 0);
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

.navbar.is-scrolled {
  background: rgba(250, 246, 241, 0.96);
  box-shadow: 0 1px 0 var(--line);
  backdrop-filter: saturate(160%) blur(6px);
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7em;
  text-decoration: none;
  color: var(--ink);
}

.brand img {
  height: 42px;
  width: auto;
  transition: filter 0.3s ease;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-text strong {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 600;
  transition: color 0.3s ease;
}

.brand-text span {
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--charcoal);
  transition: color 0.3s ease;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2.2rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--ink);
  position: relative;
  transition: color 0.3s ease;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0;
  height: 2px;
  background: var(--red);
  transition: width 0.2s ease;
}

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

/* Over the dark hero, before the navbar has picked up a background,
   read the mark and links in white; once scrolled, fall back to ink. */
.navbar:not(.is-scrolled) .brand img {
  filter: brightness(0) invert(1);
}

.navbar:not(.is-scrolled) .brand-text strong,
.navbar:not(.is-scrolled) .nav-links a {
  color: var(--white);
}

.navbar:not(.is-scrolled) .brand-text span {
  color: rgba(255, 255, 255, 0.7);
}

.navbar:not(.is-scrolled) .nav-toggle span,
.navbar:not(.is-scrolled) .nav-toggle span::before,
.navbar:not(.is-scrolled) .nav-toggle span::after {
  background: var(--white);
}

.nav-cta {
  display: flex;
  align-items: center;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 110;
}

.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  display: block;
  width: 24px;
  height: 2px;
  background: var(--ink);
  position: relative;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle span::before {
  position: absolute;
  top: -8px;
}

.nav-toggle span::after {
  position: absolute;
  top: 8px;
}

/* ---- Hero ---- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  color: var(--white);
  background: linear-gradient(180deg, rgba(20, 16, 14, 0.72), rgba(15, 12, 11, 0.82)),
    url("../images/hero.jpg") center 65% / cover no-repeat;
}

.hero-content {
  max-width: 880px;
  padding-top: var(--nav-height);
}

.hero h1 {
  font-size: clamp(2.6rem, 5.5vw, 4.2rem);
  margin-bottom: 0.4em;
}

.hero h1 em {
  font-style: italic;
  color: #e7b4b4;
}

.hero .lede {
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.88);
  max-width: 520px;
}

.hero .tagline {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.25rem;
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 1.6rem;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  margin-top: 2.2rem;
  flex-wrap: wrap;
}

/* ---- About ---- */
.about {
  background: var(--white);
}

.about .container {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 4.5rem;
  align-items: center;
}

.about-media {
  position: relative;
}

.about-media img {
  border-radius: 6px;
  width: 100%;
  height: auto;
  box-shadow: 0 30px 60px -30px rgba(28, 26, 25, 0.35);
}

.about-media::before {
  content: "";
  position: absolute;
  top: -18px;
  left: -18px;
  width: 100%;
  height: 100%;
  border: 1.5px solid var(--red);
  border-radius: 6px;
  z-index: -1;
}

.about-copy h2 {
  font-size: clamp(2rem, 4vw, 2.6rem);
}

.about-copy p {
  color: var(--charcoal);
}

.credentials {
  list-style: none;
  margin: 1.8rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.9rem;
}

.credentials li {
  display: flex;
  gap: 0.75rem;
  align-items: baseline;
  font-size: 0.98rem;
  color: var(--ink);
}

.credentials li::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--red);
  flex: none;
  margin-top: 0.5em;
}

/* ---- Teaching ---- */
.teaching {
  background: var(--cream-deep);
}

.teaching-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
}

.teaching-card {
  background: var(--white);
  border-radius: 10px;
  padding: 2.2rem 1.6rem;
  text-align: center;
  box-shadow: 0 20px 40px -32px rgba(28, 26, 25, 0.35);
}

.teaching-card .glyph {
  width: 46px;
  height: 46px;
  margin: 0 auto 1.1rem;
  color: var(--red);
}

.teaching-card h3 {
  font-size: 1.2rem;
  margin-bottom: 0.4em;
}

.teaching-card p {
  font-size: 0.92rem;
  color: var(--charcoal);
  margin-bottom: 0;
}

.teaching-note {
  margin-top: 3rem;
  text-align: center;
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-style: italic;
  color: var(--ink);
}

/* ---- Gallery ---- */
.gallery {
  background: var(--white);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

.gallery-grid figure {
  margin: 0;
  overflow: hidden;
  border-radius: 8px;
  aspect-ratio: 3 / 4;
}

.gallery-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 50%;
  transition: transform 0.5s ease;
}

/* Landscape source photos re-centered so the student stays in frame
   under the grid's forced 3:4 crop. */
.gallery-grid figure:nth-child(1) img {
  object-position: 70% 50%;
}

.gallery-grid figure:nth-child(2) img {
  object-position: 20% 50%;
}

.gallery-grid figure:nth-child(4) img {
  object-position: 59% 50%;
}

.gallery-grid figure:hover img {
  transform: scale(1.06);
}

/* Recital group shots: shown at a landscape ratio instead of the grid's 3:4
   crop, since force-cropping a wide group photo into a tall tile would cut
   people off at the edges. */
.gallery-grid-wide {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
  margin-top: 1.25rem;
}

.gallery-grid-wide figure {
  margin: 0;
  overflow: hidden;
  border-radius: 8px;
  aspect-ratio: 3 / 2;
}

.gallery-grid-wide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 50%;
  transition: transform 0.5s ease;
}

.gallery-grid-wide figure:hover img {
  transform: scale(1.06);
}

/* ---- Reviews ---- */
.reviews {
  background: var(--ink);
  color: var(--cream);
}

.reviews .section-head p {
  color: rgba(250, 246, 241, 0.7);
}

.reviews .eyebrow {
  color: #e7b4b4;
}

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.review-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 2rem;
}

.review-card p {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-style: italic;
  color: rgba(250, 246, 241, 0.92);
  margin-bottom: 1.4rem;
}

.review-card cite {
  font-style: normal;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  color: #e7b4b4;
}

/* ---- Contact ---- */
.contact {
  background: var(--cream-deep);
  text-align: center;
}

.contact h2 {
  font-size: clamp(2rem, 4vw, 2.8rem);
}

.contact p {
  color: var(--charcoal);
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}

.contact-actions {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 2.2rem;
}

.contact-actions .btn {
  color: var(--white);
}

.contact-location {
  margin-top: 2.4rem;
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--warm-grey);
}

/* ---- Footer ---- */
footer {
  background: var(--ink);
  color: rgba(250, 246, 241, 0.65);
  padding: 3rem 0;
}

footer .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.75em;
}

.footer-brand img {
  height: 32px;
  width: auto;
  filter: brightness(0) invert(1);
  opacity: 0.85;
}

.footer-brand span {
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--cream);
}

footer .copyright {
  font-size: 0.82rem;
}

/* ---- Reveal-on-scroll ---- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 900px) {
  .about .container {
    grid-template-columns: 1fr;
  }

  .about-media {
    max-width: 380px;
    margin: 0 auto 1rem;
  }

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

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

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

@media (max-width: 720px) {
  section {
    padding: 4.5rem 0;
  }

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

  .nav-toggle {
    display: block;
  }

  .nav-links,
  .nav-cta {
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    width: min(78vw, 320px);
    background: var(--ink);
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: 2rem 2.5rem;
    gap: 1.8rem;
    transform: translateX(100%);
    transition: transform 0.35s ease;
  }

  .nav-links a {
    color: var(--cream);
    font-size: 1.05rem;
  }

  .nav-cta {
    top: auto;
    bottom: 0;
    height: auto;
    padding-top: 0;
  }

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

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

  body.nav-open .nav-toggle span {
    background: transparent;
  }

  body.nav-open .nav-toggle span::before {
    transform: rotate(45deg) translate(5px, 6px);
    background: var(--ink);
  }

  body.nav-open .nav-toggle span::after {
    transform: rotate(-45deg) translate(5px, -6px);
    background: var(--ink);
  }

  body.nav-open {
    overflow: hidden;
  }

  body.nav-open .navbar {
    background: rgba(250, 246, 241, 0.96);
  }

  .reviews-grid {
    grid-template-columns: 1fr;
  }
}

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

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

  .hero-actions,
  .contact-actions {
    flex-direction: column;
    align-items: stretch;
  }
}
