/* =========================================
   BRAND SETTINGS — change colours/fonts here
   ========================================= */
:root {
  --accent: #844A3A;      /* terracotta: buttons, highlights */
  --ink: #1A1814;         /* near-black: text */
  --cream: #FBF9F4;       /* main background */
  --sand: #F0EDE3;        /* alternate section background */

  --font-heading: "Italiana", Georgia, serif;
  --font-body: "Figtree", system-ui, sans-serif;
}

/* ============ BASICS ============ */
* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }
section[id] { scroll-margin-top: 70px; } /* stops the sticky header covering sections */

body {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--cream);
}

h1, h2, h3, .logo {
  font-family: var(--font-heading);
  font-weight: 400;
  line-height: 1.15;
}

h1 { font-size: clamp(2.6rem, 7vw, 4.5rem); margin-bottom: 1.25rem; }
h2 { font-size: clamp(2rem, 5vw, 3rem); margin-bottom: 1.5rem; }
h3 { font-size: 1.6rem; margin-bottom: 0.5rem; }

a { color: var(--accent); }

.container { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 1.25rem; }
.narrow { max-width: 680px; }
.center { text-align: center; }

.section { padding: 5rem 0; }
.alt { background: var(--sand); }

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--accent);
  margin-bottom: 1rem;
}

.lead { font-size: 1.2rem; margin-bottom: 2rem; opacity: 0.85; }
.small-print { font-size: 0.85rem; opacity: 0.65; margin-top: 1rem; }

/* ============ BUTTONS ============ */
.button {
  display: inline-block;
  background: var(--accent);
  color: var(--cream);
  border: 1px solid var(--accent);
  padding: 0.9rem 1.8rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 500;
  transition: background 0.2s, color 0.2s;
}
.button:hover { background: var(--ink); border-color: var(--ink); }

.button-outline { background: transparent; color: var(--accent); }
.button-outline:hover { background: var(--accent); color: var(--cream); border-color: var(--accent); }

.button-small { padding: 0.55rem 1.2rem; font-size: 0.9rem; }

.button-row { display: flex; flex-wrap: wrap; gap: 0.75rem; justify-content: center; }

/* ============ HEADER ============ */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: var(--cream);
  border-bottom: 1px solid var(--sand);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; padding-top: 1rem; padding-bottom: 1rem; }
.logo { font-size: 1.6rem; color: var(--ink); text-decoration: none; }

/* ============ HERO ============ */
.hero { padding: 6rem 0 5rem; text-align: center; }

.countdown {
  display: flex; justify-content: center; gap: 2.5rem;
  margin-top: 3.5rem;
}
.countdown span { display: block; font-family: var(--font-heading); font-size: 2.8rem; line-height: 1; }
.countdown small { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.15em; opacity: 0.6; }

/* ============ HERO EXTRAS ============ */
.hero-kicker { font-family: var(--font-heading); font-size: 1.5rem; color: var(--accent); margin-bottom: 0.25rem; }

/* ============ LONG-FORM READING ============ */
.reading { max-width: 640px; margin: 0 auto; }
.story p { font-size: 1.2rem; line-height: 1.8; margin-bottom: 1.5rem; }
.story p:last-child { margin-bottom: 0; }
.emphasis { font-weight: 500; }

.drop-cap::first-letter {
  font-family: var(--font-heading);
  float: left;
  font-size: 4.6rem;
  line-height: 0.85;
  padding: 0.35rem 0.6rem 0 0;
  color: var(--accent);
}

.story .pull-quote {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 5vw, 2.8rem);
  line-height: 1.2;
  color: var(--accent);
  text-align: center;
  margin: 3rem 0;
}

/* Dark "reveal" section */
.dark { background: var(--accent); color: var(--cream); }
.dark .story p { opacity: 0.9; }
.story .pull-quote.light { color: var(--cream); opacity: 1; border-top: 1px solid rgba(251,249,244,0.2); padding-top: 2.5rem; }

.reveal-title { text-align: center; font-size: clamp(2.6rem, 7vw, 4rem); margin: 3rem 0 2rem; }
.reveal-title span, .offer-kicker {
  display: block;
  font-family: var(--font-body);
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
  opacity: 0.7;
}

.button-light { background: var(--cream); color: var(--ink); border-color: var(--cream); margin-top: 1rem; }
.button-light:hover { background: var(--ink); color: var(--cream); border-color: var(--ink); }

/* ============ WHAT'S INSIDE CARDS ============ */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
  margin-top: 3rem;
}
.card {
  background: var(--sand);
  border-radius: 16px;
  padding: 2rem;
}
.card-wide { grid-column: 1 / -1; }
.card-number { display: block; font-family: var(--font-heading); font-size: 1.4rem; color: var(--accent); margin-bottom: 1rem; }

.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1rem; }
.chips li { background: var(--cream); border: 1px solid rgba(132,74,58,0.25); border-radius: 999px; padding: 0.3rem 0.8rem; font-size: 0.85rem; }

.closing-line { font-family: var(--font-heading); font-size: clamp(1.6rem, 4vw, 2.2rem); text-align: center; margin-top: 3.5rem; }

/* ============ OFFER CARD ============ */
.offer {
  background: #fff;
  border: 1px solid var(--sand);
  border-radius: 16px;
  padding: 3rem 2rem;
  text-align: center;
}
.offer h2 { margin-bottom: 0.5rem; }
.offer h2 { margin-bottom: 1rem; }
.offer-kicker { color: var(--accent); opacity: 1; }
.offer-note { font-family: var(--font-heading); font-size: 1.5rem; margin-bottom: 1.5rem; }
.price { font-family: var(--font-heading); font-size: 2.5rem; color: var(--accent); margin-bottom: 1.5rem; }
.price-label { text-transform: uppercase; letter-spacing: 0.15em; font-size: 0.75rem; font-weight: 500; margin-bottom: 0.25rem; }
.price-old { font-size: 1.5rem; color: var(--ink); opacity: 0.45; margin-right: 0.4rem; }

.checklist { list-style: none; text-align: left; max-width: 360px; margin: 0 auto 2rem; }
.checklist li { padding: 0.6rem 0 0.6rem 1.75rem; border-bottom: 1px solid var(--sand); position: relative; }
.checklist li::before { content: "✓"; position: absolute; left: 0; color: var(--accent); }
.checklist.two-col { max-width: 540px; column-gap: 2rem; }
@media (min-width: 600px) { .checklist.two-col { columns: 2; } .checklist.two-col li { break-inside: avoid; } }
.checklist.big { max-width: none; margin: 0; }
.checklist.big li { font-size: 1.15rem; padding: 1rem 0 1rem 2.25rem; border-bottom-color: rgba(132,74,58,0.15); }
.checklist.big li::before { top: 1rem; font-size: 1.1rem; }

/* ============ FAQ ============ */
details { border-bottom: 1px solid var(--sand); padding: 1.25rem 0; }
summary { cursor: pointer; font-weight: 500; list-style: none; display: flex; justify-content: space-between; }
summary::after { content: "+"; color: var(--accent); font-size: 1.3rem; line-height: 1; }
details[open] summary::after { content: "–"; }
details p { margin-top: 0.75rem; opacity: 0.85; }
.button-faq { padding: 0.55rem 1.2rem; font-size: 0.9rem; }
.waitlist-form { max-width: 560px; margin: 0 auto; min-height: 60px; } /* matches the width of the beehiiv form so it sits centred */

/* ============ FOOTER ============ */
.site-footer { background: var(--accent); color: var(--cream); padding: 3rem 0; text-align: center; }
.site-footer .logo { color: var(--cream); }

/* ============ PHONES ============ */
@media (max-width: 600px) {
  .section { padding: 3.5rem 0; }
  .hero { padding: 4rem 0 3.5rem; }
  .countdown { gap: 1.5rem; }
  .button-small { display: none; } /* hide header button on small screens */
}

/* =========================================
   HOMEPAGE
   ========================================= */

/* Logo in the homepage hero */
.hero-logo { margin: 0 auto 1.5rem; }
.hero-logo img { display: block; width: 100%; max-width: 520px; height: auto; margin: 0 auto; mix-blend-mode: multiply; }

/* Navigation links in the header */
.site-nav { display: flex; gap: 1.75rem; }
.site-nav a { color: var(--ink); text-decoration: none; font-size: 0.95rem; }
.site-nav a:hover { color: var(--accent); }

/* About: photo beside text */
.about {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 4rem;
  align-items: stretch;
}
/* On laptops the photo stretches to match the height of the text beside it */
.about-photo-wrap { position: relative; min-height: 360px; }
.about-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 30%; border-radius: 16px; }
.placeholder-photo {
  display: flex; align-items: center; justify-content: center;
  background: var(--cream);
  border: 1px dashed rgba(132,74,58,0.4);
  color: var(--accent);
}
.about-text p { font-size: 1.15rem; line-height: 1.8; margin-bottom: 1.25rem; }

/* Product cards */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-top: 3rem;
}
.product-card {
  display: flex; flex-direction: column; align-items: flex-start; gap: 0.75rem;
  background: var(--sand);
  border-radius: 16px;
  padding: 2.5rem 2rem;
  color: var(--ink);
  text-decoration: none;
  transition: transform 0.2s;
}
a.product-card:hover { transform: translateY(-4px); }
.product-card h3 { font-size: 2rem; margin: 0; }
.product-card .offer-kicker { color: var(--accent); opacity: 1; }
.product-card .button { margin-top: auto; }
.product-tag { text-transform: uppercase; letter-spacing: 0.15em; font-size: 0.75rem; font-weight: 500; color: var(--accent); }
.product-price { font-family: var(--font-heading); font-size: 2rem; color: var(--accent); }
.coming-soon { background: transparent; border: 1px dashed rgba(132,74,58,0.4); }

/* Private chef section (brown) */
.dark h2 { color: var(--cream); }
.light-eyebrow { color: var(--cream); opacity: 0.8; }

/* Homepage on phones */
@media (max-width: 760px) {
  .site-nav { display: none; }
  .about { grid-template-columns: 1fr; gap: 2rem; }
  /* On phones the whole photo fits on screen without scrolling */
  .about-photo-wrap { min-height: 0; }
  .about-photo { position: static; display: block; height: min(50vh, 400px); width: auto; max-width: 100%; aspect-ratio: 4 / 5; margin: 0 auto; }
}

/* =========================================
   PRIVATE CHEF ENQUIRY FORM
   ========================================= */
.form-intro { margin-bottom: 2.5rem; opacity: 0.85; }

.enquiry-form {
  background: #fff;
  border-radius: 16px;
  padding: 2.5rem 2rem;
  display: flex; flex-direction: column; gap: 1.25rem;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }

.enquiry-form label { display: flex; flex-direction: column; gap: 0.4rem; font-weight: 500; font-size: 0.95rem; }
.optional { font-weight: 400; opacity: 0.6; }

.enquiry-form input,
.enquiry-form select,
.enquiry-form textarea {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--ink);
  background: var(--cream);
  border: 1px solid rgba(26,24,20,0.15);
  border-radius: 10px;
  padding: 0.8rem 1rem;
  width: 100%;
}
.enquiry-form textarea { resize: vertical; }
.enquiry-form input:focus,
.enquiry-form select:focus,
.enquiry-form textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: transparent; }

.enquiry-form .button { align-self: center; margin-top: 0.5rem; cursor: pointer; font-family: var(--font-body); font-size: 1rem; }
.hidden-field { display: none; }

.thank-you { min-height: 60vh; display: flex; align-items: center; }

@media (max-width: 600px) {
  .form-row { grid-template-columns: 1fr; }
  .enquiry-form { padding: 2rem 1.25rem; }
}

/* Instagram link in the footer */
.footer-social {
  display: inline-flex; align-items: center; gap: 0.5rem;
  color: var(--cream); text-decoration: none; font-size: 0.95rem;
  margin-top: 0.75rem; opacity: 0.9;
}
.footer-social:hover { opacity: 1; text-decoration: underline; }

/* =========================================
   ROLLING PHOTO GALLERY
   ========================================= */
.rolling-gallery {
  overflow: hidden;
  width: 100%;
  margin: 3rem 0;
  /* Soft fade at the left and right edges */
  -webkit-mask-image: linear-gradient(to right, transparent, #000 6%, #000 94%, transparent);
          mask-image: linear-gradient(to right, transparent, #000 6%, #000 94%, transparent);
}
.gallery-track {
  display: flex;
  gap: 1rem;
  width: max-content;
  animation: gallery-roll 70s linear infinite;
}
.rolling-gallery:hover .gallery-track,
.rolling-gallery:focus-within .gallery-track { animation-play-state: paused; }
@keyframes gallery-roll {
  from { transform: translateX(0); }
  to { transform: translateX(calc(-50% - 0.5rem)); }
}
.gallery-item {
  flex: 0 0 auto;
  height: 340px;
  padding: 0; border: none; background: none; cursor: zoom-in;
  border-radius: 14px; overflow: hidden;
}
.gallery-item img { height: 100%; width: auto; display: block; transition: transform 0.4s; }
.gallery-item:hover img { transform: scale(1.04); }
.gallery-item:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }

/* People who prefer less motion can swipe through instead */
@media (prefers-reduced-motion: reduce) {
  .rolling-gallery { overflow-x: auto; -webkit-mask-image: none; mask-image: none; }
  .gallery-track { animation: none; }
  .gallery-item[aria-hidden="true"] { display: none; }
}
@media (max-width: 600px) {
  .gallery-item { height: 240px; }
  .gallery-track { animation-duration: 55s; }
}

/* Full-screen photo view */
.lightbox {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(26,24,20,0.92);
  display: flex; align-items: center; justify-content: center; padding: 1.5rem;
}
.lightbox[hidden] { display: none; }
.lightbox img { max-width: 100%; max-height: 90vh; border-radius: 10px; }
.lightbox-close {
  position: absolute; top: 1rem; right: 1rem;
  width: 44px; height: 44px; border-radius: 50%; border: none;
  background: var(--cream); color: var(--ink); font-size: 1.6rem; line-height: 1; cursor: pointer;
}

/* Gallery inside the brown homepage section */
.dark .rolling-gallery { margin: 2.5rem 0; }
.section-actions { text-align: center; }
.gallery-section { padding-bottom: 4rem; }
.gallery-section .rolling-gallery { margin: 0; }
.featured-on { text-align: center; font-size: 0.9rem; opacity: 0.8; margin-top: 1.5rem; padding: 0 1.25rem; }
