/* RestaurantInfluence site styles. Mobile first. Brand tokens match /brand/README.md */
:root {
  /* Hot Sauce palette, logo version B (Oct 18, 2026). Variable names kept from round 1 so nothing else breaks. */
  --espresso: #2B1712;     /* Char: text, dark backgrounds */
  --cream: #FFF4DF;        /* Cream: page background */
  --paprika: #C81E1E;      /* Hot Sauce red: buttons, links, accents */
  --paprika-dark: #A31717; /* deep red: hover, small accent text */
  --saffron: #FFC23A;      /* Mustard: highlights, logo shade */
  --olive: #A31717;        /* eyebrow labels, now deep red */
  --stone: #6E4B3D;        /* muted text */
  --line: #EFD9B6;
  --tint: #FFE7B0;
  --white: #FFFBF3;

  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Instrument Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --radius: 14px;
  --radius-sm: 10px;
  --gutter: 20px;
  --maxw: 1160px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--cream);
  color: var(--espresso);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--paprika); text-underline-offset: 3px; }
a:hover { color: var(--paprika-dark); }
:focus-visible { outline: 3px solid var(--paprika); outline-offset: 3px; border-radius: 4px; }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 12px; top: -60px; background: var(--espresso); color: var(--cream); padding: 10px 14px; border-radius: 8px; z-index: 50; text-decoration: none; }
.skip:focus { top: 12px; color: var(--cream); }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }

h1, h2, h3 { font-family: var(--font-display); font-weight: 600; line-height: 1.12; letter-spacing: -0.01em; margin: 0 0 16px; font-optical-sizing: auto; }
h1 { font-size: clamp(2.4rem, 8.4vw, 4.4rem); letter-spacing: -0.02em; }
h1 em { font-style: italic; color: var(--paprika); font-weight: 500; }
h2 { font-size: clamp(1.9rem, 5.2vw, 2.9rem); max-width: 20ch; }
h3 { font-size: 1.35rem; }
p { margin: 0 0 16px; }

.eyebrow { font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--olive); margin-bottom: 14px; }
.lede { font-size: 1.125rem; color: var(--stone); max-width: 56ch; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 52px; padding: 0 26px; border-radius: 999px;
  font: 600 1rem/1 var(--font-body); text-decoration: none; cursor: pointer;
  border: 2px solid transparent; transition: background-color .15s ease, color .15s ease, border-color .15s ease, transform .15s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--paprika); color: var(--cream); }
.btn-primary:hover { background: var(--paprika-dark); color: var(--cream); }
.btn-outline { background: transparent; color: var(--espresso); border-color: var(--espresso); }
.btn-outline:hover { background: var(--espresso); color: var(--cream); }
.btn-text { background: none; color: var(--stone); padding: 0 12px; }
.btn-text:hover { color: var(--espresso); }
.btn[disabled] { opacity: .6; cursor: progress; }

/* Header */
.site-header { padding: 22px 0; }
.logo { display: inline-block; }
.logo img { height: 46px; width: auto; }

/* Hero */
.hero { padding: 28px 0 72px; }
.hero-grid { display: grid; gap: 48px; align-items: center; }
.hero-copy .sub { font-size: 1.2rem; color: var(--stone); max-width: 46ch; margin-bottom: 28px; }
.form-note { font-size: .9375rem; color: var(--stone); margin-top: 12px; }

/* Forms */
.field { display: flex; flex-direction: column; gap: 6px; }
.field label, .choices legend { font-size: .875rem; font-weight: 600; color: var(--espresso); }
input[type="text"], input[type="email"], input[type="tel"] {
  width: 100%; min-height: 52px; padding: 12px 14px;
  font: 400 1rem/1.3 var(--font-body); color: var(--espresso);
  background: var(--white); border: 1.5px solid #E3C493; border-radius: var(--radius-sm);
  transition: border-color .15s ease, box-shadow .15s ease;
}
input::placeholder { color: #9A7766; }
input:focus { outline: none; border-color: var(--paprika); box-shadow: 0 0 0 3px rgba(200, 30, 30, .2); }
input[aria-invalid="true"] { border-color: #A31717; }
.form-error { color: #A31717; font-size: .9375rem; font-weight: 500; margin: 0; }

.start-form { display: grid; gap: 12px; max-width: 560px; }
.start-form .btn { width: 100%; }

/* Hero calendar visual */
.hero-visual { display: flex; justify-content: center; }
.cal-card {
  width: 100%; max-width: 440px; background: var(--white);
  border: 1px solid var(--line); border-radius: 22px; padding: 22px;
  box-shadow: 0 1px 0 rgba(43, 23, 18, .04), 0 24px 48px -24px rgba(43, 23, 18, .25);
}
.cal-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; gap: 12px; }
.cal-title { font-family: var(--font-display); font-weight: 600; font-size: 1.2rem; }
.cal-pill { font-size: .8125rem; font-weight: 600; color: var(--olive); background: #FFE7B0; padding: 5px 11px; border-radius: 999px; white-space: nowrap; }
.cal-days, .cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.cal-days span { font-size: .75rem; font-weight: 600; color: var(--stone); text-align: center; padding-bottom: 4px; }
.cal-cell {
  aspect-ratio: 1; border-radius: 9px; background: var(--cream);
  display: flex; align-items: flex-start; justify-content: flex-start; padding: 5px 6px;
  font-size: .7rem; color: var(--stone); position: relative;
  transition: background-color .35s ease, color .35s ease;
}
.cal-cell.is-blank { background: transparent; }
.cal-cell .dot {
  position: absolute; right: 6px; bottom: 6px; width: 30%; aspect-ratio: 1; border-radius: 50%;
  background: var(--cream); transform: scale(0); transition: transform .35s cubic-bezier(.3, 1.4, .5, 1);
}
.cal-cell.is-booked { background: var(--paprika); color: var(--cream); }
.cal-cell.is-booked .dot { transform: scale(1); }
.cal-cell.is-posted .dot { background: var(--saffron); }
.cal-feed { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 8px; min-height: 132px; }
.cal-feed li {
  display: flex; align-items: center; gap: 10px; padding: 10px 12px;
  background: var(--cream); border-radius: 12px; font-size: .9rem;
  animation: feed-in .4s ease both;
}
.cal-feed .tick { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; flex: none; background: var(--olive); color: var(--cream); font-size: .75rem; }
.cal-feed .tick.t-booked { background: var(--paprika); }
.cal-feed .tick.t-posted { background: var(--saffron); color: var(--espresso); }
.cal-feed .tick.t-report { background: var(--espresso); }
.cal-feed .when { margin-left: auto; color: var(--stone); font-size: .8rem; }
@keyframes feed-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .cal-cell, .cal-cell .dot { transition: none; }
  .cal-feed li { animation: none; }
}

/* Sections */
.section { padding: 80px 0; }
.section-tint { background: var(--tint); }

.steps { list-style: none; padding: 0; margin: 40px 0 0; display: grid; gap: 28px; }
.steps li { border-top: 2px solid var(--espresso); padding-top: 18px; }
.step-num { display: block; font-family: var(--font-display); font-style: italic; color: var(--paprika); font-size: 1.1rem; margin-bottom: 6px; }
.steps p { color: var(--stone); margin: 0; }

.included-grid { display: grid; gap: 36px; }
.checklist { list-style: none; padding: 0; margin: 0 0 28px; display: grid; gap: 2px; }
.checklist li { position: relative; padding: 12px 0 12px 34px; border-bottom: 1px solid var(--line); }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: 15px; width: 20px; height: 20px; border-radius: 50%;
  background: var(--olive) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M6 10.5l2.6 2.6L14 7.6' fill='none' stroke='%23FAF3E8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/100% no-repeat;
}
.you-handle { background: var(--white); border-radius: var(--radius); padding: 20px 22px; border: 1px solid var(--line); }
.you-handle h3 { font-size: 1.1rem; margin-bottom: 6px; }
.you-handle p { margin: 0; color: var(--stone); }
.who-we-book { margin-top: 28px; }

.plans { display: grid; gap: 16px; margin-top: 36px; }
.plan {
  background: var(--white); border: 1px solid var(--line); border-radius: 18px; padding: 26px 24px;
  display: flex; flex-direction: column; gap: 4px;
}
.plan h3 { font-size: 1.3rem; display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.plan-num { font-size: 2.6rem; line-height: 1; color: var(--paprika); }
.plan p { color: var(--stone); flex: 1; }
.plan .btn { align-self: flex-start; min-width: 140px; }
.plan-featured { border: 2px solid var(--paprika); }

.plans-note { margin: 24px 0 0; font-weight: 600; color: var(--espresso); }

.cases { display: grid; gap: 16px; margin-top: 32px; }
.case { background: var(--white); border: 1px solid var(--line); border-radius: 18px; padding: 24px; }
.case-meta, .case-person { color: var(--stone); font-size: .95rem; }
.case-quote { font-family: var(--font-display); font-size: 1.2rem; margin: 12px 0; }

.apply { padding: 96px 0 104px; }
.apply-inner { max-width: 760px; text-align: center; }
.apply .lede { margin-left: auto; margin-right: auto; }
.apply .start-form { margin: 0 auto; text-align: left; }
.apply h2 { max-width: none; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 36px 0 44px; font-size: .9375rem; color: var(--stone); }
.footer-inner { display: grid; gap: 16px; }
.footer-inner img { height: 34px; width: auto; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.site-footer nav a { color: var(--espresso); }
.site-footer .copy { margin: 0; }

/* Dialog */
.apply-dialog {
  width: min(560px, calc(100vw - 24px)); max-height: calc(100dvh - 24px);
  border: 0; border-radius: 20px; padding: 32px 22px 24px; background: var(--cream); color: var(--espresso);
  box-shadow: 0 30px 80px -20px rgba(43, 23, 18, .5);
}
.apply-dialog::backdrop { background: rgba(43, 23, 18, .55); }
.apply-dialog h2 { font-size: 1.75rem; max-width: none; padding-right: 32px; }
.dlg-close {
  position: absolute; top: 12px; right: 12px; width: 44px; height: 44px; border-radius: 50%;
  border: 0; background: transparent; font-size: 1.8rem; line-height: 1; color: var(--espresso); cursor: pointer;
}
.dlg-close:hover { background: var(--tint); }
.dlg-progress { font-size: .8125rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--olive); margin-bottom: 8px; }
.dlg-step { display: grid; gap: 18px; }
.dlg-step[hidden] { display: none; }
.dlg-step h2 { margin-bottom: 0; }
.dlg-who { font-size: .95rem; color: var(--stone); margin-top: -8px; }
.dlg-who:empty { display: none; }
.dlg-who button { background: none; border: 0; padding: 0; color: var(--paprika); font: inherit; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.dlg-contact { border: 0; padding: 0; margin: 0; display: grid; gap: 14px; }
.dlg-contact[hidden] { display: none; }
.choices { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.choices legend { margin-bottom: 8px; padding: 0; }
.choices label { position: relative; }
.choices input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.choices span {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: 999px;
  border: 1.5px solid #E3C493; background: var(--white); font-weight: 500; font-size: .95rem;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}
.choices input:checked + span { background: var(--espresso); border-color: var(--espresso); color: var(--cream); }
.choices input:focus-visible + span { outline: 3px solid var(--paprika); outline-offset: 2px; }
.choices[aria-invalid="true"] span { border-color: #A31717; }
.dlg-actions { display: flex; gap: 12px; align-items: center; justify-content: flex-end; margin-top: 4px; }
.dlg-actions .btn-primary { min-width: 140px; }
[data-book-has-link] .btn { margin-top: 4px; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* Legal pages and 404 */
.legal { padding: 24px 0 88px; }
.legal .wrap { max-width: 760px; }
.legal h1 { font-size: clamp(2.1rem, 6vw, 3rem); }
.legal h2 { font-size: 1.45rem; margin-top: 40px; max-width: none; }
.legal p, .legal li { color: #4A3A31; }
.legal .updated { color: var(--stone); font-size: .95rem; }
.legal .template-note { background: #FDF0D8; border: 1px solid #EBC98A; padding: 12px 16px; border-radius: var(--radius-sm); font-size: .95rem; }
.notfound { padding: 64px 0 120px; }
.notfound h1 { max-width: 16ch; }

/* Larger screens */
@media (min-width: 640px) {
  :root { --gutter: 32px; }
  .start-form { grid-template-columns: 1fr 1fr; }
  .start-form .field:first-child { grid-column: 1 / -1; }
  .start-form .btn { grid-column: 1 / -1; }
  .start-form .form-error { grid-column: 1 / -1; }
  .steps { grid-template-columns: 1fr 1fr; gap: 36px 32px; }
  .plans { grid-template-columns: 1fr 1fr; }
  .cases { grid-template-columns: 1fr 1fr; }
  .apply-dialog { padding: 40px 36px 30px; }
  .footer-inner { grid-template-columns: auto 1fr auto; align-items: center; gap: 28px; }
  .site-footer nav { justify-content: center; }
}
@media (min-width: 960px) {
  .site-header { padding: 30px 0; }
  .logo img { height: 50px; }
  .hero { padding: 40px 0 112px; }
  .hero-grid { grid-template-columns: 1.15fr .85fr; gap: 64px; }
  .start-form { grid-template-columns: 1fr 1fr 1fr; }
  .start-form .field:first-child { grid-column: auto; }
  .section { padding: 112px 0; }
  .steps { grid-template-columns: repeat(4, 1fr); }
  .included-grid { grid-template-columns: 1fr 1fr; gap: 72px; }
  .plans { grid-template-columns: repeat(4, 1fr); }
  .cases { grid-template-columns: repeat(3, 1fr); }
  .start-form-wide { max-width: none; }
}
