/* Heywan landing page styles.
   Tokens namespaced --hw-* so they never collide with the NginxForge panel.
   Palette and spacing derive from design-system/heywan/MASTER.md, tuned for
   a calmer cream + espresso scheme with 4.5:1 text contrast. */

:root {
  --hw-bg: #FBF6EF;
  --hw-bg-warm: #F3E8D8;
  --hw-surface: #FFFFFF;
  --hw-ink: #2A1A10;
  --hw-ink-soft: #5B4636;
  --hw-muted: #8A7560;
  --hw-brand: #7A3E1D;
  --hw-brand-strong: #5E2E13;
  --hw-accent: #C67C4E;
  --hw-accent-ink: #FFFFFF;
  --hw-border: #E7D8C6;
  --hw-ring: #C67C4E;
  --hw-leaf: #4F7A52;
  --hw-star: #D99A2B;

  --hw-space-sm: 0.5rem;
  --hw-space-md: 1rem;
  --hw-space-lg: 1.5rem;
  --hw-space-xl: 2rem;
  --hw-space-2xl: 3rem;
  --hw-space-3xl: 4.5rem;

  --hw-radius-sm: 10px;
  --hw-radius: 14px;
  --hw-radius-lg: 20px;

  --hw-shadow-sm: 0 1px 2px rgba(42, 26, 16, 0.06);
  --hw-shadow-md: 0 8px 20px rgba(42, 26, 16, 0.08);
  --hw-shadow-lg: 0 20px 40px rgba(42, 26, 16, 0.12);

  --hw-container: 1200px;
  --hw-font-head: "Fraunces", Georgia, "Times New Roman", serif;
  --hw-font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

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

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--hw-font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--hw-ink-soft);
  background: var(--hw-bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
  font-family: var(--hw-font-head);
  color: var(--hw-ink);
  line-height: 1.15;
  margin: 0;
  font-weight: 600;
}

p { margin: 0; }

a {
  color: var(--hw-brand);
  text-decoration: none;
}

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

:focus-visible {
  outline: 3px solid var(--hw-ring);
  outline-offset: 2px;
  border-radius: 4px;
}

.hw-container {
  width: 100%;
  max-width: var(--hw-container);
  margin: 0 auto;
  padding: 0 var(--hw-space-lg);
}

.hw-eyebrow {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--hw-accent);
  margin-bottom: var(--hw-space-md);
}

.hw-section {
  padding: var(--hw-space-3xl) 0;
}

.hw-section__head {
  max-width: 640px;
  margin-bottom: var(--hw-space-2xl);
}

.hw-section__head h2 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  margin-bottom: var(--hw-space-md);
}

.hw-section__head p {
  font-size: 1.05rem;
  color: var(--hw-muted);
}

.hw-skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  z-index: 200;
  background: var(--hw-brand);
  color: #fff;
  padding: 10px 16px;
  border-radius: 0 0 var(--hw-radius-sm) 0;
}
.hw-skip-link:focus {
  left: 0;
}

/* Buttons */
.hw-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 48px;
  padding: 0.75rem 1.5rem;
  border-radius: 999px;
  font-family: var(--hw-font-body);
  font-weight: 600;
  font-size: 0.98rem;
  cursor: pointer;
  border: 1.5px solid transparent;
  transition: transform 180ms var(--hw-ease), background-color 180ms var(--hw-ease),
    color 180ms var(--hw-ease), box-shadow 180ms var(--hw-ease);
}
.hw-btn--primary {
  background: var(--hw-accent);
  color: var(--hw-accent-ink);
  box-shadow: var(--hw-shadow-sm);
}
.hw-btn--primary:hover {
  background: var(--hw-brand);
  transform: translateY(-2px);
  box-shadow: var(--hw-shadow-md);
}
.hw-btn--ghost {
  background: transparent;
  color: var(--hw-brand);
  border-color: var(--hw-border);
}
.hw-btn--ghost:hover {
  border-color: var(--hw-brand);
  background: rgba(122, 62, 29, 0.05);
}
.hw-btn--light {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(4px);
}
.hw-btn--light:hover {
  background: rgba(255, 255, 255, 0.24);
  transform: translateY(-2px);
}

/* Header */
.hw-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  transition: background-color 240ms var(--hw-ease), box-shadow 240ms var(--hw-ease),
    border-color 240ms var(--hw-ease);
  border-bottom: 1px solid transparent;
}
.hw-header.is-scrolled {
  background: rgba(251, 246, 239, 0.9);
  backdrop-filter: blur(10px);
  border-bottom-color: var(--hw-border);
  box-shadow: var(--hw-shadow-sm);
}
.hw-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.hw-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--hw-font-head);
  font-weight: 600;
  font-size: 1.3rem;
  color: var(--hw-ink);
}
.hw-brand img { width: 34px; height: 34px; }
.hw-nav {
  display: flex;
  align-items: center;
  gap: var(--hw-space-xl);
}
.hw-nav__links {
  display: flex;
  gap: var(--hw-space-lg);
  list-style: none;
  margin: 0;
  padding: 0;
}
.hw-nav__links a {
  color: var(--hw-ink-soft);
  font-weight: 500;
  font-size: 0.95rem;
  padding: 0.5rem 0;
  position: relative;
}
.hw-nav__links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: var(--hw-accent);
  transition: width 200ms var(--hw-ease);
}
.hw-nav__links a:hover::after,
.hw-nav__links a:focus-visible::after { width: 100%; }

.hw-nav__toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--hw-border);
  border-radius: var(--hw-radius-sm);
  width: 44px;
  height: 44px;
  font-size: 1.2rem;
  color: var(--hw-ink);
  cursor: pointer;
}

/* Hero */
.hw-hero {
  position: relative;
  padding: 150px 0 var(--hw-space-3xl);
  overflow: hidden;
  background:
    radial-gradient(120% 90% at 85% 10%, #F3E1CE 0%, rgba(243, 225, 206, 0) 55%),
    linear-gradient(180deg, #FBF6EF 0%, #F6ECDF 100%);
}
.hw-hero__particles {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}
.hw-hero__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: var(--hw-space-2xl);
  align-items: center;
}
.hw-hero h1 {
  font-size: clamp(2.4rem, 6vw, 4rem);
  letter-spacing: -0.01em;
  margin-bottom: var(--hw-space-lg);
}
.hw-hero h1 em {
  font-style: italic;
  color: var(--hw-brand);
}
.hw-hero__lead {
  font-size: 1.15rem;
  color: var(--hw-ink-soft);
  max-width: 30rem;
  margin-bottom: var(--hw-space-xl);
}
.hw-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--hw-space-md);
  margin-bottom: var(--hw-space-xl);
}
.hw-hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--hw-space-lg);
  font-size: 0.92rem;
  color: var(--hw-muted);
}
.hw-hero__meta span {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.hw-hero__meta i { color: var(--hw-accent); }

.hw-hero__media {
  position: relative;
  border-radius: var(--hw-radius-lg);
  overflow: hidden;
  box-shadow: var(--hw-shadow-lg);
  aspect-ratio: 4 / 5;
  background: linear-gradient(140deg, #6B3B22, #3C2415);
}
.hw-hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hw-hero__badge {
  position: absolute;
  left: var(--hw-space-md);
  bottom: var(--hw-space-md);
  background: rgba(255, 255, 255, 0.92);
  border-radius: var(--hw-radius);
  padding: 0.7rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  box-shadow: var(--hw-shadow-sm);
}
.hw-hero__badge strong { color: var(--hw-ink); font-size: 0.95rem; }
.hw-hero__badge span { color: var(--hw-muted); font-size: 0.8rem; }
.hw-hero__badge i { color: var(--hw-star); font-size: 1.1rem; }

/* Feature cards */
.hw-features { background: var(--hw-bg); }
.hw-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--hw-space-lg);
}
.hw-card {
  background: var(--hw-surface);
  border: 1px solid var(--hw-border);
  border-radius: var(--hw-radius);
  padding: var(--hw-space-xl);
  box-shadow: var(--hw-shadow-sm);
  transition: transform 200ms var(--hw-ease), box-shadow 200ms var(--hw-ease);
}
.hw-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--hw-shadow-md);
}
.hw-card__icon {
  width: 54px;
  height: 54px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: var(--hw-bg-warm);
  color: var(--hw-brand);
  font-size: 1.4rem;
  margin-bottom: var(--hw-space-md);
}
.hw-card h3 {
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
}
.hw-card p { color: var(--hw-muted); font-size: 0.97rem; }

/* Menu */
.hw-menu { background: var(--hw-bg-warm); }
.hw-grid-menu {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--hw-space-lg);
}
.hw-menu-item {
  display: flex;
  gap: var(--hw-space-md);
  background: var(--hw-surface);
  border: 1px solid var(--hw-border);
  border-radius: var(--hw-radius);
  padding: var(--hw-space-md) var(--hw-space-lg);
  transition: transform 200ms var(--hw-ease), box-shadow 200ms var(--hw-ease);
}
.hw-menu-item:hover {
  transform: translateY(-3px);
  box-shadow: var(--hw-shadow-md);
}
.hw-menu-item__thumb {
  flex: 0 0 56px;
  width: 56px;
  height: 56px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--hw-bg-warm);
  color: var(--hw-brand);
  font-size: 1.3rem;
}
.hw-menu-item__body { flex: 1; min-width: 0; }
.hw-menu-item__top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--hw-space-sm);
}
.hw-menu-item__name {
  font-family: var(--hw-font-head);
  font-weight: 600;
  color: var(--hw-ink);
  font-size: 1.1rem;
}
.hw-menu-item__price {
  font-weight: 600;
  color: var(--hw-brand);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.hw-menu-item__desc {
  color: var(--hw-muted);
  font-size: 0.9rem;
  margin-top: 0.15rem;
}
.hw-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  margin-top: 0.5rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
}
.hw-tag--best { background: #FBEBDD; color: var(--hw-brand); }
.hw-tag--plant { background: #E6F0E6; color: var(--hw-leaf); }

/* Story */
.hw-story { background: var(--hw-bg); }
.hw-story__grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: var(--hw-space-2xl);
  align-items: center;
}
.hw-story__media {
  border-radius: var(--hw-radius-lg);
  overflow: hidden;
  box-shadow: var(--hw-shadow-md);
  aspect-ratio: 1 / 1;
  background: linear-gradient(140deg, #8A5636, #4A2C18);
}
.hw-story__media img { width: 100%; height: 100%; object-fit: cover; }
.hw-story__body p + p { margin-top: var(--hw-space-md); }
.hw-story__body p { color: var(--hw-ink-soft); font-size: 1.05rem; }
.hw-signature {
  margin-top: var(--hw-space-lg);
  font-family: var(--hw-font-head);
  font-style: italic;
  font-size: 1.2rem;
  color: var(--hw-brand);
}

/* Gallery */
.hw-gallery { background: var(--hw-bg-warm); }
.hw-gallery__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--hw-space-md);
}
.hw-gallery__item {
  position: relative;
  border-radius: var(--hw-radius);
  overflow: hidden;
  aspect-ratio: 3 / 4;
  background: var(--hw-bg);
  box-shadow: var(--hw-shadow-sm);
}
.hw-gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 400ms var(--hw-ease);
}
.hw-gallery__item:hover img { transform: scale(1.05); }

/* Testimonials */
.hw-testi { background: var(--hw-bg); }
.hw-grid-3.hw-testi__grid { align-items: stretch; }
.hw-quote {
  background: var(--hw-surface);
  border: 1px solid var(--hw-border);
  border-radius: var(--hw-radius);
  padding: var(--hw-space-xl);
  box-shadow: var(--hw-shadow-sm);
  display: flex;
  flex-direction: column;
  gap: var(--hw-space-md);
}
.hw-quote__stars { color: var(--hw-star); font-size: 0.95rem; letter-spacing: 2px; }
.hw-quote__text { color: var(--hw-ink-soft); font-size: 1.02rem; }
.hw-quote__who {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-top: auto;
}
.hw-quote__avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--hw-bg-warm);
  color: var(--hw-brand);
  font-weight: 600;
  font-family: var(--hw-font-head);
}
.hw-quote__name { color: var(--hw-ink); font-weight: 600; font-size: 0.95rem; }
.hw-quote__role { color: var(--hw-muted); font-size: 0.82rem; }

/* Visit */
.hw-visit {
  background: linear-gradient(160deg, #3C2415 0%, #5E2E13 100%);
  color: #F3E8D8;
}
.hw-visit h2 { color: #fff; }
.hw-visit__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--hw-space-2xl);
}
.hw-visit__list { list-style: none; margin: var(--hw-space-lg) 0 0; padding: 0; }
.hw-visit__list li {
  display: flex;
  gap: var(--hw-space-md);
  padding: var(--hw-space-md) 0;
  border-bottom: 1px solid rgba(243, 232, 216, 0.15);
}
.hw-visit__list i {
  color: var(--hw-accent);
  font-size: 1.15rem;
  margin-top: 0.2rem;
  width: 24px;
  text-align: center;
}
.hw-visit__list strong { color: #fff; display: block; font-weight: 600; }
.hw-visit__list span { color: rgba(243, 232, 216, 0.75); font-size: 0.95rem; }
.hw-hours {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(243, 232, 216, 0.18);
  border-radius: var(--hw-radius);
  padding: var(--hw-space-xl);
}
.hw-hours h3 { color: #fff; font-size: 1.25rem; margin-bottom: var(--hw-space-md); }
.hw-hours dl { margin: 0; }
.hw-hours__row {
  display: flex;
  justify-content: space-between;
  padding: 0.55rem 0;
  border-bottom: 1px dashed rgba(243, 232, 216, 0.18);
}
.hw-hours__row:last-child { border-bottom: 0; }
.hw-hours__row dt { color: rgba(243, 232, 216, 0.85); }
.hw-hours__row dd {
  margin: 0;
  color: #fff;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 0.9rem;
}
.hw-hours__row--closed dd { color: var(--hw-accent); }
.hw-visit__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--hw-space-md);
  margin-top: var(--hw-space-lg);
}

/* Footer */
.hw-footer {
  background: #2A1A10;
  color: rgba(243, 232, 216, 0.7);
  padding: var(--hw-space-2xl) 0 var(--hw-space-lg);
}
.hw-footer__top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--hw-space-xl);
  padding-bottom: var(--hw-space-xl);
  border-bottom: 1px solid rgba(243, 232, 216, 0.12);
}
.hw-footer .hw-brand { color: #fff; }
.hw-footer__tag { max-width: 22rem; margin-top: var(--hw-space-sm); font-size: 0.92rem; }
.hw-footer__cols { display: flex; gap: var(--hw-space-2xl); flex-wrap: wrap; }
.hw-footer__col h4 { color: #fff; font-family: var(--hw-font-body); font-size: 0.8rem; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: var(--hw-space-md); }
.hw-footer__col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.5rem; }
.hw-footer__col a { color: rgba(243, 232, 216, 0.7); font-size: 0.92rem; }
.hw-footer__col a:hover { color: #fff; }
.hw-social { display: flex; gap: 0.6rem; }
.hw-social a {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(243, 232, 216, 0.1);
  color: #F3E8D8;
  font-size: 1.05rem;
  transition: background-color 180ms var(--hw-ease), transform 180ms var(--hw-ease);
}
.hw-social a:hover { background: var(--hw-accent); transform: translateY(-2px); }
.hw-footer__bottom {
  padding-top: var(--hw-space-lg);
  font-size: 0.85rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--hw-space-sm);
}

/* Mobile nav panel */
.hw-mobile-nav {
  position: fixed;
  inset: 0;
  z-index: 150;
  background: rgba(42, 26, 16, 0.5);
  backdrop-filter: blur(2px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 200ms var(--hw-ease), visibility 200ms var(--hw-ease);
}
.hw-mobile-nav.is-open { opacity: 1; visibility: visible; }
.hw-mobile-nav__panel {
  position: absolute;
  top: 0;
  right: 0;
  height: 100%;
  width: min(78vw, 320px);
  background: var(--hw-bg);
  padding: var(--hw-space-xl);
  display: flex;
  flex-direction: column;
  gap: var(--hw-space-lg);
  transform: translateX(100%);
  transition: transform 260ms var(--hw-ease);
  box-shadow: var(--hw-shadow-lg);
}
.hw-mobile-nav.is-open .hw-mobile-nav__panel { transform: translateX(0); }
.hw-mobile-nav__close {
  align-self: flex-end;
  width: 44px;
  height: 44px;
  border: 1px solid var(--hw-border);
  background: transparent;
  border-radius: var(--hw-radius-sm);
  font-size: 1.2rem;
  color: var(--hw-ink);
  cursor: pointer;
}
.hw-mobile-nav__links { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.2rem; }
.hw-mobile-nav__links a {
  display: block;
  padding: 0.85rem 0;
  font-family: var(--hw-font-head);
  font-size: 1.2rem;
  color: var(--hw-ink);
  border-bottom: 1px solid var(--hw-border);
}

/* Reveal animation base state (progressive enhancement).
   Only applied when JS marks the document ready, so no-JS users see content. */
.js .hw-reveal {
  opacity: 0;
  transform: translateY(16px);
}

/* Responsive */
@media (max-width: 960px) {
  .hw-hero__grid { grid-template-columns: 1fr; gap: var(--hw-space-xl); }
  .hw-hero__media { max-width: 440px; }
  .hw-story__grid { grid-template-columns: 1fr; }
  .hw-visit__grid { grid-template-columns: 1fr; }
  .hw-gallery__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 720px) {
  .hw-nav__links, .hw-nav .hw-btn { display: none; }
  .hw-nav__toggle { display: inline-flex; align-items: center; justify-content: center; }
  .hw-grid-3 { grid-template-columns: 1fr; }
  .hw-grid-menu { grid-template-columns: 1fr; }
  .hw-section { padding: var(--hw-space-2xl) 0; }
  .hw-hero { padding-top: 120px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .hw-reveal { opacity: 1; transform: none; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
}
