/* ============================================================================
   THE HILLTOP CAFE — STYLES
   Palette + fonts are defined as CSS variables below; tweak freely.
   ============================================================================ */
:root {
    --cream: #f6fcf3;
  --cream-2: #e8f3ff;
  --paper: #fbfdff;

  --ink: #061a2e;
  --ink-soft: #3a4d66;

  --espresso: #030e21;

  --terra: #b8ff00;
  --terra-dark: #98e000;
  --terra-deep: #4f9700;

  --forest: #0b3fd6;
  --electric: #2f7bff;

  --gold: #b8ff00;

  --line: #c2d8ec;

  --veg: #1fae4e;
  --nonveg: #e74c3c;

  --shadow: 0 18px 50px -20px rgba(4, 30, 74, .28);
  
  --r: 16px;
  --maxw: 1200px;
  --serif: "Fraunces", Georgia, serif;
  --sans: "Instrument Sans", system-ui, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body.no-motion .hero-line span { transform: none !important; }
html.lenis, html.lenis body { height: auto; }

body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
::selection { background: var(--terra); color: var(--espresso); }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 clamp(20px, 5vw, 56px); }
section { position: relative; }

h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.05; letter-spacing: -0.01em; color: var(--ink); }
.eyebrow {
  font-family: var(--sans); font-weight: 600; font-size: .72rem; letter-spacing: .28em;
  text-transform: uppercase; color: var(--terra-deep); display: inline-flex; align-items: center; gap: 10px;
}
.eyebrow::before { content: ""; width: 26px; height: 1px; background: var(--terra-deep); opacity: .6; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 9px; cursor: pointer;
  font-family: var(--sans); font-weight: 600; font-size: .95rem;
  padding: 14px 26px; border-radius: 999px; border: 1px solid transparent;
  transition: transform .3s cubic-bezier(.2,.8,.2,1), background-color .3s, color .3s, box-shadow .3s;
}
.btn svg { width: 18px; height: 18px; }
.btn-solid { background: var(--ink); color: var(--cream); }
.btn-solid:hover { background: var(--terra); color: var(--espresso); transform: translateY(-3px); box-shadow: var(--shadow); }
.btn-outline { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: var(--cream); transform: translateY(-3px); }
.btn-terra { background: var(--terra); color: var(--espresso); }
.btn-terra:hover { background: var(--terra-dark); transform: translateY(-3px); box-shadow: var(--shadow); }

/* ---------- nav ---------- */
#nav {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  transition: background-color .4s, box-shadow .4s, padding .4s;
  padding: 18px 0;
}
#nav.scrolled { background: rgba(246,252,255,.92); backdrop-filter: blur(14px); box-shadow: 0 1px 0 var(--line); padding: 12px 0; }
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark {
  width: 40px; height: 40px; border-radius: 50%; background: var(--forest); color: var(--cream);
  display: grid; place-items: center; font-family: var(--serif); font-weight: 600; font-size: 1.1rem;
  border: 2px solid var(--gold);
}
.brand-name { font-family: var(--serif); font-size: 1.15rem; font-weight: 600; line-height: 1; }
.brand-name small { display: block; font-family: var(--sans); font-size: .58rem; letter-spacing: .22em; text-transform: uppercase; color: var(--terra); margin-top: 3px; }
#nav-menu { display: flex; align-items: center; gap: 30px; }
#nav-menu a { font-size: .9rem; font-weight: 500; position: relative; padding: 4px 0; }
#nav-menu a::after { content: ""; position: absolute; left: 0; bottom: 0; width: 0; height: 1.5px; background: var(--terra); transition: width .3s; }
#nav-menu a:hover::after { width: 100%; }
.nav-call { display: inline-flex; align-items: center; gap: 8px; background: var(--ink); color: var(--cream); padding: 10px 18px; border-radius: 999px; font-size: .85rem; font-weight: 600; transition: background-color .3s, transform .3s; }
.nav-call:hover { background: var(--terra); color: var(--espresso); transform: translateY(-2px); }
.nav-call svg { width: 16px; height: 16px; }
#nav-toggle { display: none; background: none; border: none; cursor: pointer; width: 44px; height: 44px; }
#nav-toggle span { display: block; width: 24px; height: 2px; background: var(--ink); margin: 5px auto; transition: transform .3s, opacity .3s; }
#nav.open #nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
#nav.open #nav-toggle span:nth-child(2) { opacity: 0; }
#nav.open #nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- hero ---------- */
#home { min-height: 100svh; display: flex; align-items: flex-end; position: relative; overflow: hidden; padding-bottom: clamp(40px, 7vw, 90px); }
#hero-photo {
  position: absolute; inset: -12% 0 0 0; background-size: cover; background-position: center;
  z-index: 0; will-change: transform;
}
#home::after { content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, rgba(3,13,33,.6) 0%, rgba(3,13,33,.28) 40%, rgba(3,13,33,.86) 100%); }
.hero-content { position: relative; z-index: 2; color: var(--cream); max-width: 900px; }
.hero-badge { color: var(--gold); }
.hero-badge::before { background: var(--gold); }
.hero-title { color: #fff; font-size: clamp(2.9rem, 9vw, 6.5rem); margin: 18px 0 20px; }
.hero-line { display: block; overflow: hidden; }
.hero-line span { display: block; }
.hero-sub { max-width: 520px; font-size: clamp(1rem, 1.4vw, 1.2rem); color: rgba(255,255,255,.86); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 26px; margin-top: 40px; padding-top: 26px; border-top: 1px solid rgba(255,255,255,.22); }
.hero-meta div { color: rgba(255,255,255,.9); }
.hero-meta strong { display: block; font-family: var(--serif); font-size: 1.15rem; color: #fff; }
.hero-meta span { font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); }

.ownersname {
  margin-left: 12px;
}
/* ---------- marquee ---------- */
.marquee { background: var(--ink); color: var(--cream); overflow: hidden; padding: 20px 0; border-block: 1px solid var(--espresso); }
.marquee-track { display: flex; gap: 44px; width: max-content; animation: slide 34s linear infinite; }
.marquee span { font-family: var(--serif); font-size: clamp(1.3rem, 3vw, 2rem); font-style: italic; white-space: nowrap; opacity: .92; }
.marquee span i { color: var(--gold); font-style: normal; margin-right: 44px; }
@keyframes slide { to { transform: translateX(-50%); } }

/* ---------- section shell ---------- */
.sec { padding: clamp(70px, 11vw, 140px) 0; }
.sec-head { max-width: 640px; margin-bottom: clamp(38px, 6vw, 66px); }
.sec-head h2 { font-size: clamp(2.1rem, 5vw, 3.6rem); margin: 16px 0 0; }
.sec-head p { margin-top: 18px; color: var(--ink-soft); font-size: 1.05rem; }
.chapter { font-family: var(--serif); font-style: italic; color: var(--terra-deep); font-size: 1rem; }

/* ---------- about ---------- */
#about { background: var(--paper); }
.about-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(30px, 5vw, 72px); align-items: center; }
.about-text p { color: var(--ink-soft); font-size: 1.08rem; margin-top: 18px; max-width: 46ch; }
.about-feats { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.about-feats span { font-size: .82rem; font-weight: 600; padding: 9px 16px; border: 1px solid var(--line); border-radius: 999px; background: var(--cream); }
.about-imgs { position: relative; }
.about-imgs img { border-radius: var(--r); object-fit: cover; box-shadow: var(--shadow); }
#about-photo { width: 100%; height: 460px; }
#about-photo2 { position: absolute; width: 42%; height: 210px; right: -6%; bottom: -8%; border: 6px solid var(--paper); }
.about-note { font-size: .8rem; color: var(--ink-soft); font-style: italic; margin-top: 22px; opacity: .8; }

/* ---------- featured ---------- */
#featured-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.feat-card { background: var(--paper); border-radius: var(--r); overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--line); transition: transform .4s cubic-bezier(.2,.8,.2,1); }
.feat-card:hover { transform: translateY(-8px); }
.feat-img { aspect-ratio: 4/3; overflow: hidden; }
.feat-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.feat-card:hover .feat-img img { transform: scale(1.07); }
.feat-body { padding: 22px 22px 24px; }
.feat-top { display: flex; align-items: center; gap: 10px; }
.feat-top h3 { font-size: 1.25rem; }
.feat-note { color: var(--ink-soft); font-size: .9rem; margin: 8px 0 14px; }
.feat-price { font-family: var(--serif); font-size: 1.4rem; color: var(--terra-deep); }

/* ---------- diet dots ---------- */
.diet { display: inline-flex; gap: 3px; flex-shrink: 0; }
.diet i { width: 14px; height: 14px; border-radius: 3px; display: block; position: relative; }
.diet i.v { border: 1.5px solid var(--veg); }
.diet i.n { border: 1.5px solid var(--nonveg); }
.diet i::after { content: ""; position: absolute; inset: 0; margin: auto; width: 6px; height: 6px; border-radius: 50%; }
.diet i.v::after { background: var(--veg); }
.diet i.n::after { background: var(--nonveg); }

/* ---------- menu ---------- */
#menu { background: var(--cream-2); }
#menu-filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 44px; position: sticky; top: 68px; z-index: 40; padding: 6px 0; }
.chip { font-family: var(--sans); font-weight: 600; font-size: .86rem; padding: 9px 18px; border-radius: 999px; border: 1px solid var(--line); background: var(--paper); color: var(--ink-soft); cursor: pointer; transition: background-color .25s, color .25s, border-color .25s, transform .25s; }
.chip:hover { transform: translateY(-2px); color: var(--ink); }
.chip.active { background: var(--terra); color: var(--espresso); border-color: var(--terra); }
#menu-list { display: grid; gap: clamp(34px, 5vw, 56px); }
.mcat-title { font-size: 1.7rem; padding-bottom: 14px; margin-bottom: 8px; border-bottom: 2px solid var(--terra); display: inline-block; }
.mitems { list-style: none; display: grid; grid-template-columns: repeat(2, 1fr); gap: 4px 44px; }
.mgroup { grid-column: 1/-1; font-family: var(--sans); font-weight: 700; font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; color: var(--terra-deep); margin: 22px 0 6px; }
.mitem { padding: 15px 0; border-bottom: 1px dashed var(--line); }
.mitem-head { display: flex; align-items: center; gap: 10px; }
.mname { font-weight: 600; font-size: 1.02rem; }
.mdesc { font-size: .84rem; color: var(--ink-soft); margin: 4px 0 0 24px; }
.prices { display: flex; gap: 16px; margin: 8px 0 0 24px; }
.pv { font-family: var(--serif); font-size: 1.02rem; color: var(--terra-deep); }
.pv em { display: block; font-family: var(--sans); font-style: normal; font-size: .64rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-soft); }
.pv.single { font-size: 1.12rem; }
.menu-foot { margin-top: 40px; font-size: .85rem; color: var(--ink-soft); font-style: italic; }

/* ---------- gallery ---------- */
#gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 200px; gap: 16px; }
.gitem { overflow: hidden; border-radius: var(--r); box-shadow: var(--shadow); }
.gitem img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s ease; }
.gitem:hover img { transform: scale(1.08); }
.gitem:nth-child(1) { grid-column: span 2; grid-row: span 2; }
.gitem:nth-child(4) { grid-row: span 2; }

/* ---------- info band (hours + location + contact) ---------- */
#visit { background: var(--espresso); color: var(--cream); }
#visit .eyebrow { color: var(--gold); }
#visit .eyebrow::before { background: var(--gold); }
#visit h2 { color: var(--cream); }
.info-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.info-card { background: rgba(255,255,255,.045); border: 1px solid rgba(255,255,255,.12); border-radius: var(--r); padding: 34px 30px; transition: transform .4s, background-color .4s; }
.info-card:hover { transform: translateY(-6px); background: rgba(255,255,255,.08); }
.info-card .ico { width: 46px; height: 46px; border-radius: 12px; background: var(--terra); display: grid; place-items: center; margin-bottom: 20px; }
.info-card .ico svg { width: 22px; height: 22px; stroke: var(--espresso); }
.info-card h3 { color: var(--cream); font-size: 1.3rem; }
.info-card p, .info-card address { color: rgba(230,240,252,.8); font-style: normal; margin-top: 12px; line-height: 1.7; font-size: .97rem; }
.info-card .big { font-family: var(--serif); font-size: 1.7rem; color: var(--gold); margin-top: 10px; }
.info-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.tag-ph { display: inline-block; font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); border: 1px dashed rgba(184,255,0,.5); padding: 3px 9px; border-radius: 6px; margin-top: 14px; }
.map-embed { margin-top: 40px; border-radius: var(--r); overflow: hidden; border: 1px solid rgba(255,255,255,.12); background: rgba(255,255,255,.04); padding: 40px; text-align: center; }
.map-embed p { color: rgba(230,240,252,.7); margin-bottom: 18px; }

/* ---------- instagram ---------- */
#social { background: linear-gradient(150deg, #eaf4ff 0%, #d2e7ff 100%); color: var(--ink); text-align: center; }
#social .eyebrow { color: var(--terra-deep); justify-content: center; }
#social .eyebrow::before { display: none; }
#social h2 { color: var(--ink); font-size: clamp(2.2rem, 6vw, 4rem); margin: 14px 0 20px; }
#social p { color: var(--ink-soft); max-width: 520px; margin: 0 auto 30px; }
.ig-handle { font-family: var(--serif); font-size: 1.4rem; color: var(--terra-deep); }

/* ---------- footer ---------- */
footer { background: var(--espresso); color: rgba(230,240,252,.72); padding: 70px 0 34px; }
.foot-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 40px; padding-bottom: 44px; border-bottom: 1px solid rgba(255,255,255,.1); }
.foot-grid h4 { font-family: var(--sans); font-size: .74rem; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); margin-bottom: 18px; }
.foot-brand .brand-name { color: var(--cream); font-size: 1.6rem; }
.foot-brand p { margin-top: 16px; max-width: 34ch; }
.foot-links { display: grid; gap: 10px; }
.foot-links a:hover { color: var(--terra); }
.foot-grid address { font-style: normal; line-height: 1.8; }
.foot-bot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-top: 26px; font-size: .82rem; }

/* ---------- reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(34px); transition: opacity .8s ease, transform .8s cubic-bezier(.2,.8,.2,1); transition-delay: var(--d, 0ms); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  #nav-toggle { display: block; }
  #nav-menu {
    position: fixed; inset: 0 0 0 auto; width: min(78vw, 320px); flex-direction: column; align-items: flex-start;
    justify-content: center; gap: 22px; background: var(--paper); padding: 40px; z-index: 90;
    transform: translateX(100%); transition: transform .45s cubic-bezier(.2,.8,.2,1); box-shadow: var(--shadow);
  }
  #nav.open #nav-menu { transform: translateX(0); }
  #nav-menu a { font-size: 1.15rem; }
  .nav-call { display: none; }
  .about-grid { grid-template-columns: 1fr; }
  #about-photo2 { display: none; }
  #featured-grid { grid-template-columns: 1fr 1fr; gap: 18px; }
  .info-grid { grid-template-columns: 1fr; }
  #gallery-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 160px; }
  .gitem:nth-child(1) { grid-column: span 2; grid-row: span 1; }
  .gitem:nth-child(4) { grid-row: span 1; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  #menu-filters { top: 60px; }
}
@media (max-width: 620px) {
  .mitems { grid-template-columns: 1fr; }
  #featured-grid { grid-template-columns: 1fr; }
  .hero-meta { gap: 20px; }
  .foot-grid { grid-template-columns: 1fr; }
  .btn { flex: 1 1 auto; justify-content: center; }
  .hero-cta { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .001ms !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
  .marquee-track { animation: none; }
}
