/* ============================================================
   Rochelle's Bakeshop — stylesheet
   Palette & type drawn from the logo + printed menu:
   dusty blush, sage green, rose, and cocoa on cream.
   ============================================================ */

:root {
  /* palette */
  --blush:       #f7e9e5;
  --blush-soft:  #fbf1ee;
  --blush-deep:  #eed7d1;
  --cream:       #fdf8f5;
  --rose:        #c98b86;
  --rose-deep:   #b06e69;
  --sage:        #a9c0a0;
  --sage-soft:   #cadcc2;
  --sage-deep:   #7d9574;
  --cocoa:       #5b3a38;
  --ink:         #47302e;
  --gold:        #c9a566;

  /* type */
  --serif:  'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --script: 'Great Vibes', 'Segoe Script', cursive;
  --sans:   'Jost', system-ui, -apple-system, 'Segoe UI', sans-serif;

  /* layout */
  --wrap: 1160px;
  --radius: 18px;
  --shadow: 0 18px 44px -24px rgba(91, 58, 56, 0.45);
  --shadow-sm: 0 8px 22px -14px rgba(91, 58, 56, 0.4);
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

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

html { scroll-behavior: smooth; scroll-padding-top: 96px; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--serif);
  color: var(--ink);
  background: var(--blush);
  line-height: 1.65;
  font-size: 1.18rem;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 { color: var(--cocoa); font-weight: 600; line-height: 1.12; }

.wrap { width: min(var(--wrap), 92%); margin-inline: auto; }

.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 999;
  background: var(--cocoa); color: var(--cream);
  padding: 0.7rem 1.2rem; border-radius: 0 0 10px 0; font-family: var(--sans);
}
.skip-link:focus { left: 0; }

/* shared bits */
.eyebrow {
  font-family: var(--sans);
  text-transform: uppercase;
  letter-spacing: 0.32em;
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--rose-deep);
}
.script-accent {
  font-family: var(--script);
  color: var(--rose);
  font-size: 1.9rem;
  line-height: 1;
  font-weight: 400;
}
.section-head { text-align: center; max-width: 640px; margin: 0 auto clamp(2.5rem, 5vw, 4rem); }
.section-head .script-accent { display: block; margin-bottom: 0.3rem; }
.section-head h2 { font-size: clamp(2.4rem, 5.5vw, 3.6rem); }
.section-sub { font-style: italic; color: var(--rose-deep); margin-top: 0.6rem; font-size: 1.15rem; }

/* buttons */
.btn {
  display: inline-block;
  font-family: var(--sans);
  font-weight: 500;
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 1rem 2.1rem;
  border-radius: 50px;
  cursor: pointer;
  transition: transform 0.3s var(--ease), background 0.3s var(--ease), box-shadow 0.3s var(--ease), color 0.3s var(--ease);
  border: 1.5px solid transparent;
  white-space: nowrap;
}
.btn-primary { background: var(--rose-deep); color: var(--cream); box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--cocoa); transform: translateY(-3px); box-shadow: var(--shadow); }
.btn-ghost { border-color: var(--rose-deep); color: var(--rose-deep); background: transparent; }
.btn-ghost:hover { background: var(--rose-deep); color: var(--cream); transform: translateY(-3px); }

/* reveal on scroll */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }

/* ============================================================
   HEADER / NAV
   ============================================================ */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  padding: 0.6rem 0;
  transition: background 0.4s var(--ease), box-shadow 0.4s var(--ease), padding 0.4s var(--ease);
}
.site-header.is-scrolled {
  background: rgba(253, 248, 245, 0.9);
  backdrop-filter: blur(10px);
  box-shadow: 0 6px 24px -18px rgba(91, 58, 56, 0.6);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; }

.brand { display: flex; align-items: center; gap: 0.7rem; }
.brand-mark { width: 56px; height: 56px; }
.brand-words { display: flex; flex-direction: column; line-height: 1; }
.brand-name { font-family: var(--script); font-size: 1.85rem; color: var(--cocoa); }
.brand-name span { color: var(--cocoa); }
.brand-sub {
  font-family: var(--sans); text-transform: uppercase; letter-spacing: 0.42em;
  font-size: 0.62rem; color: var(--sage-deep); font-weight: 500; padding-left: 0.2em;
}

.nav-menu { list-style: none; display: flex; align-items: center; gap: 1.9rem; }
.nav-menu a {
  font-family: var(--sans); font-size: 0.82rem; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--cocoa); font-weight: 400;
  position: relative; transition: color 0.25s var(--ease);
}
.nav-menu a:not(.nav-cta):not(.nav-ig)::after {
  content: ""; position: absolute; left: 0; bottom: -6px; height: 1.5px; width: 0;
  background: var(--rose); transition: width 0.3s var(--ease);
}
.nav-menu a:not(.nav-cta):not(.nav-ig):hover::after { width: 100%; }
.nav-menu a:hover { color: var(--rose-deep); }
.nav-cta {
  background: var(--rose-deep); color: var(--cream) !important;
  padding: 0.6rem 1.4rem; border-radius: 50px;
  transition: background 0.3s var(--ease), transform 0.3s var(--ease);
}
.nav-cta:hover { background: var(--cocoa); transform: translateY(-2px); }
.nav-ig { display: inline-flex; color: var(--cocoa); }
.nav-ig:hover { color: var(--rose-deep); }

.nav-toggle {
  display: none; flex-direction: column; gap: 5px; background: none; border: 0;
  cursor: pointer; padding: 8px; z-index: 110;
}
.nav-toggle span { width: 26px; height: 2px; background: var(--cocoa); border-radius: 2px; transition: transform 0.3s var(--ease), opacity 0.3s var(--ease); }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex; align-items: center; justify-content: center;
  text-align: center;
  padding: 8rem 0 5rem;
  background:
    radial-gradient(1100px 620px at 50% -10%, var(--blush-soft), transparent 70%),
    linear-gradient(180deg, var(--blush) 0%, var(--cream) 100%);
  overflow: hidden;
}
.petals {
  position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background-image: url("../assets/sprig.svg"), url("../assets/sprig.svg");
  background-repeat: no-repeat, no-repeat;
  background-position: -30px -10px, right -40px bottom -30px;
  background-size: 260px, 300px;
  opacity: 0.9;
}
.petals::before, .petals::after {
  content: ""; position: absolute; border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, var(--sage-soft), var(--sage) 75%);
  opacity: 0.25; filter: blur(2px);
}
.petals::before { width: 180px; height: 180px; top: 18%; right: 12%; }
.petals::after { width: 120px; height: 120px; bottom: 16%; left: 10%; background: radial-gradient(circle at 35% 35%, #f3c8d0, var(--rose) 80%); opacity: 0.2; }

.hero-inner { position: relative; z-index: 2; max-width: 780px; }
.hero .eyebrow { margin-bottom: 1.4rem; }
.hero-title {
  font-family: var(--script);
  font-weight: 400;
  font-size: clamp(3.6rem, 11vw, 7.2rem);
  line-height: 0.95;
  color: var(--cocoa);
  margin-bottom: 0.2rem;
}
.hero-title span { display: block; font-size: 0.62em; color: var(--sage-deep); }
.hero-lede {
  font-size: clamp(1.4rem, 3.2vw, 2rem);
  font-style: italic; color: var(--rose-deep);
  margin: 1.2rem 0 0.6rem;
}
.hero-desc { max-width: 540px; margin: 0 auto 2.2rem; color: var(--ink); }
.hero-cta { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

.scroll-cue { position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%); z-index: 2; }
.scroll-cue span {
  display: block; width: 24px; height: 38px; border: 2px solid var(--rose); border-radius: 20px; position: relative;
}
.scroll-cue span::after {
  content: ""; position: absolute; top: 7px; left: 50%; transform: translateX(-50%);
  width: 4px; height: 8px; background: var(--rose); border-radius: 3px;
  animation: cue 1.6s var(--ease) infinite;
}
@keyframes cue { 0% { opacity: 0; transform: translate(-50%, 0); } 40% { opacity: 1; } 80%, 100% { opacity: 0; transform: translate(-50%, 12px); } }

/* ============================================================
   VALUES
   ============================================================ */
.values { background: var(--cream); padding: clamp(3.5rem, 7vw, 6rem) 0; }
.values-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.6rem; }
.value { text-align: center; padding: 1rem; }
.value-ico {
  font-size: 2.1rem; width: 76px; height: 76px; margin: 0 auto 1.1rem;
  display: grid; place-items: center; border-radius: 50%;
  background: var(--blush); border: 1px solid var(--blush-deep);
}
.value h3 { font-size: 1.5rem; letter-spacing: 0.02em; margin-bottom: 0.4rem; }
.value p { font-size: 1.02rem; color: var(--ink); }

/* ============================================================
   STORY
   ============================================================ */
.story { background: var(--blush); padding: clamp(4rem, 8vw, 7rem) 0; }
.story-inner { display: grid; grid-template-columns: 0.85fr 1fr; gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.story-art { text-align: center; }
.story-logo {
  width: min(380px, 82%); margin: 0 auto;
  filter: drop-shadow(0 24px 40px rgba(91, 58, 56, 0.26));
}
.story-art .script-accent { display: block; margin-top: 1.1rem; font-size: 2rem; color: var(--sage-deep); }
.story-text h2 { font-size: clamp(2.2rem, 5vw, 3.2rem); margin: 0.4rem 0 1.2rem; }
.story-text p { margin-bottom: 1.1rem; }
.story-text .btn { margin-top: 0.6rem; }

/* divider */
.divider { display: grid; place-items: center; padding: clamp(2rem, 5vw, 3.4rem) 0; background: var(--cream); }

/* ============================================================
   MENU
   ============================================================ */
.menu { background: var(--cream); padding: clamp(1rem, 3vw, 2rem) 0 clamp(4rem, 8vw, 7rem); position: relative; }
.menu-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.6rem; }
.menu-card {
  background: var(--blush-soft);
  border: 1px solid var(--blush-deep);
  border-radius: var(--radius);
  padding: 1.9rem 2rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.menu-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.menu-card-head {
  display: flex; align-items: baseline; justify-content: space-between; gap: 1rem;
  padding-bottom: 0.9rem; margin-bottom: 1.1rem;
  border-bottom: 1.5px solid var(--blush-deep);
}
.menu-card-head h3 { font-size: 1.75rem; letter-spacing: 0.04em; }
.price-tag {
  font-family: var(--sans); font-size: 0.68rem; letter-spacing: 0.12em; text-transform: uppercase;
  background: var(--sage-soft); color: var(--sage-deep); font-weight: 600;
  padding: 0.4rem 0.85rem; border-radius: 50px; white-space: nowrap;
}
.menu-list { list-style: none; }
.menu-list li {
  font-family: var(--serif); text-transform: uppercase; letter-spacing: 0.14em;
  font-size: 0.98rem; color: var(--ink); padding: 0.34rem 0;
  display: flex; align-items: baseline;
}
.menu-list:not(.menu-list--priced) li { padding-left: 1.3rem; position: relative; }
.menu-list:not(.menu-list--priced) li::before {
  content: ""; position: absolute; left: 0; top: 0.75em;
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--rose); opacity: 0.7;
}
.menu-list--priced .dots { flex: 1; border-bottom: 1.5px dotted var(--rose); margin: 0 0.6em 0.15em; }
.menu-list--priced .price { font-family: var(--sans); letter-spacing: 0.05em; color: var(--rose-deep); font-weight: 500; font-size: 0.92rem; }

.menu-note {
  text-align: center; max-width: 620px; margin: clamp(2.4rem, 5vw, 3.4rem) auto 0;
  font-style: italic; font-size: 1.12rem; color: var(--ink);
}
.menu-note strong { display: block; font-style: normal; font-family: var(--sans);
  text-transform: uppercase; letter-spacing: 0.14em; font-size: 0.8rem; color: var(--rose-deep); margin-bottom: 0.5rem; }

/* ============================================================
   GALLERY
   ============================================================ */
.gallery { background: var(--blush); padding: clamp(4rem, 8vw, 7rem) 0; }
.gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.1rem; }
.shot {
  aspect-ratio: 1; border-radius: var(--radius); overflow: hidden; position: relative;
  display: flex; align-items: flex-end; box-shadow: var(--shadow-sm);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.shot img { width: 100%; height: 100%; object-fit: cover; }
.shot:hover { transform: translateY(-4px) scale(1.01); box-shadow: var(--shadow); }
.shot::before {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background-image: url("../assets/sprig.svg");
  background-repeat: no-repeat; background-position: center 20%; background-size: 120px;
  opacity: 0.28;
}
.shot figcaption {
  position: relative; z-index: 1; width: 100%;
  padding: 1rem; font-family: var(--sans); text-transform: uppercase;
  letter-spacing: 0.14em; font-size: 0.66rem; font-weight: 500; color: var(--cocoa);
  background: linear-gradient(180deg, transparent, rgba(253, 248, 245, 0.82) 55%);
}
.shot figcaption .script-accent { display: block; text-transform: none; letter-spacing: 0; font-size: 1.55rem; color: var(--rose-deep); margin-bottom: -0.1rem; }
.shot--blush { background: linear-gradient(150deg, #f8dcd5, #efc7c0); }
.shot--sage  { background: linear-gradient(150deg, #d3e2ca, #b6cbaa); }
.shot--rose  { background: linear-gradient(150deg, #f0cfcb, #dda7a1); }
.shot--cream { background: linear-gradient(150deg, #f8ecd9, #eed9bd); }
.gallery-cta { text-align: center; margin-top: 2.6rem; }

/* ============================================================
   ORDER STEPS
   ============================================================ */
.order { background: var(--cream); padding: clamp(4rem, 8vw, 7rem) 0; }
.steps { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.4rem; counter-reset: step; }
.step { text-align: center; padding: 1.5rem 1rem; position: relative; }
.step-num {
  display: grid; place-items: center; width: 64px; height: 64px; margin: 0 auto 1.1rem;
  font-family: var(--script); font-size: 2.1rem; color: var(--cream);
  background: var(--sage-deep); border-radius: 50%; box-shadow: var(--shadow-sm);
}
.step h3 { font-size: 1.4rem; margin-bottom: 0.4rem; }
.step p { font-size: 1rem; color: var(--ink); }

.order-cta {
  margin-top: clamp(2.6rem, 5vw, 4rem); text-align: center;
  background: var(--blush); border: 1px solid var(--blush-deep);
  border-radius: var(--radius); padding: clamp(2rem, 5vw, 3.2rem);
}
.order-cta p { font-size: 1.4rem; font-style: italic; color: var(--cocoa); margin-bottom: 1.3rem; }
.order-cta-btns { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.order-cta .order-cta-note {
  margin: 1.2rem 0 0; font-family: var(--sans); font-style: normal;
  text-transform: uppercase; letter-spacing: 0.14em; font-size: 0.74rem; color: var(--rose-deep);
}

/* ============================================================
   TESTIMONIALS
   ============================================================ */
.quotes { background: linear-gradient(180deg, var(--sage-soft), #bcd0b2); padding: clamp(4rem, 8vw, 7rem) 0; }
.quotes .section-head h2, .quotes .script-accent { color: var(--cocoa); }
.quote-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.quote {
  background: var(--cream); border-radius: var(--radius); padding: 2rem 1.9rem;
  box-shadow: var(--shadow-sm); position: relative;
}
.quote::before {
  content: ""; display: block; width: 42px; height: 3px; border-radius: 999px;
  background: var(--rose); opacity: 0.5; margin-bottom: 1rem;
}
.quote h3 { font-size: 1.45rem; margin-bottom: 0.7rem; }
.quote p { font-size: 1.08rem; color: var(--ink); margin: 0; position: relative; }
.quote cite {
  font-family: var(--sans); font-style: normal; text-transform: uppercase;
  letter-spacing: 0.14em; font-size: 0.72rem; color: var(--rose-deep); font-weight: 500;
}
.quotes-note { text-align: center; margin-top: 2rem; font-style: italic; font-size: 0.95rem; color: var(--sage-deep); }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer { background: var(--cocoa); color: #f3e2dd; padding: clamp(3.5rem, 7vw, 5.5rem) 0 2rem; }
.footer-inner { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2.4rem; }
.footer-brand img { margin-bottom: 0.8rem; }
.footer-brand .brand-name { font-family: var(--script); font-size: 2.1rem; color: var(--cream); line-height: 1; }
.footer-brand .brand-name span { color: var(--sage-soft); }
.footer-tag { font-style: italic; color: #e4cbc5; margin-top: 0.4rem; max-width: 260px; }
.footer-col h4 {
  font-family: var(--sans); text-transform: uppercase; letter-spacing: 0.16em;
  font-size: 0.76rem; color: var(--sage-soft); margin-bottom: 1rem; font-weight: 600;
}
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 0.6rem; font-size: 1.02rem; color: #ecd7d2; }
.footer-col a { transition: color 0.25s var(--ease); }
.footer-col a:hover { color: var(--cream); text-decoration: underline; text-underline-offset: 4px; }
.footer-bottom {
  width: min(var(--wrap), 92%); margin: clamp(2.4rem, 5vw, 3.4rem) auto 0; padding-top: 1.6rem;
  border-top: 1px solid rgba(243, 226, 221, 0.18);
  display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap;
  font-family: var(--sans); font-size: 0.82rem; letter-spacing: 0.04em; color: #d9bfb9;
}
.to-top { transition: color 0.25s var(--ease); }
.to-top:hover { color: var(--cream); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  body { font-size: 1.1rem; }
  .nav-toggle { display: flex; }
  .nav-menu {
    position: fixed; inset: 0 0 0 auto; width: min(320px, 82vw);
    flex-direction: column; align-items: flex-start; justify-content: center; gap: 1.6rem;
    background: var(--cream); padding: 3rem 2.4rem; box-shadow: -20px 0 50px -30px rgba(91,58,56,0.7);
    transform: translateX(100%); transition: transform 0.4s var(--ease);
  }
  .nav-menu.is-open { transform: none; }
  .nav-menu a { font-size: 1rem; }
  .nav-ig { align-self: flex-start; }

  .values-grid { grid-template-columns: repeat(2, 1fr); gap: 1.2rem; }
  .story-inner { grid-template-columns: 1fr; }
  .story-art { order: -1; }
  .menu-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .quote-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 520px) {
  .values-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-bottom { justify-content: center; text-align: center; }
  .brand-sub { letter-spacing: 0.32em; }
}

/* ---------- accessibility: reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
  .reveal { opacity: 1; transform: none; }
}

/* focus visibility */
:focus-visible { outline: 3px solid var(--rose); outline-offset: 3px; border-radius: 4px; }
