/*
 * phc-contact.css — theme-owned styles for /contact/.
 *
 * Owns: hero wrapper, gradient overlay, responsive grid, info column +
 * London/Amsterdam two-row label/value blocks, card wrapper, link hover.
 *
 * Does NOT own form internals — those live in forminator-forms/160-contact-form.css
 * and are deployed to Forminator's Appearance → Custom CSS by
 * scripts/configure-forminator-form-160.php.
 */

/* ── Hero wrapper ───────────────────────────────────────────────────────── */
.phc-contact-hero {
    position: relative;
    overflow: hidden;
}

/* Background framing is scoped per page: the Feedback hero (251) reuses
   .phc-contact-hero and needs its own panel-controlled cover/center, so the
   Contact tennis-photo framing is locked to .elementor-168 below.

   Tennis-court photo is nearly square (2382×2560) and the player sits
       roughly centered (x≈50%, vertical extent y=512→2074 of 2560). At plain
       `cover` the image renders 1438px wide in a 1440px hero — only ~2px of
       horizontal pan, so right-aligning does nothing and the player's right
       arm/racket plant behind the form. Scale image to 105% width to gain
       ~70px of right-shift room, then anchor right. Player center lands at
       viewport x≈680 (form starts at 870), with the racket+head+legs all
       visible — feet trim by ~4px at the bottom, which is invisible against
       the gradient. */
.elementor-168 .phc-contact-hero {
    background-size: 105% auto !important;
    background-position: 100% 50% !important;
}

/* On mobile the form sits BELOW the info (stacked), so the player isn't
   competing for space — keep plain cover/center. */
@media (max-width: 767px) {
    .elementor-168 .phc-contact-hero {
        background-size: cover !important;
        background-position: center center !important;
    }
}

/* Content must paint above the overlay */
.phc-contact-hero > .e-con-inner,
.phc-contact-hero > .elementor-element {
    position: relative;
    z-index: 2;
}

/* Defeat Elementor's default 50% opacity multiplier on ::before. Gradient is
   left→right per Figma: deepest on the left (where the copy sits), softens
   across the photo. */
.phc-contact-hero::before {
    opacity: 1 !important;
    background: linear-gradient(
        to right,
        rgba(0, 0, 0, 0.67)   0%,
        rgba(0, 0, 0, 0.47)  60%,
        rgba(0, 0, 0, 0.30) 100%
    ) !important;
}

/* ── Responsive grid on __body ──────────────────────────────────────────── */
.phc-contact-hero__body {
    /* Desktop: 4-row grid with 1fr spacer rows top + bottom so the
       content-sized header + info rows in the middle visually center
       against the taller form card on the right (form spans all 4 rows). */
    display: grid;
    grid-template-areas:
        ".      form"
        "header form"
        "info   form"
        ".      form";
    grid-template-columns: 1fr 480px;
    grid-template-rows: 1fr auto auto 1fr;
    column-gap: 48px;
    row-gap: 24px;
    align-items: start;
    width: 100%;
    /* Section itself has 0 horizontal padding, so the gutter lives on the body.
       80px left/right per Figma desktop; tablet/mobile override below. */
    padding-left: 80px !important;
    padding-right: 80px !important;
    box-sizing: border-box;
}

.phc-contact-hero__header { grid-area: header; text-align: left; }
.phc-contact-hero__info   { grid-area: info;   align-self: start; }
.phc-contact-hero__form   { grid-area: form;   align-self: center; }

/* Tablet 768–1024 — same two-column desktop pattern but narrower form col;
   header stays left-aligned in the info column (matches Figma tablet). The
   section has 0 horizontal padding, so we push gutter onto the body itself. */
@media (max-width: 1024px) {
    .phc-contact-hero__body {
        grid-template-areas:
            ".      form"
            "header form"
            "info   form"
            ".      form";
        grid-template-columns: 1fr 340px;
        grid-template-rows: 1fr auto auto 1fr;
        column-gap: 32px;
        row-gap: 20px;
        padding-left: 32px !important;
        padding-right: 32px !important;
        box-sizing: border-box;
    }
    .phc-contact-hero__header { text-align: left; }
    .phc-contact-hero__info { align-self: start; }
}

/* Mobile ≤767 — single column; form above info, everything centered */
@media (max-width: 767px) {
    .phc-contact-hero {
        min-height: auto !important;  /* defeat Elementor's per-page CSS that pins desktop min-height */
    }
    .phc-contact-hero__body {
        grid-template-areas:
            "header"
            "form"
            "info";
        grid-template-columns: 1fr;
        grid-template-rows: auto auto auto;
        row-gap: 24px;
        padding-left: 16px !important;
        padding-right: 16px !important;
        box-sizing: border-box;
    }
    .phc-contact-hero__header { text-align: center; }
    /* Visit Us / Email Us match the desktop left-aligned, two-column layout */
    .phc-contact-hero__info { text-align: left; }
    .phc-contact-hero__info-block { align-items: flex-start; }
}

/* ── Info container — Visit full row, Email+Call side-by-side ───────────── */
/* Elementor's nested-container CSS variable defaults to 100% on every e-con
   child, so we override it at the block level. Min-width prevents tight
   wraps on long email + tel strings. */
.phc-contact-hero__info .phc-contact-hero__info-block {
    --container-widget-width: auto;
    flex: 0 1 auto;
    min-width: 200px;
    width: auto !important;
}

/* Visit Us spans the full info-column row above Email+Call (per Figma) */
.phc-contact-hero__info .phc-contact-hero__info-block--visit {
    flex: 0 0 100%;
    width: 100% !important;
    min-width: 0;
}

/* Tablet + mobile: every block stretches full-width and stacks vertically */
@media (max-width: 1024px) {
    .phc-contact-hero__info .phc-contact-hero__info-block,
    .phc-contact-hero__info .phc-contact-hero__info-block--visit {
        --container-widget-width: 100%;
        flex: 1 1 100%;
        width: 100% !important;
        min-width: 0;
    }
}

/* ── Eyebrow + value ────────────────────────────────────────────────────── */
.phc-contact-hero__info-eyebrow .elementor-heading-title {
    letter-spacing: 0.02em;
}

.phc-contact-hero__info .phc-contact-hero__info-value {
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

/* London/Amsterdam row inside Visit + Email blocks */
.phc-contact-hero__info-row {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    line-height: 22px;
}
.phc-contact-hero__info-label {
    flex: 0 0 auto;
    width: 90px;
    font-weight: 700;
    color: #E6E6E6;
}
.phc-contact-hero__info-text {
    flex: 1 1 0;
    min-width: 0;
    font-weight: 300;
    color: #E6E6E6;
}

/* Tablet KEEPS the fixed 90px label rail (base rule) so the London/Amsterdam
   values stay in one straight column — matches desktop. A width:auto here made
   the shorter "London:" label collapse, pushing its value left of "Amsterdam:".
   No override needed; intentionally left blank. */

/* Mobile: keep the label/value two-column rail left-aligned (matches Figma) */
@media (max-width: 767px) {
    .phc-contact-hero__info-row {
        flex-wrap: nowrap;
        justify-content: flex-start;
        gap: 16px;
    }
    /* keep the base 90px rail so values align in one column (no width:auto) */
}

/* ── Link hover — matches footer column-link pattern ────────────────────── */
/* `width: max-content` is critical: without it the <a> stretches to fill its
   flex-item parent (`.phc-contact-hero__info-text` is `flex:1 1 0`; for
   Call Us, the <a> is a direct child of the flex-column .info-value and
   inherits `align-items: stretch`). The stretch made ::after width:50%
   overflow the visible text. */
.phc-contact-hero__info-link {
    position: relative;
    display: inline-block;
    width: max-content;
    max-width: 100%;
    padding-bottom: 6px;
    text-decoration: none !important;
    color: #E6E6E6;
    transition: color .35s cubic-bezier(.4, 0, .2, 1);
}
.phc-contact-hero__info-link::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    background-color: #9B8764;
    transition: width .45s cubic-bezier(.22, .61, .36, 1);
}
.phc-contact-hero__info-link:hover { color: #9B8764; }
.phc-contact-hero__info-link:hover::after { width: 50%; }

/* ── Form card wrapper (chrome only; Forminator CSS owns internals) ────── */
.phc-contact-hero__form {
    background: #FFFFFF;
    border-radius: 8px;
    padding: 32px;
    width: 100%;   /* grid column clamps the max */
    box-sizing: border-box;
}

@media (max-width: 1024px) {
    .phc-contact-hero__form { padding: 24px; }
}

@media (max-width: 767px) {
    .phc-contact-hero__form { padding: 24px 20px; }
}

/* Forminator injects its own top/bottom margins; trim them inside our card */
.phc-contact-hero__form .forminator-ui {
    margin: 0;
}
