/*
Theme Name:   Date Night Child
Theme URI:    https://example.com/
Description:  Brand tokens and typography for DATE NIGHT on top of Blocksy. No layout logic here.
Author:       Date Night
Template:     blocksy
Version:      0.2.0
Text Domain:  date-night-child
*/

/* ---------- Tokens ---------- */
:root {
  --dn-midnight: #08141A;   /* Knight Midnight: primary background, authority, night */
  --dn-burgundy: #9B3455;   /* Reveal Burgundy: romance, chapter accents, calls to action */
  --dn-gold:     #CDAA68;   /* Candle Gold: premium detail, warm highlights */
  --dn-ivory:    #F8F3EC;   /* Story Ivory: soft background, reading surfaces */
  --dn-taupe:    #D9CFC5;   /* Warm Taupe: dividers, borders */
  --dn-ink:      #171719;   /* Ink: body copy */
  --dn-night-2:  #0E1E26;   /* a step lighter than midnight, for cards on night */
  --dn-ink-soft: #5B5049;   /* secondary text on ivory, 7:1 */
  --dn-font-display: "Cormorant Garamond", Georgia, serif;
  --dn-font-ui: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --dn-font-display-ar: "Noto Naskh Arabic", serif;
  --dn-font-ui-ar: "IBM Plex Sans Arabic", system-ui, sans-serif;
  --dn-radius: 10px;
  --dn-wide: 1120px;
  --dn-gutter: max(1.25rem, calc((100% - var(--dn-wide)) / 2));
  --dn-ease: cubic-bezier(.2, .7, .2, 1);
  --dn-grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.55'/%3E%3C/svg%3E");

  /* Blocksy palette mapped to the brand, so theme-coloured parts follow it */
  --theme-palette-color-1: var(--dn-burgundy);
  --theme-palette-color-2: var(--dn-midnight);
  --theme-palette-color-3: var(--dn-ink);
  --theme-palette-color-4: var(--dn-ink);
  --theme-palette-color-5: var(--dn-taupe);
  --theme-palette-color-6: var(--dn-ivory);
  --theme-palette-color-7: var(--dn-ivory);
  --theme-palette-color-8: #fff;
}

/* ---------- Base ---------- */
body { font-family: var(--dn-font-ui); color: var(--dn-ink); background: var(--dn-ivory); font-size: 17px; line-height: 1.65; -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4, .dn-display { font-family: var(--dn-font-display); font-weight: 500; letter-spacing: 0.005em; color: var(--dn-midnight); --theme-font-family: var(--dn-font-display); --theme-heading-color: currentColor; }
h1 { font-size: clamp(2.6rem, 9vw, 5.5rem); line-height: 1.02; }
h2 { font-size: clamp(2rem, 6vw, 3.4rem); line-height: 1.08; }
h3 { font-size: clamp(1.6rem, 4.5vw, 2.1rem); line-height: 1.15; }
a { color: var(--dn-burgundy); text-underline-offset: 0.2em; }
:focus-visible { outline: 2px solid var(--dn-gold); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--dn-gold); color: var(--dn-midnight); }

/* ---------- Header ---------- */
#header, #header [data-row], .ct-header [data-row] > div { background: var(--dn-midnight) !important; border: 0 !important; box-shadow: none !important; }
#header .site-title a, #header .site-title { font-family: var(--dn-font-display) !important; font-weight: 500 !important; letter-spacing: 0.32em; text-transform: uppercase; font-size: 1.05rem !important; color: var(--dn-ivory) !important; }
#header .ct-menu-link { color: var(--dn-taupe) !important; font-family: var(--dn-font-ui); font-size: 0.72rem !important; letter-spacing: 0.16em; font-weight: 600; }
#header .ct-menu-link:hover, #header .current-menu-item > .ct-menu-link { color: var(--dn-gold) !important; }
#header .ct-header-trigger, #header .ct-header-search { color: var(--dn-ivory) !important; --theme-icon-color: var(--dn-ivory); }
#offcanvas .ct-panel-inner, #offcanvas { background: var(--dn-midnight) !important; }
#offcanvas .ct-menu-link { color: var(--dn-ivory) !important; font-family: var(--dn-font-display); font-size: 1.9rem !important; font-weight: 500; letter-spacing: 0.01em; text-transform: none; }
#offcanvas .ct-toggle-close { color: var(--dn-ivory) !important; --theme-icon-color: var(--dn-ivory); }

/* ---------- Date Night pages own the whole canvas ---------- */
.dn-page .hero-section, .dn-page .entry-header { display: none !important; }
.dn-page article, .dn-page .ct-container-full, .dn-page [data-vertical-spacing] { padding-top: 0 !important; padding-bottom: 0 !important; }
.dn-page .entry-content > * { margin-top: 0; margin-bottom: 0; }
.dn-page .site-main { background: var(--dn-ivory); }

/* Sections: full-bleed bands with a centred measure */
.dn-band { padding: clamp(4rem, 12vw, 8rem) var(--dn-gutter) !important; position: relative; margin: 0 !important; max-width: none !important; }
.dn-night { background: var(--dn-midnight); color: var(--dn-taupe); isolation: isolate; }
.dn-night::after { content: ""; position: absolute; inset: 0; background-image: var(--dn-grain); opacity: 0.07; mix-blend-mode: overlay; pointer-events: none; z-index: -1; }
.dn-night h1, .dn-night h2, .dn-night h3 { color: var(--dn-ivory); }
.dn-night a:not(.wp-block-button__link) { color: var(--dn-gold); }
.dn-ivory { background: var(--dn-ivory); }
.dn-measure { max-width: 680px !important; }

/* Chapter eyebrow: gold small caps with a hairline */
.dn-eyebrow { display: flex; align-items: center; gap: 0.9rem; font-family: var(--dn-font-ui); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.28em; text-transform: uppercase; color: var(--dn-burgundy); margin-bottom: 1.1rem !important; }
.dn-eyebrow::after { content: ""; height: 1px; width: 3.5rem; background: currentColor; opacity: 0.6; }
.dn-night .dn-eyebrow { color: var(--dn-gold); }
.dn-band h2 { margin-bottom: 2.25rem; text-wrap: balance; }

/* ---------- Buttons ---------- */
.wp-block-button__link, .dn-button, .single_add_to_cart_button, .checkout-button, #place_order {
  background: var(--dn-burgundy) !important; color: var(--dn-ivory) !important; border-radius: 999px !important;
  font-family: var(--dn-font-ui); font-weight: 700; font-size: 0.8rem !important; letter-spacing: 0.16em; text-transform: uppercase;
  padding: 1.05rem 2rem !important; min-height: 52px; display: inline-flex; align-items: center; justify-content: center; gap: 0.6rem;
  border: 0; box-shadow: 0 10px 30px -12px rgba(155, 52, 85, 0.7); transition: transform 200ms var(--dn-ease), box-shadow 200ms var(--dn-ease), background 200ms; cursor: pointer; text-decoration: none;
}
.wp-block-button__link::after, .dn-button--arrow::after { content: "\2192"; font-size: 1.05em; letter-spacing: 0; transition: transform 200ms var(--dn-ease); }
.wp-block-button__link:hover, .dn-button:hover { background: #A93C5E !important; transform: translateY(-2px); box-shadow: 0 16px 34px -12px rgba(155, 52, 85, 0.8); }
.wp-block-button__link:hover::after { transform: translateX(4px); }
.wp-block-button__link:active, .dn-button:active { transform: translateY(0) scale(0.98); }
.dn-ghost .wp-block-button__link { background: transparent !important; color: var(--dn-midnight) !important; box-shadow: inset 0 0 0 1.5px var(--dn-midnight); }
.dn-night .dn-ghost .wp-block-button__link { color: var(--dn-gold) !important; box-shadow: inset 0 0 0 1.5px var(--dn-gold); }

/* ---------- Wax seal: the signature mark ---------- */
.dn-seal::before {
  content: "DN"; display: grid; place-items: center; width: 74px; height: 74px; margin: 0 auto 2rem;
  font-family: var(--dn-font-display); font-style: italic; font-size: 1.45rem; letter-spacing: 0.04em; color: #F3D9A4;
  background: radial-gradient(circle at 35% 30%, #C04C72 0%, var(--dn-burgundy) 45%, #6E2038 100%);
  border-radius: 47% 53% 50% 50% / 52% 48% 52% 48%;
  box-shadow: inset 0 0 0 5px rgba(0,0,0,0.12), inset 0 0 0 7px rgba(243, 217, 164, 0.35), 0 8px 24px -6px rgba(0,0,0,0.6);
  text-shadow: 0 1px 0 rgba(0,0,0,0.35);
}

/* ---------- Hero ---------- */
.dn-hero { background: radial-gradient(ellipse 45% 35% at 50% 18%, rgba(205,170,104,0.14), transparent 70%), radial-gradient(ellipse 80% 60% at 50% 0%, rgba(155,52,85,0.28), transparent 75%), var(--dn-midnight); text-align: center; padding: clamp(5.5rem, 18vw, 10rem) var(--dn-gutter) clamp(4.5rem, 14vw, 8rem) !important; overflow: hidden; }
.dn-hero--home h1 { font-size: clamp(2.3rem, 10.5vw, 8.5rem); letter-spacing: 0.14em; margin-right: -0.14em; white-space: nowrap; font-weight: 400; }
.dn-hero--page .dn-tagline { margin-left: 0; }
.dn-hero .dn-tagline { font-family: var(--dn-font-display); font-style: italic; color: var(--dn-gold); font-size: clamp(1.45rem, 4.6vw, 2.25rem); line-height: 1.25; max-width: 22ch; margin: 1.25rem auto 0; }
.dn-hero .dn-supporting { color: var(--dn-taupe); letter-spacing: 0.04em; margin-top: 1rem; }
.dn-hero .wp-block-buttons { justify-content: center; margin: 2.5rem 0 1.25rem; }
.dn-hero-small { color: var(--dn-taupe); opacity: 0.85; font-size: 0.8rem; letter-spacing: 0.14em; text-transform: uppercase; }
.dn-hero--page { text-align: left; padding-top: clamp(4rem, 13vw, 7.5rem) !important; padding-bottom: clamp(3rem, 9vw, 5rem) !important; }
.dn-hero--page { background: radial-gradient(ellipse 60% 70% at 95% 0%, rgba(155,52,85,0.3), transparent 70%), var(--dn-midnight); }
.dn-hero--page h1 { max-width: 14ch; text-wrap: balance; }
.dn-promise { font-family: var(--dn-font-display); font-style: italic; color: var(--dn-gold); font-size: clamp(1.5rem, 4.8vw, 2.3rem); line-height: 1.25; max-width: 24ch; margin-top: 1rem !important; }
.dn-lead { color: var(--dn-taupe); max-width: 46ch; margin-top: 1.25rem !important; font-size: 1.05rem; }

/* ---------- Envelopes: the packages ---------- */
.dn-envelopes { gap: 1.5rem !important; margin: 0 auto !important; }
.dn-envelope { position: relative; background: var(--dn-ivory); color: var(--dn-ink); border-radius: 6px; padding: 4.75rem 1.75rem 2rem !important; display: flex; flex-direction: column; box-shadow: 0 30px 60px -30px rgba(0,0,0,0.75); transition: transform 350ms var(--dn-ease), box-shadow 350ms var(--dn-ease); overflow: hidden; isolation: isolate; }
.dn-envelope::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 64px; background: linear-gradient(180deg, #EDE4D8, #E4D8C9); clip-path: polygon(0 0, 100% 0, 50% 100%); transform-origin: top; transition: transform 450ms var(--dn-ease); z-index: -1; }
.dn-envelope::after { content: ""; position: absolute; top: 40px; left: 50%; width: 30px; height: 30px; transform: translateX(-50%); border-radius: 50%; background: radial-gradient(circle at 35% 30%, #C04C72, var(--dn-burgundy) 55%, #6E2038); box-shadow: inset 0 0 0 3px rgba(243,217,164,.35); transition: opacity 300ms, transform 450ms var(--dn-ease); }
.dn-envelope:hover, .dn-envelope:focus-within { transform: translateY(-6px); box-shadow: 0 40px 70px -30px rgba(0,0,0,0.85), 0 0 0 1px rgba(205,170,104,.5); }
.dn-envelope:hover::before, .dn-envelope:focus-within::before { transform: scaleY(0.25); }
.dn-envelope:hover::after, .dn-envelope:focus-within::after { opacity: 0; transform: translate(-50%, -24px); }
.dn-envelope h2, .dn-envelope h3 { color: var(--dn-midnight); margin: 0 0 0.75rem; font-size: clamp(1.9rem, 5vw, 2.4rem); }
.dn-envelope h2, .dn-envelope h3, .dn-night .dn-envelope h2, .dn-night .dn-envelope h3, .dn-night .dn-envelope a:not(.wp-block-button__link) { color: var(--dn-midnight); text-decoration: none; }
.dn-envelope h2 a::after, .dn-envelope h3 a::after { content: ""; position: absolute; inset: 0; z-index: 1; } /* whole card is the link */
.dn-envelope p { color: var(--dn-ink-soft); margin: 0 0 1rem; }
.dn-envelope-no { font-size: 0.7rem !important; font-weight: 700; letter-spacing: 0.3em; text-transform: uppercase; color: var(--dn-burgundy) !important; margin-bottom: 0.5rem !important; }
.dn-price { font-family: var(--dn-font-display); font-size: 1.6rem !important; color: var(--dn-burgundy) !important; margin-top: auto !important; padding-top: 1rem; border-top: 1px solid var(--dn-taupe); }
.dn-envelope .wp-block-buttons { margin-top: 0.5rem; position: relative; z-index: 2; }
.dn-envelope .wp-block-button, .dn-envelope .wp-block-button__link { width: 100%; }
.dn-envelope--featured { box-shadow: 0 30px 60px -30px rgba(0,0,0,0.75), 0 0 0 1.5px var(--dn-gold); }
.dn-envelope--soon { background: transparent; color: var(--dn-taupe); box-shadow: inset 0 0 0 1px rgba(217,207,197,0.35); justify-content: center; text-align: center; padding-top: 2rem !important; }
.dn-envelope--soon::before, .dn-envelope--soon::after { display: none; }
.dn-envelope--soon p { color: var(--dn-taupe); font-family: var(--dn-font-display); font-style: italic; font-size: 1.4rem; margin: 0; }

/* ---------- Steps: a gold thread through the evening ---------- */
.dn-steps { list-style: none; counter-reset: dn-step; padding: 0 !important; margin: 0 !important; max-width: 760px !important; position: relative; }
.dn-steps::before { content: ""; position: absolute; left: 23px; top: 12px; bottom: 12px; width: 1px; background: linear-gradient(var(--dn-gold), rgba(205,170,104,0.15)); }
.dn-steps li { counter-increment: dn-step; position: relative; padding: 0 0 2.5rem 4.75rem; font-size: clamp(1.15rem, 3.4vw, 1.4rem); font-family: var(--dn-font-display); line-height: 1.35; color: var(--dn-midnight); }
.dn-steps li:last-child { padding-bottom: 0; }
.dn-steps li::before { content: counter(dn-step, upper-roman); position: absolute; left: 0; top: -0.2rem; width: 47px; height: 47px; border-radius: 50%; display: grid; place-items: center; background: var(--dn-midnight); color: var(--dn-gold); font-family: var(--dn-font-display); font-style: italic; font-size: 1.05rem; box-shadow: 0 0 0 6px var(--dn-ivory); }
.dn-steps small, .dn-step-more { display: block; font-family: var(--dn-font-ui); font-size: 0.98rem; color: var(--dn-ink-soft); margin-top: 0.5rem; line-height: 1.6; }
.dn-night .dn-steps li { color: var(--dn-ivory); }
.dn-night .dn-steps li::before { box-shadow: 0 0 0 6px var(--dn-midnight); background: var(--dn-night-2); }

/* ---------- Mystery modes: sealed, half open, open ---------- */
.dn-modes { gap: 1.25rem !important; margin: 0 auto !important; }
.dn-mode { position: relative; padding: 2rem 1.75rem !important; border-radius: 6px; background: var(--dn-night-2); box-shadow: inset 0 0 0 1px rgba(205,170,104,0.25); transition: box-shadow 300ms, transform 300ms var(--dn-ease); }
.dn-mode:hover { transform: translateY(-4px); box-shadow: inset 0 0 0 1px rgba(205,170,104,0.6); }
.dn-mode::before { content: ""; display: block; width: 56px; height: 42px; margin-bottom: 1.5rem; background-repeat: no-repeat; background-size: contain; }
.dn-mode--partner::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 56 42' fill='none' stroke='%23CDAA68' stroke-width='1.4'%3E%3Crect x='1' y='14' width='54' height='27' rx='2'/%3E%3Cpath d='M1 14 28 1l27 13'/%3E%3Cpath d='M1 41l20-14M55 41 35 27'/%3E%3Cpath d='M1 15l27 17 27-17'/%3E%3C/svg%3E"); }
.dn-mode--both::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 56 42' fill='none' stroke='%23CDAA68' stroke-width='1.4'%3E%3Crect x='1' y='14' width='54' height='27' rx='2'/%3E%3Cpath d='M1 15l27 17 27-17'/%3E%3Ccircle cx='28' cy='30' r='6' fill='%239B3455' stroke='%23CDAA68'/%3E%3C/svg%3E"); }
.dn-mode--plan::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 56 42' fill='none' stroke='%23CDAA68' stroke-width='1.4'%3E%3Cpath d='M1 22h54v19H1z'/%3E%3Cpath d='M1 22 28 39l27-17'/%3E%3Crect x='10' y='1' width='36' height='26' rx='1' fill='%2308141A'/%3E%3Cpath d='M16 9h24M16 15h24M16 21h14'/%3E%3C/svg%3E"); }
.dn-mode h3 { font-size: 1.75rem; margin: 0 0 0.6rem; }
.dn-mode p { margin: 0; color: var(--dn-taupe); }
.dn-mode--featured { background: linear-gradient(160deg, #2A1520, var(--dn-night-2) 70%); box-shadow: inset 0 0 0 1.5px var(--dn-gold); }

/* ---------- Statement and sealed note ---------- */
.dn-statement { font-family: var(--dn-font-display); font-size: clamp(1.7rem, 5.4vw, 3rem); line-height: 1.2; color: var(--dn-midnight); max-width: 26ch; }
.dn-sealed { position: relative; text-align: center; max-width: 620px !important; padding: 3.25rem 2rem 2.5rem !important; border: 1px solid var(--dn-taupe); border-radius: 6px; background: #FBF8F3; margin: 2.5rem auto 0 !important; }
.dn-sealed::before { position: absolute; top: 0; left: 50%; margin: 0 !important; transform: translate(-50%, -50%); }
.dn-sealed p { font-family: var(--dn-font-display); font-size: clamp(1.3rem, 4vw, 1.7rem); line-height: 1.35; color: var(--dn-midnight); margin: 0; }
.dn-note { text-align: center; color: var(--dn-ink-soft); font-size: 0.92rem; margin-top: 1.5rem !important; }
.dn-night .dn-note { color: var(--dn-taupe); }

/* ---------- Specs grid on package pages ---------- */
.dn-specs { display: grid !important; grid-template-columns: repeat(2, 1fr); gap: 0 !important; border-top: 1px solid var(--dn-taupe); border-left: 1px solid var(--dn-taupe); }
.dn-specs > * { padding: 1.4rem 1.25rem !important; border-right: 1px solid var(--dn-taupe); border-bottom: 1px solid var(--dn-taupe); margin: 0 !important; }
.dn-spec-label { font-size: 0.68rem !important; font-weight: 700; letter-spacing: 0.24em; text-transform: uppercase; color: var(--dn-burgundy); margin: 0 0 0.4rem !important; }
.dn-spec-value { font-family: var(--dn-font-display); font-size: 1.3rem; line-height: 1.3; color: var(--dn-midnight); margin: 0 !important; }
@media (min-width: 900px) { .dn-specs { grid-template-columns: repeat(4, 1fr); } }

/* ---------- Questions ---------- */
.wp-block-details { border-bottom: 1px solid var(--dn-taupe); padding: 0; margin: 0 !important; }
.wp-block-details summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 1.5rem; align-items: center; padding: 1.05rem 0; font-family: var(--dn-font-display); font-size: clamp(1.25rem, 3.6vw, 1.55rem); color: var(--dn-midnight); min-height: 48px; }
.wp-block-details summary::-webkit-details-marker { display: none; }
.wp-block-details summary::after { content: ""; flex: none; width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--dn-taupe); background: linear-gradient(var(--dn-burgundy), var(--dn-burgundy)) center / 12px 1.5px no-repeat, linear-gradient(var(--dn-burgundy), var(--dn-burgundy)) center / 1.5px 12px no-repeat; transition: transform 300ms var(--dn-ease), background-size 300ms; }
.wp-block-details[open] summary::after { transform: rotate(180deg); background-size: 12px 1.5px, 1.5px 0; }
.wp-block-details > p { margin: 0 0 1.5rem; color: var(--dn-ink-soft); max-width: 62ch; }
.dn-faq { max-width: 820px !important; }
.dn-faq + .wp-block-buttons { margin-top: 2.5rem !important; }

/* ---------- Reading pages ---------- */
.dn-prose { max-width: 700px !important; }
.dn-prose h2 { font-size: clamp(1.6rem, 4.5vw, 2.1rem); margin: 2.75rem 0 0.75rem; }
.dn-prose ul { padding-left: 1.2rem; }
.dn-prose li { margin-bottom: 0.5rem; }
.dn-pending { display: inline-block; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: var(--dn-burgundy); border: 1px solid currentColor; padding: 0.4rem 0.8rem; border-radius: 999px; }
.wp-block-table table { border-collapse: collapse; width: 100%; font-size: 0.98rem; }
.wp-block-table th { text-align: left; font-size: 0.68rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--dn-burgundy); border-bottom: 1.5px solid var(--dn-midnight); padding: 0.75rem 0.5rem; }
.wp-block-table td { border-bottom: 1px solid var(--dn-taupe); padding: 1rem 0.5rem; vertical-align: top; }
.wp-block-table td:first-child { font-family: var(--dn-font-display); font-size: 1.15rem; color: var(--dn-midnight); width: 42%; }

/* ---------- Waitlist: an invitation card ---------- */
.dn-invitation { margin: 0 auto !important; background: var(--dn-ivory); border-radius: 8px; padding: clamp(1.75rem, 6vw, 3rem) !important; max-width: 560px !important; box-shadow: 0 40px 80px -40px rgba(0,0,0,0.9), 0 0 0 1px rgba(205,170,104,0.45); color: var(--dn-ink); }
.dn-waitlist { max-width: 480px; margin: 0 auto; }
.dn-waitlist p { margin: 0 0 1.15rem; }
.dn-waitlist label { display: block; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: var(--dn-ink-soft); margin-bottom: 0.45rem; }
.dn-waitlist input:not([type="hidden"]), .dn-waitlist select { width: 100%; min-height: 52px; background: #fff; border: 1px solid var(--dn-taupe); border-radius: 8px; padding: 0 1rem; font: 400 1rem/1.4 var(--dn-font-ui); color: var(--dn-ink); transition: border-color 200ms, box-shadow 200ms; }
.dn-waitlist input:focus, .dn-waitlist select:focus { border-color: var(--dn-midnight); box-shadow: 0 0 0 3px rgba(205,170,104,0.45); outline: none; }
.dn-waitlist [aria-invalid="true"] { border-color: var(--dn-burgundy); }
.dn-waitlist .dn-button { width: 100%; margin-top: 0.5rem; }
.dn-waitlist .dn-button[aria-busy="true"] { opacity: 0.75; pointer-events: none; }
.dn-hp { position: absolute; left: -9999px; height: 1px; overflow: hidden; }
.dn-field-error { color: var(--dn-burgundy); font-weight: 600; font-size: 0.9rem; margin: -0.6rem 0 1.15rem !important; }
.dn-waitlist-thanks { text-align: center; padding: 0.5rem 0; }
.dn-waitlist-thanks p { font-family: var(--dn-font-display); font-size: clamp(1.4rem, 4.4vw, 1.8rem); line-height: 1.3; color: var(--dn-midnight); margin: 0; }

/* ---------- Reveal on scroll (only when JS runs, never under reduced motion) ---------- */
.dn-js .dn-reveal { opacity: 0; transform: translateY(28px); transition: opacity 700ms var(--dn-ease), transform 700ms var(--dn-ease); }
.dn-js .dn-reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .dn-js .dn-reveal { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

/* ---------- Footer: Date Night's own replaces the theme's ---------- */
.ct-footer { display: none; }
.dn-footer { background: var(--dn-midnight); color: var(--dn-taupe); text-align: center; padding: 4.5rem 1.25rem 6.5rem; border-top: 1px solid rgba(205,170,104,0.2); }
.dn-footer p { max-width: 560px; margin: 0 auto 1rem; }
.dn-footer a { color: var(--dn-gold); }
.dn-footer-brand { font-family: var(--dn-font-display); letter-spacing: 0.32em; color: var(--dn-ivory); font-size: 1.1rem; }
.dn-footer-ar { font-family: var(--dn-font-display-ar); direction: rtl; color: var(--dn-gold); font-size: 1.25rem; }
.dn-footer-privacy { font-size: 0.85rem; opacity: 0.85; }
.dn-footer-links { display: flex; justify-content: center; gap: 0 1.5rem; flex-wrap: wrap; font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; }
.dn-footer-links a { color: var(--dn-taupe); text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; }

/* ---------- WhatsApp: pill on desktop, part of the bottom bar on phones ---------- */
.dn-wa { position: fixed; right: 20px; bottom: 20px; z-index: 50; display: inline-flex; align-items: center; gap: 0.55rem; background: var(--dn-midnight); color: var(--dn-ivory) !important; border-radius: 999px; padding: 0.85rem 1.2rem; text-decoration: none; font-weight: 600; font-size: 0.88rem; box-shadow: 0 0 0 1px rgba(205,170,104,0.45), 0 10px 30px rgba(8,20,26,.35); }
.dn-wa svg, .dn-bar__wa svg { width: 20px; height: 20px; fill: var(--dn-gold); flex: none; }
.dn-bar { display: none; }
@media (max-width: 767px) {
  .dn-wa { display: none; }
  .dn-bar { display: flex; gap: 0.6rem; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; padding: 0.7rem 0.9rem calc(0.7rem + env(safe-area-inset-bottom)); background: rgba(8, 20, 26, 0.94); border-top: 1px solid rgba(205,170,104,0.25); transform: translateY(110%); transition: transform 350ms var(--dn-ease); }
  .dn-bar.is-on { transform: none; }
  .dn-bar .dn-button { flex: 1; min-height: 50px; padding: 0 1rem !important; box-shadow: none; }
  .dn-bar__wa { flex: none; width: 50px; height: 50px; border-radius: 50%; display: grid; place-items: center; box-shadow: inset 0 0 0 1.5px var(--dn-gold); }
}

/* Two bands of the same tone in a row read as one: no doubled gap */
.dn-night + .dn-night, .dn-ivory + .dn-ivory { padding-top: 0 !important; }
.dn-hero--page + .dn-night { padding-top: clamp(1rem, 4vw, 2rem) !important; }
