/* ---------- Tokens ---------- */
/* --color-primary / --color-primary-dark / --color-accent are set inline on <body> from site.json */
:root {
  --bg: #ffffff;
  --surface-muted: #F5F6F8;
  --text: #16191F;
  --text-soft: #565D6B;
  --border: #E4E6EA;
  --radius: 4px;
  --shadow: none;
  --max-width: 72rem;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  padding-bottom: 4.25rem; /* room for sticky mobile call bar */
}

h1, h2, h3 {
  font-family: 'Barlow Condensed', 'Inter', system-ui, sans-serif;
  font-weight: 700;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  line-height: 1.1;
  margin: 0 0 0.5rem;
  text-wrap: balance;
}

a { color: var(--color-primary); }
img { max-width: 100%; display: block; }

.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.25rem;
}
.wrap--narrow { max-width: 42rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  font-family: 'Barlow Condensed', 'Inter', sans-serif;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  font-size: 1rem;
  text-decoration: none;
  border-radius: 4px;
  padding: 0.7rem 1.4rem;
  border: 2px solid transparent;
  cursor: pointer;
  white-space: nowrap;
}
.btn--accent { background: var(--color-accent); color: #1A1200; }
.btn--accent:hover { filter: brightness(1.06); }
.btn--ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,0.55); }
.btn--ghost:hover { background: rgba(255,255,255,0.12); }
.btn--lg { padding: 0.85rem 1.6rem; font-size: 1.02rem; }
.btn--call {
  background: var(--color-primary);
  color: #fff;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}
.site-header__inner {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding-top: 0.65rem;
  padding-bottom: 0.65rem;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  text-decoration: none;
  color: var(--text);
  margin-right: auto;
}
.brand__logo { border-radius: 6px; }
.brand__name {
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  font-size: 1.05rem;
}
.site-nav {
  display: none;
  gap: 1.4rem;
}
.site-nav a {
  color: var(--text-soft);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
}
.site-nav a:hover { color: var(--color-primary); }
.header-call { display: none; }

@media (min-width: 768px) {
  .site-nav { display: flex; }
  .header-call { display: inline-flex; }
}

/* ---------- Hero ---------- */
.hero {
  background-size: cover;
  background-position: center;
  background-color: var(--color-primary-dark);
  color: #fff;
  padding: 3.5rem 0 3rem;
}
.eyebrow {
  font-size: 0.78rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--color-accent);
  margin: 0 0 0.6rem;
}
.hero h1 {
  font-size: clamp(1.9rem, 5vw, 2.9rem);
  margin-bottom: 0.7rem;
}
.hero__tagline {
  font-size: 1.08rem;
  max-width: 38rem;
  color: rgba(255,255,255,0.9);
  margin: 0 0 1.1rem;
}
.rating-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #fff;
  border: none;
  border-radius: 3px;
  padding: 0.45rem 0.9rem;
  text-decoration: none;
  color: var(--text);
  font-weight: 600;
  font-size: 0.88rem;
  margin-bottom: 1.5rem;
}
.rating-badge__stars { color: var(--color-accent); letter-spacing: 0.05em; }
.hero__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.hero__ctas--stack { margin: 1.1rem 0 1.6rem; }

/* ---------- Sections ---------- */
.section { padding: 3rem 0; }
.section--muted { background: var(--surface-muted); }
.section__title {
  font-size: clamp(1.4rem, 3vw, 1.8rem);
  margin-bottom: 1.4rem;
}

.grid { display: grid; gap: 1rem; }
.grid--services {
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
}
.card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-left: 4px solid var(--color-primary);
  border-radius: var(--radius);
  padding: 1.25rem 1.4rem;
}
.card h3 {
  font-size: 1.05rem;
  color: var(--color-primary-dark);
}
.card p {
  margin: 0;
  color: var(--text-soft);
  font-size: 0.92rem;
}

.about-text {
  font-size: 1.08rem;
  color: var(--text-soft);
}

/* ---------- Gallery ---------- */
.gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}
.gallery img {
  width: 100%;
  height: 12rem;
  object-fit: cover;
  border-radius: var(--radius);
}
@media (min-width: 640px) {
  .gallery { grid-template-columns: repeat(4, 1fr); }
}

/* ---------- Hours ---------- */
.open-status {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  margin-bottom: 1.1rem;
  background: var(--border);
  color: var(--text-soft);
}
.open-status[data-state="open"] { background: #DCF3E3; color: #14663A; }
.open-status[data-state="closed"] { background: #F6DCDC; color: #7A2222; }

.hours-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.hours-table tr:not(:last-child) th,
.hours-table tr:not(:last-child) td { border-bottom: 1px solid var(--border); }
.hours-table th, .hours-table td {
  text-align: left;
  padding: 0.6rem 0.9rem;
  font-size: 0.92rem;
  font-weight: 400;
}
.hours-table th { color: var(--text); font-weight: 500; width: 40%; }
.hours-table td { color: var(--text-soft); font-variant-numeric: tabular-nums; }

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  gap: 2rem;
}
@media (min-width: 900px) {
  .contact-grid { grid-template-columns: 1fr 1fr; align-items: start; }
}
.nap {
  font-style: normal;
  color: var(--text-soft);
  margin-bottom: 0.5rem;
}
.nap a { color: var(--color-primary); font-weight: 600; text-decoration: none; }

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin-top: 1.5rem;
  max-width: 26rem;
}
.contact-form label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
}
.contact-form input,
.contact-form textarea {
  font: inherit;
  padding: 0.6rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  background: var(--bg);
}
.contact-form input:focus,
.contact-form textarea:focus {
  outline: 2px solid var(--color-primary);
  outline-offset: 1px;
}
.contact-form button { align-self: flex-start; margin-top: 0.3rem; }
.hidden-field { position: absolute; left: -9999px; }

.map-wrap {
  min-height: 18rem;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--color-primary-dark);
  color: rgba(255,255,255,0.85);
  padding: 1.75rem 0;
  font-size: 0.88rem;
}
.site-footer a { color: #fff; }
.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: space-between;
  align-items: flex-end;
}
.site-footer__credit { color: rgba(255,255,255,0.55); font-size: 0.8rem; }

/* ---------- Sticky mobile call bar ---------- */
.sticky-call {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: var(--color-accent);
  color: #1A1200;
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  text-decoration: none;
  padding: 0.9rem 1rem;
  padding-bottom: calc(0.9rem + env(safe-area-inset-bottom));
}
@media (min-width: 768px) {
  .sticky-call { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

.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;
}

/* ---------- AI extras showcase ---------- */
.section--dark {
  background: var(--color-primary-dark);
  color: rgba(255,255,255,0.92);
}
.section--dark .eyebrow { color: var(--color-accent); }
.section--dark .section__title { color: #fff; }
.section__lede {
  color: rgba(255,255,255,0.75);
  max-width: 40rem;
  font-size: 1.02rem;
  margin: -0.6rem 0 1.6rem;
}
.grid--ai {
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
}
.ai-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: var(--radius);
  padding: 1.4rem 1.4rem 1.5rem;
}
.ai-card__icon {
  display: inline-flex;
  width: 2.4rem; height: 2.4rem;
  align-items: center; justify-content: center;
  border-radius: 8px;
  background: rgba(217, 142, 50, 0.18);
  color: var(--color-accent);
  margin-bottom: 0.85rem;
}
.ai-card__icon svg { width: 1.3rem; height: 1.3rem; }
.ai-card h3 { color: #fff; font-size: 1.05rem; }
.ai-card p { margin: 0; color: rgba(255,255,255,0.72); font-size: 0.92rem; }
#ai-extras-try-btn {
  margin-top: 1.6rem;
}
.ai-extras__note {
  margin: 1.6rem 0 0;
  font-size: 0.88rem;
  color: rgba(255,255,255,0.6);
}

/* ---------- AI chat widget ---------- */
.ai-chat {
  position: fixed;
  right: 1.1rem;
  bottom: 1.1rem;
  z-index: 40;
}
@media (max-width: 767px) {
  .ai-chat { bottom: calc(4.25rem + 0.9rem); right: 0.85rem; }
}

.ai-chat__toggle {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--color-primary);
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: 0.75rem 1.1rem;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 0.88rem;
  cursor: pointer;
  box-shadow: 0 8px 22px rgba(0,0,0,0.22);
}
.ai-chat__toggle-icon svg { width: 1.1rem; height: 1.1rem; display: block; }
@media (max-width: 480px) {
  .ai-chat__toggle-label { display: none; }
  .ai-chat__toggle { padding: 0.75rem; }
}

.ai-chat__panel {
  position: absolute;
  right: 0;
  bottom: calc(100% + 0.75rem);
  width: 21rem;
  max-width: calc(100vw - 2rem);
  height: 28rem;
  max-height: calc(100vh - 8rem);
  background: var(--bg);
  border-radius: 14px;
  border: 1px solid var(--border);
  box-shadow: 0 20px 50px rgba(16,20,30,0.25);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.ai-chat__panel[hidden] { display: none; }

.ai-chat__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  background: var(--color-primary-dark);
  color: #fff;
  padding: 0.85rem 1rem;
}
.ai-chat__header-info { display: flex; align-items: center; gap: 0.6rem; }
.ai-chat__header-info strong { display: block; font-size: 0.88rem; }
.ai-chat__status { display: block; font-size: 0.74rem; color: rgba(255,255,255,0.65); }
.ai-chat__avatar {
  display: inline-flex;
  width: 2rem; height: 2rem;
  align-items: center; justify-content: center;
  border-radius: 50%;
  background: var(--color-accent);
  color: #1A1200;
  flex-shrink: 0;
}
.ai-chat__avatar svg { width: 1.05rem; height: 1.05rem; }
.ai-chat__close {
  background: transparent;
  border: none;
  color: rgba(255,255,255,0.8);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  padding: 0.2rem 0.4rem;
}
.ai-chat__close:hover { color: #fff; }

.ai-chat__messages {
  flex: 1;
  overflow-y: auto;
  padding: 0.9rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  background: var(--surface-muted);
}

.ai-chat__msg {
  max-width: 85%;
  padding: 0.55rem 0.75rem;
  border-radius: 12px;
  font-size: 0.87rem;
  line-height: 1.45;
}
.ai-chat__msg a { color: inherit; text-decoration: underline; }
.ai-chat__msg--bot {
  align-self: flex-start;
  background: var(--bg);
  border: 1px solid var(--border);
  border-bottom-left-radius: 3px;
  color: var(--text);
}
.ai-chat__msg--user {
  align-self: flex-end;
  background: var(--color-primary);
  color: #fff;
  border-bottom-right-radius: 3px;
}

.ai-chat__typing {
  display: flex;
  gap: 0.25rem;
  padding: 0.7rem 0.85rem;
}
.ai-chat__typing span {
  width: 0.4rem; height: 0.4rem;
  border-radius: 50%;
  background: var(--text-soft);
  opacity: 0.5;
  animation: ai-typing 1s infinite ease-in-out;
}
.ai-chat__typing span:nth-child(2) { animation-delay: 0.15s; }
.ai-chat__typing span:nth-child(3) { animation-delay: 0.3s; }
@keyframes ai-typing {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.4; }
  30% { transform: translateY(-3px); opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .ai-chat__typing span { animation: none; opacity: 0.7; }
}

.ai-chat__quick-replies {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  padding: 0 0.9rem 0.7rem;
  background: var(--surface-muted);
}
.ai-chat__quick-reply {
  font: inherit;
  font-size: 0.78rem;
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--color-primary);
  border-radius: 999px;
  padding: 0.4rem 0.7rem;
  cursor: pointer;
}
.ai-chat__quick-reply:hover { background: var(--surface-2, var(--surface-muted)); }

.ai-chat__input-row {
  display: flex;
  gap: 0.5rem;
  padding: 0.7rem;
  border-top: 1px solid var(--border);
  background: var(--bg);
}
.ai-chat__input-row input {
  flex: 1;
  font: inherit;
  font-size: 0.87rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.55rem 0.9rem;
  color: var(--text);
}
.ai-chat__input-row input:focus { outline: 2px solid var(--color-primary); outline-offset: 1px; }
.ai-chat__send {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.4rem; height: 2.4rem;
  flex-shrink: 0;
  border-radius: 50%;
  border: none;
  background: var(--color-accent);
  color: #1A1200;
  cursor: pointer;
}
.ai-chat__send svg { width: 1rem; height: 1rem; }

@media (max-width: 480px) {
  .ai-chat__panel {
    width: calc(100vw - 1.7rem);
    height: min(32rem, calc(100vh - 9rem));
  }
}

/* ---------- Booking widget ---------- */
.booking-note {
  color: var(--text-soft);
  font-size: 1.02rem;
  margin: -0.6rem 0 1.6rem;
}

.booking-form {
  display: flex;
  flex-direction: column;
  gap: 1.6rem;
}

.booking-summary {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-primary-dark);
  background: rgba(0,0,0,0.04);
  border-radius: 8px;
  padding: 0.6rem 0.9rem;
  margin: 0;
}

.booking-step__label {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-soft);
  margin: 0 0 0.7rem;
}

.booking-chips, .booking-dates, .booking-times {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.booking-chip, .booking-date, .booking-time {
  font: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  background: var(--bg);
  border: 1.5px solid var(--border);
  color: var(--text);
  border-radius: 10px;
  padding: 0.6rem 1rem;
  cursor: pointer;
}
.booking-chip:hover, .booking-date:hover, .booking-time:hover { border-color: var(--color-primary); }

.booking-chip.is-selected, .booking-date.is-selected, .booking-time.is-selected {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #fff;
}

.booking-step[data-step="contact"] {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  max-width: 26rem;
}
.booking-step[hidden] { display: none; }
.booking-step[data-step="contact"] label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
}
.booking-step[data-step="contact"] input {
  font: inherit;
  padding: 0.6rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  background: var(--bg);
}
.booking-step[data-step="contact"] input:focus {
  outline: 2px solid var(--color-primary);
  outline-offset: 1px;
}
.booking-step[data-step="contact"] button { align-self: flex-start; margin-top: 0.3rem; }

.booking-success {
  background: #DCF3E3;
  color: #14663A;
  border-radius: 10px;
  padding: 1rem 1.2rem;
  font-weight: 600;
  margin: 0;
}

/* ---------- Print (for PDF export / leave-behind copies) ---------- */
@media print {
  .sticky-call { display: none; }
  .ai-chat { display: none; }
  .site-header { position: static; }
  body { padding-bottom: 0; }
  .hero { background-image: none !important; background-color: var(--color-primary-dark); }
  a[href^="tel:"]::after, a[href^="sms:"]::after { content: ""; }
  .section, .hero { break-inside: avoid; }
}
