/* ==========================================================================
   Kitchen by Alice
   ========================================================================== */

:root {
  /* Color */
  --orange: #dd5903;
  --orange-deep: #e2412b;
  --orange-ink: #b84a02;        /* orange text on light backgrounds (AA) */
  --cream: #fef7f4;
  --cream-deep: #fbe9e0;
  --ink: #0b0a0f;
  --text: #3a3838;
  --muted: #6d6a6a;
  --line: rgba(11, 10, 15, 0.1);
  --white: #fff;

  /* Type */
  --font-display: "Cormorant Garamond", Georgia, serif;
  --font-body: "Jost", system-ui, sans-serif;
  --fs-h1: clamp(3rem, 2rem + 4.4vw, 5.25rem);
  --fs-h2: clamp(2.25rem, 1.7rem + 2.4vw, 3.5rem);
  --fs-h3: clamp(1.5rem, 1.35rem + 0.6vw, 1.875rem);
  --fs-lead: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem);
  --fs-body: 1.0625rem;
  --fs-small: 0.875rem;
  --fs-eyebrow: 0.8125rem;

  /* Space */
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --section: clamp(4.5rem, 3rem + 6vw, 8rem);
  --stack: clamp(2.5rem, 2rem + 2vw, 4rem);   /* gap between a section head and its content */
  --grid-gap: clamp(1rem, 0.6rem + 1.4vw, 1.75rem);

  /* Shape — the "leaf" corner is the brand's signature */
  --radius: 14px;
  --radius-leaf: 64px 18px;
  --radius-leaf-sm: 36px 12px;

  --header-h: 76px;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

/* Base
   ========================================================================== */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
}

body {
  margin: 0;
  color: var(--text);
  background: var(--white);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

h1, h2, h3 {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.005em;
  text-transform: uppercase;
  text-wrap: balance;
}

h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); line-height: 1.15; }

p { margin: 0; text-wrap: pretty; }

a { color: inherit; text-decoration: none; }

:where(ul[role="list"]) { list-style: none; margin: 0; padding: 0; }

address { font-style: normal; }

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

.skip-link {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 200;
  padding: 0.75rem 1rem;
  background: var(--ink);
  color: var(--white);
  transform: translateY(-200%);
}
.skip-link:focus { transform: none; }

/* Layout
   ========================================================================== */

.container {
  width: 100%;
  max-width: calc(1200px + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: var(--section); }
.section--tight { padding-block: calc(var(--section) * 0.5); }
.section--cream { background: var(--cream); }

.section-head {
  max-width: 46rem;
  margin: 0 auto var(--stack);
  text-align: center;
}

.section-head__lead {
  max-width: 38rem;
  margin: 1.5rem auto 0;
  font-size: var(--fs-lead);
}

.eyebrow {
  margin-bottom: 1.25rem;
  color: var(--orange-ink);
  font-size: var(--fs-eyebrow);
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.accent { color: var(--orange); }

/* Buttons
   ========================================================================== */

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.875rem;
}

.button {
  --bg: var(--orange);
  --fg: var(--white);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.25rem;
  padding: 0 2rem;
  border: 2px solid var(--bg);
  border-radius: 999px;
  background: var(--bg);
  color: var(--fg);
  font-size: var(--fs-small);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  white-space: nowrap;
  transition: background-color 0.25s, color 0.25s, border-color 0.25s, transform 0.25s var(--ease-out);
}

.button:hover { background: transparent; color: var(--bg); }
.button:active { transform: scale(0.97); }

.button--dark { --bg: var(--ink); }
.button--light { --bg: var(--white); --fg: var(--orange-ink); }
.button--light:hover { color: var(--white); border-color: var(--white); }

.button--small { min-height: 2.5rem; padding: 0 1.25rem; font-size: 0.75rem; }

.icon-button {
  display: inline-grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--white);
  color: var(--ink);
  cursor: pointer;
  transition: background-color 0.25s, color 0.25s, border-color 0.25s;
}
.icon-button:hover { background: var(--orange); border-color: var(--orange); color: var(--white); }
.icon-button svg {
  width: 1.25rem;
  height: 1.25rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.icon-button--light {
  border-color: rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
}

/* Social links
   ========================================================================== */

.social { display: flex; gap: 0.75rem; }

.social__link {
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--ink);
  transition: background-color 0.25s, border-color 0.25s, color 0.25s;
}

.social__link:hover { background: var(--orange); border-color: var(--orange); color: var(--white); }

.social__link svg { width: 1.25rem; height: 1.25rem; fill: currentColor; }
.social__link svg.social__outline { fill: none; stroke: currentColor; stroke-width: 1.6; }
.social__link .social__dot { fill: currentColor; stroke: none; }

.social--light .social__link { border-color: rgba(255, 255, 255, 0.2); color: var(--white); }

/* Header
   ========================================================================== */

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  transition: background-color 0.3s, box-shadow 0.3s;
}

.site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 1px 0 var(--line);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  backdrop-filter: saturate(1.4) blur(12px);
}

.site-header__inner {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--ink);
}
.brand__mark { width: 34px; height: auto; }
.brand__name {
  font-family: var(--font-display);
  font-size: 1.375rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.site-nav {
  display: flex;
  gap: 2rem;
  margin-left: auto;
}

.site-nav a {
  position: relative;
  padding-block: 0.25rem;
  color: var(--ink);
  font-size: var(--fs-small);
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.site-nav a::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 1px;
  background: var(--orange);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.35s var(--ease-out);
}
.site-nav a:hover::after { transform: scaleX(1); transform-origin: left; }

@media (max-width: 860px) {
  .site-nav { display: none; }
  .site-header .button--small { margin-left: auto; }
}

/* Hero
   ========================================================================== */

.hero {
  position: relative;
  overflow: hidden;
  padding-top: calc(var(--header-h) + clamp(2rem, 5vw, 4rem));
  padding-bottom: var(--section);
}

.hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(2.5rem, 6vw, 6rem);
}

.hero__title { margin-bottom: 1.75rem; }
.hero__title .accent { display: block; }

.hero__lead {
  max-width: 33rem;
  margin-bottom: 2.5rem;
  font-size: var(--fs-lead);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.25rem 1.75rem;
}

/* Thin divider between the buttons and the social icons. */
.hero__actions .social { padding-left: 1.75rem; border-left: 1px solid var(--line); }

.hero__media {
  position: relative;
  max-width: 34rem;
  margin-left: auto;
  padding: 0 0 2.5rem 3.5rem;
}

.hero__blob {
  position: absolute;
  inset: 12% -12% -4% 18%;
  z-index: -1;
  border-radius: 50%;
  background: radial-gradient(closest-side, var(--cream-deep), rgba(254, 247, 244, 0));
}

.hero__photo {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: 50% 20%;
  border-radius: var(--radius-leaf);
  box-shadow: 0 30px 60px -30px rgba(11, 10, 15, 0.35);
}

.hero__plate {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 46%;
  filter: drop-shadow(0 18px 24px rgba(11, 10, 15, 0.25));
}

.js .hero__plate { animation: plate-in 1.4s var(--ease-out) 0.4s both; }

@keyframes plate-in {
  from { opacity: 0; transform: rotate(-120deg) scale(0.85); }
  to { opacity: 1; transform: none; }
}

@media (max-width: 479px) {
  .hero__actions { flex-direction: column; }
  .hero__actions .social { padding-left: 0; border-left: 0; }
}

@media (max-width: 991px) {
  .hero__inner { grid-template-columns: 1fr; }
  .hero__copy { text-align: center; }
  .hero__lead { margin-inline: auto; }
  .hero__actions,
  .hero .button-row { justify-content: center; }
  .hero__media { margin-inline: auto; width: 100%; }
}

/* Gallery
   ========================================================================== */

.gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--grid-gap);
}

.gallery__item {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 1;
  border-radius: var(--radius-leaf-sm);
  background: var(--cream-deep);
  cursor: zoom-in;
}

.gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s var(--ease-out);
}

.gallery__item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(11, 10, 15, 0);
  transition: background-color 0.4s;
}

.gallery__item:hover img { transform: scale(1.06); }
.gallery__item:hover::after { background: rgba(11, 10, 15, 0.15); }

@media (max-width: 639px) {
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Menu
   ========================================================================== */

.menu-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(2rem, 4vw, 3rem) var(--grid-gap);
}

/* Cards share row tracks (subgrid) so titles and descriptions line up across the row. */
.menu-card {
  display: grid;
  grid-row: span 3;
  grid-template-rows: subgrid;
  row-gap: 0;
  text-align: center;
}

.menu-card__media {
  overflow: hidden;
  aspect-ratio: 4 / 5;
  margin-bottom: 1.75rem;
  border-radius: var(--radius-leaf);
  background: var(--cream);
}

.menu-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s var(--ease-out);
}

.menu-card__title {
  align-self: end;
  margin-bottom: 0.75rem;
  font-size: clamp(1.5rem, 1rem + 1vw, 1.875rem);
  transition: color 0.3s;
}

.menu-card__text {
  max-width: 21rem;
  margin-inline: auto;
  color: var(--muted);
}

.menu-card:hover .menu-card__media img { transform: scale(1.06); }
.menu-card:hover .menu-card__title { color: var(--orange); }

@media (max-width: 767px) {
  .menu-grid { grid-template-columns: 1fr; max-width: 26rem; margin-inline: auto; }
}

/* Call to action
   ========================================================================== */

.cta {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.8fr);
  align-items: end;
  gap: 2rem;
  overflow: hidden;
  padding: clamp(2.5rem, 6vw, 5rem) clamp(1.75rem, 6vw, 5rem) 0;
  border-radius: var(--radius-leaf);
  background: linear-gradient(160deg, var(--orange) 0%, var(--orange-deep) 100%);
  color: var(--white);
}

.cta::before {
  content: "";
  position: absolute;
  right: -8%;
  bottom: -30%;
  width: 60%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0));
}

.cta__copy {
  position: relative;
  align-self: center;
  padding-bottom: clamp(2.5rem, 6vw, 5rem);
}

.cta h2 {
  margin-bottom: 1.25rem;
  color: var(--white);
  font-size: clamp(2rem, 1.2rem + 3.4vw, 3.5rem);
  white-space: nowrap;
}

.cta p {
  max-width: 28rem;
  margin-bottom: 2.25rem;
  font-size: var(--fs-lead);
  color: rgba(255, 255, 255, 0.92);
}

.cta__photo {
  position: relative;
  width: 100%;
  max-width: 28rem;
  justify-self: end;
}

@media (max-width: 991px) {
  .cta { grid-template-columns: 1fr; text-align: center; }
  .cta__copy { padding-bottom: 0; }
  .cta p { margin-inline: auto; }
  .cta .button-row { justify-content: center; }
  .cta__photo { justify-self: center; max-width: 22rem; }
}

/* Team
   ========================================================================== */

.team-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--grid-gap);
  max-width: 50rem;
  margin-inline: auto;
}

.team-card { text-align: center; }

/* Portraits are pre-cropped to the same square framing (head top at 12%, flush bottom). */
.team-card__media {
  overflow: hidden;
  aspect-ratio: 1;
  margin-bottom: 1.5rem;
  border-radius: var(--radius-leaf);
  background: var(--cream);
  transition: background-color 0.4s;
}

.team-card__media img {
  width: 100%;
  height: 100%;
  transition: transform 0.8s var(--ease-out);
  transform-origin: 50% 100%;
}

.team-card:hover .team-card__media { background: var(--cream-deep); }
.team-card:hover .team-card__media img { transform: scale(1.03); }

.team-card__name { margin-bottom: 0.375rem; }

.team-card__role {
  color: var(--orange-ink);
  font-size: var(--fs-eyebrow);
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

@media (max-width: 479px) {
  .team-grid { grid-template-columns: 1fr; max-width: 22rem; gap: 3rem; }
}

/* Reviews
   ========================================================================== */

.reviews {
  max-width: 50rem;
  margin-inline: auto;
}

.reviews__viewport { overflow: hidden; }

.reviews__track {
  display: flex;
  transition: transform 0.7s var(--ease-out);
}

.review {
  flex: 0 0 100%;
  padding-inline: 1rem;
  text-align: center;
  transition: opacity 0.5s;
}

.review:not(.is-active) { opacity: 0.25; }

.review blockquote { margin: 0; }

.review p {
  color: var(--ink);
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 1.4rem + 1.6vw, 2.625rem);
  font-style: italic;
  font-weight: 500;
  line-height: 1.25;
  text-wrap: balance;
}

.review footer {
  margin-top: 1.75rem;
  color: var(--orange-ink);
  font-size: var(--fs-eyebrow);
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.review footer::before { content: "— "; }

.reviews__controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  margin-top: 2.75rem;
}

.reviews__dots { display: flex; gap: 0.25rem; }

.reviews__dots button {
  position: relative;
  width: 1.75rem;
  height: 1.75rem;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}

.reviews__dots button::before {
  content: "";
  position: absolute;
  inset: 50% auto auto 50%;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 999px;
  background: var(--line);
  transform: translate(-50%, -50%);
  transition: width 0.35s var(--ease-out), background-color 0.35s;
}

.reviews__dots button[aria-current="true"]::before { width: 1.5rem; background: var(--orange); }

/* No JS: show the reviews as a simple list. */
html:not(.js) .reviews__track { flex-direction: column; gap: 3rem; }
html:not(.js) .review:not(.is-active) { opacity: 1; }
html:not(.js) .reviews__controls { display: none; }

/* Footer
   ========================================================================== */

.site-footer {
  padding-top: clamp(4rem, 8vw, 6rem);
  background: var(--ink);
  color: rgba(255, 255, 255, 0.72);
  font-size: 1rem;
}

.site-footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 3rem var(--grid-gap);
  padding-bottom: clamp(3rem, 6vw, 4.5rem);
}

.brand--light { color: var(--white); }
.brand--light .brand__mark { filter: invert(1); }

.site-footer__brand p { max-width: 22rem; margin: 1.25rem 0 1.75rem; }

.site-footer__heading {
  margin-bottom: 1.25rem;
  color: var(--white);
  font-family: var(--font-body);
  font-size: var(--fs-eyebrow);
  font-weight: 600;
  letter-spacing: 0.16em;
}

.site-footer__list { display: grid; gap: 0.5rem; }

.site-footer a { transition: color 0.25s; }
.site-footer__list a:hover { color: var(--orange); }

.site-footer__bottom {
  padding-block: 1.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: var(--fs-small);
  color: rgba(255, 255, 255, 0.5);
}

@media (max-width: 767px) {
  .site-footer__grid { grid-template-columns: 1fr 1fr; }
  .site-footer__brand { grid-column: 1 / -1; }
}

@media (max-width: 479px) {
  .site-footer__grid { grid-template-columns: 1fr; }
}

/* Lightbox
   ========================================================================== */

.lightbox {
  width: 100vw;
  max-width: none;
  height: 100dvh;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--white);
  opacity: 0;
  transition: opacity 0.3s, overlay 0.3s allow-discrete, display 0.3s allow-discrete;
}

.lightbox[open] { opacity: 1; display: grid; place-items: center; }

@starting-style {
  .lightbox[open] { opacity: 0; }
}

.lightbox::backdrop { background: rgba(11, 10, 15, 0.92); }

.lightbox__figure { margin: 0; text-align: center; }

.lightbox__image {
  max-width: min(92vw, 1200px);
  max-height: calc(100dvh - 9rem);
  width: auto;
  height: auto;
  border-radius: var(--radius);
  transition: opacity 0.25s;
}

.lightbox__image.is-loading { opacity: 0; }

.lightbox__caption {
  margin-top: 1rem;
  font-size: var(--fs-small);
  color: rgba(255, 255, 255, 0.65);
}

.lightbox__close { position: absolute; top: 1.25rem; right: 1.25rem; }
.lightbox__prev, .lightbox__next { position: absolute; top: 50%; transform: translateY(-50%); }
.lightbox__prev { left: 1.25rem; }
.lightbox__next { right: 1.25rem; }

@media (max-width: 639px) {
  .lightbox__prev, .lightbox__next { top: auto; bottom: 1.25rem; transform: none; }
}

html.is-locked { overflow: hidden; }

/* Scroll reveal
   ========================================================================== */

.js .reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
  transition-delay: var(--delay, 0ms);
}

.js .reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0ms !important;
  }
  .js .reveal { opacity: 1; transform: none; }
}
