/* ===========================
   THE FUNKY HOUSE — styles.css
   Palette: Newari brick · temple gold · near-black · aged cream
   =========================== */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --ink:     #0C0C0C;
  --dark:    #161412;
  --panel:   #1E1B18;
  --brick:   #9B3535;
  --gold:    #C8952A;
  --gold-lt: #E8B84B;
  --cream:   #F5EAD5;
  --parchment: #EDE0C8;
  --white:   #FAFAF8;
  --mid:     #5A5048;
  --radius:  4px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', system-ui, sans-serif;
  background: var(--ink);
  color: var(--cream);
  font-size: 16px;
  line-height: 1.65;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }

/* ===== PAGE TRANSITIONS ===== */
.page-overlay {
  position: fixed;
  inset: 0;
  background: var(--ink);
  z-index: 9999;
  pointer-events: none;
  transition: opacity 0.38s ease;
}
.page-enter .page-overlay { opacity: 1; }
.page-loaded .page-overlay { opacity: 0; }
.page-exit .page-overlay { opacity: 1; pointer-events: all; }

/* ===== SCROLL REVEAL ===== */
.reveal {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 0.72s cubic-bezier(.22,1,.36,1),
              transform 0.72s cubic-bezier(.22,1,.36,1);
}
.reveal[style*="--rd:1"] { transition-delay: 0.1s; }
.reveal[style*="--rd:2"] { transition-delay: 0.2s; }
.reveal[style*="--rd:3"] { transition-delay: 0.3s; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ===== HERO WORD ANIMATIONS ===== */
.anim-word {
  opacity: 0;
  transform: translateY(28px);
  animation: wordUp 0.7s cubic-bezier(.22,1,.36,1) forwards;
  animation-delay: calc(var(--d, 0) * 0.12s + 0.15s);
}
@keyframes wordUp {
  to { opacity: 1; transform: translateY(0); }
}

/* ===== HEADER ===== */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  padding: 0;
  transition: background 0.3s, padding 0.3s, box-shadow 0.3s;
}
.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: padding 0.3s;
}
.header--scrolled {
  background: rgba(12,12,12,0.95);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(200,149,42,0.15);
}
.header--scrolled .header-inner { padding: 0.7rem 1.5rem; }

.logo-link { display: flex; align-items: center; gap: 0.65rem; }
.logo-img {
  width: 34px; height: 34px;
  border-radius: 50%;
  object-fit: cover;
  border: 1.5px solid var(--gold);
}
.logo-text {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.15rem;
  letter-spacing: 0.1em;
  color: var(--gold-lt);
  white-space: nowrap;
}
.nav { display: flex; align-items: center; gap: 1.75rem; }
.nav a {
  font-size: 0.85rem;
  font-weight: 500;
  color: rgba(245,234,213,0.7);
  transition: color 0.2s;
  letter-spacing: 0.02em;
}
.nav a:hover { color: var(--cream); }
.nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--brick);
  color: var(--white) !important;
  padding: 0.45rem 1.1rem;
  border-radius: var(--radius);
  font-weight: 600;
  letter-spacing: 0.03em;
  line-height: 1;
  white-space: nowrap;
  opacity: 1 !important;
  transition: background 0.2s !important;
}
.nav-cta:hover { background: #7e2a2a !important; }
.nav-menu-link {
  color: var(--gold-lt) !important;
  font-weight: 600;
}
.nav-menu-link:hover { color: var(--gold) !important; }

/* ===== HERO ===== */
.hero {
  min-height: 100svh;
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
}
.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  transform: scale(1.06);
  animation: heroZoom 8s ease forwards;
}
@keyframes heroZoom {
  to { transform: scale(1); }
}
.hero__bg img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: brightness(0.68) saturate(0.9);
}
.hero__scrim {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(
    175deg,
    rgba(12,12,12,0.3) 0%,
    rgba(12,12,12,0.2) 40%,
    rgba(12,12,12,0.75) 100%
  );
}
.hero__inner {
  position: relative; z-index: 2;
  width: 100%; max-width: 92vw;
  display: flex; flex-direction: column;
  gap: 0.9rem; align-items: center; text-align: center;
  padding: 2rem 1.5rem;
  margin-top: 60px;
}
.hero__eyebrow {
  font-size: clamp(0.7rem, 2vw, 0.82rem);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-lt);
  font-weight: 500;
}
.hero__title {
  display: flex; flex-direction: column;
  gap: 0; align-items: center;
  line-height: 0.9;
}
.hero__word {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(4rem, 15vw, 9rem);
  letter-spacing: 0.04em;
  color: var(--white);
  text-shadow: 0 4px 30px rgba(0,0,0,0.5);
  display: block;
}
.hero__word--accent { color: var(--gold-lt); }
.hero__sub {
  font-size: clamp(0.82rem, 2.8vw, 0.98rem);
  color: rgba(245,234,213,0.8);
  letter-spacing: 0.04em;
}
.hero__cta {
  display: flex; flex-direction: column; gap: 0.65rem;
  width: 100%; max-width: 22rem; margin-top: 0.4rem;
}
.hero__cta .btn { width: 100%; }
.hero__rating {
  display: flex; align-items: center; gap: 0.5rem;
  font-size: 0.8rem; color: rgba(245,234,213,0.6);
}
.stars { color: var(--gold-lt); letter-spacing: -1px; font-size: 0.9rem; }

.hero__scroll-hint {
  position: absolute; bottom: 2rem; left: 50%; transform: translateX(-50%);
  z-index: 2;
}
.hero__scroll-hint span {
  display: block; width: 1px; height: 60px;
  background: linear-gradient(to bottom, transparent, var(--gold));
  margin: 0 auto;
  animation: scrollLine 1.8s ease-in-out infinite;
}
@keyframes scrollLine {
  0% { transform: scaleY(0); transform-origin: top; }
  50% { transform: scaleY(1); transform-origin: top; }
  51% { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ===== MARQUEE ===== */
.marquee-wrap {
  background: var(--gold);
  overflow: hidden;
  padding: 0.7rem 0;
}
.marquee-track {
  display: flex; gap: 1.5rem;
  white-space: nowrap;
  animation: marquee 22s linear infinite;
  width: max-content;
}
.marquee-track span {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink);
}
.dot { color: var(--brick) !important; }
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0.85rem 1.5rem; min-height: 48px;
  border-radius: var(--radius);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.9rem; font-weight: 600; letter-spacing: 0.04em;
  transition: opacity 0.2s, transform 0.15s, background 0.2s;
  cursor: pointer;
}
.btn:active { transform: scale(0.96); }
.btn--primary { background: var(--brick); color: var(--white); }
.btn--primary:hover { opacity: 0.88; }
.btn--ghost {
  background: transparent;
  border: 1.5px solid rgba(245,234,213,0.5);
  color: var(--cream);
}
.btn--ghost:hover { border-color: var(--cream); }
.btn--gold { background: var(--gold); color: var(--ink); }
.btn--gold:hover { background: var(--gold-lt); }
.btn--ghost-light {
  background: transparent;
  border: 1.5px solid rgba(245,234,213,0.3);
  color: rgba(245,234,213,0.8);
}
.btn--ghost-light:hover { border-color: var(--cream); color: var(--cream); }
.btn--outline {
  background: transparent;
  border: 1.5px solid var(--gold);
  color: var(--gold);
}
.btn--outline:hover { background: var(--gold); color: var(--ink); }

/* ===== SECTIONS ===== */
.section { padding: 6rem 0; }
.section--dark { background: var(--panel); }
.section--cream { background: var(--cream); color: var(--ink); }
.section--cream .label { color: var(--brick); }
.section--cream .section-title { color: var(--ink); }

.container { max-width: 1100px; margin: 0 auto; padding: 0 1.5rem; }
.container--split { display: flex; flex-direction: column; gap: 3rem; }

.section-head { text-align: center; margin-bottom: 3.5rem; }
.label {
  font-size: 0.72rem; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--gold); font-weight: 600; margin-bottom: 0.5rem;
  display: block;
}
.label--light { color: var(--gold-lt); }
.section-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.4rem, 7vw, 4rem);
  color: var(--white); line-height: 1.1;
  margin-bottom: 0.6rem;
}
.section-title em { color: var(--gold-lt); font-style: italic; }
.section-title--light { color: var(--cream); }
.section-desc { font-size: 0.95rem; color: rgba(245,234,213,0.55); }

/* ===== DISHES ===== */
.dishes-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}
.dish-card {
  position: relative; overflow: hidden; border-radius: 6px;
  transition: transform 0.35s cubic-bezier(.22,1,.36,1);
}
.dish-card:hover { transform: translateY(-4px); }
.dish-card[style*="--rd:0"] { transition-delay: 0s; }
.dish-card[style*="--rd:1"] { transition-delay: 0.08s; }
.dish-card[style*="--rd:2"] { transition-delay: 0.16s; }
.dish-card[style*="--rd:3"] { transition-delay: 0.24s; }

.dish-card__img {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4/3;
}
.dish-card--wide .dish-card__img { aspect-ratio: 16/7; }
.dish-card__img img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.5s cubic-bezier(.22,1,.36,1);
}
.dish-card:hover .dish-card__img img { transform: scale(1.06); }

.dish-card__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(12,12,12,0.85) 0%, transparent 60%);
  display: flex; align-items: flex-end; justify-content: flex-end;
  padding: 1rem;
  opacity: 0;
  transition: opacity 0.3s;
}
.dish-card:hover .dish-card__overlay { opacity: 1; }
.dish-card__overlay span {
  background: var(--gold);
  color: var(--ink);
  font-size: 0.78rem; font-weight: 700;
  padding: 0.35rem 0.85rem;
  border-radius: 99px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.dish-card__overlay--dark {
  background: rgba(12,12,12,0.72);
  flex-direction: column; align-items: flex-start; justify-content: flex-end;
  opacity: 1; padding: 1.5rem;
}
.dish-card__quote {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1rem, 3vw, 1.3rem);
  color: var(--cream); font-style: italic; line-height: 1.4;
  margin-bottom: 0.5rem;
}
.dish-card__reviewer { font-size: 0.8rem; color: var(--gold-lt); }

.dish-card__body {
  padding: 1rem 1.1rem;
  background: var(--panel);
}
.dish-card__body h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem; color: var(--cream); margin-bottom: 0.2rem;
}
.dish-card__body p { font-size: 0.82rem; color: rgba(245,234,213,0.5); }

.dishes-cta { text-align: center; margin-top: 2.5rem; }

/* ===== ABOUT ===== */
.about-img {
  position: relative;
}
.about-img img {
  width: 100%; height: 320px; object-fit: cover;
  border-radius: 6px;
}
.about-img__badge {
  position: absolute; bottom: -1rem; right: 1rem;
  background: var(--gold);
  color: var(--ink);
  border-radius: 6px;
  padding: 0.75rem 1rem;
  text-align: center;
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}
.about-img__badge strong { display: block; font-size: 1.6rem; font-weight: 700; line-height: 1; }
.about-img__badge span { font-size: 0.7rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; }

.about-text p {
  font-size: 0.96rem; line-height: 1.8;
  color: rgba(245,234,213,0.75);
  margin-bottom: 1rem;
}
.about-tags {
  display: flex; flex-wrap: wrap; gap: 0.5rem;
  margin: 1.25rem 0;
}
.about-tags span {
  background: rgba(200,149,42,0.12);
  color: var(--gold-lt);
  border: 1px solid rgba(200,149,42,0.25);
  border-radius: 99px;
  padding: 0.3rem 0.9rem;
  font-size: 0.78rem; font-weight: 500;
}
.about-cta { display: flex; gap: 0.75rem; flex-wrap: wrap; }

/* ===== CONTACT ===== */
.section--cream .section-head { text-align: left; }
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}
.contact-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.info-card {
  background: var(--parchment);
  border-radius: 6px;
  padding: 1.25rem;
  border-left: 3px solid var(--brick);
}
.info-card[style*="--rd:1"] { transition-delay: 0.1s; }
.info-card[style*="--rd:2"] { transition-delay: 0.2s; }
.info-card[style*="--rd:3"] { transition-delay: 0.3s; }
.info-card__label {
  font-size: 0.7rem; letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--brick); font-weight: 700; margin-bottom: 0.35rem;
}
.info-card__value { font-size: 0.93rem; color: var(--ink); line-height: 1.6; }
.info-card__value a { color: var(--brick); }
.info-card__value a:hover { text-decoration: underline; }

.map-wrap {
  width: 100%; height: 300px;
  border-radius: 6px; overflow: hidden;
  box-shadow: 0 4px 24px rgba(0,0,0,0.12);
}
.map-wrap iframe { width: 100%; height: 100%; }

/* ===== FOOTER ===== */
.site-footer {
  background: var(--dark);
  border-top: 1px solid rgba(200,149,42,0.1);
  padding: 2rem 0;
}
.footer-inner {
  max-width: 1100px; margin: 0 auto; padding: 0 1.5rem;
  display: flex; flex-direction: column;
  align-items: center; gap: 0.5rem; text-align: center;
}
.footer-brand {
  display: flex; align-items: center; gap: 0.6rem;
  margin-bottom: 0.5rem;
}
.footer-logo { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; }
.footer-brand span {
  font-family: 'Bebas Neue', sans-serif;
  letter-spacing: 0.1em; font-size: 1rem; color: var(--gold-lt);
}
.footer-copy { font-size: 0.8rem; color: rgba(245,234,213,0.3); }
.footer-credit { font-size: 0.78rem; color: rgba(245,234,213,0.2); }
.footer-credit strong { color: var(--gold); }

/* ===== RESPONSIVE ===== */

/* Mobile-only fixes */
@media (max-width: 639px) {
  /* Header: smaller name, hide secondary nav + menu link */
  .logo-text { font-size: 0.78rem; letter-spacing: 0.08em; }
  .nav { gap: 0.6rem; }
  .nav a.nav-secondary { display: none; }
  .nav-menu-link { font-size: 0.82rem; }
  .nav-cta { padding: 0.4rem 0.9rem; font-size: 0.82rem; }

  /* Hero: tighter on small screens */
  .hero__word { font-size: clamp(3.2rem, 18vw, 5rem); }
  .hero__cta { max-width: 20rem; }

  /* Sections */
  .section { padding: 4rem 0; }
  .contact-cards { grid-template-columns: 1fr; }
}

@media (min-width: 640px) {
  .dishes-grid { grid-template-columns: 1fr 1fr; }
  .dish-card--wide { grid-column: 1 / -1; }
}

@media (min-width: 820px) {
  .hero__inner { max-width: 70ch; }
  .hero__cta { flex-direction: row; flex-wrap: wrap; max-width: none; }
  .hero__cta .btn { width: auto; }
  .hero__word { font-size: clamp(5rem, 12vw, 9rem); }

  .dishes-grid { grid-template-columns: repeat(3, 1fr); }
  .dish-card--wide { grid-column: 1 / -1; }

  .container--split { flex-direction: row; align-items: flex-start; gap: 5rem; }
  .about-img { flex: 1; }
  .about-img img { height: 480px; }
  .about-text { flex: 1; padding-top: 1rem; }

  .contact-grid { grid-template-columns: 1fr 1.4fr; }
  .map-wrap { height: 100%; min-height: 320px; }

  .footer-inner { flex-direction: row; justify-content: space-between; text-align: left; }
  .footer-brand { margin-bottom: 0; }
}
