/* ==============================================================
   THE NEIGHBORHOOD KITCHEN — Homepage styles
   Colors from the logo + current site:
   cream #FBF7EF · olive green #47552C (logo) · terracotta #B5623A
   warm brown #2B2420 · taupe #8A7D70
   Fonts: Fraunces (headings) + Archivo (text) — same as current site
   ============================================================== */

/* ---------- 1. Tokens ---------- */
:root {
  --cream: #fbf7ef;
  --cream-2: #f4ede0;
  --paper: #fffdf8;
  --olive: #47552c;
  --olive-2: #36421f;
  --olive-soft: #e5e6d4;
  --terra: #b5623a;
  --terra-2: #9c4f2b;
  --tan: #c99a6b;
  --brown: #2b2420;
  --text: #4a403a;
  --muted: #8a7d70;
  --line: rgba(43,36,32,.13);

  --f-head: 'Fraunces', Georgia, serif;
  --f-body: 'Archivo', system-ui, sans-serif;

  --radius: 22px;
  --ease: cubic-bezier(.22,.7,.2,1);
  --shadow: 0 30px 60px -32px rgba(43,36,32,.45);
}

/* ---------- 2. Base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--f-body); color: var(--text); background: var(--cream); line-height: 1.7; -webkit-font-smoothing: antialiased; }
body.no-scroll { overflow: hidden; }
main { overflow-x: clip; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
svg { width: 1em; height: 1em; flex-shrink: 0; }
.container { width: min(1180px, 100% - 48px); margin-inline: auto; }

h1, h2, h3 { font-family: var(--f-head); font-weight: 500; line-height: 1.1; color: var(--brown); letter-spacing: -.01em; }
h2 { font-size: clamp(2.1rem, 4vw, 3.3rem); }
h1 em, h2 em { font-style: italic; color: var(--terra); font-weight: 400; }

.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: .78rem; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; color: var(--olive); margin-bottom: 16px; }
.eyebrow::before { content: ''; width: 24px; height: 1.5px; background: currentColor; }
.eyebrow.light { color: var(--tan); }
.section-head { max-width: 680px; margin: 0 auto 54px; text-align: center; }
.section-head .eyebrow::after { content: ''; width: 24px; height: 1.5px; background: currentColor; }
.section-head h2 { margin-bottom: 16px; }
.section-head p { color: var(--muted); font-size: 1.05rem; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 15px 28px; border-radius: 999px; font-weight: 600; font-size: .95rem; cursor: pointer; border: 1.5px solid transparent; transition: transform .35s var(--ease), background .35s, color .35s, box-shadow .35s, border-color .35s; }
.btn svg { transition: transform .35s var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn-sm { padding: 10px 20px; font-size: .88rem; }
.btn-terra { background: var(--terra); color: #fff; box-shadow: 0 12px 26px -12px rgba(181,98,58,.8); }
.btn-terra:hover { background: var(--terra-2); transform: translateY(-2px); }
.btn-green { background: var(--olive); color: var(--cream); }
.btn-green:hover { background: var(--olive-2); }
.btn-line { border-color: var(--line); color: var(--brown); background: var(--paper); }
.btn-line:hover { border-color: var(--olive); color: var(--olive); }
.btn-cream { background: var(--cream); color: var(--olive-2); }
.btn-cream:hover { background: #fff; transform: translateY(-2px); }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--terra); }
.link-arrow svg { transition: transform .35s var(--ease); }
.link-arrow:hover svg { transform: translateX(4px); }

/* ---------- 3. Header ---------- */
.site-header { position: fixed; inset: 0 0 auto; z-index: 50; padding: 12px 0; transition: padding .4s var(--ease); }
.site-header::before { content: ''; position: absolute; inset: 0; background: rgba(251,247,239,.9); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); opacity: 0; transition: opacity .4s; }
.site-header.is-scrolled { padding: 6px 0; }
.site-header.is-scrolled::before { opacity: 1; }
.header-inner { position: relative; display: flex; align-items: center; gap: 30px; }
.logo img { width: 112px; height: auto; mix-blend-mode: multiply; transition: width .4s var(--ease); }
.is-scrolled .logo img { width: 92px; }
.main-nav { margin-left: auto; }
.main-nav ul { display: flex; gap: 4px; list-style: none; }
.main-nav a { position: relative; display: block; padding: 8px 14px; font-size: .84rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--olive); transition: color .3s; }
.main-nav a::after { content: ''; position: absolute; left: 14px; right: 14px; bottom: 2px; height: 2px; border-radius: 2px; background: var(--terra); transform: scaleX(0); transform-origin: left; transition: transform .4s var(--ease); }
.main-nav a:hover { color: var(--terra); }
.main-nav a:hover::after { transform: scaleX(1); }
.nav-cta-mobile { display: none; }
.nav-toggle { display: none; width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line); background: var(--paper); cursor: pointer; position: relative; margin-left: auto; }
.nav-toggle span { position: absolute; left: 14px; right: 14px; height: 2px; border-radius: 2px; background: var(--olive); transition: transform .35s var(--ease), top .35s; }
.nav-toggle span:first-child { top: 18px; }
.nav-toggle span:last-child { top: 26px; }
.nav-open .nav-toggle span:first-child { top: 22px; transform: rotate(45deg); }
.nav-open .nav-toggle span:last-child { top: 22px; transform: rotate(-45deg); }

/* ---------- 4. Hero ---------- */
.hero { position: relative; padding: 160px 0 100px; background: radial-gradient(60% 60% at 0% 0%, #fff 0%, transparent 60%), var(--cream); }
.hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.kicker { display: inline-flex; align-items: center; gap: 10px; font-size: .8rem; font-weight: 600; letter-spacing: .24em; text-transform: uppercase; color: var(--olive); margin-bottom: 20px; }
.kicker svg { font-size: 1.2rem; color: var(--terra); }
.hero-title { font-size: clamp(2.8rem, 5.6vw, 4.9rem); line-height: .98; margin-bottom: 26px; }
.hero-title .ln { display: block; overflow: hidden; padding-bottom: .12em; }
.hero-title .ln > span { position: relative; display: inline-block; transform: translateY(110%); transition: transform 1.2s var(--ease) var(--d); }
.is-loaded .hero-title .ln > span { transform: none; }
.underline { position: absolute; left: 0; bottom: -.05em; width: 100%; height: .22em; overflow: visible; }
.underline path { fill: none; stroke: var(--tan); stroke-width: 5; stroke-linecap: round; stroke-dasharray: 320; stroke-dashoffset: 320; transition: stroke-dashoffset 1.2s var(--ease) 1.1s; }
.is-loaded .underline path { stroke-dashoffset: 0; }
.hero-lead { max-width: 480px; font-size: 1.1rem; color: var(--text); margin-bottom: 22px; }

.cooking { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-size: 1rem; color: var(--muted); margin-bottom: 32px; }
.rotator { position: relative; display: inline-block; min-width: 220px; height: 1.6em; overflow: hidden; vertical-align: bottom; }
.rotator b { position: absolute; left: 0; top: 0; white-space: nowrap; font-family: var(--f-head); font-style: italic; font-weight: 500; font-size: 1.3rem; line-height: 1.25; color: var(--terra); }
.rotator b.in { animation: wordIn .6s var(--ease) both; }
.rotator b.out { animation: wordOut .6s var(--ease) both; }
@keyframes wordIn { from { transform: translateY(100%); opacity: 0; } }
@keyframes wordOut { to { transform: translateY(-100%); opacity: 0; } }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.hero-in { opacity: 0; transform: translateY(22px); transition: opacity 1s var(--ease) var(--d), transform 1s var(--ease) var(--d); }
.is-loaded .hero-in { opacity: 1; transform: none; }

.hero-visual { position: relative; padding-top: 30px; }
.hero-photo { position: relative; border-radius: 240px 240px 24px 24px; overflow: hidden; aspect-ratio: 4 / 4.6; box-shadow: var(--shadow); border: 10px solid var(--paper); clip-path: inset(100% 0 0 0 round 240px 240px 24px 24px); transition: clip-path 1.5s var(--ease) .2s; }
.is-loaded .hero-photo { clip-path: inset(0 0 0 0 round 240px 240px 24px 24px); }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 55% 50%; transform: scale(1.15); transition: transform 2.4s var(--ease) .2s; }
.is-loaded .hero-photo img { transform: scale(1); }

/* Swinging hanging sign */
.hang-sign { position: absolute; left: -46px; top: 90px; z-index: 2; transform-origin: 50% 0; animation: swing 4.5s ease-in-out infinite; }
.strings { display: block; width: 120px; height: 46px; margin: 0 auto; background:
  linear-gradient(to bottom right, transparent calc(50% - 1px), var(--brown) calc(50% - 1px), var(--brown) calc(50% + 1px), transparent calc(50% + 1px)) left / 50% 100% no-repeat,
  linear-gradient(to bottom left, transparent calc(50% - 1px), var(--brown) calc(50% - 1px), var(--brown) calc(50% + 1px), transparent calc(50% + 1px)) right / 50% 100% no-repeat; position: relative; }
.strings::before { content: ''; position: absolute; left: 50%; top: -6px; width: 12px; height: 12px; margin-left: -6px; border-radius: 50%; background: var(--brown); }
.sign-board { width: 190px; padding: 16px 14px 14px; border-radius: 14px; text-align: center; background: var(--olive); color: var(--cream); box-shadow: 0 20px 34px -16px rgba(43,36,32,.6); border: 3px solid var(--olive-2); outline: 1.5px dashed rgba(251,247,239,.4); outline-offset: -9px; }
.sign-board small { display: block; font-size: .68rem; letter-spacing: .22em; text-transform: uppercase; opacity: .85; }
.sign-board b { display: block; font-family: var(--f-head); font-weight: 500; font-style: italic; font-size: 1.5rem; line-height: 1.1; margin: 4px 0 6px; color: #fff; }
@keyframes swing { 0%, 100% { transform: rotate(4deg); } 50% { transform: rotate(-4deg); } }

.address-tag { position: absolute; right: -10px; bottom: 34px; display: flex; gap: 12px; align-items: center; padding: 14px 18px; border-radius: 16px; background: var(--paper); box-shadow: var(--shadow); font-size: .82rem; color: var(--muted); }
.address-tag svg { font-size: 1.5rem; color: var(--terra); }
.address-tag b { display: block; font-size: .95rem; color: var(--brown); }

/* ---------- 5. Marquee ---------- */
.marquee { background: var(--olive); color: var(--cream); padding: 20px 0; overflow: hidden; transform: rotate(-1.2deg); margin: 0 -10px; box-shadow: 0 10px 30px -18px rgba(43,36,32,.6); }
.marquee-track { display: flex; align-items: center; gap: 26px; width: max-content; animation: marquee 38s linear infinite; font-family: var(--f-head); font-size: 1.45rem; font-style: italic; white-space: nowrap; }
.marquee-track i { font-style: normal; font-size: .9rem; color: var(--tan); }
@keyframes marquee { to { transform: translateX(calc(-50% - 13px)); } }

/* ---------- 6. What's cooking ---------- */
.cooking-sec { padding: 130px 0 110px; }
.dish-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.dish { position: relative; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 24px 26px; text-align: center; transition: transform .45s var(--ease), box-shadow .45s, background .45s; }
.dish::after { content: ''; position: absolute; inset: 8px; border-radius: 16px; border: 1px dashed transparent; transition: border-color .45s; pointer-events: none; }
.dish:hover { transform: translateY(-6px) rotate(-.6deg); box-shadow: var(--shadow); }
.dish:hover::after { border-color: rgba(181,98,58,.35); }
.dish-ic { width: 70px; height: 70px; color: var(--olive); margin-bottom: 14px; transition: transform .6s var(--ease), color .4s; }
.dish:hover .dish-ic { transform: scale(1.08) rotate(-6deg); color: var(--terra); }
.dish-ic .steam { animation: steam 2.4s ease-in-out infinite; }
@keyframes steam { 0%, 100% { opacity: .3; transform: translateY(2px); } 50% { opacity: 1; transform: translateY(-2px); } }
.dish h3 { font-size: 1.3rem; margin-bottom: 4px; }
.dish p { font-size: .9rem; color: var(--muted); }
.menu-note { text-align: center; margin-top: 40px; }
.menu-note span { display: inline-block; font-family: var(--f-head); font-style: italic; font-size: 1.35rem; color: var(--terra); padding: 10px 24px; border: 1.5px dashed rgba(181,98,58,.5); border-radius: 999px; transform: rotate(-2deg); }

/* ---------- 7. About ---------- */
.about { padding: 110px 0 130px; }
.about-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(40px, 7vw, 100px); align-items: center; }
.about-logo { position: relative; padding: 30px; border-radius: 50%; aspect-ratio: 1; display: grid; place-items: center; background: var(--paper); box-shadow: var(--shadow); }
.about-logo::before { content: ''; position: absolute; inset: 14px; border-radius: 50%; border: 1.5px dashed rgba(71,85,44,.35); animation: spin 60s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.about-logo img { width: 86%; mix-blend-mode: multiply; }
.about-copy h2 { margin-bottom: 20px; }
.about-copy > p { font-size: 1.06rem; margin-bottom: 26px; }
.owner { display: flex; gap: 18px; align-items: flex-start; padding: 24px; border-radius: var(--radius); background: var(--olive-soft); }
.owner-badge { flex-shrink: 0; width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: var(--olive); color: var(--cream); font-family: var(--f-head); font-size: 1.2rem; }
.owner p { color: var(--text); }
.owner b { color: var(--brown); font-weight: 600; }

/* ---------- 8. Visit ---------- */
.visit { padding: 120px 0; background: var(--olive); color: var(--cream); }
.visit h2 { color: var(--cream); margin-bottom: 14px; }
.visit h2 em { color: var(--tan); }
.visit-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 80px); align-items: center; }
.visit-copy > p { color: rgba(251,247,239,.8); font-size: 1.06rem; margin-bottom: 28px; }
.visit-cards { display: grid; gap: 12px; margin-bottom: 30px; }
.v-card { display: flex; gap: 16px; align-items: flex-start; padding: 20px 22px; border-radius: 18px; background: rgba(251,247,239,.07); border: 1px solid rgba(251,247,239,.14); font-size: .95rem; color: rgba(251,247,239,.8); }
.v-card > svg { font-size: 1.5rem; color: var(--tan); margin-top: 2px; }
.v-card small { display: block; font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; color: var(--tan); }
.v-card b { display: block; font-family: var(--f-head); font-weight: 500; font-size: 1.2rem; color: var(--cream); }
.map-wrap { position: relative; border-radius: 28px; overflow: hidden; aspect-ratio: 1 / 1; border: 8px solid rgba(251,247,239,.12); background: var(--olive-2); }
.map-wrap iframe { width: 100%; height: 100%; border: 0; filter: sepia(.25) saturate(.8); }
.map-pin { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -100%); font-size: 2.6rem; color: var(--terra); pointer-events: none; animation: drop 2.2s var(--ease) infinite; filter: drop-shadow(0 6px 6px rgba(0,0,0,.3)); }
@keyframes drop { 0%, 100% { transform: translate(-50%, -100%); } 50% { transform: translate(-50%, -125%); } }

/* ---------- 9. Updates + notify ---------- */
.updates { padding: 120px 0; }
.updates-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: stretch; }
.news { background: var(--paper); border: 1px solid var(--line); border-radius: 26px; padding: 40px; }
.news-meta { display: block; font-size: .82rem; color: var(--muted); margin-bottom: 10px; }
.news h3 { font-size: 1.7rem; margin-bottom: 14px; }
.news p { color: var(--text); margin-bottom: 20px; }
.notify { position: relative; overflow: hidden; border-radius: 26px; padding: 40px; background: var(--cream-2); text-align: center; }
.notify-house { width: 120px; margin: 0 auto 14px; color: var(--olive); }
.notify-house svg { width: 100%; height: auto; overflow: visible; }
.notify-house .hs { fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 600; stroke-dashoffset: 600; transition: stroke-dashoffset 2.2s var(--ease) .2s; }
.notify.is-visible .hs { stroke-dashoffset: 0; }
.notify-house .smoke { fill: none; stroke: var(--tan); stroke-width: 2.4; stroke-linecap: round; animation: steam 2.4s ease-in-out infinite; }
.notify h2 { font-size: clamp(1.8rem, 3vw, 2.4rem); margin-bottom: 22px; }
.sub-row { display: flex; gap: 6px; padding: 6px; border-radius: 999px; background: var(--paper); border: 1px solid var(--line); max-width: 460px; margin: 0 auto; }
.sub-row input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; padding: 0 16px; color: var(--brown); }
.sub-ok { display: none; margin-top: 12px; color: var(--olive); font-weight: 500; }
form.done .sub-ok { display: block; }
.socials { display: flex; justify-content: center; align-items: center; gap: 10px; margin-top: 24px; font-size: .86rem; color: var(--muted); }
.socials a, .f-social a { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line); color: var(--olive); transition: background .3s, color .3s, transform .35s var(--ease); }
.socials a:hover { background: var(--olive); color: var(--cream); transform: translateY(-3px); }

/* ---------- 10. Footer ---------- */
.site-footer { background: var(--brown); color: rgba(251,247,239,.75); padding: 70px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr .8fr; gap: 40px; padding-bottom: 40px; border-bottom: 1px solid rgba(251,247,239,.12); }
.f-brand img { width: 170px; border-radius: 14px; }
.f-col h4 { font-family: var(--f-head); font-weight: 500; font-size: 1.25rem; color: var(--cream); margin-bottom: 12px; }
.f-col p, .f-col > a { display: block; font-size: .95rem; margin-bottom: 6px; }
.f-col > a:hover { color: #fff; }
.f-social { display: flex; gap: 8px; margin-top: 12px; }
.f-social a { border-color: rgba(251,247,239,.2); color: var(--cream); }
.f-social a:hover { background: var(--terra); border-color: var(--terra); }
.footer-bottom { padding-top: 22px; font-size: .84rem; }

/* ---------- 11. Scroll reveal ---------- */
.js-reveal .reveal { opacity: 0; transform: translateY(30px); transition: opacity 1s var(--ease) var(--rd, 0s), transform 1s var(--ease) var(--rd, 0s); }
.js-reveal .reveal.is-visible { opacity: 1; transform: none; }

/* ---------- 12. Responsive ---------- */
@media (max-width: 1100px) {
  .dish-grid { grid-template-columns: repeat(2, 1fr); }
  .hang-sign { left: -10px; }
}

@media (max-width: 920px) {
  .nav-toggle { display: block; }
  .header-cta { display: none; }
  .main-nav { position: absolute; top: calc(100% + 8px); left: 0; right: 0; background: var(--paper); border: 1px solid var(--line); border-radius: 20px; padding: 12px; box-shadow: var(--shadow); opacity: 0; visibility: hidden; transform: translateY(-10px); transition: opacity .35s, transform .35s var(--ease), visibility 0s .35s; }
  .nav-open .main-nav { opacity: 1; visibility: visible; transform: none; transition: opacity .35s, transform .35s var(--ease); }
  .nav-open .site-header::before { opacity: 1; }
  .main-nav ul { flex-direction: column; }
  .main-nav a { padding: 14px 12px; border-bottom: 1px solid var(--line); }
  .main-nav a::after { display: none; }
  .nav-cta-mobile { display: block; margin-top: 8px; }
  .nav-cta-mobile a { background: var(--olive); color: var(--cream); border-radius: 999px; text-align: center; border: 0; }

  .hero { padding: 140px 0 80px; }
  .hero-grid, .about-grid, .visit-grid, .updates-grid { grid-template-columns: 1fr; }
  .hero-visual { max-width: 480px; width: 100%; margin-inline: auto; }
  .about-logo { max-width: 380px; width: 100%; margin-inline: auto; }
  .map-wrap { aspect-ratio: 4 / 3; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .container { width: min(1180px, 100% - 32px); }
  .logo img { width: 96px; }
  .hero { padding: 120px 0 70px; }
  .hero-actions .btn { flex: 1 1 100%; }
  .rotator { min-width: 180px; }
  .hang-sign { left: -6px; top: 40px; }
  .sign-board { width: 150px; padding: 12px 10px; }
  .sign-board b { font-size: 1.2rem; }
  .strings { width: 90px; height: 36px; }
  .address-tag { right: 6px; bottom: 16px; padding: 10px 14px; }
  .marquee-track { font-size: 1.15rem; }
  .cooking-sec, .about, .visit, .updates { padding: 90px 0; }
  .dish { padding: 24px 14px 20px; }
  .dish-ic { width: 56px; height: 56px; }
  .dish h3 { font-size: 1.1rem; }
  .owner { flex-direction: column; }
  .news, .notify { padding: 30px 22px; }
  .sub-row { flex-direction: column; border-radius: 20px; }
  .sub-row input { padding: 12px 14px; }
  .footer-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .hero-in, .hero-title .ln > span, .js-reveal .reveal { opacity: 1; transform: none; }
  .hero-photo { clip-path: none; }
  .underline path, .notify-house .hs { stroke-dashoffset: 0; }
}
