/* ─── Fonts ─────────────────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,600;0,700;1,400;1,600&family=DM+Mono:wght@300;400&display=swap');

/* ─── Variables ─────────────────────────────────────────────────── */
:root {
  --sand-100: #faf6ee;
  --sand-200: #f2e8d5;
  --sand-300: #e4d4bc;
  --sand-400: #c9a87c;
  --sand-500: #b8916a;
  --terracotta: #c0512a;
  --terracotta-dark: #9a3e1f;
  --espresso: #2c1810;
  --espresso-mid: #4a2c1e;
  --amber: #e8a84b;
  --amber-light: #f5c97a;
  --cream: #fff9f0;
  --white: #ffffff;
}

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

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

body {
  font-family: 'DM Mono', monospace;
  background: var(--sand-100);
  color: var(--espresso);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--amber); color: var(--espresso); }

::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--sand-200); }
::-webkit-scrollbar-thumb { background: var(--sand-400); border-radius: 4px; }

/* ─── Typography ─────────────────────────────────────────────────── */
h1, h2, h3, h4 {
  font-family: 'Cormorant Garamond', serif;
  line-height: 1.15;
}

h1 { font-size: clamp(2.6rem, 7vw, 5.5rem); font-weight: 700; }
h2 { font-size: clamp(1.8rem, 4vw, 3rem); font-weight: 600; }
h3 { font-size: clamp(1.1rem, 2vw, 1.4rem); font-weight: 600; }

p { font-size: 0.95rem; color: var(--espresso-mid); }

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

/* ─── Layout Shell ─────────────────────────────────────────────────── */
.site-wrapper { overflow-x: hidden; }

/* ─── Nav ─────────────────────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 2rem;
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

.nav.scrolled {
  background: rgba(250, 246, 238, 0.92);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 20px rgba(44, 24, 16, 0.08);
}

.nav-logo {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--terracotta);
  letter-spacing: -0.02em;
}

.nav-logo span {
  color: var(--amber);
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--espresso-mid);
  transition: color 0.2s;
  font-weight: 400;
}

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

.nav-cta {
  background: var(--terracotta);
  color: var(--cream) !important;
  padding: 0.55rem 1.4rem;
  border-radius: 2px;
  font-size: 0.75rem !important;
  letter-spacing: 0.06em;
  transition: background 0.2s !important;
}

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

.mobile-toggle { display: none; background: none; border: none; cursor: pointer; padding: 4px; }

/* ─── Hero ───────────────────────────────────────────────────────── */
.hero {
  min-height: 100svh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  padding: 0 clamp(1.5rem, 5vw, 5rem);
  padding-top: 80px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 60% at 80% 40%, rgba(232, 168, 75, 0.18) 0%, transparent 70%),
    radial-gradient(ellipse 50% 50% at 20% 80%, rgba(192, 81, 42, 0.08) 0%, transparent 60%);
  pointer-events: none;
}

/* Desert SVG illustration */
.hero-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.desert-art {
  width: 100%;
  max-width: 520px;
  height: auto;
  filter: drop-shadow(0 20px 60px rgba(192, 81, 42, 0.25));
}

.hero-content {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  position: relative;
  z-index: 1;
}

.hero-eyebrow {
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--amber);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.hero-eyebrow::before {
  content: '';
  display: inline-block;
  width: 32px;
  height: 1px;
  background: var(--amber);
}

.hero h1 {
  color: var(--espresso);
}

.hero h1 em {
  font-style: italic;
  color: var(--terracotta);
}

.hero-tagline {
  font-size: 1.05rem;
  color: var(--espresso-mid);
  max-width: 420px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 0.5rem;
}

/* ─── Buttons ──────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 2rem;
  font-family: 'DM Mono', monospace;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  transition: all 0.22s ease;
  text-decoration: none;
}

.btn-primary {
  background: var(--terracotta);
  color: var(--cream);
  border-radius: 2px;
}

.btn-primary:hover {
  background: var(--terracotta-dark);
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(192, 81, 42, 0.35);
}

.btn-secondary {
  background: transparent;
  color: var(--espresso);
  border: 1.5px solid var(--sand-400);
  border-radius: 2px;
}

.btn-secondary:hover {
  border-color: var(--terracotta);
  color: var(--terracotta);
  transform: translateY(-1px);
}

/* ─── Section Common ──────────────────────────────────────────────── */
.section {
  padding: clamp(4rem, 10vw, 8rem) clamp(1.5rem, 5vw, 5rem);
}

.section-label {
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--amber);
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.section-label::after {
  content: '';
  display: inline-block;
  height: 1px;
  width: 48px;
  background: var(--sand-400);
}

/* ─── Menu Section ────────────────────────────────────────────────── */
.menu-section {
  background: var(--espresso);
  color: var(--cream);
}

.menu-section .section-label { color: var(--amber-light); }
.menu-section .section-label::after { background: rgba(255,255,255,0.15); }

.menu-header { margin-bottom: 3rem; }

.menu-header h2 { color: var(--cream); }
.menu-header h2 em { font-style: italic; color: var(--amber-light); }

.menu-header p { color: rgba(255,249,240,0.6); margin-top: 0.5rem; }

.menu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  max-width: 1100px;
}

.menu-card {
  background: rgba(255,249,240,0.04);
  border: 1px solid rgba(255,249,240,0.08);
  border-radius: 4px;
  padding: 2rem 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease;
  position: relative;
  overflow: hidden;
}

.menu-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--terracotta);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.menu-card:hover {
  transform: translateY(-4px);
  border-color: rgba(192, 81, 42, 0.4);
  background: rgba(255,249,240,0.07);
}

.menu-card:hover::before { transform: scaleX(1); }

.menu-card-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(192, 81, 42, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
}

.menu-card-icon svg { width: 26px; height: 26px; }

.menu-card h3 {
  font-size: 1.25rem;
  color: var(--cream);
  font-family: 'Cormorant Garamond', serif;
}

.menu-card .item-desc {
  font-size: 0.85rem;
  color: rgba(255,249,240,0.55);
  line-height: 1.65;
  flex-grow: 1;
}

.menu-card .item-price {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--amber-light);
}

.menu-card .item-tag {
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--amber);
  padding: 0.25rem 0.6rem;
  border: 1px solid rgba(232, 168, 75, 0.35);
  border-radius: 2px;
  display: inline-block;
  width: fit-content;
}

.menu-divider {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  max-width: 1100px;
  margin-top: 3rem;
  color: rgba(255,249,240,0.2);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.menu-divider::before, .menu-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(255,249,240,0.1);
}

/* ─── Photos Section ──────────────────────────────────────────────── */
.photos-section { background: var(--sand-200); }

.photos-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  grid-template-rows: auto auto;
  gap: 1.5rem;
  max-width: 1100px;
  margin-top: 2.5rem;
}

.photo-card {
  background: var(--sand-300);
  border-radius: 4px;
  overflow: hidden;
  position: relative;
  aspect-ratio: unset;
}

.photo-card.tall { grid-row: span 2; }
.photo-card.wide { grid-column: span 2; }

.photo-card-inner {
  width: 100%;
  height: 100%;
  min-height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--sand-300);
  position: relative;
}

.photo-label {
  position: absolute;
  bottom: 1rem; left: 1rem;
  background: rgba(44, 24, 16, 0.75);
  color: var(--cream);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.4rem 0.8rem;
  border-radius: 2px;
  backdrop-filter: blur(4px);
}

/* CSS-only food illustrations for photo cards */
.food-illustration {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Cookie illustration */
.illustrate-cookie {
  background: linear-gradient(145deg, #c97c3a 0%, #a85f28 50%, #8b4e1e 100%);
  position: relative;
}

.illustrate-cookie::before {
  content: '';
  position: absolute;
  width: 55%;
  height: 55%;
  background: radial-gradient(circle at 35% 35%, #5c3510 0%, #3d2210 50%, #2a1508 100%);
  border-radius: 50%;
  box-shadow:
    inset 2px 2px 6px rgba(0,0,0,0.4),
    -1px -1px 3px rgba(200,140,60,0.5);
}

/* Churro illustration */
.illustrate-churro {
  background: linear-gradient(135deg, #d4a853 0%, #b8922e 50%, #9a7520 100%);
  position: relative;
}

.illustrate-churro::before {
  content: '';
  position: absolute;
  width: 70%;
  height: 18%;
  background: linear-gradient(90deg, #8b6015 0%, #a07418 30%, #c4972c 50%, #a07418 70%, #8b6015 100%);
  border-radius: 100px;
  transform: rotate(-20deg);
  box-shadow: 0 4px 16px rgba(139, 96, 21, 0.5);
}

.illustrate-truck {
  background: linear-gradient(160deg, #c0512a 0%, #9a3e1f 100%);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.illustrate-truck::before {
  content: '🍪';
  font-size: 3rem;
}

/* Carousel dots */
.photo-carousel { position: relative; }
.photo-carousel .dot-nav {
  display: flex;
  gap: 0.5rem;
  margin-top: 1rem;
}
.photo-carousel .dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--sand-400);
  border: none;
  cursor: pointer;
  transition: background 0.2s;
}
.photo-carousel .dot.active { background: var(--terracotta); }

/* ─── Contact Section ─────────────────────────────────────────────── */
.contact-section { background: var(--sand-100); }

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  max-width: 1100px;
}

.contact-info h2 em { font-style: italic; color: var(--terracotta); }

.contact-info > p {
  margin-top: 1rem;
  max-width: 420px;
  line-height: 1.7;
}

.contact-details {
  margin-top: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.contact-detail {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.contact-detail-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--sand-200);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-detail-icon svg { width: 18px; height: 18px; stroke: var(--terracotta); fill: none; stroke-width: 1.5; }

.contact-detail-text { display: flex; flex-direction: column; gap: 0.15rem; }
.contact-detail-label { font-size: 0.68rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--sand-500); }
.contact-detail-value { font-size: 0.9rem; color: var(--espresso); }

/* ─── Form ────────────────────────────────────────────────────────── */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

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

.form-group { display: flex; flex-direction: column; gap: 0.4rem; }

.form-group label {
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--espresso-mid);
  font-weight: 400;
}

.form-group input,
.form-group select,
.form-group textarea {
  font-family: 'DM Mono', monospace;
  font-size: 0.85rem;
  padding: 0.85rem 1rem;
  background: var(--cream);
  border: 1.5px solid var(--sand-300);
  border-radius: 2px;
  color: var(--espresso);
  transition: border-color 0.2s, box-shadow 0.2s;
  width: 100%;
  -webkit-appearance: none;
  appearance: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--terracotta);
  box-shadow: 0 0 0 3px rgba(192, 81, 42, 0.1);
}

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

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

.form-group select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23b8916a' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
  cursor: pointer;
}

.form-submit { margin-top: 0.5rem; width: 100%; justify-content: center; }
.form-submit:disabled { opacity: 0.6; cursor: not-allowed; transform: none !important; }

.form-success {
  display: none;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: 4px;
  padding: 1.25rem 1.5rem;
  color: #065f46;
  font-size: 0.9rem;
  line-height: 1.6;
}

.form-success.show { display: block; animation: fadeIn 0.3s ease; }

/* ─── Footer ──────────────────────────────────────────────────────── */
.footer {
  background: var(--espresso);
  color: rgba(255,249,240,0.45);
  padding: 2.5rem clamp(1.5rem, 5vw, 5rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-logo {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--cream);
}

.footer-logo span { color: var(--amber); }

.footer-copy { font-size: 0.75rem; }

/* ─── Animations ──────────────────────────────────────────────────── */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

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

.animate-in { animation: slideUp 0.6s ease forwards; opacity: 0; }
.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }
.delay-5 { animation-delay: 0.5s; }

/* ─── Mobile Menu ─────────────────────────────────────────────────── */
.mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--sand-100);
  z-index: 99;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
}

.mobile-menu.open { display: flex; }
.mobile-menu a { font-size: 1.4rem; font-family: 'Cormorant Garamond', serif; color: var(--espresso); }
.mobile-close {
  position: absolute;
  top: 1.5rem; right: 1.5rem;
  background: none; border: none;
  font-size: 2rem;
  cursor: pointer;
  color: var(--espresso);
}

/* ─── Responsive ───────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; padding-top: 100px; text-align: center; }
  .hero-visual { display: none; }
  .hero-eyebrow { justify-content: center; }
  .hero-actions { justify-content: center; }
  .hero-tagline { margin: 0 auto; }
  .contact-layout { grid-template-columns: 1fr; }
  .photos-grid { grid-template-columns: 1fr; }
  .photo-card.tall, .photo-card.wide { grid-column: auto; grid-row: auto; }
  .form-row { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .mobile-toggle { display: block; }
}

@media (max-width: 480px) {
  .menu-grid { grid-template-columns: 1fr; }
  .footer { flex-direction: column; text-align: center; }
  h1 { font-size: 2.2rem; }
}