/* =========================================================
   Gavin Piano — Piano Entertainer
   Stylesheet
   ========================================================= */

/* ---------- Fonts ---------- */
@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,400;0,9..144,500;0,9..144,600;0,9..144,700;1,9..144,500&family=Work+Sans:wght@400;500;600;700&display=swap');

/* ---------- Design tokens ---------- */
:root{
  --ink:        #0c0b0a;
  --ink-soft:   #171512;
  --gold:       #c9a227;
  --gold-light: #e8c77e;
  --gold-dim:   #8a6f22;
  --ivory:      #efe6d3;
  --ivory-deep: #e4d7ba;
  --green:      #2f3b2a;
  --green-deep: #1f2818;
  --text-dark:  #211d16;
  --text-muted: #6b6455;
  --white:      #fbf9f4;

  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'Work Sans', 'Segoe UI', sans-serif;

  --max-width: 1180px;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --radius: 2px;
}

/* ---------- Reset ---------- */
*,*::before,*::after{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
body{
  margin:0;
  font-family: var(--font-body);
  color: var(--text-dark);
  background: var(--ivory);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img{ max-width:100%; display:block; }
a{ color: inherit; text-decoration: none; }
ul{ list-style:none; margin:0; padding:0; }
h1,h2,h3,h4{ font-family: var(--font-display); font-weight:600; line-height:1.1; margin:0; }
p{ margin:0 0 1rem; }
button{ font-family: inherit; cursor:pointer; }

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

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

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

.eyebrow{
  display:inline-block;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight:600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.9rem;
}
.section-title{
  font-size: clamp(2rem, 4vw, 2.9rem);
  margin-bottom: 1rem;
}
.section-lede{
  max-width: 60ch;
  font-size: 1.08rem;
  color: var(--text-muted);
}
.section-lede.on-dark{ color: #cfc7b6; }

/* ---------- Piano-key divider (signature element) ---------- */
.key-divider{
  width:100%;
  line-height:0;
  overflow:hidden;
}
.key-divider svg{ width:100%; height:auto; display:block; }

/* ---------- Buttons ---------- */
.btn{
  display:inline-flex;
  align-items:center;
  gap:0.6rem;
  padding: 0.9rem 1.9rem;
  font-weight:600;
  font-size: 0.95rem;
  border-radius: var(--radius);
  border: 1px solid transparent;
  transition: transform 0.18s ease, background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
  white-space: nowrap;
}
.btn:hover{ transform: translateY(-2px); }
.btn-gold{
  background: var(--gold);
  color: var(--ink);
}
.btn-gold:hover{ background: var(--gold-light); }
.btn-outline{
  border-color: rgba(251,249,244,0.4);
  color: var(--white);
}
.btn-outline:hover{ border-color: var(--gold); color: var(--gold-light); }
.btn-outline-dark{
  border-color: var(--text-dark);
  color: var(--text-dark);
}
.btn-outline-dark:hover{ border-color: var(--gold-dim); color: var(--gold-dim); }

/* =========================================================
   Header / Nav
   ========================================================= */
.site-header{
  position: fixed;
  top:0; left:0; right:0;
  z-index: 100;
  padding: 1.1rem 0;
  transition: background 0.3s ease, padding 0.3s ease, box-shadow 0.3s ease;
}
.site-header .container{
  display:flex;
  align-items:center;
  justify-content:space-between;
}
.site-header.scrolled{
  background: rgba(12,11,10,0.94);
  backdrop-filter: blur(6px);
  padding: 0.7rem 0;
  box-shadow: 0 6px 24px rgba(0,0,0,0.25);
}
.brand{
  display:flex;
  align-items:center;
  gap:0.6rem;
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--white);
  letter-spacing: 0.01em;
}
.brand img{ height: 40px; width:auto; }

.nav-toggle{
  display:none;
  background:none;
  border:none;
  width: 44px; height:44px;
  position:relative;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after{
  content:"";
  position:absolute;
  left:10px; right:10px;
  height:2px;
  background: var(--white);
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.nav-toggle span{ top:21px; }
.nav-toggle span::before{ top:-8px; }
.nav-toggle span::after{ top:8px; }
.nav-toggle[aria-expanded="true"] span{ background: transparent; }
.nav-toggle[aria-expanded="true"] span::before{ transform: translateY(8px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after{ transform: translateY(-8px) rotate(-45deg); }

.main-nav ul{ display:flex; gap: 2rem; }
.main-nav a{
  font-size:0.92rem;
  font-weight:600;
  color: rgba(251,249,244,0.82);
  padding: 0.3rem 0;
  border-bottom: 2px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.main-nav a:hover,
.main-nav a.active{
  color: var(--gold-light);
  border-color: var(--gold);
}

/* =========================================================
   Hero
   ========================================================= */
.hero{
  position:relative;
  min-height: 70svh;
  display:flex;
  align-items:flex-end;
  color: var(--white);
  background: var(--ink);
  overflow:hidden;
}
.hero-media{
  position:absolute; inset:0;
}
.hero-media img{
  width:100%; height:100%; object-fit:cover;
  object-position: center 30%;
}
.hero-media::after{
  content:"";
  position:absolute; inset:0;
  background: linear-gradient(180deg, rgba(12,11,10,0.35) 0%, rgba(12,11,10,0.45) 45%, rgba(12,11,10,0.94) 100%);
}
.hero-content{
  position:relative;
  z-index:2;
  padding-bottom: clamp(3rem, 8vh, 5rem);
  padding-top: 9rem;
}
.hero-content .eyebrow{ color: var(--gold-light); }
.hero-title{
  font-size: clamp(2.6rem, 7vw, 5rem);
  max-width: 16ch;
  margin-bottom: 1.1rem;
}
.hero-title em{ font-style: italic; color: var(--gold-light); }
.hero-sub{
  max-width: 52ch;
  font-size: 1.15rem;
  color: rgba(251,249,244,0.86);
  margin-bottom: 2rem;
}
.hero-actions{ display:flex; gap:1rem; flex-wrap:wrap; margin-bottom: 2.6rem; }
.hero-meta{
  display:flex;
  gap: clamp(1.5rem, 4vw, 3rem);
  flex-wrap:wrap;
  border-top: 1px solid rgba(251,249,244,0.18);
  padding-top: 1.4rem;
}
.hero-meta div{ font-size:0.85rem; color: rgba(251,249,244,0.7); }
.hero-meta strong{
  display:block;
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--white);
  font-weight: 600;
}

/* =========================================================
   About
   ========================================================= */
.about{
  background: var(--ivory);
  padding: clamp(4rem, 9vw, 7rem) 0;
}
.about .container{
  display:grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items:center;
}
.about-media{ position:relative; }
.about-media img{
  border-radius: var(--radius);
  box-shadow: 0 24px 48px -20px rgba(12,11,10,0.35);
}
.about-media .credential-tag{
  position:absolute;
  bottom: -1.3rem; left: -1.3rem;
  background: var(--ink);
  color: var(--white);
  padding: 1rem 1rem;
  border-left: 3px solid var(--gold);
  max-width: 400px;
}
.about-media .credential-tag strong{
  display:block; font-family: var(--font-display); color: var(--gold-light); font-size:1.05rem;
}
.about-media .credential-tag span{ font-size: 0.82rem; color: rgba(251,249,244,0.75); }

.about-body .pull{
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.35rem;
  color: var(--text-dark);
  border-left: 3px solid var(--gold);
  padding-left: 1.2rem;
  margin: 1.6rem 0;
}
.credential-row{
  display:flex;
  gap: 1.6rem;
  flex-wrap:wrap;
  margin-top: 1.8rem;
  padding-top: 1.6rem;
  border-top: 1px solid rgba(33,29,22,0.12);
}
.credential-row .item{
  display:flex;
  align-items:center;
  gap:0.55rem;
  font-size: 0.86rem;
  font-weight:600;
  color: var(--text-muted);
}
.credential-row svg{ width:20px; height:20px; flex-shrink:0; color: var(--gold-dim); }

/* =========================================================
   Services
   ========================================================= */
.services{
  background: var(--ink);
  color: var(--white);
  padding: clamp(4rem, 9vw, 7rem) 0;
}
.services .section-head{
  max-width: 640px;
  margin-bottom: 3rem;
}

/* Fixed 2-column grid at all widths above the mobile breakpoint.
   4 single-column cards divide evenly into 2 full rows, so a wide
   card (grid-column: 1/-1) always starts a fresh row — no leftover
   half-empty row, no gap showing through the grid background. */
.services-grid{
  display:grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: rgba(251,249,244,0.1);
}
.service-card{
  background: var(--ink);
  padding: 2.2rem 2rem;
  transition: background 0.2s ease;
}
.service-card:hover{ background: var(--ink-soft); }
.service-card .key-icon{ width:34px; height:auto; margin-bottom:1.2rem; color: var(--gold); }
.service-card h3{
  font-size: 1.25rem;
  margin-bottom: 0.7rem;
  color: var(--white);
}
.service-card p{
  font-size: 0.94rem;
  color: rgba(251,249,244,0.68);
  margin-bottom: 0;
}
.service-card.wide{
  grid-column: 1 / -1;
}

/* =========================================================
   Gallery (garden-green section)
   ========================================================= */
.gallery{
  background: var(--green);
  color: var(--white);
  padding: clamp(4rem, 9vw, 7rem) 0;
  position:relative;
}
.gallery::before{
  content:"";
  position:absolute; inset:0;
  background: radial-gradient(ellipse at top right, rgba(201,162,39,0.12), transparent 60%);
  pointer-events:none;
}
.gallery .section-head{ position:relative; max-width: 620px; margin-bottom: 2.6rem; }

.gallery-grid{
  position:relative;
  display:grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.9rem;
}
.gallery-item{
  position:relative;
  overflow:hidden;
  border-radius: var(--radius);
  background: var(--green-deep);
  aspect-ratio: 1 / 1;
}
.gallery-item img{
  width:100%; height:100%; object-fit:cover;
  transition: transform 0.5s ease;
}
.gallery-item:hover img{ transform: scale(1.06); }
.gallery-item.big{
  grid-column: span 2;
  grid-row: span 2;
  aspect-ratio: auto;
}
.gallery-item.placeholder{
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:0.5rem;
  border: 1.5px dashed rgba(251,249,244,0.35);
  color: rgba(251,249,244,0.55);
  font-size: 0.8rem;
  text-align:center;
  padding: 1rem;
}
.gallery-item.placeholder svg{ width:26px; height:26px; opacity:0.6; }

@media (max-width: 760px){
  .gallery-grid{ grid-template-columns: repeat(2,1fr); }
  .gallery-item.big{
    grid-column: span 2;
    grid-row: span 1;
    aspect-ratio: 16 / 9;
  }
}

@media (max-width: 480px){
  .gallery-grid{ grid-template-columns: 1fr; gap: 0.7rem; }
  .gallery-item{ aspect-ratio: 4 / 3; }
  .gallery-item.big{
    grid-column: span 1;
    aspect-ratio: 4 / 3;
  }
}

/* =========================================================
   Video / Playlist
   ========================================================= */
.video{
  background: var(--ivory);
  padding: clamp(4rem, 9vw, 7rem) 0;
}
.video .container{
  display:grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
}
.video-frame-wrap{
  position:relative;
  width:100%;
  padding-top: 56.25%;
  background: var(--ink);
  border-radius: var(--radius);
  overflow:hidden;
  box-shadow: 0 24px 48px -20px rgba(12,11,10,0.35);
}
.video-frame-wrap iframe{
  position:absolute; inset:0;
  width:100%; height:100%;
  border:0;
}
.video-note{
  max-width: 62ch;
  font-size: 0.92rem;
  color: var(--text-muted);
}

/* =========================================================
   Contact
   ========================================================= */
.contact{
  background: var(--ink);
  color: var(--white);
  padding: clamp(4rem, 9vw, 7rem) 0;
}
.contact .container{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 6vw, 5rem);
}
.contact-info .section-lede{ margin-bottom: 2rem; }
.contact-detail{
  display:flex;
  gap: 0.9rem;
  align-items:flex-start;
  margin-bottom: 1.5rem;
}
.contact-detail svg{ width:22px; height:22px; color: var(--gold); flex-shrink:0; margin-top:0.15rem; }
.contact-detail strong{ display:block; font-size:0.98rem; }
.contact-detail a, .contact-detail span{ color: rgba(251,249,244,0.72); font-size:0.94rem; }
.contact-detail a:hover{ color: var(--gold-light); }

.social-row{ display:flex; gap:0.9rem; margin-top: 1.8rem; }
.social-row a{
  width:44px; height:44px;
  display:flex; align-items:center; justify-content:center;
  border: 1px solid rgba(251,249,244,0.25);
  border-radius: 50%;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.social-row a:hover{ border-color: var(--gold); background: rgba(201,162,39,0.1); }
.social-row svg{ width:19px; height:19px; }

.contact-image{
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 24px 48px -20px rgba(12,11,10,0.35);
}
.contact-image img{
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
@media (min-width: 901px){
  .contact-image img{ min-height: 620px; }
}
@media (max-width: 900px){
  .contact-image{ box-shadow: none; }
  .contact-image img{
    height: auto;
    min-height: 0;
    object-fit: contain;
  }
}

/* =========================================================
   Footer
   ========================================================= */
.site-footer{
  background: var(--ink);
  border-top: 1px solid rgba(251,249,244,0.08);
  color: rgba(251,249,244,0.55);
  padding: 2rem 0;
  font-size: 0.85rem;
}
.site-footer .container{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:1rem;
  flex-wrap:wrap;
}
.site-footer a:hover{ color: var(--gold-light); }

/* =========================================================
   Scroll reveal
   ========================================================= */
.reveal{ opacity:0; transform: translateY(24px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.is-visible{ opacity:1; transform:none; }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 900px){
  .about .container{ grid-template-columns:1fr; }
  .about-media{ max-width: 420px; }
  .contact .container{ grid-template-columns:1fr; }
  .form-row-split{ grid-template-columns:1fr; }
}

@media (max-width: 720px){
  .main-nav{
    position:fixed;
    top:0; right:0;
    height:100vh;
    width: min(78vw, 320px);
    background: var(--ink);
    padding: 6rem 2rem 2rem;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    box-shadow: -10px 0 30px rgba(0,0,0,0.3);
  }
  .main-nav.open{ transform: translateX(0); }
  .main-nav ul{ flex-direction:column; gap:1.4rem; }
  .nav-toggle{ display:block; }
  .services-grid{ grid-template-columns:1fr; }
  .hero-content{ padding-top: 7rem; }
}