/* ===========================================================
   Rae Hakala — Private Chef
   styles/site.css
   =========================================================== */

:root {
  color-scheme: light;

  /* palette */
  --paper:      #fdfbf7;
  --cream:      #f4efe6;
  --ink:        #1c1a17;
  --ink-soft:   #5d564d;
  --ink-faint:  #8c8478;
  --clay:       #a8482c;
  --clay-deep:  #8a3a22;
  --olive:      #6c7356;
  --dark:       #221f1c;
  --dark-soft:  #2d2924;
  --line:       rgba(28, 26, 23, 0.13);
  --line-light: rgba(253, 251, 247, 0.18);

  /* type */
  --display: "Fraunces", "Iowan Old Style", Georgia, serif;
  --body:    "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  /* rhythm */
  --gutter: 16px;
  --max:    1180px;
  --sec-y:  clamp(4.5rem, 9vw, 9rem);
}

@media (min-width: 700px) { :root { --gutter: 32px; } }

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1rem;
  font-weight: 300;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; height: auto; }

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 400;
  font-variation-settings: "SOFT" 40, "WONK" 1;
  line-height: 1.04;
  letter-spacing: -0.015em;
  margin: 0;
  text-wrap: balance;
}
h1 { font-size: clamp(2.9rem, 8.8vw, 6rem); }
h2 { font-size: clamp(1.9rem, 4.6vw, 3.1rem); }
h3 { font-size: clamp(1.15rem, 1.9vw, 1.4rem); letter-spacing: -0.005em; }

p { margin: 0 0 1.1em; text-wrap: pretty; }
p:last-child { margin-bottom: 0; }

a { color: inherit; text-decoration-color: var(--clay); text-underline-offset: 3px; }

em { font-style: italic; font-variation-settings: "SOFT" 60, "WONK" 1; }

::selection { background: var(--clay); color: var(--paper); }

:focus-visible {
  outline: 2px solid var(--clay);
  outline-offset: 3px;
  border-radius: 2px;
}

/* the header is fixed, so anchor targets need clearance or the
   heading lands underneath it */
section[id] { scroll-margin-top: 7rem; }

.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--ink); color: var(--paper);
  padding: 0.75rem 1.25rem; z-index: 999;
}
.skip:focus { left: 0; }

.eyebrow {
  font-family: var(--body);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--clay);
  margin: 0 0 1.1rem;
}

/* ───────────── buttons ───────────── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.95rem 1.9rem;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--body);
  font-size: 0.86rem;
  font-weight: 500;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  text-decoration: none;
  border: 1px solid var(--ink);
  border-radius: 999px;
  cursor: pointer;
  transition: background .25s ease, color .25s ease, transform .25s ease;
}
.btn:hover { background: var(--clay); border-color: var(--clay); transform: translateY(-1px); }

.btn--ghost { background: transparent; color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }

.btn--light { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.btn--light:hover { background: var(--clay); color: var(--paper); border-color: var(--clay); }

.btn--sm { padding: 0.6rem 1.25rem; font-size: 0.74rem; }

/* ───────────── nav ───────────── */

.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  transition: background .3s ease, box-shadow .3s ease, border-color .3s ease;
  border-bottom: 1px solid transparent;
}
.nav.is-stuck {
  background: rgba(253, 251, 247, 0.92);
  backdrop-filter: blur(12px);
  border-bottom-color: var(--line);
}

.nav__inner {
  max-width: var(--max);
  margin-inline: auto;
  padding: 1.1rem var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.wordmark { text-decoration: none; display: block; }
.wordmark__name {
  display: block;
  font-family: var(--display);
  font-size: 1.55rem;
  font-weight: 500;
  letter-spacing: 0.005em;
  margin: 0;
  line-height: 1.1;
}
.wordmark__role {
  display: block;
  font-size: 0.73rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-top: 0.15rem;
}

.nav__links { display: none; align-items: center; gap: 2rem; }
@media (min-width: 900px) { .nav__links { display: flex; } }

.nav__links a:not(.btn) {
  font-size: 0.84rem;
  letter-spacing: 0.03em;
  text-decoration: none;
  color: var(--ink-soft);
  transition: color .2s ease;
}
.nav__links a:not(.btn):hover { color: var(--clay); }

.burger {
  display: grid;
  place-content: center;
  gap: 6px;
  width: 44px; height: 44px;
  margin-right: -10px;
  background: none; border: 0; cursor: pointer;
}
@media (min-width: 900px) { .burger { display: none; } }
.burger span {
  display: block;
  width: 24px; height: 1.5px;
  background: var(--ink);
  transition: transform .25s ease, opacity .2s ease;
}
.burger[aria-expanded="true"] span:first-child { transform: translateY(3.75px) rotate(45deg); }
.burger[aria-expanded="true"] span:last-child  { transform: translateY(-3.75px) rotate(-45deg); }

.sheet {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: var(--paper);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2rem;
  padding: 6rem var(--gutter) 3rem;
}
.sheet[hidden] { display: none; }
.sheet__links { display: flex; flex-direction: column; gap: 0.35rem; }
.sheet__links a {
  font-family: var(--display);
  font-size: clamp(2rem, 11vw, 2.8rem);
  text-decoration: none;
  padding: 0.25rem 0;
}
.sheet__foot { font-size: 0.9rem; color: var(--ink-soft); margin: 0; }

/* ───────────── hero ───────────── */

.hero {
  max-width: var(--max);
  margin-inline: auto;
  padding: clamp(7.5rem, 16vw, 11rem) var(--gutter) var(--sec-y);
  display: grid;
  gap: clamp(2.5rem, 5vw, 4rem);
}
@media (min-width: 950px) {
  .hero {
    grid-template-columns: 1.05fr 0.95fr;
    align-items: center;
  }
}

.hero h1 { margin-bottom: 1.5rem; }
.hero .lede {
  font-size: clamp(1.02rem, 1.4vw, 1.18rem);
  color: var(--ink-soft);
  max-width: 34ch;
  margin-bottom: 2.25rem;
}
.hero__cta { display: flex; flex-wrap: wrap; gap: 0.75rem; }
/* two pills at their natural widths stack raggedly on a phone */
@media (max-width: 479px) { .hero__cta { display: grid; grid-template-columns: 1fr; } }

/* ───────────── photographs ───────────── */

.shot {
  margin: 0;
  overflow: hidden;
  border-radius: 3px;
  background: var(--cream);
}
.shot img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.shot--hero,
.shot--portrait { aspect-ratio: 4 / 5; }

/* Tablet band: these two run full-width in a single column, and a tall frame
   across 740px of viewport becomes an absurdly deep block. Cap the width
   rather than squashing the crop. */
@media (min-width: 600px) and (max-width: 949px) { .shot--hero     { max-width: 460px; } }
@media (min-width: 600px) and (max-width: 899px) { .shot--portrait { max-width: 420px; } }

/* ───────────── strip ───────────── */

.strip {
  border-block: 1px solid var(--line);
  background: var(--cream);
}
.strip__list {
  max-width: var(--max);
  margin-inline: auto;
  padding: 1.75rem var(--gutter);
  list-style: none;
  display: grid;
  gap: 1rem 2.5rem;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  font-size: 0.88rem;
  color: var(--ink-soft);
}
.strip__list strong { font-weight: 500; color: var(--ink); }

/* ───────────── sections ───────────── */

.section {
  max-width: var(--max);
  margin-inline: auto;
  padding: var(--sec-y) var(--gutter);
}
.section--cream,
.section--dark {
  max-width: none;
  margin-inline: 0;
  padding-inline: 0;
}
.section--cream { background: var(--cream); }
.section--dark {
  background: var(--dark);
  color: var(--paper);
}
.section--dark .eyebrow { color: #d98a6b; }
.section--dark .section__sub,
.section--dark p { color: rgba(253, 251, 247, 0.72); }

.section--cream > *,
.section--dark  > * {
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section__head { max-width: 42rem; margin-bottom: clamp(2.75rem, 5vw, 4.5rem); }
.section__sub {
  margin-top: 1.25rem;
  color: var(--ink-soft);
  font-size: 1.02rem;
  max-width: 48ch;
}

/* ───────────── service cards ───────────── */

.cards {
  display: grid;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
@media (min-width: 680px)  { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .cards { grid-template-columns: repeat(4, 1fr); } }

.card {
  background: var(--paper);
  padding: 2.25rem 1.75rem 2rem;
  display: flex;
  flex-direction: column;
  transition: background .3s ease;
}
.card:hover { background: var(--cream); }

.card__num {
  font-family: var(--display);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  color: var(--clay);
  margin-bottom: 1.5rem;
}
.card h3 { margin-bottom: 0.85rem; }
.card > p { font-size: 0.93rem; color: var(--ink-soft); }

.card__list {
  list-style: none;
  padding: 0;
  margin: 0.5rem 0 1.75rem;
  font-size: 0.84rem;
  color: var(--ink-soft);
}
.card__list li {
  padding: 0.45rem 0 0.45rem 1rem;
  border-top: 1px solid var(--line);
  position: relative;
}
.card__list li::before {
  content: "";
  position: absolute;
  left: 0; top: 1.05rem;
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--olive);
}

.card__price {
  margin-top: auto;
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.card__note {
  display: block;
  margin-top: 0.3rem;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: var(--ink-faint);
}

.card__price strong {
  font-family: var(--display);
  font-size: 1.1rem;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  color: var(--ink);
}

/* ───────────── process steps ───────────── */

.steps {
  list-style: none;
  padding-inline: var(--gutter);
  margin: 0;
  display: grid;
  gap: clamp(2.25rem, 4vw, 3.5rem);
}
@media (min-width: 820px) { .steps { grid-template-columns: repeat(3, 1fr); } }

.step { padding-top: 1.5rem; border-top: 1px solid var(--line-light); }
.step__num {
  display: block;
  font-family: var(--display);
  font-size: 2.6rem;
  line-height: 1;
  color: rgba(253, 251, 247, 0.26);
  margin-bottom: 1.1rem;
}
.step h3 { margin-bottom: 0.7rem; }
.step p { font-size: 0.95rem; }

/* ───────────── about ───────────── */

.about {
  display: grid;
  gap: clamp(2.5rem, 5vw, 4.5rem);
  align-items: start;
}
@media (min-width: 900px) { .about { grid-template-columns: 0.85fr 1.15fr; } }
@media (min-width: 900px) { .about .shot--portrait { position: sticky; top: 7rem; } }

.about__copy h2 { margin-bottom: 1.5rem; }
.about__copy p { color: var(--ink-soft); font-size: 1.02rem; }

.facts {
  margin: 2.5rem 0 0;
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}
.facts > div {
  display: grid;
  grid-template-columns: 11rem 1fr;
  gap: 1rem;
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--line);
}
@media (max-width: 560px) { .facts > div { grid-template-columns: 1fr; gap: 0.15rem; } }
.facts dt {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-faint);
  padding-top: 0.2rem;
}
.facts dd { margin: 0; font-size: 0.97rem; }

/* ───────────── gallery ───────────── */

/* One large tile and five small, all square. The lead spans two columns and
   two rows; the two single tiles stacked beside it are what give those rows
   their height, so the lead comes out square without being told a height. */

.grid {
  display: grid;
  gap: clamp(0.5rem, 1.1vw, 1rem);
  grid-template-columns: repeat(3, 1fr);
}
.grid .shot { aspect-ratio: 1; }
.grid .shot--lead {
  grid-column: span 2;
  grid-row: span 2;
  aspect-ratio: auto;
}

/* Below three columns the lead has nothing stacked beside it to give those
   rows their height, so it stops spanning rows — but it keeps both columns
   and stays square, which leaves one full-width image above a grid.

   Two columns all the way down to the narrowest phone, rather than one.
   Twelve tiles in a single column is a 4,000px tunnel; in two it is about
   1,400px, and a gallery is something people skim before they tap. */
@media (max-width: 700px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
  .grid .shot--lead { grid-column: span 2; grid-row: auto; aspect-ratio: 1; }
}

/* ───────────── quotes ───────────── */

.quotes {
  display: grid;
  gap: clamp(1.5rem, 3vw, 2.5rem);
}
@media (min-width: 820px) { .quotes { grid-template-columns: repeat(3, 1fr); } }

.quote { margin: 0; }
.quote p {
  font-family: var(--display);
  font-size: clamp(1.08rem, 1.7vw, 1.26rem);
  font-style: italic;
  line-height: 1.45;
  color: var(--ink);
  padding-top: 1.5rem;
  border-top: 2px solid var(--clay);
  margin-bottom: 1.1rem;
}
.quote footer {
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

/* ───────────── inquiry ───────────── */

.inquire {
  display: grid;
  gap: clamp(2.5rem, 5vw, 5rem);
  align-items: start;
}
@media (min-width: 900px) { .inquire { grid-template-columns: 0.85fr 1.15fr; } }

.inquire__copy h2 { margin-bottom: 1.25rem; }
.inquire__direct {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line-light);
  font-size: 0.95rem;
  line-height: 2;
}

.form { display: grid; gap: 1.1rem; }

.field { display: grid; gap: 0.5rem; }
.field-row { display: grid; gap: 1.1rem; }
@media (min-width: 560px) { .field-row { grid-template-columns: 1fr 1fr; } }

.field label {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: rgba(253, 251, 247, 0.6);
}
.field label span { color: var(--clay); }

.field input,
.field select,
.field textarea {
  width: 100%;
  font-family: var(--body);
  font-size: 1rem;
  font-weight: 300;
  color: var(--paper);
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line-light);
  padding: 0.6rem 0;
  border-radius: 0;
  transition: border-color .2s ease;
}
.field textarea { resize: vertical; line-height: 1.6; }
.field select {
  appearance: none;
  cursor: pointer;
  padding-right: 1.75rem;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8' fill='none' stroke='%23fdfbf7' stroke-width='1.3' opacity='.55'><path d='M1 1.5 6 6.5 11 1.5'/></svg>");
  background-repeat: no-repeat;
  background-position: right 2px center;
  background-size: 12px 8px;
}
.field select option { background: var(--dark); color: var(--paper); }

.field input::placeholder,
.field textarea::placeholder { color: rgba(253, 251, 247, 0.33); }

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: 0;
  border-bottom-color: var(--clay);
}
.field input[aria-invalid="true"],
.field select[aria-invalid="true"],
.field textarea[aria-invalid="true"] { border-bottom-color: #e07a5f; }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form .btn { justify-self: start; margin-top: 0.75rem; }

.form__status {
  font-size: 0.88rem;
  margin: 0;
  min-height: 1.4em;
  color: rgba(253, 251, 247, 0.75);
}
.form__status.is-error { color: #f0a08b; }
.form__status.is-ok { color: #a8c08a; }

/* ───────────── footer ───────────── */

.foot {
  border-top: 1px solid var(--line);
  padding: clamp(3rem, 6vw, 4.5rem) 0 2rem;
}
.foot__inner {
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--gutter);
  display: grid;
  gap: 2.25rem;
}
@media (min-width: 760px) {
  .foot__inner { grid-template-columns: 1.3fr 1fr 1fr; }
}

.foot__muted { font-size: 0.8rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-faint); margin: 0.4rem 0 0; }

.foot__nav,
.foot__contact { display: flex; flex-direction: column; gap: 0.55rem; font-size: 0.92rem; }
.foot__nav a,
.foot__contact a { text-decoration: none; color: var(--ink-soft); transition: color .2s ease; }
.foot__nav a:hover,
.foot__contact a:hover { color: var(--clay); }

.foot__legal {
  max-width: var(--max);
  margin: clamp(3rem, 6vw, 4rem) auto 0;
  padding-inline: var(--gutter);
  font-size: 0.76rem;
  color: var(--ink-faint);
}

/* ───────────── reveal ───────────── */

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .7s cubic-bezier(.2,.7,.3,1), transform .7s cubic-bezier(.2,.7,.3,1);
}
.reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .card, .nav { transition: none; }
}

/* no-JS safety net: never hide content */
.no-js .reveal { opacity: 1; transform: none; }

/* ───────────── gallery footnote ───────────── */

.grid__more {
  margin-top: clamp(1.5rem, 3vw, 2.25rem);
  font-size: 0.9rem;
  color: var(--ink-soft);
}
.grid__more a {
  text-decoration: none;
  color: var(--ink);
  border-bottom: 1px solid var(--clay);
  padding-bottom: 2px;
  transition: color .2s ease;
}
.grid__more a:hover { color: var(--clay); }

.foot__area {
  font-size: 0.78rem;
  line-height: 1.7;
  color: var(--ink-faint);
  margin-top: 0.35rem;
}

/* ───────────── service area ───────────── */

.area { max-width: 46rem; }
.area h2 { margin-bottom: 1.25rem; }
.area p {
  font-size: 1.05rem;
  color: var(--ink-soft);
  line-height: 1.75;
}
.area strong { font-weight: 500; color: var(--ink); }
