/* Tamari House — ConceptWorkz restaurant sample
   Palette: Warm Ink · Terracotta · Sand */

:root {
  --ink: #1c1412;
  --ink-soft: #2a211e;
  --burgundy: #4a2824;
  --terracotta: #c06a45;
  --terracotta-l: #dfa07f;
  --sand: #f3ebe3;
  --cream: #faf6f1;
  --white: #ffffff;
  --muted: #8a7f78;
  --line: rgba(28, 20, 18, 0.12);
  --line-light: rgba(255, 255, 255, 0.14);
  --shadow: 0 24px 60px rgba(28, 20, 18, 0.18);
  --transition: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "DM Sans", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
}
img { display: block; max-width: 100%; height: auto; }
button, input, select, textarea { font: inherit; }
a { color: inherit; }

.eyebrow {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--terracotta);
  margin: 0 0 1rem;
}

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.08;
  margin: 0;
}

h1 { font-size: clamp(2.8rem, 6vw, 4.6rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: 1.35rem; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 1.6rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition), color var(--transition);
}
.btn-primary {
  background: var(--terracotta);
  color: var(--white);
  box-shadow: 0 10px 28px rgba(192, 106, 69, 0.28);
}
.btn-primary:hover {
  background: #a85a3a;
  transform: translateY(-2px);
  box-shadow: 0 14px 36px rgba(192, 106, 69, 0.35);
}
.btn-ghost {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.35);
  color: var(--white);
  backdrop-filter: blur(8px);
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.16); transform: translateY(-2px); }
.btn-dark { background: var(--ink); color: var(--white); }
.btn-dark:hover { background: var(--burgundy); transform: translateY(-2px); }
.btn-outline-dark {
  background: transparent;
  border-color: var(--ink);
  color: var(--ink);
}
.btn-outline-dark:hover { background: var(--ink); color: var(--white); }

/* Header */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 2rem;
  padding: 1.1rem clamp(1.25rem, 4vw, 3rem);
  transition: background var(--transition), box-shadow var(--transition), padding var(--transition);
}
.site-header.scrolled {
  background: rgba(250, 246, 241, 0.94);
  backdrop-filter: blur(16px);
  box-shadow: 0 1px 0 var(--line);
  padding-top: 0.85rem;
  padding-bottom: 0.85rem;
}
.site-header.scrolled .brand,
.site-header.scrolled .desktop-nav a { color: var(--ink); }
.site-header.scrolled .btn-primary { box-shadow: 0 8px 24px rgba(192, 106, 69, 0.22); }

.brand {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: var(--white);
  line-height: 1;
}
.brand-mark {
  font-family: var(--serif);
  font-size: 1.65rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}
.brand-sub {
  font-size: 0.62rem;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  margin-top: 0.2rem;
  opacity: 0.82;
}

.desktop-nav {
  display: flex;
  gap: 1.75rem;
  margin-left: auto;
}
.desktop-nav a {
  color: rgba(255, 255, 255, 0.92);
  text-decoration: none;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  transition: color var(--transition);
}
.desktop-nav a:hover { color: var(--terracotta-l); }

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  margin-left: auto;
}
.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  margin: 6px auto;
  background: currentColor;
  transition: transform var(--transition);
}
.site-header.scrolled .menu-toggle { color: var(--ink); }

.mobile-nav {
  display: none;
  position: fixed;
  inset: 72px 0 auto;
  z-index: 45;
  padding: 1.5rem clamp(1.25rem, 4vw, 3rem) 2rem;
  background: rgba(28, 20, 18, 0.96);
  backdrop-filter: blur(12px);
  flex-direction: column;
  gap: 1rem;
}
.mobile-nav.open { display: flex; }
.mobile-nav a {
  color: var(--white);
  text-decoration: none;
  font-size: 1rem;
  font-weight: 600;
  padding: 0.35rem 0;
}

/* Hero */
.hero {
  position: relative;
  min-height: 100vh;
  display: grid;
  align-items: end;
  color: var(--white);
  overflow: hidden;
}
.hero-media { position: absolute; inset: 0; }
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(28, 20, 18, 0.35) 0%, rgba(28, 20, 18, 0.15) 35%, rgba(28, 20, 18, 0.82) 100%),
    radial-gradient(circle at 80% 20%, rgba(192, 106, 69, 0.18), transparent 45%);
}
.hero-content {
  position: relative;
  z-index: 2;
  padding: clamp(6rem, 16vh, 9rem) clamp(1.25rem, 4vw, 3rem) 4.5rem;
  max-width: 820px;
}
.hero-content .eyebrow { color: var(--terracotta-l); }
.hero-content h1 em {
  font-style: italic;
  color: var(--terracotta-l);
}
.hero-lead {
  max-width: 480px;
  margin: 1.25rem 0 0;
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.86);
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 2rem;
}
.hero-scroll {
  position: absolute;
  right: clamp(1.25rem, 4vw, 3rem);
  bottom: 2rem;
  z-index: 2;
  font-size: 0.65rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  opacity: 0.65;
}
.hero-scroll::after {
  content: "";
  display: block;
  width: 1px;
  height: 48px;
  margin: 0.75rem auto 0;
  background: rgba(255, 255, 255, 0.45);
}

/* Pillars */
.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border-bottom: 1px solid var(--line);
}
.pillars article {
  background: var(--sand);
  padding: 2.5rem clamp(1.25rem, 3vw, 2.5rem);
}
.pillar-num {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--terracotta);
  margin-bottom: 1rem;
}
.pillars h2 {
  font-size: 1.45rem;
  margin-bottom: 0.65rem;
}
.pillars p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

/* Story */
.story {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  min-height: 640px;
}
.story-media {
  position: relative;
  min-height: 420px;
}
.story-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.story-badge {
  position: absolute;
  left: 2rem;
  bottom: 2rem;
  background: rgba(28, 20, 18, 0.82);
  color: var(--white);
  padding: 1rem 1.25rem;
  backdrop-filter: blur(8px);
}
.story-badge strong {
  display: block;
  font-family: var(--serif);
  font-size: 1.35rem;
}
.story-badge span {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.75;
}
.story-copy {
  padding: clamp(3rem, 6vw, 5rem) clamp(1.25rem, 4vw, 4rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: var(--cream);
}
.story-copy p {
  color: #5c534e;
  font-size: 1rem;
  max-width: 520px;
}
.story-copy blockquote {
  margin: 1.5rem 0 0;
  padding-left: 1rem;
  border-left: 2px solid var(--terracotta);
  font-family: var(--serif);
  font-size: 1.35rem;
  font-style: italic;
  color: var(--burgundy);
}

/* Menu */
.menu-section {
  padding: clamp(4rem, 8vw, 6rem) 0 clamp(3rem, 6vw, 4.5rem);
  background: var(--ink);
  color: var(--white);
}
.menu-section .eyebrow { color: var(--terracotta-l); }
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 1.5rem;
  padding: 0 clamp(1.25rem, 4vw, 3rem);
  margin-bottom: 2rem;
}
.section-head.light { color: var(--ink); }
.section-note, .form-note {
  max-width: 280px;
  margin: 0;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.6;
}

.menu-track-wrap {
  position: relative;
  padding: 0 clamp(1.25rem, 4vw, 3rem);
}
.menu-track {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding-bottom: 0.5rem;
  scrollbar-width: none;
}
.menu-track::-webkit-scrollbar { display: none; }
.menu-card {
  flex: 0 0 min(300px, 78vw);
  scroll-snap-align: start;
  background: var(--ink-soft);
  border: 1px solid var(--line-light);
  border-radius: 12px;
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
}
.menu-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}
.menu-card img {
  width: 100%;
  height: 210px;
  object-fit: cover;
}
.menu-card-body { padding: 1.15rem 1.2rem 1.35rem; }
.menu-card-body p {
  margin: 0.35rem 0 0.85rem;
  font-size: 0.86rem;
  color: rgba(255, 255, 255, 0.62);
}
.price {
  font-family: var(--serif);
  font-size: 1.25rem;
  color: var(--terracotta-l);
}

.menu-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--line-light);
  background: rgba(28, 20, 18, 0.82);
  color: var(--white);
  cursor: pointer;
  z-index: 2;
  transition: background var(--transition);
}
.menu-nav:hover { background: var(--terracotta); }
.menu-nav-prev { left: 0.5rem; }
.menu-nav-next { right: 0.5rem; }

.menu-dots {
  display: flex;
  justify-content: center;
  gap: 0.45rem;
  margin-top: 1.25rem;
}
.menu-dots button {
  width: 8px;
  height: 8px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.25);
  cursor: pointer;
  padding: 0;
}
.menu-dots button.active { background: var(--terracotta); width: 24px; border-radius: 999px; }

/* Experience */
.experience {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  background: var(--sand);
}
.experience-copy {
  padding: clamp(3rem, 6vw, 5rem) clamp(1.25rem, 4vw, 4rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.experience-copy ul {
  margin: 1.5rem 0 2rem;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.85rem;
}
.experience-copy li {
  position: relative;
  padding-left: 1.2rem;
  color: #5c534e;
}
.experience-copy li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55rem;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--terracotta);
}
.experience-media img {
  width: 100%;
  height: 100%;
  min-height: 420px;
  object-fit: cover;
}

/* Gallery */
.gallery {
  padding: clamp(4rem, 8vw, 5.5rem) clamp(1.25rem, 4vw, 3rem);
  background: var(--cream);
}
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.85rem;
  margin-top: 1.5rem;
}
.gallery-item {
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  overflow: hidden;
  border-radius: 10px;
}
.gallery-item img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.gallery-item:hover img { transform: scale(1.04); }

/* Visit */
.visit {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  background: var(--white);
  border-top: 1px solid var(--line);
}
.visit-info, .visit-form {
  padding: clamp(3rem, 6vw, 4.5rem) clamp(1.25rem, 4vw, 3.5rem);
}
.visit-info dl {
  margin: 1.75rem 0 2rem;
  display: grid;
  gap: 1.25rem;
}
.visit-info dt {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--terracotta);
  margin-bottom: 0.35rem;
}
.visit-info dd {
  margin: 0;
  color: #5c534e;
}
.visit-info a { color: var(--ink); }
.visit-form {
  background: var(--sand);
  border-left: 1px solid var(--line);
}
.visit-form label {
  display: grid;
  gap: 0.4rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 0.85rem;
}
.visit-form input,
.visit-form select,
.visit-form textarea,
.modal input,
.modal select {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1px solid rgba(28, 20, 18, 0.14);
  border-radius: 8px;
  background: var(--white);
  color: var(--ink);
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
}
.form-status {
  min-height: 1.2rem;
  margin: 0.75rem 0 0;
  font-size: 0.86rem;
  color: var(--burgundy);
}

/* Footer */
.site-footer {
  padding: 2.5rem clamp(1.25rem, 4vw, 3rem);
  background: var(--ink);
  color: rgba(255, 255, 255, 0.72);
  text-align: center;
}
.footer-brand {
  display: inline-flex;
  flex-direction: column;
  color: var(--white);
  margin-bottom: 1rem;
}
.footer-copy, .footer-legal {
  margin: 0.35rem 0 0;
  font-size: 0.78rem;
  line-height: 1.7;
}
.footer-legal { opacity: 0.55; max-width: 560px; margin-inline: auto; }

/* WhatsApp */
.wa-sticky {
  position: fixed;
  right: 1.5rem;
  bottom: 1.5rem;
  z-index: 80;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #2eeb77 0%, #25d366 50%, #1da851 100%);
  color: var(--white);
  box-shadow: 0 8px 28px rgba(37, 211, 102, 0.38);
  transition: transform var(--transition);
}
.wa-sticky svg { width: 28px; height: 28px; }
.wa-sticky:hover { transform: scale(1.06); }

/* Modal */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background: rgba(28, 20, 18, 0.72);
  backdrop-filter: blur(10px);
}
.modal-backdrop[hidden] { display: none; }
.modal {
  width: min(480px, 100%);
  background: var(--cream);
  padding: 2rem;
  border-radius: 14px;
  position: relative;
  box-shadow: var(--shadow);
}
.modal-close {
  position: absolute;
  top: 0.75rem;
  right: 0.85rem;
  border: 0;
  background: transparent;
  font-size: 1.75rem;
  cursor: pointer;
  color: var(--muted);
}
.modal form label {
  display: grid;
  gap: 0.4rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 0.85rem;
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 110;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  background: rgba(12, 10, 9, 0.92);
}
.lightbox[hidden] { display: none; }
.lightbox figure { margin: 0; text-align: center; max-width: min(920px, 100%); }
.lightbox img {
  max-height: 78vh;
  width: auto;
  margin: 0 auto;
  border-radius: 8px;
}
.lightbox figcaption {
  margin-top: 0.85rem;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.9rem;
}
.lightbox-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  border: 0;
  background: transparent;
  color: var(--white);
  font-size: 2rem;
  cursor: pointer;
}

@media (max-width: 960px) {
  .desktop-nav, .site-header > .btn-primary { display: none; }
  .menu-toggle { display: block; color: var(--white); }
  .story, .experience, .visit { grid-template-columns: 1fr; }
  .experience-media { order: -1; }
  .visit-form { border-left: 0; border-top: 1px solid var(--line); }
  .gallery-grid { grid-template-columns: 1fr; }
  .gallery-item img { height: 240px; }
  .menu-nav { display: none; }
}

@media (max-width: 720px) {
  .pillars { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .section-head { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
