/* ============================================================
   Crosthwaite Custom Cakes
   Warm editorial — same sensibility as Ryan Crosthwaite Photography
   ============================================================ */

:root {
  --ivory:      #fbf8f3;
  --ivory-2:    #f4eee4;
  --cream:      #efe7da;
  --ink:        #2b2622;
  --ink-soft:   #5c544c;
  --gold:       #c4974f;
  --gold-deep:  #9e7840;
  --line:       #e3d8c8;
  --white:      #fffdfa;

  --serif: "Cormorant Garamond", Georgia, serif;
  --sans:  "Jost", system-ui, -apple-system, sans-serif;

  --maxw: 1240px;
  --ease: cubic-bezier(.22,.61,.36,1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--ivory);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 300;
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.08; letter-spacing: .01em; }

.eyebrow {
  font-family: var(--sans);
  font-size: .72rem;
  font-weight: 400;
  letter-spacing: .32em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin-bottom: 1.2rem;
}
.eyebrow--light { color: rgba(255,255,255,.85); }

.section { padding: clamp(4.5rem,9vw,8.5rem) clamp(1.4rem,5vw,3rem); }
section[id] { scroll-margin-top: 84px; }
.section-head { max-width: 680px; margin: 0 auto clamp(2.5rem,5vw,4rem); text-align: center; }
.section-head h2 { font-size: clamp(2.4rem,5.5vw,4rem); }
.section-desc { color: var(--ink-soft); margin-top: 1rem; font-size: 1.05rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--sans);
  font-size: .78rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  padding: 1.05em 2.4em;
  border: 1px solid currentColor;
  transition: all .45s var(--ease);
  cursor: pointer;
  background: none;
}
.btn--light { color: #fff; border-color: rgba(255,255,255,.7); }
.btn--light:hover { background: #fff; color: var(--ink); }
.btn--dark { color: var(--ivory); background: var(--ink); border-color: var(--ink); }
.btn--dark:hover { background: var(--gold-deep); border-color: var(--gold-deep); }

/* ============================================================
   Header
   ============================================================ */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.5rem clamp(1.4rem,5vw,3rem);
  transition: background .5s var(--ease), padding .5s var(--ease), box-shadow .5s var(--ease);
}
.site-header.scrolled {
  background: rgba(251,248,243,.92);
  backdrop-filter: blur(10px);
  padding-top: 1rem; padding-bottom: 1rem;
  box-shadow: 0 1px 0 var(--line);
}
.brand { display: flex; flex-direction: column; line-height: 1; color: #fff; transition: color .5s var(--ease); }
.site-header.scrolled .brand { color: var(--ink); }
.brand-name { font-family: var(--serif); font-size: 1.4rem; letter-spacing: .02em; white-space: nowrap; }
.brand-sub { font-family: var(--sans); font-size: .62rem; letter-spacing: .42em; text-transform: uppercase; margin-top: .35rem; opacity: .85; }

.nav { display: flex; align-items: center; gap: 2.2rem; }
.nav a {
  position: relative; font-size: .78rem; letter-spacing: .18em; text-transform: uppercase;
  color: #fff; transition: color .5s var(--ease), opacity .3s;
}
.site-header.scrolled .nav a { color: var(--ink); }
.nav a:not(.nav-cta)::after {
  content: ""; position: absolute; left: 0; bottom: -6px; width: 0; height: 1px;
  background: currentColor; transition: width .4s var(--ease);
}
.nav a:not(.nav-cta):hover::after { width: 100%; }
.nav-cta {
  border: 1px solid rgba(255,255,255,.6); padding: .7em 1.5em;
  transition: all .4s var(--ease);
}
.site-header.scrolled .nav-cta { border-color: var(--gold); }
.nav-cta:hover { background: var(--gold); border-color: var(--gold); color: #fff !important; }

.nav-social-icons { display: flex; align-items: center; gap: .9rem; margin-left: .4rem; padding-left: 1.2rem; border-left: 1px solid rgba(255,255,255,.25); }
.site-header.scrolled .nav-social-icons { border-left-color: var(--line); }
.nav-social-icon { display: flex; align-items: center; color: rgba(255,255,255,.75); transition: color .3s; line-height: 0; }
.nav-social-icon:hover { color: #fff; }
.nav-social-icon::after { display: none !important; }
.site-header.scrolled .nav-social-icon { color: var(--ink-soft); }
.site-header.scrolled .nav-social-icon:hover { color: var(--gold); }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 6px; }
.nav-toggle span { width: 26px; height: 1.5px; background: #fff; transition: all .4s var(--ease); }
.site-header.scrolled .nav-toggle span { background: var(--ink); }

/* ============================================================
   Hero
   ============================================================ */
.hero { position: relative; height: 100svh; min-height: 600px; display: flex; align-items: center; justify-content: center; text-align: center; overflow: hidden; }
.hero-img {
  position: absolute; inset: 0;
  background: var(--ink);
  background-size: cover; background-position: center 30%;
}
#heroImgA {
  transform: scale(1.14); animation: heroZoom 28s var(--ease) forwards;
}
#heroImgB { opacity: 0; transform: scale(1.14); }
@keyframes heroZoom { to { transform: scale(1); } }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(180deg,rgba(20,16,12,.48) 0%,rgba(20,16,12,.22) 35%,rgba(20,16,12,.55) 100%); }
.hero-content { position: relative; z-index: 2; color: #fff; padding: 0 1.4rem; max-width: 880px; }
.hero-title { font-size: clamp(2.8rem,6.8vw,5.2rem); font-weight: 500; text-shadow: 0 2px 30px rgba(0,0,0,.25); }
.hero-tag { margin: 1.6rem auto 2.4rem; max-width: 540px; font-size: 1.08rem; font-weight: 300; letter-spacing: .01em; color: rgba(255,255,255,.92); }
.hero-scroll { position: absolute; bottom: 34px; left: 50%; transform: translateX(-50%); z-index: 2; }
.hero-scroll span { display: block; width: 1px; height: 54px; background: rgba(255,255,255,.7); position: relative; overflow: hidden; }
.hero-scroll span::after { content: ""; position: absolute; top: -54px; left: 0; width: 1px; height: 54px; background: #fff; animation: scrollLine 2.2s var(--ease) infinite; }
@keyframes scrollLine { to { top: 54px; } }

.hero-content > * { opacity: 0; transform: translateY(22px); animation: fadeUp 1s var(--ease) forwards; }
.hero-content .eyebrow  { animation-delay: .3s; }
.hero-content .hero-title { animation-delay: .5s; }
.hero-content .hero-tag { animation-delay: .8s; }
.hero-content .btn { animation-delay: 1.05s; }
@keyframes fadeUp { to { opacity: 1; transform: none; } }

/* ============================================================
   Intro
   ============================================================ */
.intro { text-align: center; max-width: 920px; margin: 0 auto; }
.intro-head { font-size: clamp(1.8rem,4vw,3rem); font-weight: 500; font-style: italic; }
.intro-body { margin-top: 1.8rem; color: var(--ink-soft); font-size: 1.12rem; max-width: 680px; margin-left: auto; margin-right: auto; }

/* ============================================================
   Masonry gallery
   ============================================================ */
.masonry {
  max-width: var(--maxw); margin: 0 auto;
  column-count: 3; column-gap: 18px;
}
.masonry .ph {
  break-inside: avoid; margin-bottom: 18px; position: relative; overflow: hidden;
  background: var(--cream); cursor: pointer;
}
.js .masonry .ph { opacity: 0; transform: translateY(28px); }
.masonry .ph.in { opacity: 1; transform: none; transition: opacity .9s var(--ease), transform .9s var(--ease); }
.masonry .ph img { width: 100%; height: auto; display: block; transition: transform 1.1s var(--ease); }
.masonry .ph::after {
  content: ""; position: absolute; inset: 0;
  background: rgba(43,38,34,0); transition: background .5s var(--ease);
}
.masonry .ph:hover img { transform: scale(1.05); }
.masonry .ph:hover::after { background: rgba(43,38,34,.12); }
.masonry .ph .ph-plus {
  position: absolute; z-index: 2; right: 14px; bottom: 12px; color: #fff;
  font-family: var(--serif); font-size: 1.5rem; line-height: 1; opacity: 0;
  transform: translateY(6px); transition: all .45s var(--ease); text-shadow: 0 1px 8px rgba(0,0,0,.4);
}
.masonry .ph:hover .ph-plus { opacity: 1; transform: none; }

.gallery-empty {
  max-width: var(--maxw); margin: 0 auto;
  text-align: center; padding: 3rem 0;
  color: var(--ink-soft); font-family: var(--serif); font-style: italic; font-size: 1.15rem;
}

/* ============================================================
   Quote break
   ============================================================ */
.quote-break { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 5rem clamp(1.4rem,5vw,4rem); overflow: hidden; }
.quote-break-img { position: absolute; inset: 0; background: var(--ink); background-size: cover; background-position: center 30%; }
.quote-break-overlay { position: absolute; inset: 0; background: rgba(28,22,18,.72); }
.reviews-grid { position: relative; z-index: 2; display: grid; grid-template-columns: repeat(3,1fr); gap: clamp(1.2rem,3vw,2.4rem); max-width: 1100px; width: 100%; }
.review-card { color: #fff; text-align: left; padding: clamp(1.4rem,2.5vw,2rem); border: 1px solid rgba(255,255,255,.2); background: rgba(20,15,12,.45); }
.review-card p { font-family: var(--serif); font-style: italic; font-size: clamp(1.05rem,1.6vw,1.2rem); line-height: 1.6; text-shadow: 0 1px 3px rgba(0,0,0,.4); }
.review-card cite { display: block; margin-top: 1.2rem; font-family: var(--sans); font-style: normal; font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; opacity: .8; }
.review-stars { color: var(--gold); letter-spacing: .05em; font-size: .85rem; }
.review-yelp-link { position: relative; z-index: 2; margin-top: 2.2rem; font-family: var(--sans); font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; color: rgba(255,255,255,.6); text-decoration: none; border-bottom: 1px solid rgba(255,255,255,.25); padding-bottom: 2px; transition: color .2s, border-color .2s; }
.review-yelp-link:hover { color: #fff; border-color: rgba(255,255,255,.6); }
@media (max-width: 860px) {
  .reviews-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .reviews-grid { grid-template-columns: 1fr; max-width: 460px; }
  .review-card { text-align: center; }
}

/* ============================================================
   About
   ============================================================ */
.about { background: var(--ivory-2); }
.about-grid { max-width: var(--maxw); margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem,5vw,5rem); align-items: center; }
.about-photo { background: var(--cream); min-height: 300px; }
.about-photo img { width: 100%; aspect-ratio: 4/5; object-fit: cover; }
.about-text h2 { font-size: clamp(2rem,4vw,3rem); margin-bottom: 1.4rem; }
.about-text p { color: var(--ink-soft); margin-bottom: 1.1rem; }
.about-sign { font-family: var(--serif); font-style: italic; font-size: 1.4rem; color: var(--ink) !important; margin-top: 1.6rem; }

/* ============================================================
   Offerings cards
   ============================================================ */
.cards { max-width: var(--maxw); margin: 0 auto; display: grid; grid-template-columns: repeat(3,1fr); gap: clamp(1.2rem,3vw,2.4rem); }
.card { background: var(--white); border: 1px solid var(--line); padding: clamp(2rem,3.5vw,3rem) clamp(1.6rem,3vw,2.4rem); transition: transform .5s var(--ease), box-shadow .5s var(--ease); }
.card:hover { transform: translateY(-6px); box-shadow: 0 24px 50px -28px rgba(80,58,40,.35); }
.card-num { font-family: var(--serif); font-size: 1.1rem; color: var(--gold); letter-spacing: .1em; }
.card h3 { font-size: 1.7rem; margin: 1rem 0 .9rem; }
.card p { color: var(--ink-soft); font-size: .98rem; }
.card-meta { margin-top: 1.4rem; padding-top: 1.2rem; border-top: 1px solid var(--line); font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; color: var(--gold-deep) !important; }
.offerings-note { text-align: center; margin-top: clamp(2.5rem,5vw,3.5rem); color: var(--ink-soft); font-style: italic; font-family: var(--serif); font-size: 1.3rem; }
.offerings-note a { color: var(--gold-deep); border-bottom: 1px solid var(--gold); }

/* ============================================================
   Order / Contact
   ============================================================ */
.contact { background: var(--ink); color: var(--ivory); text-align: center; }
.contact-inner { max-width: 680px; margin: 0 auto; }
.contact .eyebrow { color: var(--gold); }
.contact h2 { font-size: clamp(2.4rem,5.5vw,4rem); color: var(--white); }
.contact-lede { color: rgba(251,248,243,.72); margin: 1.4rem auto 2.8rem; max-width: 520px; }

.contact-form { display: grid; grid-template-columns: 1fr 1fr; gap: 1.3rem 1.4rem; text-align: left; }
.field { display: flex; flex-direction: column; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: .7rem; letter-spacing: .2em; text-transform: uppercase; color: rgba(251,248,243,.6); margin-bottom: .6rem; }
.field input, .field select, .field textarea {
  background: transparent; border: 0; border-bottom: 1px solid rgba(251,248,243,.28);
  color: var(--ivory); font-family: var(--sans); font-size: 1rem; font-weight: 300;
  padding: .7em 0; transition: border-color .4s var(--ease);
}
.field textarea { resize: vertical; }
.field select { color: var(--ivory); }
.field select option { background: var(--ink); color: var(--ivory); }
.field input::placeholder, .field textarea::placeholder { color: rgba(251,248,243,.32); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--gold); }
.contact-form .btn { grid-column: 1 / -1; justify-self: start; margin-top: .6rem; }
.form-note { grid-column: 1/-1; font-size: .85rem; color: var(--gold); min-height: 1.2em; }

.contact-alt { margin-top: 3rem; padding-top: 2.2rem; border-top: 1px solid rgba(251,248,243,.16); color: rgba(251,248,243,.7); font-size: .95rem; }
.contact-alt a { color: var(--ivory); border-bottom: 1px solid rgba(251,248,243,.35); }
.contact-socials { margin-top: .9rem; letter-spacing: .04em; }

/* ============================================================
   Footer
   ============================================================ */
.site-footer { background: var(--ink); color: rgba(251,248,243,.7); padding: 2.5rem clamp(1.4rem,5vw,3rem) 3rem; border-top: 1px solid rgba(251,248,243,.12); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.4rem; }
.footer-brand { display: flex; flex-direction: column; color: var(--ivory); }
.footer-brand .brand-name { font-size: 1.25rem; }
.footer-nav { display: flex; gap: 1.8rem; }
.footer-nav a { font-size: .76rem; letter-spacing: .16em; text-transform: uppercase; transition: color .3s; }
.footer-nav a:hover { color: var(--gold); }
.footer-social { display: flex; gap: 1.4rem; }
.footer-social a { display: flex; align-items: center; gap: .45rem; font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: rgba(251,248,243,.6); text-decoration: none; transition: color .25s; }
.footer-social a:hover { color: var(--gold); }
.footer-admin { font-size: .7rem; opacity: .4; margin-top: .5rem; display: inline-block; transition: opacity .3s; }
.footer-admin:hover { opacity: 1; }
.footer-fine { width: 100%; font-size: .74rem; letter-spacing: .06em; color: rgba(251,248,243,.4); text-align: center; padding-top: 1.2rem; border-top: 1px solid rgba(251,248,243,.08); }

/* ============================================================
   Lightbox
   ============================================================ */
.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(24,20,16,.94); display: flex; align-items: center; justify-content: center; opacity: 0; pointer-events: none; transition: opacity .4s var(--ease); }
.lightbox.open { opacity: 1; pointer-events: auto; }
.lb-figure { max-width: 92vw; max-height: 86vh; }
.lb-figure img { max-width: 92vw; max-height: 86vh; object-fit: contain; box-shadow: 0 30px 80px -30px rgba(0,0,0,.7); opacity: 0; transform: scale(.98); transition: opacity .45s var(--ease), transform .45s var(--ease); }
.lightbox.open .lb-figure img { opacity: 1; transform: none; }
.lb-close, .lb-nav { position: absolute; background: none; border: 0; color: rgba(255,255,255,.8); cursor: pointer; transition: color .3s, transform .3s; }
.lb-close { top: 24px; right: 30px; font-size: 2.4rem; line-height: 1; }
.lb-nav { top: 50%; transform: translateY(-50%); font-size: 3.2rem; padding: .4em; }
.lb-prev { left: 2vw; } .lb-next { right: 2vw; }
.lb-nav:hover, .lb-close:hover { color: #fff; }
.lb-prev:hover { transform: translateY(-50%) translateX(-4px); }
.lb-next:hover { transform: translateY(-50%) translateX(4px); }
.lb-counter { position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%); color: rgba(255,255,255,.65); font-size: .78rem; letter-spacing: .22em; }

/* ============================================================
   Reveal on scroll
   ============================================================ */
.reveal { transition: opacity 1s var(--ease), transform 1s var(--ease); }
.js .reveal { opacity: 0; transform: translateY(30px); }
.reveal.in { opacity: 1; transform: none; }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 900px) {
  .masonry { column-count: 2; }
  .about-grid { grid-template-columns: 1fr; }
  .about-photo { max-width: 440px; margin: 0 auto; }
  .cards { grid-template-columns: 1fr; max-width: 460px; }
}

@media (max-width: 860px) {
  .nav {
    position: fixed; inset: 0 0 0 auto; width: 78%; max-width: 320px; flex-direction: column;
    align-items: flex-start; justify-content: center; gap: 1.8rem; padding: 3rem 2.4rem;
    background: var(--ivory); box-shadow: -20px 0 60px -30px rgba(0,0,0,.4);
    transform: translateX(100%); transition: transform .5s var(--ease);
  }
  .nav.open { transform: none; }
  .nav a { color: var(--ink) !important; font-size: .95rem; }
  .nav a:not(.nav-cta)::after { display: none; }
  .nav-cta { border-color: var(--gold); }
  .nav-toggle { display: flex; z-index: 60; }
  .nav-social-icons { border-left: none; padding-left: 0; margin-left: 0; margin-top: .4rem; gap: 1.2rem; }
  .nav-social-icon { color: var(--ink-soft) !important; }
  .nav-social-icon:hover { color: var(--gold) !important; }
  .nav-social-icon svg { width: 20px; height: 20px; }
  .nav-toggle.open span { background: var(--ink) !important; }
  .nav-toggle.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
  .nav-toggle.open span:nth-child(2) { opacity: 0; }
  .nav-toggle.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }
}

@media (max-width: 680px) {
  body { font-size: 16px; }
  .contact-form { grid-template-columns: 1fr; }
  .masonry { column-count: 2; column-gap: 12px; }
  .masonry .ph { margin-bottom: 12px; }
  .lb-nav { font-size: 2.4rem; }
  .lb-prev { left: 0; } .lb-next { right: 0; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .001ms !important; transition-duration: .001ms !important; }
  .hero-img { transform: none; }
}

/* ============================================================
   Menu + Estimator (combined)
   ============================================================ */
.me-section { background: var(--ivory-2); }

.me-grid {
  max-width: var(--maxw); margin: 0 auto;
  display: grid; grid-template-columns: 1.15fr 1fr;
  gap: clamp(1.8rem,4vw,3.5rem); align-items: start;
}

/* Left column — menu content: Flavors | Fillings | Frosting Styles */
.me-menu { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.2rem,2.5vw,2rem); align-items: start; }

.menu-col h3 {
  font-family: var(--serif); font-size: 1.5rem; font-weight: 500;
  margin-bottom: 1.2rem; padding-bottom: .7rem; border-bottom: 1px solid var(--line);
}
.menu-category { margin-bottom: 1.2rem; }
.menu-category:last-child { margin-bottom: 0; }
.menu-category h4 {
  font-family: var(--sans); font-size: .68rem; font-weight: 400;
  letter-spacing: .22em; text-transform: uppercase; color: var(--gold-deep); margin-bottom: .5rem;
}
.menu-list, .menu-category ul { list-style: none; }
.menu-list li, .menu-category ul li {
  padding: .28rem 0; border-bottom: 1px solid rgba(227,216,200,.5);
  color: var(--ink-soft); font-size: .93rem; line-height: 1.45;
}
.menu-list li span { font-size: .82rem; opacity: .72; }

/* Right column — estimator */
.me-est { position: sticky; top: 100px; }
.me-est-label {
  font-size: .7rem; letter-spacing: .22em; text-transform: uppercase;
  color: var(--gold-deep); margin-bottom: 1rem;
}
.me-section .section-head h2 { white-space: nowrap; font-size: clamp(1.5rem,4.4vw,3.6rem); }

.me-est .estimator { max-width: none; }
.est-sliders.est-sliders--col { grid-template-columns: 1fr; gap: 1.6rem; }

@media (max-width: 900px) {
  .me-grid { grid-template-columns: minmax(0, 1fr); }
  .me-est { position: static; }
  .me-menu { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) { .me-menu { grid-template-columns: minmax(0, 1fr); } }

/* ============================================================
   Order Wizard
   ============================================================ */
.wizard {
  position: fixed; inset: 0; z-index: 200;
  background: var(--ivory); overflow-y: auto;
  opacity: 0; pointer-events: none;
  transform: translateY(16px);
  transition: opacity .4s var(--ease), transform .4s var(--ease);
}
.wizard.open { opacity: 1; pointer-events: auto; transform: none; }

.wizard-header {
  position: sticky; top: 0; z-index: 10;
  background: rgba(251,248,243,.95); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  padding: 1rem clamp(1.4rem,5vw,3rem);
  display: flex; align-items: center; gap: 1.4rem;
}
.wizard-brand {
  font-family: var(--serif); font-size: 1.05rem;
  color: var(--ink); opacity: .65; white-space: nowrap; flex-shrink: 0;
}
.wizard-progress-wrap { flex: 1; min-width: 0; }
.wizard-progress-track {
  height: 2px; background: var(--line); border-radius: 1px; overflow: hidden; margin-bottom: .4rem;
}
.wizard-progress-bar {
  height: 100%; background: var(--gold); border-radius: 1px;
  width: 0; transition: width .5s var(--ease);
}
.wizard-step-label {
  font-family: var(--sans); font-size: .65rem; letter-spacing: .26em;
  text-transform: uppercase; color: var(--gold-deep); text-align: center;
}
.wizard-close {
  background: none; border: none; font-size: 2rem; color: var(--ink-soft);
  cursor: pointer; line-height: 1; padding: .1em .3em;
  transition: color .3s; flex-shrink: 0;
}
.wizard-close:hover { color: var(--ink); }

.wizard-body {
  max-width: 780px; margin: 0 auto;
  padding: 3rem clamp(1.4rem,5vw,3rem) 2rem;
}
.wizard-step-title {
  font-family: var(--serif); font-size: clamp(1.9rem,4vw,2.8rem);
  font-weight: 500; margin-bottom: .5rem;
}
.wizard-step-sub { font-size: 1rem; color: var(--ink-soft); margin-bottom: 2.2rem; }

/* Option cards */
.wiz-options {
  display: grid; grid-template-columns: repeat(auto-fill,minmax(210px,1fr)); gap: 1rem; margin-bottom: 1.5rem;
}
.wiz-option {
  padding: 1.3rem 1.5rem; background: var(--white);
  border: 1.5px solid var(--line); cursor: pointer; text-align: left;
  transition: border-color .3s var(--ease), background .3s var(--ease);
  font-family: var(--sans);
}
.wiz-option:hover { border-color: var(--gold); }
.wiz-option.selected { border-color: var(--gold); background: var(--ivory-2); }
.wiz-option-title {
  font-family: var(--serif); font-size: 1.2rem; color: var(--ink); margin-bottom: .25rem;
}
.wiz-option.selected .wiz-option-title { color: var(--gold-deep); }
.wiz-option-desc { font-size: .86rem; color: var(--ink-soft); line-height: 1.45; }

/* Chips */
.wiz-chips { display: flex; flex-wrap: wrap; gap: .55rem; margin-bottom: 1.2rem; }
.wiz-chip {
  padding: .5em 1.15em; border: 1px solid var(--line); background: transparent;
  color: var(--ink-soft); font-family: var(--sans); font-size: .88rem;
  cursor: pointer; border-radius: 30px; transition: all .3s var(--ease);
}
.wiz-chip:hover { border-color: var(--gold); color: var(--ink); }
.wiz-chip.selected { border-color: var(--gold); background: var(--gold); color: #fff; }

/* Fields */
.wiz-field { margin-bottom: 1.8rem; }
.wiz-field label {
  display: block; font-size: .7rem; letter-spacing: .2em;
  text-transform: uppercase; color: var(--ink-soft); margin-bottom: .6rem;
}
.wiz-field input, .wiz-field select, .wiz-field textarea {
  width: 100%; background: transparent; border: 0;
  border-bottom: 1px solid var(--line); color: var(--ink);
  font-family: var(--sans); font-size: 1rem; font-weight: 300;
  padding: .7em 0; transition: border-color .4s var(--ease);
}
.wiz-field input:focus, .wiz-field select:focus, .wiz-field textarea:focus {
  outline: none; border-color: var(--gold);
}
.wiz-field textarea { resize: vertical; min-height: 80px; }
.wiz-fields-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 2.4rem; }

/* Sub-heading within steps */
.wiz-section-head {
  font-family: var(--serif); font-size: 1.15rem; font-weight: 500;
  color: var(--ink); margin: 2rem 0 .8rem; padding-bottom: .5rem;
  border-bottom: 1px solid var(--line);
}
.wiz-sub-head {
  font-family: var(--sans); font-size: .7rem; letter-spacing: .28em;
  text-transform: uppercase; color: var(--gold-deep); margin: 1.4rem 0 .7rem;
}

/* Wizard utility */
.wiz-note {
  font-size: .82rem; color: var(--ink-soft); font-style: italic;
  margin: .5rem 0 1rem; line-height: 1.5;
}

/* Per-product customization cards */
.wiz-product-card {
  border: 1px solid var(--line); background: var(--white);
  padding: 1.4rem 1.6rem 1.8rem; margin-bottom: 1.4rem;
}
.wiz-product-card .wiz-sub-head:first-of-type { margin-top: .4rem; }
.wiz-product-title {
  font-family: var(--serif); font-size: 1.35rem; font-weight: 500;
  color: var(--ink); margin: 0 0 .4rem; padding-bottom: .7rem;
  border-bottom: 1px solid var(--gold);
}

/* Delivery checkbox */
.wiz-delivery-check { margin: 1.4rem 0 0; }
.wiz-checkbox-label {
  display: flex; align-items: center; gap: .6rem; cursor: pointer;
  font-family: var(--sans); font-size: .9rem; color: var(--ink);
}
.wiz-checkbox { width: 1.1rem; height: 1.1rem; accent-color: var(--gold); cursor: pointer; }

/* File upload */
.wiz-file-input { display: none; }
.wiz-file-label {
  display: inline-block; margin-top: .6rem; cursor: pointer;
  font-size: .8rem; letter-spacing: .12em; text-transform: uppercase;
  padding: .55rem 1.2rem; border: 1px solid var(--gold);
  color: var(--gold); background: transparent; font-family: var(--sans);
  transition: background .2s, color .2s;
}
.wiz-file-label:hover { background: var(--gold); color: #fff; }

/* Review summary */
.wiz-review { background: var(--white); border: 1px solid var(--line); }
.wiz-review-section { padding: .5rem 0; border-bottom: 1px solid var(--line); }
.wiz-review-row {
  display: flex; justify-content: space-between; align-items: baseline;
  padding: .75rem 1.4rem; font-size: .95rem;
}
.wiz-review-label { color: var(--ink-soft); flex-shrink: 0; margin-right: 1rem; }
.wiz-review-val { color: var(--ink); text-align: right; }

/* Confirmation */
.wiz-confirm { text-align: center; padding: 3rem 0; }
.wiz-confirm-check {
  width: 72px; height: 72px; border: 1.5px solid var(--gold); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 2rem; font-size: 1.8rem; color: var(--gold);
  font-family: var(--serif);
}
.wiz-confirm h2 { font-family: var(--serif); font-size: 2.4rem; margin-bottom: 1rem; }
.wiz-confirm p { color: var(--ink-soft); max-width: 460px; margin: 0 auto .8rem; line-height: 1.7; }

/* Sticky bottom nav */
.wizard-nav {
  position: sticky; bottom: 0; z-index: 10;
  background: rgba(251,248,243,.95); backdrop-filter: blur(10px);
  border-top: 1px solid var(--line);
  padding: 1.1rem clamp(1.4rem,5vw,3rem);
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.wizard-nav .btn { min-width: 110px; font-size: .74rem; }
.wizard-nav .btn:disabled { opacity: .38; cursor: not-allowed; pointer-events: none; }

@media (max-width: 600px) {
  .wiz-options { grid-template-columns: 1fr; }
  .wiz-fields-2 { grid-template-columns: 1fr; }
  .wizard-brand { display: none; }
}

/* ============================================================
   Pricing Estimator
   ============================================================ */

.gold-rule {
  width: 56px; height: 1px;
  background: var(--gold);
  margin: 0 auto;
  opacity: .7;
}

.estimator {
  max-width: 800px; margin: 0 auto;
  background: var(--white); border: 1px solid var(--line);
  padding: clamp(1.4rem,3vw,2.4rem);
}

.est-sliders {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: clamp(1.4rem,3vw,2.8rem); margin-bottom: 1.8rem;
}

.est-label-row {
  display: flex; justify-content: space-between; align-items: baseline;
  margin-bottom: .6rem;
}
.est-label {
  font-size: .7rem; letter-spacing: .22em; text-transform: uppercase; color: var(--ink-soft);
}
.est-val {
  font-family: var(--serif); font-size: 1.25rem; color: var(--gold-deep);
}

.est-range {
  -webkit-appearance: none; appearance: none;
  width: 100%; height: 2px;
  background: linear-gradient(to right, var(--gold) var(--pct, 22%), var(--line) var(--pct, 22%));
  border-radius: 1px; outline: none; cursor: pointer;
}
.est-range::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--gold); cursor: pointer;
  border: 2.5px solid var(--white);
  box-shadow: 0 1px 8px rgba(0,0,0,.2);
  transition: transform .2s var(--ease);
}
.est-range::-webkit-slider-thumb:hover { transform: scale(1.18); }
.est-range::-moz-range-thumb {
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--gold); cursor: pointer;
  border: 2.5px solid var(--white);
  box-shadow: 0 1px 8px rgba(0,0,0,.2);
}

.est-ticks {
  display: flex; justify-content: space-between;
  margin-top: .55rem;
}
.est-ticks span { font-size: .67rem; color: var(--ink-soft); opacity: .7; }
.est-ticks--5 { display: grid; grid-template-columns: repeat(5, minmax(0,1fr)); gap: 0; }
.est-ticks--5 span { text-align: center; white-space: nowrap; }
.est-ticks--3 { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 0; }
.est-ticks--3 span { text-align: center; white-space: nowrap; }

/* Product type tabs */
.est-type-tabs {
  display: flex; flex-wrap: wrap; gap: 0 .2rem; margin-bottom: 1.6rem;
  border-bottom: 1px solid var(--line);
}
.est-type-tab {
  background: none; border: none; cursor: pointer;
  font-family: var(--sans); font-size: .72rem; font-weight: 400;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--ink-soft); padding: .6rem .85rem .7rem;
  position: relative; transition: color .2s;
}
.est-type-tab::after {
  content: ""; position: absolute; bottom: -1px; left: 0; right: 0; height: 2px;
  background: var(--gold); transform: scaleX(0); transition: transform .25s var(--ease);
}
.est-type-tab.active { color: var(--ink); }
.est-type-tab.active::after { transform: scaleX(1); }
.est-type-tab:hover:not(.active) { color: var(--ink); }

.est-sliders-hidden { display: none; }

/* Result — estimated range */
.est-result {
  border-top: 1px solid var(--line); padding-top: 1.4rem; margin-bottom: 1.8rem;
  display: flex; flex-direction: column; align-items: center; text-align: center;
}
.est-result-inner {
  display: flex; flex-direction: row; align-items: baseline;
  justify-content: center; flex-wrap: wrap; gap: .2rem .8rem;
}
.est-result-label {
  font-size: .7rem; letter-spacing: .22em; text-transform: uppercase; color: var(--ink-soft);
}
.est-price {
  font-family: var(--serif); font-size: clamp(2rem,4vw,2.8rem);
  color: var(--ink); letter-spacing: .01em;
  transition: opacity .2s;
}
.est-disclaimer {
  font-size: .88rem; color: var(--ink-soft); max-width: 500px; margin: 0 auto;
  text-align: center; line-height: 1.7; font-style: italic;
}
.est-disclaimer a { color: var(--gold-deep); border-bottom: 1px solid var(--gold); font-style: normal; }

@media (max-width: 640px) {
  .est-sliders { grid-template-columns: 1fr; }
  .est-ticks--5 span { font-size: .6rem; }
  .est-type-tabs { justify-content: center; gap: 0 .1rem; }
  .est-type-tab { padding: .55rem .55rem .6rem; font-size: .64rem; letter-spacing: .1em; }
  .footer-nav { flex-wrap: wrap; gap: .6rem 1.4rem; }
}
