/* =========================================================================
   Hillside BBQ Rentals - modern, minimal design system
   Charcoal + neutral base, ember-amber accent used ONLY on primary actions
   and selected calendar dates. Mobile-first. No external fonts/CDNs.
   ========================================================================= */

:root {
  --bg: #ffffff;
  --surface: #faf9f7;         /* section fills, subtle */
  --surface-2: #f3f1ee;       /* chips, inputs bg on focus */
  --text: #1c1c1c;            /* near-black */
  --text-2: #55524e;          /* secondary text */
  --muted: #8a857f;           /* tertiary / hints */
  --rule: #e7e4e0;            /* hairlines / borders */
  --rule-strong: #d6d2cc;

  --accent: #c2410c;          /* ember amber - actions + selected dates only */
  --accent-hover: #9a3412;
  --accent-tint: #fdf1ea;     /* very light amber wash */

  --ok: #15803d;
  --ok-tint: #eaf5ee;
  --warn: #b91c1c;
  --warn-tint: #fbeceb;
  --info-tint: #eef2f7;

  --shadow-sm: 0 1px 2px rgba(28,28,28,.05), 0 1px 3px rgba(28,28,28,.06);
  --shadow-md: 0 4px 14px rgba(28,28,28,.08), 0 2px 6px rgba(28,28,28,.05);
  --shadow-lg: 0 18px 48px rgba(28,28,28,.16);

  --radius: 14px;
  --radius-sm: 10px;
  --maxw: 900px;

  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
          "Helvetica Neue", Arial, "Noto Sans", sans-serif;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  margin: 0;
  line-height: 1.55;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 20px 96px; }
.narrow { max-width: 640px; }

/* ------------------------------------------------------------- typography */
h1, h2, h3 { line-height: 1.2; letter-spacing: -0.02em; margin: 0; }
h1 { font-size: clamp(30px, 6vw, 46px); font-weight: 800; }
h2 { font-size: clamp(21px, 3.4vw, 27px); font-weight: 700; margin: 0 0 8px; }
h3 { font-size: 17px; font-weight: 700; }
p { margin: 0 0 12px; }
.lead { font-size: clamp(16px, 2.4vw, 19px); color: var(--text-2); }
.muted { color: var(--muted); font-size: 14px; }
.eyebrow {
  text-transform: uppercase; letter-spacing: .12em; font-size: 12px;
  font-weight: 700; color: var(--accent);
}
a { color: var(--accent); }

/* --------------------------------------------------------------- header */
header, .site-header {
  display: flex; align-items: center; gap: 11px;
  padding: 20px 0 18px; margin-bottom: 8px;
  border-bottom: 1px solid var(--rule);
}
.brand {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 21px; font-weight: 800; color: var(--text);
  letter-spacing: -0.02em; text-decoration: none;
}
.brand .mark { width: 26px; height: 26px; flex: 0 0 auto; color: var(--accent); }
.brand .mark svg { width: 100%; height: 100%; display: block; }
.site-header .sub, header .sub {
  color: var(--muted); font-size: 13.5px; margin-left: auto; text-align: right;
}

/* ---------------------------------------------------------------- icons */
.ico { width: 1em; height: 1em; display: inline-block; vertical-align: -0.14em;
       fill: none; stroke: currentColor; stroke-width: 1.7;
       stroke-linecap: round; stroke-linejoin: round; }

/* --------------------------------------------------------------- hero */
.hero { position: relative; padding: 44px 0 30px; overflow: hidden; }
.hero-inner { position: relative; z-index: 1; max-width: 640px; }
.hero h1 { margin: 12px 0 14px; }
.hero .lead { margin-bottom: 24px; max-width: 540px; }
.hero-art {
  position: absolute; right: -20px; bottom: 0; width: min(42%, 360px);
  color: var(--rule-strong); opacity: .9; z-index: 0; pointer-events: none;
}
.hero-art svg { width: 100%; height: auto; display: block; }
@media (max-width: 720px) { .hero-art { display: none; } }

.cta-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

/* --------------------------------------------------------------- buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--accent); color: #fff; border: 1.5px solid var(--accent);
  padding: 13px 24px; font-size: 15.5px; font-weight: 700; font-family: inherit;
  border-radius: 10px; cursor: pointer; text-decoration: none;
  transition: background .15s, border-color .15s, transform .06s, box-shadow .15s;
  box-shadow: var(--shadow-sm);
}
.btn:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
.btn:active { transform: translateY(1px); }
.btn:disabled { background: var(--muted); border-color: var(--muted); cursor: not-allowed; box-shadow: none; }
.btn.secondary { background: var(--text); border-color: var(--text); }
.btn.secondary:hover { background: #000; border-color: #000; }
.btn.outline { background: transparent; color: var(--text); border-color: var(--rule-strong); box-shadow: none; }
.btn.outline:hover { background: var(--surface-2); border-color: var(--text); }
.btn.block { width: 100%; }
.btn .ico { stroke-width: 2; }

/* --------------------------------------------------------------- sections */
.section { padding: 30px 0; }
.section-head { margin-bottom: 18px; }

/* --------------------------------------------------------------- steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.step {
  background: var(--surface); border: 1px solid var(--rule);
  border-radius: var(--radius-sm); padding: 18px 16px;
}
.step .n {
  display: inline-flex; align-items: center; justify-content: center;
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--text); color: #fff; font-weight: 700; font-size: 14px;
  margin-bottom: 10px;
}
.step h3 { margin-bottom: 4px; }
.step p { margin: 0; color: var(--text-2); font-size: 14px; }
@media (max-width: 640px) { .steps { grid-template-columns: 1fr; } }

/* --------------------------------------------------------------- cards */
.cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
@media (max-width: 720px) { .cards { grid-template-columns: 1fr; } }

.card {
  position: relative; display: flex; flex-direction: column;
  background: var(--bg); border: 1px solid var(--rule);
  border-radius: var(--radius); padding: 20px;
  cursor: pointer; box-shadow: var(--shadow-sm);
  transition: border-color .15s, box-shadow .15s, transform .1s;
}
.card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.card.selected { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-tint), var(--shadow-md); }
.card .card-illus {
  height: 96px; margin: -4px -4px 12px; color: var(--rule-strong);
  display: flex; align-items: center; justify-content: center;
  background: var(--surface); border-radius: var(--radius-sm);
}
.card .card-illus svg { height: 76px; width: auto; }
.card.selected .card-illus { color: var(--accent); background: var(--accent-tint); }
.card h3 { color: var(--text); font-size: 18px; }
.card .desc { color: var(--text-2); font-size: 13.5px; margin: 6px 0 12px; }

.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.chip {
  display: inline-flex; align-items: center; gap: 5px;
  background: var(--surface-2); color: var(--text-2);
  border-radius: 999px; padding: 4px 10px; font-size: 12px; font-weight: 600;
}
.chip .ico { width: 13px; height: 13px; color: var(--muted); }

.rates { margin-top: auto; border-top: 1px solid var(--rule); padding-top: 12px; }
.rate-row { display: flex; justify-content: space-between; align-items: baseline; padding: 3px 0; font-size: 14px; }
.rate-row .price { font-weight: 700; }
.rate-row.primary .price { font-size: 20px; }
.rate-row .per { color: var(--muted); font-weight: 400; font-size: 13px; }
.rate-deposit { margin-top: 8px; font-size: 12.5px; color: var(--muted); }

.card .select-hint {
  margin-top: 14px; display: flex; align-items: center; justify-content: center;
  gap: 7px; font-weight: 700; font-size: 14px; color: var(--text);
  border: 1.5px solid var(--rule-strong); border-radius: 9px; padding: 9px;
  transition: all .15s;
}
.card:hover .select-hint { border-color: var(--text); }
.card.selected .select-hint {
  background: var(--accent); color: #fff; border-color: var(--accent);
}
.card.selected .select-hint .label-pick::after { content: "Selected"; }
.card .select-hint .label-pick::after { content: "Select this"; }

/* --------------------------------------------------------------- booking */
#booking-form { margin-top: 26px; }
.panel {
  background: var(--bg); border: 1px solid var(--rule);
  border-radius: var(--radius); padding: 20px; margin-bottom: 18px;
  box-shadow: var(--shadow-sm);
}
.panel > .panel-title {
  display: flex; align-items: center; gap: 8px;
  font-weight: 700; font-size: 15px; margin-bottom: 14px;
}
.panel > .panel-title .ico { color: var(--accent); width: 18px; height: 18px; }

label { display: block; font-size: 13px; font-weight: 600; color: var(--text-2); margin: 14px 0 6px; }
.field:first-child > label { margin-top: 0; }
input[type=text], input[type=email], input[type=tel], textarea, select {
  width: 100%; padding: 12px 13px; border: 1.5px solid var(--rule-strong);
  border-radius: 10px; font-size: 16px; font-family: inherit; color: var(--text);
  background: var(--bg); transition: border-color .15s, box-shadow .15s;
}
input::placeholder, textarea::placeholder { color: var(--muted); }
input:focus, textarea:focus, select:focus {
  outline: none; border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-tint);
}
textarea { resize: vertical; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 520px) { .two-col { grid-template-columns: 1fr; gap: 0; } }

/* segmented control (delivery / pickup) */
.mode-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 2px; }
.mode-row label {
  margin: 0; padding: 13px; border: 1.5px solid var(--rule-strong);
  border-radius: 10px; cursor: pointer; color: var(--text); font-size: 14px;
  font-weight: 600; text-align: center; transition: all .15s; line-height: 1.35;
}
.mode-row label .muted { font-weight: 400; display: block; margin-top: 2px; }
.mode-row input { position: absolute; opacity: 0; pointer-events: none; }
.mode-row label:hover { border-color: var(--text); }
.mode-row label.selected {
  border-color: var(--accent); background: var(--accent-tint);
  box-shadow: 0 0 0 2px var(--accent-tint);
}
@media (max-width: 460px) { .mode-row { grid-template-columns: 1fr; } }

/* --------------------------------------------------------- calendar */
.cal-legend { display: flex; flex-wrap: wrap; gap: 14px; margin: 4px 0 14px; font-size: 12.5px; color: var(--text-2); }
.cal-legend span { display: inline-flex; align-items: center; gap: 6px; }
.swatch { width: 14px; height: 14px; border-radius: 4px; display: inline-block; }
.swatch.open { border: 1.5px solid var(--rule-strong); background: #fff; }
.swatch.booked { background: var(--surface-2); position: relative; }
.swatch.booked::after {
  content: ""; position: absolute; inset: 0; border-radius: 4px;
  background: linear-gradient(to top left, transparent 44%, var(--rule-strong) 44%, var(--rule-strong) 56%, transparent 56%);
}
.swatch.pick { background: var(--accent); }
#dates-summary { font-size: 14px; font-weight: 600; margin-top: 12px; min-height: 1.2em; }
#dates-summary .none { color: var(--muted); font-weight: 400; }

/* --------------------------------------------------------------- quote */
.quote {
  background: var(--surface); border: 1px solid var(--rule);
  border-radius: var(--radius-sm); padding: 16px 18px; margin: 16px 0; font-size: 14.5px;
}
.quote table { border-collapse: collapse; width: 100%; }
.quote td { padding: 5px 0; vertical-align: top; }
.quote td:last-child { text-align: right; font-weight: 700; white-space: nowrap; }
.quote .total td {
  border-top: 1.5px solid var(--rule-strong); padding-top: 10px; margin-top: 4px;
  font-size: 16px;
}
.quote .total td:last-child { color: var(--accent); }
.quote .note td { color: var(--muted); font-weight: 400 !important; font-size: 12.5px; text-align: left !important; padding-top: 8px; }

/* --------------------------------------------------------- alerts */
.error {
  display: none; align-items: center; gap: 8px; color: var(--warn);
  background: var(--warn-tint); border: 1px solid #f1c9c7;
  border-radius: 9px; padding: 10px 13px; font-size: 14px; margin: 12px 0;
}
.error.show, .error[style*="block"] { display: flex; }
.success {
  display: flex; gap: 12px; align-items: flex-start;
  background: var(--ok-tint); border: 1px solid #cfe6d7;
  border-radius: var(--radius-sm); padding: 16px 18px; margin: 16px 0;
}
.success .ico { color: var(--ok); width: 22px; height: 22px; flex: 0 0 auto; margin-top: 1px; stroke-width: 2; }
.success b { display: block; margin-bottom: 2px; }

.disclaimer { color: var(--muted); font-size: 13px; margin-top: 14px; }

/* --------------------------------------------------- status page (message) */
.status-card { text-align: center; max-width: 520px; margin: 40px auto 0; }
.status-icon {
  width: 64px; height: 64px; border-radius: 50%; margin: 0 auto 18px;
  display: flex; align-items: center; justify-content: center;
  background: var(--info-tint); color: var(--text-2);
}
.status-icon .ico { width: 30px; height: 30px; stroke-width: 2; }
.status-card.ok .status-icon { background: var(--ok-tint); color: var(--ok); }
.status-card.warn .status-icon { background: var(--warn-tint); color: var(--warn); }
.status-card h2 { font-size: 24px; }
.status-card p { color: var(--text-2); margin: 8px 0 22px; }

/* --------------------------------------------------------- agreement */
.summary-bar {
  display: flex; flex-wrap: wrap; gap: 8px 22px; background: var(--surface);
  border: 1px solid var(--rule); border-radius: var(--radius-sm);
  padding: 14px 16px; margin: 14px 0 18px; font-size: 14px;
}
.summary-bar .k { color: var(--muted); font-size: 12px; display: block; }
.summary-bar .v { font-weight: 700; }
.agreement-box {
  border: 1px solid var(--rule-strong); border-radius: var(--radius-sm);
  max-height: 440px; overflow-y: auto; padding: 6px 20px;
  font-size: 14px; line-height: 1.6; background: var(--bg);
}
.accept-row {
  display: flex; gap: 10px; align-items: flex-start;
  background: var(--surface); border: 1px solid var(--rule);
  border-radius: var(--radius-sm); padding: 14px 16px; margin: 18px 0 6px;
  font-size: 15px;
}
.accept-row input[type=checkbox] { width: 20px; height: 20px; margin-top: 1px; accent-color: var(--accent); flex: 0 0 auto; }

/* --------------------------------------------------------------- footer */
footer {
  margin-top: 48px; border-top: 1px solid var(--rule); padding-top: 16px;
  color: var(--muted); font-size: 13px; display: flex; flex-wrap: wrap;
  gap: 4px 10px; align-items: center;
}
footer .dot { color: var(--rule-strong); }

/* --------------------------------------------------------- FAQ widget */
#faq-fab {
  position: fixed; right: 20px; bottom: 20px; z-index: 40;
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--text); color: #fff; border: none;
  border-radius: 999px; padding: 13px 20px; font-size: 15px; font-weight: 700;
  font-family: inherit; cursor: pointer; box-shadow: var(--shadow-lg);
  transition: transform .12s, background .15s;
}
#faq-fab:hover { transform: translateY(-2px); background: #000; }
#faq-fab .ico { width: 18px; height: 18px; stroke-width: 2; }
#faq-panel {
  position: fixed; right: 20px; bottom: 82px; z-index: 41;
  width: 350px; max-width: calc(100vw - 32px);
  background: var(--bg); border: 1px solid var(--rule);
  border-radius: 16px; overflow: hidden; box-shadow: var(--shadow-lg);
  display: none; flex-direction: column;
  transform-origin: bottom right;
  animation: pop .16s ease-out;
}
#faq-panel.open { display: flex; }
@keyframes pop { from { opacity: 0; transform: scale(.96) translateY(6px); } to { opacity: 1; transform: none; } }
#faq-head {
  display: flex; align-items: center; gap: 9px;
  background: var(--text); color: #fff; padding: 13px 16px; font-weight: 700;
}
#faq-head .ico { width: 17px; height: 17px; color: var(--accent); stroke-width: 2; }
#faq-head .close { margin-left: auto; background: none; border: none; color: #fff; cursor: pointer; opacity: .8; padding: 2px; }
#faq-head .close:hover { opacity: 1; }
#faq-log { padding: 14px; height: 300px; overflow-y: auto; font-size: 14px; background: var(--surface); }
.faq-q, .faq-a { margin: 8px 0; display: flex; }
.faq-q { justify-content: flex-end; }
.faq-q span {
  background: var(--accent); color: #fff; padding: 9px 12px;
  border-radius: 13px 13px 3px 13px; max-width: 82%; line-height: 1.4;
}
.faq-a span {
  background: var(--bg); border: 1px solid var(--rule); color: var(--text);
  padding: 9px 12px; border-radius: 13px 13px 13px 3px; max-width: 82%; line-height: 1.45;
}
.faq-typing span { display: inline-flex; gap: 4px; }
.faq-typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--muted); animation: blink 1.2s infinite; }
.faq-typing i:nth-child(2) { animation-delay: .2s; }
.faq-typing i:nth-child(3) { animation-delay: .4s; }
@keyframes blink { 0%, 60%, 100% { opacity: .25; } 30% { opacity: 1; } }
#faq-form { display: flex; border-top: 1px solid var(--rule); background: var(--bg); }
#faq-input { flex: 1; border: none; padding: 13px 14px; font-size: 15px; background: transparent; }
#faq-input:focus { outline: none; box-shadow: none; }
#faq-send {
  border: none; background: var(--accent); color: #fff; padding: 0 18px;
  font-weight: 700; font-family: inherit; cursor: pointer; font-size: 14px;
}
#faq-send:hover { background: var(--accent-hover); }
@media (max-width: 420px) {
  #faq-panel { right: 12px; left: 12px; width: auto; bottom: 78px; }
  #faq-fab { right: 14px; bottom: 14px; }
}

/* =====================================================================
   flatpickr theme (vendored) - inline, full-width, palette-matched
   ===================================================================== */
.flatpickr-calendar.inline {
  width: 100%; max-width: 380px; margin: 0; box-shadow: none;
  border: 1px solid var(--rule); border-radius: var(--radius-sm);
  padding: 8px 8px 4px; background: var(--bg); font-family: inherit;
}
.flatpickr-calendar.inline::before, .flatpickr-calendar.inline::after { display: none; }
.flatpickr-months { align-items: center; padding-bottom: 4px; }
.flatpickr-month { color: var(--text); height: 40px; }
.flatpickr-current-month { font-size: 15px; font-weight: 700; padding-top: 6px; }
.flatpickr-current-month .flatpickr-monthDropdown-months { font-weight: 700; }
.flatpickr-prev-month, .flatpickr-next-month { padding: 8px; }
.flatpickr-prev-month svg, .flatpickr-next-month svg { width: 13px; height: 13px; fill: var(--text-2); }
.flatpickr-prev-month:hover svg, .flatpickr-next-month:hover svg { fill: var(--accent); }
span.flatpickr-weekday { color: var(--muted); font-weight: 700; font-size: 11px; text-transform: uppercase; letter-spacing: .04em; }
.flatpickr-weekdays { padding: 0 2px; }
.flatpickr-days { width: 100%; }
.flatpickr-rContainer, .flatpickr-days .dayContainer { width: 100%; min-width: 100%; max-width: 100%; }
.flatpickr-day {
  max-width: none; height: 40px; line-height: 40px; margin: 1px 0;
  border-radius: 9px; color: var(--text); font-size: 14px; border: none;
  flex-basis: 14.2857%;
}
.flatpickr-day:hover { background: var(--surface-2); }
.flatpickr-day.today { border: 1.5px solid var(--rule-strong); }
.flatpickr-day.today:hover { background: var(--surface-2); }
.flatpickr-day.flatpickr-disabled,
.flatpickr-day.flatpickr-disabled:hover {
  color: var(--muted); background: var(--surface-2);
  text-decoration: line-through; cursor: not-allowed; opacity: 1;
}
.flatpickr-day.prevMonthDay, .flatpickr-day.nextMonthDay { color: var(--rule-strong); }
.flatpickr-day.selected, .flatpickr-day.startRange, .flatpickr-day.endRange,
.flatpickr-day.selected:hover, .flatpickr-day.startRange:hover, .flatpickr-day.endRange:hover {
  background: var(--accent); border-color: var(--accent); color: #fff;
  box-shadow: none;
}
.flatpickr-day.inRange, .flatpickr-day.inRange:hover {
  background: var(--accent-tint); border-color: var(--accent-tint);
  color: var(--accent-hover); box-shadow: -5px 0 0 var(--accent-tint), 5px 0 0 var(--accent-tint);
}
.flatpickr-day.startRange { border-radius: 9px 3px 3px 9px; }
.flatpickr-day.endRange { border-radius: 3px 9px 9px 3px; }
.flatpickr-day.startRange.endRange { border-radius: 9px; }

/* respects users who prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; transition: none !important; }
}
