/* ============================================================================
   CANN'S AUTO SPA v5.1 — OPERATION SLEIGHBELLS SEASONAL STYLES
   Cinematic winter aesthetic: deep midnight blues, frosted glass, refined
   silver and icy white accents, restrained festive gold/crimson highlights.
   Respects prefers-reduced-motion and WCAG AA contrast (>=4.5:1).
   ============================================================================ */

/* ---------- Navigation Seasonal Link (Active Dec 1–24) ---------- */
.nav a.nav-detailmas {
  background: linear-gradient(135deg, #102542, #1b3b66);
  color: #f4f9ff !important;
  border: 1px solid #7ab2e6;
  border-radius: 99px;
  padding: 6px 13px;
  font-weight: 700;
  letter-spacing: .01em;
}
.nav a.nav-detailmas:hover {
  background: linear-gradient(135deg, #16335a, #244f87);
  border-color: #c2e2ff;
}
html.dark-mode .nav a.nav-detailmas {
  background: linear-gradient(135deg, #193860, #234c82);
  color: #ffffff !important;
  border-color: #9ad0ff;
}

/* ---------- Homepage Detailmas Hero (Primary Dec 1–24) ---------- */
.sleighbells-hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 82% 18%, rgba(124, 192, 255, 0.22), transparent 46%),
    radial-gradient(circle at 14% 84%, rgba(214, 178, 108, 0.14), transparent 42%),
    linear-gradient(135deg, rgba(6, 15, 30, 0.96) 0%, rgba(12, 29, 54, 0.90) 56%, rgba(8, 20, 38, 0.94) 100%),
    url('assets/gallery-v5rc3/garage-background.jpg') center center / cover no-repeat;
  color: #f2f7ff;
  padding: clamp(54px, 7vw, 84px) 0;
  border-bottom: 1px solid rgba(164, 208, 245, 0.28);
}
.sleighbells-hero[hidden] { display: none !important; }
.sleighbells-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.9fr);
  gap: clamp(24px, 4vw, 44px);
  align-items: center;
}
.sleighbells-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font: 700 0.78rem/1.3 'DM Sans', system-ui, sans-serif;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #cfe7ff;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(190, 224, 255, 0.32);
  border-radius: 99px;
  padding: 6px 14px;
  margin: 0 0 18px;
}
.sleighbells-hero h1 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(2.25rem, 5.2vw, 3.9rem);
  line-height: 1.08;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 16px;
  letter-spacing: -0.02em;
}
.sleighbells-hero h1 span {
  color: #e6c98b;
  font-style: italic;
}
.sleighbells-lead {
  font-size: clamp(1rem, 1.8vw, 1.16rem);
  line-height: 1.62;
  color: #dce9f8;
  max-width: 56ch;
  margin: 0 0 22px;
}
.sleighbells-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  align-items: center;
  margin: 0 0 24px;
  font-size: 0.9rem;
  color: #cbe2fa;
}
.sleighbells-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 8px;
  background: rgba(16, 38, 68, 0.78);
  border: 1px solid rgba(160, 206, 248, 0.35);
  color: #f0f7ff;
  font-weight: 600;
}
.sleighbells-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 18px;
}
.sleighbells-actions .button.primary {
  background: #e6c98b !important;
  color: #0b1b30 !important;
  border: 1px solid #f4dea8;
  font-weight: 800;
}
.sleighbells-actions .button.primary:hover {
  background: #f2d89f !important;
}
.sleighbells-actions .button.ghost-frost {
  background: rgba(255, 255, 255, 0.08);
  color: #f4f9ff !important;
  border: 1px solid rgba(196, 226, 255, 0.44);
  backdrop-filter: blur(8px);
}
.sleighbells-actions .button.ghost-frost:hover {
  background: rgba(255, 255, 255, 0.16);
}
.sleighbells-fineprint {
  font-size: 0.82rem;
  line-height: 1.55;
  color: #bdd3ea;
  max-width: 64ch;
  margin: 0;
}

/* Frosted Glass Feature Card inside Hero */
.sleighbells-frost-card {
  background: rgba(12, 29, 52, 0.72);
  border: 1px solid rgba(186, 222, 255, 0.32);
  border-radius: 16px;
  padding: clamp(20px, 3vw, 28px);
  backdrop-filter: blur(12px);
  box-shadow: 0 18px 48px rgba(2, 10, 22, 0.45);
}
.sleighbells-frost-card h2 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.38rem;
  color: #ffffff;
  margin: 0 0 10px;
}
.sleighbells-frost-card p {
  font-size: 0.93rem;
  line-height: 1.6;
  color: #d6e6f7;
  margin: 0 0 14px;
}
.sleighbells-frost-list {
  list-style: none;
  padding: 0;
  margin: 0 0 16px;
  display: grid;
  gap: 8px;
}
.sleighbells-frost-list li {
  font-size: 0.9rem;
  color: #eaf3ff;
  padding-left: 18px;
  position: relative;
}
.sleighbells-frost-list li::before {
  content: '✦';
  position: absolute;
  left: 0;
  color: #e6c98b;
  font-size: 0.8rem;
}

/* ---------- Dedicated /detailmas/ Page Layout ---------- */
.dm-page-hero {
  background:
    radial-gradient(circle at 50% 0%, rgba(118, 184, 245, 0.22), transparent 55%),
    linear-gradient(160deg, #071324 0%, #0e2240 58%, #09172b 100%);
  color: #f2f8ff;
  padding: clamp(44px, 6vw, 72px) 0 clamp(36px, 5vw, 56px);
  text-align: center;
  border-bottom: 1px solid rgba(164, 208, 245, 0.24);
}
.dm-page-hero h1 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(2.2rem, 5.5vw, 3.8rem);
  line-height: 1.08;
  color: #ffffff;
  margin: 12px auto 14px;
  max-width: 18ch;
}
.dm-page-hero h1 em {
  color: #e6c98b;
  font-style: italic;
}
.dm-page-hero p.dm-subtitle {
  color: #d7e7f8;
  max-width: 60ch;
  margin: 0 auto 20px;
  line-height: 1.6;
  font-size: 1.02rem;
}
.dm-status-bar {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 8px 16px;
  padding: 10px 20px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(188, 224, 255, 0.34);
  color: #f4f9ff;
  font: 600 0.9rem/1.4 'DM Sans', system-ui, sans-serif;
}
.dm-countdown {
  margin-top: 12px;
  font: 600 0.88rem/1.4 'DM Sans', system-ui, sans-serif;
  color: #e6c98b;
}

/* Advent Calendar Shell */
.dm-calendar-section {
  background: linear-gradient(180deg, #0b1b32 0%, #102542 100%);
  padding: clamp(36px, 5vw, 60px) 0 clamp(48px, 6vw, 76px);
  color: #f2f7ff;
}
.dm-shell {
  max-width: 920px;
  margin: 0 auto;
  padding: clamp(16px, 3vw, 28px);
  border-radius: 16px;
  background: rgba(8, 20, 38, 0.78);
  border: 1px solid rgba(176, 214, 248, 0.34);
  box-shadow: 0 24px 60px rgba(2, 10, 22, 0.45);
  backdrop-filter: blur(10px);
}
.dm-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
}
.dm-door {
  position: relative;
  min-height: 108px;
  border-radius: 10px;
  border: 1px solid rgba(176, 214, 248, 0.38);
  background: linear-gradient(155deg, #143054, #0c1f38);
  color: #f2f8ff;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 6px;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}
.dm-door:hover:not(:disabled) {
  transform: translateY(-3px);
  border-color: #e6c98b;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35);
}
.dm-door:focus-visible {
  outline: 3px solid #ffca56;
  outline-offset: 3px;
}
.dm-door:disabled {
  cursor: not-allowed;
  opacity: 0.56;
  background: linear-gradient(155deg, #0d1d33, #091526);
}
.dm-door.is-today {
  border: 2px solid #e6c98b;
  background: linear-gradient(155deg, #1b4373, #112b4d);
  box-shadow: 0 0 0 1px rgba(230, 201, 139, 0.45), 0 0 24px rgba(130, 198, 255, 0.28);
}
.dm-door.is-opened {
  background: linear-gradient(145deg, #f3e6c8, #dfc389);
  border-color: #fff3d4;
  color: #162436;
}
.dm-door.is-opened .dm-door-label {
  color: #243850;
}
.dm-door.is-past {
  background: linear-gradient(155deg, #122844, #0c1c31);
  border-color: rgba(164, 200, 232, 0.28);
}
.dm-door-symbol {
  font-size: 1.15rem;
  line-height: 1;
}
.dm-door-number {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(1.45rem, 2.5vw, 2rem);
  font-weight: 700;
  line-height: 1;
}
.dm-door-label {
  font: 700 0.68rem/1.2 'DM Sans', system-ui, sans-serif;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #c5def7;
}
.dm-shell-footer {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid rgba(176, 214, 248, 0.22);
  font-size: 0.82rem;
  color: #c2daf2;
}

/* Verification Panel */
.dm-verify-box {
  background: #f5f9ff;
  color: #10243c;
  border: 1px solid #9dc3e8;
  border-radius: 12px;
  padding: 20px;
  margin: 0 auto 20px;
  max-width: 520px;
  text-align: left;
}
.dm-verify-box h3 {
  margin: 0 0 6px;
  font-size: 1.12rem;
  color: #0c2340;
}
.dm-verify-box p {
  font-size: 0.9rem;
  margin: 0 0 12px;
  color: #2b4560;
}
.dm-verify-box label {
  display: block;
  font-size: 0.86rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: #10243c;
}
.dm-verify-box input {
  display: block;
  width: 100%;
  box-sizing: border-box;
  padding: 10px 12px;
  margin-top: 5px;
  border-radius: 8px;
  border: 1px solid #8cb1d4;
  background: #ffffff;
  color: #0c1f36;
  font-size: 1rem;
}
.dm-verify-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}
.dm-verify-msg {
  margin-top: 10px !important;
  font-weight: 600;
  color: #143f6b !important;
}

/* Reveal Modal */
.dm-modal[hidden] { display: none !important; }
.dm-modal {
  position: fixed;
  inset: 0;
  z-index: 9500;
  display: grid;
  place-items: center;
  padding: 18px;
}
.dm-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5, 14, 28, 0.82);
  backdrop-filter: blur(6px);
}
.dm-modal-card {
  position: relative;
  width: min(100%, 480px);
  background: #f9fbff;
  color: #102338;
  border: 2px solid #c9a66b;
  border-radius: 16px;
  padding: 36px 28px 30px;
  text-align: center;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.55);
}
.dm-modal-close {
  position: absolute;
  right: 12px;
  top: 10px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid #b8cce0;
  background: #ffffff;
  color: #102338;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
}
.dm-prize-icon {
  font-size: 3.4rem;
  line-height: 1.1;
  margin-bottom: 6px;
}
.dm-modal-eyebrow {
  font: 800 0.76rem/1.3 'DM Sans', system-ui, sans-serif;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #7c581c;
  margin: 0 0 8px;
}
.dm-modal-card h3 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.75rem;
  line-height: 1.2;
  color: #0b1f38;
  margin: 0 0 12px;
}
.dm-modal-card p {
  font-size: 0.96rem;
  line-height: 1.6;
  color: #263f59;
  margin: 0 0 14px;
}
.dm-prize-note {
  background: #edf4fc;
  border: 1px solid #b7d2ed;
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 0.86rem !important;
  font-weight: 600;
  color: #102c4a !important;
}
.dm-demo-controls {
  text-align: center;
  margin-top: 16px;
}
.dm-reset-btn {
  background: rgba(255, 255, 255, 0.1);
  color: #f0f7ff;
  border: 1px solid rgba(190, 224, 255, 0.45);
  border-radius: 8px;
  padding: 8px 16px;
  font: 700 0.85rem 'DM Sans', system-ui, sans-serif;
  cursor: pointer;
}
.dm-reset-btn:hover {
  background: rgba(255, 255, 255, 0.18);
}

/* Rules & Prize Pool Section */
.dm-info-section {
  background: #f4f8fc;
  color: #12263c;
  padding: clamp(36px, 5vw, 60px) 0;
}
html.dark-mode .dm-info-section {
  background: #0d1f33;
  color: #eaf2fb;
}
.dm-info-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}
.dm-info-card {
  background: #ffffff;
  border: 1px solid #d4e3f2;
  border-radius: 14px;
  padding: 24px;
}
html.dark-mode .dm-info-card {
  background: #152b44;
  border-color: #3f6082;
}
.dm-info-card h2 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.38rem;
  margin: 0 0 12px;
  color: #0e2540;
}
html.dark-mode .dm-info-card h2 {
  color: #d6ebff;
}
.dm-info-card ul {
  margin: 0;
  padding-left: 18px;
  line-height: 1.65;
  font-size: 0.93rem;
}
.dm-info-card p {
  font-size: 0.93rem;
  line-height: 1.65;
}

/* Booking Form Detailmas Reward Banner */
.dm-booking-banner {
  background: #edf5ff;
  border: 1px solid #84b4e2;
  border-radius: 10px;
  padding: 12px 15px;
  margin: 0 0 16px;
  font-size: 0.9rem;
  color: #0e2c4d;
}
html.dark-mode .dm-booking-banner {
  background: #152d48;
  border-color: #6396c9;
  color: #e6f2ff;
}

/* Responsive */
@media (max-width: 860px) {
  .sleighbells-hero-grid,
  .dm-info-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 650px) {
  .dm-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
  }
  .dm-door {
    min-height: 82px;
    gap: 4px;
  }
  .dm-door-number {
    font-size: 1.35rem;
  }
}

/* Strict Reduced Motion Compliance */
@media (prefers-reduced-motion: reduce) {
  .dm-door {
    transition: none !important;
    transform: none !important;
  }
}
