/* =========================================================================
   SABRINA SAVENKOVA — HARPIST
   -------------------------------------------------------------------------
   DESIGN TOKENS
   Palette:
     --ink        #14161A   near-black charcoal, main background
     --surface    #1D2024   slightly raised panels
     --ivory      #EDE8DF   primary text, warm off-white
     --stone      #9C978C   muted secondary text
     --brass      #C9A24B   signature accent — harp-string brass/gold
     --brass-deep #8B6F2E   hover / pressed states
   Type:
     Display — Cormorant Garamond (light, classical, string-like curves)
     Body    — Work Sans (quiet, modern, lets the display face lead)
   Signature element:
     A "string field" — a row of thin vertical brass lines of varying
     height/opacity, echoing harp strings. Used behind the hero name,
     as section dividers, and as the active-nav-link indicator (a string
     that "plucks" into view).
   ========================================================================= */

:root {
  --ink: #14161a;
  --surface: #1d2024;
  --surface-2: #23262b;
  --ivory: #ede8df;
  --stone: #9c978c;
  --brass: #c9a24b;
  --brass-deep: #8b6f2e;
  --brass-soft: rgba(201, 162, 75, 0.35);

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

  --max-width: 1200px;
  --nav-height: 64px;
  --header-height: 34px;
  --radius: 2px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

/* Scroll offset so headings aren't hidden behind the sticky header + nav */
section[id] {
  scroll-margin-top: calc(var(--header-height) + var(--nav-height) + 12px);
}

body {
  margin: 0;
  background: var(--ink);
  color: var(--ivory);
  font-family: var(--body);
  font-weight: 400;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a {
  color: var(--brass);
  text-decoration: none;
}

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 500;
  color: var(--ivory);
  margin: 0 0 0.5em;
}

h2 { font-size: clamp(2rem, 4vw, 2.75rem); letter-spacing: 0.01em; }

p { margin: 0 0 1em; color: var(--ivory); }

.eyebrow {
  font-family: var(--body);
  font-size: 0.75rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--brass);
  margin-bottom: 0.75em;
}

/* =========================================================================
   SITE HEADER — "Sabrina Savenkova | Harpist"
   ========================================================================= */
.site-header {
  height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  background: var(--ink);
  border-bottom: 1px solid rgba(201, 162, 75, 0.15);
  position: sticky;
  top: 0;
  z-index: 60;
}
.site-header__brand {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--display);
  font-size: clamp(0.68rem, 3.4vw, 0.95rem);
  letter-spacing: 0.04em;
  color: var(--stone);
  white-space: nowrap;
  overflow: hidden;
}
.site-header__name,
.site-header__divider,
.site-header__role { white-space: nowrap; }
.site-header__name { color: var(--ivory); }
.site-header__divider { color: var(--brass); }
.site-header__role { font-style: italic; }

/* =========================================================================
   NAVIGATION
   ========================================================================= */
.nav-wrap {
  position: sticky;
  top: var(--header-height);
  z-index: 50;
  background: rgba(20, 22, 26, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(201, 162, 75, 0.15);
}

.nav {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  height: var(--nav-height);
  display: flex;
  align-items: center;
}


.nav__links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: 8px;
}

.nav__links > li { position: relative; }

.nav__links a,
.nav__more-btn {
  font-family: var(--body);
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ivory);
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px 2px;
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
}

/* Signature "string" underline — appears like a plucked string beneath the
   active section's nav item. */
.nav__links a::after,
.nav__more-btn::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background: var(--brass);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--ease);
}

.nav__links a:hover::after,
.nav__more-btn:hover::after { transform: scaleX(1); }

.nav__links a.is-active,
.nav__more-btn.is-active { color: var(--brass); }
.nav__links a.is-active::after,
.nav__more-btn.is-active::after { transform: scaleX(1); }

.nav__caret { font-size: 0.7em; }

/* --- More dropdown --- */
.nav__more { display: flex; align-items: center; position: relative; }

.nav__more-menu {
  list-style: none;
  margin: 0;
  padding: 8px 0;
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  min-width: 180px;
  background: var(--surface);
  border: 1px solid rgba(201, 162, 75, 0.2);
  border-radius: var(--radius);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 0.2s var(--ease), transform 0.2s var(--ease), visibility 0.2s;
}

.nav__more-menu.is-open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav__more-menu a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 18px;
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ivory);
}
.nav__more-menu a::after { display: none; }
.nav__more-menu a:hover { color: var(--brass); background: rgba(201, 162, 75, 0.08); }

/* Download icon — used next to Repertoire, which links to a downloadable PDF */
.download-icon {
  flex-shrink: 0;
  color: var(--brass);
}
a.has-download {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* --- Mobile hamburger (hidden on desktop; lives in .site-header row) --- */
.nav__hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
}
.nav__hamburger span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--ivory);
  transition: transform 0.25s var(--ease), opacity 0.25s var(--ease);
}
.nav__hamburger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__hamburger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__hamburger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* =========================================================================
   LAYOUT — desktop centred content, max-width 1200px
   ========================================================================= */
.section {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 96px 24px;
}

.section--home {
  max-width: none;
  padding: 0;
  background: var(--ink);
}

.hero-image {
  /* No forced aspect-ratio box, no object-fit — the image simply displays
     at its own natural size, scaled to the full width of the screen. Since
     your photo is already exactly 4:3, this renders at exactly that ratio
     with zero cropping and zero gaps (a forced CSS aspect-ratio box was
     the source of the earlier gap/letterbox issue, since it created a
     separate frame for the browser to reconcile the photo against). */
  width: 100%;
  height: auto;
}

/* Split (image + text) sections, used for About / Teaching */
.section--split {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 64px;
  align-items: center;
}

/* =========================================================================
   WEDDINGS & EVENTS — dedicated layout
   Desktop: Title (full width) / Summary (left) + Image (right) / Audio (full width)
            The summary column stacks: text, Enquire button, Repertoire link,
            then FAQ link directly beneath it.
   Mobile:  Title / Image / Text / Repertoire link / Audio / Enquire / FAQ link
            (the .weddings__summary wrapper dissolves via display: contents
            so each piece can be individually reordered — see the 900px
            media query below)
   ========================================================================= */
.weddings-layout {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  column-gap: 64px;
  row-gap: 32px;
  align-items: center;
}
.weddings__title,
.weddings__audio {
  grid-column: 1 / -1;
}
.weddings__title { align-self: start; }

.split__media img,
.weddings__media img {
  width: 100%;
  height: auto;
  /* Your photos are portrait 4:3 (3:4 width:height) — this just reflects
     that intrinsic ratio so nothing is cropped, on desktop or mobile. */
  aspect-ratio: 3 / 4;
  object-fit: contain;
}

.text-link {
  display: inline-block;
  font-family: var(--body);
  font-size: 0.9rem;
  letter-spacing: 0.03em;
  border-bottom: 1px solid var(--brass-soft);
  padding-bottom: 2px;
  transition: border-color 0.2s var(--ease), color 0.2s var(--ease);
}
.text-link:hover { border-color: var(--brass); color: var(--brass); }
.text-link--muted { color: var(--stone); }
.text-link--muted:hover { color: var(--brass); }

/* --- Listen section --- */
.video-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: var(--surface);
  border-radius: var(--radius);
  overflow: hidden;
  margin-top: 40px;
}
.video-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* "Listen to more" sits to the right of the caption on desktop; stacks below
   it on mobile (see the max-width: 720px media query). */
.listen__caption-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 24px;
  margin-top: 14px;
}
.caption { margin: 0; color: var(--stone); font-style: italic; }
.listen__more-link { flex-shrink: 0; white-space: nowrap; }

/* --- Buttons --- */
.cta-row { margin: 28px 0 20px; }

.btn {
  font-family: var(--body);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 14px 32px;
  border-radius: var(--radius);
  border: 1px solid var(--brass);
  cursor: pointer;
  transition: background 0.25s var(--ease), color 0.25s var(--ease), transform 0.15s var(--ease);
}
.btn--primary {
  background: var(--brass);
  color: var(--ink);
}
.btn--primary:hover {
  background: var(--brass-deep);
  border-color: var(--brass-deep);
  color: var(--ivory);
  transform: translateY(-1px);
}
.btn:focus-visible {
  outline: 2px solid var(--brass);
  outline-offset: 3px;
}

/* Spacing for the audio row (grid-column span is set in .weddings-layout above) */
.weddings__audio {
  margin-top: 8px;
}

/* --- Audio block (Weddings) --- */
.audio-block {
  width: 100%;
  margin: 0 0 20px;
  padding: 20px;
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid rgba(201, 162, 75, 0.15);
}
.audio-block audio {
  width: 100%;
  max-width: 100%;
  display: block;
  margin-bottom: 14px;
}
.audio-meta {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 0;
}
.audio-meta dt {
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brass);
  margin-bottom: 2px;
}
.audio-meta dd { margin: 0; color: var(--ivory); font-size: 0.9rem; }

#weddingsFaqLink { display: block; margin-top: 10px; }

/* =========================================================================
   CONTACT
   ========================================================================= */
.contact__grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 64px;
}
.contact__lead { font-family: var(--display); font-size: 1.4rem; font-style: italic; color: var(--brass); }

.contact-form { margin-top: 20px; }

.field { margin-bottom: 20px; display: flex; flex-direction: column; }
.field label {
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--stone);
  margin-bottom: 8px;
}
.field input,
.field textarea {
  font-family: var(--body);
  font-size: 0.95rem;
  color: var(--ivory);
  background: var(--surface);
  border: 1px solid rgba(201, 162, 75, 0.25);
  border-radius: var(--radius);
  padding: 12px 14px;
  resize: vertical;
}
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--brass);
}
.field input::placeholder,
.field textarea::placeholder { color: #6d685f; }

.field__error {
  color: #d98a6f;
  font-size: 0.78rem;
  margin-top: 6px;
  min-height: 1em;
}

.form-status {
  margin-top: 16px;
  font-size: 0.9rem;
}
.form-status.success { color: #8fbf8f; }
.form-status.error { color: #d98a6f; }

/* =========================================================================
   QUESTIONS (FAQ ACCORDION)
   ========================================================================= */
.section-heading--center { text-align: center; margin-bottom: 48px; }

.accordion {
  max-width: 760px;
  margin: 0 auto;
}
.accordion__item {
  border-bottom: 1px solid rgba(201, 162, 75, 0.2);
}
.accordion__trigger {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--stone);
  font-family: var(--display);
  font-size: 1.15rem;
  text-align: left;
  padding: 22px 4px;
}
.accordion__trigger:hover { color: var(--brass); }

.accordion__icon { position: relative; width: 18px; height: 18px; flex-shrink: 0; }
.accordion__icon::before,
.accordion__icon::after {
  content: "";
  position: absolute;
  background: var(--brass);
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
}
.accordion__icon::before { width: 100%; height: 2px; }
.accordion__icon::after { width: 2px; height: 100%; transition: transform 0.25s var(--ease); }
.accordion__trigger[aria-expanded="true"] .accordion__icon::after { transform: translate(-50%, -50%) rotate(90deg); opacity: 0; }

.accordion__panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s var(--ease);
  /* Set once here so every bit of text inside inherits the same grey,
     rather than relying on a `p`-only rule that other tags could slip past */
  color: var(--stone);
}
.accordion__panel p {
  padding: 0 4px;
  margin: 0 0 0.6em;
}
/* Only the last paragraph gets the larger gap before the next FAQ item;
   paragraphs within the same answer stay close together */
.accordion__panel p:last-of-type {
  margin-bottom: 0;
  padding-bottom: 22px;
}

.faq-note {
  max-width: 760px;
  margin: 28px auto 0;
  text-align: center;
  color: var(--stone);
  font-style: italic;
  font-size: 0.9rem;
}

/* =========================================================================
   SOCIALS
   ========================================================================= */
.section--socials { text-align: center; }
.socials__row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 48px;
  flex-wrap: wrap;
  margin-top: 12px;
}
.social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px;
  border-radius: 50%;
  border: 1px solid rgba(201, 162, 75, 0.25);
  transition: border-color 0.25s var(--ease), transform 0.2s var(--ease), background 0.25s var(--ease);
}
.social-icon:hover {
  border-color: var(--brass);
  background: rgba(201, 162, 75, 0.08);
  transform: translateY(-3px);
}
/*
  Fixed display box for every social icon, regardless of the uploaded
  file's native resolution or aspect ratio (official logo files can be
  square, circular, or a wide rectangle like YouTube's). object-fit:
  contain scales each one down to fit inside this box without cropping
  or distorting it — just replace the file in index.html and it will
  automatically fit this same space.
*/
.social-icon img {
  width: 48px;
  height: 48px;
  object-fit: contain;
}
/* Uses whichever brand logo files are referenced in index.html as-is */

/* =========================================================================
   FOOTER
   ========================================================================= */
.site-footer {
  text-align: center;
  padding: 32px 24px 48px;
  color: var(--stone);
  font-size: 0.8rem;
  border-top: 1px solid rgba(201, 162, 75, 0.12);
}

/* =========================================================================
   RESPONSIVE
   ========================================================================= */
@media (max-width: 900px) {
  .section--split {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  /* About and Teaching: image goes below the text on mobile */
  #about .split__content,
  #teaching .split__content { order: 1; }
  #about .split__media,
  #teaching .split__media { order: 2; }

  /* Weddings & Events mobile order: Title, Image, Text, Repertoire link,
     Audio, Enquire button, FAQ link.
     The summary wrapper "dissolves" so its children become individually
     orderable alongside Title/Image/Audio. Negative margins below cancel
     out some or all of the grid's 32px row-gap for specific transitions
     that need to read as one tight group. */
  .weddings-layout { grid-template-columns: 1fr; }
  .weddings__title { order: 1; }
  .weddings__media { order: 2; }
  .weddings__summary { display: contents; }
  .weddings__text { order: 3; }
  .weddings__repertoire-link {
    order: 4;
    /* Directly on the next line after the text, no gap */
    margin-top: -32px;
  }
  .weddings__audio {
    order: 5;
  }
  .cta-row {
    order: 6;
    /* Closer to the audio box above it */
    margin-top: -20px;
  }
  #weddingsFaqLink {
    order: 7;
    /* Closer to the Enquire button / audio box above it */
    margin-top: -20px;
  }

  .contact__grid { grid-template-columns: 1fr; gap: 40px; }
  .audio-meta { grid-template-columns: 1fr; }

  /* "Listen to more" drops below the caption instead of sitting beside it */
  .listen__caption-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
}

@media (max-width: 720px) {
  /* Header row: hamburger sits to the right of the title, same level */
  :root { --header-height: 48px; }
  .site-header { justify-content: space-between; }

  .nav__hamburger { display: flex; }

  /* The nav bar itself has nothing left in it on mobile (the hamburger now
     lives in .site-header), so it collapses to zero height and only
     reappears as the dropdown below when opened. */
  .nav { height: 0; padding: 0; }

  .nav__links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    background: var(--surface);
    padding: 0 24px;
    gap: 4px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s var(--ease), padding 0.3s var(--ease);
  }
  .nav__links.is-open {
    /* Fits whatever space is left below the header + nav, and scrolls
       internally if the More submenu makes the list taller than that. */
    max-height: calc(100vh - var(--header-height) - var(--nav-height));
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 8px 24px 20px;
    border-bottom: 1px solid rgba(201, 162, 75, 0.2);
  }
  .nav__links > li { width: 100%; }
  .nav__links a, .nav__more-btn { width: 100%; padding: 12px 2px; }

  .nav__more { flex-direction: column; align-items: flex-start; width: 100%; }
  .nav__more-menu {
    position: static;
    box-shadow: none;
    border: none;
    background: none;
    padding-left: 12px;
    display: none;
    opacity: 1;
    visibility: visible;
    transform: none;
  }
  .nav__more-menu.is-open { display: block; }

  .section:not(.section--home) { padding: 64px 20px; }
  .socials__row { gap: 28px; }
}

@media (max-width: 480px) {
  .btn { width: 100%; text-align: center; }
  .section:not(.section--home) { padding: 48px 18px; }
  h2 { font-size: clamp(1.6rem, 7vw, 2.2rem); }
  .contact__lead { font-size: 1.2rem; }
}
