﻿/* ──────────────────────────────────────────────
   ProTemplate1 Hero — split + overlap + parallax
   Theme vars respected: --primary-bg, --text-color, --accent, --accent-2
   ────────────────────────────────────────────── */

.pt1-hero {
    --_bg: var(--primary-bg, #0b1b2b);
    --_text: var(--text-color, #e7eef6);
    --_accent: var(--accent, #c96d36);
    --_accent2: var(--accent-2, #d88346);
    background: var(--_bg);
    color: var(--_text);
    padding: clamp(56px, 10vw, 90px) 24px;
    position: relative;
    overflow: hidden;
}

.pt1-hero__inner {
    max-width: min(1280px, 94vw);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.05fr .95fr;
    gap: clamp(18px, 3vw, 42px);
    align-items: center;
}

.pt1-hero__left {
    z-index: 2;
}

.pt1-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--_accent), var(--_accent2));
    color: #fff;
    font-weight: 600;
    letter-spacing: .06em;
    text-transform: uppercase;
    font-size: .82rem;
}

.pt1-hero__heading {
    margin: 14px 0 10px;
    font-weight: 900;
    line-height: 1.05;
    font-size: clamp(2.6rem, 5.6vw, 4.6rem);
    text-wrap: balance;
}

.pt1-hero__sub {
    color: color-mix(in srgb, var(--_text) 78%, transparent);
    font-size: clamp(1.05rem, 1.8vw, 1.25rem);
    max-width: 52ch;
    margin: 8px 0 22px;
}

.pt1-hero__cta {
    display: inline-block;
    background: linear-gradient(135deg, var(--_accent), var(--_accent2));
    color: #fff;
    text-decoration: none;
    padding: .9rem 1.6rem;
    border-radius: 12px;
    border: 1px solid color-mix(in srgb, var(--_accent) 35%, #000 10%);
    box-shadow: 0 10px 24px color-mix(in srgb, var(--_accent) 40%, transparent);
    transition: transform .15s ease, box-shadow .2s ease, filter .2s ease;
}

    .pt1-hero__cta:hover {
        transform: translateY(-2px);
        box-shadow: 0 16px 36px color-mix(in srgb, var(--_accent) 55%, transparent);
        filter: brightness(1.03);
    }

.pt1-hero__media {
    /* overlap the next section for depth */
    margin-bottom: -56px;
    border-radius: 28px 28px 28px 64px;
    overflow: hidden;
    position: relative;
}

    .pt1-hero__media img {
        display: block;
        width: 100%;
        height: auto;
        object-fit: cover;
    }

    /* subtle vignette to blend with background */
    .pt1-hero__media::after {
        content: "";
        position: absolute;
        inset: 0;
        background: radial-gradient(120% 120% at 80% 20%, transparent 0%, transparent 55%, rgba(0,0,0,.25) 100%);
        pointer-events: none;
    }

/* Reveal (works with global or local motion) */
[data-reveal] {
    opacity: 0;
    filter: blur(6px);
    transform: translate3d(0, 24px, 0);
    transition: opacity .45s ease, transform .45s ease, filter .45s ease;
}

    [data-reveal].in {
        opacity: 1;
        filter: blur(0);
        transform: none;
    }

/* Utilities (if not already global) */
.u-card {
    background: color-mix(in srgb, var(--_bg) 86%, #fff 14%);
    border: 1px solid color-mix(in srgb, var(--_text) 12%, transparent);
    box-shadow: 0 10px 28px rgba(0,0,0,.28);
}

.u-lift {
    transition: transform .15s ease, box-shadow .2s ease;
}

    .u-lift:hover {
        transform: translateY(-3px);
        box-shadow: 0 16px 36px rgba(0,0,0,.32);
    }

/* responsive */
@media (max-width: 880px) {
    .pt1-hero__inner {
        grid-template-columns: 1fr;
    }

    .pt1-hero__media {
        margin-bottom: -36px;
        border-radius: 20px;
    }

    .pt1-hero__left {
        text-align: center;
    }

    .pt1-hero__sub {
        margin-left: auto;
        margin-right: auto;
    }
}

/* Force hero text to follow theme tokens (not global defaults) */
.pt1-hero,
.pt1-hero * {
    color: inherit;
}
/* inherit by default */

.pt1-hero {
    color: var(--text-color, #e7eef6);
}

.pt1-hero__heading {
    color: var(--text-color, #e7eef6); /* <-- explicit */
}

.pt1-hero__sub {
    color: color-mix(in srgb, var(--text-color, #e7eef6) 78%, transparent); /* explicit */
}

/* Optional: faint text glow on very dark backgrounds for readability */
@media (prefers-contrast: more) {
    .pt1-hero__heading {
        text-shadow: 0 0 10px rgba(0,0,0,.35);
    }
}

/* Round, overlapping hero media — visually distinct from Template 2 */
.pt1-hero__media.round {
    aspect-ratio: 1 / 1;
    border-radius: 9999px; /* big circle */
    margin-bottom: -72px; /* deeper overlap */
    background: color-mix(in srgb, var(--primary-bg, #0b1b2b) 86%, #fff 14%);
    box-shadow: 0 16px 48px rgba(0,0,0,.35);
    overflow: hidden;
}

    .pt1-hero__media.round img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transform: scale(1.04); /* subtle crop */
    }

/* Mobile: fall back to pill so it doesn’t dominate */
@media (max-width: 880px) {
    .pt1-hero__media.round {
        aspect-ratio: auto;
        border-radius: 24px;
        margin-bottom: -36px;
    }
}
