/*
===============================================================================
  APCA — Page Hero Template Part
  File: assets/css/template-parts/page-hero.css
===============================================================================
*/

/* ------------------------------------------------------------
   Base hero
   ------------------------------------------------------------ */
.page-hero {
    position: relative;
    width: 100%;
    min-height: clamp(520px, 75vh, 760px);
    display: flex;
    align-items: center;
    overflow: hidden;
}

/* ------------------------------------------------------------
   Background stack
   ------------------------------------------------------------ */
.page-hero__background {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.page-hero__image {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.page-hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        110deg,
        rgba(0, 0, 0, 0.82) 0%,
        rgba(0, 0, 0, 0.55) 55%,
        rgba(0, 0, 0, 0.30) 100%
    );
}

/* ------------------------------------------------------------
   Content
   ------------------------------------------------------------ */
.page-hero__content {
    position: relative;
    z-index: 1;
    width: 100%;
    padding-block: clamp(3rem, 6vw, 6rem);
}

/* Tagline — small uppercase label above the title */
.page-hero__tagline {
    display: block;
    font-size: clamp(0.65rem, 1.2vw, 0.8rem);
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--color-red, #c0392b);
    margin-block-end: 1.25rem;
}

/* Title */
.page-hero__title {
    font-size: clamp(1.8rem, 5.5vw, 5rem);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -0.02em;
    text-transform: uppercase;
    color: #ffffff;
    max-width: 18ch;
    margin-block-end: 1.25rem;
}

/* Subtitle */
.page-hero__subtitle {
    font-size: clamp(0.95rem, 1.6vw, 1.2rem);
    font-weight: 400;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.78);
    max-width: 52ch;
    margin-block-end: 2.5rem;
}

/* CTA wrapper — only renders when button is passed */
.page-hero__cta {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* ------------------------------------------------------------
   Modifier: centered layout
   ------------------------------------------------------------ */
.page-hero--centered .page-hero__content {
    text-align: center;
}

.page-hero--centered .page-hero__title,
.page-hero--centered .page-hero__subtitle {
    max-width: none;
}

.page-hero--centered .page-hero__cta {
    justify-content: center;
}

.page-hero--centered .page-hero__overlay {
    background: rgba(0, 0, 0, 0.60);
}

/* ------------------------------------------------------------
   Modifier: lighter overlay (e.g. photo-heavy pages)
   ------------------------------------------------------------ */
.page-hero--light .page-hero__overlay {
    background: linear-gradient(
        110deg,
        rgba(0, 0, 0, 0.60) 0%,
        rgba(0, 0, 0, 0.35) 60%,
        rgba(0, 0, 0, 0.15) 100%
    );
}

/* ------------------------------------------------------------
   Modifier: compact height (e.g. interior pages)
   ------------------------------------------------------------ */
.page-hero--compact {
    min-height: clamp(280px, 40vh, 440px);
}
