:root {
  --htla-midnight: #0A0F1C;
  --htla-midnight-card: #131B2F;
  --htla-midnight-border: #1E293B;
  --htla-navy: #0B1F33;
  --htla-gold: #C4A668;
  --htla-gold-light: #D4BB86;
  --htla-stone: #F8FAFC;
  --htla-whatsapp: #25D366;
  --htla-ease: cubic-bezier(0.16, 1, 0.3, 1);
}

html {
  scroll-behavior: smooth;
}

body {
  overflow-x: hidden;
  background: var(--htla-stone);
  color: var(--htla-navy);
  font-family: Outfit, system-ui, sans-serif;
}

@media (prefers-reduced-motion: reduce) {
  *, ::before, ::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }

  .reveal {
    opacity: 1 !important;
    transform: none !important;
  }
}

#nav-header {
  transition: all 0.5s var(--htla-ease);
}

#nav-header .nav-link {
  border-radius: 9999px;
  padding: 0.5rem 1rem;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: color 0.25s ease, background-color 0.25s ease, transform 0.25s ease;
}

#nav-header .nav-link:hover,
#nav-header .nav-link.active-nav {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

#nav-header .openLeadBtn,
.htla-btn-primary {
  background: var(--htla-gold);
  border-radius: 9999px;
  color: var(--htla-midnight);
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  box-shadow: 0 20px 60px -15px rgba(196, 166, 104, 0.35);
}

#nav-header .openLeadBtn:hover,
.htla-btn-primary:hover {
  background: var(--htla-gold-light);
}

.openLeadBtn:active,
.openCalendlyBtn:active,
.htla-btn-primary:active,
.htla-btn-secondary:active {
  transform: scale(0.98);
}

.openCalendlyBtn,
.htla-btn-secondary {
  background: var(--htla-midnight-card);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 0.75rem;
  color: #fff;
  font-weight: 800;
  transition: background-color 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}

.openCalendlyBtn:hover,
.htla-btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
}

#mobile-menu {
  background: rgba(10, 15, 28, 0.72) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  border-radius: 1.5rem !important;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.24);
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transform: translateY(-10px) translateX(-50%);
  transition: max-height 0.5s var(--htla-ease), opacity 0.3s ease, transform 0.5s var(--htla-ease), background-color 0.4s ease, border-color 0.4s ease;
}

#mobile-menu.open {
  max-height: 500px !important;
  opacity: 1 !important;
  transform: translateY(0) translateX(-50%) !important;
}

#mobile-menu .mobile-nav-link {
  color: #CBD5E1;
  font-weight: 800;
}

#mobile-menu .mobile-nav-link:hover,
#mobile-menu .mobile-nav-link.active-nav {
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
}

.hamburger-bar {
  background: var(--htla-gold) !important;
}

#backToTop {
  backdrop-filter: blur(16px);
}

#mobileStickyCTA {
  bottom: calc(1rem + env(safe-area-inset-bottom)) !important;
  background: rgba(10, 15, 28, 0.88) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  border-radius: 9999px !important;
}

.htla-subpage #hero-section {
  isolation: isolate;
  min-height: min(760px, 92dvh);
}

.htla-about #hero-section::after {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.02)),
    url("https://hermantambolaw.com/wp-content/uploads/2025/11/Tambo-Professional-headshot_real.png");
  background-position: center top;
  background-size: cover;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 2.5rem;
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.26);
  content: "";
  display: none;
  filter: grayscale(1);
  pointer-events: none;
  position: absolute;
  right: max(2.5rem, calc((100vw - 1180px) / 2));
  top: 12rem;
  width: min(30vw, 24rem);
  height: min(42vw, 30rem);
  z-index: 1;
}

.htla-subpage #hero-section > .relative,
.htla-subpage #hero-section > .relative.z-10 {
  max-width: 80rem !important;
  text-align: left !important;
}

.htla-subpage #hero-section h1 {
  letter-spacing: 0 !important;
  line-height: 1.05 !important;
  max-width: 52rem;
}

.htla-subpage #hero-section p {
  margin-left: 0 !important;
  margin-right: 0 !important;
}

.htla-subpage .text-gold-gradient {
  background: none !important;
  color: var(--htla-gold) !important;
  -webkit-text-fill-color: var(--htla-gold) !important;
}

.htla-subpage #hero-section .inline-flex,
.htla-subpage #hero-section .flex.flex-wrap {
  justify-content: flex-start !important;
}

.htla-subpage main > section[data-theme="light"],
.htla-subpage main > div[data-theme="light"] {
  background: var(--htla-stone);
}

.htla-subpage .rounded-\[2rem\],
.htla-subpage .rounded-\[2\.5rem\],
.htla-subpage .rounded-\[3rem\] {
  border-radius: 1.5rem;
}

#leadModal #modalContent,
#leadModal [role="dialog"] {
  max-width: 450px;
}

#leadModal input,
#leadModal select,
#leadModal textarea {
  border-radius: 0.75rem;
}

body.is-reader-mode #articleContentWrap > .grid > article.reveal,
#articleContentWrap > .grid > article.reveal {
  visibility: visible;
}

@media (min-width: 1024px) {
  .htla-subpage #hero-section {
    padding-bottom: 9rem !important;
    padding-top: 11rem !important;
  }

  .htla-about #hero-section::after {
    display: block;
  }

  .htla-about #hero-section > .relative,
  .htla-about #hero-section > .relative.z-10 {
    padding-right: min(42vw, 34rem);
  }
}

@media (max-width: 1023px) {
  .htla-subpage #hero-section {
    min-height: auto;
    padding-bottom: 5rem !important;
    padding-top: 8.5rem !important;
    text-align: center !important;
  }

  .htla-subpage #hero-section > .relative,
  .htla-subpage #hero-section > .relative.z-10 {
    text-align: center !important;
  }

  .htla-subpage #hero-section p {
    margin-left: auto !important;
    margin-right: auto !important;
  }

  .htla-subpage #hero-section .inline-flex,
  .htla-subpage #hero-section .flex.flex-wrap {
    justify-content: center !important;
  }

  #articleContentWrap > .grid > article.reveal {
    opacity: 1 !important;
    transform: none !important;
  }
}
