/* The Iverson Kitchen — brand + layout
   Palette drawn from the logo's etched chef's knife: iron, steel, bone handle.
   Pine is the one action color: everything that moves an order forward is pine. */
:root {
  --iron: #1E1D1B;
  --smoke: #2A2826;
  --smoke-2: #353230;
  --plate: #F6F5F2;
  --white: #FFFFFF;
  --steel: #8D959B;
  --steel-light: #C9CED2;
  --bone: #D8CFC0;
  --pine: #2E5A46;
  --pine-hover: #244A39;
  --pine-tint: #E3ECE6;
  --ink: #1E1D1B;
  --ink-soft: #55524E;
  --on-dark: #EEECE8;
  --on-dark-soft: #B3B0AB;
  --alert: #A23B2A;
  --alert-tint: #F7E4E0;

  --serif: "Cormorant Garamond", Garamond, "Times New Roman", serif;
  --sans: "Hanken Grotesk", "Segoe UI", system-ui, sans-serif;

  --step--1: 0.875rem;
  --step-0: 1rem;
  --step-1: 1.25rem;
  --step-2: 1.625rem;
  --step-3: 2.25rem;
  --step-4: clamp(2.6rem, 5.4vw, 4.4rem);

  --measure: 66ch;
  --wrap: 1180px;
  --radius-sm: 4px;
  --radius: 10px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }
body { margin: 0; font-family: var(--sans); font-size: var(--step-0); line-height: 1.55; color: var(--ink); background: var(--plate); }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--pine); outline-offset: 3px; border-radius: 2px; }
.dark :focus-visible { outline-color: var(--steel-light); }
.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.08; margin: 0; letter-spacing: -0.005em; }
h1 { font-size: var(--step-4); }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-2); }
p { margin: 0; max-width: var(--measure); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 48px; padding: .75rem 1.4rem; border-radius: var(--radius-sm); border: 1px solid transparent;
  font: 600 1rem/1.2 var(--sans); text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}
.btn-pine { background: var(--pine); color: var(--white); }
.btn-pine:hover { background: var(--pine-hover); }
.btn-pine[disabled], .btn-pine[aria-disabled="true"] { background: #9AA79F; cursor: not-allowed; }
.btn-ghost { border-color: currentColor; color: inherit; background: transparent; }
.btn-ghost:hover { background: rgba(255,255,255,.06); }
.plate-section .btn-ghost:hover { background: rgba(0,0,0,.04); }
.btn-wide { width: 100%; }
.linkish { background: none; border: 0; padding: 0; font: inherit; color: inherit; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }

/* ---------- Masthead ---------- */
.masthead { background: var(--iron); color: var(--on-dark); border-bottom: 1px solid var(--smoke-2); position: sticky; top: 0; z-index: 20; }
.masthead .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; min-height: 72px; }
.lockup { display: flex; align-items: center; gap: .9rem; text-decoration: none; color: var(--on-dark); }
.lockup-knife { width: 89px; height: auto; }
.lockup-word { height: 30px; width: auto; }
.nav { display: flex; align-items: center; gap: 1.6rem; }
.nav a:not(.btn) { color: var(--on-dark-soft); text-decoration: none; font-size: .95rem; }
.nav a:not(.btn):hover { color: var(--on-dark); }
.nav .btn { min-height: 42px; padding: .55rem 1.1rem; gap: .3rem; }
@media (max-width: 880px) { .nav a:not(.btn) { display: none; } .lockup-knife { width: 72px; } }
@media (max-width: 480px) { .lockup-knife { display: none; } .lockup-word { height: 26px; } .nav .btn [data-long] { display: none; } }

.preview-bar { background: var(--bone); color: var(--ink); font-size: var(--step--1); text-align: center; padding: .45rem 1rem; }

/* ---------- Hero ---------- */
.hero { position: relative; background: var(--iron); color: var(--on-dark); overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0; background: url("/assets/damascus.svg") repeat; background-size: 600px 400px;
  -webkit-mask-image: linear-gradient(100deg, transparent 18%, #000 70%); mask-image: linear-gradient(100deg, transparent 18%, #000 70%);
}
.hero .wrap { position: relative; display: grid; grid-template-columns: 1.4fr .85fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; padding-block: clamp(3.5rem, 8vw, 6.5rem) 2.5rem; }
.hero h1 { max-width: 17ch; text-wrap: balance; }
.hero .lede { margin-top: 1.4rem; font-size: var(--step-1); color: var(--on-dark-soft); max-width: 40ch; }
.hero .actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2rem; }
.cutoff { margin-top: 1.4rem; font-size: var(--step--1); color: var(--on-dark-soft); }
.cutoff strong { color: var(--on-dark); font-weight: 600; }
.cut-line { position: relative; padding-bottom: 2.5rem; }
.cut-line img { width: min(100% - 2.5rem, 712px); height: auto; margin-inline: auto; }
@media (prefers-reduced-motion: no-preference) {
  .cut-line img { animation: slide-in 1.1s cubic-bezier(.2,.7,.2,1) .15s both; }
  @keyframes slide-in { from { transform: translateX(-12%); opacity: 0; } to { transform: none; opacity: 1; } }
}
@media (max-width: 880px) { .hero .wrap { grid-template-columns: 1fr; } }

/* Zone checker */
.zone { background: var(--smoke); border: 1px solid var(--smoke-2); border-radius: var(--radius); padding: 1.6rem; }
.zone h2 { font-size: var(--step-2); }
.zone p { color: var(--on-dark-soft); margin-top: .4rem; font-size: .95rem; }
.zone form { display: grid; grid-template-columns: 1fr 7.5rem; gap: .6rem; margin-top: 1.2rem; }
.zone .btn { grid-column: 1 / -1; }
.zone-result { margin-top: 1rem; min-height: 1.5rem; font-size: .95rem; }
.zone-result.ok { color: #BFD8C9; }
.zone-result.no { color: #F0B8AC; }
.zone-result a { color: var(--on-dark); font-weight: 600; }

/* ---------- Form fields ---------- */
.field { display: grid; gap: .35rem; }
.field label { font-size: .875rem; font-weight: 600; }
.field .hint { font-size: .8rem; color: var(--ink-soft); font-weight: 400; }
input, select, textarea {
  width: 100%; min-height: 46px; padding: .65rem .8rem; border-radius: var(--radius-sm);
  border: 1px solid #C8C4BD; background: var(--white); color: var(--ink); font: 400 1rem/1.4 var(--sans);
}
textarea { min-height: 96px; resize: vertical; }
.dark input, .dark select, .dark textarea { background: var(--iron); border-color: #4A4642; color: var(--on-dark); }
input::placeholder, textarea::placeholder { color: #8A8580; }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 2px solid var(--pine); outline-offset: 0; border-color: var(--pine); }

/* ---------- Sections ---------- */
.section { padding-block: clamp(3.5rem, 8vw, 6rem); }
.plate-section { background: var(--plate); }
.white-section { background: var(--white); }
.dark { background: var(--iron); color: var(--on-dark); }
.section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 1rem 3rem; margin-bottom: 2.5rem; }
.section-head p { color: var(--ink-soft); }
.dark .section-head p { color: var(--on-dark-soft); }

/* Damascus divider between sections */
.etch { height: 14px; background: url("/assets/damascus.svg") 0 -120px / 600px 400px repeat-x; opacity: .9; }
.dark + .etch, .etch.on-dark { background-color: var(--iron); }

/* ---------- Menu ---------- */
.menu-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 3.5rem; }
.meal { display: grid; grid-template-columns: 132px 1fr; gap: 1.25rem; padding-block: 1.6rem; border-top: 1px solid #DDD9D2; }
.meal h3 { font-size: 1.55rem; }
.meal p { margin-top: .4rem; color: var(--ink-soft); font-size: .95rem; }
.photo-slot {
  aspect-ratio: 1; border-radius: var(--radius-sm); background: repeating-linear-gradient(135deg, #E7E4DE 0 8px, #EFECE7 8px 16px);
  display: grid; place-items: center; text-align: center; padding: .6rem; color: #7E7973; font-size: .72rem; line-height: 1.3;
}
.photo-slot.tall { aspect-ratio: 4 / 5; font-size: .85rem; }
.macros { display: grid; grid-template-columns: repeat(4, auto); justify-content: start; gap: .1rem 1.4rem; margin: .9rem 0 0; }
.macros div { display: grid; }
.macros dt { font-size: .75rem; color: var(--ink-soft); order: 2; }
.macros dd { margin: 0; font-weight: 600; font-variant-numeric: tabular-nums; }
.allergens { margin-top: .6rem; font-size: .8rem; color: var(--ink-soft); }
.allergens.none { color: var(--pine); }
@media (max-width: 880px) { .menu-list { grid-template-columns: 1fr; } }
@media (max-width: 460px) { .meal { grid-template-columns: 92px 1fr; } }

/* ---------- Plans table ---------- */
.plans { width: 100%; border-collapse: collapse; }
.plans th { text-align: left; font-size: .8rem; font-weight: 500; color: var(--on-dark-soft); padding: 0 1rem .8rem 0; border-bottom: 1px solid var(--smoke-2); }
.plans td { padding: 1.3rem 1rem 1.3rem 0; border-bottom: 1px solid var(--smoke-2); vertical-align: middle; }
.plans .plan-name { font-family: var(--serif); font-size: 1.6rem; font-weight: 600; line-height: 1.1; }
.plans .badge { display: inline-block; margin-left: .5rem; padding: .15rem .5rem; border-radius: 99px; background: var(--pine); color: var(--white); font: 600 .72rem/1.4 var(--sans); vertical-align: middle; }
.plans .what { color: var(--on-dark-soft); font-size: .95rem; max-width: 34ch; }
.plans .price { font-size: 1.35rem; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.plans .per { color: var(--on-dark-soft); font-size: .9rem; white-space: nowrap; }
.plans td:last-child { text-align: right; padding-right: 0; }
.plans .btn { min-height: 42px; padding: .5rem 1rem; }
.plans-note { margin-top: 1.4rem; color: var(--on-dark-soft); font-size: .95rem; }
@media (max-width: 760px) {
  .plans thead { display: none; }
  .plans tr { display: grid; grid-template-columns: 1fr auto; gap: .3rem 1rem; padding: 1.2rem 0; border-bottom: 1px solid var(--smoke-2); }
  .plans td { padding: 0; border: 0; }
  .plans td.what { grid-column: 1 / -1; }
  .plans td:last-child { grid-column: 1 / -1; text-align: left; margin-top: .5rem; }
}

/* ---------- Steps ---------- */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; counter-reset: step; }
.steps li { counter-increment: step; border-top: 2px solid var(--iron); padding-top: 1rem; }
.steps li::before { content: counter(step); font-family: var(--serif); font-size: 2.6rem; font-weight: 600; line-height: 1; color: var(--steel); display: block; margin-bottom: .6rem; }
.steps h3 { font-size: 1.45rem; }
.steps p { margin-top: .4rem; color: var(--ink-soft); font-size: .95rem; }
@media (max-width: 880px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }

/* ---------- Chef ---------- */
.chef { display: grid; grid-template-columns: minmax(220px, 380px) 1fr; gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.chef .photo-slot { background: repeating-linear-gradient(135deg, #2F2C29 0 8px, #34312E 8px 16px); color: var(--on-dark-soft); }
.chef p + p { margin-top: 1rem; }
.chef .sig { font-family: var(--serif); font-style: italic; font-size: 1.6rem; margin-top: 1.4rem; }
.placeholder-text { background: rgba(216,207,192,.14); outline: 1px dashed rgba(216,207,192,.5); outline-offset: 2px; }
@media (max-width: 760px) { .chef { grid-template-columns: 1fr; } }

/* ---------- Reviews ---------- */
.reviews { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2.5rem 3.5rem; }
.review { margin: 0; }
.review blockquote { margin: 0; font-family: var(--serif); font-size: 1.45rem; line-height: 1.35; }
.review figcaption { margin-top: .8rem; font-size: .9rem; color: var(--ink-soft); }
.stars { color: var(--pine); letter-spacing: .1em; font-size: .9rem; margin-bottom: .5rem; }
@media (max-width: 760px) { .reviews { grid-template-columns: 1fr; } }

/* ---------- Area + catering + FAQ ---------- */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 6vw, 5rem); }
@media (max-width: 860px) { .two-col { grid-template-columns: 1fr; } }
.towns { margin-top: 1rem; color: var(--ink-soft); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 520px) { .form-grid { grid-template-columns: 1fr; } }
.seg { justify-self: start; display: inline-flex; border: 1px solid #C8C4BD; border-radius: var(--radius-sm); overflow: hidden; }
.seg label { padding: .55rem 1rem; cursor: pointer; font-weight: 500; }
.seg input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.seg input:checked + span { color: var(--white); }
.seg label:has(input:checked) { background: var(--pine); color: var(--white); }
.seg label:has(input:focus-visible) { outline: 2px solid var(--pine); outline-offset: -2px; }
.form-status { margin-top: .8rem; font-size: .95rem; }

.faq details { border-top: 1px solid #DDD9D2; padding: 1.1rem 0; }
.faq details:last-child { border-bottom: 1px solid #DDD9D2; }
.faq summary { cursor: pointer; font-weight: 600; font-size: 1.05rem; list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--serif); font-size: 1.6rem; line-height: 1; color: var(--steel); }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin-top: .7rem; color: var(--ink-soft); }

/* ---------- Footer ---------- */
.footer { background: var(--iron); color: var(--on-dark-soft); padding-block: 3rem; font-size: .95rem; }
.footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2rem; align-items: center; }
.footer a { color: var(--on-dark); }
.footer-logo img { width: 180px; height: auto; }
.footer nav { display: flex; gap: 1.2rem; }
.credit { font-size: .8rem; }
