/* ============================================================
   Christine's Commissary Kitchen — marketing site
   Palette + type recreated from the design handoff (OKLCH).
   ============================================================ */

:root {
  --bg:          oklch(97% 0.015 80);   /* cream page background     */
  --tint:        oklch(93% 0.025 70);   /* card / section tint       */
  --hairline:    oklch(88% 0.02 70);    /* grid dividers             */
  --hairline-hi: oklch(90% 0.02 70);    /* header / footer borders   */
  --input-border:oklch(85% 0.02 70);
  --input-bg:    oklch(99% 0.005 80);

  --heading:     oklch(20% 0.02 60);    /* h1                        */
  --text:        oklch(24% 0.02 60);    /* primary body              */
  --text-soft:   oklch(34% 0.02 60);
  --text-muted:  oklch(40% 0.02 60);
  --text-faint:  oklch(50% 0.02 60);    /* footer                    */

  --terracotta:  oklch(58% 0.15 40);    /* primary accent            */
  --olive:       oklch(50% 0.08 130);   /* eyebrow labels            */
  --on-accent:   oklch(98% 0.01 60);    /* text on terracotta        */

  --serif: 'Newsreader', Georgia, serif;
  --sans:  'Work Sans', system-ui, sans-serif;

  --pad-x: 56px;   /* consistent horizontal section padding */
  --radius: 2px;
}

/* ----------------------------- Reset ----------------------------- */
* { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: var(--sans);
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { margin: 0; }
p { margin: 0; }

a { color: inherit; }

img, iframe { display: block; max-width: 100%; }

/* Accessible focus ring for keyboard users (handoff asked for this). */
:focus-visible {
  outline: 2px solid var(--terracotta);
  outline-offset: 3px;
  border-radius: var(--radius);
}

/* Visually-hidden form labels — keep the placeholder-only look while
   remaining screen-reader accessible. */
label {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* Honeypot spam field — hidden from humans. */
.hp {
  position: absolute;
  left: -9999px;
  opacity: 0;
  height: 0;
  width: 0;
}

/* ----------------------------- Shared ---------------------------- */
.eyebrow {
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--olive);
  font-weight: 600;
  margin-bottom: 12px;
}
.eyebrow--lg {
  font-size: 15px;
  letter-spacing: 0.12em;
  margin-bottom: 0;
}

.btn-filled {
  display: inline-block;
  text-decoration: none;
  background: var(--terracotta);
  color: var(--on-accent);
  font-weight: 600;
  font-size: 15px;
  padding: 15px 28px;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  font-family: inherit;
  transition: filter 0.15s ease;
}
.btn-filled:hover { filter: brightness(0.94); }
.btn-filled--submit { align-self: flex-start; padding: 15px 32px; }

.btn-outline {
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  color: var(--terracotta);
  border: 1.5px solid var(--terracotta);
  padding: 9px 20px;
  border-radius: var(--radius);
  white-space: nowrap; /* keep "Inquire →" on one line on narrow screens */
  transition: background 0.15s ease, color 0.15s ease;
}
.btn-outline:hover { background: var(--terracotta); color: var(--on-accent); }

.link-underline {
  text-decoration: none;
  color: var(--text);
  font-weight: 600;
  font-size: 15px;
  padding: 15px 4px;
  border-bottom: 1.5px solid var(--text);
}

.placeholder-label {
  font-family: ui-monospace, Menlo, monospace;
  font-size: 13px;
  color: oklch(30% 0.05 50);
  background: oklch(97% 0.015 80 / 0.85);
  padding: 10px 16px;
  border-radius: 3px;
}

/* ----------------------------- Header ---------------------------- */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px var(--pad-x);
  border-bottom: 1px solid var(--hairline-hi);
}
.wordmark {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  font-size: 22px;
  text-decoration: none;
  color: var(--text);
}

/* ------------------------------ Hero ----------------------------- */
.hero {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  align-items: stretch;
}
.hero__copy {
  padding: 88px var(--pad-x) 72px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 26px;
}
.hero h1 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 52px;
  line-height: 1.12;
  color: var(--heading);
}
.hero__lede {
  font-size: 18px;
  line-height: 1.6;
  color: var(--text-soft);
  max-width: 480px;
}
.hero__cta {
  display: flex;
  gap: 16px;
  margin-top: 8px;
  align-items: center;
  flex-wrap: wrap;
}
.hero__media {
  position: relative;
  min-height: 520px;
  background: oklch(90% 0.03 60); /* shows briefly while images load */
}

/* ------------------------------ Carousel -------------------------- */
.carousel {
  position: absolute;
  inset: 0;
  overflow: hidden;
}
/* Soft bottom scrim so the dots stay legible over bright photos. */
.carousel::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 72px;
  background: linear-gradient(to top, oklch(20% 0.02 60 / 0.28), transparent);
  pointer-events: none;
}
.carousel__track {
  list-style: none;
  margin: 0;
  padding: 0;
  height: 100%;
}
.carousel__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.6s ease;
  pointer-events: none;
}
.carousel__slide.is-active {
  opacity: 1;
  pointer-events: auto;
}
.carousel__slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
@media (prefers-reduced-motion: reduce) {
  .carousel__slide { transition: none; }
}

/* prev / next arrows */
.carousel__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  line-height: 1;
  color: var(--text);
  background: oklch(97% 0.015 80 / 0.85);
  border: none;
  border-radius: 2px;
  cursor: pointer;
  transition: background 0.15s ease;
}
.carousel__nav:hover { background: oklch(97% 0.015 80 / 1); }
.carousel__nav--prev { left: 14px; }
.carousel__nav--next { right: 14px; }
/* On mouse devices, keep the arrows out of the way until hover/focus.
   Touch devices (no hover) keep them visible so they stay reachable. */
@media (hover: hover) and (pointer: fine) {
  .carousel__nav {
    opacity: 0;
    transition: opacity 0.2s ease, background 0.15s ease;
  }
  .carousel:hover .carousel__nav,
  .carousel:focus-within .carousel__nav {
    opacity: 1;
  }
}

/* dots */
.carousel__dots {
  position: absolute;
  bottom: 16px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 8px;
}
.carousel__dot {
  width: 9px;
  height: 9px;
  padding: 0;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  background: oklch(97% 0.015 80 / 0.6);
  transition: background 0.15s ease, transform 0.15s ease;
}
.carousel__dot.is-active {
  background: var(--terracotta);
  transform: scale(1.15);
}

/* --------------------------- Value props -------------------------- */
.value-props {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--hairline);           /* shows through as hairlines */
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
}
.value-props__cell {
  background: var(--bg);
  padding: 44px 40px;
}
.numeral {
  font-family: var(--serif);
  font-style: italic;
  font-size: 26px;
  color: var(--terracotta);
  margin-bottom: 14px;
}
.value-props__cell h3 {
  font-weight: 600;
  font-size: 18px;
  margin-bottom: 8px;
}
.value-props__cell p {
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-muted);
}

/* --------------------------- Who it's for ------------------------- */
.audience {
  padding: 72px var(--pad-x);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
}
.audience__body {
  font-size: 17px;
  line-height: 1.65;
  color: var(--text-soft);
}

/* -------------------------- What's included ----------------------- */
.amenities {
  padding: 72px var(--pad-x);
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 56px;
  border-top: 1px solid var(--hairline);
}
.amenities h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 32px;
  line-height: 1.15;
  color: var(--heading);
  margin: 0 0 16px;
}
.amenities__lede {
  font-size: 17px;
  line-height: 1.65;
  color: var(--text-soft);
  max-width: 420px;
}
.amenities__list {
  list-style: none;
  margin: 0;
  padding: 0;
  align-self: center;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px 36px;
}
.amenities__list li {
  position: relative;
  padding-left: 30px;
  font-size: 16px;
  line-height: 1.45;
  color: var(--text);
}
.amenities__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 3px;
  width: 16px;
  height: 16px;
  border-radius: 2px;
  background: var(--terracotta);
  /* white check mark */
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='white' d='M6.4 11.2 3.2 8l1.1-1.1 2.1 2.1 5-5L12.5 5z'/%3E%3C/svg%3E") center / 14px no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='white' d='M6.4 11.2 3.2 8l1.1-1.1 2.1 2.1 5-5L12.5 5z'/%3E%3C/svg%3E") center / 14px no-repeat;
}

/* ----------------------------- Location --------------------------- */
.location {
  background: var(--tint);
  padding: var(--pad-x);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}
.location__address {
  font-style: normal;
  font-size: 19px;
  line-height: 1.6;
  color: var(--text);
}
.location__note {
  font-size: 15px;
  color: var(--text-muted);
  margin-top: 10px;
}
.location__map {
  height: 260px;
  border-radius: 3px;
  overflow: hidden;
  border: 1px solid var(--hairline);
}
.location__map iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

/* ------------------------------ Form ------------------------------ */
.form-section {
  padding: 72px var(--pad-x) 80px;
  max-width: 640px;
}
.form-section h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 32px;
  margin-bottom: 8px;
}
.form-section__subhead {
  font-size: 16px;
  color: var(--text-muted);
  margin-bottom: 32px;
}
#lead-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.field { position: relative; display: flex; flex-direction: column; }
.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
input, select, textarea {
  font-family: inherit;
  padding: 14px 16px;
  border: 1.5px solid var(--input-border);
  border-radius: var(--radius);
  font-size: 15px;
  background: var(--input-bg);
  color: var(--text);
  width: 100%;
}
textarea { resize: vertical; }
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--terracotta);
  box-shadow: 0 0 0 3px oklch(58% 0.15 40 / 0.18);
}

.form-error {
  font-size: 14px;
  color: var(--terracotta);
  margin-top: -4px;
}
.form-error a { color: var(--terracotta); }

.form-thanks {
  padding: 32px;
  background: var(--tint);
  border-radius: 3px;
  font-size: 17px;
  color: var(--text);
}

/* -------------------------- Booking modal ------------------------- */
.booking-modal[hidden] { display: none; }
.booking-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.booking-modal__backdrop {
  position: absolute;
  inset: 0;
  background: oklch(20% 0.02 60 / 0.55);
}
.booking-modal__panel {
  position: relative;
  width: min(920px, 100%);
  height: min(88vh, 780px);
  /* White, not cream: Google's booking page is transparent and shows this color
     through, but a few of its elements (the selected day's time column, some
     highlights) are hard-coded opaque white and can't be restyled from outside
     the cross-origin iframe. White here makes those blend instead of clashing. */
  background: #ffffff;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 24px 64px oklch(20% 0.02 60 / 0.35);
}
.booking-modal__close {
  position: absolute;
  top: 10px;
  right: 12px;
  z-index: 2;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  line-height: 1;
  color: var(--text);
  background: oklch(97% 0.015 80 / 0.92);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 1px 4px oklch(20% 0.02 60 / 0.2);
}
.booking-modal__close:hover { background: oklch(99% 0.005 80 / 1); }
.booking-modal__frame {
  width: 100%;
  height: 100%;
  border: 0;
}
@media (max-width: 480px) {
  .booking-modal { padding: 0; }
  .booking-modal__panel { width: 100%; height: 100%; border-radius: 0; }
}

/* ----------------------------- Footer ----------------------------- */
.site-footer {
  padding: 24px var(--pad-x);
  border-top: 1px solid var(--hairline-hi);
  font-size: 13px;
  color: var(--text-faint);
}
/* Wide screens: name and address on one line, joined by a middot. */
.site-footer__addr::before {
  content: "·";
  margin: 0 8px;
}
/* Narrow screens: stack the name above the address, drop the middot. */
@media (max-width: 600px) {
  .site-footer__name,
  .site-footer__addr {
    display: block;
  }
  .site-footer__addr {
    margin-top: 4px;
  }
  .site-footer__addr::before {
    content: none;
  }
}

/* ============================================================
   Responsive — the handoff was desktop-only; these breakpoints
   keep it usable on tablets and phones.
   ============================================================ */
@media (max-width: 860px) {
  :root { --pad-x: 32px; }

  .hero {
    grid-template-columns: 1fr;
  }
  .hero__copy { padding: 56px var(--pad-x) 48px; order: 2; }
  .hero__media { min-height: 300px; order: 1; }
  .hero h1 { font-size: 40px; }

  .value-props { grid-template-columns: 1fr; }

  .audience {
    grid-template-columns: 1fr;
    gap: 40px;
    padding: 56px var(--pad-x);
  }

  .amenities {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 56px var(--pad-x);
  }

  .location {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .form-section { padding: 56px var(--pad-x) 64px; }
}

@media (max-width: 480px) {
  .site-header { padding: 18px var(--pad-x); }
  .wordmark { font-size: 18px; }
  .hero h1 { font-size: 32px; }
  .hero__cta { gap: 12px; }
  .field-row { grid-template-columns: 1fr; }
  .amenities__list { grid-template-columns: 1fr; }
  .btn-filled, .link-underline { width: 100%; text-align: center; }
  .link-underline { border-bottom: none; text-decoration: underline; padding: 12px 4px; }
}
