/* ===== Custom Styles for Wine Portfolio ===== */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500;1,600;1,700&family=Inter:wght@300;400;500;600&display=swap');

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  background-color: #051F20;
  color: #f5f5f5;
  overflow-x: hidden;
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #0B2B26;
}

::-webkit-scrollbar-thumb {
  background: #c9a96e;
  border-radius: 4px;
}

/* ===== Typography ===== */
.font-playfair {
  font-family: 'Playfair Display', serif;
}

/* ===== Hero ===== */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, #051F20 0%, #0B2B26 50%, #051F20 100%);
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(201, 169, 110, 0.06) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 20%, rgba(201, 169, 110, 0.04) 0%, transparent 50%);
  pointer-events: none;
}

.hero-section::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 200px;
  background: linear-gradient(to top, #051F20, transparent);
  pointer-events: none;
}

/* Decorative vineyard pattern */
.hero-bg-pattern {
  position: absolute;
  inset: 0;
  opacity: 0.03;
  background-image:
    repeating-linear-gradient(45deg,
      transparent,
      transparent 35px,
      rgba(255, 255, 255, 0.05) 35px,
      rgba(255, 255, 255, 0.05) 36px);
  pointer-events: none;
}

/* Floating decorative elements */
.hero-deco-circle {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(201, 169, 110, 0.1);
  pointer-events: none;
}

.hero-deco-circle.c1 {
  width: 500px;
  height: 500px;
  top: -100px;
  right: -100px;
  animation: float-slow 20s ease-in-out infinite;
}

.hero-deco-circle.c2 {
  width: 300px;
  height: 300px;
  bottom: -50px;
  left: -50px;
  animation: float-slow 15s ease-in-out infinite reverse;
}

.hero-deco-circle.c3 {
  width: 200px;
  height: 200px;
  top: 30%;
  right: 20%;
  animation: float-slow 18s ease-in-out infinite 3s;
}

/* Decorative gold circles behind the hero bottle */
.hero-bottle-circle {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(201, 169, 110, 0.2);
  background: radial-gradient(circle, rgba(201, 169, 110, 0.06) 0%, transparent 70%);
  pointer-events: none;
}

.hero-bottle-circle.c4 {
  width: 350px;
  height: 350px;
  top: 5%;
  right: -10%;
  animation: float-slow 22s ease-in-out infinite 2s;
}

.hero-bottle-circle.c5 {
  width: 250px;
  height: 250px;
  bottom: 10%;
  left: -15%;
  animation: float-slow 17s ease-in-out infinite 5s;
}

@keyframes float-slow {

  0%,
  100% {
    transform: translate(0, 0) rotate(0deg);
  }

  25% {
    transform: translate(10px, -15px) rotate(2deg);
  }

  50% {
    transform: translate(-5px, 10px) rotate(-1deg);
  }

  75% {
    transform: translate(15px, 5px) rotate(1deg);
  }
}

/* Hero bottle entrance animation - slides up from below */
.hero-bottle-entrance {
  animation: bottleSlideUp 3s cubic-bezier(0.16, 1, 0.3, 1) 0.3s both;
}

@keyframes bottleSlideUp {
  from {
    opacity: 0;
    transform: translateY(80px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Hero text & buttons — subtle staggered fade-in */
.hero-fade-in {
  opacity: 0;
  animation: heroTextIn 1s ease-out var(--delay, 0s) forwards;
}

@keyframes heroTextIn {
  from {
    opacity: 0;
    transform: translateY(15px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Hero bottle illustration - CSS art */
.hero-bottle {
  position: relative;
  width: 120px;
  height: 400px;
  margin: 0 auto;
}

.bottle-body {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 90px;
  height: 280px;
  background: linear-gradient(135deg, #163832 0%, #0B2B26 50%, #235347 100%);
  border-radius: 8px 8px 4px 4px;
  box-shadow:
    inset -15px 0 30px rgba(0, 0, 0, 0.5),
    inset 5px 0 15px rgba(255, 255, 255, 0.03),
    0 10px 40px rgba(0, 0, 0, 0.5);
}

.bottle-neck {
  position: absolute;
  bottom: 280px;
  left: 50%;
  transform: translateX(-50%);
  width: 30px;
  height: 80px;
  background: linear-gradient(135deg, #163832 0%, #0B2B26 50%, #235347 100%);
  border-radius: 4px 4px 0 0;
  box-shadow: inset -5px 0 10px rgba(0, 0, 0, 0.5);
}

.bottle-cap {
  position: absolute;
  bottom: 356px;
  left: 50%;
  transform: translateX(-50%);
  width: 34px;
  height: 20px;
  background: linear-gradient(135deg, #c9a96e, #a8864a);
  border-radius: 4px 4px 2px 2px;
}

.bottle-label {
  position: absolute;
  bottom: 80px;
  left: 50%;
  transform: translateX(-50%);
  width: 70px;
  height: 90px;
  background: #f5f0e8;
  border-radius: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.bottle-label-text {
  font-family: 'Playfair Display', serif;
  font-size: 28px;
  font-weight: 700;
  color: #0B2B26;
  letter-spacing: -1px;
}

.bottle-shine {
  position: absolute;
  bottom: 0;
  left: 22px;
  width: 8px;
  height: 270px;
  background: linear-gradient(to bottom, transparent, rgba(255, 255, 255, 0.06), transparent);
  border-radius: 4px;
}

/* ===== Gold Divider ===== */
.gold-divider {
  width: 60px;
  height: 2px;
  background: linear-gradient(90deg, transparent, #c9a96e, transparent);
}

.gold-divider-wide {
  width: 120px;
  height: 1px;
  background: linear-gradient(90deg, transparent, #c9a96e, transparent);
}

/* ===== Wine Cards ===== */
.wine-card {
  background: linear-gradient(145deg, #0B2B26, #163832);
  border: 1px solid rgba(201, 169, 110, 0.1);
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.wine-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(145deg, rgba(201, 169, 110, 0.03), transparent);
  opacity: 0;
  transition: opacity 0.5s;
  pointer-events: none;
  border-radius: 12px;
}

.wine-card:hover {
  transform: translateY(-8px);
  border-color: rgba(201, 169, 110, 0.3);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4), 0 0 30px rgba(201, 169, 110, 0.05);
}

.wine-card:hover::before {
  opacity: 1;
}

/* Wine image placeholder */
.wine-img-placeholder {
  width: 100%;
  height: 510px;
  background: linear-gradient(180deg, #0B2B26 0%, #163832 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.wine-img-placeholder::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 80px;
  background: linear-gradient(to top, #0B2B26, transparent);
  pointer-events: none;
}

/* Placeholder bottle SVG */
.placeholder-bottle {
  width: 60px;
  height: 200px;
  position: relative;
  opacity: 0.3;
}

.placeholder-bottle .pb-body {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 50px;
  height: 150px;
  background: linear-gradient(135deg, #235347, #163832);
  border-radius: 6px 6px 3px 3px;
}

.placeholder-bottle .pb-neck {
  position: absolute;
  bottom: 150px;
  left: 50%;
  transform: translateX(-50%);
  width: 18px;
  height: 40px;
  background: linear-gradient(135deg, #235347, #163832);
  border-radius: 3px 3px 0 0;
}

.placeholder-bottle .pb-cap {
  position: absolute;
  bottom: 188px;
  left: 50%;
  transform: translateX(-50%);
  width: 22px;
  height: 14px;
  background: #c9a96e;
  border-radius: 3px 3px 1px 1px;
  opacity: 0.5;
}

/* Wine detail sections */
.wine-detail-label {
  color: #c9a96e;
  font-weight: 600;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.wine-detail-value {
  color: #d1d5db;
  font-size: 0.875rem;
  line-height: 1.4;
}

/* Tasting note items */
.tasting-note-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 0;
}

.tasting-note-icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  flex-shrink: 0;
}

/* Gold tasting note icons */
.tasting-icon-gold {
  background: rgba(201, 169, 110, 0.15);
  color: #c9a96e;
}

/* Material Symbols lips icon sizing */
.tasting-lips-icon {
  font-size: 16px;
  line-height: 1;
  color: #c9a96e;
}

/* ===== Navbar ===== */
.navbar {
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  background: rgba(5, 31, 32, 0.85);
  transition: all 0.4s ease;
}

.navbar.scrolled {
  background: rgba(5, 31, 32, 0.95);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.nav-link {
  position: relative;
  color: #9ca3af;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  transition: color 0.3s;
  padding: 4px 0;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: #c9a96e;
  transition: width 0.3s;
}

.nav-link:hover,
.nav-link.active {
  color: #c9a96e;
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

/* ===== Scroll Animations ===== */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 {
  transition-delay: 0.1s;
}

.reveal-delay-2 {
  transition-delay: 0.2s;
}

.reveal-delay-3 {
  transition-delay: 0.3s;
}

.reveal-delay-4 {
  transition-delay: 0.4s;
}

/* ===== About Section ===== */
.about-section {
  position: relative;
  overflow: hidden;
}

.about-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(201, 169, 110, 0.2), transparent);
}

/* Stats counter */
.stat-number {
  font-family: 'Playfair Display', serif;
  font-size: 3rem;
  font-weight: 700;
  color: #c9a96e;
  line-height: 1;
}

/* ===== Wines Section ===== */
.wines-section {
  position: relative;
}

.wines-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(201, 169, 110, 0.2), transparent);
}

/* ===== Contact Section ===== */
.contact-section {
  position: relative;
  background: linear-gradient(180deg, #051F20 0%, #051F20 100%);
}

.contact-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(201, 169, 110, 0.2), transparent);
}

/* ===== Footer ===== */
footer {
  border-top: 1px solid rgba(201, 169, 110, 0.1);
}

/* ===== Mobile Menu ===== */
.mobile-menu {
  height: 66.67vh;
  transform: translateY(-100%);
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
  pointer-events: none;
}

.mobile-menu.open {
  transform: translateY(0);
  pointer-events: all;
}

.mobile-menu-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5, 31, 32, 0.75);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border-bottom: 1px solid rgba(201, 169, 110, 0.15);
}

.mobile-menu-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  padding: 80px 24px 32px;
  gap: 0;
}

.mobile-menu-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 24px;
}

.mobile-menu-nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  width: 100%;
  max-width: 280px;
}

/* Individual menu items - accordion animation */
.mobile-menu-item {
  width: 100%;
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transform: translateY(-20px);
  transition:
    max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1),
    opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1),
    transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  transition-delay: calc(var(--item-index) * 0.08s);
  border-bottom: 1px solid rgba(201, 169, 110, 0.08);
}

.mobile-menu.open .mobile-menu-item {
  max-height: 80px;
  opacity: 1;
  transform: translateY(0);
  transition-delay: calc(0.15s + var(--item-index) * 0.1s);
}

/* Gold links */
.mobile-menu-link {
  display: block;
  text-align: center;
  padding: 16px 12px;
  font-size: 1.5rem;
  font-weight: 500;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: #c9a96e;
  text-decoration: none;
  position: relative;
  transition: color 0.3s, text-shadow 0.3s;
}

.mobile-menu-link:hover {
  color: #d4ba85;
  text-shadow: 0 0 20px rgba(201, 169, 110, 0.3);
}

.mobile-menu-link::after {
  content: '';
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%) scaleX(0);
  width: 40px;
  height: 1px;
  background: linear-gradient(90deg, transparent, #c9a96e, transparent);
  transition: transform 0.3s ease;
}

.mobile-menu-link:hover::after {
  transform: translateX(-50%) scaleX(1);
}

.mobile-menu-footer {
  margin-top: auto;
  text-align: center;
  opacity: 0;
  transform: translateY(-10px);
  transition: opacity 0.4s ease 0.6s, transform 0.4s ease 0.6s;
}

.mobile-menu.open .mobile-menu-footer {
  opacity: 1;
  transform: translateY(0);
}

/* Hamburger animation */
.hamburger span {
  display: block;
  width: 24px;
  height: 1.5px;
  background: #f5f5f5;
  transition: all 0.3s;
  margin: 6px 0;
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .hero-bottle {
    transform: scale(0.7);
  }

  .stat-number {
    font-size: 2rem;
  }

  .wine-img-placeholder {
    width: 100%;
    height: 290px;
    background: linear-gradient(180deg, #0B2B26 0%, #163832 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
  }
}

/* ===== Selection ===== */
::selection {
  background: rgba(201, 169, 110, 0.3);
  color: #f5f5f5;
}

/* ===== Scroll to top button ===== */
.scroll-top-btn {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 45px;
  height: 45px;
  background: rgba(201, 169, 110, 0.15);
  border: 1px solid rgba(201, 169, 110, 0.3);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #c9a96e;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s;
  z-index: 40;
  backdrop-filter: blur(10px);
}

.scroll-top-btn.visible {
  opacity: 1;
  visibility: visible;
}

.scroll-top-btn:hover {
  background: rgba(201, 169, 110, 0.25);
  transform: translateY(-3px);
}

/* ===== Age Gate Overlay ===== */
.age-gate-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.age-gate-overlay.hidden {
  display: none;
}

.age-gate-backdrop {
  position: absolute;
  inset: 0;
  background: #051f20;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.age-gate-modal {
  position: relative;
  z-index: 1;
  background: linear-gradient(145deg, #0B2B26, #163832);
  border: 1px solid rgba(201, 169, 110, 0.2);
  border-radius: 16px;
  padding: 40px 36px;
  max-width: 440px;
  width: 100%;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6), 0 0 40px rgba(201, 169, 110, 0.05);
  animation: ageGateIn 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes ageGateIn {
  from {
    opacity: 0;
    transform: scale(0.95) translateY(20px);
  }

  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.age-gate-select {
  appearance: none;
  -webkit-appearance: none;
  background: #051F20;
  border: 1px solid rgba(201, 169, 110, 0.2);
  color: #f5f5f5;
  padding: 10px 14px;
  border-radius: 6px;
  font-size: 14px;
  font-family: 'Inter', sans-serif;
  text-align: center;
  cursor: pointer;
  width: 80px;
  transition: border-color 0.3s;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23c9a96e' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  padding-right: 30px;
}

.age-gate-select:focus {
  outline: none;
  border-color: #c9a96e;
}

.age-gate-select-wide {
  width: 100px;
}

/* Body locked when age gate is open */
body.age-gate-locked {
  overflow: hidden;
}

/* ===== Cookie Consent Banner ===== */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(11, 43, 38, 0.95);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border-top: 1px solid rgba(201, 169, 110, 0.15);
  padding: 16px 0;
  animation: slideUpBanner 0.5s ease-out;
}

.cookie-banner.hidden {
  display: none;
}

@keyframes slideUpBanner {
  from {
    transform: translateY(100%);
    opacity: 0;
  }

  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@media (max-width: 640px) {
  .age-gate-modal {
    padding: 30px 24px;
  }

  .age-gate-select {
    width: 70px;
    padding: 8px 10px;
    font-size: 13px;
  }

  .age-gate-select-wide {
    width: 90px;
  }
}