/* ============================================================
   HueFlux — Custom styles (beyond Tailwind)
   ============================================================ */

:root {
  --accent: #1E4DFF;
  --accent2: #7B3EFF;
  --ink: #0A0A0A;
}

/* WordPress/Elementor compat: Tailwind preflight is OFF (so it won't break
   Astra/Elementor), which lets the theme colour headings. Force headings in
   our code sections to inherit their section's text colour instead. */
.hf h1, .hf h2, .hf h3, .hf h4, .hf h5, .hf h6,
.elementor-widget-html h1, .elementor-widget-html h2, .elementor-widget-html h3,
.elementor-widget-html h4, .elementor-widget-html h5, .elementor-widget-html h6 { color: inherit !important; }
/* logo inherits header colour (not Astra's link blue) */
.font-script { color: inherit; }
/* header hamburger/close: strip Astra's default button styling */
#menu-toggle, #menu-close { background: transparent !important; border: 0 !important; padding: 0 !important; box-shadow: none !important; -webkit-appearance: none; appearance: none; }
#menu-toggle:hover, #menu-close:hover { background: transparent !important; }
/* mobile menu links white (not Astra blue); Get-a-Quote stays accent */
#mobile-menu a { color: #fff; }
#mobile-menu a.text-accent { color: var(--accent); }
#menu-close { color: #fff !important; }
/* base text colour for our code sections = ink (like the original body),
   so headings (color:inherit) come out black on light sections; dark
   sections set text-white on their own wrappers and override this. */
.elementor-widget-html { color: var(--ink); }
/* Tailwind preflight is OFF (to protect Astra) — so re-create its key resets
   ONLY inside our code sections, so Astra's default margins/list bullets don't
   break the spacing. :where() keeps specificity low so Tailwind utilities win. */
.elementor-widget-html :where(h1,h2,h3,h4,h5,h6,p,ul,ol,figure,blockquote,dl,dd,pre) { margin: 0; }
.elementor-widget-html :where(ul,ol) { list-style: none; padding: 0; }
.elementor-widget-html :where(img,svg,video) { max-width: 100%; }
/* our CTA buttons flip to accent bg on hover — keep their label white/visible */
.elementor-widget-html .magnetic:hover { color: #fff !important; }
.elementor-widget-html a:hover { text-decoration: none; }

/* ---------- WPForms dark theme (quote section) ---------- */
#quote-card { position: relative; overflow: hidden;
  display: flex !important; flex-direction: row !important; flex-wrap: nowrap; gap: 56px; align-items: center;
  background: radial-gradient(60% 50% at 85% -10%, rgba(30,77,255,.25), transparent 65%),
              radial-gradient(50% 45% at -5% 110%, rgba(123,62,255,.18), transparent 60%), #0A0A0A !important; }
#quote-card > * { flex: 1 1 0 !important; min-width: 0 !important; width: auto !important; }
@media (max-width: 980px) { #quote-card { flex-direction: column !important; gap: 40px; align-items: stretch; } }
#quote-card .wpforms-form { color: #fff; }
#quote-card .wpforms-field-label { color: #fff !important; font-weight: 600; font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; margin-bottom: .5rem; }
#quote-card .wpforms-field-description { color: rgba(255,255,255,.4); }
#quote-card input[type=text], #quote-card input[type=email], #quote-card input[type=tel], #quote-card textarea, #quote-card select {
  background: rgba(255,255,255,.06) !important; border: 1px solid rgba(255,255,255,.14) !important; color: #fff !important;
  border-radius: .9rem !important; padding: .9rem 1.1rem !important; width: 100% !important; box-shadow: none !important;
  height: auto !important; line-height: 1.5 !important; min-height: 3.2rem; }
#quote-card input::placeholder, #quote-card textarea::placeholder { color: rgba(255,255,255,.35); }
#quote-card select option { color: #0A0A0A; }
#quote-card .wpforms-field { padding: 0 0 1.1rem 0 !important; }
#quote-card .wpforms-submit {
  background: #fff !important; color: #0A0A0A !important; border: 0 !important; border-radius: 999px !important;
  padding: .95rem 2.2rem !important; font-weight: 600 !important; font-size: 1rem !important; cursor: pointer;
  transition: background .25s, color .25s; -webkit-appearance: none; appearance: none; }
#quote-card .wpforms-submit:hover { background: var(--accent) !important; color: #fff !important; }
#quote-card .wpforms-required-label { color: var(--accent); }

html {
  -webkit-font-smoothing: antialiased;
}

/* Lenis smooth scroll */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

/* Hide default cursor on desktop when custom cursor active */
@media (min-width: 768px) {
  body.custom-cursor, body.custom-cursor a, body.custom-cursor button { cursor: none; }
}

/* ---------- Custom cursor ---------- */
#cursor {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--accent);
  transform: translate(-50%, -50%);
  left: 0; top: 0;
  transition: width .25s, height .25s, background .25s;
}
#cursor-follow {
  width: 40px;
  height: 40px;
  border: 1px solid rgba(10,10,10,.3);
  border-radius: 999px;
  transform: translate(-50%, -50%);
  left: 0; top: 0;
  transition: width .3s, height .3s, border-color .3s, background .3s;
}
#cursor-follow.hovering {
  width: 64px;
  height: 64px;
  background: rgba(30,77,255,.08);
  border-color: transparent;
}
#cursor-follow.view {
  width: 90px;
  height: 90px;
  background: var(--accent);
  border-color: transparent;
  color: #fff;
}
#cursor-follow.view::after {
  content: "View";
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 600;
  color: #fff;
}

/* ---------- Hero soft gradient background ---------- */
.hero-gradient {
  background:
    radial-gradient(55% 45% at 18% 8%, rgba(30, 77, 255, .12), transparent 70%),
    radial-gradient(45% 40% at 85% 12%, rgba(123, 62, 255, .12), transparent 70%),
    radial-gradient(60% 50% at 50% 0%, rgba(30, 77, 255, .06), transparent 60%),
    linear-gradient(180deg, #f6f8fd 0%, #ffffff 72%);
}

/* ---------- Hero background (video + particles) ---------- */
.hero-gradient > * { position: relative; z-index: 2; }
.hero-gradient > .hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-bg video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: .5;
}
.hero-bg-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg,
    rgba(246,248,253,.82) 0%,
    rgba(255,255,255,.72) 45%,
    rgba(255,255,255,.9) 82%,
    #ffffff 100%);
}
#hero-particles { position: absolute; inset: 0; width: 100%; height: 100%; }

/* ---------- Header ---------- */
#header { transition: background .3s ease, backdrop-filter .3s ease; }
#header.scrolled {
  background: rgba(255,255,255,.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

/* ---------- Header nav pills (fhoke-style grey pills) ---------- */
.nav-pill {
  display: inline-flex;
  align-items: center;
  padding: .55rem 1.1rem;
  border-radius: 999px;
  background: #ececea;
  font-size: .8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .03em;
  transition: background .25s, color .25s;
}
.nav-pill:hover { background: #dedede; }
.nav-count {
  font-size: .6em;
  margin-left: .2em;
  vertical-align: super;
  color: var(--accent);
  font-weight: 700;
}
.nav-pill--cta { background: var(--ink); color: #fff; }
.nav-pill--cta:hover { background: var(--accent); color: #fff; }

/* ---------- Preloader ---------- */
#preloader { transition: opacity .6s ease; }
#preloader.done { opacity: 0; pointer-events: none; }

/* ---------- Hero reveal (only pre-hide when JS is available) ---------- */
.hero-line { overflow: hidden; }
.hero-inner { display: block; }
.js .hero-inner { animation: heroReveal .9s cubic-bezier(.16,1,.3,1) 2.45s both; }
@keyframes heroReveal { from { transform: translateY(110%); } to { transform: translateY(0); } }

/* ---------- Reviews carousel (premium light) ---------- */
.review-track { will-change: transform; }
.reviews-viewport::before, .reviews-viewport::after {
  content: ""; position: absolute; top: 0; bottom: 0; width: 12%;
  z-index: 5; pointer-events: none;
}
.reviews-viewport::before { left: 0; background: linear-gradient(90deg, #fff 8%, transparent); }
.reviews-viewport::after { right: 0; background: linear-gradient(-90deg, #fff 8%, transparent); }
.review-card {
  position: relative;
  border: 1px solid rgba(10,10,10,.06);
  transition: transform .45s cubic-bezier(.16,1,.3,1), box-shadow .45s, border-color .45s;
}
.review-card::before {
  content: "\201C";
  position: absolute; top: 1.1rem; right: 1.6rem;
  font-family: 'Anton', sans-serif;
  font-size: 5.5rem; line-height: 1;
  color: rgba(30,77,255,.12);
  pointer-events: none;
}
.review-card:hover {
  transform: translateY(-8px);
  border-color: rgba(30,77,255,.25);
  box-shadow: 0 24px 48px -20px rgba(10,10,10,.18);
}
.review-card .flex.items-center.gap-3 { border-top: 1px solid rgba(10,10,10,.08); padding-top: 1.25rem; }

/* ---------- Contact CTA aurora (KOTA-style) ---------- */
.cta-aurora { position: relative; background: #060606; overflow: hidden; isolation: isolate; }
.cta-aurora::before, .cta-aurora::after {
  content: ""; position: absolute; z-index: -1; border-radius: 50%;
  filter: blur(90px); opacity: .6;
}
.cta-aurora::before {
  width: 65vw; height: 65vw; top: -20%; left: -10%;
  background: radial-gradient(circle at 30% 30%, #1E4DFF 0%, transparent 60%),
              radial-gradient(circle at 70% 70%, #d81b9a 0%, transparent 55%);
  animation: auroraA 16s ease-in-out infinite alternate;
}
.cta-aurora::after {
  width: 60vw; height: 60vw; bottom: -25%; right: -10%;
  background: radial-gradient(circle at 40% 40%, #7B3EFF 0%, transparent 60%),
              radial-gradient(circle at 60% 60%, #12b3c4 0%, transparent 55%);
  animation: auroraB 20s ease-in-out infinite alternate;
}
@keyframes auroraA { from { transform: translate(0,0) rotate(0); } to { transform: translate(25%,18%) rotate(40deg); } }
@keyframes auroraB { from { transform: translate(0,0) rotate(0); } to { transform: translate(-22%,-12%) rotate(-30deg); } }

/* ---------- Heading reveal (KOTA-style word rise) ---------- */
.hf h2.reveal-head, .elementor-widget-html h2.reveal-head { font-weight: 500 !important; letter-spacing: -.015em; }
.reveal-head .rh-word { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .14em; margin-bottom: -.14em; }
.reveal-head .rh-word > span { display: inline-block; }

/* .reveal-up hiding is done by GSAP in JS (never stuck hidden if JS fails) */

/* ---------- Reveal text (word by word set in JS) ---------- */
.reveal-text .word { display: inline-block; overflow: hidden; }
.reveal-text .word > span { display: inline-block; }

/* ---------- Mobile menu ---------- */
#mobile-menu { transition: transform .5s cubic-bezier(.76,0,.24,1); }
#mobile-menu.open { transform: translateY(0); }
.mobile-link { transition: color .2s, padding-left .3s; }
.mobile-link:hover { padding-left: .5rem; color: var(--accent); }

/* ---------- Marquee (tilted dark ribbon) ---------- */
.marquee { will-change: transform; }
.marquee-ribbon {
  transform: rotate(-2deg) scale(1.06);
  transform-origin: center;
}
.m-outline {
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(255,255,255,.85);
}

/* ---------- About: ghost marquee + photo collage ---------- */
.ghost-marquee {
  position: absolute; top: 6%; left: 0; width: 100%;
  overflow: hidden; pointer-events: none; z-index: 0;
}
.ghost-track {
  display: inline-flex; white-space: nowrap;
  animation: ghostScroll 30s linear infinite;
}
.ghost-track span {
  font-family: 'Anton', sans-serif;
  font-size: clamp(6rem, 14vw, 13rem);
  line-height: 1; text-transform: uppercase;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(10,10,10,.07);
  padding-right: 4rem;
}
@keyframes ghostScroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }

.collage { position: relative; }
.collage img { transition: transform .6s cubic-bezier(.16,1,.3,1); }
.collage-main { transform: rotate(2deg); }
.collage-sub  { transform: rotate(-4deg); }
.collage:hover .collage-main { transform: rotate(0deg) scale(1.015); }
.collage:hover .collage-sub  { transform: rotate(-1deg); }
.collage-chip { animation: chipFloat 5s ease-in-out infinite; }
@keyframes chipFloat { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

@media (prefers-reduced-motion: reduce) {
  .ghost-track, .collage-chip { animation: none !important; }
}

/* ---------- Service card hover sheen ---------- */
.service-card { transition: transform .5s cubic-bezier(.16,1,.3,1); }
.service-card:hover { transform: translateY(-6px); }

/* ---------- Work cards ---------- */
.work-card > div:first-child { transition: transform .6s cubic-bezier(.16,1,.3,1); }
.work-card:hover > div:first-child { transform: scale(.98); }

/* ---------- Location tags ---------- */
.loc-tag {
  display: inline-block;
  padding: .6rem 1.4rem;
  border: 1px solid rgba(10,10,10,.15);
  border-radius: 999px;
  font-weight: 600;
  transition: all .25s;
}
.loc-tag:hover {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
  transform: translateY(-3px);
}

/* ---------- Luxury form (dark card) ---------- */
.lux-card {
  position: relative; overflow: hidden; isolation: isolate;
  background:
    radial-gradient(60% 50% at 85% -10%, rgba(30,77,255,.25), transparent 65%),
    radial-gradient(50% 45% at -5% 110%, rgba(123,62,255,.18), transparent 60%),
    #0A0A0A;
}
.lux-input {
  width: 100%; border-radius: .9rem; padding: .95rem 1.15rem;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.14);
  color: #fff;
  transition: border-color .25s, background .25s, box-shadow .25s;
}
.lux-input::placeholder { color: rgba(255,255,255,.35); }
.lux-input:focus {
  outline: none; border-color: var(--accent);
  background: rgba(255,255,255,.09);
  box-shadow: 0 0 0 4px rgba(30,77,255,.18);
}
select.lux-input option { color: #0A0A0A; }
.lux-label { display: block; font-size: .72rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.55); margin-bottom: .55rem; }

/* ---------- FAQ accordion (premium light cards) ---------- */
.faq-item {
  background: #F4F4F2;
  border: 1px solid transparent;
  border-radius: 1.25rem;
  padding: 1.5rem 1.75rem;
  margin-bottom: .85rem;
  transition: background .3s, border-color .3s, box-shadow .3s;
}
.faq-item summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  display: flex; align-items: center; justify-content: center;
  width: 2.4rem; height: 2.4rem; flex-shrink: 0;
  border-radius: 999px;
  background: #fff;
  border: 1px solid rgba(10,10,10,.1);
  color: var(--ink);
  font-size: 1.35rem; font-weight: 400; line-height: 1;
  transition: transform .35s cubic-bezier(.16,1,.3,1), background .3s, color .3s;
}
.faq-item:hover summary::after { border-color: var(--accent); color: var(--accent); }
.faq-item[open] {
  background: #fff;
  border-color: rgba(30,77,255,.25);
  box-shadow: 0 20px 44px -22px rgba(10,10,10,.16);
}
.faq-item[open] summary::after {
  transform: rotate(45deg);
  background: var(--accent); border-color: var(--accent); color: #fff;
}

/* ---------- Respect reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .js .hero-inner { animation: none !important; }
  .cta-aurora::before, .cta-aurora::after { animation: none !important; }
  .hero-inner, .reveal-text .word > span, .reveal-head .rh-word > span { transform: none !important; }
  .reveal-up { opacity: 1 !important; transform: none !important; }
}
