/* Explain: Styles for the advanced header and hero sections. */
/* Header — corporate brand lockup, animated nav, scroll state */
.site-header {
    transition: background 320ms ease, box-shadow 320ms ease, border-color 320ms ease;
}

.site-header.is-scrolled {
    background: rgba(255, 255, 255, 0.96);
    border-color: var(--border-color);
    box-shadow: 0 14px 40px rgba(8, 41, 67, 0.08);
}

.site-header nav {
    transition: padding 320ms ease;
}

.site-header.is-scrolled nav {
    padding-top: 0.6rem;
    padding-bottom: 0.6rem;
}

.brand-lockup {
    flex: 0 1 auto;
}

.brand-monogram {
    position: relative;
    display: inline-flex;
    width: 3rem;
    height: 3rem;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    border-radius: 0.95rem;
    background: var(--primary-color);
    color: var(--accent-color);
    box-shadow: 0 12px 30px rgba(8, 41, 67, 0.28);
    transition: transform 400ms cubic-bezier(0.22, 1, 0.36, 1), box-shadow 400ms ease;
}

.brand-monogram::before {
    position: absolute;
    inset: 0.28rem;
    border: 1px solid rgba(37, 199, 194, 0.42);
    border-radius: 0.65rem;
    content: "";
}

.brand-monogram-inner {
    position: relative;
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.brand-lockup:hover .brand-monogram,
.brand-lockup:focus-visible .brand-monogram {
    box-shadow: 0 16px 38px rgba(8, 41, 67, 0.36);
    transform: translateY(-2px);
}

.brand-wordmark {
    font-family: var(--font-logo);
    font-size: 1.18rem;
    font-weight: 700;
    line-height: 1;
    letter-spacing: -0.02em;
    color: var(--primary-color);
}

.brand-tagline {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.4rem;
    color: var(--accent-hover);
    font-size: 0.55rem;
    font-weight: 700;
    letter-spacing: 0.28em;
    text-transform: uppercase;
}

.brand-tagline-compact {
    font-size: 0.5rem;
    letter-spacing: 0.2em;
}

.brand-tagline-line {
    display: inline-block;
    width: 1.4rem;
    height: 2px;
    background: var(--accent-color);
}

.nav-link {
    position: relative;
    display: inline-flex;
    min-height: 2.6rem;
    align-items: center;
    padding: 0 0.8rem;
    color: var(--text-color);
    font-size: 0.86rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    transition: color 260ms ease;
}

.nav-link::after {
    position: absolute;
    right: 0.8rem;
    bottom: 0.35rem;
    left: 0.8rem;
    height: 2px;
    background: var(--accent-color);
    content: "";
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 300ms cubic-bezier(0.22, 1, 0.36, 1);
}

.nav-link:hover,
.nav-link:focus-visible,
.nav-link.is-active {
    color: var(--primary-color);
}

.nav-link:hover::after,
.nav-link:focus-visible::after,
.nav-link.is-active::after {
    transform: scaleX(1);
}

.header-cta {
    min-height: 2.75rem;
    border: 0;
    border-radius: 999px;
    padding-inline: 1.4rem;
    background: var(--accent-color);
    color: var(--primary-color);
    font-weight: 700;
    box-shadow: var(--shadow-button);
    transition: background 300ms ease, transform 300ms ease, box-shadow 300ms ease;
}

.header-cta:hover {
    background: var(--accent-hover);
    box-shadow: 0 20px 44px rgba(37, 199, 194, 0.4);
    transform: translateY(-2px);
}

/* Hero */
.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    border: 1px solid var(--border-color);
    border-radius: 999px;
    background: #FFFFFF;
    padding: 0.5rem 1.15rem;
    color: var(--primary-color);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    box-shadow: var(--shadow-soft);
}

.hero-eyebrow-dot {
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 999px;
    background: var(--accent-color);
    box-shadow: 0 0 0 0.28rem var(--accent-soft);
}

.hero-highlight {
    color: var(--accent-hover);
}

.hero-stats {
    display: grid;
    max-width: 38rem;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.25rem;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}

.hero-stat-icon {
    color: var(--accent-hover);
    font-size: 1rem;
}

.hero-stat-title {
    margin-top: 0.6rem;
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--primary-color);
}

.hero-stat-label {
    margin-top: 0.25rem;
    color: var(--text-muted);
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.hero-media {
    position: relative;
    overflow: hidden;
    border-radius: 2rem;
    border: 1px solid var(--border-color);
    box-shadow: 0 30px 80px rgba(8, 41, 67, 0.16);
    aspect-ratio: 4 / 5;
}

.hero-badge {
    position: absolute;
    z-index: 2;
    display: flex;
    max-width: 15rem;
    align-items: center;
    gap: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 1.25rem;
    background: rgba(255, 255, 255, 0.94);
    padding: 0.9rem 1.05rem;
    box-shadow: 0 18px 44px rgba(8, 41, 67, 0.14);
    backdrop-filter: blur(10px);
    animation: heroFloat 6s ease-in-out infinite;
}

.hero-badge-top {
    top: 1.5rem;
    left: 1.25rem;
}

.hero-badge-bottom {
    right: 1.25rem;
    bottom: 1.5rem;
    animation-delay: -3s;
}

.hero-badge-icon {
    display: inline-flex;
    width: 2.4rem;
    height: 2.4rem;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    border-radius: 0.8rem;
    background: var(--accent-soft);
    color: var(--accent-hover);
}

.hero-badge-text {
    color: var(--text-color);
    font-size: 0.78rem;
    font-weight: 600;
    line-height: 1.4;
}

.hero-reveal {
    animation: heroRise 900ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.hero-reveal-1 {
    animation-delay: 90ms;
}

.hero-reveal-2 {
    animation-delay: 180ms;
}

.hero-reveal-3 {
    animation-delay: 270ms;
}

.hero-reveal-4 {
    animation-delay: 360ms;
}

@keyframes heroFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

@keyframes heroRise {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
    .hero-badge,
    .hero-reveal {
        animation: none;
    }
}

@media (max-width: 767px) {
    .hero-stats {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .hero-badge {
        position: relative;
        top: auto;
        right: auto;
        bottom: auto;
        left: auto;
        max-width: none;
        margin-top: 0.75rem;
        animation: none;
    }
}