/* ============================================================================
   City Personal Chef — design system
   ----------------------------------------------------------------------------
   Built on the Driven By Taste language: dark ground, gold accent, Cormorant
   Garamond display over Jost body, centred composition, generous vertical
   rhythm, narrow measure.

   Standalone. Pages using this do NOT load normalize.css / webflow.css /
   city-personal-chef---official.webflow.css. Webflow's split-screen layout is
   structurally the opposite of this, so overriding it could not get here.
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;1,300;1,400&display=swap');

@font-face {
  font-family: 'Jost';
  src: url('../fonts/Jost-400-Book.otf') format('opentype');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'Jost';
  src: url('../fonts/Jost-500-Medium.otf') format('opentype');
  font-weight: 500;
  font-display: swap;
}

:root {
  --black:        #0a0a0a;
  --dark:         #111113;
  --dark-surface: #1a1a1d;
  --gold:         #c9a84c;
  --gold-light:   #d4ba6a;
  --gold-dim:     rgba(201, 168, 76, 0.15);
  --white:        #f5f5f3;
  --white-dim:    rgba(245, 245, 243, 0.6);
  --white-muted:  rgba(245, 245, 243, 0.35);
  --hairline:     rgba(245, 245, 243, 0.12);

  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body:    'Jost', 'Helvetica Neue', Arial, sans-serif;

  --measure:      620px;   /* reading width */
  --content:      850px;   /* hero / heading width */
  --wide:         1200px;  /* grids and strips */
  --rhythm:       7rem;    /* section padding */
}

*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--black);
  color: var(--white);
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

::selection { background: var(--gold-dim); color: var(--white); }

/* ── Type ─────────────────────────────────────────────────────────────────── */

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 300;
  line-height: 1.1;
  letter-spacing: 0.01em;
  margin: 0;
  text-wrap: balance;
}

h1 { font-size: clamp(2.4rem, 5.5vw, 4.2rem); }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.8rem); }
h3 { font-size: 1.5rem; }

em { font-style: italic; color: var(--gold); }

p { margin: 0 0 1.2rem; color: var(--white-dim); }
p:last-child { margin-bottom: 0; }

.eyebrow {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 400;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 1.5rem;
}

.eyebrow-tight { letter-spacing: 0.25em; }

.lede {
  font-size: 1.1rem;
  color: var(--white-dim);
  max-width: var(--measure);
  margin-inline: auto;
}

.fine {
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--white-muted);
}

/* ── Buttons ──────────────────────────────────────────────────────────────── */

.btn {
  display: inline-block;
  padding: 1rem 2.8rem;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  border: 1px solid var(--gold);
  color: var(--gold);
  background: transparent;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.4s, color 0.4s;
}
.btn:hover { background: var(--gold); color: var(--black); }
.btn-filled { background: var(--gold); color: var(--black); }
.btn-filled:hover { background: var(--gold-light); }
.btn-quiet { border-color: var(--hairline); color: var(--white-dim); }
.btn-quiet:hover { background: transparent; border-color: var(--gold); color: var(--gold); }

a { color: var(--gold); text-decoration: none; transition: color 0.3s; }
a:hover { color: var(--gold-light); }
a:focus-visible, .btn:focus-visible, button:focus-visible {
  outline: 1px solid var(--gold);
  outline-offset: 4px;
}

/* ── Nav ──────────────────────────────────────────────────────────────────── */

/* Transparent over the hero, solid once content starts passing behind it —
   otherwise headings scroll under the bar and read as broken. */
.nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.25rem clamp(1.25rem, 4vw, 3rem);
  padding-top: calc(1.25rem + env(safe-area-inset-top, 0px));
  background: linear-gradient(to bottom, rgba(10,10,10,.85), rgba(10,10,10,0));
  transition: background .4s, border-color .4s, padding .4s;
  border-bottom: 1px solid transparent;
}
.nav.is-solid {
  background: rgba(10, 10, 10, .96);
  border-bottom-color: var(--hairline);
  padding-block: .85rem;
  padding-top: calc(.85rem + env(safe-area-inset-top, 0px));
}
@supports (backdrop-filter: blur(8px)) {
  .nav.is-solid { background: rgba(10, 10, 10, .82); backdrop-filter: blur(10px); }
}
/* The wordmark is black artwork on transparent; force it white for the dark ground. */
.nav-logo img { height: 40px; width: auto; filter: brightness(0) invert(1); }
.nav-links { display: flex; gap: clamp(1rem, 2.5vw, 2.2rem); align-items: center; }
.nav-links a {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--white-dim);
}
.nav-links a:hover { color: var(--gold); }
.nav-links a.is-cta { color: var(--gold); }

/* ── Hero ─────────────────────────────────────────────────────────────────── */

.hero {
  position: relative;
  min-height: 700px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 8rem 0 6rem;
}
.hero-bg { position: absolute; inset: 0; overflow: hidden; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.85) contrast(1.05); }
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(10,10,10,.55), rgba(10,10,10,.82) 60%, var(--black));
}
.hero-content { position: relative; max-width: var(--content); padding: 0 2rem; }
.hero h1 { margin-bottom: 1.5rem; }
.hero-sub { max-width: 600px; margin: 0 auto 2.5rem; font-size: 1.05rem; }
.hero-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.hero-tag { margin-top: 2rem; }

/* ── Sections ─────────────────────────────────────────────────────────────── */

.section { padding: var(--rhythm) 0; text-align: center; }
.section-inner { max-width: var(--content); margin-inline: auto; padding-inline: clamp(1.25rem, 4vw, 2rem); }
.section-wide { max-width: var(--wide); margin-inline: auto; padding-inline: clamp(1.25rem, 4vw, 2rem); }
.section-alt { background: var(--dark); }
.section h2 { margin-bottom: 1.5rem; }

.divider { height: 1px; background: var(--hairline); border: 0; margin: 0; }

.divider-dot {
  display: flex; align-items: center; justify-content: center; gap: .9rem;
  color: var(--gold); margin: 0 auto 2rem; max-width: 120px;
}
.divider-dot::before, .divider-dot::after {
  content: ""; flex: 1; height: 1px; background: var(--gold-dim);
}
.divider-dot span { font-size: .5rem; }

/* ── Feature grid ─────────────────────────────────────────────────────────── */

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem;
  margin-top: 4rem;
  text-align: center;
}
.feature-num {
  font-family: var(--font-display);
  font-size: 2.2rem;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 1rem;
}
.feature h3 { margin-bottom: .75rem; }
.feature p { font-size: .95rem; }

/* ── Filmstrip ────────────────────────────────────────────────────────────── */

.filmstrip-wrap { margin-top: 4rem; }
.filmstrip {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 0 clamp(1.25rem, 4vw, 2rem) 1rem;
  scrollbar-width: thin;
  scrollbar-color: var(--gold-dim) transparent;
}
.filmstrip::-webkit-scrollbar { height: 3px; }
.filmstrip::-webkit-scrollbar-thumb { background: var(--gold-dim); }
.filmstrip-item {
  flex: 0 0 min(420px, 78vw);
  scroll-snap-align: center;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}
.filmstrip-item img {
  width: 100%; height: 100%; object-fit: cover;
  filter: saturate(.9) contrast(1.02);
  transition: filter .5s, transform .5s;
}
.filmstrip-item:hover img { filter: saturate(1) contrast(1.04); transform: scale(1.03); }

/* Each frame credits the chef whose gallery it came from, and links to them. */
.filmstrip-item { position: relative; display: block; }
.filmstrip-cap {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 2.5rem .9rem .8rem;
  background: linear-gradient(to top, rgba(10,10,10,.85), rgba(10,10,10,0));
  font-size: .68rem;
  font-weight: 400;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--white-dim);
  text-align: left;
  transition: color .4s;
}
.filmstrip-item:hover .filmstrip-cap { color: var(--gold); }

/* ── Regions ──────────────────────────────────────────────────────────────── */

.regions { display: flex; justify-content: center; gap: 0; flex-wrap: wrap; margin-top: 2.5rem; }
.region {
  padding: 0 clamp(1.5rem, 4vw, 3rem);
  border-left: 1px solid var(--hairline);
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--white);
}
.region:first-child { border-left: 0; }

/* ── CTA band ─────────────────────────────────────────────────────────────── */

.cta { padding: var(--rhythm) 0; text-align: center; background: var(--dark-surface); }
.cta h2 { margin-bottom: 1rem; }
.cta p { margin-bottom: 2.5rem; }

/* ── Footer ───────────────────────────────────────────────────────────────── */

.footer { padding: 3.5rem 0 calc(3.5rem + env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--hairline); text-align: center; }
.footer-inner { max-width: var(--wide); margin-inline: auto; padding-inline: clamp(1.25rem, 4vw, 2rem); }
.footer-links { display: flex; gap: 1.8rem; justify-content: center; flex-wrap: wrap; margin-bottom: 1.5rem; }
.footer-links a { font-size: .72rem; letter-spacing: .22em; text-transform: uppercase; color: var(--white-dim); }
.footer-links a:hover { color: var(--gold); }
.footer-copy { font-size: .78rem; color: var(--white-muted); letter-spacing: .04em; }

/* ── Reveal on scroll ─────────────────────────────────────────────────────── */
/* Resting state is visible. The class only adds a transition once JS marks the
   page ready, so with JS off or an observer failure nothing is ever stranded. */

.js-reveal .reveal { opacity: 0; transform: translateY(18px); transition: opacity .8s ease, transform .8s ease; }
.js-reveal .reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .js-reveal .reveal { opacity: 1; transform: none; transition: none; }
  .btn, a, .filmstrip-item img, .nav { transition: none; }
}

/* ── Responsive ───────────────────────────────────────────────────────────── */

@media (max-width: 860px) {
  :root { --rhythm: 4.5rem; }
  .features-grid { grid-template-columns: 1fr; gap: 3rem; }
  .hero { min-height: 560px; padding: 7rem 0 4rem; }
  .region { border-left: 0; padding: .35rem 0; font-size: 1.2rem; }
  .regions { flex-direction: column; gap: 0; }
}

@media (max-width: 560px) {
  .nav-links { gap: .9rem; }
  .nav-links a { font-size: .66rem; letter-spacing: .16em; }
  .nav-links .nav-hide-sm { display: none; }
}

/* ── Interior pages ───────────────────────────────────────────────────────── */
/* Pages other than the home page: compact head instead of a full hero. */

.page-head {
  padding: calc(8rem + env(safe-area-inset-top, 0px)) 0 3.5rem;
  text-align: center;
  border-bottom: 1px solid var(--hairline);
  background: var(--dark);
}
.page-head-inner {
  max-width: var(--content);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 4vw, 2rem);
}
.page-head h1 { font-size: clamp(2rem, 4.5vw, 3.2rem); }
.page-head .lede { margin-top: 1.25rem; }

.page-main { padding: var(--rhythm) 0 calc(var(--rhythm) + env(safe-area-inset-bottom, 0px)); }
.page-main > .container,
.page-main .container {
  max-width: var(--wide);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 4vw, 2rem);
}
.page-main.is-narrow .container { max-width: 760px; }

/* Long-form copy inside interior pages reads left-aligned at a sane measure. */
.page-main .container > p,
.page-main .container > h2,
.page-main .container > h3 { max-width: var(--measure); }
.page-main .container > p { text-align: left; }
