/* ============================================
   The Malibu Winery — Custom Styles
   Palette: Deep Navy (#0F2B4C) + Warm Gold (#C8960C)
   Fonts: Poppins (headings/UI) + Lora (body)
   ============================================ */

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

:root {
  --navy: #0F2B4C;
  --navy-light: #1A3D6B;
  --navy-dark: #0A1F38;
  --gold: #C8960C;
  --gold-light: #E0B030;
  --gold-dark: #A07808;
  --cream: #FDF8F0;
  --cream-dark: #F5EDE0;
  --white: #FFFFFF;
  --text: #1A1A2E;
  --text-light: #5A5A7A;
  --text-lighter: #8888A0;
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --shadow-sm: 0 2px 8px rgba(15, 43, 76, 0.08);
  --shadow-md: 0 4px 20px rgba(15, 43, 76, 0.12);
  --shadow-lg: 0 8px 40px rgba(15, 43, 76, 0.16);
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Lora', Georgia, serif;
  color: var(--text);
  background: var(--cream);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Poppins', 'Segoe UI', sans-serif;
  font-weight: 700;
  line-height: 1.2;
  color: var(--navy);
}

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

a {
  color: var(--gold-dark);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--gold);
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.skip-link {
  position: absolute;
  top: -100%;
  left: 16px;
  background: var(--navy);
  color: var(--white);
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  z-index: 9999;
  font-family: 'Poppins', sans-serif;
  font-size: 0.875rem;
}

.skip-link:focus {
  top: 16px;
}

/* ============================================
   HEADER
   ============================================ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: transparent;
  transition: background var(--transition), box-shadow var(--transition);
  padding: 16px 0;
}

.site-header.scrolled {
  background: rgba(15, 43, 76, 0.97);
  box-shadow: var(--shadow-md);
  padding: 10px 0;
  backdrop-filter: blur(12px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--white);
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 1.1rem;
  z-index: 1001;
}

.logo-icon {
  flex-shrink: 0;
}

.logo-text {
  letter-spacing: 0.02em;
}

.primary-nav ul {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
}

.primary-nav a {
  color: rgba(255, 255, 255, 0.85);
  font-family: 'Poppins', sans-serif;
  font-size: 0.9rem;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: 100px;
  transition: all var(--transition);
}

.primary-nav a:hover {
  color: var(--white);
  background: rgba(255, 255, 255, 0.12);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 44px;
  height: 44px;
  position: relative;
  z-index: 1001;
}

.hamburger,
.hamburger::before,
.hamburger::after {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all var(--transition);
}

.hamburger {
  position: relative;
}

.hamburger::before,
.hamburger::after {
  content: '';
  position: absolute;
  left: 0;
}

.hamburger::before {
  top: -7px;
}

.hamburger::after {
  top: 7px;
}

.nav-toggle[aria-expanded="true"] .hamburger {
  background: transparent;
}

.nav-toggle[aria-expanded="true"] .hamburger::before {
  top: 0;
  transform: rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .hamburger::after {
  top: 0;
  transform: rotate(-45deg);
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 14px 32px;
  border-radius: 100px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  white-space: nowrap;
}

.btn-gold {
  background: var(--gold);
  color: var(--navy-dark);
  border-color: var(--gold);
}

.btn-gold:hover {
  background: var(--gold-light);
  border-color: var(--gold-light);
  color: var(--navy-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(200, 150, 12, 0.35);
}

.btn-navy {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}

.btn-navy:hover {
  background: var(--navy-light);
  border-color: var(--navy-light);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(15, 43, 76, 0.35);
}

.btn-outline-light {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.6);
}

.btn-outline-light:hover {
  background: var(--white);
  color: var(--navy);
  border-color: var(--white);
  transform: translateY(-2px);
}

.btn-sm {
  padding: 10px 24px;
  font-size: 0.85rem;
}

.btn-full {
  width: 100%;
}

/* ============================================
   SECTION UTILITIES
   ============================================ */
.section-eyebrow {
  font-family: 'Poppins', sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold-dark);
  margin-bottom: 12px;
}

.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 20px;
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--text-light);
  max-width: 600px;
  margin: 0 auto;
}

.section-header {
  margin-bottom: 60px;
}

.section-header.centered {
  text-align: center;
}

.centered {
  text-align: center;
}

/* ============================================
   HERO
   ============================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: url('https://images.pexels.com/photos/6097888/pexels-photo-6097888.jpeg?auto=compress&cs=tinysrgb&fit=crop&w=1920&h=1080') center/cover no-repeat;
  transform: scale(1.05);
  animation: heroZoom 20s ease-in-out infinite alternate;
}

@keyframes heroZoom {
  from { transform: scale(1.05); }
  to { transform: scale(1.12); }
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(10, 31, 56, 0.82) 0%,
    rgba(15, 43, 76, 0.65) 50%,
    rgba(15, 43, 76, 0.45) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 120px 24px 80px;
  max-width: 800px;
}

.hero-eyebrow {
  font-family: 'Poppins', sans-serif;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 20px;
}

.hero-title {
  font-size: clamp(3rem, 7vw, 5.5rem);
  color: var(--white);
  font-weight: 700;
  line-height: 1.05;
  margin-bottom: 24px;
  letter-spacing: -0.02em;
}

.hero-subtitle {
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  color: rgba(255, 255, 255, 0.85);
  max-width: 560px;
  margin: 0 auto 40px;
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-scroll {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
}

.hero-scroll span {
  display: block;
  width: 2px;
  height: 48px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.6), transparent);
  border-radius: 2px;
  animation: scrollBounce 2s ease-in-out infinite;
}

@keyframes scrollBounce {
  0%, 100% { transform: scaleY(1); opacity: 1; }
  50% { transform: scaleY(0.5); opacity: 0.5; }
}

/* ============================================
   ABOUT
   ============================================ */
.about {
  padding: 100px 0;
  background: var(--cream);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.about-images {
  position: relative;
}

.about-img-main {
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.about-img-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-img-secondary {
  position: absolute;
  bottom: -30px;
  right: -20px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 4px solid var(--cream);
}

.about-img-secondary img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-text p {
  color: var(--text-light);
  margin-bottom: 16px;
  font-size: 1.05rem;
}

.about-stats {
  display: flex;
  gap: 40px;
  margin-top: 36px;
  padding-top: 36px;
  border-top: 1px solid rgba(15, 43, 76, 0.1);
}

.stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.stat-number {
  font-family: 'Poppins', sans-serif;
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--gold-dark);
  line-height: 1;
}

.stat-label {
  font-family: 'Poppins', sans-serif;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-lighter);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* ============================================
   WINES
   ============================================ */
.wines {
  padding: 100px 0;
  background: var(--white);
}

.wine-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-bottom: 60px;
}

.wine-card {
  background: var(--cream);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition);
  box-shadow: var(--shadow-sm);
}

.wine-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.wine-card-img {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1;
}

.wine-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition);
}

.wine-card:hover .wine-card-img img {
  transform: scale(1.08);
}

.wine-tag {
  position: absolute;
  top: 16px;
  left: 16px;
  background: var(--navy);
  color: var(--gold-light);
  font-family: 'Poppins', sans-serif;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 100px;
}

.wine-card-body {
  padding: 24px;
}

.wine-name {
  font-size: 1.25rem;
  margin-bottom: 8px;
  color: var(--navy);
}

.wine-notes {
  font-size: 0.95rem;
  color: var(--text-light);
  margin-bottom: 12px;
  line-height: 1.6;
}

.wine-type {
  font-family: 'Poppins', sans-serif;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--gold-dark);
  letter-spacing: 0.05em;
}

/* ============================================
   TASTING
   ============================================ */
.tasting {
  padding: 100px 0;
  background: var(--navy);
  color: var(--white);
}

.tasting-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.tasting .section-eyebrow {
  color: var(--gold-light);
}

.tasting .section-title {
  color: var(--white);
}

.tasting-content p {
  color: rgba(255, 255, 255, 0.75);
  font-size: 1.05rem;
  margin-bottom: 28px;
}

.tasting-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 36px;
}

.tasting-features li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  color: rgba(255, 255, 255, 0.85);
  font-size: 1rem;
}

.feature-icon {
  flex-shrink: 0;
  margin-top: 3px;
  color: var(--gold-light);
}

.tasting-cta {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.tasting-note {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.5);
  font-style: italic;
}

.tasting-images {
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.tasting-img-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ============================================
   EVENTS
   ============================================ */
.events {
  padding: 100px 0;
  background: var(--cream);
}

.events-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-bottom: 60px;
}

.event-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
}

.event-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.event-card-img {
  overflow: hidden;
  aspect-ratio: 5/3;
}

.event-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition);
}

.event-card:hover .event-card-img img {
  transform: scale(1.06);
}

.event-card-body {
  padding: 28px;
}

.event-name {
  font-size: 1.2rem;
  margin-bottom: 10px;
}

.event-card-body p {
  color: var(--text-light);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* ============================================
   VISIT
   ============================================ */
.visit {
  padding: 100px 0;
  background: var(--white);
}

.visit-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

.visit-item {
  display: flex;
  gap: 16px;
  margin-bottom: 28px;
}

.visit-icon {
  flex-shrink: 0;
  margin-top: 3px;
  color: var(--gold-dark);
}

.visit-item strong {
  display: block;
  font-family: 'Poppins', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--navy);
  margin-bottom: 4px;
}

.visit-item p {
  color: var(--text-light);
  font-size: 1rem;
  line-height: 1.6;
}

.visit-item a {
  color: var(--gold-dark);
}

.visit-item a:hover {
  color: var(--gold);
}

.visit-map {
  min-height: 420px;
  box-shadow: var(--shadow-md);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

/* ============================================
   CONTACT
   ============================================ */
.contact {
  padding: 100px 0;
  background: var(--cream);
}

.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

.contact-text p {
  color: var(--text-light);
  font-size: 1.05rem;
}

.contact-form {
  background: var(--white);
  padding: 40px;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-group {
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-family: 'Poppins', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--navy);
}

.form-group input,
.form-group select,
.form-group textarea {
  font-family: 'Lora', serif;
  font-size: 1rem;
  padding: 14px 18px;
  border: 2px solid rgba(15, 43, 76, 0.12);
  border-radius: var(--radius-md);
  background: var(--cream);
  color: var(--text);
  transition: all var(--transition);
  outline: none;
  width: 100%;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--gold);
  background: var(--white);
  box-shadow: 0 0 0 4px rgba(200, 150, 12, 0.12);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-lighter);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.form-note {
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-lighter);
  margin-top: 16px;
}

.form-note a {
  color: var(--gold-dark);
  font-weight: 600;
}

.form-success {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 24px;
  background: #E8F5E9;
  border-radius: var(--radius-md);
  margin-top: 20px;
  color: #2E7D32;
  text-align: center;
}

.form-success svg {
  color: #4CAF50;
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
  background: var(--navy-dark);
  color: rgba(255, 255, 255, 0.7);
  padding: 60px 0 0;
}

.logo-light {
  color: var(--white);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1.5fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-brand p {
  margin-top: 16px;
  font-size: 0.95rem;
  line-height: 1.7;
  max-width: 300px;
}

.footer-links h4,
.footer-contact h4 {
  font-family: 'Poppins', sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--gold-light);
  margin-bottom: 20px;
}

.footer-links ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.95rem;
  transition: color var(--transition);
}

.footer-links a:hover {
  color: var(--white);
}

.footer-contact p {
  margin-bottom: 8px;
  font-size: 0.95rem;
}

.footer-contact a {
  color: rgba(255, 255, 255, 0.65);
}

.footer-contact a:hover {
  color: var(--gold-light);
}

.footer-bottom {
  padding: 24px 0;
  text-align: center;
}

.footer-bottom p {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.4);
}

/* ============================================
   BACK TO TOP
   ============================================ */
.back-to-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 48px;
  height: 48px;
  background: var(--navy);
  color: var(--gold-light);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px);
  transition: all var(--transition);
  z-index: 999;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background: var(--gold);
  color: var(--navy-dark);
  transform: translateY(-4px);
}

/* ============================================
   ANIMATIONS
   ============================================ */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
  .wine-grid,
  .events-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 36px;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .primary-nav {
    position: fixed;
    inset: 0;
    background: rgba(10, 31, 56, 0.97);
    backdrop-filter: blur(12px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition);
  }

  .primary-nav.open {
    opacity: 1;
    visibility: visible;
  }

  .primary-nav ul {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }

  .primary-nav a {
    font-size: 1.2rem;
    padding: 14px 24px;
  }

  .about-grid,
  .tasting-split,
  .visit-grid,
  .contact-wrapper {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .about-images {
    order: -1;
  }

  .about-img-secondary {
    right: 10px;
    bottom: -20px;
  }

  .wine-grid,
  .events-grid {
    grid-template-columns: 1fr;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
  }

  .hero-title {
    font-size: clamp(2.4rem, 10vw, 3.5rem);
  }

  .hero-actions {
    flex-direction: column;
  }

  .hero-actions .btn {
    width: 100%;
    max-width: 280px;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .contact-form {
    padding: 28px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-brand p {
    max-width: none;
  }

  .about-stats {
    gap: 24px;
  }

  .stat-number {
    font-size: 1.8rem;
  }

  .back-to-top {
    bottom: 20px;
    right: 20px;
    width: 42px;
    height: 42px;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }

  .about,
  .wines,
  .tasting,
  .events,
  .visit,
  .contact {
    padding: 72px 0;
  }

  .hero-content {
    padding: 100px 16px 60px;
  }

  .wine-card-body {
    padding: 20px;
  }
}
