/* Restfood design tokens — the CMS Theme tab maps onto these custom properties. */
:root {
  --color-primary: #ffcc33;
  --color-secondary: #0c0c0c;
  --color-surface: #161616;
  --color-card: #1f1f1f;
  --color-default: #cfcac1;
  --color-heading: #ffffff;
  --color-muted: #8f8a82;
  --color-line: #2c2c2c;
  --font-default: 'Poppins', sans-serif;
  --font-primary: 'Poppins', sans-serif;
  --font-heading: 'Halant', serif;
  --radius: 6px;
  --section-max-width: 1180px;
  --section-pad-y: 100px;
  --base-size: 16px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { font-size: var(--base-size); scroll-behavior: smooth; scroll-padding-top: 72px; }
body { font-family: var(--font-default); font-weight: 300; color: var(--color-default); line-height: 1.75; background: var(--color-secondary); }
h1, h2, h3, h4 { font-family: var(--font-heading); color: var(--color-heading); font-weight: 600; line-height: 1.08; }
a { color: inherit; text-decoration: none; transition: color .25s ease; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; }
::selection { background: var(--color-primary); color: #111; }

.container { max-width: var(--section-max-width); margin: 0 auto; padding: 0 24px; }
section { padding: var(--section-pad-y) 0; position: relative; }
/* the demo's patterned sections — a soft dotted grain over the surface tone */
section.patterned {
  background-color: var(--color-surface);
  background-image: radial-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px);
  background-size: 18px 18px;
}

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; gap: .6rem; background: var(--color-primary); color: #111;
  font: 600 .8rem var(--font-primary); text-transform: uppercase; letter-spacing: .22em;
  padding: 1rem 2rem; border-radius: var(--radius); border: 1px solid var(--color-primary); cursor: pointer;
  transition: background .3s ease, color .3s ease, transform .3s ease, box-shadow .3s ease;
}
.btn:hover { background: transparent; color: var(--color-primary); transform: translateY(-2px); box-shadow: 0 12px 30px rgba(0, 0, 0, .35); }
.btn.ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .45); }
.btn.ghost:hover { border-color: var(--color-primary); color: var(--color-primary); }
.btn[disabled] { opacity: .6; pointer-events: none; }

/* ── Section heads ── */
.eyebrow { display: inline-flex; align-items: center; gap: .8rem; color: var(--color-primary); font: 500 .76rem var(--font-primary);
  text-transform: uppercase; letter-spacing: .32em; }
.eyebrow::before, .section-head.centered .eyebrow::after { content: ''; width: 34px; height: 1px; background: currentColor; opacity: .7; }
.section-head { max-width: 680px; margin-bottom: 56px; }
.section-head.centered { margin-left: auto; margin-right: auto; text-align: center; }
.section-head h2 { font-size: clamp(2.4rem, 4.6vw, 3.6rem); margin: .6rem 0 .9rem; }
.section-head p { color: var(--color-muted); }

.price { font: 600 1.05rem var(--font-primary); color: var(--color-primary); letter-spacing: .02em; }
.badge { display: inline-block; font: 600 .62rem var(--font-primary); text-transform: uppercase; letter-spacing: .16em;
  padding: .28rem .6rem; border-radius: 3px; background: rgba(255, 204, 51, .14); color: var(--color-primary); }

/* ── Header ── */
.site-header { position: fixed; inset: 0 0 auto; z-index: 60; transition: background .35s ease, box-shadow .35s ease, backdrop-filter .35s ease; }
.site-header.scrolled, .site-header.open { background: rgba(12, 12, 12, .94); backdrop-filter: blur(10px); box-shadow: 0 10px 30px rgba(0, 0, 0, .4); }
.site-header .container { display: flex; align-items: center; gap: 2rem; height: 92px; transition: height .35s ease; }
.site-header.scrolled .container { height: 72px; }
.logo { display: inline-flex; align-items: baseline; font: 700 1.9rem var(--font-heading); color: #fff; letter-spacing: -.01em; }
.logo img { max-height: 46px; width: auto; }
.logo b { color: var(--color-primary); }
.nav { margin-left: auto; display: flex; gap: 2rem; }
.nav a { position: relative; font: 400 .78rem var(--font-primary); text-transform: uppercase; letter-spacing: .2em; color: #e8e4dc; padding: .4rem 0; }
.nav a::after { content: ''; position: absolute; left: 0; bottom: 0; width: 0; height: 1px; background: var(--color-primary); transition: width .3s ease; }
.nav a:hover, .nav a.active { color: var(--color-primary); }
.nav a:hover::after, .nav a.active::after { width: 100%; }
.header-phone { display: inline-flex; align-items: center; gap: .55rem; font: 500 .9rem var(--font-primary); color: var(--color-primary); white-space: nowrap; }
.header-phone svg { width: 18px; height: 18px; }
.menu-btn { display: none; margin-left: auto; width: 44px; height: 44px; border: 1px solid rgba(255, 255, 255, .25); border-radius: var(--radius);
  background: transparent; cursor: pointer; flex-direction: column; align-items: center; justify-content: center; gap: 5px; }
.menu-btn span { width: 20px; height: 2px; background: #fff; transition: transform .3s ease, opacity .3s ease; }
.site-header.open .menu-btn span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.site-header.open .menu-btn span:nth-child(2) { opacity: 0; }
.site-header.open .menu-btn span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.mobile-panel { border-top: 1px solid var(--color-line); padding: 1rem 24px 1.6rem; }
.mobile-panel a:not(.btn) { display: block; padding: .8rem 0; border-bottom: 1px solid var(--color-line); font: 400 .82rem var(--font-primary);
  text-transform: uppercase; letter-spacing: .2em; color: #e8e4dc; }
.mobile-panel .btn { margin-top: 1.2rem; }
.drop-enter-active, .drop-leave-active { transition: opacity .25s ease, transform .25s ease; }
.drop-enter-from, .drop-leave-to { opacity: 0; transform: translateY(-8px); }

/* ── Forms ── */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem 1.3rem; }
.form-grid .full { grid-column: 1 / -1; }
.form-grid label { display: block; font: 500 .7rem var(--font-primary); text-transform: uppercase; letter-spacing: .2em; color: var(--color-primary); margin-bottom: .45rem; }
.form-grid input, .form-grid select, .form-grid textarea {
  width: 100%; background: rgba(0, 0, 0, .35); border: 1px solid var(--color-line); border-radius: var(--radius);
  padding: .9rem 1rem; color: #fff; font-size: .92rem; transition: border-color .25s ease, background .25s ease; color-scheme: dark;
}
.form-grid input:focus, .form-grid select:focus, .form-grid textarea:focus { outline: none; border-color: var(--color-primary); background: rgba(0, 0, 0, .55); }
.form-grid ::placeholder { color: #6f6a63; }
.field-err { color: #ff8a7a; font-size: .78rem; margin-top: .35rem; }

/* ── Reveal on scroll (progressive: content shows if JS never runs) ── */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s ease, transform .8s cubic-bezier(.2, .7, .3, 1); }
.reveal.revealed { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

@media (max-width: 980px) {
  .nav, .site-header .header-phone, .site-header .container > .btn { display: none; }
  .menu-btn { display: inline-flex; }
  .site-header .container { height: 72px; }
}
@media (max-width: 640px) {
  :root { --section-pad-y: 72px; }
  .form-grid { grid-template-columns: 1fr; }
  .section-head { margin-bottom: 40px; }
}
