/* Ravencox-only additions. Template tokens stay in style-variables.css. */

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

.hero-title {
  font-size: clamp(1.85rem, 5.5vw, 2.8rem) !important;
  text-wrap: balance;
}

h2, .heading-style-3 {
  text-wrap: balance;
}

section[id] {
  scroll-margin-top: 88px;
}

#vertical-slider.splide--fade .splide__slide {
  transition: opacity 0.9s ease;
}

.navbar-toggler {
  border: 0;
  width: 44px;
  height: 44px;
  padding: 0;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border-radius: 12px;
  background: #f2f0f3;
}

.navbar-toggler:focus {
  box-shadow: none;
}

.toggler-line {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: #2e1a47;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.navbar-toggler[aria-expanded="true"] .toggler-line:first-child {
  transform: translateY(4px) rotate(45deg);
}

.navbar-toggler[aria-expanded="true"] .toggler-line:last-child {
  transform: translateY(-4px) rotate(-45deg);
}

.site-header {
  z-index: 1030;
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(46, 26, 71, 0.08);
  transition: background 0.25s ease, box-shadow 0.25s ease;
}

.site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 10px 30px rgba(46, 26, 71, 0.08);
}

.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.brand-mark {
  width: 32px;
  height: 32px;
  background: linear-gradient(160deg, #6331a2 0%, #2e1a47 100%);
  clip-path: polygon(50% 0%, 100% 38%, 82% 100%, 18% 100%, 0% 38%);
  flex-shrink: 0;
  box-shadow: 0 6px 14px rgba(46, 26, 71, 0.22);
}

.brand-copy {
  display: flex;
  align-items: baseline;
  gap: 6px;
  line-height: 1;
}

.brand-name {
  font-family: var(--font-heading, "Inter", sans-serif);
  font-weight: 800;
  letter-spacing: -0.05em;
  color: var(--color-brand-primary, #2e1a47);
  font-size: 1.2rem;
}

.brand-tag {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #8a7a99;
}

.brand-lockup.is-light .brand-mark {
  background: var(--color-accent-yellow, #e9a900);
  box-shadow: none;
}

.brand-lockup.is-light .brand-name,
.brand-lockup.is-light .brand-tag {
  color: #fff;
}

.nav-cluster {
  gap: 4px;
  padding: 6px;
  border-radius: 999px;
  background: rgba(242, 240, 243, 0.9);
}

.navbar .nav-link {
  position: relative;
  font-weight: 600;
  font-size: 0.92rem;
  letter-spacing: 0.01em;
  color: #5d5c6a !important;
  padding: 0.55rem 1rem !important;
  border-radius: 999px;
  transition: color 0.2s ease, background 0.2s ease;
}

.navbar .nav-link:hover,
.navbar .nav-link.active,
.navbar .nav-link.show {
  color: #2e1a47 !important;
  background: #fff;
  box-shadow: 0 6px 16px rgba(46, 26, 71, 0.08);
}

.navbar .dropdown-toggle::after {
  margin-left: 0.4em;
  vertical-align: 0.12em;
  border-top-width: 0.32em;
}

.dropdown-nav {
  margin-top: 12px !important;
  min-width: 280px;
  padding: 10px;
  border: 0;
  border-radius: 18px;
  box-shadow: 0 18px 40px rgba(46, 26, 71, 0.16);
}

.dropdown-nav .dropdown-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0.7rem 0.85rem;
  border-radius: 12px;
  font-weight: 600;
  color: #2e1a47;
}

.dropdown-nav .dropdown-item i {
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: #f2f0f3;
  color: #6331a2;
  font-size: 0.9rem;
}

.dropdown-nav .dropdown-item:hover,
.dropdown-nav .dropdown-item:focus {
  background: #f7f3ff;
  color: #2e1a47;
}

.btn-nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0.7rem 1.25rem;
  border: 0;
  border-radius: 999px;
  background: #2e1a47;
  color: #fff !important;
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.01em;
  box-shadow: 0 10px 22px rgba(46, 26, 71, 0.22);
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.btn-nav-cta:hover {
  background: #6331a2;
  color: #fff !important;
  transform: translateY(-1px);
  box-shadow: 0 14px 26px rgba(99, 49, 162, 0.28);
}

.btn-nav-cta i {
  font-size: 0.85rem;
}

.product-wordmark {
  font-family: var(--font-heading, "Inter", sans-serif);
  font-weight: 800;
  letter-spacing: -0.05em;
  color: var(--color-brand-primary, #2e1a47);
  font-size: clamp(1.1rem, 2vw, 1.55rem);
  opacity: 0.72;
  white-space: nowrap;
  padding: 0 1.5rem;
}

#brand-slider .splide__slide {
  min-height: 48px;
}

.contact-panel {
  background: #fff;
  border-radius: 16px;
  padding: 28px 24px;
  box-shadow: 0 8px 28px rgba(46, 26, 71, 0.08);
  height: 100%;
}

.contact-panel i {
  color: var(--color-accent-yellow, #e9a900);
  font-size: 1.35rem;
}

.contact-panel a {
  color: var(--color-brand-primary, #2e1a47);
  font-weight: 600;
}

.contact-panel a:hover {
  color: var(--color-link-hover, #6331a2);
}

.contact-form .form-control {
  border-radius: 30px;
  min-height: 48px;
}

.contact-form textarea.form-control {
  border-radius: 16px;
  min-height: 140px;
}

.form-success {
  display: none;
  background: #fff;
  border-radius: 16px;
  padding: 24px;
  color: var(--color-brand-primary, #2e1a47);
}

.form-success.is-visible {
  display: block;
}

.form-success.is-visible + form {
  display: none;
}

.offcanvas-contact dt {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-muted, #6c757d);
}

.offcanvas-contact dd {
  margin-bottom: 1rem;
}

header .navbar {
  min-height: 76px;
}

#vertical-slider {
  margin-top: 0;
}

@media (max-width: 991.98px) {
  .nav-cluster {
    gap: 2px;
    padding: 8px;
    margin: 12px 0 4px;
    border-radius: 20px;
    background: #f2f0f3;
  }

  .navbar .nav-link {
    padding: 0.85rem 1rem !important;
  }

  .dropdown-nav {
    margin: 4px 0 8px !important;
    box-shadow: none;
    background: transparent;
    padding: 0 4px 4px;
  }

  .navbar-collapse {
    background: #fff;
    border-radius: 20px;
    padding: 0.35rem 0.6rem 1rem;
    margin-top: 10px;
    box-shadow: 0 16px 36px rgba(46, 26, 71, 0.12);
  }

  .mobile-touch-cta {
    display: flex;
    justify-content: center;
    width: calc(100% - 0.5rem);
    margin: 0.65rem 0.25rem 0.15rem;
  }
}

@media (min-width: 992px) {
  .mobile-touch-cta {
    display: none;
  }
}
