/**
 * Hero banner, shared by the public pages.
 * Left-aligned type, an optional image or artefact column, no decoration.
 */

/* ============================================
   HERO BANNER
   ============================================ */

.hero-banner {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: var(--paper, #ffffff);
    width: 100%;
    padding: clamp(48px, 7vw, 96px) 0;
}

/* The outline-shape canvas is gone; the element is harmless if a page still has it. */
.hero-canvas {
    display: none;
}

.hero-banner-split {
    min-height: 0;
    padding: clamp(56px, 7.5vw, 104px) 0 clamp(48px, 6vw, 88px);
}

.hero-container {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    align-items: center;
    gap: clamp(32px, 5vw, 72px);
    max-width: var(--container-max-width, 1200px);
    margin: 0 auto;
    padding: 0 var(--container-padding, 24px);
    width: 100%;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: left;
    padding: 0;
    max-width: 760px;
    margin: 0;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
}

/* Full-width heroes (blog, release notes) centre a single column. */
.hero-banner:not(.hero-banner-split) .hero-content {
    max-width: 820px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 var(--container-padding, 24px);
    align-items: flex-start;
}

.hero-content-left {
    text-align: left;
    padding: 0;
    max-width: none;
    align-items: flex-start;
}

.hero-text {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.hero-title {
    font-family: var(--font-heading, inherit);
    font-size: clamp(2.5rem, 4.8vw, 3.75rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    color: var(--ink, #0E1F14);
    margin: 0 0 24px;
    line-height: 1.02;
    text-wrap: balance;
}

.hero-title-light {
    text-transform: none;
    font-size: inherit;
    font-weight: 500;
    color: var(--ink-3, #4F6356);
}

.hero-subtitle {
    font-size: 1.125rem;
    color: var(--ink-3, #4F6356);
    margin: 0 0 32px;
    font-weight: 400;
    line-height: 1.6;
    letter-spacing: 0;
    text-transform: none;
    max-width: 56ch;
}

.hero-subtitle + .hero-desc {
    margin-top: -16px;
}

.hero-buttons {
    display: flex;
    gap: 12px;
    justify-content: flex-start;
    align-items: center;
    flex-wrap: wrap;
}

.hero-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 15px 28px;
    border-radius: var(--radius-md, 8px);
    font-size: 1.0625rem;
    font-weight: 600;
    letter-spacing: -0.005em;
    line-height: 1.2;
    text-decoration: none;
    cursor: pointer;
    border: 1px solid transparent;
    transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
    white-space: nowrap;
}

.hero-btn:active {
    transform: translateY(1px);
}

.hero-btn-primary {
    background: var(--forest, #2D5016);
    color: #ffffff;
    border-color: var(--forest, #2D5016);
}

.hero-btn-primary:hover {
    background: var(--forest-2, #244211);
    border-color: var(--forest-2, #244211);
    color: #ffffff;
}

.hero-btn-secondary {
    background: transparent;
    color: var(--ink, #0E1F14);
    border-color: var(--line-strong, rgba(14, 31, 20, 0.24));
}

.hero-btn-secondary:hover {
    background: var(--mist, #EEF2EA);
    border-color: var(--ink, #0E1F14);
    color: var(--ink, #0E1F14);
}

/* Image column */
.hero-image {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    min-width: 0;
}

.hero-image-inner {
    position: relative;
    display: block;
    width: 100%;
    max-width: 520px;
    border-radius: var(--radius-xl, 24px);
    overflow: hidden;
    background: var(--mist, #EEF2EA);
}

.hero-image-img {
    display: block;
    width: 100%;
    height: auto;
    max-height: none;
    aspect-ratio: 5 / 6;
    object-fit: cover;
}

.hero-image-overlay {
    position: absolute;
    left: 16px;
    bottom: 16px;
    right: auto;
    max-width: calc(100% - 32px);
    padding: 10px 14px;
    background: rgba(14, 31, 20, 0.72);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    border-radius: 10px;
    text-align: left;
}

.hero-image-title {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--ivory, #F7F5F0);
    margin-bottom: 2px;
}

.hero-image-tagline {
    font-size: 0.8125rem;
    color: rgba(247, 245, 240, 0.75);
    letter-spacing: 0;
    margin: 0;
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 992px) {
    .hero-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .hero-content-left {
        order: 1;
    }

    .hero-image {
        order: 2;
        justify-content: flex-start;
    }

    .hero-image-inner {
        max-width: 560px;
    }

    .hero-image-img {
        aspect-ratio: 4 / 3;
    }

    .hero-banner-split {
        padding: 48px 0 56px;
    }
}

@media (max-width: 768px) {
    .hero-banner {
        padding: 40px 0 48px;
    }

    .hero-banner-split {
        padding: 40px 0 48px;
    }

    .hero-title {
        margin-bottom: 18px;
    }

    .hero-subtitle {
        font-size: 1.0625rem;
        margin-bottom: 24px;
    }
}

@media (max-width: 480px) {
    .hero-buttons {
        flex-direction: column;
        align-items: stretch;
        width: 100%;
    }

    .hero-btn {
        width: 100%;
        padding: 14px 24px;
        font-size: 1rem;
    }
}
