/* ==========================================================================
   Variant D: Cinematic. Dark wine, gold glints, glass panels, 3D arch coverflow.
   Loads after styles.css + pricing.css; overrides colours explicitly (the base --ivory token is also
   used as a *text* colour, so tokens are not remapped).
   ========================================================================== */

:root {
  --d-bg: #1d0a0e;
  --d-bg2: #2a0f15;
  --d-text: #f6ede4;
  --d-soft: rgba(246, 237, 228, .7);
  --d-gold: #e6cf9f;
  --d-line: rgba(230, 207, 159, .2);
}
body { background: var(--d-bg); color: var(--d-text); }
body::after { /* film grain */
  content: ''; position: fixed; inset: 0; z-index: 55; pointer-events: none; opacity: .07; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}
h2, h3 { color: #fbf3ea; }
.script { color: var(--d-gold); }
.eyebrow, .eyebrow--dark { color: var(--d-gold); }
.lead, .lead--dark { color: var(--d-soft); }
.btn--solid { background: var(--d-gold); color: #2a0e12; box-shadow: 0 14px 34px -16px rgba(230, 207, 159, .55); }
.btn--solid:hover { background: #f3e1b8; }
.card__link { color: var(--d-gold); }
.stars { color: var(--d-gold); }
.pricing__note { color: var(--d-soft); }

/* ---- header ---- */
.d-header .btn--solid { background: transparent; color: var(--d-gold); border-color: rgba(230, 207, 159, .6); box-shadow: none; }
.d-header .btn--solid:hover { background: var(--d-gold); color: #2a0e12; }
.d-header.is-scrolled { color: var(--d-text); background: rgba(29, 10, 14, .82); box-shadow: 0 1px 0 var(--d-line); }
.d-header.is-scrolled .brand__logo--light { opacity: 1; }
.d-header.is-scrolled .brand__logo--dark { opacity: 0; }
.d-header.is-scrolled .btn--solid { background: transparent; color: var(--d-gold); }
.d-header.is-scrolled .btn--solid:hover { background: var(--d-gold); color: #2a0e12; }

/* ---- section dots ---- */
.d-dots { position: fixed; right: 22px; top: 50%; z-index: 80; display: grid; gap: 14px; translate: 0 -50%; }
.d-dots a { position: relative; width: 9px; height: 9px; border-radius: 50%; border: 1px solid rgba(230, 207, 159, .6); transition: background .3s, transform .3s var(--ease); }
.d-dots a:hover, .d-dots a.is-on { background: var(--d-gold); transform: scale(1.35); }
.d-dots a span { position: absolute; right: 22px; top: 50%; translate: 0 -50%; white-space: nowrap; font-size: .62rem; letter-spacing: .2em; text-transform: uppercase; color: var(--d-gold); opacity: 0; pointer-events: none; transition: opacity .3s; }
.d-dots a:hover span { opacity: 1; }

/* ---- hero ---- */
.d-hero { position: relative; overflow: hidden; padding: calc(var(--header-h) + clamp(16px, 4vh, 48px)) 0 clamp(24px, 4vh, 44px); text-align: center;
  background: radial-gradient(70% 55% at 50% 105%, rgba(176, 90, 98, .5), transparent 70%), radial-gradient(45% 45% at 12% 18%, rgba(123, 50, 57, .6), transparent 70%), var(--d-bg); }
.d-hero__glow i { position: absolute; border-radius: 50%; filter: blur(80px); opacity: .5; animation: d-drift 14s ease-in-out infinite alternate; }
.d-hero__glow i:nth-child(1) { width: 420px; height: 420px; left: -6%; top: 10%; background: #7b3239; }
.d-hero__glow i:nth-child(2) { width: 360px; height: 360px; right: -4%; top: 30%; background: #a8566a; animation-delay: -6s; }
@keyframes d-drift { to { transform: translate(60px, -40px) scale(1.15); } }
.d-hero__text { position: relative; z-index: 2; }
.d-hero__title { font-size: clamp(2.8rem, 5.6vw, 5rem); line-height: 1.02; color: #fbf3ea; margin-bottom: 1.2rem; }
.d-hero__title .script { color: var(--d-gold); }
.d-hero__lead { margin: 0 auto; max-width: 38em; font-size: 1rem; }
.d-hero .hero__cta { justify-content: center; margin-top: 1.8rem; }

.d-stage { position: relative; z-index: 1; height: clamp(300px, 46vh, 430px); margin-top: clamp(20px, 3vh, 36px); perspective: 1500px; cursor: grab; touch-action: pan-y; user-select: none; }
.d-stage:active { cursor: grabbing; }
.d-card { position: absolute; left: 50%; top: 8px; width: clamp(160px, 20vw, 260px); aspect-ratio: 3 / 4.2; margin: 0; overflow: hidden; border-radius: 999px 999px 14px 14px; transform-origin: 50% 100%; transition: transform .9s var(--ease), opacity .9s, filter .9s; box-shadow: 0 40px 70px -30px rgba(0, 0, 0, .85); will-change: transform; }
.d-card img { width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.d-card.is-active { outline: 1px solid var(--d-gold); outline-offset: 9px; }
.d-stage__ctl { position: relative; z-index: 2; display: flex; align-items: center; justify-content: center; gap: 22px; margin-top: 20px; }
.d-stage__ctl p { font-size: .64rem; letter-spacing: .26em; text-transform: uppercase; color: var(--d-soft); }
.d-stage__ctl button { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--d-line); background: transparent; color: var(--d-gold); font-size: 1rem; transition: background .3s, color .3s; }
.d-stage__ctl button:hover { background: var(--d-gold); color: #2a0e12; }

.d-ticker { background: var(--d-bg2); color: var(--d-gold); border-block: 1px solid var(--d-line); }
.d-ticker .marquee__track i { color: rgba(230, 207, 159, .55); }

/* ---- sections ---- */
.d-sec { position: relative; padding: clamp(72px, 10vw, 140px) 0; }
.d-sec--lift { background: linear-gradient(180deg, var(--d-bg2), var(--d-bg)); }
.d-sec--flush { padding-bottom: clamp(40px, 6vw, 72px); }
.d-head { max-width: 760px; margin: 0 auto clamp(40px, 6vw, 72px); text-align: center; }
.d-head .lead { margin: 1.3rem auto 0; }
.d-glass { background: rgba(255, 255, 255, .045); border: 1px solid var(--d-line); border-radius: 24px; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }

/* ---- spotlight cards ---- */
.d-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(14px, 1.8vw, 22px); }
.d-svc { position: relative; isolation: isolate; overflow: hidden; display: flex; flex-direction: column; min-height: 380px; padding: 30px 28px 26px; border: 1px solid var(--d-line); border-radius: 24px; background: var(--d-bg2); }
.d-svc__bg { position: absolute; inset: 0; z-index: -2; background-size: cover; background-position: center; opacity: .5; transform: scale(1.06); transition: opacity .7s, transform 1.4s var(--ease); }
.d-svc::after { content: ''; position: absolute; inset: 0; z-index: -1; background: radial-gradient(380px circle at var(--mx, 50%) var(--my, 0%), rgba(230, 207, 159, .24), transparent 62%), linear-gradient(180deg, rgba(29, 10, 14, .1), rgba(29, 10, 14, .94) 76%); }
.d-svc:hover .d-svc__bg { opacity: .75; transform: scale(1.14); }
.d-svc:hover { border-color: rgba(230, 207, 159, .45); }
.d-num { font-family: var(--font-display); font-style: italic; font-size: 1.1rem; color: var(--d-gold); }
.d-svc h3 { margin-top: auto; font-size: clamp(1.7rem, 2.4vw, 2.1rem); }
.d-svc p { margin-top: .5rem; font-size: .92rem; font-weight: 300; color: var(--d-soft); }
.d-svc__foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 1.2rem; padding-top: 1rem; border-top: 1px solid var(--d-line); }
.d-svc__price { font-size: .64rem; letter-spacing: .18em; text-transform: uppercase; color: var(--d-soft); }
.d-svc__price strong { margin-left: .4em; font-family: var(--font-display); font-weight: 500; font-size: 1.4rem; letter-spacing: 0; color: var(--d-gold); }

/* ---- looping gallery ---- */
.d-marq { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.d-row { padding: 8px 0; }
.d-track { display: flex; width: max-content; animation: d-scroll 70s linear infinite; }
.d-row--rev .d-track { animation-direction: reverse; animation-duration: 85s; }
.d-row:hover .d-track { animation-play-state: paused; }
.d-group { display: flex; gap: 16px; padding-right: 16px; }
@keyframes d-scroll { to { transform: translateX(-50%); } }
.d-shot { flex: none; margin: 0; height: clamp(230px, 34vh, 330px); border-radius: 999px 999px 12px 12px; overflow: hidden; }
.d-shot button { height: 100%; width: auto; }
.d-shot img { height: 100%; width: auto; max-width: none; }
.d-shot button::after { background: rgba(29, 10, 14, .4); color: var(--d-gold); }
.d-follow { margin-top: 28px; text-align: center; font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; color: var(--d-soft); }
.d-follow a:hover b { color: #fff; }
.d-follow b { margin-left: .6em; font-weight: 500; color: var(--d-gold); transition: color .3s; }

/* ---- estimator ---- */
.d-est { display: grid; grid-template-columns: 1.35fr 1fr; gap: clamp(16px, 2.4vw, 28px); align-items: start; max-width: 1080px; margin-inline: auto; }
.d-est__controls { display: grid; gap: 26px; padding: clamp(22px, 3vw, 38px); }
.d-step { border: 0; padding: 0; margin: 0; min-width: 0; }
.d-step legend { padding: 0; margin-bottom: 12px; font-size: .66rem; font-weight: 500; letter-spacing: .24em; text-transform: uppercase; color: var(--d-gold); }
.d-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.d-pill { padding: .6rem 1.05rem; border-radius: 999px; border: 1px solid rgba(230, 207, 159, .3); background: transparent; color: var(--d-text); font-size: .82rem; transition: background .25s, color .25s, border-color .25s, transform .25s var(--ease); }
.d-pill b { margin-left: .35em; font-family: var(--font-display); font-weight: 600; font-size: 1rem; color: var(--d-gold); transition: color .25s; }
.d-pill:hover { border-color: var(--d-gold); transform: translateY(-1px); }
.d-pill.is-on { background: var(--d-gold); border-color: var(--d-gold); color: #2a0e12; }
.d-pill.is-on b { color: #2a0e12; }
.d-incl { margin: 16px 0 0; gap: .5rem; font-size: .88rem; color: var(--d-soft); }
.d-incl[hidden] { display: none; }
.d-est__result { position: sticky; top: 92px; padding: clamp(24px, 3vw, 36px); border-radius: 24px; border: 1px solid rgba(230, 207, 159, .4); background: radial-gradient(90% 70% at 100% 0%, rgba(176, 90, 98, .55), transparent 70%), linear-gradient(160deg, #5a2128, #3a1419); box-shadow: 0 30px 70px -30px rgba(0, 0, 0, .8); }
.d-est__label { font-size: .66rem; letter-spacing: .26em; text-transform: uppercase; color: var(--d-gold); }
.d-est__range { display: flex; flex-wrap: wrap; align-items: baseline; gap: .15em .3em; margin: .6rem 0 1.2rem; font-family: var(--font-display); font-weight: 500; font-size: clamp(2.2rem, 3.6vw, 3.1rem); line-height: 1.05; color: #fff; font-variant-numeric: lining-nums tabular-nums; }
.d-est__range i { font-style: normal; color: var(--d-gold); }
.d-est__lines { display: grid; gap: .45rem; margin-bottom: 1.5rem; padding-top: 1.1rem; border-top: 1px solid var(--d-line); font-size: .86rem; color: var(--d-soft); }
.d-est__lines li { display: flex; justify-content: space-between; gap: 12px; }
.d-est__lines b { font-weight: 500; color: var(--d-gold); white-space: nowrap; }
.d-est__note { margin-top: 1rem; font-size: .76rem; color: var(--d-soft); }

/* ---- timeline ---- */
.d-time { position: relative; max-width: 920px; margin-inline: auto; display: grid; gap: clamp(22px, 3vw, 36px); --p: 0; }
.d-time::before, .d-time::after { content: ''; position: absolute; left: 50%; top: 10px; bottom: 10px; width: 2px; translate: -50% 0; background: rgba(230, 207, 159, .16); }
.d-time::after { background: linear-gradient(var(--d-gold), #b8935a); transform-origin: top; transform: scaleY(var(--p)); box-shadow: 0 0 14px rgba(230, 207, 159, .6); }
.d-time__item { position: relative; display: grid; grid-template-columns: 1fr 1fr; }
.d-time__item .d-glass { grid-column: 1; margin-right: clamp(36px, 6vw, 64px); padding: 26px 28px; text-align: right; }
.d-time__item:nth-child(even) .d-glass { grid-column: 2; margin-right: 0; margin-left: clamp(36px, 6vw, 64px); text-align: left; }
.d-time__item .d-glass img { margin-bottom: 10px; }
.d-time__item:nth-child(odd) .d-glass img { margin-left: auto; }
.d-time__item h3 { font-size: 1.6rem; }
.d-time__item p { margin-top: .4rem; font-size: .92rem; color: var(--d-soft); }
.d-time__dot { position: absolute; left: 50%; top: 28px; translate: -50% 0; z-index: 2; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--d-bg); border: 1px solid var(--d-gold); font-family: var(--font-display); font-style: italic; color: var(--d-gold); }

/* ---- why ---- */
.d-why { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(14px, 1.8vw, 22px); }
.d-why li { padding: 30px 26px; transition: transform .5s var(--ease), border-color .4s; }
.d-why li:hover { transform: translateY(-6px); border-color: rgba(230, 207, 159, .5); }
.d-why img { margin-bottom: 18px; }
.d-why h3 { font-size: 1.5rem; }
.d-why p { margin-top: .5rem; font-size: .9rem; font-weight: 300; color: var(--d-soft); }

/* ---- reviews ---- */
.d-quote { max-width: 56rem; margin-inline: auto; text-align: center; }
.d-quote blockquote { font-family: var(--font-display); font-style: italic; font-weight: 400; font-size: clamp(1.7rem, 3.6vw, 2.9rem); line-height: 1.28; color: #fbf3ea; }
.d-quote blockquote::before { content: '✦'; display: block; margin-bottom: 1.2rem; font-style: normal; font-size: 1.2rem; color: var(--d-gold); }
.d-quote figcaption { margin-top: 1.8rem; font-size: .74rem; letter-spacing: .22em; text-transform: uppercase; color: var(--d-soft); }

/* ---- enquiry (dark form) ---- */
.d-enquire { display: grid; grid-template-columns: .95fr 1.05fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.contact a { border-color: var(--d-line); }
.contact a:hover { color: var(--d-gold); }
.contact__k { color: var(--d-soft); }
.contact__v { color: #fbf3ea; }
.form { background: rgba(255, 255, 255, .045); border: 1px solid var(--d-line); box-shadow: none; backdrop-filter: blur(10px); }
.field label, .field legend { color: var(--d-gold); }
.field input[type="text"], .field input[type="date"], .field textarea { color: var(--d-text); border-bottom-color: rgba(230, 207, 159, .35); color-scheme: dark; }
.field input:focus, .field textarea:focus { border-color: var(--d-gold); }
.field label.choice { color: var(--d-text); }
.choice span { border-color: rgba(230, 207, 159, .3); }
.choice input:checked + span { background: var(--d-gold); border-color: var(--d-gold); color: #2a0e12; }
.form__error { color: #ff9b94; }
.form__pkg { background: rgba(230, 207, 159, .1); border-color: var(--d-line); color: var(--d-text); }
.form__pkg button { color: var(--d-gold); background: rgba(230, 207, 159, .14); }
.form__done { background: #2a0f15; }
.form__done img { filter: brightness(0) invert(1); opacity: .9; }
.form__done p { color: var(--d-soft); }

/* ---- footer ---- */
.d-footer { padding: 64px 0 40px; text-align: center; border-top: 1px solid var(--d-line); color: var(--d-soft); }
.d-footer .footer__logo { width: 120px; margin: 0 auto 18px; }
.d-footer .footer__tag { font-family: var(--font-display); font-style: italic; font-size: 1.35rem; color: var(--d-gold); }
.d-footer .footer__nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 32px; margin: 28px 0; font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; }
.d-footer .footer__nav a:hover { color: var(--d-gold); }
.d-footer .footer__copy { font-size: .74rem; opacity: .6; }

/* ---- floating helpers on dark ---- */
.confetti-toggle { background: rgba(29, 10, 14, .8); color: var(--d-gold); border-color: var(--d-line); }
.sticky-cta { background: var(--d-gold); color: #2a0e12; }

/* ---- responsive ---- */
@media (max-width: 1020px) {
  .d-grid { grid-template-columns: repeat(2, 1fr); }
  .d-est, .d-enquire { grid-template-columns: 1fr; }
  /* phones/tablets: the estimate becomes a compact bar pinned to the bottom while you tweak options */
  .d-est__result { position: sticky; top: auto; bottom: 12px; z-index: 60; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 4px 14px; padding: 14px 18px; }
  .d-est__label { grid-column: 1 / -1; }
  .d-est__range { margin: 0; font-size: clamp(1.2rem, 5.4vw, 1.7rem); white-space: nowrap; flex-wrap: nowrap; }
  .d-est__lines, .d-est__note { display: none; }
  .d-est__result .btn { width: auto; margin: 0; padding: .75rem 1rem; font-size: .6rem; letter-spacing: .12em; }
  .in-est .sticky-cta { transform: translateY(120px) !important; }
  .in-est .wa-fab { bottom: 138px; }
  .d-why { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .d-dots { display: none; }
  .d-header.is-scrolled { background: rgba(29, 10, 14, .9); }
  .nav-open .d-header.is-scrolled { background: transparent; box-shadow: none; }
  .d-time::before, .d-time::after { left: 17px; }
  .d-time__item { grid-template-columns: 1fr; padding-left: 52px; }
  .d-time__item .d-glass, .d-time__item:nth-child(even) .d-glass { grid-column: 1; margin: 0; text-align: left; }
  .d-time__item:nth-child(odd) .d-glass img { margin-left: 0; }
  .d-time__dot { left: 0; translate: 0 0; }
}
@media (max-width: 620px) {
  .d-grid, .d-why { grid-template-columns: 1fr; }
  .d-svc { min-height: 320px; }
  .d-hero__lead { font-size: .94rem; }
  .d-card { width: clamp(150px, 46vw, 220px); }
  .d-pill { font-size: .78rem; padding: .55rem .9rem; }
}
/* ---- header: never wrap the menu labels ---- */
.d-header .nav a, .d-header .header__cta { white-space: nowrap; }
@media (max-width: 1180px) {
  .d-header .nav { gap: 18px; }
  .d-header .nav a { font-size: .66rem; letter-spacing: .12em; }
  .d-header .header__cta { padding: .65rem 1rem; }
}

/* ---- pricing section (js/pricing-ranges.js) on the dark theme ---- */
.pr { --pr-ink: var(--d-text); --pr-muted: var(--d-soft); --pr-accent: var(--d-gold); --pr-card: rgba(255, 255, 255, .05); --pr-line: var(--d-line); --pr-soft: rgba(230, 207, 159, .1); --pr-glow: rgba(0, 0, 0, .7); --pr-on-accent: #2a0e12; }
.pr__tab { background: rgba(255, 255, 255, .04); }
.pr__tab.is-on { box-shadow: 0 16px 34px -16px rgba(230, 207, 159, .5); }

@media (prefers-reduced-motion: reduce) {
  .d-track, .d-hero__glow i { animation: none; }
}

.demo-flag { color: var(--d-gold); background: rgba(230, 207, 159, .1); border-color: rgba(230, 207, 159, .5); }
