/* ==========================================================================
   SweepstakesLeads — extras
   Day mode, top bar, day/night switch, floating buttons (accessibility,
   read aloud, music, WhatsApp) and fireworks.
   ========================================================================== */

/* ---------- Day mode ---------- */
/* Page surfaces turn light; hero bands, CTA bands and the footer stay dark. */
html[data-theme="light"] {
  --bg: #F8F5FD;
  --bg-2: #EFEAF7;
  --surface: #FFFFFF;
  --surface-2: #F6F2FB;
  --line: rgba(28, 16, 48, .10);
  --line-2: rgba(28, 16, 48, .17);
  --head: #160D26;
  --text: #3B4862;
  --muted: #5F6C85;
  --strong: #160D26;
  --link: #7C3AED;
  --nav-bg: #FFFFFF;
  --tint: 15, 23, 42;
  --bg-rgb: 244, 246, 251;
  --surface-rgb: 255, 255, 255;
  --green: #B7791F;
  --amber: #B7791F;
  --blue-soft: rgba(124, 58, 237, .10);
  --shadow: 0 1px 2px rgba(28, 16, 48, .05), 0 8px 24px rgba(28, 16, 48, .07);
  --shadow-lg: 0 2px 6px rgba(28, 16, 48, .06), 0 22px 50px rgba(28, 16, 48, .12);
  color-scheme: light;
}
html[data-theme="light"] :is(.hero-dark, .page-hero, .section-dark, .cta-band, .site-footer) {
  --bg: #0A0612;
  --bg-2: #100A1C;
  --surface: #181026;
  --surface-2: #211735;
  --line: rgba(255, 255, 255, .08);
  --line-2: rgba(255, 255, 255, .14);
  --head: #F8F5FD;
  --text: #CBC2DD;
  --muted: #9C90B8;
  --strong: #FFFFFF;
  --link: #C9B1FF;
  --tint: 255, 255, 255;
  --surface-rgb: 14, 19, 30;
  --green: #FFC542;
  --amber: #F6B54E;
  --blue-soft: rgba(155, 107, 255, .14);
  --shadow: 0 1px 0 rgba(255,255,255,.04) inset, 0 10px 30px rgba(0,0,0,.35);
  --shadow-lg: 0 1px 0 rgba(255,255,255,.05) inset, 0 24px 60px rgba(0,0,0,.55);
  color-scheme: dark;
  color: var(--text);
}
html[data-theme="light"] .page-hero, html[data-theme="light"] .hero-dark, html[data-theme="light"] .section-dark {
  background:
    radial-gradient(760px 420px at 85% -10%, rgba(155, 107, 255, .38), transparent 60%),
    radial-gradient(620px 380px at -5% 110%, rgba(255, 197, 66, .2), transparent 60%),
    #0A1020;
}
html[data-theme="light"] .site-header.is-scrolled { box-shadow: 0 6px 20px rgba(28, 16, 48, .06); }
html[data-theme="light"] .form-status-error,
html[data-theme="light"] .card p.form-status-error,
html[data-theme="light"] .field-error,
html[data-theme="light"] .card p.field-error { color: #C62828; }
html[data-theme="light"] .card p.form-status-ok { color: #0B7A57; }
html[data-theme="light"] .site-nav ul a[aria-current="page"] { background: var(--blue-soft); color: var(--link); }
html[data-theme="light"] .btn-ghost { color: var(--head); }
html[data-theme="light"] .trust-bar { box-shadow: var(--shadow-lg); }
/* Smooth switch between day and night. */
html.theme-anim, html.theme-anim *, html.theme-anim *::before, html.theme-anim *::after {
  transition: background-color .35s ease, border-color .35s ease, color .35s ease, fill .35s ease !important;
}

/* ---------- Top bar (email left with a big mail icon, WhatsApp right) ---------- */
.top-bar { background: #02040A; border-bottom: 1px solid rgba(255,255,255,.07); font-size: .9rem; position: relative; z-index: 51; }
.top-bar-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 46px; }
.top-bar a { display: inline-flex; align-items: center; gap: .45rem; color: #DAD2EA; text-decoration: none; font-weight: 600; white-space: nowrap; min-width: 0; }
.top-bar a:hover { color: #fff; }
.top-bar svg { width: 16px; height: 16px; fill: none; stroke: #FFC542; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.top-bar-mail { color: #fff !important; font-weight: 700; gap: .6rem !important; }
.top-bar-mail > span:last-child { overflow: hidden; text-overflow: ellipsis; }
.top-bar-mail-icon { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: linear-gradient(135deg, #7C3AED, #FFC542); box-shadow: 0 4px 14px rgba(124, 58, 237, .45); flex: none; }
.top-bar .top-bar-mail-icon svg { width: 22px; height: 22px; stroke: #fff; }
.top-bar-mail:hover .top-bar-mail-icon { filter: brightness(1.12); }
.top-bar-label { color: #9C90B8; font-weight: 600; }
.top-bar-right { display: flex; align-items: center; gap: 1.25rem; flex: none; }
@media (max-width: 760px) { .top-bar-label { display: none; } }
@media (max-width: 400px) { .top-bar { font-size: .82rem; } .top-bar-right a span { display: none; } }

/* ---------- Header layout with the day/night switch ---------- */
.site-nav { margin-left: auto; }
.header-tools { display: flex; align-items: center; gap: .4rem; order: 3; }
@media (max-width: 1199px) { .site-nav { margin-left: 0; } }

.theme-switch { background: none; border: 0; padding: 4px; cursor: pointer; border-radius: 999px; -webkit-tap-highlight-color: transparent; }
.theme-switch:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.theme-switch-track { position: relative; display: flex; align-items: center; justify-content: space-between; width: 58px; height: 30px; padding: 0 7px; border-radius: 999px; background: #241838; border: 1px solid rgba(255,255,255,.12); box-shadow: inset 0 2px 6px rgba(0,0,0,.45); transition: background .3s; }
.theme-switch svg { width: 14px; height: 14px; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; position: relative; z-index: 1; }
.ts-sun { stroke: #F6B54E; }
.ts-moon { stroke: #DCCBFF; fill: #DCCBFF !important; }
.theme-switch-thumb { position: absolute; top: 3px; left: 31px; width: 22px; height: 22px; border-radius: 50%; background: linear-gradient(135deg, #EADDFF, #8EA9FF); box-shadow: 0 2px 6px rgba(0,0,0,.4); transition: left .3s cubic-bezier(.5,1.6,.4,1), background .3s; }
html[data-theme="light"] .theme-switch-track { background: #ECE3FA; border-color: rgba(28,16,48,.12); box-shadow: inset 0 2px 5px rgba(28,16,48,.12); }
html[data-theme="light"] .theme-switch-thumb { left: 3px; background: linear-gradient(135deg, #FFE08A, #F6A93B); box-shadow: 0 2px 8px rgba(246,169,59,.55); }
html[data-theme="light"] .ts-moon { stroke: #9A8DB6; fill: #9A8DB6 !important; }

/* ---------- Floating round buttons ---------- */
.float-btn {
  position: fixed; z-index: 1035; width: 50px; height: 50px; border: 0; border-radius: 50%;
  display: grid; place-items: center; cursor: pointer; color: #fff; text-decoration: none;
  background: linear-gradient(135deg, #7C3AED, #9B6BFF);
  box-shadow: 0 8px 22px rgba(124, 58, 237, .4);
  transition: transform .2s, box-shadow .2s, background .2s;
  -webkit-tap-highlight-color: transparent;
}
.float-btn:hover, .float-btn:focus-visible { transform: translateY(-2px); color: #fff; box-shadow: 0 12px 28px rgba(124, 58, 237, .55); }
.float-btn:focus-visible { outline: 3px solid #FFC542; outline-offset: 3px; }
.float-btn svg { width: 23px; height: 23px; }
.float-btn [hidden] { display: none; }
.float-right { right: 20px; }
.float-right.float-0 { bottom: 20px; }
#read-aloud-btn.is-active, #music-toggle-btn[aria-pressed="true"] { background: linear-gradient(135deg, #B7791F, #FFC542); }
#read-aloud-btn.is-active { animation: speak-pulse 1.6s ease-out infinite; }
@keyframes speak-pulse { 0% { box-shadow: 0 0 0 0 rgba(255,197,66,.55); } 70% { box-shadow: 0 0 0 12px rgba(255,197,66,0); } 100% { box-shadow: 0 0 0 0 rgba(255,197,66,0); } }

.wa-btn { width: 58px; height: 58px; background: #25D366; box-shadow: 0 8px 24px rgba(37, 211, 102, .45); }
.wa-btn:hover, .wa-btn:focus-visible { background: #1EBE5A; box-shadow: 0 12px 30px rgba(37, 211, 102, .6); }
.wa-btn svg { width: 31px; height: 31px; }
.wa-btn::after { content: ""; position: absolute; inset: 0; border-radius: 50%; animation: wa-ring 2.4s ease-out infinite; }
@keyframes wa-ring { 0% { box-shadow: 0 0 0 0 rgba(37,211,102,.5); } 80%, 100% { box-shadow: 0 0 0 14px rgba(37,211,102,0); } }

.float-tip {
  position: absolute; left: calc(100% + 10px); top: 50%; transform: translateY(-50%);
  padding: .35rem .7rem; border-radius: 8px; background: #111827; color: #fff;
  font-size: .76rem; font-weight: 600; white-space: nowrap; pointer-events: none;
  opacity: 0; visibility: hidden; transition: opacity .2s, visibility .2s;
}
.float-tip-left { left: auto; right: calc(100% + 10px); }
.float-btn:hover .float-tip, .float-btn:focus-visible .float-tip { opacity: 1; visibility: visible; }

/* ---------- Accessibility menu (Sienna widget, bottom-left) ----------
   Same as the reference site: Sienna's round button with the Font Awesome
   wheelchair icon (fa-wheelchair, \f193) instead of its SVG, navy with an
   orange hover. Icon font bundled in /assets/fonts/fontawesome (SIL OFL). */
@font-face {
  font-family: "Font Awesome 6 Free";
  font-style: normal;
  font-weight: 900;
  font-display: block;
  src: url("../fonts/fontawesome/fa-solid-900.woff2") format("woff2");
}
:root { --a11y-navy: #2A1458; --a11y-navy-dark: #1A0B3A; --a11y-orange: #f7931e; }

.asw-widget > .asw-menu-btn {
  outline: none !important;
  border: none !important;
  width: 50px !important;
  height: 50px !important;
  background: var(--a11y-navy) !important;
  box-shadow: 0 .5rem 1rem rgba(30, 12, 60, .35) !important;
  transition: all .3s ease !important;
}
.asw-widget > .asw-menu-btn:hover,
.asw-widget > .asw-menu-btn:focus-visible {
  background: var(--a11y-orange) !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 .75rem 1.5rem rgba(247, 147, 30, .45) !important;
}
.asw-widget > .asw-menu-btn:hover::before,
.asw-widget > .asw-menu-btn:focus-visible::before { color: var(--a11y-navy-dark) !important; }
.asw-widget > .asw-menu-btn svg { display: none; }
.asw-widget > .asw-menu-btn::before {
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  content: "\f193";
  color: #fff;
  font-size: 20px;
}
.asw-widget > .asw-menu-btn:focus-visible { outline: 3px solid var(--a11y-orange) !important; outline-offset: 3px !important; }
@media (max-width: 576px) {
  .asw-widget > .asw-menu-btn { width: 46px !important; height: 46px !important; }
}
.asw-menu {
  box-shadow: 0 16px 50px rgba(0, 0, 0, .15) !important;
  font-family: inherit;
  top: initial !important;
  bottom: 0;
  height: 80% !important;
}
.asw-menu .asw-menu-header { background: var(--a11y-navy) !important; }
.asw-footer { position: relative; }
.asw-footer::before {
  content: "SweepstakesLeads accessibility";
  font-weight: bold;
  color: #fff;
  background: var(--a11y-navy);
  height: 100%;
  width: 100%;
  position: absolute;
  top: 0;
  left: 50%;
  display: flex;
  transform: translateX(-50%);
  justify-content: center;
  align-items: center;
}

/* Read Aloud + music buttons (right side): same look as the accessibility button. */
.float-side { background: var(--a11y-navy); box-shadow: 0 .5rem 1rem rgba(30, 12, 60, .35); transition: all .3s ease; }
.float-side:hover, .float-side:focus-visible { background: var(--a11y-orange); color: var(--a11y-navy-dark); box-shadow: 0 .75rem 1.5rem rgba(247, 147, 30, .45); }
.float-side:focus-visible { outline-color: var(--a11y-orange); }
#read-aloud-btn.is-active, #music-toggle-btn[aria-pressed="true"] { background: var(--a11y-orange); color: var(--a11y-navy-dark); }
@keyframes speak-pulse { 0% { box-shadow: 0 0 0 0 rgba(247,147,30,.55); } 70% { box-shadow: 0 0 0 12px rgba(247,147,30,0); } 100% { box-shadow: 0 0 0 0 rgba(247,147,30,0); } }
/* ---------- Fireworks ---------- */
.fireworks-canvas { position: fixed; inset: 0; width: 100vw; height: 100vh; pointer-events: none; z-index: 1060; }

/* ---------- Small screens ---------- */
@media (max-width: 576px) {
  .float-btn { width: 44px; height: 44px; }
  .float-btn svg { width: 20px; height: 20px; }
  .float-right { right: 14px; }
  .float-right.float-0 { bottom: 14px; }
  .wa-btn { width: 52px; height: 52px; }
  .wa-btn svg { width: 28px; height: 28px; }
  .asw-widget > .asw-menu-btn { width: 44px !important; height: 44px !important; }
  .float-tip { display: none; }
  .site-footer { padding-bottom: 6.5rem; }
}

@media (prefers-reduced-motion: reduce) {
  .wa-btn::after, #read-aloud-btn.is-active { animation: none; }
}
@media print {
  .top-bar, .float-btn, .asw-widget, .fireworks-canvas, .theme-switch { display: none !important; }
}

/* Day mode header: solid white so it never looks grey over the dark hero. */
html[data-theme="light"] .site-header { background: rgba(255, 255, 255, .96); border-bottom-color: var(--line); }

/* Very small phones: keep logo + switch + menu on one line. */
@media (max-width: 400px) {
  .logo { font-size: .98rem; gap: .45rem; }
  .logo-mark { width: 30px; height: 30px; }
  .header-tools { gap: 0; }
  .theme-switch-track { width: 50px; height: 28px; padding: 0 6px; }
  .theme-switch-thumb { width: 20px; height: 20px; left: 25px; }
  html[data-theme="light"] .theme-switch-thumb { left: 3px; }
  .nav-toggle { width: 40px; }
}


/* Right-hand stack, bottom to top: Read Aloud, music (WhatsApp removed: email only). */
.float-side { right: 20px; left: auto; }
.float-side.float-s1 { bottom: 20px; }
.float-side.float-s2 { bottom: 82px; }
.float-side .float-tip { left: auto; right: calc(100% + 10px); }
@media (max-width: 576px) {
  .float-side { right: 17px; width: 46px; height: 46px; }
  .float-side.float-s1 { bottom: 14px; }
  .float-side.float-s2 { bottom: 70px; }
}

/* Email under the site name in the header. */
.brand { display: flex; flex-direction: column; gap: .15rem; min-width: 0; }
.brand-email { display: inline-flex; align-items: center; gap: .4rem; margin-left: calc(34px + .6rem); color: var(--text); font-size: .86rem; font-weight: 600; text-decoration: none; white-space: nowrap; }
.brand-email svg { width: 17px; height: 17px; flex: none; fill: none; stroke: var(--green); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.brand-email:hover { color: var(--link); }
.site-header .header-inner { min-height: 78px; }
@media (max-width: 400px) {
  .brand-email { margin-left: calc(30px + .45rem); font-size: .78rem; }
  .brand-email svg { width: 15px; height: 15px; }
}
@media (min-width: 1200px) and (max-width: 1439px) {
  .header-inner > .brand { flex-shrink: 0; min-width: max-content; }
  .site-nav ul a { padding-left: .28rem; padding-right: .28rem; }
}
/* Day mode form fields: the focused field stays light so typed text is readable
   (the base style darkens it for night mode). Same for dropdown options. */
html[data-theme="light"] input:not([type="checkbox"]):not([type="radio"]):focus,
html[data-theme="light"] select:focus,
html[data-theme="light"] textarea:focus { background: var(--surface); color: var(--head); }
html[data-theme="light"] select option,
html[data-theme="light"] select optgroup { background: var(--surface); color: var(--head); }
