/* ============================================================
   PINTXO CHILD THEME — contact.css
   Styles for: contact hero and contact page layout.
   Depends on: header.css for --color-* and --font-* tokens.
   ============================================================ */

/* ============================================================
   CONTACT HERO
   ============================================================ */

.contact-hero {
    position: relative;
    height: clamp(340px, 52vh, 540px);
    overflow: hidden;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding-bottom: clamp(2.5rem, 6vw, 4.5rem);
}

/*
 * Background image is passed via CSS custom property set inline
 * in patterns/contact.php: style="--contact-hero-bg: url('…');"
 * The element is pushed -8% on each edge so the parallax
 * translateY never reveals a gap at the top or bottom.
 */
.contact-hero__bg {
    position: absolute;
    inset: -8%;
    background-image: var(--contact-hero-bg);
    background-size: cover;
    background-position: center 45%;
    will-change: transform;
    z-index: 0;
}

/* Dark gradient — same feel as the landing-page carousel */
.contact-hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top,
            rgba(10, 4, 4, 0.90) 0%,
            rgba(10, 4, 4, 0.62) 55%,
            rgba(10, 4, 4, 0.28) 100%);
    z-index: 1;
}

.contact-hero__content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: var(--color-white);
    padding: 0 1.25rem;
}

.contact-hero__title {
    font-family: var(--font-body);
    font-size: clamp(2rem, 5vw, 3.4rem);
    font-weight: 700;
    letter-spacing: 0.12em;
    line-height: 1.1;
    margin: 0;
}

.contact-hero__divider {
    width: 48px;
    height: 2px;
    background: var(--color-burgundy);
    margin: 10px auto 0;
}

/* ============================================================
   CONTACT FORM WRAPPER
   ============================================================ */

.contact-form-section {
    background: var(--color-cream);
}

/*
 * The shortcode already outputs .pintxo-contact-section.
 * This removes duplicate vertical padding if the shortcode form CSS
 * already handles the section spacing.
 */
.contact-form-section .pintxo-contact-section {
    padding-top: clamp(3rem, 6vw, 5.5rem);
    padding-bottom: clamp(4rem, 8vw, 7rem);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 768px) {
    .contact-hero {
        height: clamp(320px, 48vh, 460px);
        padding-bottom: 3rem;
    }

    .contact-hero__title {
        font-size: clamp(1.8rem, 8vw, 2.6rem);
    }
}

@media (max-width: 480px) {
    .contact-hero {
        height: 320px;
    }

    .contact-hero__title {
        letter-spacing: 0.08em;
    }
}