/*
 * Helvetic Tactical — Hero Section
 * Self-contained styles for ht_hero module.
 *
 * Prefers CSS custom properties from the heltac child theme's :root block.
 * Every var() has a hardcoded fallback so the module renders correctly even
 * if the theme is not active or loads after this file.
 * v3: dark chrome region — the theme applies its dark token scope to .ht-hero;
 * fallbacks below are the dark values. Fonts are self-hosted by the theme (@font-face).
 */

.ht-hero {
    width: 100%;
    overflow: hidden;
}

.ht-hero__inner {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    min-height: 480px;
    max-width: 1280px;
    margin: 0 auto;
    background-color: var(--bg, #1a1a1a); /* fills triangle revealed by diagonal clip */
}

/* ── Left — text content ─────────────────────── */

.ht-hero__content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 60px 48px;
}

.ht-hero__eyebrow {
    font-family: 'DM Mono', monospace;
    font-size: 0.6rem;
    font-weight: 400;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--accent-text, #f0821e);
    margin: 0 0 12px 0;
}

.ht-hero__headline {
    font-family: var(--ff-display, 'Quantico', Arial, sans-serif);
    font-size: clamp(2.4rem, 4.5vw, 3.6rem);
    font-weight: 400;
    line-height: 1;
    text-transform: uppercase;
    color: var(--ink, #e8e4dc);
    margin: 0 0 16px 0;
    letter-spacing: 0.02em;
}

.ht-hero__body {
    font-family: 'DM Sans', sans-serif;
    font-size: 0.875rem;
    line-height: 1.65;
    color: var(--ink-2, #b8b4ac);
    max-width: 360px;
    margin: 0 0 24px 0;
}

/* ── CTAs ─────────────────────────────────────
   Relies on .btn-primary and .btn-ghost from the theme. */

.ht-hero__ctas {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 24px;
}

/* ── USP pills ─────────────────────────────── */

.ht-hero__usps {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.ht-hero__usp {
    font-family: var(--ff-display, 'Quantico', Arial, sans-serif);
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--ink-2, #b8b4ac);
    padding: 0.2rem 0.6rem;
    border: 1px solid var(--rule-med, rgba(255, 255, 255, 0.15));
    border-radius: var(--radius, 3px);
    white-space: nowrap;
}

/* ── Right — product image ─────────────────── */

.ht-hero__image-col {
    position: relative;
    overflow: hidden;
    background-color: var(--surface, #242424);
    /* Diagonal left edge — line runs from (160px, top) to (0, bottom).
       The charcoal background on .ht-hero__inner fills the revealed triangle. */
    clip-path: polygon(160px 0%, 100% 0%, 100% 100%, 0% 100%);
}

/* img fills the grid cell via absolute positioning */
.ht-hero__image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

/* ── Responsive ──────────────────────────────
   ≤ 992px: tighten padding
   ≤ 767px: stack vertically, image on top    */

@media (max-width: 992px) {
    .ht-hero__content {
        padding: 48px 32px;
    }
}

@media (max-width: 767px) {
    .ht-hero__inner {
        grid-template-columns: 1fr;
        min-height: 0;
    }

    .ht-hero__content {
        order: 2;
        padding: 32px 24px;
    }

    .ht-hero__image-col {
        order: 1;
        aspect-ratio: 3 / 2;
        /* Switch to bottom-edge diagonal where image meets content block */
        clip-path: polygon(0% 0%, 100% 0%, 100% 100%, 0% 92%);
    }

    .ht-hero__image {
        object-position: center center;
    }
}
