/* ==========================================
   Fonte Di Vita - Main Stylesheet
   ========================================== */

/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;700;900&family=Lora:ital,wght@0,400;0,700;1,400&display=swap');

/* ==========================================
   CSS Custom Properties
   ========================================== */
:root {
  --color-bg: rgb(35, 35, 35);
  --color-bg-dark: rgb(25, 25, 25);
  --color-text: rgb(153, 153, 153);
  --color-text-light: rgb(200, 200, 200);
  --color-heading: rgb(255, 255, 255);
  --color-gold: #c5a028;
  --color-gold-light: #d4b44a;
  --color-overlay: rgba(0, 0, 0, 0.6);
  --font-heading: 'Cinzel', serif;
  --font-body: 'Lora', serif;
  --transition: all 0.3s ease;
  --nav-height: 80px;
}

/* ==========================================
   Reset & Base
   ========================================== */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

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

body {
  font-family: var(--font-body);
  background-color: var(--color-bg);
  color: var(--color-text);
  line-height: 1.8;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--color-heading);
  font-weight: 400;
  letter-spacing: 2px;
  text-transform: uppercase;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.2rem; }

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

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

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

p {
  margin-bottom: 1rem;
}

.container {
  max-width: 1170px;
  margin: 0 auto;
  padding: 0 15px;
}

/* ==========================================
   Navigation
   ========================================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 15px 0;
  transition: var(--transition);
  background: rgba(0, 0, 0, 0.9);
}

.navbar.scrolled {
  background: rgba(0, 0, 0, 0.9);
  padding: 10px 0;
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.navbar-brand {
  display: flex;
  align-items: center;
}

.navbar-brand img {
  height: 50px;
  transition: var(--transition);
}

.navbar.scrolled .navbar-brand img {
  height: 40px;
}

.nav-menu {
  display: flex;
  list-style: none;
  align-items: center;
  gap: 30px;
}

.nav-menu a {
  font-family: var(--font-heading);
  font-size: 0.75rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--color-heading);
  padding: 5px 0;
  position: relative;
}

.nav-menu a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--color-gold);
  transition: var(--transition);
}

.nav-menu a:hover::after,
.nav-menu a.active::after {
  width: 100%;
}

.nav-lang {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-lang a {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.7rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--color-text);
}

.nav-lang a:hover,
.nav-lang a.active {
  color: var(--color-heading);
}

.nav-lang img {
  width: 20px;
  height: 14px;
  object-fit: cover;
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 5px;
  z-index: 1001;
}

.hamburger span {
  display: block;
  width: 25px;
  height: 2px;
  background: var(--color-heading);
  transition: var(--transition);
}

.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);
}

/* ==========================================
   Hero Section / Slider
   ========================================== */
.hero {
  position: relative;
  height: 100vh;
  overflow: hidden;
}

.hero-slider {
  position: relative;
  width: 100%;
  height: 100%;
}

.hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.5s ease;
}

.hero-slide.active {
  opacity: 1;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.hero-content {
  padding: 0 20px;
}

.hero-content h1,
.hero-content h2 {
  font-size: 3.5rem;
  letter-spacing: 8px;
  margin-bottom: 20px;
  text-shadow: 2px 2px 10px rgba(0,0,0,0.5);
}

.hero-content p {
  font-size: 1.1rem;
  color: var(--color-text-light);
  letter-spacing: 3px;
  text-transform: uppercase;
  font-family: var(--font-heading);
}

.hero-scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: var(--color-heading);
  animation: bounce 2s infinite;
}

.hero-scroll-indicator span {
  font-size: 0.7rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-family: var(--font-heading);
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
  40% { transform: translateX(-50%) translateY(-10px); }
  60% { transform: translateX(-50%) translateY(-5px); }
}

/* Slider navigation dots */
.slider-dots {
  position: absolute;
  bottom: 100px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 10;
}

.slider-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 1px solid var(--color-heading);
  background: transparent;
  cursor: pointer;
  transition: var(--transition);
}

.slider-dot.active {
  background: var(--color-heading);
}

/* ==========================================
   Page Header (Inner Pages)
   ========================================== */
.page-header {
  height: 40vh;
  min-height: 300px;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  text-align: center;
}

.page-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
}

.page-header-content {
  position: relative;
  z-index: 1;
}

.page-header-content .vertical-line {
  width: 1px;
  height: 60px;
  background: var(--color-gold);
  margin: 0 auto 20px;
}

.page-header-content h1 {
  font-size: 2.5rem;
  letter-spacing: 6px;
}

/* ==========================================
   Sections
   ========================================== */
.section {
  padding: 80px 0;
}

.section-title {
  text-align: center;
  margin-bottom: 60px;
}

.section-title .vertical-line {
  width: 1px;
  height: 50px;
  background: var(--color-gold);
  margin: 0 auto 20px;
}

.section-title h2 {
  margin-bottom: 15px;
}

.section-title p {
  color: var(--color-text);
  max-width: 700px;
  margin: 0 auto;
}

/* Two-column layout */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.two-col.reverse .col-text {
  order: 2;
}

.two-col.reverse .col-image {
  order: 1;
}

.col-text h2 {
  margin-bottom: 20px;
  font-size: 1.8rem;
}

.col-text h3 {
  margin-bottom: 15px;
  font-size: 1.3rem;
}

.col-image img {
  width: 100%;
  border-radius: 2px;
}

/* Vertical line separator (decorative) */
.vertical-line-separator {
  width: 1px;
  height: 80px;
  background: var(--color-gold);
  margin: 0 auto;
}

/* ==========================================
   Parallax Quote Section
   ========================================== */
.parallax-section {
  background-attachment: fixed;
  background-size: cover;
  background-position: center;
  position: relative;
  padding: 120px 0;
}

.parallax-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
}

.parallax-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.parallax-content blockquote {
  font-size: 1.3rem;
  font-style: italic;
  color: var(--color-text-light);
  line-height: 2;
  margin-bottom: 20px;
}

.parallax-content cite {
  color: var(--color-gold);
  font-family: var(--font-heading);
  font-size: 0.9rem;
  letter-spacing: 2px;
  font-style: normal;
}

/* ==========================================
   Product Category Cards (Homepage)
   ========================================== */
.product-categories {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.product-card {
  position: relative;
  overflow: hidden;
  height: 400px;
  border-radius: 2px;
}

.product-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.product-card:hover img {
  transform: scale(1.05);
}

.product-card-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.product-card:hover .product-card-overlay {
  background: rgba(0, 0, 0, 0.6);
}

.product-card-overlay h3 {
  font-size: 1.2rem;
  letter-spacing: 3px;
  margin-bottom: 15px;
}

.product-card-overlay .btn {
  font-size: 0.7rem;
}

/* ==========================================
   Hover Overlay Cards (Story/Production/Fields)
   ========================================== */
.hover-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
}

.hover-card {
  position: relative;
  height: 450px;
  overflow: hidden;
}

.hover-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

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

.hover-card-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.hover-card:hover .hover-card-overlay {
  background: rgba(0, 0, 0, 0.6);
}

.hover-card-overlay h3 {
  font-size: 1.1rem;
  letter-spacing: 3px;
  margin-bottom: 10px;
  transform: translateY(10px);
  transition: var(--transition);
}

.hover-card:hover .hover-card-overlay h3 {
  transform: translateY(0);
}

.hover-card-overlay .btn {
  opacity: 0;
  transform: translateY(20px);
  transition: var(--transition);
  font-size: 0.7rem;
}

.hover-card:hover .hover-card-overlay .btn {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================
   Product Tabs (Alcohol/Non-Alcohol Pages)
   ========================================== */
.tabs {
  text-align: center;
  margin-bottom: 50px;
}

.tab-nav {
  display: flex;
  justify-content: center;
  gap: 30px;
  list-style: none;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.tab-nav li a {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--color-text);
  padding: 10px 20px;
  border-bottom: 2px solid transparent;
  transition: var(--transition);
  cursor: pointer;
}

.tab-nav li a:hover,
.tab-nav li a.active {
  color: var(--color-heading);
  border-bottom-color: var(--color-gold);
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

.product-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  text-align: left;
  max-width: 1000px;
  margin: 0 auto;
}

.product-detail .product-image {
  text-align: center;
}

.product-detail .product-image img {
  max-height: 500px;
  width: auto;
}

.product-detail .product-info h2 {
  margin-bottom: 20px;
  font-size: 2rem;
}

.product-detail .product-info h3,
.product-detail .product-info .product-brand {
  color: var(--color-gold);
  margin-bottom: 15px;
  font-size: 1rem;
  letter-spacing: 3px;
  font-family: var(--font-heading);
  text-transform: uppercase;
}

.product-detail .product-info p {
  margin-bottom: 15px;
  line-height: 1.8;
}

.product-specs {
  list-style: none;
  margin-top: 20px;
}

.product-specs li {
  padding: 8px 0;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  font-size: 0.9rem;
}

.product-specs li strong {
  color: var(--color-heading);
  margin-right: 10px;
}

/* ==========================================
   Buttons
   ========================================== */
.btn {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 0.75rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 12px 30px;
  border: 1px solid var(--color-heading);
  color: var(--color-heading);
  transition: var(--transition);
  cursor: pointer;
  background: transparent;
}

.btn:hover {
  background: var(--color-heading);
  color: var(--color-bg);
}

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

.btn-gold:hover {
  background: var(--color-gold);
  color: var(--color-bg);
}

/* ==========================================
   Image Carousel (Production Page)
   ========================================== */
.carousel {
  position: relative;
  overflow: hidden;
  margin: 40px 0;
}

.carousel-track {
  display: flex;
  transition: transform 0.5s ease;
}

.carousel-slide {
  min-width: 33.333%;
  padding: 0 10px;
}

.carousel-slide img {
  width: 100%;
  height: 350px;
  object-fit: cover;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.5);
  color: var(--color-heading);
  border: none;
  padding: 15px 20px;
  cursor: pointer;
  font-size: 1.2rem;
  z-index: 10;
  transition: var(--transition);
}

.carousel-btn:hover {
  background: rgba(0, 0, 0, 0.8);
}

.carousel-btn.prev { left: 0; }
.carousel-btn.next { right: 0; }

/* ==========================================
   Fields Page - Data Table
   ========================================== */
.data-table {
  width: 100%;
  border-collapse: collapse;
  margin: 30px 0;
}

.data-table th,
.data-table td {
  padding: 12px 15px;
  text-align: left;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.data-table th {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  letter-spacing: 1px;
  color: var(--color-heading);
  text-transform: uppercase;
}

.data-table td {
  font-size: 0.9rem;
}

/* ==========================================
   Under Construction (Cocktails)
   ========================================== */
.under-construction {
  text-align: center;
  padding: 100px 20px;
}

.under-construction h2 {
  margin-bottom: 20px;
}

.under-construction p {
  font-size: 1.1rem;
  color: var(--color-text);
}

/* ==========================================
   EU Banner
   ========================================== */
.eu-banner {
  padding: 40px 0;
  text-align: center;
  background: var(--color-bg);
}

.eu-banner img {
  max-width: 100%;
  height: auto;
}

/* ==========================================
   Footer
   ========================================== */
.footer {
  background-image: url('../images/shared/copyright-back.jpg');
  background-size: cover;
  background-position: center;
  position: relative;
  padding: 60px 0 0;
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
}

.footer .container,
.footer .copyright {
  position: relative;
  z-index: 1;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 40px;
  padding-bottom: 40px;
  max-width: 700px;
  margin: 0 auto;
}

.footer-col h4,
.footer-col .footer-heading {
  font-size: 0.9rem;
  font-family: var(--font-heading);
  font-weight: 400;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 20px;
  color: var(--color-heading);
}

.footer-col p,
.footer-col a {
  font-size: 0.85rem;
  color: var(--color-text);
  line-height: 2;
  text-transform: uppercase;
  letter-spacing: 1px;
}

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

.footer-social {
  display: flex;
  gap: 20px;
  margin-top: 15px;
  justify-content: center;
}

.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text);
  font-size: 1rem;
  transition: var(--transition);
}

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

.copyright {
  padding: 20px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
}

.copyright p {
  font-size: 0.75rem;
  color: var(--color-text);
  margin: 0;
  letter-spacing: 2px;
  text-transform: uppercase;
}

/* ==========================================
   Back to Top
   ========================================== */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 45px;
  height: 45px;
  background: var(--color-gold);
  color: var(--color-bg);
  border: none;
  border-radius: 2px;
  cursor: pointer;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  z-index: 999;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background: var(--color-gold-light);
}

/* ==========================================
   Scroll Animations
   ========================================== */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================
   Utilities
   ========================================== */
.text-center { text-align: center; }
.text-gold { color: var(--color-gold); }
.mt-40 { margin-top: 40px; }
.mb-40 { margin-bottom: 40px; }
.mt-80 { margin-top: 80px; }
.mb-80 { margin-bottom: 80px; }
.pt-0 { padding-top: 0; }

/* ==========================================
   Sticky ESPA Banner
   ========================================== */
.sticky-espa-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  z-index: 998;
  background: #fff;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.3);
  text-align: center;
  padding: 5px 0;
}

.sticky-espa-banner img {
  max-height: 55px;
  width: auto;
  max-width: 100%;
}

/* Push back-to-top above the sticky banner */
.back-to-top {
  bottom: 75px;
}

/* Add bottom padding to body so footer isn't hidden behind sticky banner */
body {
  padding-bottom: 65px;
}
