/* HETRIIL Landing Page Design System — MoE Brand Tokens */
:root {
    --het-yellow: #f7be18;
    --het-red: #d1503e;
    --het-sky: #3c8fc2;
    --het-blue: #2050a0;
    --het-blue-dark: #163a75;
    --het-gray-50: #f8fafc;
    --het-gray-100: #f1f5f9;
    --het-gray-500: #64748b;
    --het-gray-700: #334155;
    --het-gray-900: #0f172a;
    --het-shadow: 0 4px 24px rgba(32, 80, 160, 0.08);
    --het-shadow-lg: 0 12px 40px rgba(32, 80, 160, 0.12);
    --het-radius: 0.875rem;
    --het-radius-lg: 1.25rem;
}

/* MoE palette utilities (align with logo SVG) */
.bg-myellow { background-color: var(--het-yellow) !important; }
.bg-mred { background-color: var(--het-red) !important; }
.bg-msky { background-color: var(--het-sky) !important; }
.bg-mblue { background-color: var(--het-blue) !important; }
.text-myellow { color: var(--het-yellow) !important; }
.text-mred { color: var(--het-red) !important; }
.text-msky { color: var(--het-sky) !important; }
.text-mblue { color: var(--het-blue) !important; }
.border-myellow { border-color: var(--het-yellow) !important; }
.border-mred { border-color: var(--het-red) !important; }
.border-msky { border-color: var(--het-sky) !important; }
.border-mblue { border-color: var(--het-blue) !important; }

/* Flag stripe accent */
.het-flag-stripe {
    display: flex;
    width: 100%;
    height: 0.375rem;
}
.het-flag-stripe > span:nth-child(1) { width: 25%; background: var(--het-yellow); }
.het-flag-stripe > span:nth-child(2) { width: 33.33%; background: var(--het-red); }
.het-flag-stripe > span:nth-child(3) { width: 16.67%; background: var(--het-sky); }
.het-flag-stripe > span:nth-child(4) { width: 25%; background: var(--het-blue); }

.het-flag-stripe-lg { height: 0.5rem; }

/* Section layout */
.het-section {
    /* padding set in responsive section below */
}
.het-section-alt {
    background-color: var(--het-gray-50);
}
.het-section-dark {
    background: linear-gradient(135deg, var(--het-blue-dark) 0%, var(--het-blue) 100%);
    color: #fff;
}

/* Section header */
.het-section-header {
    text-align: center;
    max-width: 42rem;
    margin: 0 auto 3rem;
}
.het-section-eyebrow {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--het-blue);
    background: rgba(32, 80, 160, 0.08);
    padding: 0.375rem 1rem;
    border-radius: 9999px;
    margin-bottom: 1rem;
}
.het-section-title {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 700;
    color: var(--het-gray-900);
    line-height: 1.2;
    margin-bottom: 1rem;
}
.het-section-subtitle {
    font-size: clamp(0.9375rem, 2.5vw, 1.125rem);
    color: var(--het-gray-500);
    line-height: 1.7;
}

/* Cards */
.het-card {
    background: #fff;
    border-radius: var(--het-radius-lg);
    border: 1px solid rgba(32, 80, 160, 0.08);
    box-shadow: var(--het-shadow);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.het-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--het-shadow-lg);
}

/* Stat cards */
.het-stat-card {
    background: #fff;
    border-radius: var(--het-radius-lg);
    padding: 1.5rem;
    box-shadow: var(--het-shadow);
    border-left: 4px solid var(--het-blue);
    transition: transform 0.2s ease;
}
.het-stat-card:hover { transform: translateY(-2px); }
.het-stat-card[data-accent="yellow"] { border-left-color: var(--het-yellow); }
.het-stat-card[data-accent="red"] { border-left-color: var(--het-red); }
.het-stat-card[data-accent="sky"] { border-left-color: var(--het-sky); }
.het-stat-card[data-accent="blue"] { border-left-color: var(--het-blue); }

.het-stat-value {
    font-size: clamp(1.5rem, 4vw, 2rem);
    font-weight: 700;
    color: var(--het-gray-900);
    line-height: 1;
}
.het-stat-label {
    font-size: 0.875rem;
    color: var(--het-gray-500);
    margin-top: 0.25rem;
}

/* Buttons */
.het-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-weight: 600;
    font-size: 0.9375rem;
    padding: 0.75rem 1.5rem;
    border-radius: 0.625rem;
    transition: all 0.2s ease;
    text-decoration: none;
}
.het-btn-primary {
    background: var(--het-blue);
    color: #fff;
    box-shadow: 0 4px 14px rgba(32, 80, 160, 0.3);
}
.het-btn-primary:hover {
    background: var(--het-blue-dark);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(32, 80, 160, 0.35);
}
.het-btn-outline {
    background: transparent;
    color: var(--het-blue);
    border: 2px solid var(--het-blue);
}
.het-btn-outline:hover {
    background: var(--het-blue);
    color: #fff;
}
.het-btn-white {
    background: #fff;
    color: var(--het-blue);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
}
.het-btn-white:hover {
    background: var(--het-gray-50);
    color: var(--het-blue-dark);
    transform: translateY(-1px);
}
.het-btn-lg {
    padding: 1rem 2rem;
    font-size: 1rem;
    border-radius: 0.75rem;
}

/* Feature list item */
.het-feature {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}
.het-feature-icon {
    flex-shrink: 0;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.625rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 0.875rem;
}

/* Badge */
.het-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 9999px;
    background: rgba(32, 80, 160, 0.08);
    color: var(--het-blue);
}

/* Nav enhancements */
.het-nav {
    transition: box-shadow 0.3s ease, background 0.3s ease;
}
.het-nav.scrolled {
    box-shadow: 0 4px 24px rgba(32, 80, 160, 0.1);
    background: rgba(255, 255, 255, 0.97) !important;
    backdrop-filter: blur(12px);
}
.het-nav-link {
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--het-gray-700);
    padding: 0.5rem 0.875rem;
    border-radius: 0.5rem;
    transition: color 0.2s, background 0.2s;
    text-decoration: none;
}
.het-nav-link:hover,
.het-nav-link.active {
    color: var(--het-blue);
    background: rgba(32, 80, 160, 0.06);
}

/* Hero */
.het-hero {
    position: relative;
    min-height: calc(100dvh - var(--het-header-total, 3.2rem));
    max-height: 820px;
    overflow: hidden;
}
.het-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        105deg,
        rgba(15, 23, 42, 0.82) 0%,
        rgba(32, 80, 160, 0.55) 55%,
        rgba(32, 80, 160, 0.25) 100%
    );
    z-index: 2;
}
.het-hero-content {
    position: relative;
    z-index: 10;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: calc(100dvh - var(--het-header-total, 3.2rem));
    max-height: 820px;
    padding: 2rem 0 4rem;
}
.het-hero-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    color: #fff;
    line-height: 1.15;
    margin-bottom: 1.25rem;
}
.het-hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: rgba(255, 255, 255, 0.88);
    line-height: 1.7;
    max-width: 36rem;
    margin-bottom: 2rem;
}
.het-hero-accent {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 5rem;
    background: var(--het-yellow);
    border-radius: 0 4px 4px 0;
}

/* CTA banner */
.het-cta-banner {
    background: linear-gradient(135deg, rgba(32, 80, 160, 0.06) 0%, rgba(60, 143, 194, 0.1) 100%);
    border: 1px solid rgba(32, 80, 160, 0.12);
    border-radius: var(--het-radius-lg);
    padding: 3rem 2rem;
    text-align: center;
}

/* Contact cards */
.het-contact-card {
    border-radius: var(--het-radius-lg);
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    height: 100%;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.het-contact-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--het-shadow-lg);
}
.het-contact-card--primary {
    background: linear-gradient(135deg, var(--het-blue) 0%, var(--het-blue-dark) 100%);
    color: #fff;
}
.het-contact-card--danger {
    background: linear-gradient(135deg, #b91c1c 0%, #991b1b 100%);
    color: #fff;
}

/* Alpine.js cloak */
[x-cloak] { display: none !important; }

/* Nav dropdown */
.het-nav .relative { position: relative; }
.het-nav li.relative > ul[x-show] {
    min-width: 14rem;
}

/* Focus accessibility */
.het-btn:focus-visible,
.het-nav-link:focus-visible,
a:focus-visible {
    outline: 2px solid var(--het-blue);
    outline-offset: 2px;
}

/* Skip link */
.het-skip-link {
    position: absolute;
    top: -100%;
    left: 1rem;
    z-index: 9999;
    padding: 0.75rem 1.25rem;
    background: var(--het-blue);
    color: #fff;
    border-radius: 0 0 0.5rem 0.5rem;
    font-weight: 600;
    text-decoration: none;
}
.het-skip-link:focus {
    top: 0;
}

/* ==========================================================================
   Responsive — Landing Page
   ========================================================================== */

html {
    scroll-behavior: smooth;
    overflow-x: clip;
}

/* Nav offset — matches fixed header height */
.het-nav-spacer {
    height: var(--het-header-total, 3.2rem);
}

/* Touch targets (min 44px) */
.het-nav-link {
    min-height: 44px;
    display: flex;
    align-items: center;
}
.het-btn {
    min-height: 44px;
}

/* Header logo sizing handled in nav.css (.het-site-nav) */

/* Mobile nav menu scroll */
.het-nav-menu-open {
    max-height: calc(100dvh - var(--het-header-total, 3.2rem));
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
}

/* Section header left-align override */
.het-section-header.text-left {
    margin-left: 0;
    margin-right: 0;
    text-align: left;
    max-width: none;
}

/* Typography scaling — see responsive section for clamp values */

/* Section spacing — tighter on mobile */
.het-section {
    padding: 3rem 0;
}
@media (min-width: 768px) {
    .het-section { padding: 4rem 0; }
}
@media (min-width: 1024px) {
    .het-section { padding: 6rem 0; }
}

.het-section-header {
    margin-bottom: 2rem;
}
@media (min-width: 768px) {
    .het-section-header { margin-bottom: 3rem; }
}

.het-cta-banner {
    padding: 2rem 1.25rem;
}
@media (min-width: 640px) {
    .het-cta-banner { padding: 2.5rem 1.5rem; }
}
@media (min-width: 1024px) {
    .het-cta-banner { padding: 3rem 2rem; }
}

/* Hero — fill viewport below header without overlap */
.het-hero,
.het-hero-content,
.het-hero .uk-slideshow-items,
.het-hero-slideshow {
    min-height: calc(100dvh - var(--het-header-total, 3.2rem));
    max-height: 820px;
}

@media (min-width: 768px) {
    .het-hero-content {
        padding: 2.5rem 0 4.5rem;
    }
}

.het-hero-title {
    font-size: clamp(1.625rem, 5.5vw, 3.5rem);
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.het-hero-subtitle {
    font-size: clamp(0.9375rem, 2.5vw, 1.25rem);
}

.het-hero .max-w-3xl {
    padding-left: 0;
}
@media (min-width: 640px) {
    .het-hero .max-w-3xl { padding-left: 0.5rem; }
}

/* Cards — disable hover lift on touch devices */
@media (hover: none) {
    .het-card:hover,
    .het-stat-card:hover,
    .het-contact-card:hover {
        transform: none;
    }
}

/* Stat cards — stack icon/value cleanly */
.het-stat-card .flex {
    flex-wrap: nowrap;
    min-width: 0;
}
.het-stat-label {
    word-wrap: break-word;
}

/* Contact cards — full-width buttons on mobile */
.het-contact-card {
    padding: 1.5rem;
}
@media (min-width: 640px) {
    .het-contact-card { padding: 2rem; }
}

/* Footer responsive fixes (guest layout) */
.footer {
    overflow-x: clip;
}
.footer .py-\[60px\] {
    padding-top: 2.5rem;
    padding-bottom: 2.5rem;
}
@media (min-width: 768px) {
    .footer .py-\[60px\] {
        padding-top: 3.75rem;
        padding-bottom: 3.75rem;
    }
}
.footer .ml-10 {
    margin-left: 0;
}
@media (min-width: 640px) {
    .footer .ml-10 { margin-left: 2.5rem; }
}
.footer .grid-cols-1 > div {
    text-align: center;
}
@media (min-width: 768px) {
    .footer .grid-cols-1 > div { text-align: left; }
}
.footer .flex.items-center.mt-6 {
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}
@media (min-width: 768px) {
    .footer .flex.items-center.mt-6 { justify-content: flex-start; }
}
.footer .relative.flex.flex-col.justify-center.h-40 {
    height: auto;
    min-height: 9rem;
    align-items: center;
}
.footer .absolute.inset-0.flex.items-end.w-40 {
    display: none;
}
@media (min-width: 640px) {
    .footer .absolute.inset-0.flex.items-end.w-40 { display: flex; }
}

/* Container safety */
.container {
    width: 100%;
    max-width: 100%;
    padding-left: max(1rem, env(safe-area-inset-left));
    padding-right: max(1rem, env(safe-area-inset-right));
}
@media (min-width: 1280px) {
    .container { max-width: 1280px; }
}

/* Tablet nav — slightly smaller links */
@media (min-width: 1024px) and (max-width: 1279px) {
    .het-nav-link {
        font-size: 0.875rem;
        padding: 0.5rem 0.625rem;
    }
}

/* Opportunity card footers — stack on narrow screens */
#opportunities .het-card .flex.items-center.justify-between {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
}
@media (min-width: 480px) {
    #opportunities .het-card .flex.items-center.justify-between {
        flex-direction: row;
        align-items: center;
    }
}
