/* ── Photo Background Hero ───────────────────────────────── */

.photo-hero {
    position: relative;
    background-color: var(--wp--preset--color--secondary);
    padding: 4rem 0;
    min-height: 520px;
    display: flex;
    align-items: center;
}

/* Background image — absolutely positioned so browser can preload it */
.photo-hero__bg-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

/* Dark overlay */
.photo-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, var(--hero-overlay, 0.6));
    z-index: 1;
}

.photo-hero__inner {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 3rem;
    align-items: center;
    width: 100%;
}

/* ── Left content ─────────────────────────────────────────── */
.photo-hero__content {
    color: #fff;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

/* Headline */
.photo-hero__headline {
    display: flex;
    flex-direction: column;
    margin: 0;
    line-height: 1.1;
    font-size: clamp(2.75rem, 5.5vw, 4.5rem);
    font-weight: 900;
    letter-spacing: -.02em;
}
.photo-hero__hl1,
.photo-hero__hl2 {
    display: block;
}

/* Subtext */
.photo-hero__subtext {
    color: var(--hero-text-color, #fff);
    font-size: 1.125rem;
    line-height: 1.65;
    max-width: 440px;
    margin: 0;
}

/* ── CTA row ──────────────────────────────────────────────── */
.photo-hero__ctas {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

/* Primary button */
.photo-hero__cta-btn {
    display: inline-flex;
    align-items: center;
    gap: .875rem;
    padding: .8rem 1.5rem;
    background: var(--wp--preset--color--primary, #B00000);
    color: #fff;
    border-radius: 2px;
    box-shadow: 0 0 0 0 rgb(var(--nifty-secondary-rgb) / 0);
    text-decoration: none;
    transition: box-shadow .35s cubic-bezier(.4, 0, .2, 1);
}
.photo-hero__cta-btn:hover {
    color: #fff;
    box-shadow: 5px 5px 0 0 rgb(var(--nifty-secondary-rgb) / 1);
}
.photo-hero__cta-btn svg { flex-shrink: 0; }
.photo-hero__cta-btn-text {
    display: flex;
    flex-direction: column;
}
.photo-hero__cta-btn-text strong {
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: .08em;
    line-height: 1.2;
}
.photo-hero__cta-btn-text small {
    font-size: .8rem;
    font-weight: 400;
    opacity: .85;
    letter-spacing: .02em;
}

/* Phone */
.photo-hero__phone {
    display: flex;
    flex-direction: column;
    gap: .1rem;
}
.photo-hero__phone-label {
    font-size: .8rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--hero-text-color, #fff);
}
.photo-hero__phone-number {
    font-size: 1.875rem;
    font-weight: 800;
    color: var(--hero-text-color, #fff);
    text-decoration: none;
    letter-spacing: -.01em;
}
.photo-hero__phone-number:hover {
    color: var(--wp--preset--color--primary);
}

/* ── Right: Form card ─────────────────────────────────────── */
.photo-hero__form-wrap {
    display: flex;
    justify-content: flex-end;
}

.photo-hero__form-card {
    background: #fff;
    border-radius: 10px;
    padding: 1.75rem;
    width: 100%;
    max-width: 380px;
    box-shadow: 0 20px 60px rgba(0,0,0,.3);
}

/* Form badge */
.photo-hero__form-badge {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    background: #22c55e;
    color: #fff;
    border-radius: 999px;
    padding: .3rem .875rem;
    font-size: .8rem;
    font-weight: 700;
    letter-spacing: .1em;
    margin-bottom: 1rem;
}

/* Form headline */
.photo-hero__form-headline {
    display: flex;
    flex-direction: column;
    margin-bottom: .5rem;
    line-height: 1.15;
}
.photo-hero__form-h1 {
    font-size: 2rem;
    font-weight: 900;
    color: var(--wp--preset--color--secondary, #0B2169);
    letter-spacing: -.02em;
}
.photo-hero__form-h2 {
    font-size: 2rem;
    font-weight: 900;
    color: var(--wp--preset--color--primary, #B00000);
    letter-spacing: -.02em;
}

.photo-hero__form-subtext {
    font-size: 1rem;
    color: #6b7280;
    margin: 0 0 1.25rem;
}

/* ── Form field overrides (scoped) ────────────────────────── */
.photo-hero__form-card .gform_body,
.photo-hero__form-card .gform-body {
    padding: 0;
}
.photo-hero__form-card .gform_heading { display: none; }
.photo-hero__form-card .gform_fields { gap: .625rem; }

.photo-hero__form-card .gfield_label,
.photo-hero__form-card .gform-field-label { display: none; }

.photo-hero__form-card input[type="text"],
.photo-hero__form-card input[type="email"],
.photo-hero__form-card input[type="tel"],
.photo-hero__form-card input[type="number"],
.photo-hero__form-card select,
.photo-hero__form-card textarea {
    width: 100%;
    background: #f3f4f6;
    border: 1px solid #e5e7eb;
    border-radius: 5px;
    padding: .7rem .875rem;
    font-size: 1rem;
    color: #111;
    font-family: var(--wp--preset--font-family--oswald, sans-serif);
    transition: border-color .15s;
    box-shadow: none;
    outline: none;
}
.photo-hero__form-card input:focus,
.photo-hero__form-card select:focus,
.photo-hero__form-card textarea:focus {
    border-color: var(--wp--preset--color--secondary, #0B2169);
}

.photo-hero__form-card select {
    appearance: auto;
    cursor: pointer;
}

.photo-hero__form-card textarea {
    resize: vertical;
    min-height: 80px;
}

/* Two-column name row */
.photo-hero__form-card .ginput_container--name {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: .625rem;
}

.photo-hero__form-card .gform_footer,
.photo-hero__form-card .gform-footer {
    padding: .75rem 0 0;
    margin: 0;
}

/* Submit button */
.photo-hero__form-card .gform_button,
.photo-hero__form-card input[type="submit"] {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    padding: .875rem 1.5rem;
    background: var(--wp--preset--color--primary, #B00000);
    color: #fff;
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: .1em;
    text-transform: uppercase;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    box-shadow: 0 4px 18px rgb(var(--nifty-primary-rgb) / .35);
    transition: filter .2s;
    font-family: var(--wp--preset--font-family--oswald, sans-serif);
    height: auto;
    line-height: 1.3;
}
.photo-hero__form-card .gform_button:hover { filter: brightness(.88); }

/* GF bottom message (T&C text) */
.photo-hero__form-card .gform-bottom-message,
.photo-hero__form-card .gfield_html {
    font-size: .68rem;
    color: #9ca3af;
    line-height: 1.5;
}

/* Form footer */
.photo-hero__form-footer {
    display: flex;
    align-items: center;
    gap: .35rem;
    font-size: .875rem;
    color: #6b7280;
    margin: .875rem 0 0;
}

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 1024px) {
    .photo-hero__inner {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    .photo-hero__content {
        align-items: center;
        text-align: center;
    }
    .photo-hero__ctas { justify-content: center; }
    .photo-hero__phone { align-items: center; }
    .photo-hero__form-wrap {
        justify-content: center;
    }
    .photo-hero__form-card {
        max-width: 100%;
    }
}

@media (max-width: 600px) {
    .photo-hero { padding: 3rem 0; }
    .photo-hero__ctas { flex-direction: column; align-items: center; }
    .photo-hero__trust-row { flex-direction: column; }
    .photo-hero__trust-item { flex: none; width: 100%; }
}
