/* =========================================================
   Anaya Live Agency — Custom styles
   Tailwind handles most. This file: loader, gradients, cards.
   ========================================================= */

html { scroll-behavior: smooth; }

body.no-scroll { overflow: hidden; }

/* =========================================================
   HERO BACKGROUND
   ========================================================= */
.hero-gradient-bg {
  background: linear-gradient(15deg, #000000 -2.78%, #4E4223 39.82%, #000000 78.87%);
}

/* Big gold ellipse behind the woman */
.hero-ellipse {
  width: 480px;
  height: 580px;
  left: 50%;
  top: 100px;
  transform: translateX(-25%) rotate(-160deg);
  background:
    linear-gradient(0deg, #CDAA63, #CDAA63),
    radial-gradient(50% 50% at 50% 50%, rgba(0,1,1,0) 0%, rgba(8,42,31,0) 99.1%);
  background-blend-mode: color, normal;
  box-shadow:
    inset 0 4px 4px rgba(255,255,255,0.55),
    inset 0 -4px 4px #FFEFB5;
  border-radius: 50%;
  filter: blur(0.5px);
}

/* Small gold accent ellipse */
.hero-ellipse-small {
  width: 168px;
  height: 202px;
  left: 70%;
  top: 420px;
  transform: rotate(-160deg);
  background:
    linear-gradient(0deg, #CDAA63, #CDAA63),
    radial-gradient(50% 50% at 50% 50%, rgba(0,1,1,0) 0%, rgba(8,42,31,0) 99.1%);
  background-blend-mode: hue, normal;
  box-shadow:
    inset 0 4px 4px rgba(255,255,255,0.55),
    inset 0 -4px 4px #FFEFB5;
  border-radius: 50%;
  opacity: 0.85;
}

@media (max-width: 1023px) {
  .hero-ellipse { display: none; }
  .hero-ellipse-small { display: none; }
}

.hero-image-float {
  animation: floatY 7s ease-in-out infinite;
}

@keyframes floatY {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

/* =========================================================
   SERVICE CARDS (4 boxes with TikTok icon)
   ========================================================= */
.service-card {
  position: relative;
  background: #1a1a1a;
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 22px;
  padding: 56px 18px 28px;
  transition: transform .4s ease, border-color .4s ease, box-shadow .4s ease;
}

.service-card:hover {
  transform: translateY(-6px);
  border-color: rgba(205,170,99,0.4);
  box-shadow: 0 10px 40px -10px rgba(205,170,99,0.25);
}

.service-card-icon {
  position: absolute;
  top: -28px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(0deg, #CDAA63, #CDAA63);
  box-shadow:
    inset 0 4px 4px rgba(255,255,255,0.55),
    inset 0 -4px 4px #FFEFB5,
    0 8px 24px -8px rgba(205,170,99,0.6);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* =========================================================
   SERVICE TAGS (Nos Services pills)
   ========================================================= */
.service-tag {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 28px;
  border-radius: 999px;
  transition: transform .3s ease, background-color .3s ease, border-color .3s ease;
  cursor: pointer;
}

.service-tag-outline {
  background: #0A0A0A;
  border: 1px solid rgba(255,255,255,0.9);
}

.service-tag-filled {
  background: #161616;
  border: 1px solid transparent;
}

.service-tag:hover {
  transform: translateY(-3px);
  border-color: #CDAA63;
  background: #161616;
}

/* =========================================================
   TESTIMONIAL ARROWS
   ========================================================= */
.testimonial-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: transparent;
  color: #CDAA63;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color .2s ease, color .2s ease;
  z-index: 20;
}

.testimonial-arrow:hover {
  background: rgba(205,170,99,0.15);
}

.testimonial-arrow-left { left: -64px; }
.testimonial-arrow-right { right: -64px; }

@media (max-width: 1024px) {
  .testimonial-arrow-left { left: 8px; }
  .testimonial-arrow-right { right: 8px; }
}

/* Pagination dots under the testimonial card */
.testimonial-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 28px;
}

.testimonial-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: 0;
  padding: 0;
  background: rgba(255, 255, 255, 0.25);
  cursor: pointer;
  transition: background-color .25s ease, width .25s ease, transform .15s ease;
}

.testimonial-dot:hover { background: rgba(205, 170, 99, 0.7); }

.testimonial-dot.is-active {
  background: #CDAA63;
  width: 26px;
  border-radius: 999px;
}

.testimonial-dot:focus-visible {
  outline: 2px solid #CDAA63;
  outline-offset: 3px;
}

/* Slide transition between testimonials.
   Direction set by main.js: `slide-from-right` (next) or `slide-from-left` (prev).
   The animation runs on the inner grid; the card itself clips the overflow. */
#testimonial-card { overflow: hidden; }
#testimonial-card > div {
  will-change: transform, opacity;
}

#testimonial-card.slide-from-right > div {
  animation: testimonial-slide-in-right .42s cubic-bezier(.2, .8, .25, 1) both;
}
#testimonial-card.slide-from-left > div {
  animation: testimonial-slide-in-left .42s cubic-bezier(.2, .8, .25, 1) both;
}

@keyframes testimonial-slide-in-right {
  from { transform: translateX(8%);  opacity: 0; }
  to   { transform: translateX(0);   opacity: 1; }
}
@keyframes testimonial-slide-in-left {
  from { transform: translateX(-8%); opacity: 0; }
  to   { transform: translateX(0);   opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  #testimonial-card.slide-from-right > div,
  #testimonial-card.slide-from-left > div {
    animation: none;
  }
}

/* =========================================================
   FOOTER SOCIALS
   ========================================================= */
.social-icon {
  font-size: 18px;
  color: #FFFFFF;
  opacity: 0.85;
  transition: color .2s ease, opacity .2s ease, transform .2s ease;
}
.social-icon:hover {
  color: #CDAA63;
  opacity: 1;
  transform: translateY(-2px);
}

/* =========================================================
   REVEAL ON SCROLL
   ========================================================= */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .8s ease, transform .8s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* =========================================================
   LOADER
   ========================================================= */
#loader.is-hidden {
  opacity: 0;
  pointer-events: none;
}

.loader-stage {
  position: relative;
  width: 220px;
  height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Pulsating gold halo behind logo */
.loader-halo {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(205,170,99,0.45) 0%, rgba(205,170,99,0) 70%);
  animation: haloPulse 2.4s ease-in-out infinite;
}

@keyframes haloPulse {
  0%, 100% { transform: scale(0.85); opacity: 0.5; }
  50% { transform: scale(1.15); opacity: 1; }
}

/* Centered logo */
.loader-logo {
  position: relative;
  z-index: 5;
  width: 120px;
  height: auto;
  animation: logoBeat 1.6s ease-in-out infinite;
}
.loader-logo img { width: 100%; height: auto; }

@keyframes logoBeat {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.06); }
}

/* Audio equalizer (TikTok LIVE vibe) */
.loader-equalizer {
  position: absolute;
  bottom: -14px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  align-items: flex-end;
  height: 26px;
  z-index: 8;
}
.loader-equalizer span {
  display: block;
  width: 4px;
  background: linear-gradient(to top, #CDAA63, #FFEFB5);
  border-radius: 3px;
  animation: eqBounce 1s ease-in-out infinite;
}
.loader-equalizer span:nth-child(1) { animation-delay: 0s;   height: 50%; }
.loader-equalizer span:nth-child(2) { animation-delay: .15s; height: 80%; }
.loader-equalizer span:nth-child(3) { animation-delay: .3s;  height: 100%; }
.loader-equalizer span:nth-child(4) { animation-delay: .45s; height: 70%; }
.loader-equalizer span:nth-child(5) { animation-delay: .6s;  height: 40%; }

@keyframes eqBounce {
  0%, 100% { transform: scaleY(0.4); }
  50% { transform: scaleY(1); }
}

/* Orbiting dots */
.loader-orbit {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  animation: orbitSpin 3s linear infinite;
}
.loader-orbit span {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #CDAA63;
  box-shadow: 0 0 18px #CDAA63;
}
.loader-orbit-2 {
  animation-duration: 4.5s;
  animation-direction: reverse;
  width: 180px;
  height: 180px;
}
.loader-orbit-2 span {
  width: 8px;
  height: 8px;
  background: #FFEFB5;
  box-shadow: 0 0 12px #FFEFB5;
}

@keyframes orbitSpin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* Loader progress bar */
.loader-progress {
  width: 0%;
  animation: progressFill 1.8s ease-out forwards;
}

@keyframes progressFill {
  from { width: 0%; }
  to { width: 100%; }
}

/* =========================================================
   PHOSPHOR ICONS — ensure they inherit font properly
   ========================================================= */
[class^="ph"], [class*=" ph"] {
  display: inline-block;
  line-height: 1;
}

/* =========================================================
   VIDEO THUMBNAIL (impact section — opens modal on click)
   ========================================================= */
.video-thumb {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  border-radius: 14px;
  overflow: hidden;
  -webkit-tap-highlight-color: transparent;
}

.video-thumb img {
  display: block;
  width: 100%;
  height: auto;
  transition: transform .5s ease, filter .4s ease;
}

.video-thumb:hover img,
.video-thumb:focus-visible img {
  transform: scale(1.03);
  filter: brightness(.78);
}

.video-thumb__play {
  position: absolute;
  top: 50%;
  left: 50%;
  width: clamp(64px, 12vw, 92px);
  height: clamp(64px, 12vw, 92px);
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: rgba(205, 170, 99, 0.95);
  color: #1A1A1A;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  box-shadow:
    0 16px 48px -8px rgba(0,0,0,0.55),
    0 0 0 8px rgba(255,255,255,0.12);
  transition: transform .25s ease, background-color .25s ease, box-shadow .25s ease;
}

.video-thumb__play svg {
  width: 42%;
  height: 42%;
  margin-left: 4px; /* optical centering of the play triangle */
  fill: currentColor;
}

.video-thumb:hover .video-thumb__play,
.video-thumb:focus-visible .video-thumb__play {
  transform: translate(-50%, -50%) scale(1.08);
  background: #FFEFB5;
  box-shadow:
    0 22px 60px -8px rgba(0,0,0,0.6),
    0 0 0 12px rgba(255, 239, 181, 0.18);
}

.video-thumb:focus-visible {
  outline: 3px solid #CDAA63;
  outline-offset: 4px;
}

/* =========================================================
   VIDEO MODAL
   ========================================================= */
.video-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  animation: video-modal-fade .2s ease-out;
}

.video-modal[hidden] { display: none; }

@keyframes video-modal-fade {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.video-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  cursor: pointer;
}

.video-modal__panel {
  position: relative;
  width: min(100%, 960px);
  background: #0A0A0A;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.8);
  animation: video-modal-pop .25s cubic-bezier(.2,.9,.3,1.1);
}

@keyframes video-modal-pop {
  from { opacity: 0; transform: scale(.96); }
  to   { opacity: 1; transform: scale(1); }
}

.video-modal__video {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  background: #000;
  outline: none;
}

.video-modal__close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 0;
  background: rgba(0, 0, 0, 0.65);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  transition: background-color .2s ease, color .2s ease, transform .15s ease;
}

.video-modal__close:hover,
.video-modal__close:focus-visible {
  background: #CDAA63;
  color: #1A1A1A;
  outline: none;
}

.video-modal__close:active { transform: scale(.95); }

.video-modal__close svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
  stroke-linecap: round;
  fill: none;
}

@media (max-width: 640px) {
  .video-modal__close { top: 8px; right: 8px; width: 36px; height: 36px; }
  .video-modal__panel { border-radius: 12px; }
}

/* Prevent page scroll while modal is open (set by main.js) */
body.video-modal-open { overflow: hidden; }

#lang-flag svg {
  width: 22px;
}
.lang-option svg {
  width: 22px;
}

/* =========================================================
   FAQ PAGE
   ========================================================= */
.faq-page {
  position: relative;
  background: #0A0A0A;
  padding: 160px 16px 80px;
  overflow: hidden;
  min-height: calc(100vh - 200px);
}

@media (min-width: 1024px) {
  .faq-page { padding: 200px 24px 120px; }
}

.faq-page__bg {
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: min(1200px, 95vw);
  height: 600px;
  background:
    radial-gradient(60% 50% at 50% 0%,
      rgba(205, 170, 99, 0.10) 0%,
      rgba(10, 10, 10, 0) 70%);
  pointer-events: none;
}

.faq-page__hero {
  position: relative;
  max-width: 820px;
  margin: 0 auto 56px;
  text-align: center;
}

@media (min-width: 1024px) {
  .faq-page__hero { margin-bottom: 72px; }
}

.faq-page__eyebrow {
  font-family: 'Rubik', sans-serif;
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: #CDAA63;
  margin: 0 0 16px;
}

.faq-page__title {
  font-family: 'Rubik', sans-serif;
  font-weight: 800;
  font-size: clamp(34px, 5.5vw, 58px);
  line-height: 1.05;
  letter-spacing: -0.025em;
  color: #FFFFFF;
  margin: 0;
}

.faq-page__subtitle {
  font-family: 'Rubik', sans-serif;
  font-weight: 400;
  font-size: clamp(15px, 1.7vw, 18px);
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.78);
  margin: 22px auto 0;
  max-width: 640px;
}

/* List + accordion items */
.faq-list {
  position: relative;
  max-width: 860px;
  margin: 0 auto;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.faq-item { margin: 0; }

.faq-details {
  background: #141414;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 18px;
  overflow: hidden;
  transition: border-color .25s ease, background-color .25s ease, transform .2s ease;
}

.faq-details:hover {
  border-color: rgba(205, 170, 99, 0.25);
}

.faq-details[open] {
  background: linear-gradient(180deg, #1c1a14 0%, #141210 100%);
  border-color: rgba(205, 170, 99, 0.45);
  box-shadow: 0 18px 40px -20px rgba(205, 170, 99, 0.15);
}

.faq-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 24px;
  cursor: pointer;
  list-style: none;
  font-family: 'Rubik', sans-serif;
  font-weight: 500;
  font-size: clamp(15px, 1.8vw, 18px);
  line-height: 1.35;
  color: #FFFFFF;
  user-select: none;
  transition: color .2s ease;
}

.faq-summary::-webkit-details-marker { display: none; }
.faq-summary::marker { content: ''; }

.faq-summary:focus-visible {
  outline: 2px solid #CDAA63;
  outline-offset: -2px;
  border-radius: 16px;
}

.faq-details[open] .faq-summary {
  color: #FFEFB5;
}

.faq-q {
  flex: 1;
  letter-spacing: -0.01em;
}

.faq-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(205, 170, 99, 0.12);
  color: #CDAA63;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform .3s cubic-bezier(.2,.8,.25,1), background-color .25s ease;
}

.faq-icon svg {
  width: 16px;
  height: 16px;
}

.faq-details[open] .faq-icon {
  transform: rotate(180deg);
  background: rgba(205, 170, 99, 0.22);
}

.faq-a {
  padding: 0 24px 24px 24px;
  margin: 0;
  font-family: 'Rubik', sans-serif;
  font-size: clamp(14px, 1.6vw, 16px);
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.82);
  letter-spacing: -0.005em;
  animation: faq-answer-fade .35s ease-out both;
}

@keyframes faq-answer-fade {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  .faq-a { animation: none; }
  .faq-icon { transition: none; }
}

/* Bottom CTA */
.faq-page__cta {
  position: relative;
  max-width: 860px;
  margin: 56px auto 0;
  padding: 36px 28px;
  border-radius: 22px;
  background:
    radial-gradient(120% 80% at 0% 0%, rgba(205,170,99,0.18) 0%, rgba(205,170,99,0) 60%),
    linear-gradient(160deg, #1a1410 0%, #0d0a06 100%);
  border: 1px solid rgba(205, 170, 99, 0.22);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  text-align: center;
}

@media (min-width: 720px) {
  .faq-page__cta {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

.faq-page__cta-text {
  margin: 0;
  font-family: 'Rubik', sans-serif;
  font-size: clamp(15px, 1.8vw, 19px);
  color: #FFFFFF;
  font-weight: 500;
  letter-spacing: -0.01em;
}

.faq-page__cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  background: #CDAA63;
  color: #081A17;
  font-family: 'Rubik', sans-serif;
  font-weight: 700;
  font-size: 16px;
  border-radius: 999px;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color .2s ease, transform .15s ease;
  box-shadow: 0 12px 30px -12px rgba(205, 170, 99, 0.5);
}

.faq-page__cta-btn:hover { background: #FFEFB5; }
.faq-page__cta-btn:active { transform: translateY(1px); }
