/* =========================================================
   Danielle Shine — brand stylesheet
   Bright, colourful, food-inspired. No build step.
   ========================================================= */

:root {
  /* Palette */
  --cream:    #fffaf0;
  --cream-2:  #fff3df;
  --ink:      #241f1b;
  --ink-soft: #5a5048;

  --leaf:     #1f9d57;   /* primary green */
  --leaf-deep:#157a43;
  --tomato:   #ff5b46;   /* coral red */
  --citrus:   #ffc23c;   /* sunny yellow */
  --berry:    #7b4cf0;   /* violet / blueberry */
  --sky:      #2ba8e0;

  /* System */
  --maxw: 1140px;
  --radius: 22px;
  --radius-sm: 14px;
  --shadow: 0 18px 40px -18px rgba(36, 31, 27, .35);
  --shadow-sm: 0 8px 22px -12px rgba(36, 31, 27, .4);

  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a { color: var(--leaf-deep); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3 { font-family: var(--font-display); font-weight: 600; line-height: 1.08; letter-spacing: -0.01em; }

.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: clamp(1.25rem, 4vw, 2.5rem); }

.section { padding-block: clamp(3.5rem, 8vw, 6.5rem); }
.section--tint { background: var(--cream-2); }

.section-title { font-size: clamp(1.9rem, 4.6vw, 3.1rem); }
.section-head { max-width: 40ch; margin-bottom: clamp(2rem, 4vw, 3rem); }

/* ---------- Accessibility helpers ---------- */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.hidden-field { display: none; }

.skip-link {
  position: absolute; left: 1rem; top: -3rem; z-index: 200;
  background: var(--ink); color: #fff; padding: .6rem 1rem; border-radius: 10px;
  transition: top .2s ease;
}
.skip-link:focus { top: 1rem; }

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

/* ---------- Eyebrow / labels ---------- */
.eyebrow {
  text-transform: uppercase; letter-spacing: .16em; font-size: .78rem;
  font-weight: 700; color: var(--ink-soft); margin-bottom: 1rem;
}
.eyebrow--leaf   { color: var(--leaf-deep); }
.eyebrow--tomato { color: var(--tomato); }
.eyebrow--berry  { color: var(--berry); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: .5rem; font-family: var(--font-body); font-weight: 700; font-size: 1rem;
  padding: .85rem 1.6rem; border-radius: 999px; border: 2px solid transparent;
  cursor: pointer; transition: transform .15s ease, box-shadow .2s ease, background .2s ease;
  text-decoration: none; white-space: nowrap;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn--primary { background: var(--leaf); color: #fff; box-shadow: var(--shadow-sm); }
.btn--primary:hover { background: var(--leaf-deep); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--cream); }
.btn--dark { background: var(--ink); color: var(--cream); }
.btn--dark:hover { background: #000; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: color-mix(in srgb, var(--cream) 85%, transparent);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid transparent;
  transition: box-shadow .25s ease, border-color .25s ease;
}
.site-header.is-scrolled { box-shadow: 0 6px 20px -16px rgba(0,0,0,.5); border-color: rgba(36,31,27,.08); }
.header-inner { display: flex; align-items: center; justify-content: space-between; padding-block: .9rem; }

.brand { display: inline-flex; align-items: center; gap: .6rem; color: var(--ink); font-weight: 700; }
.brand:hover { text-decoration: none; }
.brand-mark {
  display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px;
  background: linear-gradient(135deg, var(--leaf), var(--citrus)); color: #fff;
  font-family: var(--font-display); font-weight: 700; font-size: 1rem; letter-spacing: -.02em;
}
.brand-name { font-family: var(--font-display); font-size: 1.18rem; }

.nav { display: flex; align-items: center; }
.nav-menu { list-style: none; display: flex; align-items: center; gap: 1.6rem; padding: 0; }
.nav-menu a { color: var(--ink); font-weight: 500; }
.nav-menu a:hover { color: var(--leaf-deep); text-decoration: none; }
.nav-cta {
  background: var(--ink); color: var(--cream) !important; padding: .55rem 1.1rem;
  border-radius: 999px; font-weight: 700;
}
.nav-cta:hover { background: var(--leaf); }

.nav-toggle { display: none; }

/* ---------- Decorative blobs ---------- */
.blob {
  position: absolute; border-radius: 50%; filter: blur(8px); opacity: .5;
  z-index: 0; pointer-events: none; will-change: transform;
}
.blob--citrus { width: 340px; height: 340px; background: var(--citrus); top: -120px; right: -80px;
  animation: blob-drift-a 25s ease-in-out -2s infinite; }
.blob--berry  { width: 260px; height: 260px; background: var(--berry); bottom: -90px; left: -90px; opacity: .35;
  animation: blob-drift-b 31s ease-in-out -9s infinite; }
.blob--leaf   { width: 300px; height: 300px; background: #fff; opacity: .12; top: -100px; left: 8%; filter: blur(6px);
  animation: blob-drift-c 28s ease-in-out -5s infinite; }
.blob--sky    { width: 220px; height: 220px; background: var(--sky); top: 36%; left: -70px; opacity: .2;
  animation: blob-drift-d 22s ease-in-out -3s infinite; }
.blob--tomato { width: 200px; height: 200px; background: var(--tomato); bottom: 4%; right: 8%; opacity: .16;
  animation: blob-drift-b 27s ease-in-out -14s infinite; }

/* Slow, organic drifting — transform-only so it stays smooth (GPU-composited) */
@keyframes blob-drift-a {
  0%, 100% { transform: translate(0, 0) scale(1); }
  25%      { transform: translate(50px, 38px) scale(1.08); }
  50%      { transform: translate(94px, -44px) scale(1.16); }
  75%      { transform: translate(30px, -64px) scale(1.06); }
}
@keyframes blob-drift-b {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33%      { transform: translate(-64px, 44px) scale(1.11); }
  66%      { transform: translate(-30px, -50px) scale(0.92); }
}
@keyframes blob-drift-c {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50%      { transform: translate(58px, 68px) scale(1.18); }
}
@keyframes blob-drift-d {
  0%, 100% { transform: translate(0, 0) scale(1); }
  30%      { transform: translate(46px, -48px) scale(1.1); }
  60%      { transform: translate(-52px, -28px) scale(0.95); }
}

/* ---------- Hero ---------- */
.hero { position: relative; padding-block: clamp(3rem, 7vw, 6rem); background:
  radial-gradient(1200px 500px at 85% -10%, var(--cream-2), transparent 60%); }
.hero-grid {
  position: relative; z-index: 1; display: grid; gap: clamp(2rem, 5vw, 4rem);
  grid-template-columns: 1.1fr .9fr; align-items: center;
}
.hero-title { font-size: clamp(2.6rem, 7vw, 4.6rem); margin: .4rem 0 1.2rem; }
.hl { position: relative; }
.hl--leaf   { color: var(--leaf); }
.hl--tomato { color: var(--tomato); }
.hero-lede { font-size: clamp(1.05rem, 1.6vw, 1.25rem); max-width: 46ch; color: var(--ink-soft); }
.hero-lede strong { color: var(--ink); }

.hero-actions { display: flex; flex-wrap: wrap; gap: .9rem; margin: 1.8rem 0 1.6rem; }

.cred-pills { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: .55rem; }
.cred-pills li {
  display: inline-flex; align-items: center; gap: .45rem; font-size: .82rem; font-weight: 500;
  background: #fff; border: 1px solid rgba(36,31,27,.1); padding: .4rem .8rem; border-radius: 999px;
  box-shadow: var(--shadow-sm);
}

/* Hero photo */
.hero-photo { position: relative; margin: 0; justify-self: center; }
.photo-frame {
  position: relative; border-radius: 28px; padding: 12px;
  background: linear-gradient(140deg, var(--citrus), var(--tomato) 45%, var(--berry));
  box-shadow: var(--shadow); rotate: 2deg;
}
.photo-frame img {
  border-radius: 20px; width: 100%; height: auto; object-fit: cover; rotate: -2deg;
  background: var(--cream-2);
}
.photo-tag {
  position: absolute; bottom: -14px; left: -14px; background: #fff; color: var(--ink);
  font-weight: 700; font-size: .85rem; padding: .5rem .9rem; border-radius: 999px;
  box-shadow: var(--shadow-sm); rotate: -3deg;
}

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(1.5rem, 4vw, 3.5rem); align-items: start; }
.about-body p + p { margin-top: 1.1rem; }
.about-body p { font-size: 1.08rem; color: var(--ink-soft); }
.about-body em { color: var(--ink); font-style: italic; }

/* ---------- Cards ---------- */
.card-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; }
.card {
  background: #fff; border-radius: var(--radius); padding: 1.7rem 1.5rem;
  box-shadow: var(--shadow-sm); border: 1px solid rgba(36,31,27,.06);
  position: relative; overflow: hidden;
}
.card::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 6px; }
.card--leaf::before   { background: var(--leaf); }
.card--berry::before  { background: var(--berry); }
.card--citrus::before { background: var(--citrus); }
.card--tomato::before { background: var(--tomato); }
.card-icon { font-size: 2rem; display: block; margin-bottom: .8rem; }
.card h3 { font-size: 1.25rem; margin-bottom: .5rem; }
.card p { color: var(--ink-soft); font-size: .98rem; }

/* ---------- Mission band ---------- */
.mission {
  background: linear-gradient(120deg, var(--leaf), var(--leaf-deep));
  color: #fff; padding-block: clamp(3.5rem, 8vw, 6rem); text-align: center;
}
.mission-inner { max-width: 60ch; margin-inline: auto; }
.mission-title { font-size: clamp(1.8rem, 4.4vw, 3rem); }
.mission-text { margin-top: 1.2rem; font-size: 1.12rem; opacity: .95; }

/* ---------- Media / featured ---------- */
.media-inner { text-align: center; }
.logo-row {
  list-style: none; padding: 0; display: flex; flex-wrap: wrap; justify-content: center;
  gap: clamp(1.2rem, 4vw, 3rem); margin-bottom: 1rem;
}
.logo-row li {
  font-family: var(--font-display); font-size: clamp(1.2rem, 2.6vw, 1.8rem);
  font-weight: 600; color: var(--ink); opacity: .75;
}
.media-note { color: var(--ink-soft); max-width: 50ch; margin-inline: auto; }

/* ---------- Newsletter ---------- */
.signup {
  position: relative; overflow: hidden; color: #fff; text-align: center;
  padding-block: clamp(3.5rem, 8vw, 6rem);
  background: linear-gradient(125deg, var(--berry), var(--tomato));
}
.signup-inner { position: relative; z-index: 1; max-width: 52ch; margin-inline: auto; }
.signup-title { font-size: clamp(1.8rem, 4.4vw, 3rem); }
.signup-lede { margin-top: .9rem; font-size: 1.1rem; opacity: .96; }
.signup-form {
  display: flex; gap: .6rem; margin: 1.8rem auto 0; max-width: 460px; flex-wrap: wrap;
  justify-content: center;
}
.signup-form input[type="email"] {
  flex: 1 1 240px; min-width: 0; padding: .85rem 1.1rem; border-radius: 999px;
  border: 2px solid transparent; font: inherit; background: #fff; color: var(--ink);
}
.signup-fineprint { margin-top: 1rem; font-size: .85rem; opacity: .85; }

/* ---------- Instagram ---------- */
.insta-inner { text-align: center; max-width: 48ch; margin-inline: auto; }
.insta-inner .card-icon { font-size: 2.4rem; }
.insta-inner p { color: var(--ink-soft); margin: .6rem 0 1.6rem; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.8rem, 4vw, 3.5rem); align-items: start; }
.contact-blurb { color: var(--ink-soft); margin-top: 1rem; font-size: 1.05rem; }
.contact-form {
  background: #fff; padding: clamp(1.4rem, 3vw, 2rem); border-radius: var(--radius);
  box-shadow: var(--shadow-sm); border: 1px solid rgba(36,31,27,.06);
}
.field { margin-bottom: 1rem; }
.field label { display: block; font-weight: 700; font-size: .9rem; margin-bottom: .35rem; }
.field input, .field select, .field textarea {
  width: 100%; padding: .75rem .9rem; border-radius: var(--radius-sm); font: inherit;
  border: 1.5px solid rgba(36,31,27,.18); background: var(--cream); color: var(--ink);
}
.field textarea { resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--leaf); outline: none; background: #fff;
}
.contact-form .btn { width: 100%; margin-top: .4rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #d9d2c8; padding-block: 3rem 1.5rem; }
.footer-inner {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2rem; align-items: start;
  padding-bottom: 2rem; border-bottom: 1px solid rgba(255,255,255,.12);
}
.brand--footer .brand-name, .brand--footer { color: #fff; }
.footer-tagline { margin-top: .7rem; font-family: var(--font-display); font-size: 1.05rem; color: #b9b1a6; }
.footer-nav { display: flex; flex-direction: column; gap: .6rem; }
.footer-nav a, .socials a { color: #d9d2c8; }
.footer-nav a:hover, .socials a:hover { color: var(--citrus); text-decoration: none; }
.socials { list-style: none; padding: 0; display: flex; flex-direction: column; gap: .6rem; }
.footer-base {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem;
  padding-top: 1.5rem; font-size: .85rem; color: #9b9389;
}
.footer-credit a { color: var(--citrus); }

/* ---------- Scroll reveal (progressive enhancement) ---------- */
/* Content is visible by default; only hidden once JS confirms it can animate it back in. */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-photo { order: -1; max-width: 360px; }
  .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .card-grid { grid-template-columns: repeat(2, 1fr); }

  /* backdrop-filter would make the header a containing block for the
     fixed off-canvas menu, trapping it in the header bar. Drop it here. */
  .site-header { backdrop-filter: none; -webkit-backdrop-filter: none; background: var(--cream); }

  .nav-toggle {
    display: inline-grid; place-items: center; width: 44px; height: 44px;
    background: transparent; border: 0; cursor: pointer; position: relative; z-index: 110;
  }
  .nav-toggle-bar, .nav-toggle-bar::before, .nav-toggle-bar::after {
    content: ""; display: block; width: 24px; height: 2.5px; background: var(--ink);
    border-radius: 2px; transition: transform .25s ease, opacity .25s ease;
  }
  .nav-toggle-bar::before { position: absolute; transform: translateY(-7px); }
  .nav-toggle-bar::after  { position: absolute; transform: translateY(7px); }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bar { background: transparent; }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bar::before { transform: rotate(45deg); }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bar::after  { transform: rotate(-45deg); }

  .nav-menu {
    position: fixed; inset: 0 0 0 30%; z-index: 105; flex-direction: column; justify-content: center;
    align-items: flex-start; gap: 1.4rem; padding: 2rem; background: var(--cream);
    box-shadow: -20px 0 50px -20px rgba(0,0,0,.4);
    transform: translateX(100%); transition: transform .3s ease; font-size: 1.3rem;
  }
  .nav-menu.is-open { transform: none; }
  .nav-menu a { font-family: var(--font-display); }
}

@media (max-width: 520px) {
  .card-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: 1.5rem; }
  .hero-actions .btn { flex: 1 1 auto; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .btn:hover { transform: none; }
  .blob { animation: none !important; }
}

/* ---------- Thank-you / success page ---------- */
.header-back { color: var(--ink); font-weight: 600; }
.header-back:hover { color: var(--leaf-deep); text-decoration: none; }

.thanks {
  position: relative; overflow: hidden; text-align: center;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  min-height: 70vh;
  padding: clamp(3rem, 7vw, 5rem) 0 clamp(4rem, 9vw, 7rem);
  background: radial-gradient(1100px 480px at 85% -10%, var(--cream-2), transparent 60%);
}
.thanks-inner {
  position: relative; z-index: 1; width: 100%;
  max-width: 40rem; margin-inline: auto; text-align: center;
}

/* Round, centred photo. object-fit:cover crops to the circle so it can never distort. */
.thanks-photo-ring {
  width: 176px; height: 176px; aspect-ratio: 1; flex: none;
  margin: 0 auto 1.8rem; padding: 6px;
  border-radius: 50%; box-shadow: var(--shadow);
  background: linear-gradient(140deg, var(--citrus), var(--tomato) 45%, var(--berry));
}
.thanks-photo {
  display: block; width: 100%; height: 100%; aspect-ratio: 1;
  border-radius: 50%; object-fit: cover; object-position: 50% 24%;
  border: 4px solid var(--cream); background: var(--cream-2);
}

.thanks-title { font-size: clamp(2.4rem, 6vw, 3.6rem); margin: .3rem 0 1rem; }
.thanks-text {
  font-size: clamp(1.05rem, 1.6vw, 1.2rem); color: var(--ink-soft);
  max-width: 38ch; margin-inline: auto; margin-bottom: 2.2rem;
}
.thanks-actions {
  display: flex; flex-wrap: wrap; gap: .9rem; justify-content: center;
  padding-bottom: 1rem;
}
