/* Above-the-fold critical styles — header, hero, layout utilities */
:root {
  --default-font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --heading-font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --background-color: #ffffff;
  --default-color: #444444;
  --heading-color: #222222;
  --accent-color: #2A3855;
  --surface-color: #ffffff;
  --contrast-color: #ffffff;
  --nav-color: #222222;
  --nav-hover-color: #2A3855;
  scroll-behavior: smooth;
}

*, *::before, *::after { box-sizing: border-box; }

html { overflow-x: hidden; max-width: 100%; }

body {
  margin: 0;
  color: var(--default-color);
  background-color: var(--background-color);
  font-family: var(--default-font);
  overflow-x: hidden;
  max-width: 100%;
}

img { max-width: 100%; height: auto; vertical-align: middle; }

a { color: var(--accent-color); text-decoration: none; }

h1, h2, h3, h4, h5, h6 {
  color: var(--heading-color);
  font-family: var(--heading-font);
}

.container {
  width: 100%;
  padding-right: 12px;
  padding-left: 12px;
  margin-right: auto;
  margin-left: auto;
}

@media (min-width: 576px) {
  .container { max-width: 540px; }
}

@media (min-width: 768px) {
  .container { max-width: 720px; }
}

@media (min-width: 992px) {
  .container { max-width: 960px; }
}

@media (min-width: 1200px) {
  .container { max-width: 1140px; }
}

.d-flex { display: flex !important; }
.d-none { display: none !important; }
.align-items-center { align-items: center !important; }
.justify-content-between { justify-content: space-between !important; }
.flex-wrap { flex-wrap: wrap !important; }
.gap-2 { gap: 0.5rem !important; }
.gap-3 { gap: 1rem !important; }
.mt-4 { margin-top: 1.5rem !important; }
.mb-0 { margin-bottom: 0 !important; }
.position-relative { position: relative !important; }
.sticky-top { position: sticky; top: 0; z-index: 1020; }

@media (min-width: 576px) {
  .d-sm-inline-flex { display: inline-flex !important; }
}

@media (min-width: 768px) {
  .d-md-inline-flex { display: inline-flex !important; }
}

@media (min-width: 1200px) {
  .d-xl-none { display: none !important; }
}

@media (min-width: 992px) {
  .d-lg-none { display: none !important; }
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  z-index: 10000;
  padding: 0.75rem 1rem;
  background: var(--accent-color);
  color: var(--contrast-color);
  border-radius: 4px;
  font-weight: 600;
}

.skip-link:focus { top: 1rem; }

.header {
  color: var(--default-color);
  z-index: 997;
  background-color: var(--background-color);
}

.header .topbar {
  background: linear-gradient(90deg, #1e2a42 0%, #2A3855 55%, #1e2a42 100%);
  height: 40px;
  padding: 0;
  font-size: 14px;
}

.topbar .topbar-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.92);
  font-weight: 600;
  font-size: 13px;
}

.topbar .topbar-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 12px;
  white-space: nowrap;
}

.topbar .topbar-pill--outline {
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.34);
  background: rgba(255, 255, 255, 0.08);
}

.topbar .topbar-pill--solid {
  color: #0f172a;
  background: linear-gradient(135deg, #ffd36a 0%, #e8a317 55%, #d99410 100%);
  border: 1px solid rgba(255, 211, 106, 0.45);
}

.header .branding {
  background-color: var(--background-color);
  min-height: 60px;
  padding: 10px 0;
}

.header .logo { line-height: 1; }

.header .logo img {
  max-height: 36px;
  margin-right: 8px;
}

@media (max-width: 575px) {
  .header .topbar { height: auto; padding: 6px 0; }
  .header .branding { min-height: 56px; padding: 8px 0; }
  .header .logo img { max-height: 32px; }
}

.mobile-nav-toggle {
  display: none;
  background: none;
  border: 0;
  cursor: pointer;
  color: var(--nav-color);
  line-height: 1;
  padding: 0;
}

.mobile-nav-toggle-bars {
  position: relative;
  display: block;
  width: 22px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: background 0.2s ease;
}

.mobile-nav-toggle-bars::before,
.mobile-nav-toggle-bars::after {
  content: "";
  position: absolute;
  left: 0;
  width: 22px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: transform 0.2s ease, top 0.2s ease;
}

.mobile-nav-toggle-bars::before { top: -7px; }
.mobile-nav-toggle-bars::after { top: 7px; }

.mobile-nav-toggle.is-open .mobile-nav-toggle-bars {
  background: transparent;
}

.mobile-nav-toggle.is-open .mobile-nav-toggle-bars::before {
  top: 0;
  transform: rotate(45deg);
}

.mobile-nav-toggle.is-open .mobile-nav-toggle-bars::after {
  top: 0;
  transform: rotate(-45deg);
}

@media (max-width: 1199px) {
  .mobile-nav-toggle {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    min-width: 44px;
    flex-shrink: 0;
    border-radius: 10px;
    border: 1px solid rgba(42, 56, 85, 0.14);
    background: rgba(42, 56, 85, 0.05);
    position: relative;
    z-index: 10001;
  }
}

@media (min-width: 1200px) {
  .navmenu ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 4px;
  }
  .navmenu a {
    padding: 10px 14px;
    color: var(--nav-color);
    font-weight: 600;
    font-size: 15px;
  }
}

.hero-v3 { padding: 0; background: #0f172a; }

.hero-v3 .hero-swiper { width: 100%; }

.hero-v3 .hero-slide {
  position: relative;
  min-height: clamp(480px, 72vh, 760px);
  display: flex;
  align-items: center;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-color: #1e2a42;
  overflow: hidden;
}

.hero-slide-media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 0;
}

.hero-v3 .hero-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(15, 23, 42, 0.92) 0%, rgba(15, 23, 42, 0.72) 45%, rgba(15, 23, 42, 0.25) 100%),
    radial-gradient(900px circle at 20% 20%, rgba(232, 163, 23, 0.18), transparent 45%);
}

.hero-v3 .hero-content {
  position: relative;
  z-index: 2;
  max-width: 820px;
  padding: clamp(28px, 4vw, 64px) 12px;
  color: #ffffff;
}

.hero-v3 .hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 14px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.6px;
  text-transform: uppercase;
}

.hero-v3 .hero-title {
  margin: 0;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.12;
  font-size: clamp(1.8rem, 3.2vw + 1rem, 3.1rem);
  color: #ffffff;
}

.hero-v3 .hero-title span { color: #e8a317; }

.hero-v3 .hero-subtitle {
  margin: 14px 0 0;
  font-size: clamp(1rem, 0.6vw + 0.9rem, 1.15rem);
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.82);
  max-width: 62ch;
}

.hero-v3 .btn-get-started {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 20px;
  border-radius: 12px;
  font-weight: 800;
  font-size: 14px;
  min-height: 46px;
  text-decoration: none;
}

.hero-v3 a.btn-get-started:not(.btn-outline-hero) {
  color: #0f172a;
  background: linear-gradient(135deg, #ffd36a 0%, #e8a317 55%, #d99410 100%);
  border: 1px solid rgba(255, 211, 106, 0.55);
}

.hero-v3 .btn-outline-hero {
  background: rgba(255, 255, 255, 0.06);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.38);
}

@media (max-width: 575px) {
  .hero-v3 .btn-get-started { width: 100%; }
}

@media (max-width: 768px) {
  .hero-v3 .hero-overlay {
    background:
      linear-gradient(180deg, rgba(15, 23, 42, 0.92) 0%, rgba(15, 23, 42, 0.72) 55%, rgba(15, 23, 42, 0.30) 100%);
  }
}

/* Show first hero slide before Swiper JS initializes */
.hero-swiper:not(.swiper-initialized) .swiper-slide:not(:first-child) { display: none; }
.hero-swiper:not(.swiper-initialized) .swiper-slide { opacity: 1 !important; transform: none !important; }

@media (max-width: 1199px) {
  [data-aos] { pointer-events: auto !important; opacity: 1 !important; transform: none !important; }
}
