/* ============================================
   LA BRASA MADRE - Parrilla de Autor
   Style Sheet
   ============================================ */

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

:root {
  --black: #1a1a1a;
  --black-deep: #111111;
  --charcoal: #2d2d2d;
  --charcoal-light: #3a3a3a;
  --terracotta: #8B4513;
  --terracotta-light: #A0522D;
  --terracotta-dark: #6B3410;
  --cream: #F5F0EB;
  --cream-dark: #E8E0D8;
  --warm-white: #FAF8F5;
  --text-light: #d4cfc9;
  --text-muted: #8a8580;
  --gold-subtle: #C4A76C;

  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'Inter', -apple-system, sans-serif;

  --container-width: 1200px;
  --section-padding: 120px;
  --transition: 0.3s ease;
}

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

body {
  font-family: var(--font-body);
  background-color: var(--black);
  color: var(--cream);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 24px;
}

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

ul {
  list-style: none;
}

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

/* --- Typography --- */
.section-label {
  display: block;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--terracotta-light);
  margin-bottom: 16px;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 400;
  line-height: 1.15;
  margin-bottom: 24px;
  color: var(--cream);
}

.section-description {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.7;
}

/* --- Navigation --- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 20px 0;
  transition: background-color 0.4s ease, padding 0.4s ease, box-shadow 0.4s ease;
}

.navbar.scrolled {
  background-color: rgba(17, 17, 17, 0.95);
  padding: 12px 0;
  box-shadow: 0 1px 0 rgba(139, 69, 19, 0.15);
  backdrop-filter: blur(8px);
}

.nav-container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--cream);
  letter-spacing: 0.5px;
  transition: color var(--transition);
}

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

.nav-menu {
  display: flex;
  align-items: center;
  gap: 36px;
}

.nav-link {
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 400;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text-light);
  transition: color var(--transition);
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--terracotta-light);
  transition: width var(--transition);
}

.nav-link:hover {
  color: var(--cream);
}

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

.nav-link--cta {
  background: var(--terracotta);
  color: var(--cream);
  padding: 10px 24px;
  border-radius: 2px;
  letter-spacing: 1.5px;
  transition: background var(--transition);
}

.nav-link--cta::after {
  display: none;
}

.nav-link--cta:hover {
  background: var(--terracotta-light);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 1001;
}

.hamburger-line {
  display: block;
  width: 24px;
  height: 1.5px;
  background: var(--cream);
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.nav-toggle.active .hamburger-line:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}

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

.nav-toggle.active .hamburger-line:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

/* --- Hero Section --- */
.hero {
  position: relative;
  height: 100vh;
  min-height: 700px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 30% 80%, rgba(139, 69, 19, 0.12) 0%, transparent 50%),
    radial-gradient(ellipse at 70% 20%, rgba(107, 52, 16, 0.08) 0%, transparent 40%),
    linear-gradient(175deg, #0d0d0d 0%, #1a1a1a 40%, #1f1510 100%);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 2px,
      rgba(0, 0, 0, 0.03) 2px,
      rgba(0, 0, 0, 0.03) 4px
    );
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 0 24px;
}

.hero-subtitle {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 5px;
  text-transform: uppercase;
  color: var(--terracotta-light);
  margin-bottom: 24px;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 10vw, 8rem);
  font-weight: 400;
  line-height: 0.95;
  color: var(--cream);
  margin-bottom: 32px;
  letter-spacing: -1px;
}

.hero-divider {
  width: 60px;
  height: 1px;
  background: var(--terracotta);
  margin: 0 auto 32px;
}

.hero-tagline {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: var(--text-light);
  margin-bottom: 48px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.hero-btn {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--cream);
  border: 1px solid rgba(139, 69, 19, 0.5);
  padding: 16px 40px;
  transition: all var(--transition);
}

.hero-btn:hover {
  background: var(--terracotta);
  border-color: var(--terracotta);
}

.hero-scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  z-index: 2;
}

.hero-scroll-indicator span {
  font-size: 0.65rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--text-muted);
}

.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--terracotta), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; transform: scaleY(0.6); }
  50% { opacity: 1; transform: scaleY(1); }
}

/* --- Section Base --- */
.section {
  padding: var(--section-padding) 0;
}

.section-header {
  text-align: center;
  margin-bottom: 64px;
}

/* --- About Section --- */
.section--about {
  background: var(--black);
}

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

.about-image {
  position: relative;
}

.about-image::before {
  content: '';
  position: absolute;
  top: -16px;
  left: -16px;
  right: 16px;
  bottom: 16px;
  border: 1px solid rgba(139, 69, 19, 0.2);
  pointer-events: none;
}

.about-text p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.8;
  margin-bottom: 20px;
}

.about-stats {
  display: flex;
  gap: 48px;
  margin-top: 40px;
  padding-top: 40px;
  border-top: 1px solid var(--charcoal);
}

.stat-number {
  display: block;
  font-family: var(--font-display);
  font-size: 2.5rem;
  color: var(--cream);
  line-height: 1;
  margin-bottom: 8px;
}

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

/* --- Placeholder Images --- */
.placeholder-img {
  width: 100%;
  aspect-ratio: 4/3;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.placeholder-img span {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.1rem;
  color: rgba(245, 240, 235, 0.5);
  position: relative;
  z-index: 2;
}

.placeholder-img--warm {
  background:
    linear-gradient(135deg, #3a2518 0%, #2a1a10 40%, #1f150d 100%);
}

.placeholder-img--fire {
  background:
    linear-gradient(160deg, #4a2a15 0%, #2d1a0e 50%, #1a0f08 100%);
  aspect-ratio: 3/4;
}

.placeholder-img--meat {
  background:
    linear-gradient(145deg, #3d2215 0%, #281510 60%, #1a0d08 100%);
}

.placeholder-img--wine {
  background:
    linear-gradient(150deg, #2a1525 0%, #1f1018 50%, #150c12 100%);
}

.placeholder-img--interior {
  background:
    linear-gradient(140deg, #2d2520 0%, #1f1a15 50%, #141110 100%);
  aspect-ratio: 16/9;
}

.placeholder-img--pasta {
  background:
    linear-gradient(155deg, #3a3020 0%, #2a2215 50%, #1a1810 100%);
}

.placeholder-img--detail {
  background:
    linear-gradient(135deg, #4a2010 0%, #301508 50%, #1a0d05 100%);
}

/* --- Menu Section --- */
.section--menu {
  background: var(--black-deep);
}

.menu-categories {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 56px;
  flex-wrap: wrap;
}

.menu-tab {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-muted);
  background: none;
  border: 1px solid var(--charcoal);
  padding: 12px 28px;
  cursor: pointer;
  transition: all var(--transition);
}

.menu-tab:hover {
  color: var(--cream);
  border-color: var(--charcoal-light);
}

.menu-tab.active {
  color: var(--cream);
  background: var(--terracotta-dark);
  border-color: var(--terracotta-dark);
}

.menu-panel {
  display: none;
}

.menu-panel.active {
  display: block;
  animation: fadeIn 0.4s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

.menu-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
}

.menu-item {
  padding: 32px;
  background: rgba(45, 45, 45, 0.3);
  transition: background var(--transition);
}

.menu-item:hover {
  background: rgba(45, 45, 45, 0.6);
}

.menu-item-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 10px;
  gap: 16px;
}

.menu-item-name {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 400;
  color: var(--cream);
}

.menu-item-price {
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--gold-subtle);
  white-space: nowrap;
}

.menu-item-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* --- Gallery Section --- */
.section--gallery {
  background: var(--black);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 260px;
  gap: 8px;
}

.gallery-item {
  overflow: hidden;
  position: relative;
}

.gallery-item .placeholder-img {
  aspect-ratio: unset;
  height: 100%;
  transition: transform 0.6s ease;
}

.gallery-item:hover .placeholder-img {
  transform: scale(1.05);
}

.gallery-item--tall {
  grid-row: span 2;
}

.gallery-item--wide {
  grid-column: span 2;
}

/* --- Location Section --- */
.section--location {
  background: var(--charcoal);
  background: linear-gradient(180deg, var(--black-deep) 0%, var(--charcoal) 100%);
}

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

.location-details {
  display: flex;
  flex-direction: column;
  gap: 36px;
  margin-top: 12px;
}

.location-item h3 {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--terracotta-light);
  margin-bottom: 10px;
}

.location-item p {
  font-size: 0.95rem;
  color: var(--text-light);
  line-height: 1.8;
}

.map-placeholder {
  width: 100%;
  aspect-ratio: 4/3;
  background:
    radial-gradient(circle at 50% 50%, rgba(139, 69, 19, 0.08) 0%, transparent 60%),
    linear-gradient(135deg, #252520 0%, #1f1f1a 50%, #1a1a16 100%);
  border: 1px solid var(--charcoal-light);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  position: relative;
}

.map-pin {
  width: 12px;
  height: 12px;
  background: var(--terracotta);
  border-radius: 50%;
  position: relative;
}

.map-pin::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 28px;
  height: 28px;
  border: 1px solid rgba(139, 69, 19, 0.3);
  border-radius: 50%;
  animation: pingMap 2s ease-out infinite;
}

@keyframes pingMap {
  0% { transform: translate(-50%, -50%) scale(1); opacity: 0.6; }
  100% { transform: translate(-50%, -50%) scale(2); opacity: 0; }
}

.map-placeholder span {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 0.95rem;
  color: var(--text-muted);
}

/* --- Reservation Section --- */
.section--reservations {
  background: var(--black);
}

.reservation-wrapper {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 80px;
  align-items: start;
}

.reservation-text p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.7;
  margin-top: 8px;
}

.reservation-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

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

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

.form-group label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-muted);
}

.form-group input,
.form-group select,
.form-group textarea {
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--cream);
  background: var(--charcoal);
  border: 1px solid var(--charcoal-light);
  padding: 14px 16px;
  transition: border-color var(--transition);
  outline: none;
  -webkit-appearance: none;
  border-radius: 0;
}

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

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

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

.form-group select {
  cursor: pointer;
}

.form-group select option {
  background: var(--charcoal);
  color: var(--cream);
}

.btn-submit {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--cream);
  background: var(--terracotta);
  border: none;
  padding: 18px 40px;
  cursor: pointer;
  transition: background var(--transition);
  margin-top: 8px;
}

.btn-submit:hover {
  background: var(--terracotta-light);
}

/* --- Footer --- */
.footer {
  background: var(--black-deep);
  padding: 80px 0 40px;
  border-top: 1px solid var(--charcoal);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 64px;
  margin-bottom: 64px;
}

.footer-logo {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--cream);
  margin-bottom: 16px;
}

.footer-brand p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 300px;
}

.footer-links h4,
.footer-contact h4 {
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--terracotta-light);
  margin-bottom: 20px;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  font-size: 0.88rem;
  color: var(--text-muted);
  transition: color var(--transition);
}

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

.footer-contact p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 8px;
}

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

.footer-credit a {
  color: var(--terracotta-light);
  transition: color var(--transition);
}

.footer-credit a:hover {
  color: var(--cream);
}

/* --- Scroll Reveal --- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

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

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 1024px) {
  :root {
    --section-padding: 80px;
  }

  .about-grid {
    gap: 48px;
  }

  .location-grid {
    gap: 48px;
  }

  .reservation-wrapper {
    gap: 48px;
  }
}

@media (max-width: 768px) {
  :root {
    --section-padding: 64px;
  }

  /* Mobile Nav */
  .nav-toggle {
    display: flex;
  }

  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 360px;
    height: 100vh;
    background: var(--black-deep);
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    padding: 60px 40px;
    gap: 28px;
    transition: right 0.4s ease;
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.5);
  }

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

  .nav-link {
    font-size: 0.95rem;
    letter-spacing: 2px;
  }

  .nav-link--cta {
    margin-top: 12px;
  }

  /* Hero */
  .hero {
    min-height: 600px;
  }

  .hero-scroll-indicator {
    display: none;
  }

  /* About */
  .about-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .about-image {
    order: -1;
  }

  .about-image::before {
    display: none;
  }

  .about-stats {
    gap: 32px;
  }

  /* Menu */
  .menu-grid {
    grid-template-columns: 1fr;
  }

  .menu-categories {
    gap: 6px;
  }

  .menu-tab {
    padding: 10px 18px;
    font-size: 0.7rem;
  }

  /* Gallery */
  .gallery-grid {
    grid-template-columns: 1fr 1fr;
    grid-auto-rows: 200px;
  }

  .gallery-item--tall {
    grid-row: span 1;
  }

  .gallery-item--wide {
    grid-column: span 1;
  }

  /* Location */
  .location-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  /* Reservations */
  .reservation-wrapper {
    grid-template-columns: 1fr;
    gap: 40px;
  }

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

  /* Footer */
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }
}

@media (max-width: 480px) {
  :root {
    --section-padding: 48px;
  }

  .hero-title {
    font-size: clamp(2.8rem, 14vw, 4.5rem);
  }

  .about-stats {
    flex-direction: column;
    gap: 24px;
  }

  .menu-item {
    padding: 24px 20px;
  }

  .menu-item-header {
    flex-direction: column;
    gap: 4px;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
    grid-auto-rows: 220px;
  }
}
