/* ──────────────────────────────────────────
   PALETERÍA ARTESANAL — Styles
   Palette: forest green + off-white
   Fonts: Cormorant Garamond (serif, thin) + Inter (sans, 300)
────────────────────────────────────────── */

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

:root {
  --green-900: #0f2e1f;
  --green-800: #1a4a30;
  --green-700: #236b45;
  --green-600: #2d8a5a;
  --green-500: #3aa870;
  --green-100: #d1f2e0;
  --green-50:  #eaf8f0;

  --off-white:  #f7f5f0;
  --cream:      #eeebe4;
  --warm-gray:  #b8b3a8;
  --text-dark:  #1a1a18;
  --text-muted: #5c5a55;

  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --font-sans:  'Inter', system-ui, sans-serif;

  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;

  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
  font-family: var(--font-sans);
  font-weight: 300;
  color: var(--text-dark);
  background: var(--off-white);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; }
ul { list-style: none; }

/* ── Utility ── */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 120px 0;
}

.section-eyebrow {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--green-600);
  margin-bottom: 16px;
}

.section-heading {
  font-family: var(--font-serif);
  font-weight: 300;
  font-size: clamp(2rem, 5vw, 3.4rem);
  line-height: 1.15;
  color: var(--green-900);
  margin-bottom: 24px;
  letter-spacing: -0.01em;
}

.section-sub {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 520px;
  line-height: 1.75;
  margin-bottom: 56px;
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 0.875rem;
  letter-spacing: 0.04em;
  padding: 14px 32px;
  border-radius: 100px;
  transition: var(--transition);
}

.btn-primary {
  background: var(--green-800);
  color: var(--off-white);
}
.btn-primary:hover {
  background: var(--green-700);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(26, 74, 48, 0.25);
}

.btn-ghost {
  background: transparent;
  color: var(--green-800);
  border: 1px solid var(--green-700);
}
.btn-ghost:hover {
  background: var(--green-50);
  transform: translateY(-2px);
}

.btn-full { width: 100%; justify-content: center; }

/* ── Reveal animation ── */
.reveal {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}
.reveal[data-reveal-delay="1"] { transition-delay: 0.1s; }
.reveal[data-reveal-delay="2"] { transition-delay: 0.2s; }
.reveal[data-reveal-delay="3"] { transition-delay: 0.3s; }
.reveal[data-reveal-delay="4"] { transition-delay: 0.4s; }

@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(32px);
  }
  .reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ── Navigation ── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(247, 245, 240, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(26, 74, 48, 0.08);
  transition: var(--transition);
}
.nav.scrolled {
  background: rgba(247, 245, 240, 0.95);
  box-shadow: 0 1px 0 rgba(26, 74, 48, 0.06);
}

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

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 1.15rem;
  color: var(--green-900);
  letter-spacing: -0.01em;
}
.nav-logo:hover { color: var(--green-700); }

.nav-menu {
  display: flex;
  align-items: center;
  gap: 36px;
}
.nav-menu a {
  font-size: 0.8125rem;
  font-weight: 400;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  transition: color var(--transition);
  position: relative;
}
.nav-menu a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--green-700);
  transition: width var(--transition);
}
.nav-menu a:hover { color: var(--green-800); }
.nav-menu a:hover::after { width: 100%; }

.nav-cta {
  background: var(--green-800);
  color: var(--off-white) !important;
  padding: 10px 24px;
  border-radius: 100px;
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  transition: var(--transition);
}
.nav-cta::after { display: none; }
.nav-cta:hover {
  background: var(--green-700);
  color: var(--off-white) !important;
  transform: translateY(-1px);
}

/* Mobile toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 28px;
  padding: 4px 0;
}
.nav-toggle-line {
  display: block;
  width: 100%;
  height: 1.5px;
  background: var(--green-900);
  border-radius: 2px;
  transition: var(--transition);
  transform-origin: center;
}
.nav-toggle[aria-expanded="true"] .nav-toggle-line:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] .nav-toggle-line:nth-child(2) {
  opacity: 0;
}
.nav-toggle[aria-expanded="true"] .nav-toggle-line:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

/* ── Hero ── */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 120px 0 80px;
  background: var(--off-white);
  position: relative;
  overflow: hidden;
}

.hero-grid {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero-eyebrow {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--green-600);
  margin-bottom: 24px;
}

.hero-headline {
  font-family: var(--font-serif);
  font-weight: 300;
  font-size: clamp(2.6rem, 6vw, 4.5rem);
  line-height: 1.08;
  color: var(--green-900);
  letter-spacing: -0.02em;
  margin-bottom: 32px;
}

.hero-em {
  font-style: italic;
  color: var(--green-700);
  font-weight: 300;
}

.hero-sub {
  font-size: 1.0625rem;
  line-height: 1.8;
  color: var(--text-muted);
  max-width: 440px;
  margin-bottom: 40px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 64px;
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 24px;
}
.hero-stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.hero-stat-num {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 1.75rem;
  color: var(--green-800);
  line-height: 1;
}
.hero-stat-label {
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.hero-stat-divider {
  width: 1px;
  height: 40px;
  background: var(--warm-gray);
  opacity: 0.4;
}

/* Hero visual — asymmetric */
.hero-visual {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  position: relative;
}
.hero-img-wrap {
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
}
.hero-img-top img {
  width: 100%;
  height: 680px;
  object-fit: cover;
}
.hero-img-bottom {
  margin-top: -40px;
}
.hero-img-bottom img {
  width: 100%;
  height: 340px;
  object-fit: cover;
}
.hero-img-caption {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 0.9375rem;
  color: var(--text-muted);
  margin-top: 10px;
  padding-left: 4px;
}

.hero-line {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}
.hero-line::after {
  content: '';
  display: block;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--warm-gray), transparent);
  opacity: 0.3;
}

/* ── Section divider ── */
.section-divider {
  padding: 0 24px;
  color: var(--warm-gray);
  opacity: 0.5;
}
.section-divider svg { width: 100%; max-width: 1200px; margin: 0 auto; display: block; }

/* ── About ── */
.about {
  background: var(--off-white);
}
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.about-image img {
  width: 100%;
  height: 750px;
  object-fit: cover;
  border-radius: var(--radius-lg);
}
.about-content { max-width: 480px; }
.about-content p {
  font-size: 1rem;
  line-height: 1.85;
  color: var(--text-muted);
  margin-bottom: 20px;
}
.about-signature {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid rgba(26, 74, 48, 0.1);
}
.about-signature-img {
  border-radius: var(--radius-sm);
  opacity: 0.7;
}
.about-signature-text {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1rem;
  color: var(--text-muted);
}

/* ── Menu ── */
.menu {
  background: var(--green-900);
  color: var(--off-white);
}
.menu .section-eyebrow { color: var(--green-500); }
.menu .section-heading { color: var(--off-white); }
.menu .section-sub { color: rgba(247, 245, 240, 0.6); }

.menu-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  margin-bottom: 56px;
}

.menu-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: var(--transition);
}
.menu-card:hover {
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.3);
}

.menu-card-img img {
  width: 100%;
  height: 360px;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}
.menu-card:hover .menu-card-img img {
  transform: scale(1.04);
}
.menu-card-img { overflow: hidden; }

.menu-card-body {
  padding: 32px;
}
.menu-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}
.menu-card-title {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 1.5rem;
  color: var(--off-white);
  letter-spacing: -0.01em;
}
.menu-card-tag {
  font-size: 0.6875rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--green-500);
  border: 1px solid var(--green-700);
  padding: 4px 10px;
  border-radius: 100px;
}
.menu-card-desc {
  font-size: 0.9375rem;
  line-height: 1.75;
  color: rgba(247, 245, 240, 0.6);
}

.menu-note {
  text-align: center;
  font-size: 0.875rem;
  color: rgba(247, 245, 240, 0.4);
  font-style: italic;
  font-family: var(--font-serif);
}

/* ── Process ── */
.process {
  background: var(--cream);
}
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  margin-bottom: 72px;
}

.process-step { position: relative; }
.process-step-num {
  font-family: var(--font-serif);
  font-weight: 300;
  font-size: 3rem;
  color: var(--green-200);
  line-height: 1;
  margin-bottom: 16px;
  display: block;
}
@media (min-width: 768px) {
  .process-step-num { color: var(--green-100); }
}
.process-step-title {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 1.375rem;
  color: var(--green-900);
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}
.process-step-desc {
  font-size: 0.9375rem;
  line-height: 1.75;
  color: var(--text-muted);
}

.process-visual {
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.process-img {
  width: 100%;
  height: 500px;
  object-fit: cover;
  border-radius: var(--radius-lg);
}

/* ── Visit ── */
.visit {
  background: var(--off-white);
}
.visit-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.visit-detail {
  display: flex;
  gap: 16px;
  margin-bottom: 32px;
}
.visit-icon {
  flex-shrink: 0;
  margin-top: 4px;
  color: var(--green-700);
}
.visit-detail strong {
  display: block;
  font-weight: 500;
  font-size: 0.8125rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--green-900);
  margin-bottom: 6px;
}
.visit-detail span,
.visit-detail a {
  font-size: 0.9375rem;
  line-height: 1.7;
  color: var(--text-muted);
}
.visit-detail a:hover { color: var(--green-700); text-decoration: underline; }

.visit-map-link {
  display: block;
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.visit-map-img {
  width: 100%;
  height: 500px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}
.visit-map-link:hover .visit-map-img {
  transform: scale(1.02);
}
.visit-map-overlay {
  position: absolute;
  bottom: 24px;
  left: 24px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--green-900);
  color: var(--off-white);
  font-size: 0.8125rem;
  font-weight: 400;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 12px 20px;
  border-radius: 100px;
  transition: var(--transition);
}
.visit-map-link:hover .visit-map-overlay {
  background: var(--green-700);
}

/* ── Contact ── */
.contact {
  background: var(--green-900);
  color: var(--off-white);
}
.contact .section-eyebrow { color: var(--green-500); }
.contact .section-heading { color: var(--off-white); }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}
.contact-text p {
  font-size: 1rem;
  line-height: 1.8;
  color: rgba(247, 245, 240, 0.6);
  margin-bottom: 40px;
}

.contact-direct {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.contact-direct-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 1rem;
  color: var(--off-white);
  border-bottom: 1px solid rgba(247, 245, 240, 0.15);
  padding-bottom: 8px;
  transition: var(--transition);
  width: fit-content;
}
.contact-direct-link:hover {
  color: var(--green-400);
  border-color: var(--green-500);
  transform: translateX(4px);
}

/* Form */
.contact-form-wrap {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  padding: 40px;
}

.form-group { margin-bottom: 24px; }

.form-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(247, 245, 240, 0.5);
  margin-bottom: 8px;
}

.form-input {
  width: 100%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  font-weight: 300;
  color: var(--off-white);
  transition: var(--transition);
  outline: none;
  appearance: none;
}
.form-input::placeholder { color: rgba(247, 245, 240, 0.3); }
.form-input:focus {
  border-color: var(--green-500);
  background: rgba(255, 255, 255, 0.08);
}

.form-select {
  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='%23d1f2e0' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
}
.form-select option { background: var(--green-900); color: var(--off-white); }

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

.form-success {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  font-size: 0.875rem;
  color: var(--green-500);
}

/* ── Footer ── */
.footer {
  background: var(--green-900);
  color: var(--off-white);
  padding: 80px 0 40px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

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

.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 1.15rem;
  color: var(--off-white);
  margin-bottom: 16px;
}
.footer-logo:hover { color: var(--green-400); }

.footer-tagline {
  font-size: 0.9375rem;
  color: rgba(247, 245, 240, 0.5);
  line-height: 1.7;
}

.footer-nav strong,
.footer-contact strong {
  display: block;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--green-500);
  margin-bottom: 20px;
}

.footer-nav ul,
.footer-contact ul {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.footer-nav a,
.footer-contact a {
  font-size: 0.9375rem;
  color: rgba(247, 245, 240, 0.6);
  transition: color var(--transition);
}
.footer-nav a:hover,
.footer-contact a:hover { color: var(--off-white); }

.footer-bottom {
  padding-top: 40px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-bottom p {
  font-size: 0.8125rem;
  color: rgba(247, 245, 240, 0.3);
}

/* ── Responsive ── */
@media (max-width: 1024px) {
  .hero-grid { gap: 40px; }
  .about-grid { gap: 48px; }
  .visit-grid { gap: 48px; }
  .contact-grid { gap: 48px; }
  .process-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .section { padding: 80px 0; }

  /* Nav mobile */
  .nav-toggle { display: flex; }
  .nav-menu {
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(247, 245, 240, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    flex-direction: column;
    justify-content: center;
    gap: 32px;
    padding: 40px;
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  }
  .nav-menu.open { transform: translateX(0); }
  .nav-menu a {
    font-size: 1.125rem;
    color: var(--green-900);
  }
  .nav-cta {
    background: var(--green-800);
    color: var(--off-white) !important;
    padding: 14px 32px;
  }

  /* Hero mobile */
  .hero { padding: 100px 0 60px; min-height: auto; }
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .hero-headline { font-size: clamp(2.2rem, 8vw, 3rem); }
  .hero-visual { order: -1; }
  .hero-img-top img { height: 400px; }
  .hero-img-bottom { margin-top: 0; }
  .hero-img-bottom img { height: 260px; }
  .hero-stats { flex-wrap: wrap; gap: 20px; }
  .hero-stat-divider { display: none; }

  /* About mobile */
  .about-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .about-image img { height: 400px; }
  .about-content { max-width: 100%; }

  /* Menu mobile */
  .menu-grid { grid-template-columns: 1fr; }
  .menu-card-img img { height: 260px; }

  /* Process mobile */
  .process-grid { grid-template-columns: 1fr; gap: 32px; }
  .process-img { height: 300px; }

  /* Visit mobile */
  .visit-grid { grid-template-columns: 1fr; gap: 48px; }
  .visit-map-img { height: 320px; }

  /* Contact mobile */
  .contact-grid { grid-template-columns: 1fr; gap: 48px; }
  .contact-form-wrap { padding: 24px; }

  /* Footer mobile */
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .footer-bottom { flex-direction: column; }
}

@media (max-width: 480px) {
  .container { padding: 0 20px; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .menu-card-body { padding: 24px; }
}
