/* ==========================================================================
   Velvet Roast — Custom styles
   Editorial · Cinematic · Dark Luxury
   Brand palette:
     --espresso #1C1A17 · --velvet #4A3428 · --sand #E9D9C7
     --brass #B8905B · --ivory #FAF7F2
   ========================================================================== */

:root {
  --espresso: #1c1a17;
  --espresso-90: rgba(28, 26, 23, 0.9);
  --velvet: #4a3428;
  --sand: #e9d9c7;
  --brass: #b8905b;
  --brass-soft: rgba(184, 144, 91, 0.16);
  --ivory: #faf7f2;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* --- Base ----------------------------------------------------------------- */
html {
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
}

body {
  background-color: var(--espresso);
  color: var(--ivory);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* Warm sandstone grain overlaid on the dark base — subtle, performant */
.grain::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Thin brass selection */
::selection {
  background: var(--brass);
  color: var(--espresso);
}

/* --- Typography helpers --------------------------------------------------- */
.font-display { font-family: "Playfair Display", Georgia, serif; }
.font-accent  { font-family: "Cormorant Garamond", Georgia, serif; }
.font-body    { font-family: "Inter", system-ui, sans-serif; }

.eyebrow {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-style: italic;
  font-size: clamp(1.05rem, 1.4vw, 1.35rem);
  letter-spacing: 0.02em;
  color: var(--brass);
}

.kicker {
  font-family: "Inter", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.42em;
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--brass);
}

/* Fluid display scale */
.display-xl { font-size: clamp(3.2rem, 11vw, 9.5rem); line-height: 0.92; }
.display-lg { font-size: clamp(2.4rem, 6vw, 4.5rem);  line-height: 1.02; }
.display-md { font-size: clamp(1.8rem, 3.6vw, 2.8rem); line-height: 1.1; }

/* --- Brass hairline divider ---------------------------------------------- */
.hairline {
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(184, 144, 91, 0.55) 20%,
    rgba(184, 144, 91, 0.55) 80%,
    transparent
  );
}

/* --- Signature: warm light sheen across the hero wordmark ----------------- */
.sheen {
  background: linear-gradient(
    100deg,
    var(--ivory) 0%,
    var(--ivory) 38%,
    #fff6e6 47%,
    var(--brass) 52%,
    var(--ivory) 60%,
    var(--ivory) 100%
  );
  background-size: 250% 100%;
  background-position: 120% 0;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  animation: sheen-sweep 3.6s var(--ease) 0.5s 1 forwards;
}

@keyframes sheen-sweep {
  0%   { background-position: 120% 0; }
  100% { background-position: -20% 0; }
}

/* --- Navbar state --------------------------------------------------------- */
.nav-shell {
  transition: background-color 0.4s var(--ease), backdrop-filter 0.4s var(--ease),
    border-color 0.4s var(--ease), padding 0.4s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav-shell.scrolled {
  background-color: var(--espresso-90);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: rgba(184, 144, 91, 0.18);
}

.nav-link {
  position: relative;
  color: var(--sand);
  transition: color 0.25s var(--ease);
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 100%;
  height: 1px;
  background: var(--brass);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--ease);
}
.nav-link:hover,
.nav-link:focus-visible { color: var(--ivory); }
.nav-link:hover::after,
.nav-link:focus-visible::after { transform: scaleX(1); }

/* --- Buttons -------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  font-family: "Inter", sans-serif;
  font-weight: 500;
  letter-spacing: 0.04em;
  border-radius: 999px;
  padding: 0.95rem 1.9rem;
  font-size: 0.92rem;
  cursor: pointer;
  transition: transform 0.3s var(--ease), background-color 0.3s var(--ease),
    color 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
  will-change: transform;
}
.btn-primary {
  background: var(--brass);
  color: var(--espresso);
  box-shadow: 0 10px 30px -12px rgba(184, 144, 91, 0.7);
}
.btn-primary:hover {
  background: #c89a63;
  box-shadow: 0 16px 40px -12px rgba(184, 144, 91, 0.85);
}
.btn-ghost {
  background: transparent;
  color: var(--ivory);
  border: 1px solid rgba(233, 217, 199, 0.35);
}
.btn-ghost:hover {
  border-color: var(--brass);
  color: var(--brass);
}
.btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px var(--espresso), 0 0 0 4px var(--brass);
}

/* --- Cards ---------------------------------------------------------------- */
.feature-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(184, 144, 91, 0.18);
  background: linear-gradient(180deg, rgba(74, 52, 40, 0.35), rgba(28, 26, 23, 0.2));
  transition: border-color 0.4s var(--ease), transform 0.4s var(--ease),
    box-shadow 0.4s var(--ease);
}
.feature-card:hover {
  border-color: rgba(184, 144, 91, 0.55);
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.8);
}
.feature-card img {
  transition: transform 0.8s var(--ease);
}
.feature-card:hover img { transform: scale(1.06); }

/* Feature-card price: a touch larger, never crowding the title */
.feature-card .menu-price {
  font-size: 1.6rem;
  font-weight: 500;
  padding-left: 0.75rem;
}

/* --- Menu dotted leaders -------------------------------------------------- */
.menu-row {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid rgba(184, 144, 91, 0.12);
}
.menu-leader {
  flex: 1;
  border-bottom: 1px dotted rgba(184, 144, 91, 0.45);
  transform: translateY(-0.3rem);
  min-width: 1.5rem;
}
.menu-price {
  font-family: "Cormorant Garamond", serif;
  font-size: 1.4rem;
  color: var(--brass);
  white-space: nowrap;
}

/* --- Gallery -------------------------------------------------------------- */
.gallery-item {
  overflow: hidden;
  position: relative;
}
.gallery-item img {
  transition: transform 0.9s var(--ease), filter 0.6s var(--ease);
  filter: saturate(0.92);
}
.gallery-item:hover img {
  transform: scale(1.08);
  filter: saturate(1.05);
}
.gallery-item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(28, 26, 23, 0.55));
  opacity: 0;
  transition: opacity 0.5s var(--ease);
}
.gallery-item:hover::after { opacity: 1; }

/* --- Steam (hero ambient detail) ----------------------------------------- */
.steam {
  position: absolute;
  bottom: 0;
  width: 9px;
  height: 90px;
  background: linear-gradient(to top, rgba(233, 217, 199, 0), rgba(233, 217, 199, 0.45));
  border-radius: 50%;
  filter: blur(7px);
  opacity: 0;
  animation: rise 6s ease-in-out infinite;
}
@keyframes rise {
  0%   { transform: translateY(0) scaleX(1);   opacity: 0; }
  20%  { opacity: 0.5; }
  100% { transform: translateY(-150px) scaleX(2.4); opacity: 0; }
}

/* --- Scroll reveal -------------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(34px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
  will-change: opacity, transform;
}
.reveal.in {
  opacity: 1;
  transform: none;
}
.reveal[data-delay="1"] { transition-delay: 0.12s; }
.reveal[data-delay="2"] { transition-delay: 0.24s; }
.reveal[data-delay="3"] { transition-delay: 0.36s; }
.reveal[data-delay="4"] { transition-delay: 0.48s; }

/* --- Mobile menu ---------------------------------------------------------- */
.mobile-menu {
  transition: opacity 0.4s var(--ease), visibility 0.4s var(--ease);
}
.mobile-menu.hidden-menu {
  opacity: 0;
  visibility: hidden;
}

/* --- Scroll cue ----------------------------------------------------------- */
.scroll-cue span {
  display: block;
  width: 1px;
  height: 54px;
  background: linear-gradient(to bottom, var(--brass), transparent);
  margin: 0 auto;
  animation: cue 2.4s ease-in-out infinite;
  transform-origin: top;
}
@keyframes cue {
  0%, 100% { transform: scaleY(0.4); opacity: 0.4; }
  50%      { transform: scaleY(1);   opacity: 1; }
}

/* --- Reduced motion: honor user preference globally ----------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  .sheen {
    -webkit-text-fill-color: var(--ivory);
    color: var(--ivory);
    background: none;
  }
  .steam, .scroll-cue span { display: none; }
}
