/* Base theme — always on (works even if Tailwind fails) */
html.dark,
html.dark body {
	background-color: #0d1511;
	color: #dce5de;
	font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

html.dark a {
	color: inherit;
}

.glow-effect {
  box-shadow: 0 0 20px rgba(135, 221, 0, 0.2);
}

.glow-accent {
  box-shadow: 0 0 20px rgba(135, 221, 0, 0.2);
}

.glow-hover:hover {
  box-shadow: 0 0 20px rgba(95, 224, 103, 0.4);
  border-color: rgba(95, 224, 103, 0.5);
}

.text-gradient,
.gradient-text {
  background: linear-gradient(90deg, #5fe067, #87dd00);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.bg-grid-pattern {
  background-image:
    linear-gradient(to right, rgba(135, 148, 131, 0.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(135, 148, 131, 0.05) 1px, transparent 1px);
  background-size: 40px 40px;
}

.glass-effect {
  background: rgba(13, 21, 17, 0.6);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(135, 148, 131, 0.1);
}

.glass-panel {
  background: rgba(46, 55, 50, 0.4);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(135, 221, 0, 0.15);
}

.lsd-nav-active {
  color: #87dd00;
  font-weight: 700;
  border-bottom: 2px solid #87dd00;
  padding-bottom: 0.25rem;
}

.lsd-nav-link {
  color: #bdcbb7;
  transition: all 0.3s;
}

.lsd-nav-link:hover {
  color: #87dd00;
}

.lsd-btn-primary {
  background-color: #5fe067;
  color: #00390b;
  font-weight: 600;
  padding: 0.75rem 1.5rem;
  border-radius: 0.125rem;
  transition: all 0.3s;
  text-decoration: none;
  display: inline-block;
}

.lsd-btn-primary:hover {
  background-color: #87dd00;
}

.lsd-form-input {
  width: 100%;
  background-color: #151d19 !important;
  border: 1px solid rgba(135, 148, 131, 0.45);
  border-radius: 0.875rem;
  padding: 0.875rem 1.125rem;
  color: #dce5de !important;
  font-size: 1rem;
  line-height: 1.5;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
  -webkit-text-fill-color: #dce5de;
}

.lsd-form-input::placeholder {
  color: rgba(189, 203, 183, 0.55) !important;
  opacity: 1;
}

.lsd-form-input:focus {
  border-color: #5fe067;
  outline: none;
  box-shadow: 0 0 0 2px rgba(95, 224, 103, 0.25);
  background-color: #19211d !important;
}

.lsd-form-input:-webkit-autofill,
.lsd-form-input:-webkit-autofill:hover,
.lsd-form-input:-webkit-autofill:focus {
  -webkit-box-shadow: 0 0 0 1000px #151d19 inset !important;
  box-shadow: 0 0 0 1000px #151d19 inset !important;
  -webkit-text-fill-color: #dce5de !important;
  caret-color: #dce5de;
  border-color: rgba(135, 148, 131, 0.45);
}

.lsd-form-input option {
  background-color: #19211d;
  color: #dce5de;
}

#lsd-contact-form label {
  color: #bdcbb7 !important;
}

#lsd-contact-form select.lsd-form-input {
  color-scheme: dark;
}

.prose-invert h2,
.prose-invert h3 {
  color: #dce5de;
}

.prose-invert p,
.prose-invert li {
  color: #bdcbb7;
}

.prose-invert a {
  color: #5fe067;
}

/* Logo: remove white box on dark header (white-bg PNG blend) */
.lsd-logo-link {
  display: inline-flex;
  align-items: center;
  line-height: 0;
}

.lsd-logo-img {
  mix-blend-mode: multiply;
  filter: contrast(1.05) saturate(1.1);
  max-height: 2.5rem;
  width: auto;
}

.dark .lsd-logo-img,
html.dark .lsd-logo-img {
  mix-blend-mode: screen;
  filter: contrast(1.1) saturate(1.15) brightness(1.05);
}

/* ── Mobile sidebar ─────────────────────────────────────── */

body.lsd-sidebar-open {
  overflow: hidden;
}

.lsd-sidebar-overlay {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  display: none;
}

.lsd-sidebar-overlay.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.lsd-sidebar {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 70;
  display: none;
  flex-direction: column;
  width: min(19rem, 88vw);
  height: 100%;
  background:
    linear-gradient(180deg, rgba(135, 221, 0, 0.06) 0%, transparent 45%),
    linear-gradient(135deg, rgba(13, 21, 17, 0.98) 0%, rgba(13, 21, 17, 0.94) 100%);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-left: 1px solid rgba(135, 221, 0, 0.25);
  box-shadow: -12px 0 48px rgba(0, 0, 0, 0.5), inset 1px 0 0 rgba(135, 221, 0, 0.1);
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  overflow-y: auto;
}

.lsd-sidebar.is-open {
  transform: translateX(0);
}

.lsd-sidebar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.25rem 1rem;
  border-bottom: 1px solid rgba(135, 148, 131, 0.12);
}

.lsd-sidebar-close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border: 1px solid rgba(135, 221, 0, 0.2);
  border-radius: 0.375rem;
  background: rgba(135, 221, 0, 0.06);
  color: #87dd00;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.lsd-sidebar-close:hover {
  background: rgba(135, 221, 0, 0.12);
  border-color: rgba(135, 221, 0, 0.4);
  transform: scale(1.05);
}

.lsd-sidebar-body {
  flex: 1;
  padding: 1.5rem 1.25rem;
}

.lsd-sidebar-label {
  margin: 0 0 1rem;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(135, 221, 0, 0.6);
}

.lsd-sidebar-accent {
  height: 2px;
  width: 3rem;
  margin-bottom: 1.25rem;
  border-radius: 2px;
  background: linear-gradient(90deg, #87dd00, transparent);
  opacity: 0.8;
}

.lsd-sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}

.lsd-sidebar-link {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.875rem 1rem;
  border-radius: 0.5rem;
  border: 1px solid transparent;
  color: #bdcbb7;
  font-size: 1rem;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.25s ease, background 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}

.lsd-sidebar-link::before {
  content: '';
  display: block;
  width: 3px;
  height: 0;
  border-radius: 2px;
  background: #87dd00;
  transition: height 0.25s ease;
  flex-shrink: 0;
}

.lsd-sidebar-link:hover {
  color: #87dd00;
  background: rgba(135, 221, 0, 0.06);
  border-color: rgba(135, 221, 0, 0.12);
  transform: translateX(4px);
}

.lsd-sidebar-link:hover::before {
  height: 1rem;
}

.lsd-sidebar-link-active {
  color: #87dd00;
  font-weight: 700;
  background: rgba(135, 221, 0, 0.08);
  border-color: rgba(135, 221, 0, 0.2);
  box-shadow: inset 0 0 20px rgba(135, 221, 0, 0.04);
}

.lsd-sidebar-link-active::before {
  height: 1.25rem;
}

.lsd-sidebar-footer {
  padding: 1.25rem;
  border-top: 1px solid rgba(135, 148, 131, 0.12);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.3s ease 0.2s, transform 0.3s ease 0.2s;
}

.lsd-sidebar.is-open .lsd-sidebar-footer {
  opacity: 1;
  transform: translateY(0);
}

.lsd-sidebar-cta {
  box-shadow: 0 0 20px rgba(95, 224, 103, 0.15);
  transition: box-shadow 0.3s ease, background-color 0.3s ease;
}

.lsd-sidebar-cta:hover {
  box-shadow: 0 0 28px rgba(95, 224, 103, 0.3);
}

.lsd-sidebar.is-open .lsd-sidebar-nav .menu-item {
  opacity: 0;
  transform: translateX(12px);
  animation: lsd-sidebar-item-in 0.35s ease forwards;
}

.lsd-sidebar.is-open .lsd-sidebar-nav .menu-item:nth-child(1) { animation-delay: 0.06s; }
.lsd-sidebar.is-open .lsd-sidebar-nav .menu-item:nth-child(2) { animation-delay: 0.11s; }
.lsd-sidebar.is-open .lsd-sidebar-nav .menu-item:nth-child(3) { animation-delay: 0.16s; }
.lsd-sidebar.is-open .lsd-sidebar-nav .menu-item:nth-child(4) { animation-delay: 0.21s; }
.lsd-sidebar.is-open .lsd-sidebar-nav .menu-item:nth-child(5) { animation-delay: 0.26s; }

.lsd-sidebar:not(.is-open) .lsd-sidebar-nav .menu-item {
  opacity: 0;
  transform: translateX(12px);
  animation: none;
}

@keyframes lsd-sidebar-item-in {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Hamburger toggle pulse */
.lsd-mobile-toggle {
  transition: transform 0.2s ease;
}

.lsd-mobile-toggle:active {
  transform: scale(0.92);
}

.lsd-mobile-toggle-icon {
  transition: transform 0.3s ease;
}

.lsd-mobile-toggle[aria-expanded="true"] .lsd-mobile-toggle-icon {
  transform: rotate(90deg);
}

@media (max-width: 767px) {
  .lsd-sidebar {
    display: flex;
  }

  .lsd-sidebar-overlay {
    display: block;
  }

  .lsd-mobile-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
  }
}

@media (min-width: 768px) {
  .lsd-sidebar,
  .lsd-sidebar-overlay {
    display: none !important;
  }

  .lsd-mobile-toggle {
    display: none !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .lsd-sidebar,
  .lsd-sidebar-overlay,
  .lsd-sidebar-link,
  .lsd-sidebar-footer,
  .lsd-mobile-toggle-icon {
    transition: none !important;
    animation: none !important;
  }

  .lsd-sidebar.is-open .lsd-sidebar-nav .menu-item {
    opacity: 1;
    transform: none;
  }

  .lsd-sidebar.is-open .lsd-sidebar-footer {
    opacity: 1;
    transform: none;
  }
}

/* ── Homepage video player ───────────────────────────────── */

.lsd-video-frame {
  width: 100%;
  max-width: 22rem;
}

@media (min-width: 640px) {
  .lsd-video-frame {
    max-width: 26rem;
  }
}

@media (min-width: 768px) {
  .lsd-video-frame {
    max-width: 30rem;
  }
}

.lsd-video-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 9 / 16;
  max-height: min(72vh, 42rem);
  margin-inline: auto;
  background-color: #0d1511;
}

.lsd-hero-video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center center;
  background-color: #0d1511;
}

.lsd-video-play {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 0;
  border: 0;
  background: rgba(13, 21, 17, 0.35);
  cursor: pointer;
  transition: background 0.3s ease, opacity 0.3s ease;
}

.lsd-video-play:hover {
  background: rgba(13, 21, 17, 0.2);
}

.lsd-video-play:hover span {
  transform: scale(1.08);
}

.lsd-video-play span {
  transition: transform 0.3s ease;
}

.lsd-video-wrap.is-playing .lsd-video-play {
  opacity: 0;
  pointer-events: none;
}

.lsd-video-wrap.is-playing .lsd-hero-video {
  z-index: 3;
}

.lsd-video-wrap.is-loading .lsd-video-play-icon {
  opacity: 0;
}

.lsd-video-loading {
  display: none;
  width: 2rem;
  height: 2rem;
  border: 3px solid rgba(135, 221, 0, 0.25);
  border-top-color: #87dd00;
  border-radius: 50%;
  animation: lsd-video-spin 0.8s linear infinite;
}

.lsd-video-wrap.is-loading .lsd-video-loading {
  display: block;
  position: absolute;
}

.lsd-video-play-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lsd-video-error {
  position: absolute;
  bottom: 1rem;
  left: 1rem;
  right: 1rem;
  z-index: 4;
  margin: 0;
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  background: rgba(147, 0, 10, 0.9);
  color: #ffdad6;
  font-size: 0.875rem;
  text-align: center;
}

@keyframes lsd-video-spin {
  to { transform: rotate(360deg); }
}

/* ── Homepage stats hero ─────────────────────────────────── */

.lsd-stats-hero {
  position: relative;
  background:
    radial-gradient(circle at 85% 50%, rgba(135, 221, 0, 0.14) 0%, transparent 55%),
    linear-gradient(135deg, #0d1511 0%, #151d19 45%, #19211d 100%);
  padding: 1.5rem;
}

@media (min-width: 768px) {
  .lsd-stats-hero {
    padding: 2rem 2.5rem;
  }
}

.lsd-stats-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  padding: 0.35rem 0.75rem;
  border-radius: 0.25rem;
  border: 1px solid rgba(135, 148, 131, 0.3);
  background: rgba(13, 21, 17, 0.8);
  backdrop-filter: blur(8px);
}

.lsd-stats-hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: center;
}

@media (min-width: 768px) {
  .lsd-stats-hero-grid {
    grid-template-columns: 1fr 1.1fr;
    gap: 3rem;
  }
}

.lsd-stats-hero-visual {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 12rem;
  padding: 1.5rem;
  border-radius: 0.75rem;
  border: 1px solid rgba(135, 221, 0, 0.12);
  background: rgba(13, 21, 17, 0.45);
}

.lsd-stats-chart {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 0.75rem;
  width: 100%;
  max-width: 16rem;
  height: 8rem;
}

.lsd-stats-bar {
  flex: 1;
  max-width: 2.5rem;
  border-radius: 0.375rem 0.375rem 0 0;
  background: linear-gradient(180deg, rgba(95, 224, 103, 0.35) 0%, rgba(95, 224, 103, 0.08) 100%);
  border: 1px solid rgba(95, 224, 103, 0.2);
}

.lsd-stats-bar-highlight {
  background: linear-gradient(180deg, #87dd00 0%, rgba(135, 221, 0, 0.25) 100%);
  box-shadow: 0 0 20px rgba(135, 221, 0, 0.25);
}

.lsd-stats-visual-label {
  margin: 1rem 0 0;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(189, 203, 183, 0.7);
}

.lsd-stats-hero-metrics {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.lsd-stats-metric {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem 1.25rem;
  border-radius: 0.75rem;
  border: 1px solid rgba(135, 148, 131, 0.15);
  background: rgba(25, 33, 29, 0.65);
  transition: border-color 0.25s ease, background 0.25s ease;
}

.lsd-stats-metric:hover {
  border-color: rgba(135, 221, 0, 0.25);
  background: rgba(25, 33, 29, 0.85);
}

.lsd-stats-metric .material-symbols-outlined {
  flex-shrink: 0;
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  background: rgba(135, 221, 0, 0.1);
  color: #87dd00;
  font-size: 1.35rem;
}

.lsd-stats-metric p {
  margin: 0;
  font-size: 1rem;
  line-height: 1.5;
  color: #dce5de;
}

.lsd-stats-metric strong {
  color: #87dd00;
  font-weight: 700;
}

.lsd-stat-card {
  height: 100%;
}

/* ── Social links (footer + contact) ─────────────────────── */

.lsd-social-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
}

.lsd-social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 9999px;
  border: 1px solid rgba(135, 148, 131, 0.25);
  background: rgba(25, 33, 29, 0.65);
  color: #87dd00;
  text-decoration: none;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease, color 0.2s ease;
}

.lsd-social-link:hover {
  border-color: rgba(135, 221, 0, 0.45);
  background: rgba(135, 221, 0, 0.12);
  color: #b8f028;
  transform: translateY(-1px);
}

.lsd-social-link .material-symbols-outlined {
  font-size: 1.25rem;
}

.lsd-social-links--contact {
  padding-top: 0.5rem;
}

/* ── Floating WhatsApp button ────────────────────────────── */

.lsd-whatsapp-fab {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 9998;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.75rem;
  height: 3.75rem;
  border-radius: 9999px;
  background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
  color: #ffffff;
  text-decoration: none;
  box-shadow:
    0 8px 24px rgba(37, 211, 102, 0.35),
    0 0 0 1px rgba(255, 255, 255, 0.12) inset;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  animation: lsd-whatsapp-pulse 2.5s ease-in-out infinite;
}

.lsd-whatsapp-fab:hover {
  transform: translateY(-2px) scale(1.04);
  box-shadow:
    0 12px 28px rgba(37, 211, 102, 0.45),
    0 0 0 1px rgba(255, 255, 255, 0.18) inset;
  color: #ffffff;
}

.lsd-whatsapp-fab:focus-visible {
  outline: 2px solid #87dd00;
  outline-offset: 3px;
}

@keyframes lsd-whatsapp-pulse {
  0%, 100% { box-shadow: 0 8px 24px rgba(37, 211, 102, 0.35), 0 0 0 0 rgba(37, 211, 102, 0.35); }
  50% { box-shadow: 0 8px 24px rgba(37, 211, 102, 0.35), 0 0 0 10px rgba(37, 211, 102, 0); }
}

@media (max-width: 640px) {
  .lsd-whatsapp-fab {
    right: 1rem;
    bottom: 1rem;
    width: 3.5rem;
    height: 3.5rem;
  }
}
