/* ============================================
   FORJADOS — Premium Wine & Alfajores
   Design System & Styles
   ============================================ */

/* --- CSS Custom Properties --- */
:root {
  /* Colors */
  --bg-primary: #0A0A0A;
  --bg-secondary: #111111;
  --bg-tertiary: #1A1A1A;
  --bg-card: #141414;

  --burgundy-deep: #4A0E1B;
  --burgundy: #722F37;
  --burgundy-light: #8B3A42;
  --burgundy-glow: rgba(114, 47, 55, 0.3);

  --gold: #C9A84C;
  --gold-light: #D4AF37;
  --gold-dark: #A68B3C;
  --gold-glow: rgba(201, 168, 76, 0.2);

  --text-primary: #F5F0E8;
  --text-secondary: #B8B0A2;
  --text-muted: #6B6560;
  --text-dark: #0A0A0A;

  --white: #FFFFFF;
  --white-05: rgba(255, 255, 255, 0.05);
  --white-10: rgba(255, 255, 255, 0.1);
  --white-15: rgba(255, 255, 255, 0.15);
  --white-20: rgba(255, 255, 255, 0.2);

  /* Typography */
  --font-heading: 'Fraunces', 'Georgia', serif;
  --font-body: 'DM Sans', sans-serif;

  /* Spacing */
  --section-padding: clamp(80px, 10vw, 140px);
  --container-width: min(1280px, 90vw);

  /* Transitions */
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out-quart: cubic-bezier(0.25, 1, 0.5, 1);
  --transition-fast: 0.3s var(--ease-out-quart);
  --transition-medium: 0.6s var(--ease-out-expo);
  --transition-slow: 1s var(--ease-out-expo);

  /* Border Radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  --radius-xl: 24px;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

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

ul, ol {
  list-style: none;
}

button {
  border: none;
  background: none;
  cursor: pointer;
  font-family: inherit;
  color: inherit;
}

/* --- Utility Classes --- */
.container {
  width: var(--container-width);
  margin: 0 auto;
}

.section-label {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.section-label::before {
  content: '';
  width: 40px;
  height: 1px;
  background: var(--gold);
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  font-weight: 400;
  line-height: 1.1;
  color: var(--text-primary);
  margin-bottom: 1.5rem;
}

.section-title em {
  font-style: italic;
  color: var(--gold);
}

.section-description {
  font-size: clamp(1rem, 1.2vw, 1.15rem);
  color: var(--text-secondary);
  line-height: 1.8;
  max-width: 560px;
}

/* --- Preloader --- */
.preloader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  overflow: hidden;
}

.preloader-panels {
  position: absolute;
  inset: 0;
  display: flex;
}

.preloader-panels span {
  position: relative;
  flex: 1;
  background: var(--bg-primary);
}

.preloader-panels span:nth-child(even) {
  background: #0D0C0A;
}

/* rastro de luz que cruza a tela quando o painel sobe */
.preloader-panels span::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  box-shadow: 0 0 18px rgba(201, 168, 76, 0.55);
}

.preloader-content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
}

.preloader-count {
  font-family: var(--font-heading);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(4rem, 9vw, 7.5rem);
  line-height: 1;
  color: var(--text-primary);
  font-variant-numeric: tabular-nums;
  display: flex;
  align-items: flex-start;
  gap: 0.12em;
}

.preloader-count em {
  font-size: 0.22em;
  color: var(--gold);
  margin-top: 0.55em;
}

.preloader-bar {
  width: 240px;
  height: 1px;
  background: var(--white-10);
  position: relative;
  overflow: hidden;
}

.preloader-bar-fill {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--gold-dark), var(--gold-light));
  box-shadow: 0 0 12px var(--gold-glow);
}

.preloader-tag {
  font-size: 0.65rem;
  letter-spacing: 0.4em;
  text-indent: 0.4em;
  text-transform: uppercase;
  color: var(--gold);
  opacity: 0.85;
  text-align: center;
}

/* --- Cursor (desktop only) --- */
.cursor {
  display: none;
}

@media (hover: hover) and (pointer: fine) {
  .cursor {
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    width: 20px;
    height: 20px;
    border: 1px solid var(--gold);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9998;
    transition: width 0.3s ease, height 0.3s ease, border-color 0.3s ease;
    transform: translate(-50%, -50%);
    mix-blend-mode: difference;
  }

  .cursor.hover {
    width: 50px;
    height: 50px;
    border-color: var(--burgundy-light);
    background: var(--gold-glow);
  }
}

/* --- Navigation --- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 1.5rem 0;
  transition: all var(--transition-medium);
}

.navbar.scrolled {
  background: rgba(10, 10, 10, 0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 1rem 0;
  border-bottom: 1px solid var(--white-05);
}

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

.nav-logo {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  letter-spacing: 0.15em;
  color: var(--gold);
  font-weight: 400;
  transition: color var(--transition-fast);
}

.nav-logo:hover {
  color: var(--gold-light);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2.5rem;
}

.nav-links a {
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-secondary);
  transition: color var(--transition-fast);
  position: relative;
}

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

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

.nav-links a:hover::after {
  width: 100%;
}

.nav-cta {
  padding: 0.65rem 1.8rem;
  border: 1px solid var(--gold);
  color: var(--gold) !important;
  font-size: 0.75rem !important;
  letter-spacing: 0.2em !important;
  transition: all var(--transition-fast) !important;
}

.nav-cta::after {
  display: none !important;
}

.nav-cta:hover {
  background: var(--gold) !important;
  color: var(--text-dark) !important;
}

/* Mobile Menu Toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  width: 28px;
  cursor: pointer;
  z-index: 1001;
}

.nav-toggle span {
  display: block;
  width: 100%;
  height: 1px;
  background: var(--gold);
  transition: all var(--transition-fast);
}

.nav-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

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

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.1);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(10, 10, 10, 0.4) 0%,
    rgba(10, 10, 10, 0.6) 40%,
    rgba(10, 10, 10, 0.85) 80%,
    var(--bg-primary) 100%
  );
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 900px;
  padding: 0 2rem;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 1.5rem;
  border: 1px solid var(--white-15);
  border-radius: 100px;
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 2.5rem;
  backdrop-filter: blur(10px);
  background: var(--white-05);
}

.hero-badge .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.8); }
}

.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(3rem, 8vw, 7rem);
  font-weight: 400;
  line-height: 1;
  margin-bottom: 1.5rem;
  color: var(--text-primary);
}

.hero-title .line {
  display: block;
  overflow: hidden;
}

.hero-title .line-inner {
  display: block;
}

.hero-title em {
  font-style: italic;
  color: var(--gold);
}

.hero-subtitle {
  font-size: clamp(1rem, 1.3vw, 1.2rem);
  color: var(--text-secondary);
  max-width: 500px;
  margin: 0 auto 3rem;
  line-height: 1.8;
}

.hero-ctas {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 2.5rem;
  background: linear-gradient(135deg, var(--gold-dark), var(--gold));
  color: var(--text-dark);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
  position: relative;
  overflow: hidden;
}

.btn-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  opacity: 0;
  transition: opacity var(--transition-fast);
}

.btn-primary:hover::before {
  opacity: 1;
}

.btn-primary span {
  position: relative;
  z-index: 1;
}

.btn-primary svg {
  position: relative;
  z-index: 1;
  transition: transform var(--transition-fast);
}

.btn-primary:hover svg {
  transform: translateX(4px);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 2.5rem;
  border: 1px solid var(--white-20);
  color: var(--text-primary);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
}

.btn-secondary:hover {
  border-color: var(--gold);
  color: var(--gold);
  background: var(--gold-glow);
}

.hero-scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  color: var(--text-muted);
  font-size: 0.65rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
}

.scroll-line {
  width: 1px;
  height: 60px;
  background: var(--white-10);
  position: relative;
  overflow: hidden;
}

.scroll-line::after {
  content: '';
  position: absolute;
  top: -100%;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--gold);
  animation: scroll-down 2s ease-in-out infinite;
}

@keyframes scroll-down {
  0% { top: -100%; }
  50% { top: 100%; }
  100% { top: 100%; }
}

/* --- About Section --- */
.about {
  padding: var(--section-padding) 0;
  position: relative;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(3rem, 6vw, 6rem);
  align-items: center;
}

.about-image-wrapper {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-md);
}

.about-image-wrapper img {
  width: 100%;
  height: 500px;
  object-fit: cover;
  transition: transform 1.2s var(--ease-out-expo);
}

.about-image-wrapper:hover img {
  transform: scale(1.05);
}

.about-image-wrapper::after {
  content: '';
  position: absolute;
  inset: 0;
  border: 1px solid var(--white-10);
  border-radius: var(--radius-md);
  pointer-events: none;
}

.about-accent {
  position: absolute;
  bottom: -20px;
  right: -20px;
  width: 200px;
  height: 200px;
  border: 1px solid var(--gold-glow);
  border-radius: var(--radius-md);
  z-index: -1;
}

.about-text {
  padding: 1rem 0;
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 3rem;
  padding-top: 3rem;
  border-top: 1px solid var(--white-10);
}

.stat-number {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 3vw, 2.8rem);
  color: var(--gold);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* --- Horizontal Divider --- */
.divider {
  width: 100%;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
}

.divider-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--white-10), transparent);
}

.divider-icon {
  color: var(--gold);
  font-size: 1.2rem;
  opacity: 0.6;
}

/* --- Wines Section --- */
.wines {
  padding: var(--section-padding) 0;
  position: relative;
  overflow: hidden;
}

.wines-header {
  text-align: center;
  margin-bottom: clamp(3rem, 5vw, 5rem);
}

.wines-header .section-description {
  margin: 0 auto;
}

.wines-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.wine-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--white-05);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition-medium);
  cursor: pointer;
  group: true;
}

.wine-card:hover {
  border-color: var(--gold-glow);
  transform: translateY(-8px);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4), 0 0 40px var(--gold-glow);
}

.wine-card-image {
  position: relative;
  height: 320px;
  overflow: hidden;
  background: linear-gradient(180deg, var(--bg-tertiary) 0%, var(--bg-card) 100%);
}

.wine-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease-out-expo);
}

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

.wine-card-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  padding: 0.35rem 1rem;
  background: var(--burgundy-deep);
  color: var(--gold);
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  border-radius: 100px;
  border: 1px solid var(--burgundy);
}

.wine-card-body {
  padding: 1.8rem;
}

.wine-card-category {
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.75rem;
}

.wine-card-name {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
  transition: color var(--transition-fast);
}

.wine-card:hover .wine-card-name {
  color: var(--gold);
}

.wine-card-description {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 1.2rem;
}

.wine-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1.2rem;
  border-top: 1px solid var(--white-05);
}

.wine-card-price {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  color: var(--gold);
}

.wine-card-price small {
  font-family: var(--font-body);
  font-size: 0.7rem;
  color: var(--text-muted);
}

.wine-card-action {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--white-15);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
  color: var(--text-secondary);
}

.wine-card:hover .wine-card-action {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--text-dark);
}

/* --- Alfajores Section --- */
.alfajores {
  padding: var(--section-padding) 0;
  position: relative;
}

.alfajores-layout {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: clamp(3rem, 6vw, 6rem);
  align-items: center;
}

.alfajores-image-wrapper {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.alfajores-image-wrapper img {
  width: 100%;
  height: 550px;
  object-fit: cover;
  transition: transform 1.2s var(--ease-out-expo);
}

.alfajores-image-wrapper:hover img {
  transform: scale(1.05);
}

.alfajores-image-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(10, 10, 10, 0.6) 0%, transparent 50%);
}

.alfajores-content {
  padding: 1rem 0;
}

.alfajores-features {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  margin-top: 3rem;
}

.alfajor-feature {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
  padding: 1.5rem;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  transition: all var(--transition-fast);
}

.alfajor-feature:hover {
  background: var(--white-05);
  border-color: var(--white-10);
}

.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--burgundy-deep), var(--burgundy));
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--gold);
  font-size: 1.2rem;
}

.feature-title {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  margin-bottom: 0.4rem;
  color: var(--text-primary);
}

.feature-text {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* --- Experience / Harmonização Section --- */
.experience {
  padding: var(--section-padding) 0;
  position: relative;
}

.experience-banner {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  min-height: 550px;
  display: flex;
  align-items: center;
}

.experience-banner-bg {
  position: absolute;
  inset: 0;
}

.experience-banner-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.experience-banner-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(10, 10, 10, 0.92) 0%,
    rgba(10, 10, 10, 0.7) 50%,
    rgba(10, 10, 10, 0.4) 100%
  );
}

.experience-content {
  position: relative;
  z-index: 2;
  padding: clamp(3rem, 5vw, 5rem);
  max-width: 600px;
}

.experience-content .section-title {
  font-size: clamp(2rem, 4vw, 3.5rem);
}

.experience-details {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.experience-detail {
  padding: 1.2rem;
  background: var(--white-05);
  border-radius: var(--radius-md);
  border: 1px solid var(--white-10);
  backdrop-filter: blur(10px);
}

.experience-detail-label {
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.4rem;
}

.experience-detail-value {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  color: var(--text-primary);
}

/* --- Contact Section --- */
.contact {
  padding: var(--section-padding) 0;
  position: relative;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(3rem, 6vw, 6rem);
}

.contact-info {
  padding: 1rem 0;
}

.contact-channels {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-top: 3rem;
}

.contact-channel {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.2rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--white-05);
  transition: all var(--transition-fast);
}

.contact-channel:hover {
  border-color: var(--gold-glow);
  background: var(--white-05);
}

.channel-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: var(--burgundy-deep);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--gold);
}

.channel-label {
  font-size: 0.7rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.2rem;
}

.channel-value {
  font-size: 0.95rem;
  color: var(--text-primary);
}

/* Contact Form */
.contact-form {
  padding: 2.5rem;
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--white-05);
}

.contact-form h3 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  margin-bottom: 2rem;
  color: var(--text-primary);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.9rem 1.2rem;
  background: var(--bg-secondary);
  border: 1px solid var(--white-10);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: border-color var(--transition-fast);
  outline: none;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--gold);
}

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

.form-group select {
  appearance: none;
  cursor: pointer;
  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='%236B6560' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
}

.form-group select option {
  background: var(--bg-secondary);
  color: var(--text-primary);
}

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

.btn-submit {
  width: 100%;
  padding: 1rem 2rem;
  background: linear-gradient(135deg, var(--gold-dark), var(--gold));
  color: var(--text-dark);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-fast);
  border: none;
}

.btn-submit:hover {
  box-shadow: 0 10px 30px var(--gold-glow);
  transform: translateY(-2px);
}

/* --- Footer --- */
.footer {
  padding: 4rem 0 2rem;
  border-top: 1px solid var(--white-05);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 4rem;
}

.footer-brand {
  max-width: 300px;
}

.footer-logo {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  color: var(--gold);
  letter-spacing: 0.15em;
  margin-bottom: 1rem;
}

.footer-tagline {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.7;
}

.footer-col h4 {
  font-family: var(--font-heading);
  font-size: 1rem;
  color: var(--text-primary);
  margin-bottom: 1.5rem;
}

.footer-col a {
  display: block;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
  transition: color var(--transition-fast);
}

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

.footer-social {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
}

.footer-social a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--white-10);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
  margin-bottom: 0;
}

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

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 2rem;
  border-top: 1px solid var(--white-05);
  font-size: 0.8rem;
  color: var(--text-muted);
}

.footer-bottom-links {
  display: flex;
  gap: 2rem;
}

.footer-bottom-links a {
  color: var(--text-muted);
  transition: color var(--transition-fast);
}

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

/* --- Grain Overlay --- */
.grain {
  position: fixed;
  inset: 0;
  z-index: 9997;
  pointer-events: none;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 256px;
}

/* --- Reveal Animations --- */
.reveal {
  opacity: 0;
  transform: translateY(40px);
}

.reveal-left {
  opacity: 0;
  transform: translateX(-60px);
}

.reveal-right {
  opacity: 0;
  transform: translateX(60px);
}

.reveal-scale {
  opacity: 0;
  transform: scale(0.9);
}

/* --- Hero Scroll Experience --- */
.hero-scroll-experience {
  position: relative;
  height: 500vh;
  height: 500svh; /* svh: estável no iOS (barra do Safari não faz o layout pular) */
  background: #000;
}

.hero-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  width: 100%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000;
}

.video-container {
  position: absolute;
  inset: 0;
}

.hero-vid {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover; /* Voltou para cover para preencher toda a tela */
  object-position: center;
  opacity: 0;
}

.hero-scroll-overlay {
  position: absolute;
  inset: 0;
  background: rgba(10, 10, 10, 0.5);
  z-index: 1;
}

.hero-steps-container {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
}

.hero-step {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  max-width: 800px;
  padding: 0 2rem;
  text-align: center;
  opacity: 0;
  pointer-events: none; /* Let clicks pass through when hidden */
}

.hero-step.active-step {
  pointer-events: auto; /* Enable clicks when visible */
}

/* o step do logo é mais largo que os de texto: a palavra inteira
   precisa caber em UMA linha até em monitor grande */
#hero-step-0 {
  max-width: 1100px;
}

.hero-logo {
  position: relative;
  font-family: var(--font-heading);
  font-size: clamp(2rem, 8vw, 7rem); /* cap dimensionado p/ FORJADOS caber no container em qualquer tela */
  font-weight: 420;
  letter-spacing: 0.16em; /* Levemente reduzido para evitar transbordamento horizontal */
  white-space: nowrap; /* NUNCA quebrar o logotipo em duas linhas */
  text-transform: uppercase;
  /* NUNCA usar filter aqui: filter em ancestral de background-clip:text
     quebra o clip no Safari/WebKit (letras viram blocos de gradiente) */
  margin: 0;
  padding: 0.5em 0;
  text-indent: 0.16em; /* Acompanha o letter-spacing */
  line-height: 1.3;
  display: block;
  text-align: center;
  width: 100%;
}

/* glow dourado sem filter (safe p/ Safari) */
.hero-logo::before {
  content: '';
  position: absolute;
  inset: -35% -8%;
  background: radial-gradient(ellipse 55% 50% at center, rgba(212, 175, 55, 0.20), transparent 70%);
  pointer-events: none;
}

/* brilho de metal forjado: camada de shine clipada dentro de cada letra,
   com animation-delay em cascata (setado via JS) formando uma onda */
.hero-logo .char {
  display: inline-block;
  background:
    linear-gradient(110deg, rgba(255, 250, 230, 0) 40%, rgba(255, 248, 218, 0.95) 50%, rgba(255, 250, 230, 0) 60%) no-repeat,
    linear-gradient(180deg, #FFFFFF 0%, #F0E3C0 45%, var(--gold) 100%);
  background-size: 260% 100%, 100% 100%;
  background-position: 130% 0, 0 0;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  will-change: transform;
  animation: forge-shine 5.5s ease-in-out infinite;
}

@keyframes forge-shine {
  0% { background-position: 130% 0, 0 0; }
  34% { background-position: -30% 0, 0 0; }
  100% { background-position: -30% 0, 0 0; }
}

.hero-tagline {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.2rem;
  white-space: nowrap;
}

.hero-tagline::before,
.hero-tagline::after {
  content: '';
  width: 48px;
  height: 1px;
  flex-shrink: 0;
  background: linear-gradient(90deg, transparent, var(--gold));
  opacity: 0.7;
}

.hero-tagline::after {
  background: linear-gradient(90deg, var(--gold), transparent);
}

.hero-scroll-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.hero-step-title {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  margin-bottom: 1.5rem;
  color: var(--text-primary);
  line-height: 1.1;
}

.hero-step-title em {
  color: var(--gold);
  font-style: italic;
  background: linear-gradient(135deg, var(--gold-light), var(--gold-dark));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-step-desc {
  font-family: var(--font-body);
  font-size: clamp(1rem, 1.3vw, 1.2rem);
  color: var(--white-80);
  line-height: 1.6;
  max-width: 600px;
  margin: 0 auto;
}


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

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
}

@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    flex-direction: column;
    justify-content: center;
    background: rgba(10, 10, 10, 0.98);
    backdrop-filter: blur(30px);
    transition: right var(--transition-medium);
    gap: 2rem;
  }

  .nav-links.open {
    right: 0;
  }

  .nav-links a {
    font-size: 1rem;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .about-image-wrapper img {
    height: 350px;
  }

  .wines-grid {
    grid-template-columns: 1fr;
    max-width: 420px;
    margin: 0 auto;
  }

  .alfajores-layout {
    grid-template-columns: 1fr;
  }

  .alfajores-image-wrapper img {
    height: 350px;
  }

  .experience-details {
    grid-template-columns: 1fr;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

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

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }

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

@media (max-width: 480px) {
  .about-stats {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    text-align: center;
  }

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

  .hero-ctas .btn-primary,
  .hero-ctas .btn-secondary {
    width: 100%;
    justify-content: center;
  }

  .video-scroll-progress {
    right: 1rem;
  }

  .video-step {
    padding: 0 1.5rem;
  }

  .hero-logo {
    font-size: 11vw; /* Tamanho 100% seguro para celular sem cortar nas laterais */
    letter-spacing: 0.1em;
    text-indent: 0.1em;
    padding: 0.5em 1rem; /* Margem extra de segurança nas laterais */
  }

  .hero-tagline {
    font-size: 0.56rem;
    letter-spacing: 0.22em;
    gap: 0.8rem;
  }

  .hero-tagline::before,
  .hero-tagline::after {
    width: 22px;
    flex-shrink: 1;
  }

  /* Ajuste do botão do menu já que o logo sumiu */
  .nav-toggle {
    margin-left: auto;
  }
}
