:root {
  /* --- Brand palette, sampled directly from the Shine logo --- */
  --blue: #25a8e0;
  --blue-dark: #1b7ea8;
  --blue-deep: #145c7b;
  --green: #2ab574;
  --green-dark: #1f8757;
  --gold: #fdcf0b;
  --gold-dark: #caa508;

  /* Supporting neutrals (not from the logo, chosen to sit behind it) */
  --ink: #0c2233;
  --ink2: #123047;
  --porcelain: #f6faf9;
  --slate: #5b6b76;
  --charcoal: #142129;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", ui-sans-serif, system-ui, sans-serif;
  color: var(--charcoal);
  background: var(--porcelain);
}

.font-display { font-family: "Sora", ui-sans-serif, system-ui, sans-serif; }
.font-mono { font-family: "IBM Plex Mono", ui-monospace, monospace; }

/* =========================================================
   SIGNATURE ELEMENT: shine sweep across the hero panel,
   gold-to-blue, echoing the logo's swoosh. Runs once on load.
   ========================================================= */
.shine-panel { position: relative; overflow: hidden; }
.shine-panel::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    100deg,
    transparent 30%,
    rgba(253, 207, 11, 0.14) 45%,
    rgba(37, 168, 224, 0.30) 50%,
    rgba(253, 207, 11, 0.14) 55%,
    transparent 70%
  );
  transform: translateX(-120%);
  animation: shine-sweep 2.4s 0.4s ease-out 1;
  pointer-events: none;
}
@keyframes shine-sweep { to { transform: translateX(120%); } }

/* =========================================================
   Ambient floating orbs — soft, slow-drifting gradient blobs
   used behind the hero and CTA for depth without photography.
   ========================================================= */
.orb-field { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.35;
  animation: orb-drift 16s ease-in-out infinite;
}
.orb-blue { background: var(--blue); }
.orb-green { background: var(--green); }
.orb-gold { background: var(--gold); opacity: 0.25; }
@keyframes orb-drift {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(30px, -25px) scale(1.08); }
  66% { transform: translate(-20px, 20px) scale(0.95); }
}
@media (prefers-reduced-motion: reduce) {
  .orb { animation: none; }
  .shine-panel::after { animation: none; display: none; }
}

/* =========================================================
   Sparkle particles — tiny drifting stars echoing the logo mark.
   ========================================================= */
.sparkle-field { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.sparkle {
  position: absolute;
  color: var(--gold);
  opacity: 0;
  animation: sparkle-twinkle 3.6s ease-in-out infinite;
}
@keyframes sparkle-twinkle {
  0%, 100% { opacity: 0; transform: scale(0.5) rotate(0deg); }
  50% { opacity: 0.85; transform: scale(1) rotate(45deg); }
}
@media (prefers-reduced-motion: reduce) {
  .sparkle { animation: none; opacity: 0; }
}

/* =========================================================
   Scroll-reveal: sections fade + rise into place as the
   visitor scrolls, toggled by IntersectionObserver in base.html.
   ========================================================= */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s cubic-bezier(.21,.9,.32,1), transform 0.7s cubic-bezier(.21,.9,.32,1);
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }
.reveal-stagger.is-visible > * { animation: reveal-rise 0.6s cubic-bezier(.21,.9,.32,1) both; }
.reveal-stagger.is-visible > *:nth-child(1) { animation-delay: 0.05s; }
.reveal-stagger.is-visible > *:nth-child(2) { animation-delay: 0.12s; }
.reveal-stagger.is-visible > *:nth-child(3) { animation-delay: 0.19s; }
.reveal-stagger.is-visible > *:nth-child(4) { animation-delay: 0.26s; }
.reveal-stagger.is-visible > *:nth-child(5) { animation-delay: 0.33s; }
.reveal-stagger.is-visible > *:nth-child(6) { animation-delay: 0.40s; }
@keyframes reveal-rise {
  from { opacity: 0; transform: translateY(22px); }
  to { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal-stagger > * { opacity: 1 !important; transform: none !important; animation: none !important; transition: none !important; }
}

/* =========================================================
   Sticky header: gains blur + shadow once the page scrolls.
   ========================================================= */
.site-header { transition: box-shadow 0.3s ease, background-color 0.3s ease, padding 0.3s ease; }
.site-header.is-scrolled { box-shadow: 0 8px 30px -12px rgba(12, 34, 51, 0.45); }

/* =========================================================
   Card interactions
   ========================================================= */
.card-hover { transition: transform 0.25s cubic-bezier(.21,.9,.32,1), box-shadow 0.25s ease, border-color 0.25s ease; }
.card-hover:hover { transform: translateY(-6px); box-shadow: 0 24px 44px -22px rgba(12, 34, 51, 0.35); border-color: rgba(37, 168, 224, 0.35); }

.icon-badge { transition: transform 0.3s ease, background-color 0.3s ease; }
.card-hover:hover .icon-badge { transform: scale(1.1) rotate(-6deg); background-color: var(--blue); color: #fff; }

/* Testimonial cards: subtle tilt on hover */
.tilt-card { transition: transform 0.3s ease, box-shadow 0.3s ease; }
.tilt-card:hover { transform: translateY(-4px) rotate(-0.4deg); box-shadow: 0 20px 40px -20px rgba(0,0,0,0.45); }

/* Buttons: shine sweep on hover */
.btn-shine { position: relative; overflow: hidden; }
.btn-shine::after {
  content: "";
  position: absolute;
  top: 0; left: -60%;
  width: 40%; height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255,255,255,0.55), transparent);
  transform: skewX(-20deg);
  transition: left 0.6s ease;
}
.btn-shine:hover::after { left: 130%; }

.tick-divider {
  background-image: repeating-linear-gradient(
    90deg,
    rgba(253, 207, 11, 0.6) 0, rgba(253, 207, 11, 0.6) 6px,
    transparent 6px, transparent 14px
  );
  height: 2px;
}

/* Animated gradient underline for section eyebrows */
.eyebrow-underline { position: relative; display: inline-block; }
.eyebrow-underline::after {
  content: "";
  position: absolute; left: 0; bottom: -6px;
  width: 36px; height: 3px; border-radius: 2px;
  background: linear-gradient(90deg, var(--gold), var(--blue));
}

/* Back-to-top button */
#back-to-top {
  position: fixed; right: 1.5rem; bottom: 1.5rem; z-index: 50;
  width: 3rem; height: 3rem; border-radius: 9999px;
  display: flex; align-items: center; justify-content: center;
  background: var(--ink); color: var(--gold);
  box-shadow: 0 12px 30px -10px rgba(12,34,51,0.5);
  opacity: 0; transform: translateY(12px) scale(0.9); pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease, background-color 0.25s ease;
}
#back-to-top.visible { opacity: 1; transform: translateY(0) scale(1); pointer-events: auto; }
#back-to-top:hover { background: var(--blue); color: #fff; }

/* Floating quote button (mobile-friendly persistent CTA) */
#float-cta {
  position: fixed; left: 1.5rem; bottom: 1.5rem; z-index: 50;
  display: flex; align-items: center; gap: .5rem;
  background: var(--gold); color: var(--ink);
  padding: .75rem 1.1rem; border-radius: 9999px;
  font-weight: 600; font-size: .85rem;
  box-shadow: 0 12px 30px -10px rgba(202,165,8,0.55);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
#float-cta:hover { transform: translateY(-3px); box-shadow: 0 18px 34px -12px rgba(202,165,8,0.65); }

/* Animated counter number pulse when it finishes counting */
.count-pop { animation: count-pop 0.4s ease; }
@keyframes count-pop { 0% { transform: scale(1); } 40% { transform: scale(1.12); } 100% { transform: scale(1); } }

/* Star rating fill animation */
.star-fill { animation: star-in 0.35s ease both; }
@keyframes star-in { from { opacity: 0; transform: scale(0.4) rotate(-30deg); } to { opacity: 1; transform: scale(1) rotate(0deg); } }

/* Contact form field styling (plain <input>/<textarea> rendered by Django) */
#contact input,
#contact textarea {
  width: 100%;
  background: rgba(247, 246, 242, 0.07);
  border: 1px solid rgba(247, 246, 242, 0.18);
  border-radius: 0.6rem;
  padding: 0.7rem 0.9rem;
  color: var(--porcelain);
  font-size: 0.9rem;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}
#contact input::placeholder,
#contact textarea::placeholder { color: rgba(247, 246, 242, 0.4); }
#contact input:focus,
#contact textarea:focus {
  outline: none;
  border-color: var(--gold);
  background: rgba(247, 246, 242, 0.1);
}

/* Marquee strip (trust badges / client logos style ticker) */
.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee-scroll 26s linear infinite;
}
@keyframes marquee-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .marquee-track { animation: none; } }

/* =========================================================
   Gallery filter tabs (All / Photos / Videos)
   ========================================================= */
.gallery-filter-btn { color: var(--slate); background: transparent; }
.gallery-filter-btn.active { color: var(--ink); background: var(--porcelain); box-shadow: inset 0 0 0 1px rgba(12,34,51,0.08); }
.gallery-filter-btn:hover:not(.active) { color: var(--ink); }

/* =========================================================
   Dashboard SPA progress bar — driven by htmx request events
   (see dashboard/templates/dashboard/base.html for the JS).
   ========================================================= */
.spa-progress-bar {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  width: 0%;
  z-index: 100;
  background: linear-gradient(90deg, var(--blue), var(--green), var(--gold));
  box-shadow: 0 0 8px rgba(37, 168, 224, 0.6);
  opacity: 0;
  transition: opacity 0.25s ease;
  pointer-events: none;
}

