/* ========================================
   COMPONENTS
   Buttons, cards, badges, modals, stats
   ======================================== */

/* === BUTTONS === */
.btn-gold {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  background: var(--gradient-gold);
  color: var(--bg-dark);
  font-weight: var(--fw-semibold);
  font-size: var(--fs-small);
  letter-spacing: var(--ls-wide);
  border: none;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: all var(--duration) var(--ease-out);
  text-decoration: none;
}

.navbar .btn-gold {
  padding: 0.45rem 1.25rem;
  font-size: var(--fs-xs);
}

.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: var(--glow-gold-btn);
  color: var(--bg-dark);
}

.btn-gold:active {
  transform: translateY(0);
}

.btn-gold-lg {
  padding: 1rem 2.25rem;
  font-size: var(--fs-body);
}

.btn-outline-gold {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  background: transparent;
  color: var(--color-accent-light);
  font-weight: var(--fw-semibold);
  font-size: var(--fs-small);
  letter-spacing: var(--ls-wide);
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: all var(--duration) var(--ease-out);
  text-decoration: none;
}

.btn-outline-gold:hover {
  background: rgba(var(--color-accent-rgb), 0.1);
  border-color: var(--color-accent);
  transform: translateY(-2px);
  box-shadow: var(--glow-gold-sm);
  color: var(--color-accent-light);
}

.btn-outline-gold-lg {
  padding: 1rem 2.25rem;
  font-size: var(--fs-body);
}

/* === FEATURE CARDS === */
.card-feature {
  background: var(--gradient-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: var(--gap-lg);
  transition: all var(--duration) var(--ease-out);
  height: 100%;
}

.card-feature:hover {
  transform: translateY(-4px);
  border-color: var(--border-default);
  box-shadow: var(--shadow-lg), var(--glow-gold-sm);
}

.card-feature .feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: var(--radius);
  background: rgba(var(--color-accent-rgb), 0.1);
  border: 1px solid var(--border-subtle);
  color: var(--color-accent-light);
  font-size: 1.5rem;
  margin-bottom: 1.25rem;
  transition: all var(--duration) var(--ease-out);
}

.card-feature:hover .feature-icon {
  background: rgba(var(--color-accent-rgb), 0.15);
  box-shadow: var(--glow-gold-sm);
}

.card-feature h4 {
  font-size: var(--fs-h4);
  margin-bottom: 0.5rem;
}

.feature-subtitle {
  font-size: var(--fs-xs);
  text-transform: uppercase;
  letter-spacing: var(--ls-wide);
  color: var(--color-accent-light);
  margin-bottom: 0.5rem;
}

.card-feature p {
  font-size: var(--fs-small);
  color: var(--text-muted);
  margin-bottom: 0;
  line-height: var(--lh-relaxed);
}

.card-feature-compact {
  text-align: center;
  padding: var(--gap-lg) var(--gap-sm);
}

.card-feature-compact .feature-icon {
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 1rem;
  width: 48px;
  height: 48px;
  font-size: 1.25rem;
}

.card-feature-compact h4 {
  font-size: var(--fs-body);
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.card-feature-compact .feature-subtitle {
  margin-bottom: 0;
  font-size: 0.65rem;
}

/* === TRUST BADGES === */
.badge-trust {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1.25rem;
  background: rgba(var(--color-accent-rgb), 0.06);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-pill);
  color: var(--text-secondary);
  font-size: var(--fs-small);
  font-weight: var(--fw-medium);
  white-space: nowrap;
}

.badge-trust i {
  color: var(--color-accent);
}

/* === STAT COUNTER === */
.stat-item {
  text-align: center;
  padding: 1.5rem;
}

.stat-number {
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: var(--fw-extrabold);
  line-height: 1;
  margin-bottom: 0.5rem;
  background: var(--gradient-text-gold);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-label {
  font-size: var(--fs-small);
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: var(--ls-wider);
  font-weight: var(--fw-medium);
}

/* === VIDEO MODAL === */
.video-modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.video-modal-overlay.active {
  display: flex;
}

.video-modal-content {
  position: relative;
  width: 100%;
  max-width: 900px;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
}

.video-modal-content iframe {
  width: 100%;
  height: 100%;
  border: none;
}

.video-modal-close {
  position: fixed;
  top: 1.5rem;
  right: 1.5rem;
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.5rem;
  z-index: 10000;
  transition: color var(--duration-fast) ease;
}

.video-modal-close:hover {
  color: var(--text-primary);
}

/* === CLIENT CAROUSEL === */
/* --- 3D Client Carousel --- */
.carousel-scene {
  perspective: 1000px;
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.carousel-ring {
  width: 160px;
  height: 80px;
  position: relative;
  transform-style: preserve-3d;
  animation: carousel-spin linear infinite;
}

.carousel-ring:hover {
  animation-play-state: paused;
}

@keyframes carousel-spin {
  from { transform: rotateY(0deg); }
  to   { transform: rotateY(360deg); }
}

.client-card {
  position: absolute;
  width: 160px;
  height: 80px;
  background: var(--gradient-card);
  border: 1px solid var(--border-subtle);
  border-radius: 1.25rem;
  padding: 0.5rem 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  text-align: center;
  backface-visibility: hidden;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.25);
}

.client-card i {
  color: var(--color-accent);
  font-size: 0.85rem;
  opacity: 0.8;
}

.client-name {
  font-weight: var(--fw-medium);
  color: var(--text-primary);
  font-size: var(--fs-xs);
  line-height: var(--lh-tight);
  letter-spacing: 0.01em;
}

/* === PROBLEM / SOLUTION CARDS === */
.ps-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: var(--gap-lg);
  height: 100%;
}

.ps-card.problem,
.ps-card.solution {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.ps-card .ps-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  margin: 0 auto 1.25rem;
}

.ps-icon-inner {
  font-size: 1.5rem;
}

.ps-card.problem .ps-icon {
  background: rgba(196, 84, 84, 0.15);
  color: var(--color-danger);
}

.ps-card.solution .ps-icon {
  background: rgba(61, 139, 95, 0.15);
  color: var(--color-success);
}

.ps-item {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
}

.ps-item i {
  font-size: var(--fs-small);
  flex-shrink: 0;
}

.ps-card.problem .ps-item i {
  color: var(--color-danger);
}

.ps-card.solution .ps-item i {
  color: var(--color-success);
}

.ps-item span {
  color: var(--text-secondary);
  font-size: var(--fs-small);
  text-align: left;
}

/* === CTA BANNER === */
.cta-banner {
  background: var(--gradient-cta);
  border-radius: var(--radius-xl);
  padding: var(--gap-xl) var(--gap-lg);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-banner::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at 50% 50%, rgba(var(--color-accent-rgb), 0.08) 0%, transparent 50%);
  pointer-events: none;
}

/* === WHY CHOOSE US CARD === */
.why-card {
  text-align: center;
  padding: var(--gap-lg) var(--gap);
}

.why-card .why-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border-radius: var(--radius);
  background: rgba(var(--color-accent-rgb), 0.08);
  border: 1px solid var(--border-subtle);
  color: var(--color-accent-light);
  font-size: 1.75rem;
  margin-bottom: 1.25rem;
  transition: all var(--duration) var(--ease-out);
}

.why-card:hover .why-icon {
  background: rgba(var(--color-accent-rgb), 0.15);
  box-shadow: var(--glow-gold-sm);
  transform: translateY(-2px);
}

.why-card h4 {
  margin-bottom: 0.75rem;
}

.why-card p {
  font-size: var(--fs-small);
  color: var(--text-muted);
  margin-bottom: 0;
}

/* === SHOWCASE CARDS (Deep Dive split layout) === */
.showcase-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  overflow: hidden;
  transition: border-color var(--duration) var(--ease-out),
              box-shadow var(--duration) var(--ease-out);
}

.showcase-card:hover {
  border-color: var(--border-default);
  box-shadow: var(--shadow-lg), var(--glow-gold-sm);
}

/* Video / visual half */
.showcase-video {
  height: 100%;
  min-height: 320px;
  background: linear-gradient(135deg, var(--bg-dark-alt) 0%, var(--bg-dark) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: default;
  position: relative;
  overflow: hidden;
}

.showcase-video iframe {
  position: absolute;
  top: -50px;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
  pointer-events: none;
}

.showcase-loading {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: var(--fs-small);
  letter-spacing: var(--ls-wide);
  pointer-events: none;
}

.showcase-video-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  text-align: center;
  padding: var(--gap-lg);
}

.showcase-video-icon {
  width: 80px;
  height: 80px;
  border-radius: var(--radius-lg);
  background: rgba(var(--color-accent-rgb), 0.1);
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-accent-light);
  font-size: 2.25rem;
  transition: all var(--duration) var(--ease-out);
}

.showcase-card:hover .showcase-video-icon {
  background: rgba(var(--color-accent-rgb), 0.15);
  box-shadow: var(--glow-gold-sm);
  transform: scale(1.05);
}

/* Text half */
.showcase-text {
  padding: var(--gap-xl) var(--gap-lg);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  height: 100%;
}

.showcase-subtitle {
  font-size: var(--fs-xs);
  font-weight: var(--fw-semibold);
  text-transform: uppercase;
  letter-spacing: var(--ls-wider);
  color: var(--color-accent-light);
  margin-bottom: 0.5rem;
}

.showcase-title {
  font-size: var(--fs-h3);
  margin-bottom: 0;
}

.showcase-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 100%;
  padding-bottom: 15%;
}

.showcase-desc {
  font-size: var(--fs-body);
  color: var(--text-secondary);
  line-height: var(--lh-relaxed);
  margin-bottom: 1.5rem;
  max-width: 520px;
}

/* Highlight badges grid */
.showcase-badges {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  width: 100%;
  max-width: 420px;
}

.showcase-badges .badge-trust {
  justify-content: center;
  width: 100%;
}

/* === SHOWCASE CAROUSEL CONTROLS === */
.showcase-carousel-inner {
  position: relative;
  overflow: hidden;
  height: 400px;
}

.showcase-carousel-inner .showcase-card {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.6s var(--ease-out);
  pointer-events: none;
}

.showcase-carousel-inner .showcase-card.showcase-active {
  opacity: 1;
  pointer-events: auto;
}

.showcase-carousel-inner .showcase-card .row {
  height: 100%;
}

.showcase-carousel-inner .showcase-card .showcase-video {
  min-height: 100%;
}

.showcase-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  margin-top: 2rem;
}

.showcase-prev,
.showcase-next {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--border-accent);
  background: var(--bg-card);
  color: var(--color-accent-light);
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--duration) var(--ease-out);
}

.showcase-prev:hover,
.showcase-next:hover {
  background: rgba(var(--color-accent-rgb), 0.15);
  box-shadow: var(--glow-gold-sm);
  transform: scale(1.08);
}

.showcase-dots {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.showcase-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 1px solid var(--border-accent);
  background: transparent;
  cursor: pointer;
  padding: 0;
  transition: all var(--duration) var(--ease-out);
}

.showcase-dot.active {
  background: var(--color-accent);
  border-color: var(--color-accent);
  box-shadow: var(--glow-gold-sm);
  transform: scale(1.2);
}

.showcase-dot:hover:not(.active) {
  background: rgba(var(--color-accent-rgb), 0.3);
}

/* Responsive: stack on mobile — text on top, video below */
@media (max-width: 991.98px) {
  .showcase-carousel-inner {
    height: auto;
    aspect-ratio: auto;
    overflow: visible;
  }

  .showcase-carousel-inner .showcase-card {
    position: relative;
    inset: auto;
    display: none;
  }

  .showcase-carousel-inner .showcase-card.showcase-active {
    display: block;
  }

  .showcase-card .row {
    flex-direction: column-reverse !important;
  }

  .showcase-video {
    min-height: 0;
    aspect-ratio: 16 / 9;
    width: 100%;
  }

  .showcase-video iframe {
    top: 0;
  }

  .showcase-text {
    padding: var(--gap-lg);
  }

  .showcase-badges {
    grid-template-columns: 1fr;
    justify-items: center;
  }
}

/* === SERVICE CARDS === */
.service-card {
  display: flex;
  gap: 1.25rem;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: var(--gap-lg);
  height: 100%;
  transition: all var(--duration) var(--ease-out);
}

.service-card:hover {
  border-color: var(--border-default);
  box-shadow: var(--shadow-lg), var(--glow-gold-sm);
  transform: translateY(-4px);
}

.service-card-icon {
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  border-radius: var(--radius);
  background: rgba(var(--color-accent-rgb), 0.1);
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-accent-light);
  font-size: 1.4rem;
  transition: all var(--duration) var(--ease-out);
}

.service-card:hover .service-card-icon {
  background: rgba(var(--color-accent-rgb), 0.15);
  box-shadow: var(--glow-gold-sm);
}

.service-card-body h4 {
  font-size: var(--fs-h4);
  margin-bottom: 0.5rem;
}

.service-card-desc {
  font-size: var(--fs-small);
  color: var(--text-muted);
  line-height: var(--lh-relaxed);
  margin-bottom: 1rem;
}

.service-card-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.4rem;
}

.service-tag {
  font-size: var(--fs-xs);
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-pill);
  background: rgba(var(--color-accent-rgb), 0.08);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  white-space: nowrap;
}

/* === PROCESS STEPS === */
.services-process {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.process-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  flex: 1 1 0;
  min-width: 140px;
  max-width: 200px;
  position: relative;
}

.process-step-num {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(var(--color-accent-rgb), 0.12);
  border: 2px solid var(--border-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: var(--fw-bold);
  color: var(--color-accent-light);
  font-size: var(--fs-body);
  margin-bottom: 0.75rem;
  flex-shrink: 0;
}

.process-step-title {
  font-weight: var(--fw-semibold);
  color: var(--text-primary);
  margin-bottom: 0.35rem;
  font-size: var(--fs-small);
}

.process-step-desc {
  font-size: var(--fs-xs);
  color: var(--text-muted);
  line-height: var(--lh-normal);
  margin-bottom: 0;
}

/* Connector line between steps */
.process-step:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 22px;
  left: calc(50% + 30px);
  width: calc(100% - 60px);
  height: 1px;
  background: var(--border-accent);
  pointer-events: none;
}

@media (max-width: 767.98px) {
  .services-process {
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
  }

  .process-step {
    flex-direction: row;
    text-align: left;
    max-width: 100%;
    gap: 1rem;
  }

  .process-step-num {
    margin-bottom: 0;
  }

  .process-step:not(:last-child)::after {
    display: none;
  }

  .service-card {
    flex-direction: column;
  }
}

/* === ABOUT PAGE CONTENT === */
.about-content {
  font-size: var(--fs-body);
  line-height: var(--lh-relaxed);
}

.about-content p {
  color: var(--text-secondary);
  margin-bottom: 1.25rem;
  text-align: var(--text-align-body);
}

.about-content h4 {
  font-size: var(--fs-h4);
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

/* === ABOUT FLOATING NAV === */
.about-floating-nav {
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.25rem;
  background: rgba(26, 25, 23, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-pill);
  padding: 0.4rem;
  z-index: 1040;
  box-shadow: var(--shadow-lg);
}

.about-floating-link {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.45rem 0.85rem;
  border-radius: var(--radius-pill);
  font-size: var(--fs-xs);
  font-weight: var(--fw-medium);
  color: var(--text-muted);
  text-decoration: none;
  white-space: nowrap;
  transition: all var(--duration-fast) ease;
}

.about-floating-link:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.06);
}

.about-floating-link.active {
  color: var(--bg-dark);
  background: var(--gradient-gold);
}

.about-floating-link i {
  font-size: 0.85rem;
}

@media (max-width: 767.98px) {
  .about-floating-nav {
    bottom: 0.75rem;
    padding: 0.3rem;
    gap: 0.15rem;
  }

  .about-floating-link {
    padding: 0.4rem 0.6rem;
    font-size: 0.65rem;
  }

  .about-floating-link i {
    display: none;
  }
}

.contact-intro-text {
  max-width: 550px;
  margin: 0 auto;
  font-size: var(--fs-body-lg);
  line-height: var(--lh-relaxed);
  color: var(--text-secondary);
}

/* === CONTACT FORM === */
.contact-form {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: var(--gap-xl);
}

.contact-label {
  display: block;
  font-size: var(--fs-small);
  font-weight: var(--fw-medium);
  color: var(--text-secondary);
  margin-bottom: 0.4rem;
}

.contact-input {
  width: 100%;
  padding: 0.75rem 1rem;
  background: var(--bg-dark);
  border: 1px solid var(--border-default);
  border-radius: var(--radius);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  transition: border-color var(--duration-fast) ease,
              box-shadow var(--duration-fast) ease;
  outline: none;
}

.contact-input::placeholder {
  color: var(--text-muted);
}

.contact-input:focus {
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(var(--color-accent-rgb), 0.15);
}

.contact-input:invalid:not(:placeholder-shown):not(:focus) {
  border-color: var(--color-danger);
}

textarea.contact-input {
  resize: vertical;
  min-height: 120px;
}

select.contact-input {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%23B8B2A8' viewBox='0 0 16 16'%3E%3Cpath d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}

select.contact-input option {
  background: var(--bg-dark);
  color: var(--text-primary);
}

/* Turnstile widget centering */
.cf-turnstile {
  display: flex;
  justify-content: center;
}

/* Feedback message */
.contact-feedback {
  margin-top: 1rem;
  text-align: center;
  font-size: var(--fs-small);
  min-height: 1.5em;
}

.contact-feedback.success {
  color: var(--color-success);
}

.contact-feedback.error {
  color: var(--color-danger);
}

/* Submit button loading state */
.contact-form .btn-gold[disabled] {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}
