/* =============================================
   FERRUCCI ESTATES — SHARED STYLESHEET
   ============================================= */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400;1,600&family=Lato:wght@300;400;700&family=Cormorant+Garamond:ital,wght@0,300;0,400;1,300;1,400&display=swap');

:root {
  --burgundy:   #6B1E2A;
  --burgundy-dark: #4A1119;
  --gold:       #C9A84C;
  --gold-light: #E8D5A0;
  --cream:      #F5ECD7;
  --cream-dark: #EDE0C4;
  --charcoal:   #1A1A1A;
  --text:       #3A2A1A;
  --text-light: #7A6A5A;
  --white:      #FFFFFF;
  --nav-h:      80px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Lato', sans-serif;
  color: var(--text);
  background: var(--cream);
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a  { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ── TYPOGRAPHY ── */
h1, h2, h3, h4 {
  font-family: 'Playfair Display', serif;
  line-height: 1.2;
}
.eyebrow {
  font-family: 'Lato', sans-serif;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  display: block;
  margin-bottom: 0.75rem;
}
.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--burgundy-dark);
  margin-bottom: 1rem;
}
.section-subtitle {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.2rem;
  color: var(--text-light);
  line-height: 1.7;
  max-width: 640px;
}

/* ── AGE GATE ── */
#age-gate {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(26,10,14,0.97);
  backdrop-filter: blur(8px);
}
#age-gate.hidden { display: none; }

.age-gate-box {
  text-align: center;
  padding: 3rem 2.5rem;
  max-width: 480px;
  width: 90%;
  border: 1px solid rgba(201,168,76,0.3);
}
.age-gate-box .crest {
  width: 80px;
  margin: 0 auto 1.5rem;
  opacity: 0.9;
}
.age-gate-box h2 {
  font-family: 'Playfair Display', serif;
  color: var(--gold-light);
  font-size: 1.6rem;
  margin-bottom: 0.5rem;
}
.age-gate-box p {
  color: rgba(245,236,215,0.7);
  font-size: 0.9rem;
  line-height: 1.7;
  margin-bottom: 2rem;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.1rem;
}
.age-gate-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}
.btn-yes {
  background: var(--burgundy);
  color: var(--gold-light);
  border: 1px solid var(--burgundy);
  padding: 0.85rem 2.5rem;
  font-family: 'Lato', sans-serif;
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.25s, color 0.25s;
}
.btn-yes:hover { background: var(--burgundy-dark); }
.btn-no {
  background: transparent;
  color: rgba(245,236,215,0.5);
  border: 1px solid rgba(245,236,215,0.2);
  padding: 0.85rem 2.5rem;
  font-family: 'Lato', sans-serif;
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  cursor: pointer;
  transition: border-color 0.25s, color 0.25s;
}
.btn-no:hover { border-color: rgba(245,236,215,0.5); color: rgba(245,236,215,0.7); }
.age-gate-legal {
  margin-top: 1.5rem;
  color: rgba(245,236,215,0.3);
  font-size: 0.7rem;
  letter-spacing: 0.05em;
}
#age-gate-deny {
  display: none;
  color: rgba(245,236,215,0.6);
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.1rem;
  line-height: 1.7;
}

/* ── NAVIGATION ── */
#nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 3rem;
  transition: background 0.4s, box-shadow 0.4s;
}
#nav.scrolled {
  background: rgba(26,10,14,0.97);
  box-shadow: 0 2px 20px rgba(0,0,0,0.3);
}
.nav-logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 1;
  gap: 2px;
}
.nav-logo .logo-main {
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem;
  color: var(--gold-light);
  letter-spacing: 0.08em;
  font-weight: 600;
}
.nav-logo .logo-sub {
  font-family: 'Lato', sans-serif;
  font-size: 0.6rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
}
.nav-links {
  display: flex;
  gap: 2.5rem;
  align-items: center;
}
.nav-links a {
  font-family: 'Lato', sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(245,236,215,0.85);
  transition: color 0.2s;
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0; right: 0;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transition: transform 0.25s;
}
.nav-links a:hover { color: var(--gold-light); }
.nav-links a:hover::after,
.nav-links a.active::after { transform: scaleX(1); }
.nav-links a.active { color: var(--gold-light); }

.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
}
.nav-hamburger span {
  display: block; width: 24px; height: 1.5px;
  background: var(--gold-light);
  transition: all 0.3s;
}

/* ── BUTTONS ── */
.btn-primary {
  display: inline-block;
  background: var(--burgundy);
  color: var(--gold-light);
  border: 1px solid var(--burgundy);
  padding: 0.9rem 2.8rem;
  font-family: 'Lato', sans-serif;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.25s, border-color 0.25s;
}
.btn-primary:hover { background: var(--burgundy-dark); border-color: var(--burgundy-dark); }

.btn-outline {
  display: inline-block;
  background: transparent;
  color: var(--gold-light);
  border: 1px solid var(--gold);
  padding: 0.9rem 2.8rem;
  font-family: 'Lato', sans-serif;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.25s, color 0.25s;
}
.btn-outline:hover { background: var(--gold); color: var(--charcoal); }

.btn-outline-dark {
  display: inline-block;
  background: transparent;
  color: var(--burgundy);
  border: 1px solid var(--burgundy);
  padding: 0.9rem 2.8rem;
  font-family: 'Lato', sans-serif;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.25s, color 0.25s;
}
.btn-outline-dark:hover { background: var(--burgundy); color: var(--gold-light); }

/* ── HERO ── */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.05);
  transition: transform 8s ease;
}
.hero-bg.loaded { transform: scale(1); }
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(26,10,14,0.5) 0%,
    rgba(26,10,14,0.35) 40%,
    rgba(26,10,14,0.65) 100%
  );
}
.hero-content {
  position: relative;
  text-align: center;
  color: var(--white);
  padding: 0 1.5rem;
  max-width: 800px;
}
.hero-content .eyebrow { color: var(--gold); font-size: 0.8rem; }
.hero-content h1 {
  font-size: clamp(2.8rem, 7vw, 5.5rem);
  color: var(--cream);
  font-weight: 400;
  margin-bottom: 1rem;
  text-shadow: 0 2px 20px rgba(0,0,0,0.4);
}
.hero-content h1 em { font-style: italic; color: var(--gold-light); }
.hero-content p {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.1rem, 2.5vw, 1.4rem);
  color: rgba(245,236,215,0.85);
  margin-bottom: 2.5rem;
  line-height: 1.7;
}
.hero-scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: rgba(245,236,215,0.6);
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  animation: bounce 2s infinite;
}
.hero-scroll::after {
  content: '';
  display: block;
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, rgba(245,236,215,0.6), transparent);
}
@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(6px); }
}

/* ── SECTION WRAPPERS ── */
.section { padding: 6rem 2rem; }
.section-inner { max-width: 1200px; margin: 0 auto; }
.section-header { margin-bottom: 3.5rem; }
.section-header.centered { text-align: center; }
.section-header.centered .section-subtitle { margin: 0 auto; }

/* ── DIVIDER ── */
.divider {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 1.5rem 0;
}
.divider-line { flex: 1; height: 1px; background: var(--gold); opacity: 0.3; }
.divider-icon { color: var(--gold); font-size: 1rem; opacity: 0.7; }

/* ── WINES GRID ── */
.wines-section { background: var(--charcoal); }
.wines-section .eyebrow { color: var(--gold); }
.wines-section .section-title { color: var(--cream); }
.wines-section .section-subtitle { color: rgba(245,236,215,0.6); }

.wines-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem;
  margin-top: 4rem;
}
.wine-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: transform 0.3s;
}
.wine-card:hover { transform: translateY(-8px); }
.wine-card-img {
  width: 100%;
  max-width: 240px;
  height: 380px;
  object-fit: cover;
  object-position: center;
  margin-bottom: 2rem;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}
.wine-card-label {
  font-size: 0.65rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.5rem;
}
.wine-card h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  color: var(--cream);
  margin-bottom: 0.5rem;
}
.wine-card p {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1rem;
  color: rgba(245,236,215,0.55);
  line-height: 1.7;
  max-width: 220px;
}

/* ── FEATURE SPLIT ── */
.feature-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  align-items: stretch;
}
.feature-split-img {
  width: 100%;
  height: 100%;
  min-height: 520px;
  object-fit: cover;
}
.feature-split-content {
  background: var(--burgundy-dark);
  padding: 5rem 4rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1.5rem;
}
.feature-split-content .eyebrow { color: var(--gold); }
.feature-split-content h2 { color: var(--cream); font-size: clamp(1.8rem, 3vw, 2.5rem); }
.feature-split-content p {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.15rem;
  color: rgba(245,236,215,0.75);
  line-height: 1.8;
}
.feature-split.reverse .feature-split-img { order: 2; }
.feature-split.reverse .feature-split-content { order: 1; background: var(--cream-dark); }
.feature-split.reverse .feature-split-content h2 { color: var(--burgundy-dark); }
.feature-split.reverse .feature-split-content p { color: var(--text-light); }

/* ── PAGE HERO (inner pages) ── */
.page-hero {
  height: 45vh;
  min-height: 320px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 3rem;
  position: relative;
  overflow: hidden;
  background-size: cover;
  background-position: center;
}
.page-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(26,10,14,0.45), rgba(26,10,14,0.75));
}
.page-hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  color: var(--cream);
}
.page-hero-content h1 {
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 400;
  text-shadow: 0 2px 20px rgba(0,0,0,0.4);
}

/* ── GALLERY GRID ── */
.gallery-grid {
  columns: 3;
  gap: 1rem;
}
.gallery-item {
  break-inside: avoid;
  margin-bottom: 1rem;
  overflow: hidden;
  position: relative;
}
.gallery-item img {
  width: 100%;
  display: block;
  transition: transform 0.4s;
}
.gallery-item:hover img { transform: scale(1.04); }

/* ── CONTACT ── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 4rem;
  align-items: start;
}
.contact-info h2 {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  color: var(--burgundy-dark);
  margin-bottom: 1.5rem;
}
.contact-detail {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.contact-detail-icon {
  width: 40px; height: 40px;
  border: 1px solid var(--gold);
  display: flex; align-items: center; justify-content: center;
  color: var(--gold);
  font-size: 1rem;
  flex-shrink: 0;
}
.contact-detail-text p { font-size: 0.8rem; color: var(--text-light); letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 2px; }
.contact-detail-text a,
.contact-detail-text span { font-family: 'Cormorant Garamond', serif; font-size: 1.15rem; color: var(--text); }
.contact-detail-text a:hover { color: var(--burgundy); }

.map-container {
  width: 100%;
  height: 420px;
  border: 1px solid var(--gold-light);
}
.map-container iframe { width: 100%; height: 100%; border: 0; }

/* ── FOOTER ── */
footer {
  background: var(--charcoal);
  color: rgba(245,236,215,0.5);
  padding: 3rem 2rem;
  text-align: center;
}
.footer-inner { max-width: 900px; margin: 0 auto; }
.footer-logo {
  font-family: 'Playfair Display', serif;
  font-size: 1.6rem;
  color: var(--gold-light);
  letter-spacing: 0.1em;
  margin-bottom: 0.25rem;
}
.footer-tagline {
  font-size: 0.65rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.5rem;
}
.footer-links {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}
.footer-links a {
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(245,236,215,0.5);
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--gold-light); }
.footer-divider { border: none; border-top: 1px solid rgba(245,236,215,0.1); margin: 1.5rem 0; }
.footer-legal { font-size: 0.7rem; line-height: 1.7; }

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
  .wines-grid { grid-template-columns: 1fr; gap: 3.5rem; }
  .feature-split, .feature-split.reverse { grid-template-columns: 1fr; }
  .feature-split.reverse .feature-split-img { order: 0; }
  .feature-split.reverse .feature-split-content { order: 1; }
  .contact-grid { grid-template-columns: 1fr; }
  .gallery-grid { columns: 2; }
  #nav { padding: 0 1.5rem; }
}
@media (max-width: 600px) {
  .section { padding: 4rem 1.25rem; }
  .gallery-grid { columns: 1; }
  .feature-split-content { padding: 3rem 1.5rem; }
}

/* Mobile nav drawer */
.nav-drawer {
  display: none;
  position: fixed;
  top: var(--nav-h); left: 0; right: 0; bottom: 0;
  background: rgba(26,10,14,0.98);
  z-index: 999;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2.5rem;
}
.nav-drawer.open { display: flex; }
.nav-drawer a {
  font-family: 'Playfair Display', serif;
  font-size: 1.8rem;
  color: var(--cream);
  transition: color 0.2s;
}
.nav-drawer a:hover { color: var(--gold-light); }
