/* ==========================================================================
   King's Queen Vineyard - Shared Stylesheet
   ========================================================================== */

:root {
  --black:        #0e0c0a;
  --black-soft:   #17130f;
  --black-glass:  rgba(14, 12, 10, 0.55);
  --cream:        #f4ecdc;
  --cream-dim:    #e6d9bd;
  --gold:         #bd9a56;
  --gold-light:   #e3cd9a;
  --burgundy:     #5c2027;
  --line:         rgba(244, 236, 220, 0.22);
  --line-dark:    rgba(14, 12, 10, 0.14);

  --font-serif:   'Cormorant Garamond', 'Times New Roman', serif;
  --font-script:  'Beau Rivage', cursive;

  --container: 1180px;
  --gutter: 6vw;

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

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--black);
  font-family: var(--font-serif);
  font-size: 18px;
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}

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

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

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

h1, h2, h3, h4 {
  font-weight: 500;
  margin: 0;
  letter-spacing: 0.02em;
}

.eyebrow {
  display: block;
  font-family: var(--font-serif);
  text-transform: uppercase;
  letter-spacing: 0.32em;
  font-size: 13px;
  color: var(--gold);
  margin-bottom: 18px;
}

.eyebrow--dark { color: var(--burgundy); }

.section-title {
  font-size: clamp(32px, 4vw, 52px);
  line-height: 1.15;
}

.lede {
  font-size: clamp(18px, 1.6vw, 22px);
  font-weight: 400;
  color: #3a342c;
  max-width: 640px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 34px;
  border: 1px solid currentColor;
  border-radius: 2px;
  font-family: var(--font-serif);
  font-size: 14px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  transition: background-color .4s var(--ease), color .4s var(--ease), border-color .4s var(--ease);
  cursor: pointer;
  background: transparent;
}

.btn--light {
  color: var(--cream);
  border-color: rgba(244,236,220,0.6);
}
.btn--light:hover { background: var(--cream); color: var(--black); }

.btn--dark {
  color: var(--black);
  border-color: var(--black);
}
.btn--dark:hover { background: var(--black); color: var(--cream); }

.btn--gold {
  color: var(--gold-light);
  border-color: var(--gold);
}
.btn--gold:hover { background: var(--gold); color: var(--black); }

/* ---------------------------------- Logo --------------------------------- */

.logo {
  display: inline-flex;
  align-items: center;
  line-height: 1;
}

.logo img {
  display: block;
  width: auto;
}

.logo--nav img { height: 34px; }

.logo--hero img { height: clamp(70px, 11vw, 128px); }

.logo--footer img { height: 42px; }

/* ---------------------------------- Nav ----------------------------------- */

.site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 26px var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--cream);
  transition: background-color .5s var(--ease), padding .4s var(--ease), border-color .5s var(--ease);
  border-bottom: 1px solid transparent;
}

.site-nav.is-scrolled {
  background: rgba(14, 12, 10, 0.92);
  padding-top: 16px;
  padding-bottom: 16px;
  border-color: var(--line);
  backdrop-filter: blur(6px);
}

.site-nav a { color: var(--cream); }

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

.nav-links a {
  font-size: 13px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  position: relative;
  padding-bottom: 4px;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; right: 100%;
  bottom: 0;
  height: 1px;
  background: var(--gold-light);
  transition: right .35s var(--ease);
}
.nav-links a:hover::after,
.nav-links a.is-active::after { right: 0; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  z-index: 210;
}
.nav-toggle span {
  width: 26px; height: 1px;
  background: var(--cream);
  display: block;
}

.site-nav.on-light { color: var(--black); }
.site-nav.on-light a { color: var(--black); }
.site-nav.on-light .nav-toggle span { background: var(--black); }

@media (max-width: 860px) {
  .nav-toggle { display: flex; }
  .nav-links {
    position: fixed;
    inset: 0;
    background: var(--black);
    flex-direction: column;
    justify-content: center;
    gap: 34px;
    transform: translateY(-100%);
    transition: transform .5s var(--ease);
    z-index: 200;
  }
  .nav-links.is-open { transform: translateY(0); }
  .nav-links a { font-size: 20px; color: var(--cream) !important; }
}

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

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  color: var(--cream);
  text-align: center;
}

.hero video,
.hero .hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10,9,7,0.55) 0%, rgba(10,9,7,0.25) 38%, rgba(10,9,7,0.55) 78%, rgba(10,9,7,0.85) 100%);
  z-index: 2;
}

.hero-content {
  position: relative;
  z-index: 3;
  padding: 0 24px;
}

.hero-tagline {
  margin-top: 22px;
  font-size: 14px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold-light);
}

.scroll-cue {
  position: absolute;
  bottom: 34px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  width: 1px;
  height: 60px;
  background: linear-gradient(180deg, rgba(244,236,220,0) 0%, var(--gold-light) 60%, rgba(244,236,220,0) 100%);
}
.scroll-cue::after {
  content: "";
  position: absolute;
  left: -3px; top: 0;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--gold-light);
  animation: cueMove 2.4s ease-in-out infinite;
}
@keyframes cueMove {
  0% { top: 0; opacity: 0; }
  15% { opacity: 1; }
  85% { opacity: 1; }
  100% { top: 90%; opacity: 0; }
}

.page-header {
  position: relative;
  padding: 220px var(--gutter) 110px;
  color: var(--cream);
  text-align: center;
  overflow: hidden;
}
.page-header img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: 1;
}
.page-header::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10,9,7,0.62) 0%, rgba(10,9,7,0.45) 50%, rgba(10,9,7,0.75) 100%);
  z-index: 2;
}
.page-header-content { position: relative; z-index: 3; }
.page-header-content p.lede { color: var(--cream-dim); margin: 18px auto 0; }

/* ------------------------------- Sections --------------------------------- */

section { position: relative; }

.section {
  padding: 120px 0;
}
.section--tight { padding: 80px 0; }
.section--black { background: var(--black); color: var(--cream); }
.section--black .lede { color: rgba(244,236,220,0.75); }
.section--cream-dim { background: var(--cream-dim); }

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6vw;
  align-items: center;
}

@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; gap: 40px; }
}

.split-media img { width: 100%; }

.frame {
  border: 1px solid var(--line-dark);
  padding: 14px;
}
.section--black .frame { border-color: var(--line); }

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

.wine-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 60px;
  margin-top: 70px;
}
@media (max-width: 780px) {
  .wine-grid { grid-template-columns: 1fr; gap: 70px; }
}

.wine-card { text-align: center; }
.wine-card .bottle-wrap {
  background: var(--black);
  padding: 50px 30px 34px;
  margin-bottom: 30px;
}
.wine-card .bottle-wrap img {
  max-height: 460px;
  margin: 0 auto;
  width: auto;
}
.wine-card h3 {
  font-size: 30px;
  margin-bottom: 6px;
}
.wine-card .wine-sub {
  font-size: 14px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--burgundy);
  margin-bottom: 16px;
}
.wine-card p { color: #4a4136; max-width: 440px; margin: 0 auto 18px; }

.wine-detail {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 8vw;
  align-items: start;
  padding: 100px 0;
  border-bottom: 1px solid var(--line-dark);
}
.wine-detail:last-of-type { border-bottom: none; }
@media (max-width: 900px) {
  .wine-detail { grid-template-columns: 1fr; gap: 50px; }
}
.wine-detail .bottle-wrap {
  background: var(--black);
  padding: 60px 30px;
}
.wine-detail .bottle-wrap img { max-height: 560px; margin: 0 auto; }

.spec-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 30px;
  font-size: 15px;
}
.spec-table tr { border-bottom: 1px solid var(--line-dark); }
.spec-table td { padding: 12px 0; }
.spec-table td:first-child {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 12.5px;
  color: var(--burgundy);
  width: 44%;
}

.tasting-note {
  font-style: italic;
  font-size: 21px;
  color: #3a342c;
  margin: 18px 0 10px;
  max-width: 560px;
}

/* --------------------------------- Gallery ---------------------------------- */

.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 70px;
}
.gallery img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4/5; }
.gallery .span-2 { grid-row: span 2; aspect-ratio: 4/9.6; }
@media (max-width: 780px) {
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .gallery .span-2 { grid-row: span 1; aspect-ratio: 4/5; }
}

/* -------------------------------- Stay / CTA -------------------------------- */

.stay-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: stretch;
}
@media (max-width: 900px) {
  .stay-block { grid-template-columns: 1fr; }
}
.stay-media { min-height: 380px; }
.stay-media img { width: 100%; height: 100%; object-fit: cover; }
.stay-copy {
  background: var(--black);
  color: var(--cream);
  padding: 90px 6vw;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.stay-copy .lede { color: rgba(244,236,220,0.78); }
.amenity-list {
  list-style: none;
  padding: 0;
  margin: 26px 0 34px;
  columns: 2;
  gap: 20px;
  font-size: 15px;
  color: rgba(244,236,220,0.85);
}
.amenity-list li { break-inside: avoid; margin-bottom: 10px; padding-left: 16px; position: relative; }
.amenity-list li::before {
  content: "•";
  position: absolute; left: 0; color: var(--gold);
}

/* -------------------------------- Contact card ------------------------------ */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8vw;
  margin-top: 60px;
}
@media (max-width: 860px) {
  .contact-grid { grid-template-columns: 1fr; gap: 60px; }
}
.contact-line {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line-dark);
}
.contact-line span.label {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 12px;
  color: var(--burgundy);
}
.contact-line a, .contact-line span.value { font-size: 21px; }

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

.site-footer {
  background: var(--black);
  color: var(--cream-dim);
  padding: 90px 0 34px;
}
.footer-top {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 50px;
  padding-bottom: 60px;
  border-bottom: 1px solid var(--line);
}
@media (max-width: 780px) {
  .footer-top { grid-template-columns: 1fr; gap: 40px; text-align: center; }
  .footer-top .logo { margin: 0 auto; }
}
.footer-top h4 {
  color: var(--gold-light);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 13px;
  margin-bottom: 18px;
}
.footer-top p, .footer-top a { font-size: 15px; color: rgba(244,236,220,0.75); }
.footer-nav { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.footer-bottom {
  padding-top: 26px;
  display: flex;
  justify-content: space-between;
  font-size: 12.5px;
  letter-spacing: 0.05em;
  color: rgba(244,236,220,0.5);
}
@media (max-width: 780px) {
  .footer-bottom { flex-direction: column; gap: 10px; text-align: center; }
}

/* ------------------------------ Reveal-on-scroll ------------------------------ */

.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .9s var(--ease), transform .9s var(--ease);
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }

@media (max-width: 480px) {
  .amenity-list { columns: 1; }
  .stay-copy { padding: 70px 8vw; }
}

/* ------------------------------ Mini wine pairing ------------------------------ */

.mini-wines {
  display: flex;
  gap: 28px;
  margin-top: 30px;
}
.mini-wine {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 140px;
}
.mini-wine-bottle {
  background: var(--black);
  padding: 16px 10px;
  width: 100%;
  transition: transform .4s var(--ease);
}
.mini-wine:hover .mini-wine-bottle { transform: translateY(-4px); }
.mini-wine-bottle img { max-height: 150px; margin: 0 auto; }
.mini-wine-name {
  margin-top: 12px;
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--burgundy);
}
@media (max-width: 480px) {
  .mini-wines { gap: 16px; }
  .mini-wine { width: 120px; }
}

/* ------------------------------ Wine pair photo (Home) ------------------------------ */

.wine-pair-photo {
  margin-top: 70px;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
  background: rgba(244,236,220,0.04);
}
.wine-pair-photo img { width: 100%; }

.wine-grid--text {
  margin-top: 50px;
}
.wine-grid--text .wine-card h3 { margin-top: 0; }

.section--black .wine-card .wine-sub { color: var(--gold-light); }
.section--black .wine-card p { color: rgba(244,236,220,0.75); }


/* ------------------------------------------------------------------
   Mobile patch (added post-launch): on narrow screens the hero video
   displays at its natural aspect ratio instead of cover-cropping,
   so the title baked into the footage is never cut off.
------------------------------------------------------------------- */
@media (max-width: 700px) {
  .hero {
    min-height: auto;
    background: var(--black);
    padding-top: 88px;            /* clears the fixed nav */
    display: block;
  }
  .hero video,
  .hero .hero-img {
    position: static;
    width: 100%;
    height: auto;
    object-fit: contain;
    display: block;
  }
  .hero::before { display: none; } /* gradient not needed in band mode */
  .scroll-cue { display: none; }

  .page-header { padding-left: 6vw; padding-right: 6vw; }
  .section { padding: 80px 0; }
  .container { padding-left: 6vw; padding-right: 6vw; }
}

/* Mobile patch 2: fully hide the slide-away nav menu when closed
   (prevents menu links ghosting into view on some mobile browsers) */
@media (max-width: 860px) {
  .nav-links {
    top: 0; left: 0; right: 0; bottom: 0;
    height: 100dvh;
    visibility: hidden;
    pointer-events: none;
    transition: transform .5s var(--ease), visibility 0s linear .5s;
  }
  .nav-links.is-open {
    visibility: visible;
    pointer-events: auto;
    transition: transform .5s var(--ease), visibility 0s;
  }
}
