/* ==========================================================================
   Philadelphia PPC Landing Pages — Custom Styles
   Created: 2026-02-20
   Updated: 2026-02-20 (conversion design overhaul + TY fixes)
   Linked AFTER style.css to override where needed.
   Mobile-first: base styles are mobile, scale up via min-width breakpoints.
   ========================================================================== */

/* ---- Announcement / Trust Bar ---- */
.phl-trust-bar {
    background-color: #20293a;
    color: #fff;
    padding: 10px 0;
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

.phl-trust-bar .trust-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    white-space: nowrap;
}

.phl-trust-bar .trust-item i {
    color: #4ba29f;
    font-size: 0.85rem;
}

.phl-trust-bar .row {
    --bs-gutter-x: 0.5rem;
}

@media (min-width: 768px) {
    .phl-trust-bar {
        font-size: 0.8rem;
        letter-spacing: 1px;
        padding: 14px 0;
    }

    .phl-trust-bar .trust-item {
        gap: 6px;
    }

    .phl-trust-bar .trust-item i {
        font-size: 1rem;
    }
}

/* ---- Hero — Mobile-First ---- */
/* Override style.css .page-banner white-bg redesign for PPC dark hero */
.phl-hero {
    min-height: auto;
    padding-top: 90px !important;
    padding-bottom: 2rem !important;
    background-color: #0b2447 !important;
}

.phl-hero .caption {
    line-height: 1.5;
}

.phl-hero h1 {
    font-size: 1.75rem;
    line-height: 1.2;
    color: #fff !important;
}

.phl-hero .lead {
    color: rgba(255, 255, 255, 0.9) !important;
    font-size: 1rem;
    line-height: 1.5;
}

.phl-hero .phone-cta-large {
    font-family: "Outfit", sans-serif;
    font-size: 1.35rem;
    font-weight: 700;
    color: #fff;
    text-decoration: none;
    display: inline-block;
    margin-top: 0.5rem;
}

.phl-hero .phone-cta-large:hover {
    color: #4ba29f;
}

/* Grey phone button in hero — override style.css display:none */
.phl-hero .btn-phone-cta {
    min-height: 48px;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
}

/* Green CTA button in hero */
.phl-hero .btn-green {
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Trust badges in hero — override style.css dark-text colors */
.phl-hero .trust-badge .number {
    color: #fff !important;
}

.phl-hero .trust-badge .label {
    color: rgba(255, 255, 255, 0.8) !important;
}

.phl-hero .round-icon-sm img {
    filter: brightness(0) invert(1);
}

@media (min-width: 768px) {
    .phl-hero {
        min-height: 540px !important;
        padding-top: 120px !important;
        padding-bottom: 3rem !important;
    }

    .phl-hero h1 {
        font-size: 3rem;
    }

    .phl-hero .lead {
        font-size: 1.15rem;
    }

    .phl-hero .phone-cta-large {
        font-size: 2rem;
        margin-top: 0.75rem;
    }
}

@media (min-width: 992px) {
    .phl-hero h1 {
        font-size: 3.5rem;
    }
}

/* ---- Urgency Line (SEO page hero only) ---- */
.phl-urgency {
    font-size: 0.8rem;
    font-style: italic;
    color: rgba(255, 255, 255, 0.6);
    margin-top: 0.75rem;
}

@media (min-width: 768px) {
    .phl-urgency {
        font-size: 0.85rem;
        margin-top: 1rem;
    }
}

/* ---- Full-Width Trust Strip (below hero) ---- */
.phl-trust-strip {
    background-color: #4ba29f;
    color: #fff;
    padding: 1rem 0;
}

.phl-trust-strip .strip-item {
    text-align: center;
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    line-height: 1.3;
}

.phl-trust-strip .strip-item strong {
    display: block;
    font-family: "Outfit", sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 2px;
}

.phl-trust-strip .row {
    row-gap: 0.75rem;
}

/* ---- Google Review Badge in Trust Strip ---- */
.phl-google-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.phl-google-logo {
    height: 20px;
    width: auto;
    object-fit: contain;
}

.phl-google-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.phl-google-stars {
    color: #F5A623;
    font-size: 0.75rem;
    letter-spacing: 1px;
}

.phl-google-rating {
    font-size: 0.65rem;
    font-weight: 700;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

@media (min-width: 768px) {
    .phl-trust-strip {
        padding: 1.25rem 0;
    }

    .phl-trust-strip .strip-item {
        font-size: 0.75rem;
        letter-spacing: 0.5px;
    }

    .phl-trust-strip .strip-item strong {
        font-size: 1.25rem;
    }

    .phl-trust-strip .row {
        row-gap: 0;
    }

    .phl-google-logo {
        height: 22px;
    }

    .phl-google-stars {
        font-size: 0.8rem;
    }

    .phl-google-rating {
        font-size: 0.7rem;
    }
}

/* ---- Service Cards for Landing Pages ---- */
.phl-service-cards .service-card {
    background-color: #fff;
    border-radius: 0.5rem;
    padding: 1.5rem 1.25rem;
    height: 100%;
    text-align: center;
}

.phl-service-cards .service-card img {
    margin-bottom: 0.75rem;
    width: 40px;
    height: 40px;
}

.phl-service-cards .service-card h3 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: #4ba29f;
}

.phl-service-cards .service-card p {
    font-size: 0.875rem;
    line-height: 1.6;
}

@media (min-width: 768px) {
    .phl-service-cards .service-card {
        padding: 2rem 1.5rem;
    }

    .phl-service-cards .service-card img {
        margin-bottom: 1rem;
        width: 48px;
        height: 48px;
    }

    .phl-service-cards .service-card h3 {
        font-size: 1.1rem;
        margin-bottom: 0.75rem;
    }
}

/* ---- Industry Icon Cards ---- */
.phl-industry-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.phl-industry-card {
    background-color: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 0.5rem;
    padding: 1.25rem 1rem;
    text-align: center;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.phl-industry-card:hover {
    border-color: #4ba29f;
    box-shadow: 0 4px 12px rgba(75, 162, 159, 0.15);
}

.phl-industry-card .industry-icon {
    font-size: 1.5rem;
    color: #4ba29f;
    margin-bottom: 0.5rem;
    display: block;
}

.phl-industry-card .industry-name {
    font-size: 0.8rem;
    font-weight: 600;
    color: #20293a;
    margin: 0;
    line-height: 1.3;
}

@media (min-width: 576px) {
    .phl-industry-cards {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (min-width: 768px) {
    .phl-industry-card {
        padding: 1.5rem 1rem;
    }

    .phl-industry-card .industry-icon {
        font-size: 1.75rem;
        margin-bottom: 0.75rem;
    }

    .phl-industry-card .industry-name {
        font-size: 0.85rem;
    }
}

/* ---- Differentiator Blocks ---- */
.phl-diff-block {
    padding: 1.5rem 1.25rem;
    border-radius: 0.5rem;
    height: 100%;
}

.phl-diff-block h3 {
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

.phl-diff-block p {
    margin-bottom: 0;
    font-size: 0.875rem;
    line-height: 1.6;
}

.phl-diff-block.style-green {
    background-color: #4ba29f;
    color: #fff;
}

.phl-diff-block.style-light {
    background-color: #ebebeb;
}

.phl-diff-block.style-light h3 {
    color: #4ba29f;
}

@media (min-width: 768px) {
    .phl-diff-block {
        padding: 2rem 1.5rem;
    }

    .phl-diff-block h3 {
        font-size: 1rem;
        margin-bottom: 0.75rem;
    }
}

/* ---- Results Section ---- */
.phl-results {
    background-color: #ebebeb;
}

.phl-result-card {
    background-color: #fff;
    border-radius: 0.75rem;
    padding: 2rem 1.25rem;
    text-align: center;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    height: 100%;
}

.phl-result-number {
    font-family: "Outfit", sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: #4ba29f;
    line-height: 1;
    margin-bottom: 0.25rem;
}

.phl-result-label {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #4c5466;
    margin-bottom: 0.5rem;
}

.phl-result-desc {
    font-size: 0.8rem;
    color: #6c757d;
    margin-bottom: 0;
    line-height: 1.4;
}

@media (min-width: 768px) {
    .phl-result-card {
        padding: 2.5rem 1.5rem;
    }

    .phl-result-number {
        font-size: 3.5rem;
    }

    .phl-result-label {
        font-size: 0.8rem;
    }

    .phl-result-desc {
        font-size: 0.85rem;
    }
}

/* ---- Testimonial Section (Upgraded) ---- */
.phl-testimonials .review-item {
    background-color: #fff;
    border-radius: 0.75rem;
    padding: 1.5rem;
    height: 100%;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.phl-testimonials .review-item .review-stars {
    color: #F5A623;
    font-size: 1rem;
    letter-spacing: 2px;
    margin-bottom: 0.75rem;
}

.phl-testimonials .review-item blockquote p {
    font-size: 0.875rem;
    line-height: 1.6;
}

.phl-testimonials .review-item .author h6 {
    margin-bottom: 0.15rem;
}

.phl-testimonials .phl-verified-label {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.65rem;
    color: #4ba29f;
    font-weight: 600;
    margin-top: 0.35rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.phl-testimonials .phl-verified-label i {
    font-size: 0.75rem;
}

@media (min-width: 768px) {
    .phl-testimonials .review-item {
        padding: 2rem;
    }

    .phl-testimonials .review-item .review-stars {
        font-size: 1.1rem;
    }

    .phl-testimonials .review-item blockquote p {
        font-size: 1rem;
    }

    .phl-testimonials .phl-verified-label {
        font-size: 0.7rem;
    }
}

/* ---- Lead Form Section (Redesigned — dark bg + sidebar) ---- */
.phl-form-section {
    background-color: #02062f;
    color: #fff;
}

.phl-form-section h2 {
    font-size: 1.5rem;
}

.phl-form-card {
    background-color: #fff;
    border-radius: 0.75rem;
    padding: 1.5rem;
    color: #212529;
}

.phl-form-card h2 {
    color: #20293a;
    font-size: 1.35rem;
    margin-bottom: 0.5rem;
}

.phl-form-card .form-subtitle {
    color: #6c757d;
    font-size: 0.875rem;
    margin-bottom: 1.25rem;
}

.phl-form-card .form-control,
.phl-form-card .form-select {
    background-color: #f8f9fa;
    border: 2px solid #e0e0e0;
    padding: 14px 16px;
    font-size: 16px;
    /* Prevents iOS zoom on focus */
    border-radius: 5px;
    opacity: 1;
    min-height: 48px;
    -webkit-appearance: none;
    color: #212529;
}

.phl-form-card .form-control:focus,
.phl-form-card .form-select:focus {
    border-color: #4ba29f;
    box-shadow: 0 0 0 0.2rem rgba(75, 162, 159, 0.25);
    background-color: #fff;
}

.phl-form-card .form-control::placeholder {
    color: #6c757d;
    opacity: 0.8;
}

.phl-form-card textarea.form-control {
    min-height: 100px;
    resize: vertical;
}

.phl-form-card .btn-lg {
    min-height: 52px;
    font-size: 0.8rem;
    padding: 14px 20px;
}

.phl-form-card .form-trust-text {
    font-size: 0.75rem;
    color: #6c757d;
    margin-top: 0.75rem;
}

/* Form sidebar */
.phl-form-sidebar {
    color: #fff;
}

.phl-form-sidebar h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1.25rem;
    color: #fff;
}

.phl-form-sidebar .sidebar-checks {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem 0;
}

.phl-form-sidebar .sidebar-checks li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.9);
}

.phl-form-sidebar .sidebar-checks li i {
    color: #4ba29f;
    font-size: 1.1rem;
    flex-shrink: 0;
    margin-top: 2px;
}

.phl-form-sidebar .sidebar-phone-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 0.25rem;
}

.phl-form-sidebar .phone-cta-sidebar {
    font-family: "Outfit", sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    text-decoration: none;
    display: inline-block;
}

.phl-form-sidebar .phone-cta-sidebar:hover {
    color: #4ba29f;
}

.phl-form-sidebar .sidebar-subtext {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.5);
    font-style: italic;
    margin-top: 0.25rem;
}

@media (min-width: 768px) {
    .phl-form-section h2 {
        font-size: 2rem;
    }

    .phl-form-card {
        padding: 2rem;
    }

    .phl-form-card .form-control,
    .phl-form-card .form-select {
        padding: 12px 16px;
        font-size: 0.875rem;
    }

    .phl-form-card .btn-lg {
        font-size: 0.875rem;
        padding: 16px 24px;
    }

    .phl-form-card h2 {
        font-size: 1.5rem;
    }
}

@media (min-width: 992px) {
    .phl-form-sidebar {
        padding-top: 1rem;
    }

    .phl-form-sidebar h3 {
        font-size: 1.35rem;
    }

    .phl-form-sidebar .phone-cta-sidebar {
        font-size: 1.75rem;
    }
}

/* Legacy form styles (keep for backwards compat if needed) */
.phl-form-section .phone-cta-form {
    font-family: "Outfit", sans-serif;
    font-size: 1.15rem;
    font-weight: 700;
    color: #4ba29f;
    text-decoration: none;
}

.phl-form-section .phone-cta-form:hover {
    color: #55b5b2;
}

/* ---- FAQ for Landing Pages ---- */
.phl-faq .accordion-item {
    border: 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.phl-faq .accordion-item:first-child {
    border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.phl-faq .accordion-button {
    font-weight: 600;
    font-size: 0.875rem;
    /* padding: 1.25rem 0; */
    /* padding-right: 2rem; */
    background-color: transparent;
    min-height: 48px;
}

.phl-faq .accordion-button:not(.collapsed) {
    color: #4ba29f;
    background-color: transparent;
    box-shadow: none;
}

.phl-faq .accordion-body {
    /* padding: 0 0 1.25rem; */
    line-height: 1.7;
    font-size: 0.875rem;
}

@media (min-width: 768px) {
    .phl-faq .accordion-button {
        font-size: 0.95rem;
        /* padding: 1.5rem 0; */
        /* padding-right: 2.5rem; */
    }

    .phl-faq .accordion-body {
        /* padding: 0 0 1.5rem; */
        font-size: 1rem;
    }
}

/* ---- Thank You Page ---- */
.phl-thankyou {
    padding-top: 110px;
    padding-bottom: 3rem;
    min-height: 60vh;
    display: flex;
    align-items: center;
    background-color: #0b2447;
    color: #fff;
}

.phl-thankyou h1 {
    color: #fff;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.phl-thankyou .lead {
    font-size: 0.9rem;
    line-height: 1.6;
}

.phl-thankyou .phone-cta-large {
    font-family: "Outfit", sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    text-decoration: none;
}

.phl-thankyou .phone-cta-large:hover {
    color: #4ba29f;
}

.phl-thankyou .btn-green {
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

@media (min-width: 768px) {
    .phl-thankyou {
        padding-top: 140px;
        padding-bottom: 4rem;
    }

    .phl-thankyou h1 {
        font-size: 2.75rem;
    }

    .phl-thankyou .lead {
        font-size: 1rem;
    }

    .phl-thankyou .phone-cta-large {
        font-size: 2.25rem;
    }
}

/* ---- Neighborhoods Pill Tags ---- */
.phl-neighborhoods .badge-pill {
    display: inline-block;
    background-color: rgba(75, 162, 159, 0.15);
    color: #4ba29f;
    border-radius: 50px;
    padding: 8px 14px;
    font-size: 0.75rem;
    font-weight: 600;
}

@media (min-width: 768px) {
    .phl-neighborhoods .badge-pill {
        padding: 8px 16px;
        font-size: 0.8rem;
    }
}

/* ---- Landing Page Header Override (minimal nav for thank-you) ---- */
.phl-header-minimal .navbar-collapse,
.phl-header-minimal .navbar-toggler {
    display: none !important;
}

/* Fix: Keep logo left / call button right on TY pages */
.phl-header-minimal .cntr {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center;
    text-align: left;
    padding: 0 12px !important;
}

/* ---- Scroll margin for form anchor ---- */
#lead-form {
    scroll-margin-top: 80px;
}

/* ---- Mobile Sticky CTA (PPC Landing Pages) ---- */
.phl-mobile-sticky-cta {
    display: block;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 10px 16px;
    background-color: #20293a;
    z-index: 1000;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.2);
}

.phl-mobile-sticky-cta .sticky-inner {
    display: flex;
    gap: 8px;
}

.phl-mobile-sticky-cta .btn {
    flex: 1;
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    padding: 10px 12px;
}

.phl-mobile-sticky-cta .btn-call-sticky {
    background-color: #4ba29f;
    color: #fff;
    border: none;
    border-radius: 5px;
    font-weight: 700;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.phl-mobile-sticky-cta .btn-form-sticky {
    background-color: transparent;
    color: #fff;
    border: 2px solid #fff;
    border-radius: 5px;
    font-weight: 600;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Pad body bottom on mobile so sticky CTA doesn't overlap content */
body.has-sticky-cta {
    padding-bottom: 70px;
}

@media (min-width: 768px) {
    .phl-mobile-sticky-cta {
        display: none !important;
    }

    body.has-sticky-cta {
        padding-bottom: 0;
    }
}

/* ---- Mobile-specific section spacing ---- */
@media (max-width: 575px) {

    /* Tighter section padding on small phones */
    .phl-hero .container-xxl {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    /* Hide large phone CTA on mobile — sticky bar handles it */
    .phl-hero .phone-cta-large {
        display: none;
    }

    /* Make hero buttons full-width on small screens */
    .phl-hero .d-flex {
        flex-direction: column !important;
        width: 100%;
    }

    .phl-hero .d-flex .btn {
        width: 100%;
    }

    /* Trust strip: hide last item on very small screens */
    .phl-trust-strip .row>.col:last-child {
        display: none;
    }

    /* Form submit button text smaller */
    .phl-form-card .btn-lg {
        font-size: 0.75rem;
        letter-spacing: 0.3px;
    }

    /* Neighborhoods text smaller */
    .phl-neighborhoods .badge-pill {
        font-size: 0.7rem;
        padding: 6px 10px;
    }
}

/* ---- Touch target enforcement ---- */
.phl-hero a,
.phl-hero button,
.phl-form-card button,
.phl-faq .accordion-button,
.phl-industry-card,
.phl-mobile-sticky-cta a {
    min-height: 44px;
}

/* ---- Hide mobile arrow icons to prevent line wrap (matches mobile-fixes.css) ---- */
@media (max-width: 767px) {

    .phl-form-card .btn .bi-arrow-right-short,
    .phl-hero .btn .bi-arrow-right-short {
        display: none;
    }
}