/* =========================================================
   Cooking with Delia — main stylesheet
   Editorial, coffee-toned. Edit the :root variables to rebrand.
   ========================================================= */

:root {
  --accent: #BE5B2A;        /* caramel */
  --accent-dk: #9A3A12;     /* darker for hover */
  --accent-soft: #F3E2D3;   /* light callout bg */
  --ink: #241912;           /* espresso — main text */
  --ink-2: #6B5848;         /* mocha — secondary text */
  --paper: #FFFDFA;
  --paper-2: #F6EFE6;       /* cream */
  --line: #E7DAC9;
  --dark: #1C130D;          /* near-black espresso for dark bands */

  --font-head: "Fraunces", Georgia, serif;
  --font-body: "Inter", system-ui, -apple-system, sans-serif;

  --wrap: 74rem;
  --radius: 8px;
  --radius-lg: 20px;
  --shadow: 0 1px 2px rgba(36,25,18,.05), 0 12px 30px rgba(36,25,18,.07);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.65;
  font-size: 1.0625rem;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-dk); }

h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.08; color: var(--ink); font-weight: 600; letter-spacing: -.01em; }
h1 { font-size: clamp(2.4rem, 5.5vw, 4rem); }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.4rem); }
h3 { font-size: 1.25rem; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: 1.5rem; }
.muted { color: var(--ink-2); }
.eyebrow {
  text-transform: uppercase; letter-spacing: .16em; font-size: .78rem;
  font-weight: 700; color: var(--accent); margin: 0 0 1rem;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; padding: .85rem 1.6rem; border-radius: 999px;
  font-weight: 600; font-size: 1rem; cursor: pointer;
  border: 1.5px solid transparent;
  transition: transform .12s ease, background .15s ease, color .15s ease, border-color .15s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-dk); color: #fff; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }

/* ---------- Topbar ---------- */
.topbar { background: var(--dark); color: #E9DFD3; font-size: .82rem; }
.topbar-inner { display: flex; align-items: center; justify-content: space-between; min-height: 2.25rem; }
.topbar-note { letter-spacing: .02em; opacity: .85; }
.topbar-yt { color: #fff; font-weight: 600; }
.topbar-yt:hover { color: var(--accent); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,253,250,.88);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 4.25rem; }
.brand { display: inline-flex; align-items: center; gap: .65rem; font-family: var(--font-head); font-weight: 700; font-size: 1.2rem; color: var(--ink); }
.brand-avatar { border-radius: 50%; object-fit: cover; border: 2px solid var(--paper); box-shadow: 0 0 0 1px var(--line); }
.nav { display: flex; gap: 1.5rem; align-items: center; }
.nav > a { color: var(--ink-2); font-weight: 500; font-size: .96rem; }
.nav > a:hover, .nav > a.active { color: var(--accent); }
.nav-cta {
  background: var(--ink); color: #fff !important; padding: .5rem 1.05rem;
  border-radius: 999px; font-weight: 600; font-size: .92rem;
}
.nav-cta:hover { background: var(--accent); }
.nav-toggle, .nav-burger { display: none; }

/* ---------- Hero ---------- */
.hero { background: var(--paper-2); border-bottom: 1px solid var(--line); }
.hero-grid {
  display: grid; grid-template-columns: 1.1fr .9fr; gap: 3rem; align-items: center;
  padding-block: clamp(3rem, 7vw, 5.5rem);
}
.hero h1 { margin: 0 0 1.1rem; }
.hero-sub { font-size: 1.2rem; color: var(--ink-2); margin: 0 0 2rem; max-width: 34rem; }
.hero-cta { display: flex; gap: .75rem; flex-wrap: wrap; margin-bottom: 1.75rem; }
.hero-trust { font-size: .85rem; color: var(--ink-2); margin: 0; padding-left: 1rem; border-left: 3px solid var(--accent); }

.hero-photo { position: relative; justify-self: center; }
.hero-photo img {
  position: relative; z-index: 2; width: min(26rem, 80vw); aspect-ratio: 1; object-fit: cover;
  border-radius: var(--radius-lg); box-shadow: var(--shadow);
}
.hero-photo::before {
  content: ""; position: absolute; z-index: 1; inset: 1.25rem -1.25rem -1.25rem 1.25rem;
  background: var(--accent); border-radius: var(--radius-lg); opacity: .9;
}
.hero-badge {
  position: absolute; z-index: 3; left: -.75rem; top: 1.5rem;
  background: var(--paper); color: var(--ink); font-weight: 600; font-size: .95rem;
  padding: .55rem 1rem; border-radius: 999px; box-shadow: var(--shadow); border: 1px solid var(--line);
}

/* ---------- Section heads ---------- */
.section-title { text-align: center; margin: 0 0 2.5rem; }
.section-title.left { text-align: left; margin: 0; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-bottom: 2.25rem; flex-wrap: wrap; }
.see-all { font-weight: 600; }

/* ---------- Services ---------- */
.services { padding-block: clamp(3.5rem, 8vw, 6rem); }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.card {
  background: var(--paper); border-top: 3px solid var(--accent);
  border-radius: var(--radius); padding: 2rem 1.75rem;
  box-shadow: var(--shadow);
}
.card-num { display: block; font-family: var(--font-head); font-size: 2.4rem; color: var(--accent); line-height: 1; margin-bottom: .9rem; }
.card h3 { margin: 0 0 .5rem; }
.card p { margin: 0; color: var(--ink-2); }

/* ---------- Video grid ---------- */
.video-section { padding-block: clamp(3rem, 7vw, 5rem); }
.video-section.featured { background: var(--paper-2); border-block: 1px solid var(--line); }
.video-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem 1.5rem; }
.video-item { display: flex; flex-direction: column; }
.video-frame {
  position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius);
  overflow: hidden; background: #000; box-shadow: var(--shadow);
}
.video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-play {
  position: absolute; inset: 0; width: 100%; height: 100%; padding: 0; border: 0;
  cursor: pointer; background: #000; display: block;
}
.video-play img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease, opacity .2s ease; opacity: .96; }
.video-play:hover img { transform: scale(1.05); opacity: 1; }
.play-btn {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 4rem; height: 4rem; border-radius: 50%;
  background: rgba(255,255,255,.92); box-shadow: 0 6px 20px rgba(0,0,0,.35);
  transition: transform .15s ease, background .15s ease;
}
.play-btn::before {
  content: ""; position: absolute; top: 50%; left: 54%; transform: translate(-50%, -50%);
  border-style: solid; border-width: .7rem 0 .7rem 1.15rem;
  border-color: transparent transparent transparent var(--accent);
}
.video-play:hover .play-btn { transform: translate(-50%, -50%) scale(1.08); background: #fff; }
.video-meta { padding: .9rem .15rem 0; }
.video-meta h3 { margin: .25rem 0 0; font-size: 1.05rem; }
.cat {
  display: inline-block; background: var(--accent-soft); color: var(--accent-dk);
  padding: .12rem .6rem; border-radius: 999px; font-weight: 700; font-size: .72rem;
  text-transform: uppercase; letter-spacing: .06em;
}

/* ---------- Content / prose ---------- */
.content-section { padding-block: clamp(2.5rem, 6vw, 4rem); }
.prose { max-width: 44rem; }
.prose > * + * { margin-top: 1.15rem; }
.prose h2 { margin-top: 2.5rem; }
.prose h3 { margin-top: 1.75rem; }
.prose ul, .prose ol { padding-left: 1.3rem; }
.prose li + li { margin-top: .4rem; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 2.5rem 0; }
.prose blockquote { margin: 0; padding: .25rem 1.25rem; border-left: 3px solid var(--accent); color: var(--ink-2); font-style: italic; }
.prose em { color: var(--ink-2); }

/* ---------- Testimonials ---------- */
.testimonials { padding-block: clamp(3.5rem, 8vw, 6rem); background: var(--dark); }
.testimonials .section-title { color: #fff; }
.quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.quote {
  margin: 0; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.10);
  border-radius: var(--radius); padding: 1.9rem; display: flex; flex-direction: column; gap: 1.4rem;
}
.quote blockquote { margin: 0; padding: 0; border: 0; font-family: var(--font-head); font-size: 1.12rem; line-height: 1.5; color: #F3ECE3; }
.quote figcaption { display: flex; flex-direction: column; }
.quote-name { font-weight: 600; color: #fff; }
.quote-role { color: #C7B6A6; font-size: .9rem; }

/* ---------- Page head ---------- */
.page-head { background: var(--paper-2); border-bottom: 1px solid var(--line); padding-block: clamp(2.75rem, 6vw, 4.5rem); }
.page-title { margin: 0; }
.page-lead { margin: .9rem 0 0; font-size: 1.15rem; color: var(--ink-2); max-width: 42rem; }
.page .prose { padding-block: 3rem; }

/* ---------- CTA band ---------- */
.cta-band { background: var(--accent); color: #fff; }
.cta-band-inner { padding-block: clamp(3rem, 7vw, 4.5rem); text-align: center; }
.cta-band h2 { color: #fff; margin: 0 0 .5rem; }
.cta-band p { color: rgba(255,255,255,.85); margin: 0 0 1.75rem; }
.cta-band .btn-primary { background: #fff; color: var(--accent-dk); }
.cta-band .btn-primary:hover { background: var(--dark); color: #fff; }

/* ---------- Contact form ---------- */
.contact-form { margin: 1.5rem 0; max-width: 34rem; }
.form-row { display: flex; flex-direction: column; gap: .4rem; margin: 0 0 1.1rem; }
.form-row label { font-weight: 600; font-size: .92rem; }
.form-row input, .form-row textarea {
  font: inherit; padding: .75rem .9rem; border: 1.5px solid var(--line);
  border-radius: 10px; background: var(--paper); color: var(--ink);
}
.form-row input:focus, .form-row textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }

/* ---------- Footer ---------- */
.site-footer { background: var(--paper-2); border-top: 1px solid var(--line); margin-top: 0; }
.footer-inner { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 2rem; padding-block: 3rem 2rem; }
.footer-brand .brand { display: inline-flex; align-items: center; gap: .6rem; font-size: 1.1rem; }
.footer-brand p { margin: .6rem 0 0; max-width: 22rem; }
.footer-col h4 { margin: 0 0 .8rem; font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; color: var(--ink-2); font-family: var(--font-body); }
.footer-col a { display: block; color: var(--ink-2); margin-bottom: .45rem; font-size: .95rem; }
.footer-col a:hover { color: var(--accent); }
.copyright { padding-block: 1.5rem; border-top: 1px solid var(--line); font-size: .85rem; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .hero-photo { order: -1; }
  .video-grid { grid-template-columns: repeat(2, 1fr); }
  .cards { grid-template-columns: 1fr; }
  .quotes { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 600px) {
  .topbar-note { display: none; }
  .topbar-inner { justify-content: center; }
  .video-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: 1.5rem; }

  /* Mobile nav */
  .nav-burger { display: inline-flex; flex-direction: column; gap: 5px; cursor: pointer; padding: .5rem; margin: -.5rem; }
  .nav-burger span { width: 24px; height: 2px; background: var(--ink); border-radius: 2px; transition: .2s; }
  .nav {
    position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: flex-start; gap: 0;
    background: var(--paper); border-bottom: 1px solid var(--line); padding: .5rem 1.5rem 1rem; display: none; box-shadow: var(--shadow);
  }
  .nav > a { padding: .7rem 0; width: 100%; }
  .nav-cta { margin-top: .5rem; }
  .nav-toggle:checked ~ .nav { display: flex; }
  .nav-toggle:checked ~ .nav-burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle:checked ~ .nav-burger span:nth-child(2) { opacity: 0; }
  .nav-toggle:checked ~ .nav-burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

/* ---------- Recipe filters ---------- */
.filters { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0 0 2rem; }
.filter {
  font: inherit; font-size: .92rem; font-weight: 600; cursor: pointer;
  padding: .5rem 1.1rem; border-radius: 999px;
  background: var(--paper); color: var(--ink-2); border: 1.5px solid var(--line);
}
.filter:hover { border-color: var(--accent); color: var(--accent); }
.filter.active { background: var(--accent); border-color: var(--accent); color: #fff; }
.video-item[hidden] { display: none; }

/* ---------- About ---------- */
.about-photo { border-radius: var(--radius-lg); margin: 0 0 2rem; width: 100%; box-shadow: var(--shadow); }

/* ---------- Instagram reels (vertical) ---------- */
.reel-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1.25rem; }
.reel-item { display: flex; flex-direction: column; min-width: 0; }
.reel-frame {
  position: relative; aspect-ratio: 9 / 16; border-radius: var(--radius);
  overflow: hidden; background: #000; box-shadow: var(--shadow);
}
.reel-play {
  position: absolute; inset: 0; width: 100%; height: 100%; padding: 0; border: 0;
  cursor: pointer; background: #000; display: block;
}
.reel-play img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.reel-play:hover img { transform: scale(1.05); }
.reel-play:hover .play-btn { transform: translate(-50%, -50%) scale(1.08); background: #fff; }
.video-section .section-title.left + .filters { margin-top: 1.25rem; }
@media (max-width: 900px) {
  .reel-grid { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 1rem; padding-bottom: .5rem; }
  .reel-item { flex: 0 0 42%; scroll-snap-align: start; }
}
@media (max-width: 600px) { .reel-item { flex-basis: 62%; } }


/* ---------- Pricing packages ---------- */
.price-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; margin: 0 0 3rem; }
.price-card {
  position: relative; display: flex; flex-direction: column; align-items: flex-start;
  background: var(--paper); border: 1.5px solid var(--line); border-radius: var(--radius-lg);
  padding: 1.75rem 1.5rem; box-shadow: var(--shadow);
}
.price-card.featured { border-color: var(--accent); background: var(--accent-soft); }
.price-card h3 { margin: 0; font-size: 1.2rem; }
.price-card .price { font-family: var(--font-head); font-size: 2.6rem; font-weight: 600; line-height: 1; margin: .75rem 0 .5rem; color: var(--ink); }
.price-card .price-note { margin: 0 0 1.5rem; color: var(--ink-2); font-size: .95rem; }
.price-card .btn { margin-top: auto; white-space: nowrap; text-decoration: none; }
.price-badge {
  position: absolute; top: -.8rem; right: 1.25rem; background: var(--accent); color: #fff;
  font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em;
  padding: .3rem .7rem; border-radius: 999px;
}
@media (max-width: 700px) { .price-grid { grid-template-columns: 1fr; } }
