/* ── Juno Beach Digital — Sunrise (day) theme overrides ─────── */

.jbd-page {
  min-height: 100vh;
  background-color: #121212;
  background-image: radial-gradient(ellipse at bottom, #d95b00 0%, #2a0f35 40%, #121212 70%);
  transition: background-color 0.45s ease, background-image 0.45s ease, color 0.35s ease;
}

html.theme-sunrise .jbd-page {
  color: #2c3e50;
  background-color: #fffbf7;
  background-image: linear-gradient(
    165deg,
    #f4f9fd 0%,
    #fffdf9 38%,
    #fff3e8 72%,
    #ffe8d4 100%
  );
}

/* Tailwind semantic color remaps */
html.theme-sunrise .bg-near-black { background-color: #fffbf7 !important; }
html.theme-sunrise .bg-near-black\/50 { background-color: rgba(255, 251, 247, 0.88) !important; }

html.theme-sunrise .text-light-text { color: #2c3e50 !important; }
html.theme-sunrise .text-light-text\/80 { color: rgba(44, 62, 80, 0.82) !important; }
html.theme-sunrise .text-light-text\/70 { color: rgba(44, 62, 80, 0.72) !important; }
html.theme-sunrise .text-light-text\/60 { color: rgba(44, 62, 80, 0.62) !important; }
html.theme-sunrise .text-light-text\/90 { color: rgba(44, 62, 80, 0.92) !important; }
html.theme-sunrise .text-light-text\/50 { color: rgba(44, 62, 80, 0.55) !important; }

html.theme-sunrise .text-white { color: #1a2b3c !important; }
html.theme-sunrise .text-neon-blue { color: #1e6faf !important; }
html.theme-sunrise .text-sunset-orange { color: #c76b28 !important; }
html.theme-sunrise .text-sunset-pink { color: #d45d8a !important; }
html.theme-sunrise .text-near-black { color: #1a2b3c !important; }

html.theme-sunrise .bg-deep-purple\/60,
html.theme-sunrise .bg-deep-purple\/70 {
  background-color: rgba(255, 255, 255, 0.78) !important;
  box-shadow: 0 4px 24px rgba(30, 111, 175, 0.08);
}

html.theme-sunrise .bg-neon-blue { background-color: #3d8fd4 !important; }
html.theme-sunrise .bg-neon-blue\/10 { background-color: rgba(61, 143, 212, 0.12) !important; }
html.theme-sunrise .bg-neon-blue\/20 { background-color: rgba(61, 143, 212, 0.18) !important; }

html.theme-sunrise .border-neon-blue\/20 { border-color: rgba(30, 111, 175, 0.22) !important; }
html.theme-sunrise .border-neon-blue\/30 { border-color: rgba(30, 111, 175, 0.3) !important; }
html.theme-sunrise .border-neon-blue\/40 { border-color: rgba(30, 111, 175, 0.38) !important; }
html.theme-sunrise .border-neon-blue\/50 { border-color: rgba(30, 111, 175, 0.48) !important; }
html.theme-sunrise .border-neon-blue { border-color: #3d8fd4 !important; }
html.theme-sunrise .border-sunset-orange { border-color: #e8955a !important; }
html.theme-sunrise .border-sunset-orange\/60 { border-color: rgba(232, 149, 90, 0.65) !important; }
html.theme-sunrise .border-sunset-pink { border-color: #e878a8 !important; }

html.theme-sunrise .hover\:text-white:hover { color: #1e6faf !important; }
html.theme-sunrise .hover\:text-neon-blue:hover { color: #155a8a !important; }
html.theme-sunrise .hover\:bg-neon-blue:hover { background-color: #2b7cb8 !important; }
html.theme-sunrise .hover\:bg-white:hover { background-color: #fff !important; }
html.theme-sunrise .hover\:text-near-black:hover { color: #1a2b3c !important; }
html.theme-sunrise .hover\:border-sunset-pink:hover { border-color: #e878a8 !important; }

html.theme-sunrise .shadow-neon-blue\/50 { --tw-shadow-color: rgba(61, 143, 212, 0.35) !important; }

html.theme-sunrise header.sticky,
html.theme-sunrise .sticky.top-0 {
  border-bottom-color: rgba(30, 111, 175, 0.15) !important;
  box-shadow: 0 4px 20px rgba(30, 111, 175, 0.06);
}

html.theme-sunrise .service-card {
  backdrop-filter: blur(8px);
}

html.theme-sunrise .hero-subline {
  color: rgba(44, 62, 80, 0.58);
}

html.theme-sunrise h1[style*="text-shadow"] {
  text-shadow: 0 2px 16px rgba(30, 111, 175, 0.2) !important;
}

/* Footer */
html.theme-sunrise .site-footer {
  background: linear-gradient(180deg, #f7fbfe 0%, #fff6ee 100%);
  border-top-color: rgba(30, 111, 175, 0.14);
  box-shadow: 0 -8px 32px rgba(30, 111, 175, 0.06);
}

html.theme-sunrise .site-footer::before {
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(61, 143, 212, 0.45) 35%,
    rgba(232, 149, 90, 0.35) 65%,
    transparent 100%
  );
}

html.theme-sunrise .site-footer__logo { color: #1e6faf; }
html.theme-sunrise .site-footer__logo:hover { color: #155a8a; text-shadow: none; }
html.theme-sunrise .site-footer__tagline { color: rgba(44, 62, 80, 0.55); }
html.theme-sunrise .site-footer__heading { color: #1e6faf; border-bottom-color: rgba(30, 111, 175, 0.18); }
html.theme-sunrise .site-footer__links a { color: rgba(44, 62, 80, 0.72); }
html.theme-sunrise .site-footer__links a:hover { color: #1e6faf; }
html.theme-sunrise .site-footer__contact-card {
  background: rgba(255, 255, 255, 0.85);
  border-color: rgba(30, 111, 175, 0.16);
}
html.theme-sunrise .site-footer__email { color: rgba(44, 62, 80, 0.82); }
html.theme-sunrise .site-footer__email:hover { color: #1e6faf; }
html.theme-sunrise .site-footer__bottom { border-top-color: rgba(30, 111, 175, 0.1); }
html.theme-sunrise .site-footer__bottom p,
html.theme-sunrise .site-footer__bottom-links a { color: rgba(44, 62, 80, 0.45); }
html.theme-sunrise .site-footer__bottom-links a:hover { color: #1e6faf; }

/* Mobile nav */
html.theme-sunrise #mobile-nav a { color: rgba(44, 62, 80, 0.85); }
html.theme-sunrise #mobile-nav a:hover {
  color: #1e6faf;
  background: rgba(61, 143, 212, 0.1);
}

/* Forms */
html.theme-sunrise input,
html.theme-sunrise textarea,
html.theme-sunrise select {
  color: #2c3e50 !important;
  background-color: rgba(255, 255, 255, 0.9) !important;
  border-color: rgba(30, 111, 175, 0.28) !important;
}

html.theme-sunrise input::placeholder,
html.theme-sunrise textarea::placeholder {
  color: rgba(44, 62, 80, 0.45);
}

html.theme-sunrise input:focus,
html.theme-sunrise textarea:focus,
html.theme-sunrise select:focus {
  border-color: #3d8fd4 !important;
  box-shadow: 0 0 0 2px rgba(61, 143, 212, 0.2);
}

/* Chat widget (day) */
html.theme-sunrise #jbd-chat-panel {
  background: #fffdf9 !important;
  border-color: rgba(30, 111, 175, 0.35) !important;
}

html.theme-sunrise #jbd-chat-header {
  background: linear-gradient(135deg, #e8f4fc, #fff6ee) !important;
  color: #1e6faf !important;
  border-bottom-color: rgba(30, 111, 175, 0.18) !important;
}

html.theme-sunrise #jbd-chat-header-text span {
  color: rgba(44, 62, 80, 0.72) !important;
}

html.theme-sunrise .jbd-msg.bot {
  background: rgba(232, 244, 252, 0.95) !important;
  color: #2c3e50 !important;
  border-color: rgba(30, 111, 175, 0.18) !important;
}

html.theme-sunrise .jbd-msg.user {
  background: rgba(61, 143, 212, 0.14) !important;
  color: #1a2b3c !important;
}

html.theme-sunrise #jbd-chat-input {
  background: #fff !important;
  color: #2c3e50 !important;
}

html.theme-sunrise #jbd-chat-send {
  background: #3d8fd4 !important;
  color: #fff !important;
}

/* Local preview bar */
#jbd-theme-preview {
  position: fixed;
  bottom: 1rem;
  left: 1rem;
  z-index: 99999;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
  padding: 0.45rem 0.55rem;
  border-radius: 0.65rem;
  background: rgba(18, 18, 18, 0.92);
  border: 1px solid rgba(135, 206, 235, 0.35);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.35);
  font-family: ui-sans-serif, system-ui, sans-serif;
  font-size: 0.72rem;
}

#jbd-theme-preview .jbd-theme-preview-label {
  color: rgba(234, 234, 234, 0.65);
  padding: 0 0.25rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

#jbd-theme-preview button {
  border: 1px solid rgba(135, 206, 235, 0.35);
  background: transparent;
  color: #87ceeb;
  border-radius: 0.4rem;
  padding: 0.3rem 0.5rem;
  cursor: pointer;
  font-size: 0.72rem;
}

#jbd-theme-preview button:hover,
#jbd-theme-preview button.active {
  background: rgba(135, 206, 235, 0.2);
  color: #fff;
}

html.theme-sunrise #jbd-theme-preview {
  background: rgba(255, 255, 255, 0.95);
  border-color: rgba(30, 111, 175, 0.25);
}

html.theme-sunrise #jbd-theme-preview .jbd-theme-preview-label {
  color: rgba(44, 62, 80, 0.55);
}

html.theme-sunrise #jbd-theme-preview button {
  border-color: rgba(30, 111, 175, 0.3);
  color: #1e6faf;
}

html.theme-sunrise #jbd-theme-preview button:hover,
html.theme-sunrise #jbd-theme-preview button.active {
  background: rgba(61, 143, 212, 0.15);
  color: #155a8a;
}

@media (max-width: 639px) {
  #jbd-theme-preview {
    left: 0.5rem;
    right: 0.5rem;
    bottom: max(0.5rem, env(safe-area-inset-bottom));
  }
}
