/* ==========================================================
   TEMA: VINEYARD — iCarta
   Inspirado en The French Laundry / Elegancia Rural
   ========================================================== */

@import url('https://fonts.googleapis.com/css2?family=Crimson+Pro:ital,wght@0,300;0,400;0,600;1,400&family=Nunito+Sans:wght@300;400;600&display=swap');

:root {
  /* CSS Variables for Custom Themes */
  --theme-bg: #F5F0E6;
  --theme-secondary: #3C4E3D;
  --theme-primary: #722F37;


  --color-black: #2A2A2A;
  --color-surface: var(--theme-bg);
  --color-card: #FFFFFF;
  --color-accent: #C8A96E;
  --color-accent-dark: #a88a53;
  --color-primary: var(--theme-secondary);
  --color-secondary: var(--theme-primary);
  --color-text: #4A4A4A;
  --color-text-muted: #888888;
  --color-border: rgba(60, 78, 61, 0.15);
  --font-display: 'Crimson Pro', Georgia, serif;
  --font-body: 'Nunito Sans', system-ui, -apple-system, sans-serif;

  /* Sticky Menu Colors */
  --sticky-bg: var(--theme-bg);
  --sticky-text: var(--color-text);
  --sticky-main-text: var(--color-primary);
  --sticky-sub-text: var(--color-text-muted);
}

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

html, body {
  background-color: var(--color-surface);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  scroll-behavior: smooth;
}

/* ---- SCROLLBAR ---- */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--color-surface); }
::-webkit-scrollbar-thumb { background: var(--color-primary); border-radius: 3px; }

/* ---- NAVBAR ---- */
.vineyard-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(245, 240, 230, 0.95);
  border-bottom: 1px solid var(--color-border);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.vineyard-nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 75px;
}

.vineyard-logo {
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--color-primary);
  text-decoration: none;
  font-weight: 600;
  display: flex; align-items: center;
}

.vineyard-nav-links {
  display: flex;
  list-style: none;
  gap: 2.5rem;
  height: 100%;
}

.vineyard-nav-links li {
  height: 100%;
}

.vineyard-nav-links a {
  color: var(--color-text);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 400;
  text-transform: capitalize;
  transition: color 0.3s ease;
  display: flex;
  align-items: center;
  height: 100%;
  font-family: var(--font-display);
}

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

.vineyard-hamburger {
  display: none;
  cursor: pointer;
  width: 24px;
  height: 18px;
  position: relative;
  z-index: 1001;
}

.vineyard-hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background-color: var(--color-primary);
  position: absolute;
  transition: all 0.3s ease;
  border-radius: 1px;
}

.vineyard-hamburger span:nth-child(1) { top: 0; }
.vineyard-hamburger span:nth-child(2) { top: 8px; }
.vineyard-hamburger span:nth-child(3) { top: 16px; }

.vineyard-hamburger.open span:nth-child(1) { transform: rotate(45deg); top: 8px; }
.vineyard-hamburger.open span:nth-child(2) { opacity: 0; }
.vineyard-hamburger.open span:nth-child(3) { transform: rotate(-45deg); top: 8px; }

/* ---- HERO ---- */
.vineyard-hero {
  position: relative;
  height: 70vh;
  min-height: 550px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 2rem;
  overflow: hidden;
  margin-top: 75px;
  background-color: var(--color-primary);
}

.vineyard-hero-bg {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.7;
}

.vineyard-hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(60,78,61,0.8) 0%, rgba(60,78,61,0.4) 100%);
}

.vineyard-hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  background: rgba(245,240,230,0.95);
  padding: 3rem 4rem;
  border-radius: 8px;
  box-shadow: 0 15px 30px rgba(0,0,0,0.1);
  border: 1px solid var(--color-accent);
}

.vineyard-hero-eyebrow {
  display: block;
  font-family: var(--font-body);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  color: var(--color-secondary);
  margin-bottom: 1.5rem;
}

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

.vineyard-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 1.5rem 0;
}

.vineyard-divider-symbol {
  color: var(--color-accent);
  font-size: 1rem;
}

.vineyard-divider::before,
.vineyard-divider::after {
  content: '';
  height: 1px;
  width: 50px;
  background-color: var(--color-accent);
  margin: 0 1rem;
}

.vineyard-hero-subtitle {
  font-size: 1.1rem;
  color: var(--color-text);
  font-style: italic;
  max-width: 600px;
  margin: 0 auto;
}

/* ---- LAYOUT & SECTIONS ---- */
.vineyard-section {
  max-width: 1100px;
  margin: 0 auto;
  padding: 6rem 2rem;
}

.vineyard-section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.vineyard-section-label {
  display: block;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--color-secondary);
  margin-bottom: 0.5rem;
}

.vineyard-section-title {
  font-family: var(--font-display);
  font-size: 3rem;
  color: var(--color-primary);
  font-weight: 400;
}

.vineyard-section-subtitle {
  color: var(--color-text-muted);
  font-size: 1.1rem;
  max-width: 700px;
  margin: 1rem auto 0;
  font-style: italic;
}

/* ---- GRID FEATURES (RECOMENDADOS) ---- */
.vineyard-features-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 3rem;
}

.vineyard-feature-card {
  text-align: center;
  background: var(--color-card);
  padding: 2.5rem;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.03);
  transition: all 0.3s ease;
  border: 1px solid var(--color-border);
}

.vineyard-feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0,0,0,0.08);
}

.vineyard-feature-img-wrapper {
  width: 100%;
  aspect-ratio: 4/3;
  overflow: hidden;
  margin-bottom: 1.5rem;
  border-radius: 4px;
}

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

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

.vineyard-feature-name {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--color-primary);
  margin-bottom: 0.5rem;
}

.vineyard-feature-desc {
  font-size: 0.95rem;
  color: var(--color-text-muted);
  margin-bottom: 1.5rem;
}

.vineyard-feature-price {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.2rem;
  color: var(--color-secondary);
  margin-top: auto;
  align-self: center;
}

/* ---- SPECIALS ---- */
.vineyard-specials-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.vineyard-specials-list {
  list-style: none;
  background: var(--color-card);
  padding: 3rem;
  border-radius: 8px;
  border: 1px solid var(--color-border);
}

.vineyard-special-item {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 1.5rem 0;
  border-bottom: 1px dashed var(--color-border);
}

.vineyard-special-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.vineyard-special-name {
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--color-primary);
}

.vineyard-special-price {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.2rem;
  color: var(--color-secondary);
}

/* ---- CARTA MENUS ---- */
.vineyard-carta-section {
  padding-bottom: 4rem;
  margin-bottom: 4rem;
  position: relative;
}

.vineyard-carta-section::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: repeating-linear-gradient(to right, var(--color-border) 0, var(--color-border) 10px, transparent 10px, transparent 20px);
}

.vineyard-carta-section:last-child::after {
  display: none;
}

.vineyard-carta-items {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem 5rem;
}

.vineyard-menu-item {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 2rem;
}

.vineyard-menu-item-info {
  padding-right: 1.5rem;
}

.vineyard-menu-item-info h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--color-primary);
  font-weight: 400;
  margin-bottom: 0.25rem;
}

.vineyard-menu-item-info p {
  font-size: 0.95rem;
  color: var(--color-text-muted);
}

.vineyard-menu-item-price {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.15rem;
  color: var(--color-secondary);
}

/* ---- FOOTER ---- */
.vineyard-footer {
  background: var(--color-primary);
  color: var(--color-surface);
  padding: 6rem 2rem 2rem;
}

.vineyard-footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1.5fr;
  gap: 4rem;
  margin-bottom: 4rem;
}

.vineyard-footer-info-cards {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.vineyard-footer-card h4 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--color-accent);
  margin-bottom: 0.5rem;
}

.vineyard-footer-card-content {
  color: rgba(245, 240, 230, 0.8);
  font-size: 0.95rem;
}

.vineyard-footer-title {
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--color-surface);
  margin-bottom: 1.5rem;
}

.vineyard-footer-links {
  list-style: none;
}

.vineyard-footer-links li {
  margin-bottom: 0.75rem;
  color: rgba(245, 240, 230, 0.8);
  font-size: 0.85rem;
  white-space: nowrap;
}

.vineyard-footer-links a:hover {
  color: var(--color-accent) !important;
}

.vineyard-footer-bottom {
  max-width: 1100px;
  margin: 0 auto;
  padding-top: 2rem;
  border-top: 1px solid rgba(245, 240, 230, 0.2);
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: rgba(245, 240, 230, 0.6);
  font-size: 0.85rem;
}

.vineyard-social-icons {
  list-style: none;
  display: flex;
  gap: 1.5rem;
}

.vineyard-social-icons a {
  color: rgba(245, 240, 230, 0.8);
  font-size: 1.2rem;
  transition: color 0.3s;
}

.vineyard-social-icons a:hover {
  color: var(--color-accent);
}

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

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

/* ---- RESPONSIVE ---- */
@media (max-width: 992px) {
  .vineyard-specials-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  
  .vineyard-footer-inner {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .vineyard-hamburger { display: block; }

  .vineyard-hero {
    min-height: calc(100vh - 70px);
  }
  
  .vineyard-hero-title { font-size: 2.2rem; }
  
  .vineyard-hero-content {
    padding: 2rem 1.5rem;
    width: 90%;
  }

  .vineyard-features-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .vineyard-carta-items {
    grid-template-columns: 1fr;
    gap: 0;
  }
  
  .vineyard-footer-inner {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  
  .vineyard-footer-bottom {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
}


/* FLEX FIX FOR CARDS */
.vineyard-feature-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}
.vineyard-feature-price {
  margin-top: auto;
  align-self: center;
}


/* SCROLL MARGIN FIX FOR FIXED NAVBAR */
section[id],
div[id^="carta-"] {
  scroll-margin-top: 120px;
}


