/* ============================================================
   Kalustyan's — Beautify NYC redesign
   Tokens
   ============================================================ */
:root {
  --ink: #241208;
  --cream: #F6ECD9;
  --cream-2: #EFE1C6;
  --red: #A32B1F;
  --red-dark: #7E2117;
  --gold: #C77D22;
  --olive: #5B6B3F;
  --white: #FFFDF9;

  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --radius: 4px;
  --container: 1180px;
  --gutter: clamp(1.25rem, 4vw, 3rem);

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  width: 100%;
}

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

h1, h2, h3 { font-family: var(--font-display); font-weight: 700; margin: 0 0 0.5em; line-height: 1.1; }

.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--ink); color: var(--white);
  padding: 0.75em 1.25em; z-index: 200;
  border-radius: 0 0 var(--radius) 0;
}
.skip-link:focus {
  left: 0;
}

:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
}

.eyebrow {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--red);
  margin: 0 0 0.6em;
}

.btn {
  display: inline-block;
  padding: 0.85em 1.6em;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border: 2px solid transparent;
  transition: transform 0.2s var(--ease), background-color 0.2s var(--ease), color 0.2s var(--ease);
}
.btn-primary {
  background: var(--red);
  color: var(--white);
}
.btn-primary:hover { background: var(--red-dark); }
.btn-ghost {
  background: transparent;
  border-color: currentColor;
  color: var(--ink);
}
.btn-ghost:hover { background: var(--ink); color: var(--cream); }
.btn:active { transform: scale(0.98); }

/* ============================================================
   Header
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(246, 236, 217, 0.92);
  backdrop-filter: saturate(140%) blur(6px);
  border-bottom: 1px solid rgba(36, 18, 8, 0.12);
}
.header-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0.9rem var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.wordmark {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.5rem;
  letter-spacing: 0.02em;
  text-decoration: none;
  color: var(--ink);
}
.primary-nav {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  font-weight: 500;
  font-size: 0.95rem;
}
.primary-nav a {
  text-decoration: none;
  color: var(--ink);
  padding: 0.3em 0;
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s var(--ease), color 0.2s var(--ease);
}
.primary-nav a:hover { border-color: var(--red); }
.nav-cta {
  background: var(--red);
  color: var(--white) !important;
  padding: 0.5em 1em;
  border-radius: var(--radius);
  border-bottom: none !important;
}
.nav-cta:hover { background: var(--red-dark); }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  background: none;
  border: none;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--ink);
  transition: transform 0.25s var(--ease), opacity 0.25s var(--ease);
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================================
   Hero
   ============================================================ */
.hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}
.hero-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(36,18,8,0.15) 0%, rgba(36,18,8,0.25) 45%, rgba(36,18,8,0.92) 100%);
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: var(--container);
  margin: 0 auto;
  padding: 3rem var(--gutter) 4rem;
  color: var(--white);
  width: 100%;
}
.badge {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cream);
  background: rgba(199, 125, 34, 0.28);
  border: 1px solid var(--gold);
  padding: 0.4em 0.9em;
  border-radius: 999px;
  margin-bottom: 1.1em;
}
.hero h1 {
  font-size: clamp(2.2rem, 5.5vw, 4rem);
  max-width: 16ch;
  color: var(--white);
}
.hero h1 span {
  display: block;
  color: var(--gold);
  font-style: italic;
  font-weight: 400;
}
.hero-sub {
  max-width: 46ch;
  font-size: 1.1rem;
  color: var(--cream-2);
  margin: 0.6em 0 1.6em;
}
.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}
.hero-actions .btn-ghost {
  color: var(--white);
}
.hero-actions .btn-ghost:hover {
  background: var(--white);
  color: var(--ink);
}

/* ============================================================
   Story
   ============================================================ */
.story { padding: clamp(4rem, 8vw, 7rem) 0; }
.story-grid {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
}
.story-media {
  align-self: stretch;
}
.story-media img {
  width: 100%;
  height: 100%;
  min-height: 260px;
  max-height: 560px;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: 0 20px 40px -20px rgba(36,18,8,0.4);
}
.story-text h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); }
.story-text p { margin: 0 0 1.1em; color: rgba(36,18,8,0.88); }
.story-text strong { color: var(--red); }

/* ============================================================
   Spice Index strip (signature element)
   ============================================================ */
.spice-index {
  background: var(--ink);
  color: var(--cream);
  padding: 1.6rem 0;
  border-top: 1px solid var(--gold);
  border-bottom: 1px solid var(--gold);
}
.spice-index-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.spice-index-label {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 0.75em;
}
.spice-index-strip {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 0;
  overflow-x: auto;
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
}
.spice-index-strip li {
  flex: 0 0 auto;
  border-right: 1px solid rgba(246,236,217,0.25);
}
.spice-index-strip li:last-child { border-right: none; }
.spice-index-strip a {
  display: block;
  padding: 0.4em 1.1em;
  text-decoration: none;
  color: var(--cream);
  font-size: 0.9rem;
  white-space: nowrap;
  transition: color 0.2s var(--ease);
}
.spice-index-strip a:hover { color: var(--gold); }

/* ============================================================
   What's Inside
   ============================================================ */
.inside { padding: clamp(4rem, 8vw, 7rem) 0; }
.section-head {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
  text-align: left;
  margin-bottom: 2.5rem;
}
.section-head h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); max-width: 20ch; }
.section-sub { max-width: 62ch; color: rgba(36,18,8,0.78); font-size: 1.05rem; }

.category-grid {
  max-width: var(--container);
  margin: 0 auto 3rem;
  padding: 0 var(--gutter);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.25rem;
}
.category-card {
  background: var(--white);
  border: 1px solid rgba(36,18,8,0.1);
  border-top: 3px solid var(--olive);
  border-radius: var(--radius);
  padding: 1.5rem 1.4rem;
}
.category-card:nth-child(3n+2) { border-top-color: var(--red); }
.category-card:nth-child(3n+3) { border-top-color: var(--gold); }
.category-card h3 {
  font-size: 1.05rem;
  margin-bottom: 0.6em;
}
.category-card ul {
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.9rem;
  color: rgba(36,18,8,0.75);
}
.category-card li {
  padding: 0.3em 0;
  border-top: 1px solid rgba(36,18,8,0.08);
}
.category-card li:first-child { border-top: none; }
.category-card li.note {
  font-style: italic;
  color: var(--red);
  font-size: 0.85rem;
}

.texture-strip {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
}
.texture-strip img {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  aspect-ratio: 4/3;
  object-fit: cover;
}

/* ============================================================
   Simmer Sauce
   ============================================================ */
.simmer-sauce {
  background: var(--cream-2);
  padding: clamp(4rem, 8vw, 7rem) 0;
}
.simmer-grid {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: center;
}
.simmer-media img {
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: 0 20px 40px -20px rgba(36,18,8,0.35);
}
.simmer-text h2 { font-size: clamp(1.8rem, 4vw, 2.4rem); }
.simmer-text > p { color: rgba(36,18,8,0.8); margin-bottom: 1.4em; }
.sauce-list {
  list-style: none;
  margin: 0 0 1.8em;
  padding: 0;
  border-top: 1px solid rgba(36,18,8,0.15);
}
.sauce-list li {
  display: flex;
  align-items: baseline;
  gap: 0.75em;
  padding: 0.65em 0;
  border-bottom: 1px solid rgba(36,18,8,0.15);
}
.sauce-list span {
  font-family: var(--font-display);
  font-weight: 600;
  min-width: 6em;
}
.sauce-list em {
  flex: 1;
  font-style: normal;
  color: rgba(36,18,8,0.65);
  font-size: 0.92rem;
}
.sauce-list b {
  font-variant-numeric: tabular-nums;
  color: var(--red);
}

/* ============================================================
   Press
   ============================================================ */
.press { padding: clamp(4rem, 8vw, 7rem) 0; }
.press-grid {
  max-width: var(--container);
  margin: 0 auto 3rem;
  padding: 0 var(--gutter);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
}
.press-grid blockquote {
  margin: 0;
  padding: 1.6rem;
  background: var(--white);
  border-radius: var(--radius);
  border-left: 3px solid var(--red);
}
.press-grid p {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.05rem;
  margin: 0 0 0.8em;
  color: var(--ink);
}
.press-grid cite {
  font-style: normal;
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--gold);
}

.reviews {
  max-width: var(--container);
  margin: 0 auto;
  padding: 2rem var(--gutter) 0;
  border-top: 1px solid rgba(36,18,8,0.15);
}
.reviews-label {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--olive);
  margin-bottom: 1.2em;
}
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}
.review p:first-child { margin: 0 0 0.5em; color: rgba(36,18,8,0.85); }
.review-meta {
  font-size: 0.82rem;
  color: rgba(36,18,8,0.55);
  margin: 0;
}

/* ============================================================
   Visit
   ============================================================ */
.visit {
  background: var(--ink);
  color: var(--cream);
  padding: clamp(4rem, 8vw, 7rem) 0;
}
.visit-grid {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
}
.visit h2 {
  color: var(--white);
  font-size: clamp(1.8rem, 4vw, 2.4rem);
}
.visit address {
  font-style: normal;
  font-size: 1.1rem;
  margin: 0 0 1.2em;
  color: var(--cream-2);
}
.hours {
  border-collapse: collapse;
  margin-bottom: 1.4em;
  font-size: 0.98rem;
}
.hours th, .hours td {
  text-align: left;
  padding: 0.4em 1.2em 0.4em 0;
  border-bottom: 1px solid rgba(246,236,217,0.15);
  font-weight: 400;
}
.hours th { color: var(--gold); font-weight: 600; }
.contact-line { margin-bottom: 1.6em; }
.contact-line a { text-decoration: underline; text-underline-offset: 3px; }
.visit-actions { display: flex; gap: 1rem; flex-wrap: wrap; }
.visit .btn-ghost { color: var(--cream); }
.visit .btn-ghost:hover { background: var(--cream); color: var(--ink); }

.visit-map {
  min-height: 320px;
  height: 100%;
}
.map-fallback {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  min-height: 320px;
  height: 100%;
  border-radius: var(--radius);
  background: var(--olive) center/cover;
  text-decoration: none;
  overflow: hidden;
}
.map-fallback iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  filter: grayscale(20%) sepia(10%);
}
.map-fallback-label {
  position: relative;
  z-index: 1;
  margin: 1rem;
  padding: 0.6em 1.1em;
  background: var(--ink);
  color: var(--cream);
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: var(--radius);
  pointer-events: none;
}

/* ============================================================
   Footer
   ============================================================ */
.site-footer {
  background: #180C05;
  color: rgba(246,236,217,0.7);
  padding: 3rem 0 2rem;
  font-size: 0.9rem;
}
.footer-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
  text-align: center;
}
.footer-wordmark {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--cream);
  margin: 0 0 1em;
}
.footer-nav {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-bottom: 1.2em;
}
.footer-nav a { text-decoration: none; color: rgba(246,236,217,0.8); }
.footer-nav a:hover { color: var(--gold); }
.footer-hours, .footer-contact { margin: 0.3em 0; }
.footer-contact a { color: var(--gold); text-decoration: none; }
.footer-credit {
  margin-top: 1.5em;
  font-size: 0.78rem;
  color: rgba(246,236,217,0.4);
}

/* ============================================================
   Scroll reveal
   ============================================================ */
/* Content is visible by default at all times — with or without JS, and
   regardless of any timing issue in the reveal script. The ".revealing"
   class (added only to sections that are below the fold at the moment JS
   runs) is what opts a section INTO a starting-faded state; JS then
   flips ".is-visible" on it once it scrolls into view. Nothing is ever
   hidden from a crawler, a screenshot tool, or a slow/failed script. */
.revealing {
  /* Starts mostly-but-not-fully visible: a subtle lift-and-settle rather
     than a pop-from-nothing. Guarantees text stays readable even in a
     mid-transition frame (e.g. a fast automated scroll/screenshot). */
  opacity: 0.6;
  transform: translateY(10px);
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease);
}
.revealing.is-visible {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  .revealing { opacity: 1 !important; transform: none !important; transition: none !important; }
}

/* ============================================================
   Responsive
   ============================================================ */
@media (min-width: 700px) {
  .story-grid { grid-template-columns: 1.1fr 1fr; align-items: center; }
  .simmer-grid { grid-template-columns: 1fr 1fr; }
  .visit-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px) {
  .nav-toggle { display: flex; }
  .primary-nav {
    position: fixed;
    top: 64px;
    right: 0;
    bottom: 0;
    left: 0;
    height: calc(100vh - 64px);
    background: var(--cream);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 1rem var(--gutter) 2rem;
    transform: translateX(100%);
    transition: transform 0.3s var(--ease);
    overflow-y: auto;
    z-index: 150;
  }
  .primary-nav.is-open { transform: translateX(0); }
  .primary-nav a {
    padding: 0.9em 0;
    font-size: 1.1rem;
    border-bottom: 1px solid rgba(36,18,8,0.1);
  }
  .nav-cta {
    margin-top: 1em;
    text-align: center;
  }
  .texture-strip { grid-template-columns: 1fr 1fr; }
  .texture-strip img:last-child { grid-column: span 2; }
}

@media (max-width: 480px) {
  .texture-strip { grid-template-columns: 1fr; }
  .texture-strip img:last-child { grid-column: auto; }
  .hero { min-height: 92vh; }
  .sauce-list li { flex-wrap: wrap; }
}
