/* ============================================
   SHIVAANI COOKS — shared stylesheet
   Edit colours here and they change everywhere.
   ============================================ */

:root {
  --offwhite: #FBF8F2;
  --cream: #F3EDE1;
  --sage: #A9B28F;
  --olive: #707A48;
  --forest: #2B3A2C;
  --brown: #6E5A44;
  --terracotta: #C0623A;
  --ink: #26251F;

  --stone: #E7E2D8;   /* muted panel behind hero text */

  /* TYPE — swap --display here to try a different look site-wide */
  --display: "Cormorant Garamond", Georgia, serif;
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Jost", "Helvetica Neue", sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--offwhite);
  line-height: 1.65;
  font-size: 1.05rem;
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3 { font-family: var(--display); font-weight: 400; color: var(--forest); line-height: 1.1; letter-spacing: -0.005em; }
h1 { font-size: clamp(2.9rem, 6.4vw, 5rem); }
h2 { font-size: clamp(2.1rem, 4.4vw, 3.2rem); }
h3 { font-size: 1.55rem; }

a { color: var(--olive); text-decoration: none; }

.wrap { max-width: 1150px; margin: 0 auto; padding: 0 1.5rem; }

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.78rem;
  color: var(--terracotta);
  margin-bottom: 0.9rem;
}

section { padding: 5.5rem 0; }

/* ---------- Navigation ---------- */
header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(251, 248, 242, 0.94);
  backdrop-filter: blur(8px);
}

/* Full-width rule so it lines up with the edge-to-edge hero below */
.nav {
  max-width: none;
  margin: 0;
  padding: 1.6rem clamp(1.5rem, 4vw, 4.5rem) 1.1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  border-bottom: 1px solid var(--ink);
}

.nav-social { display: flex; align-items: center; gap: 1rem; }
.nav-social a { color: var(--ink); display: inline-flex; opacity: 0.75; transition: opacity 0.2s ease; }
.nav-social a:hover { opacity: 1; }

/* Wordmark — lowercase, understated, muted (reference-style branding) */
.logo {
  font-family: var(--display);
  font-size: 1.55rem;
  font-weight: 400;
  color: var(--brown);
  letter-spacing: 0.03em;
  text-transform: lowercase;
  white-space: nowrap;
}

/* Plain serif nav, sentence case, active item underlined (reference-style) */
.nav-links { display: flex; gap: 1.7rem; align-items: center; list-style: none; margin-left: auto; }
.nav-links a {
  font-family: var(--display);
  color: var(--ink);
  font-size: 1.06rem;
  letter-spacing: 0.01em;
  padding-bottom: 2px;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, color 0.2s ease;
}
.nav-links a:hover { border-bottom-color: var(--ink); }
.nav-links a.active { border-bottom-color: var(--ink); }

.menu-btn { display: none; background: none; border: none; font-size: 1.7rem; color: var(--forest); cursor: pointer; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  background: var(--forest);
  color: var(--offwhite);
  padding: 0.85rem 2.2rem;
  border-radius: 999px;
  font-family: var(--sans);
  font-size: 0.92rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  transition: background 0.25s ease;
}
.btn:hover { background: var(--terracotta); }
.btn.light { background: var(--offwhite); color: var(--forest); }
.btn.light:hover { background: var(--cream); }

/* ---------- Hero — inset block, text left / photo right (reference layout) ---------- */
.hero-section { padding: 0; }
.hero {
  display: grid;
  grid-template-columns: 46% 54%;
  align-items: stretch;
  background: var(--stone);
  min-height: clamp(460px, 64vh, 660px);
  overflow: hidden;
}
.hero-inner {
  display: flex;
  flex-direction: column;
  padding: clamp(2.6rem, 4.5vw, 4.5rem) clamp(1.6rem, 4vw, 4.5rem);
}
/* Headline sits high-left, in wide-tracked caps like the reference */
.hero h1 {
  text-transform: uppercase;
  letter-spacing: 0.055em;
  font-weight: 400;
  font-size: clamp(1.8rem, 3.3vw, 2.9rem);
  line-height: 1.16;
  margin: 0;
  color: var(--ink);
}
/* Body copy drops lower and indents in, echoing the reference */
.hero-copy {
  margin-top: auto;
  margin-left: 16%;
  max-width: 25rem;
}
.hero-copy p {
  font-family: var(--display);
  font-size: 1.02rem;
  line-height: 1.62;
  color: #2A2A28;            /* charcoal for the supporting line */
}
.hero-copy p + p { margin-top: 0.9rem; }
.hero-copy .lead {
  font-weight: 700;
  color: var(--ink);
}
.hero-link {
  display: inline-block;
  margin-top: 1.4rem;
  font-family: var(--display);
  font-size: 1.02rem;
  color: var(--ink);
  border-bottom: 1px solid var(--ink);
  padding-bottom: 2px;
  transition: opacity 0.2s ease;
}
.hero-link:hover { opacity: 0.6; }
.hero__media {
  position: relative;
  overflow: hidden;
  background-size: cover;
  background-position: center 38%;
  animation: kenburns 26s ease-in-out infinite alternate;
  will-change: transform;
}
@keyframes kenburns {
  from { transform: scale(1.0); }
  to   { transform: scale(1.06); }
}

/* ---------- Cards / grids ---------- */
.grid { display: grid; gap: 2rem; }
.grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid.cols-2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 2px 20px rgba(43, 58, 44, 0.07);
  display: flex;
  flex-direction: column;
}
.card img { height: 240px; width: 100%; object-fit: cover; }
.card-body { padding: 1.6rem; display: flex; flex-direction: column; gap: 0.7rem; flex: 1; }
.card-body ul { padding-left: 1.1rem; color: #55524a; font-size: 0.97rem; }
.card-body .btn { margin-top: auto; align-self: flex-start; padding: 0.65rem 1.6rem; }

/* ---------- Split section (image + text) ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.split img { border-radius: 14px; height: 520px; width: 100%; object-fit: cover; }

/* ---------- Gallery ---------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
}
.gallery-grid img {
  border-radius: 10px;
  height: 320px;
  width: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}
.gallery-grid img:hover { transform: scale(1.02); }
.gallery-grid .tall { grid-row: span 2; }
.gallery-grid .tall img { height: 100%; min-height: 660px; }

/* ---------- Forms ---------- */
.form-panel {
  background: var(--cream);
  border-radius: 18px;
  padding: 3rem;
  max-width: 640px;
  margin: 0 auto;
}
form { display: flex; flex-direction: column; gap: 1.1rem; }
label { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--brown); }
input, select, textarea {
  font-family: var(--sans);
  font-size: 1rem;
  padding: 0.8rem 1rem;
  border: 1px solid #d8d0bf;
  border-radius: 8px;
  background: var(--offwhite);
  color: var(--ink);
  width: 100%;
}
input:focus, select:focus, textarea:focus { outline: 2px solid var(--sage); border-color: var(--sage); }
textarea { min-height: 130px; resize: vertical; }

/* ---------- FAQ ---------- */
details {
  border-bottom: 1px solid #ddd5c4;
  padding: 1.3rem 0;
}
details summary {
  font-family: var(--serif);
  font-size: 1.25rem;
  color: var(--forest);
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
details summary::after { content: "+"; color: var(--terracotta); font-size: 1.5rem; }
details[open] summary::after { content: "–"; }
details p { padding-top: 0.8rem; color: #55524a; max-width: 46rem; }

/* ---------- Recipes ---------- */
.recipe-card .meta {
  display: flex;
  gap: 1.2rem;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--brown);
}

/* ---------- Sections with tinted backgrounds ---------- */
.bg-cream { background: var(--cream); }
.bg-forest { background: var(--forest); color: var(--offwhite); }
.bg-forest h2, .bg-forest h3 { color: var(--offwhite); }
.bg-forest p { color: #dfe3d6; }

/* ---------- Footer ---------- */
footer {
  background: var(--forest);
  color: #cfd6c6;
  padding: 3.5rem 0 2rem;
  font-size: 0.95rem;
}
footer .logo { color: var(--offwhite); }
footer .foot-grid { display: flex; justify-content: space-between; gap: 2rem; flex-wrap: wrap; margin-bottom: 2.5rem; }
footer a { color: #cfd6c6; }
footer a:hover { color: var(--offwhite); }
footer ul { list-style: none; display: flex; flex-direction: column; gap: 0.4rem; }
footer .fine { border-top: 1px solid rgba(255,255,255,0.15); padding-top: 1.3rem; font-size: 0.8rem; }

/* ============================================
   MOTION & INTERACTIVITY
   ============================================ */
:root { --ease-out: cubic-bezier(0.22, 0.61, 0.36, 1); }

/* Scroll reveal (block-level) */
.fade { opacity: 0; transform: translateY(26px); transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out); }
.fade.visible { opacity: 1; transform: none; }

/* Staggered reveal — children animate in sequence */
.stagger > * { opacity: 0; transform: translateY(30px); transition: opacity 0.75s var(--ease-out), transform 0.75s var(--ease-out); }
.stagger > *.in { opacity: 1; transform: none; }

/* Gallery images get an extra "mask wipe" as they reveal */
.gallery-grid.stagger > * { transform: translateY(34px) scale(0.98); clip-path: inset(6% 0 6% 0 round 10px); transition: opacity 0.85s var(--ease-out), transform 0.85s var(--ease-out), clip-path 0.85s var(--ease-out); }
.gallery-grid.stagger > *.in { transform: none; clip-path: inset(0 0 0 0 round 10px); }

/* Hero intro — text rises in on load */
.hero-inner > * { opacity: 0; animation: heroUp 0.9s var(--ease-out) forwards; }
.hero-inner > *:nth-child(1) { animation-delay: 0.15s; }
.hero-inner > *:nth-child(2) { animation-delay: 0.30s; }
.hero-inner > *:nth-child(3) { animation-delay: 0.45s; }
.hero-inner > *:nth-child(4) { animation-delay: 0.60s; }
@keyframes heroUp { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }

/* Nav solidifies once you scroll */
header { transition: background 0.3s ease, box-shadow 0.3s ease, padding 0.3s ease; }
header.scrolled { background: rgba(251, 248, 242, 0.98); box-shadow: 0 6px 26px rgba(43, 58, 44, 0.10); }

/* Button micro-interaction */
.btn { transition: background 0.25s ease, transform 0.25s var(--ease-out), box-shadow 0.25s ease; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(43, 58, 44, 0.20); }

/* Cards lift and their image gently zooms */
.card { transition: transform 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out); }
.card:hover { transform: translateY(-6px); box-shadow: 0 20px 44px rgba(43, 58, 44, 0.16); }
.card img { transition: transform 0.6s var(--ease-out); }
.card:hover img { transform: scale(1.05); }

/* Richer gallery hover */
.gallery-grid img:hover { transform: scale(1.04); }

/* Animated link underline in the footer */
footer a { background-image: linear-gradient(currentColor, currentColor); background-size: 0% 1px; background-repeat: no-repeat; background-position: 0 100%; transition: background-size 0.3s var(--ease-out), color 0.2s ease; padding-bottom: 2px; }
footer a:hover { background-size: 100% 1px; }

/* Hero stacks on mobile — image on top, text below on the stone panel.
   Text sits on a solid background, so it's always legible. */
@media (max-width: 860px) {
  .hero-section { padding: 0; }
  .hero {
    grid-template-columns: 1fr;
    min-height: 0;
  }
  .hero__media { order: -1; min-height: 62vw; max-height: 360px; }
  .hero-inner { padding: 2.2rem 1.5rem 2.6rem; }
  .hero h1 { font-size: clamp(1.7rem, 7.2vw, 2.2rem); }
  .hero-copy { margin-left: 0; margin-top: 1.4rem; }
}

/* Respect users who prefer less motion */
@media (prefers-reduced-motion: reduce) {
  *, .hero__media, .hero-inner > * { animation: none !important; transition-duration: 0.001s !important; }
  .fade, .stagger > *, .hero-inner > *, .gallery-grid.stagger > * { opacity: 1 !important; transform: none !important; clip-path: none !important; }
  html { scroll-behavior: auto; }
}

/* ---------- "What's Included" lists ---------- */
.included { margin-top: 1.4rem; }
.included h4 {
  font-family: var(--sans);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--brown);
  margin-bottom: 0.8rem;
  font-weight: 500;
}
.included ul { list-style: none; display: flex; flex-direction: column; gap: 0.55rem; }
.included li {
  position: relative;
  padding-left: 1.5rem;
  font-size: 0.98rem;
  color: #55524a;
  line-height: 1.5;
}
.included li::before {
  content: "";
  position: absolute; left: 0; top: 0.62em;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--sage);
}

/* ---------- Testimonials ---------- */
.testimonial-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6rem; }
.testimonial {
  background: #fff;
  border-radius: 16px;
  padding: 2rem 1.8rem;
  box-shadow: 0 2px 20px rgba(43, 58, 44, 0.07);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.testimonial .stars { color: var(--terracotta); letter-spacing: 0.15em; font-size: 0.95rem; }
.testimonial blockquote {
  font-family: var(--display);
  font-size: 1.24rem;
  line-height: 1.45;
  color: var(--forest);
}
.testimonial .who {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--brown);
  margin-top: auto;
}

/* ---------- Instagram grid ---------- */
.ig-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 0.7rem; }
.ig-grid a { display: block; position: relative; overflow: hidden; border-radius: 8px; aspect-ratio: 1; }
.ig-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s var(--ease-out); }
.ig-grid a:hover img { transform: scale(1.07); }
.ig-handle {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-size: 0.9rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--brown);
}

/* ---------- Coming soon ---------- */
.coming-soon {
  text-align: center;
  padding: 4rem 1.5rem;
  background: var(--cream);
  border-radius: 20px;
  max-width: 720px;
  margin: 0 auto;
}
.coming-soon .eyebrow { color: var(--terracotta); }
.coming-soon p { max-width: 34rem; margin: 1rem auto 2rem; color: #55524a; }

/* ---------- Page banner (inner pages) ---------- */
.banner { background: var(--cream); padding: 5rem 0 3.5rem; }
.banner p { max-width: 38rem; margin-top: 1rem; color: #55524a; }

/* ---------- Mobile ---------- */
@media (max-width: 860px) {
  .grid.cols-3, .grid.cols-2, .split, .gallery-grid, .testimonial-grid { grid-template-columns: 1fr; }
  .ig-grid { grid-template-columns: repeat(3, 1fr); }
  .split img { height: 340px; }
  .gallery-grid .tall { grid-row: auto; }
  .gallery-grid .tall img { min-height: 320px; height: 320px; }
  .menu-btn { display: block; order: 3; }
  .nav { padding: 1.1rem 1.2rem 0.9rem; gap: 1rem; }
  .nav-social { margin-left: auto; }
  .nav-links {
    display: none;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--offwhite);
    flex-direction: column;
    padding: 1.5rem;
    gap: 1.2rem;
    border-bottom: 1px solid var(--cream);
    margin-left: 0;
  }
  .nav-links.open { display: flex; }
  section { padding: 3.5rem 0; }
  .form-panel { padding: 2rem 1.4rem; }
}
