/* ==========================================================================
   Hambu Café — stylesheet
   ========================================================================== */

:root {
  --bg: #f7f2e7;
  --bg-alt: #efe6d2;
  --dark: #17150f;
  --dark-soft: #24211a;
  --ink: #201d17;
  --ink-soft: #5b5548;
  --ink-faint: #8a8272;
  --forest: #333f2c;
  --forest-soft: #4b5940;
  --rust: #b1542b;
  --rust-dark: #8f4020;
  --cream-on-dark: #efe6d2;
  --line: rgba(32, 29, 23, 0.13);
  --line-on-dark: rgba(239, 230, 210, 0.18);

  --serif: "Fraunces", "Iowan Old Style", Georgia, serif;
  --sans: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

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

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
body, h1, h2, h3, h4, p, figure { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
img { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 600;
  color: var(--ink);
  line-height: 1.15;
  letter-spacing: -0.01em;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--rust);
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background: var(--rust);
  display: inline-block;
}

.section-head {
  max-width: 640px;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}
.section-head h2 {
  margin-top: 0.9rem;
  font-size: clamp(1.9rem, 2.6vw + 1rem, 2.85rem);
}
.section-head p {
  margin-top: 1.1rem;
  color: var(--ink-soft);
  font-size: 1.05rem;
  max-width: 52ch;
}
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center p { margin-inline: auto; }

section { position: relative; }
.section-pad { padding-block: clamp(4.5rem, 9vw, 8rem); }

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -60px;
  background: var(--dark);
  color: var(--cream-on-dark);
  padding: 0.7em 1.2em;
  border-radius: 4px;
  z-index: 300;
  transition: top 0.2s ease;
}
.skip-link:focus { top: 1rem; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  padding: 0.9em 1.6em;
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.25s ease, background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary {
  background: var(--rust);
  color: #fdf8ee;
}
.btn-primary:hover { background: var(--rust-dark); }
.btn-outline {
  background: transparent;
  border-color: currentColor;
  color: var(--ink);
}
.btn-outline:hover { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.btn-on-dark {
  border-color: var(--line-on-dark);
  color: var(--cream-on-dark);
}
.btn-on-dark:hover { background: var(--cream-on-dark); color: var(--dark); }
.btn svg { width: 1em; height: 1em; }

/* ---------- header ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  padding-block: 1.1rem;
  color: #fff;
  transition: padding 0.35s ease, color 0.35s ease;
}
/* The frosted background lives on a pseudo-element (not the header itself) so
   backdrop-filter never turns .site-header into a containing block for its
   position:fixed descendants (the mobile nav overlay) — see main-nav below. */
.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0;
  background: rgba(247, 242, 231, 0.92);
  backdrop-filter: saturate(160%) blur(10px);
  box-shadow: 0 1px 0 var(--line);
  transition: opacity 0.35s ease;
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}
.site-header.is-scrolled {
  padding-block: 0.75rem;
  color: var(--ink);
}
.site-header:not(.is-scrolled) .brand-name,
.site-header:not(.is-scrolled) .main-nav:not(.is-open) a {
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.35);
}
.site-header.is-scrolled::before { opacity: 1; }
.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
}
.brand-mark {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.25);
  transition: border-color 0.35s ease;
}
.site-header.is-scrolled .brand-mark { border-color: var(--line); box-shadow: none; }
.brand-name {
  font-family: var(--serif);
  font-size: 1.3rem;
  font-weight: 600;
  color: inherit;
}
.brand-name span { color: var(--rust); }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  padding: 0.4rem;
  cursor: pointer;
  color: inherit;
  filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.35));
}
.site-header.is-scrolled .nav-toggle,
.nav-open .nav-toggle {
  filter: none;
}
.nav-toggle .bar {
  display: block;
  width: 24px;
  height: 2px;
  background: currentColor;
  margin: 5px 0;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.main-nav ul {
  display: flex;
  align-items: center;
  gap: clamp(1.2rem, 2vw, 2.2rem);
}
.main-nav a {
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 600;
  color: inherit;
  opacity: 0.88;
  position: relative;
  padding-bottom: 3px;
}
.main-nav a:hover { opacity: 1; }
.main-nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 1px;
  background: var(--rust);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}
.main-nav a:hover::after { transform: scaleX(1); }

.header-cta { display: flex; align-items: center; gap: 1.5rem; }

@media (max-width: 860px) {
  .nav-toggle { display: block; z-index: 210; }
  .main-nav {
    position: fixed;
    inset: 0;
    background: var(--bg);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease;
  }
  .main-nav.is-open { opacity: 1; visibility: visible; }
  .main-nav ul {
    flex-direction: column;
    gap: 2rem;
    text-align: center;
  }
  .main-nav a { font-size: 1.4rem; color: var(--ink-soft); opacity: 1; }
  .main-nav a:hover { color: var(--ink); }
  .header-cta .btn-primary { display: none; }
  .nav-open .nav-toggle { color: var(--ink); }
  .nav-open .nav-toggle .bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-open .nav-toggle .bar:nth-child(2) { opacity: 0; }
  .nav-open .nav-toggle .bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

/* ---------- hero ---------- */
.hero {
  position: relative;
  min-height: clamp(560px, 92vh, 880px);
  display: flex;
  align-items: flex-end;
  padding-top: clamp(7.5rem, 14vw, 10.5rem);
  padding-bottom: clamp(3rem, 7vw, 5rem);
  overflow: hidden;
  color: #fff;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
}
.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 62%;
}
.hero-scrim {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(65% 85% at 20% 48%, rgba(14, 12, 8, 0.78) 0%, rgba(14, 12, 8, 0.4) 50%, rgba(14, 12, 8, 0) 78%),
    linear-gradient(180deg, rgba(23, 21, 15, 0.15) 0%, rgba(23, 21, 15, 0.25) 40%, rgba(23, 21, 15, 0.85) 100%);
}
.hero .container {
  position: relative;
  width: 100%;
}
.hero-copy {
  max-width: 620px;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6), 0 8px 28px rgba(0, 0, 0, 0.5);
}
.hero-copy h1 {
  margin-top: 1rem;
  color: #fff;
  font-size: clamp(2.4rem, 3vw + 1.3rem, 3.8rem);
}
.hero-copy p {
  margin-top: 1.4rem;
  font-size: 1.12rem;
  color: rgba(255, 255, 255, 0.85);
  max-width: 46ch;
}
.hero-actions {
  margin-top: 2.2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}
.hero-stats {
  margin-top: 3rem;
  display: flex;
  gap: clamp(1.5rem, 4vw, 3rem);
  flex-wrap: wrap;
}
.hero-stats div strong {
  display: block;
  font-family: var(--serif);
  font-size: 1.6rem;
  color: var(--rust);
}
.hero-stats div span {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.65);
  letter-spacing: 0.02em;
}

/* ---------- about ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: center;
}
.about-copy p + p { margin-top: 1.1rem; }
.about-copy p { color: var(--ink-soft); font-size: 1.02rem; }
.quote-strip {
  margin-top: 2rem;
  padding-left: 1.1rem;
  border-left: 2px solid var(--rust);
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.15rem;
  color: var(--ink);
}
.about-photos {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 1rem;
}
.about-photos .tall { grid-row: span 2; }
.about-photos figure {
  border-radius: var(--radius);
  overflow: hidden;
  margin: 0;
  background: var(--bg-alt);
}
.about-photos img { width: 100%; height: 100%; object-fit: cover; }
.about-photos .tall img { aspect-ratio: 3/4; }
.about-photos .short img { aspect-ratio: 4/3; }

@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; }
  .about-photos { order: -1; }
}

/* ---------- alt bg sections ---------- */
.bg-alt { background: var(--bg-alt); }

/* ---------- menu ---------- */
.menu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.75rem;
}
@media (min-width: 720px) {
  .menu-grid { grid-template-columns: repeat(3, 1fr); }
}
.menu-card {
  background: var(--bg);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.menu-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 40px -28px rgba(23,21,15,0.35);
}
.menu-card figure { aspect-ratio: 5/4; overflow: hidden; margin: 0; }
.menu-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.menu-card:hover img { transform: scale(1.06); }
.menu-card-body { padding: 1.4rem 1.5rem 1.7rem; }
.menu-card-body h3 { font-size: 1.18rem; }
.menu-card-body p { margin-top: 0.6rem; color: var(--ink-soft); font-size: 0.94rem; }
.menu-note {
  margin-top: 3rem;
  text-align: center;
  color: var(--ink-faint);
  font-size: 0.92rem;
}

/* ---------- experiences ---------- */
.experience {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
.experience + .experience { margin-top: clamp(3.5rem, 8vw, 6rem); }
.experience:nth-child(even) .experience-media { order: 2; }
.experience-media figure {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4/3;
}
.experience-media img { width: 100%; height: 100%; object-fit: cover; }
.experience-copy .eyebrow { margin-bottom: 0.2rem; }
.experience-copy h3 { font-size: clamp(1.5rem, 1.6vw + 1rem, 2rem); margin-top: 0.6rem; }
.experience-copy p { margin-top: 1rem; color: var(--ink-soft); }
.experience-list {
  margin-top: 1.3rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}
.experience-list li {
  display: flex;
  gap: 0.7em;
  font-size: 0.94rem;
  color: var(--ink-soft);
}
.experience-list li::before {
  content: "";
  width: 6px; height: 6px;
  margin-top: 0.55em;
  border-radius: 50%;
  background: var(--rust);
  flex: none;
}

@media (max-width: 860px) {
  .experience { grid-template-columns: 1fr; }
  .experience:nth-child(even) .experience-media { order: -1; }
}

/* ---------- gallery ---------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 210px;
  gap: 0.85rem;
}
.gallery-grid .g-item {
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius);
  position: relative;
  cursor: zoom-in;
}
.gallery-grid .g-item.tall { grid-row: span 2; }
.gallery-grid .g-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.gallery-grid .g-item:hover img { transform: scale(1.07); }
.gallery-grid .g-item button {
  position: absolute; inset: 0;
  border: none; background: transparent;
  padding: 0; cursor: zoom-in;
}

@media (max-width: 760px) {
  .gallery-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 160px; }
}

/* lightbox */
.lightbox {
  position: fixed; inset: 0;
  background: rgba(15, 13, 9, 0.92);
  display: flex; align-items: center; justify-content: center;
  padding: 2rem;
  z-index: 400;
  opacity: 0; visibility: hidden;
  transition: opacity 0.25s ease;
}
.lightbox.is-open { opacity: 1; visibility: visible; }
.lightbox img {
  max-width: min(1100px, 92vw);
  max-height: 88vh;
  width: auto;
  border-radius: 4px;
  box-shadow: 0 40px 80px rgba(0,0,0,0.5);
}
.lightbox-close {
  position: absolute;
  top: 1.5rem; right: 1.5rem;
  background: none; border: 1px solid var(--line-on-dark);
  color: #fff; width: 44px; height: 44px;
  border-radius: 50%;
  font-size: 1.3rem;
  cursor: pointer;
}
.lightbox-caption {
  position: absolute;
  bottom: 2rem; left: 0; right: 0;
  text-align: center;
  color: rgba(255,255,255,0.75);
  font-size: 0.85rem;
}

/* ---------- visit ---------- */
.visit-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2.5rem, 6vw, 5rem);
}
.visit-card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1.6rem, 3vw, 2.4rem);
}
.visit-card + .visit-card { margin-top: 1.5rem; }
.visit-card h3 {
  font-size: 1.1rem;
  display: flex; align-items: center; gap: 0.6em;
}
.visit-card h3 svg { width: 1.15em; height: 1.15em; color: var(--rust); flex: none; }
.visit-card p { margin-top: 0.7rem; color: var(--ink-soft); font-size: 0.98rem; }
.visit-card .btn { margin-top: 1.1rem; }
.visit-map {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  min-height: 320px;
  display: flex;
}
.visit-map iframe { width: 100%; height: 100%; border: 0; min-height: 320px; }

/* ---------- faq ---------- */
.faq-list { max-width: 780px; margin-inline: auto; }
.faq-item {
  border-bottom: 1px solid var(--line);
  padding-block: 1.4rem;
}
.faq-item summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-family: var(--serif);
  font-size: 1.12rem;
  font-weight: 600;
  color: var(--ink);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .icon {
  flex: none;
  width: 26px; height: 26px;
  border-radius: 50%;
  border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center;
  position: relative;
  transition: transform 0.3s ease, background-color 0.3s ease;
}
.faq-item summary .icon::before,
.faq-item summary .icon::after {
  content: "";
  position: absolute;
  background: var(--ink);
}
.faq-item summary .icon::before { width: 10px; height: 1px; }
.faq-item summary .icon::after { width: 1px; height: 10px; }
.faq-item[open] summary .icon { transform: rotate(45deg); background: var(--rust); border-color: var(--rust); }
.faq-item[open] summary .icon::before,
.faq-item[open] summary .icon::after { background: #fff; }
.faq-item p {
  margin-top: 0.9rem;
  color: var(--ink-soft);
  max-width: 62ch;
}

/* ---------- cta banner ---------- */
.cta-banner {
  background: var(--dark);
  color: var(--cream-on-dark);
  text-align: center;
}
.cta-banner .eyebrow { color: #d99a71; }
.cta-banner .eyebrow::before { background: #d99a71; }
.cta-banner h2 {
  color: var(--cream-on-dark);
  margin-top: 0.9rem;
  font-size: clamp(1.9rem, 3vw + 1rem, 3rem);
  max-width: 20ch;
  margin-inline: auto;
}
.cta-banner p {
  margin-top: 1.1rem;
  color: rgba(239,230,210,0.7);
  max-width: 50ch;
  margin-inline: auto;
}
.cta-actions {
  margin-top: 2rem;
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

/* ---------- footer ---------- */
.site-footer {
  background: var(--dark);
  color: rgba(239,230,210,0.72);
  padding-block: clamp(3rem, 6vw, 4.5rem) 2rem;
}
.footer-top {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1fr;
  gap: 2.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid var(--line-on-dark);
}
.footer-brand .brand-name { color: var(--cream-on-dark); }
.footer-brand p { margin-top: 1rem; max-width: 34ch; font-size: 0.92rem; }
.footer-col h4 {
  font-family: var(--sans);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(239,230,210,0.5);
  margin-bottom: 1rem;
}
.footer-col ul { display: flex; flex-direction: column; gap: 0.65rem; }
.footer-col a { text-decoration: none; font-size: 0.92rem; }
.footer-col a:hover { color: var(--cream-on-dark); }
.footer-bottom {
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.8rem;
  font-size: 0.82rem;
  color: rgba(239,230,210,0.45);
}

/* ---------- social links ---------- */
.social-links {
  display: flex;
  gap: 0.6rem;
  margin-top: 1.1rem;
}
.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--line-on-dark);
  color: inherit;
  transition: background-color 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}
.social-links a:hover {
  background: var(--cream-on-dark);
  border-color: var(--cream-on-dark);
  color: var(--dark);
}
.social-links svg { width: 17px; height: 17px; }
.visit-card .social-links a {
  border-color: var(--line);
}
.visit-card .social-links a:hover {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--bg);
}
.contact-link {
  color: var(--rust);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.contact-link:hover { color: var(--rust-dark); }

@media (max-width: 760px) {
  .footer-top { grid-template-columns: 1fr 1fr; }
  .visit-grid { grid-template-columns: 1fr; }
}
@media (max-width: 500px) {
  .footer-top { grid-template-columns: 1fr; }
}

body.scroll-lock { overflow: hidden; }

/* ---------- reveal on scroll ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1; transform: none; }
}
