/* Daphny — design system in CSS. Vintage salon: grey-green walls, ivory lace, antique gold, crystal light.
   Breakpoints: mobile < 768 (design 390) · tablet 768–1199 (design 768) · desktop ≥ 1200 (design 1440). */

:root {
  /* colour */
  --bg-base: #171B19;
  --bg-raised: #1F2522;
  --bg-raised-top: #252C28;
  --bg-raised-bottom: #1B201D;
  --bg-deep: #121513;
  --bg-button: #1B201D;
  --bg-glow: #2C3530;
  --text-primary: #F1EADB;
  --text-secondary: #969C8F;
  --text-tertiary: #646A60;
  --line-default: rgba(241, 234, 219, .12);
  --line-strong: rgba(241, 234, 219, .40);
  --accent: #C9A96E;

  /* effects */
  --shadow-raised: 0 30px 60px rgba(0, 0, 0, .65);
  --shadow-button: 0 12px 30px rgba(0, 0, 0, .60);
  --shadow-text: 0 10px 30px rgba(0, 0, 0, .70);
  --radius: 2px;

  /* spacing scale */
  --s4: 4px; --s8: 8px; --s12: 12px; --s16: 16px; --s24: 24px; --s32: 32px;
  --s48: 48px; --s64: 64px; --s96: 96px; --s128: 128px;

  /* grid — mobile first */
  --margin: 24px;
  --cols: 4;
  --gutter: 16px;
  --section-pad: 72px;     /* section padding top/bottom */
  --head-gap: 32px;        /* heading → content */

  /* type scale — mobile */
  --h1: 46px;  --h1-lh: 50px; --h1-ls: .005em;
  --h2: 38px;  --h2-lh: 42px; --h2-ls: .005em;
  --h3: 26px;  --h3-lh: 30px; --h3-ls: .01em;
  --h4: 20px;  --h4-lh: 24px; --h4-ls: .01em;
  --stat: 36px; --stat-lh: 38px;

  --font: "Mulish", system-ui, sans-serif;
  --serif: "Cormorant Garamond", "Cormorant", Georgia, serif;
  --gold-line: rgba(201, 169, 110, .45);
}

@media (min-width: 768px) {
  :root {
    --margin: 48px; --cols: 8; --gutter: 16px;
    --section-pad: 96px; --head-gap: 48px;
    --h1: 64px; --h1-lh: 68px;
    --h2: 48px; --h2-lh: 52px;
    --h3: 28px; --h3-lh: 32px;
    --h4: 21px; --h4-lh: 25px;
    --stat: 42px; --stat-lh: 44px;
  }
}

@media (min-width: 1200px) {
  :root {
    --margin: max(48px, calc((100vw - 1080px) / 2));
    --cols: 12; --gutter: 24px;
    --section-pad: 128px; --head-gap: 56px;
    --h1: 84px; --h1-lh: 86px;
    --h2: 58px; --h2-lh: 62px;
    --h3: 30px; --h3-lh: 34px;
    --h4: 22px; --h4-lh: 26px;
    --stat: 50px; --stat-lh: 52px;
  }
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg-base); color: var(--text-primary);
  font-family: var(--font); font-weight: 300; font-size: 13px; line-height: 22px;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4, p, ul, ol, figure { margin: 0; padding: 0; }
ul { list-style: none; }
:focus-visible { outline: 1px solid var(--accent); outline-offset: 4px; }

/* ---------- typography (text styles) ---------- */
.t-h1, .t-h2, .t-h3, .t-h4, .t-stat, .t-row-title { font-family: var(--serif); font-weight: 500; font-variant-numeric: lining-nums; }
.t-h1 em, .t-h2 em, .t-h3 em { font-style: italic; color: var(--accent); }
.t-h1 { font-size: var(--h1); line-height: var(--h1-lh); letter-spacing: var(--h1-ls); text-shadow: var(--shadow-text); }
.t-h2 { font-size: var(--h2); line-height: var(--h2-lh); letter-spacing: var(--h2-ls); text-shadow: var(--shadow-text); }
.t-h3 { font-size: var(--h3); line-height: var(--h3-lh); letter-spacing: var(--h3-ls); }
.t-h4 { font-size: var(--h4); line-height: var(--h4-lh); letter-spacing: var(--h4-ls); font-weight: 600; }
.t-stat { font-family: var(--serif); font-size: var(--stat); line-height: var(--stat-lh); letter-spacing: .01em; font-weight: 500; color: var(--accent); text-shadow: var(--shadow-text); }
.t-body-l { font-size: 15px; line-height: 26px; font-weight: 300; }
.t-body { font-size: 13px; line-height: 22px; font-weight: 300; }
.t-label { font-size: 10px; line-height: 14px; letter-spacing: .3em; font-weight: 600; text-transform: uppercase; }
.t-nav { font-size: 10px; line-height: 14px; letter-spacing: .28em; font-weight: 600; text-transform: uppercase; }
.t-button { font-size: 11px; line-height: 14px; letter-spacing: .24em; font-weight: 500; text-transform: uppercase; }
.t-caption { font-size: 11px; line-height: 16px; letter-spacing: .04em; font-weight: 400; }
.t-value { font-size: 13px; line-height: 18px; font-weight: 400; }
.t-index { font-size: 13px; line-height: 16px; letter-spacing: .06em; font-weight: 500; }
.t-row-title { font-family: var(--serif); font-size: 18px; line-height: 20px; letter-spacing: .01em; font-weight: 600; }
.c-secondary { color: var(--text-secondary); }
.c-tertiary { color: var(--text-tertiary); }
.center { text-align: center; }

/* ---------- layout ---------- */
.container { padding-inline: var(--margin); width: 100%; }
.grid {
  display: grid; grid-template-columns: repeat(var(--cols), minmax(0, 1fr));
  column-gap: var(--gutter);
}
.section { position: relative; padding-block: var(--section-pad); }
.section--screen { /* soft radial light */
  background:
    radial-gradient(75% 90% at 50% 30%, var(--bg-glow) 0%, var(--bg-base) 100%);
}
.glow { /* mid-page soft glow that fades out inside the section (no seams) */
  background: radial-gradient(60% 55% at 50% 40%, rgba(44, 53, 48, .9) 0%, rgba(23, 27, 25, 0) 100%);
}
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- surfaces ---------- */
.raised {
  background: linear-gradient(180deg, var(--bg-raised-top) 0%, var(--bg-raised-bottom) 100%);
  border-radius: var(--radius); box-shadow: var(--shadow-raised);
}
.photo { border-radius: var(--radius); box-shadow: var(--shadow-raised); object-fit: cover; width: 100%; height: 100%; }
.cutout { object-fit: contain; width: 100%; height: 100%; } /* transparent dish PNG, no box */

/* ---------- button ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 16px 30px; border-radius: var(--radius); border: 0; cursor: pointer;
  font-size: 11px; line-height: 14px; letter-spacing: .24em; font-weight: 500; text-transform: uppercase;
  transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease, color .2s ease;
  white-space: nowrap;
}
.btn--raised { background: var(--bg-button); color: var(--text-primary); box-shadow: var(--shadow-button), inset 0 0 0 1px var(--gold-line); }
.btn--raised:hover { transform: translateY(-2px); box-shadow: 0 18px 40px rgba(0,0,0,.7), inset 0 0 0 1px var(--accent); }
.btn--light { background: var(--text-primary); color: var(--bg-base); }
.btn--light:hover { background: #FBF6EC; }
.btn--ghost { background: transparent; color: var(--text-primary); box-shadow: inset 0 0 0 1px var(--line-strong); }
.btn--ghost:hover { box-shadow: inset 0 0 0 1px var(--text-primary); }
.btn--block { width: 100%; }
@media (max-width: 767px) { .btn--block-m { width: 100%; } }

.link-arrow { display: inline-flex; gap: 10px; transition: color .2s; }
.link-arrow:hover { color: var(--text-primary); }

/* ---------- header / nav ---------- */
.site-header {
  position: absolute; inset: 0 0 auto 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 24px 0;
}
.site-header__logo img { width: 104px; height: auto; }
.site-header__links { display: none; gap: 48px; }
.site-header__links a { color: var(--text-secondary); transition: color .2s; }
.site-header__links a:hover, .site-header__links a[aria-current="page"] { color: var(--text-primary); }
.burger { width: 44px; height: 44px; margin-right: -8px; display: flex; flex-direction: column; align-items: flex-end; justify-content: center; padding-right: 8px; background: none; border: 0; cursor: pointer; }
.burger span { display: block; height: 1.5px; background: var(--text-primary); }
.burger span:first-child { width: 28px; margin-bottom: 7px; }
.burger span:last-child { width: 18px; }
@media (min-width: 1200px) {
  .site-header { padding: 40px 64px 0; align-items: flex-start; }
  .site-header__logo img { width: 132px; }
  .site-header__links { display: flex; margin-top: 12px; }
  .burger { display: none; }
}

/* fixed rails — desktop hero only (added by pages that want them) */
.rail-socials, .rail-scroll { display: none; }
@media (min-width: 1200px) {
  .rail-socials { display: flex; flex-direction: column; gap: 26px; position: absolute; left: 64px; bottom: 54px; z-index: 5; }
  .rail-socials a { opacity: .7; transition: opacity .2s; } .rail-socials a:hover { opacity: 1; }
  .rail-scroll { display: flex; flex-direction: column; align-items: center; gap: 12px; position: absolute; right: 64px; bottom: 74px; z-index: 5; color: var(--text-secondary); }
  .rail-scroll span { writing-mode: vertical-rl; font-size: 9px; letter-spacing: .34em; text-transform: uppercase; font-weight: 500; }
  .rail-scroll i { width: 1px; height: 64px; background: var(--line-strong); }
}

/* ---------- menu overlay (tablet + mobile) ---------- */
.overlay {
  position: fixed; inset: 0; z-index: 50; display: flex; flex-direction: column;
  padding: 20px 24px 40px; background: radial-gradient(80% 70% at 30% 20%, var(--bg-glow) 0%, var(--bg-base) 100%);
  opacity: 0; visibility: hidden; transition: opacity .3s ease, visibility .3s;
}
.overlay.is-open { opacity: 1; visibility: visible; }
.overlay__top { display: flex; justify-content: space-between; align-items: center; }
.overlay__top img { width: 104px; height: auto; }
.overlay__close { width: 44px; height: 44px; margin-right: -12px; background: none; border: 0; cursor: pointer; display: grid; place-items: center; }
.overlay__links { margin-top: 96px; display: flex; flex-direction: column; gap: 28px; }
.overlay__links a { display: flex; align-items: baseline; gap: 24px; }
.overlay__links a .t-index { color: var(--text-tertiary); width: 24px; }
.overlay__bottom { margin-top: auto; display: flex; flex-direction: column; gap: 32px; }
@media (min-width: 768px) { .overlay { padding: 20px 24px 64px; } .overlay__links { margin-top: 160px; } }
body.no-scroll { overflow: hidden; }

/* ---------- socials row ---------- */
.socials { display: flex; gap: 32px; align-items: center; }
.socials a { opacity: .7; transition: opacity .2s; display: block; }
.socials a:hover { opacity: 1; }
.socials svg, .rail-socials svg { display: block; }

/* ---------- heading (kicker + title) ---------- */
.heading { display: flex; flex-direction: column; gap: 10px; }
.heading--center { align-items: center; text-align: center; }
.heading--center > .t-label { display: inline-flex; align-items: center; gap: 14px; }
.heading--center > .t-label::before, .heading--center > .t-label::after { content: ""; width: 28px; height: 1px; background: linear-gradient(90deg, transparent, var(--accent)); }
.heading--center > .t-label::after { transform: scaleX(-1); margin-left: -.3em; }
@media (max-width: 767px) { .heading { gap: 8px; } }

/* ---------- tabs ---------- */
.tabs { display: flex; gap: 24px; overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs--center { justify-content: center; }
@media (max-width: 767px) { .tabs--center { justify-content: flex-start; margin-inline: calc(var(--margin) * -1); padding-inline: var(--margin); } }
@media (min-width: 768px) { .tabs { gap: 28px; } }
@media (min-width: 1200px) { .tabs { gap: 40px; } }
.tab { padding: 0 0 8px; background: none; border: 0; border-bottom: 1px solid transparent; cursor: pointer; color: var(--text-secondary); flex: none;
  font-size: 10px; line-height: 14px; letter-spacing: .30em; font-weight: 500; text-transform: uppercase; transition: color .2s, border-color .2s; }
.tab:hover { color: var(--text-primary); }
.tab.is-active, .tab[aria-selected="true"] { color: var(--text-primary); border-bottom-color: var(--accent); }

/* ---------- pager ---------- */
.pager { display: inline-flex; align-items: center; gap: 16px; }
.pager__track { position: relative; width: 120px; height: 1px; background: var(--line-strong); }
.pager__track i { position: absolute; left: 0; top: 0; height: 1px; background: var(--accent); transition: width .4s ease; }
.pager__arrow { background: none; border: 0; cursor: pointer; color: var(--text-secondary); font-size: 16px; padding: 4px 8px; transition: color .2s; }
.pager__arrow:hover { color: var(--text-primary); }

/* ---------- stat ---------- */
.stat { display: flex; flex-direction: column; gap: 6px; }

/* ---------- info row ---------- */
.info-rows { }
.info-row { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 40px; padding: 10px 0; border-top: 1px solid var(--line-default); }
.info-row .t-label { color: var(--text-secondary); }

/* ---------- form field ---------- */
.field { display: flex; flex-direction: column; gap: 8px; }
.field label { font-size: 11px; line-height: 16px; letter-spacing: .04em; color: var(--text-secondary); }
.field input, .field select, .field textarea {
  background: none; border: 0; border-bottom: 1px solid var(--line-strong); border-radius: 0;
  padding: 0 0 10px; font-size: 13px; line-height: 18px; font-weight: 400; color: var(--text-primary); outline: none;
  transition: border-color .2s;
}
.field input::placeholder, .field textarea::placeholder { color: var(--text-tertiary); }
.field input:focus, .field select:focus, .field textarea:focus { border-bottom-color: var(--accent); }
.field textarea { resize: vertical; min-height: 28px; }
.field select { appearance: none; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
input[type="date"]::-webkit-calendar-picker-indicator, input[type="time"]::-webkit-calendar-picker-indicator { filter: invert(.8); opacity: .6; }

/* ---------- dish card ---------- */
.dish-card {
  position: relative; display: flex; flex-direction: column; justify-content: flex-end;
  aspect-ratio: 1 / 1; padding: 0 26px 18px; margin-top: 90px;
  background: linear-gradient(180deg, var(--bg-raised-top), var(--bg-raised-bottom));
  border-radius: var(--radius); box-shadow: var(--shadow-raised);
  transition: transform .3s ease;
}
.dish-card::before { content: ""; position: absolute; left: 20px; right: 20px; top: 14px; height: 6px; background: var(--bg-deep); }
.dish-card__img { position: absolute; left: 50%; top: -90px; width: 79%; height: 82%; transform: translateX(-50%); transition: transform .4s ease; }
.dish-card:hover .dish-card__img { transform: translateX(-50%) translateY(-8px) rotate(-2deg); }
.dish-card__index { color: var(--text-secondary); margin-bottom: 6px; }
.dish-card__meta { color: var(--text-secondary); margin-top: 6px; }
.dish-card__foot { margin-top: 20px; padding-top: 14px; border-top: 1px solid var(--line-default); text-align: right; }
@media (max-width: 1199px) {
  .dish-card { aspect-ratio: 280 / 300; margin-top: 70px; }
  .dish-card__img { top: -70px; width: 79%; height: 73%; }
  .dish-card__index { margin-bottom: 4px; }
  .dish-card__meta { margin-top: 3px; }
  .dish-card__foot { margin-top: 16px; }
}

/* ---------- menu row ---------- */
.menu-row { display: flex; align-items: center; gap: 24px; padding: 22px 0; border-bottom: 1px solid var(--line-default); }
.menu-row__text { flex: 1; display: flex; flex-direction: column; gap: 6px; }
.menu-row__text p { color: var(--text-secondary); }
.menu-row__add { flex: none; width: 32px; height: 32px; border-radius: 50%; box-shadow: inset 0 0 0 1px var(--line-strong); background: none; border: 0; color: var(--text-primary); cursor: pointer; font-size: 14px; display: grid; place-items: center; transition: box-shadow .2s, background .2s; }
.menu-row__add:hover { box-shadow: inset 0 0 0 1px var(--text-primary); }
@media (max-width: 767px) { .menu-row { padding: 18px 0; } }

/* ---------- framed photo ---------- */
.framed { position: relative; background: var(--bg-deep); border-radius: var(--radius); box-shadow: var(--shadow-raised); overflow: hidden; }
.framed::after { content: ""; position: absolute; inset: 12px; border: 1px solid var(--gold-line); pointer-events: none; }
.framed__bar { height: 22px; background: var(--bg-raised); display: flex; gap: 5px; align-items: center; padding-left: 12px; }
.framed__bar i { width: 5px; height: 5px; border-radius: 50%; background: var(--text-primary); opacity: .3; }
.framed img { width: 100%; height: 100%; object-fit: cover; }
.framed__bar { display: none; }

/* ---------- coverflow (shared by home / gallery) ---------- */
.coverflow { position: relative; height: var(--cf-h, 420px); outline: none; touch-action: pan-y; user-select: none; }
.coverflow__item { position: absolute; top: 50%; left: 50%; width: var(--cf-w, 440px); height: var(--cf-h, 420px); overflow: hidden; border-radius: var(--radius); transition: transform .5s ease, filter .5s ease, opacity .5s ease; }
.coverflow__item img { pointer-events: none; -webkit-user-drag: none; }
.coverflow__item img { width: 100%; height: 100%; object-fit: cover; }
.coverflow__item::after { content: ""; position: absolute; inset: 0; background: var(--bg-base); opacity: var(--dim, 0); transition: opacity .5s; pointer-events: none; }

/* ---------- footer ---------- */
.site-footer { background: var(--bg-deep); padding-block: 64px 40px; }
.site-footer__top { display: grid; gap: 24px; }
.site-footer__logo img { width: 150px; height: auto; }
.site-footer__cols { display: grid; gap: 24px; }
.site-footer__cols .t-label { color: var(--text-secondary); margin: 4px 0 10px; display: block; }
.site-footer__cols > div { white-space: nowrap; }
.site-footer__links { display: flex; flex-direction: column; gap: 16px; margin-top: 32px; }
.site-footer__links a:hover { color: var(--text-secondary); }
.site-footer__social { margin-top: 32px; }
.site-footer__bottom { margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--line-default); color: var(--text-tertiary); display: flex; flex-direction: column; gap: 6px; }
.site-footer__bottom a:hover { color: var(--text-secondary); }
@media (min-width: 768px) {
  .site-footer__top { grid-template-columns: 252px 1fr; align-items: start; gap: 0; }
  .site-footer__cols { grid-template-columns: 200px 140px 1fr; gap: 0; }
  .site-footer__mid { display: flex; justify-content: space-between; align-items: center; margin-top: 57px; min-height: 16px; }
  .site-footer__links { flex-direction: row; gap: 32px; margin-top: 0; }
  .site-footer__social { margin-top: 0; }
  .site-footer__bottom { flex-direction: row; justify-content: space-between; margin-top: 48px; }
}
@media (min-width: 1200px) {
  .site-footer__top { grid-template-columns: 360px 1fr; }
  .site-footer__cols { grid-template-columns: 240px 200px 1fr; }
  .site-footer__mid { padding-left: 360px; }
  .site-footer__links { gap: 40px; }
}

/* ---------- reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s ease, transform .8s ease; }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }
