/* =========================================================================
   Gineve Music — site styles
   Palette: charcoal base, warm gold accent, cream text (jazz-lounge)
   ========================================================================= */

:root {
  --bg:        #14110F;
  --surface:   #1C1917;
  --surface-2: #0F0D0B;
  --gold:      #C9962E;
  --gold-lt:   #E0B354;
  --cream:     #F5EFE6;
  --cream-70:  rgba(245, 239, 230, 0.72);
  --cream-55:  rgba(245, 239, 230, 0.55);
  --cream-40:  rgba(245, 239, 230, 0.40);
  --line:      rgba(245, 239, 230, 0.12);
  --line-soft: rgba(245, 239, 230, 0.08);

  --serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --sans:  'Karla', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

  --wrap: 1440px;
  --gutter: clamp(22px, 5vw, 72px);
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--cream);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 { font-family: var(--serif); font-weight: 800; line-height: 1.05; margin: 0; }

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

a { color: var(--gold-lt); text-decoration: none; transition: color .18s ease; }
a:hover { color: var(--cream); }

:focus-visible { outline: 2px solid var(--gold-lt); outline-offset: 3px; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---- Layout helpers ---------------------------------------------------- */

.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }

.section { padding-block: clamp(56px, 9vw, 96px); }
.section--surface { background: var(--surface); border-top: 1px solid var(--line-soft); }

.eyebrow {
  font-family: var(--sans); font-weight: 700;
  letter-spacing: 0.28em; text-transform: uppercase;
  font-size: 12px; color: var(--gold); margin: 0;
}

.lead { font-size: clamp(1rem, 1.1vw + .8rem, 1.25rem); line-height: 1.7; color: var(--cream-70); }

/* ---- Buttons --------------------------------------------------------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--sans); font-weight: 700; font-size: 14px;
  letter-spacing: 0.06em; text-transform: uppercase;
  padding: 16px 30px; border-radius: 2px; border: 1px solid transparent;
  cursor: pointer; transition: transform .18s ease, background .18s ease, color .18s ease, border-color .18s ease;
}
.btn--primary { background: var(--gold); color: var(--bg); }
.btn--primary:hover { background: var(--gold-lt); color: var(--bg); transform: translateY(-2px); }
.btn--ghost { border-color: rgba(245,239,230,0.35); color: var(--cream); }
.btn--ghost:hover { border-color: var(--gold-lt); color: var(--cream); transform: translateY(-2px); }
.btn--block { width: 100%; }

/* ---- Header / nav --------------------------------------------------- */

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(20, 17, 15, 0.82);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line-soft);
}
.site-header__inner {
  display: flex; align-items: center; justify-content: space-between;
  padding-block: 18px;
}
.site-header__logo img { height: 40px; width: auto; }

.nav { display: flex; align-items: center; gap: clamp(20px, 3vw, 40px); }
.nav a {
  font-family: var(--sans); font-weight: 500; font-size: 13px;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--cream-55);
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--cream); }
.nav__book {
  border: 1px solid var(--gold); color: var(--gold-lt);
  padding: 10px 20px; border-radius: 2px; font-weight: 700; letter-spacing: 0.1em;
}
.nav__book:hover { background: var(--gold); color: var(--bg); }

.nav-toggle {
  display: none; background: none; border: 0; color: var(--cream);
  padding: 6px; cursor: pointer;
}

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .nav {
    position: fixed; inset: 0 0 0 auto; width: min(78vw, 320px);
    flex-direction: column; align-items: flex-start; gap: 8px;
    background: var(--surface); padding: 96px 32px 32px;
    transform: translateX(100%); transition: transform .28s ease;
    border-left: 1px solid var(--line);
  }
  .nav[data-open="true"] { transform: translateX(0); }
  .nav a { font-size: 15px; padding-block: 10px; }
  .nav__book { margin-top: 12px; }
}

/* ---- Footer -------------------------------------------------------- */

.site-footer { background: var(--surface-2); border-top: 1px solid var(--line-soft); padding-block: clamp(44px, 7vw, 72px) 40px; }
.site-footer__grid {
  display: grid; gap: 40px;
  grid-template-columns: 1.4fr 1fr 1fr auto; align-items: start;
}
.site-footer__logo { height: 58px; width: auto; }
.site-footer h4 { font-family: var(--sans); }
.site-footer .eyebrow { margin-bottom: 12px; }
.site-footer a { display: block; font-size: 15px; margin-bottom: 8px; color: var(--gold-lt); }
.site-footer__socials { display: flex; gap: 16px; align-items: center; }
.site-footer__socials a { margin: 0; }
.site-footer__socials svg { display: block; }
.site-footer__legal {
  margin-top: 44px; padding-top: 24px; border-top: 1px solid var(--line-soft);
  font-size: 13px; color: var(--cream-40); letter-spacing: 0.08em;
}
@media (max-width: 860px) {
  .site-footer__grid { grid-template-columns: 1fr; gap: 26px; }
}

/* ---- Hero --------------------------------------------------------- */

.hero { display: grid; grid-template-columns: 1fr 1fr; min-height: min(760px, 82vh); }
.hero__body {
  display: flex; flex-direction: column; justify-content: center; gap: 30px;
  padding: clamp(60px, 9vw, 110px) var(--gutter);
}
.hero__title { font-size: clamp(3.5rem, 9vw, 8.25rem); color: var(--cream); }
.hero__media { position: relative; background: var(--surface); overflow: hidden; }
.hero__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero__media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, var(--bg) 0%, rgba(20,17,15,0.15) 26%, rgba(20,17,15,0) 55%);
}
.hero__cta { display: flex; flex-wrap: wrap; gap: 16px; }

@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; }
  .hero__media { order: -1; min-height: 60vh; }
  .hero__media::after { background: linear-gradient(180deg, rgba(20,17,15,0.1) 0%, rgba(20,17,15,0.55) 60%, var(--bg) 100%); }
  .hero__body { padding-top: 0; margin-top: -64px; position: relative; }
}

/* Ken Burns */
.kenburns { animation: kenburns 20s ease-in-out infinite alternate; }
@keyframes kenburns { from { transform: scale(1.05); } to { transform: scale(1.14); } }

/* ---- Scroll reveal ----------------------------------------------
   Fails safe: content is visible by default. It is only hidden while
   JavaScript is running (html.js) AND has not yet revealed it. main.js
   also force-reveals everything after a short timeout, so a stalled
   IntersectionObserver can never leave content permanently hidden. */

.reveal { transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1); }
html.js .reveal:not(.is-visible) { opacity: 0; transform: translateY(24px); }
.reveal[data-delay="1"] { transition-delay: .08s; }
.reveal[data-delay="2"] { transition-delay: .16s; }
.reveal[data-delay="3"] { transition-delay: .24s; }

/* ---- Cards / grids -------------------------------------------- */

.card {
  border: 1px solid var(--line); border-radius: 5px; background: var(--bg);
  padding: 28px 24px; display: flex; flex-direction: column; gap: 14px;
  transition: transform .2s ease, border-color .2s ease;
}
.card:hover { transform: translateY(-3px); border-color: rgba(201,150,46,0.5); }
.card__title { font-family: var(--serif); font-size: 1.25rem; color: var(--cream); }

.grid { display: grid; gap: 18px; }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 980px) { .grid--3, .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .grid--3, .grid--4 { grid-template-columns: 1fr; } }

/* ---- Quote --------------------------------------------------- */

.quote { text-align: center; }
.quote__mark { font-family: var(--serif); font-size: 7rem; line-height: .35; color: var(--gold); }
.quote__text { font-family: var(--serif); font-style: italic; font-size: clamp(1.4rem, 2.5vw, 2.1rem); line-height: 1.5; max-width: 60ch; margin: 0 auto 24px; color: var(--cream); }

/* ---- Media / video --------------------------------------------- */

.media-frame { position: relative; overflow: hidden; border-radius: 5px; background: var(--surface); }
.media-frame img { width: 100%; height: 100%; object-fit: cover; }
.media-frame--portrait { aspect-ratio: 9 / 16; }
.media-frame--wide { aspect-ratio: 16 / 9; }

.lite-yt { cursor: pointer; }
.lite-yt::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(20,17,15,0) 55%, rgba(20,17,15,0.85) 100%);
}
.lite-yt__play {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 62px; height: 62px; border-radius: 50%; background: rgba(201,150,46,0.92);
  display: grid; place-items: center; z-index: 1; transition: transform .18s ease, background .18s ease;
}
.lite-yt:hover .lite-yt__play { transform: translate(-50%, -50%) scale(1.08); background: var(--gold-lt); }
.lite-yt__play svg { fill: var(--bg); }
.lite-yt__label { position: absolute; left: 16px; bottom: 14px; z-index: 1; font-size: 13px; color: var(--cream); }
.lite-yt iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ---- Release feature (Home "Latest Release" + Music) --------- */

.release, .latest {
  display: grid; grid-template-columns: 300px 1fr;
  gap: clamp(24px, 5vw, 56px); align-items: center; max-width: 900px;
}
.latest img { align-self: start; }
@media (max-width: 680px) {
  .release, .latest { grid-template-columns: 1fr; max-width: 420px; }
}

/* ---- Split section: media + text, stacks (image on top) on mobile --- */

.split { display: grid; grid-template-columns: 1fr 1fr; align-items: stretch; }
.split__media { position: relative; overflow: hidden; background: var(--surface); min-height: 420px; }
.split__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.split__body {
  display: flex; flex-direction: column; justify-content: center; gap: 24px;
  padding: clamp(44px, 8vw, 96px) var(--gutter);
}
@media (max-width: 860px) {
  .split { grid-template-columns: 1fr; }
  .split__media { order: -1; min-height: 52vw; max-height: 60vh; }
  .split__body { padding-block: clamp(32px, 9vw, 56px); }
}

/* ---- Two-column blocks that must stack on small screens ------- */

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 5vw, 56px); }
.two-col--sidebar { grid-template-columns: 240px 1fr; align-items: start; }
.two-col--wr { grid-template-columns: 1fr 1.6fr; }
@media (max-width: 780px) {
  .two-col, .two-col--sidebar, .two-col--wr { grid-template-columns: 1fr; }
}

/* ---- Forms (Book) -------------------------------------------- */

.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 680px) { .form-grid { grid-template-columns: 1fr; } }

.field label {
  display: block; font-family: var(--sans); font-weight: 700; font-size: 12px;
  letter-spacing: 0.13em; text-transform: uppercase; color: var(--cream-70);
  margin-bottom: 8px;
}
.field input, .field select, .field textarea {
  width: 100%; background: var(--bg); border: 1px solid rgba(245,239,230,0.2);
  border-radius: 3px; padding: 13px 14px; color: var(--cream);
  font-family: var(--sans); font-size: 15px;
}
.field textarea { resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--gold); }
.field ::placeholder { color: rgba(245,239,230,0.35); }

.form-success {
  border: 1px solid rgba(201,150,46,0.4);
  background: linear-gradient(160deg, rgba(201,150,46,0.12), rgba(201,150,46,0.02));
  border-radius: 5px; padding: 26px 28px;
}
.form-success p { margin: 0; font-family: var(--serif); font-style: italic; font-size: 1.1rem; line-height: 1.6; color: var(--cream); }

/* ---- Rate table (Book) ------------------------------------- */

.rate-table { border: 1px solid var(--line); border-radius: 6px; overflow: hidden; }
.rate-row { display: grid; grid-template-columns: 300px 210px 1fr; }
.rate-row + .rate-row { border-top: 1px solid var(--line-soft); }
.rate-row--head { background: var(--surface); }
.rate-row > * { padding: 18px 24px; }
.rate-row__service { font-family: var(--serif); font-size: 1.1rem; color: var(--cream); }
.rate-row__price { color: var(--gold-lt); font-weight: 700; }
.rate-row__detail { color: var(--cream-70); font-size: 15px; }
@media (max-width: 760px) {
  .rate-row, .rate-row--head { grid-template-columns: 1fr; }
  .rate-row--head { display: none; }
  .rate-row > * { padding: 6px 18px; }
  .rate-row > *:first-child { padding-top: 18px; }
  .rate-row > *:last-child { padding-bottom: 18px; }
}

/* ---- Tags (Press) ---------------------------------------- */

.tag-list { display: flex; flex-wrap: wrap; gap: 10px; }
.tag {
  display: inline-flex; align-items: center; border: 1px solid rgba(245,239,230,0.2);
  border-radius: 999px; padding: 9px 18px; font-size: 14px; color: rgba(245,239,230,0.85);
}

/* ---- Galleries ------------------------------------------- */

.gallery { display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: 260px; gap: 16px; }
.gallery img { width: 100%; height: 100%; object-fit: cover; border-radius: 4px; }
.gallery .span-2 { grid-column: span 2; grid-row: span 2; }
@media (max-width: 760px) {
  .gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 150px; }
}

/* ---- Reduced motion ------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .kenburns { animation: none; }
  html.js .reveal:not(.is-visible) { opacity: 1; transform: none; }
  .reveal { transition: none; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}
