/* =========================================================
   Ellie's Boutique Cake
   Soft, elegant pastel boutique site. Light theme, locked.
   Accent (locked): rose. Display: Cormorant Garamond. Text: Jost.
   ========================================================= */

:root {
  /* palette - Ellie's Boutique Cakes brand */
  --cream:        #fff7ef;   /* brand cream */
  --cream-deep:   #fbece2;   /* deeper cream band */
  --paper:        #fffdfa;
  --pink:         #f5a8ce;   /* Ellie pink - soft decoration */
  --pink-soft:    #f9c3dc;   /* Soft pink */
  --rose:         #c13e6d;   /* interactive accent (deep blush, darkened for contrast) */
  --rose-deep:    #a82f5a;   /* hover / pressed */
  --rose-soft:    #f7d7e4;   /* soft pink tint for borders */
  --rose-tint:    #fceaf2;   /* lightest pink wash */
  --gold:         #c7a15a;   /* Champagne gold - metallic detail */
  --cocoa:        #5d4029;   /* headings / text, warm brown */
  --ink:          #715844;   /* body text */
  --ink-soft:     #9c8472;   /* muted */
  --line:         #efe1d4;   /* hairlines */

  --radius:       18px;
  --radius-sm:    12px;
  --radius-pill:  999px;

  --shadow-sm: 0 6px 20px rgba(120, 70, 80, 0.08);
  --shadow-md: 0 18px 50px rgba(120, 70, 80, 0.14);
  --shadow-lg: 0 30px 70px rgba(120, 70, 80, 0.18);

  --maxw: 1200px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);

  --font-display: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --font-text: "Jost", "Helvetica Neue", Arial, sans-serif;

  color-scheme: light;
}

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

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--font-text);
  font-weight: 400;
  color: var(--ink);
  background: var(--cream);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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

h1, h2, h3 {
  font-family: var(--font-display);
  color: var(--cocoa);
  font-weight: 500;
  line-height: 1.08;
  margin: 0;
  letter-spacing: 0.005em;
}
h1 em, h2 em { font-style: italic; color: var(--rose); }

.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 200;
  background: var(--rose); color: #fff; padding: 0.7rem 1.1rem;
  border-radius: 0 0 var(--radius-sm) 0;
}
.skip-link:focus { left: 0; }

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

/* ---------- Buttons ---------- */
.btn {
  --bg: var(--rose);
  --fg: #fff;
  display: inline-flex; align-items: center; gap: 0.55rem;
  background: var(--bg); color: var(--fg);
  font-family: var(--font-text); font-weight: 500; font-size: 0.95rem;
  letter-spacing: 0.02em;
  padding: 0.85rem 1.5rem;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  cursor: pointer; white-space: nowrap;
  transition: transform 0.25s var(--ease), background 0.25s var(--ease), box-shadow 0.25s var(--ease);
  box-shadow: 0 8px 22px rgba(193, 62, 109, 0.22);
}
.btn:hover { background: var(--rose-deep); transform: translateY(-2px); box-shadow: 0 14px 30px rgba(193, 62, 109, 0.30); }
.btn:active { transform: translateY(0) scale(0.985); }
.btn--lg { padding: 1.05rem 1.9rem; font-size: 1rem; }
.btn--small { padding: 0.6rem 1.15rem; font-size: 0.88rem; box-shadow: none; }
.btn--ghost {
  background: transparent; color: var(--cocoa);
  border-color: var(--line); box-shadow: none;
}
.btn--ghost:hover { background: var(--paper); border-color: var(--rose); color: var(--rose-deep); }
.btn--invert {
  background: var(--paper); color: var(--rose-deep);
  box-shadow: 0 14px 34px rgba(60, 30, 40, 0.25);
}
.btn--invert:hover { background: #fff; color: var(--rose-deep); }
.btn .ig { width: 1.15em; height: 1.15em; fill: currentColor; flex-shrink: 0; }

/* ---------- Eyebrow ---------- */
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.28em;
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--rose);
  margin: 0 0 1.1rem;
}
.eyebrow--light { color: #f3cdd6; }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 247, 239, 0.82);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.nav.is-stuck {
  background: rgba(255, 250, 245, 0.94);
  border-bottom-color: var(--line);
  box-shadow: 0 6px 24px rgba(120, 70, 80, 0.06);
}
.nav__inner {
  max-width: var(--maxw); margin: 0 auto;
  height: 72px; padding: 0 clamp(1.1rem, 4vw, 2.4rem);
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.brand { display: inline-flex; align-items: center; }
.brand__logo { height: 50px; width: auto; }
.nav__links { display: flex; align-items: center; gap: clamp(1rem, 2.2vw, 2rem); }
.nav__links > a:not(.btn) {
  font-size: 0.92rem; font-weight: 400; color: var(--ink); position: relative;
  transition: color 0.2s var(--ease);
}
.nav__links > a:not(.btn)::after {
  content: ""; position: absolute; left: 0; bottom: -5px; height: 1.5px; width: 0;
  background: var(--rose); transition: width 0.28s var(--ease);
}
.nav__links > a:not(.btn):hover { color: var(--rose-deep); }
.nav__links > a:not(.btn):hover::after { width: 100%; }

.nav__toggle {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: 0; cursor: pointer; padding: 8px;
}
.nav__toggle span { width: 24px; 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); }

.mobile-menu {
  display: none; flex-direction: column; gap: 0.4rem;
  padding: 0.6rem clamp(1.1rem, 4vw, 2.4rem) 1.4rem;
  background: var(--paper); border-bottom: 1px solid var(--line);
}
.mobile-menu:not([hidden]) { display: flex; }
.mobile-menu a:not(.btn) { padding: 0.7rem 0.2rem; border-bottom: 1px solid var(--line); color: var(--cocoa); font-size: 1rem; }
.mobile-menu .btn { margin-top: 0.7rem; justify-content: center; }

/* ---------- Layout helpers ---------- */
section { padding-inline: clamp(1.1rem, 4vw, 2.4rem); }
.section-head { max-width: 640px; margin: 0 auto clamp(2.5rem, 5vw, 3.8rem); text-align: center; }
.section-head h2 { font-size: clamp(2.2rem, 5vw, 3.4rem); }
.section-sub { margin: 1rem auto 0; color: var(--ink); max-width: 56ch; font-size: 1.05rem; }

/* ---------- Hero ---------- */
.hero {
  max-width: var(--maxw); margin: 0 auto;
  min-height: calc(100dvh - 72px);
  display: grid; grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
  padding-block: clamp(2.5rem, 6vw, 4.5rem);
}
.hero__text { max-width: 33rem; }
.hero h1 {
  font-size: clamp(3rem, 8vw, 5.6rem);
  letter-spacing: -0.01em;
  margin-bottom: 1.4rem;
}
.hero__sub { font-size: clamp(1.05rem, 1.6vw, 1.22rem); color: var(--ink); max-width: 30rem; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-top: 2rem; }
.hero__handle { margin-top: 1.6rem; color: var(--ink-soft); font-size: 0.92rem; letter-spacing: 0.08em; }

.hero__media { position: relative; }
.hero__frame {
  border-radius: 260px 260px var(--radius) var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 6px solid var(--paper);
  rotate: 1.5deg;
}
.hero__frame img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 5; }
.hero__badge {
  position: absolute; left: -18px; bottom: 30px;
  background: var(--paper); border-radius: var(--radius-pill);
  padding: 0.9rem 1.4rem; box-shadow: var(--shadow-md);
  display: flex; flex-direction: column; line-height: 1.2;
  rotate: -3deg;
}
.hero__badge-top { font-family: var(--font-display); font-style: italic; font-size: 1.25rem; color: var(--gold); }
.hero__badge-bottom { font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-soft); }

/* ---------- Promise ---------- */
.promise {
  max-width: var(--maxw); margin: 0 auto;
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.5rem, 3vw, 3rem);
  padding-block: clamp(3rem, 6vw, 5rem);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  text-align: center;
}
.promise__item { padding: 0 0.5rem; }
.promise__icon { color: var(--gold); font-size: 1.4rem; display: inline-block; margin-bottom: 0.6rem; }
.promise__item h3 { font-size: 1.5rem; margin-bottom: 0.5rem; }
.promise__item p { color: var(--ink); font-size: 0.98rem; margin: 0; }

/* ---------- Offerings (bento) ---------- */
.offerings { max-width: var(--maxw); margin: 0 auto; padding-block: clamp(4rem, 8vw, 7rem); }
.bento {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 240px;
  gap: clamp(1rem, 1.8vw, 1.4rem);
}
.bento__cell {
  position: relative; overflow: hidden; border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  grid-row: span 1;
}
.bento__cell--tall { grid-row: span 2; }
.bento__cell--wide { grid-column: span 2; }
.bento__cell img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.7s var(--ease);
}
.bento__cell::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(48, 22, 30, 0.74) 0%, rgba(48, 22, 30, 0.12) 42%, transparent 70%);
}
.bento__cell:hover img { transform: scale(1.06); }
.bento__label { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding: 1.3rem 1.4rem; color: #fff; }
.bento__label h3 { color: #fff; font-size: 1.6rem; margin-bottom: 0.25rem; }
.bento__label p { color: rgba(255, 255, 255, 0.9); font-size: 0.92rem; margin: 0; max-width: 42ch; }

/* ---------- About (split) ---------- */
.about {
  max-width: var(--maxw); margin: 0 auto;
  display: grid; grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(2rem, 5vw, 4.5rem); align-items: center;
  padding-block: clamp(3rem, 7vw, 6rem);
}
.about__media { position: relative; }
.about__media img {
  width: 100%; aspect-ratio: 5 / 5.4; object-fit: cover;
  border-radius: var(--radius) var(--radius) 180px 180px;
  box-shadow: var(--shadow-md);
  border: 6px solid var(--paper);
}
.about__media::before {
  content: ""; position: absolute; inset: -22px -22px auto auto;
  width: 140px; height: 140px; border-radius: 50%;
  background: var(--rose-soft); z-index: -1;
}
.about__text h2 { font-size: clamp(2.3rem, 5vw, 3.5rem); margin-bottom: 1.2rem; }
.about__lead { font-size: 1.2rem; color: var(--cocoa); font-family: var(--font-display); font-style: italic; }
.about__text p { margin: 0 0 1rem; max-width: 52ch; }
.about__text .btn { margin-top: 0.8rem; }

/* ---------- Gallery (masonry) ---------- */
.gallery {
  background: var(--cream-deep);
  padding-block: clamp(4rem, 8vw, 7rem);
  margin-inline: 0;
}
.gallery > * { max-width: var(--maxw); margin-inline: auto; }
.masonry {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(0.8rem, 1.6vw, 1.2rem);
}
.masonry__item {
  display: block; aspect-ratio: 4 / 5;
  border-radius: var(--radius-sm); overflow: hidden;
  box-shadow: var(--shadow-sm); position: relative;
}
.masonry__item img { width: 100%; height: 100%; display: block; object-fit: cover; transition: transform 0.6s var(--ease); }
.masonry__item::after {
  content: ""; position: absolute; inset: 0;
  background: rgba(193, 62, 109, 0); transition: background 0.35s var(--ease);
}
.masonry__item:hover img { transform: scale(1.05); }
.masonry__item:hover::after { background: rgba(193, 62, 109, 0.12); }
.gallery__cta { text-align: center; margin-top: clamp(2.2rem, 4vw, 3rem); }

/* ---------- How to order (steps) ---------- */
.order { max-width: var(--maxw); margin: 0 auto; padding-block: clamp(4rem, 8vw, 7rem); }
.steps {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.5rem, 3vw, 2.4rem); counter-reset: step;
  position: relative;
}
.steps__item {
  background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 2.2rem 1.8rem 2rem;
  text-align: center; position: relative;
}
.steps__num {
  display: grid; place-items: center; width: 54px; height: 54px;
  margin: 0 auto 1.1rem; border-radius: 50%;
  background: var(--rose-tint); color: var(--rose-deep);
  font-family: var(--font-display); font-size: 1.7rem; font-weight: 600;
  border: 1px solid var(--rose-soft);
}
.steps__item h3 { font-size: 1.5rem; margin-bottom: 0.5rem; }
.steps__item p { color: var(--ink); font-size: 0.98rem; margin: 0; }
.order__cta { text-align: center; margin-top: clamp(2.4rem, 4vw, 3.2rem); }
.order__note { margin-top: 1.1rem; color: var(--ink-soft); font-size: 0.92rem; }

/* ---------- FAQ ---------- */
.faq { max-width: 760px; margin: 0 auto; padding-block: clamp(3rem, 7vw, 6rem); }
.faq__list { display: flex; flex-direction: column; gap: 0.7rem; }
.faq__item {
  background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--radius-sm); padding: 0.4rem 1.3rem;
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.faq__item[open] { border-color: var(--rose-soft); box-shadow: var(--shadow-sm); }
.faq__item summary {
  cursor: pointer; list-style: none; padding: 1rem 2rem 1rem 0;
  font-family: var(--font-display); font-size: 1.3rem; color: var(--cocoa);
  position: relative; font-weight: 500;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%);
  font-family: var(--font-text); font-size: 1.5rem; color: var(--rose); transition: transform 0.3s var(--ease);
}
.faq__item[open] summary::after { content: "\2212"; }
.faq__item p { margin: 0 0 1.1rem; color: var(--ink); }

/* ---------- CTA band ---------- */
.cta-band {
  background:
    radial-gradient(circle at 18% 18%, rgba(255, 255, 255, 0.12), transparent 45%),
    linear-gradient(135deg, var(--rose) 0%, var(--rose-deep) 100%);
  padding-block: clamp(4rem, 8vw, 6.5rem);
  text-align: center;
}
.cta-band__inner { max-width: 680px; margin: 0 auto; }
.cta-band h2 { color: #fff; font-size: clamp(2.2rem, 5vw, 3.6rem); }
.cta-band__sub { color: rgba(255, 255, 255, 0.92); margin: 1.1rem auto 2.2rem; max-width: 48ch; font-size: 1.08rem; }

/* ---------- Footer ---------- */
.footer { background: var(--cocoa); color: #e9dcd9; padding: clamp(3rem, 5vw, 4rem) clamp(1.1rem, 4vw, 2.4rem) 1.8rem; }
.footer__inner {
  max-width: var(--maxw); margin: 0 auto;
  display: flex; flex-wrap: wrap; gap: 2rem; justify-content: space-between; align-items: center;
  padding-bottom: 2rem; border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}
.footer__brand { display: flex; flex-direction: column; align-items: flex-start; gap: 0.5rem; }
.footer__logo { height: 64px; width: auto; }
.footer__tag { margin: 0; color: #d8c6ba; font-size: 0.9rem; }
.footer__links { display: flex; flex-wrap: wrap; gap: 1.4rem; }
.footer__links a { color: #d9c8c5; font-size: 0.92rem; transition: color 0.2s var(--ease); }
.footer__links a:hover { color: #fff; }
.footer__bottom {
  max-width: var(--maxw); margin: 1.6rem auto 0;
  display: flex; flex-wrap: wrap; gap: 0.6rem; justify-content: space-between;
  color: #b6a3a0; font-size: 0.85rem;
}
.footer__ig:hover { color: #fff; }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); will-change: opacity, transform; }
.reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .bento__cell:hover img, .masonry__item:hover img { transform: none; }
  .hero__frame { rotate: 0deg; }
}

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; min-height: auto; text-align: center; padding-block: 2.5rem 3rem; }
  .hero__text { max-width: 38rem; margin: 0 auto; }
  .hero__sub { margin-inline: auto; }
  .hero__cta { justify-content: center; }
  .hero__media { max-width: 26rem; margin: 0 auto; order: -1; }
  .hero__frame { rotate: 0deg; }
  .about { grid-template-columns: 1fr; }
  .about__media { max-width: 26rem; margin: 0 auto; order: -1; }
  .about__text { text-align: center; }
  .about__text p { margin-inline: auto; }
}

@media (max-width: 860px) {
  .nav__links { display: none; }
  .nav__toggle { display: flex; }
  .promise { grid-template-columns: 1fr; gap: 2rem; }
  .bento { grid-template-columns: 1fr 1fr; grid-auto-rows: 200px; }
  .bento__cell--tall { grid-row: span 2; }
  .bento__cell--wide { grid-column: span 2; }
  .steps { grid-template-columns: 1fr; }
  .masonry { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 520px) {
  .brand__name { font-size: 1.1rem; }
  .hero h1 { font-size: clamp(2.6rem, 13vw, 3.4rem); }
  .bento { grid-template-columns: 1fr; grid-auto-rows: 220px; }
  .bento__cell--tall, .bento__cell--wide { grid-column: span 1; grid-row: span 1; }
  .masonry { grid-template-columns: repeat(2, 1fr); }
  .footer__inner { flex-direction: column; align-items: flex-start; }
}
