/* ==========================================================================
   Prestige Car Insurance — CTA band + Footer (Two-tone Utility direction)
   ========================================================================== */

/* Hide the legacy theme footer (we replace it). */
footer#rs-footer,
footer#colophon { display: none !important; }

/* ===== Pre-footer CTA band ============================================== */
.pci-cta-band {
    background: #faf8f4;
    padding: 64px 40px;
    border-top: 1px solid rgba(26, 23, 21, .06);
    font-family: var(--pci-sans, "Manrope", system-ui, sans-serif);
    color: var(--pci-ink, #1a1715);
}
.pci-cta-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 56px;
    align-items: center;
}
.pci-eyebrow {
    font-family: var(--pci-mono, "JetBrains Mono", monospace);
    font-size: 10px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--pci-teal, #25826A);
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.pci-eyebrow-rule {
    width: 16px;
    height: 1px;
    background: var(--pci-teal, #25826A);
    display: inline-block;
}
.pci-cta-headline {
    margin: 0;
    font-size: 48px;
    line-height: 1.05;
    font-weight: 700;
    letter-spacing: -0.025em;
    color: var(--pci-ink, #1a1715);
    max-width: 620px;
}
.pci-italic-serif {
    font-style: italic;
    font-family: "Newsreader", Georgia, serif;
    font-weight: 400;
}
.pci-cta-actions {
    display: flex;
    flex-direction: column;
    gap: 14px;
    align-items: flex-start;
}
.pci-cta-pill {
    display: inline-flex;
    align-items: center;
    gap: 16px;
    padding: 16px 8px 16px 26px;
    background: var(--pci-teal-deep, #003A37);
    color: #faf8f4 !important;
    text-decoration: none;
    font-size: 15px;
    font-weight: 600;
    border-radius: 99px;
    transition: background .15s;
}
.pci-cta-pill:hover { background: #002827; }
.pci-cta-pill-chip {
    width: 38px;
    height: 38px;
    border-radius: 99px;
    background: var(--pci-teal, #25826A);
    display: grid;
    place-items: center;
    color: #fff;
}
.pci-cta-fallback {
    font-family: var(--pci-mono, "JetBrains Mono", monospace);
    font-size: 11px;
    color: rgba(26, 23, 21, .55);
    margin-top: 4px;
}
.pci-cta-fallback a {
    color: var(--pci-ink, #1a1715);
    text-decoration: none;
    margin-left: 6px;
}

/* ===== Main footer (deep teal) ========================================= */
.pci-footer {
    background: var(--pci-teal-deep, #003A37);
    color: #f7f4ef;
    font-family: var(--pci-sans, "Manrope", system-ui, sans-serif);
    padding: 72px 40px 24px;
    position: relative;
    overflow: hidden;
}
.pci-footer * { box-sizing: border-box; }
.pci-footer a { color: inherit; text-decoration: none; }

.pci-footer-watermark {
    position: absolute;
    left: -20px;
    bottom: -60px;
    font-family: "Newsreader", Georgia, serif;
    font-style: italic;
    font-size: 280px;
    line-height: .8;
    color: rgba(247, 244, 239, .025);
    letter-spacing: -0.04em;
    user-select: none;
    pointer-events: none;
    white-space: nowrap;
}
.pci-footer-inner {
    position: relative;
}

/* Top row */
.pci-footer-top {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
    gap: 56px;
    padding-bottom: 56px;
    border-bottom: 1px solid rgba(247, 244, 239, .1);
}

/* Brand col */
.pci-footer-brand {
    display: flex;
    flex-direction: column;
}
.pci-footer-logo {
    display: inline-flex;
    align-items: center;
    margin-bottom: 22px;
    background: #fff;
    border-radius: 16px;
    padding: 14px 22px;
    align-self: flex-start;
}
.pci-footer-logo img {
    height: 72px;
    width: auto;
    max-height: none;
    display: block;
}
.pci-footer-blurb {
    margin: 0;
    font-size: 14px;
    line-height: 1.6;
    color: rgba(247, 244, 239, .6);
    max-width: 320px;
}
.pci-footer-blurb-tight { margin-bottom: 16px; max-width: none; }
.pci-footer-status {
    margin-top: 22px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 99px;
    background: rgba(247, 244, 239, .06);
    border: 1px solid rgba(247, 244, 239, .1);
    font-size: 12px;
    color: rgba(247, 244, 239, .85);
    align-self: flex-start;
}
.pci-footer-status .pci-utility-dot {
    width: 6px;
    height: 6px;
    border-radius: 99px;
    background: #7bc4a8;
    box-shadow: 0 0 0 3px rgba(123, 196, 168, .25);
    animation: pci-pulse 2s ease-in-out infinite;
    display: inline-block;
}

/* Generic footer column */
.pci-footer-col {
    display: flex;
    flex-direction: column;
}
.pci-footer-heading {
    font-family: var(--pci-mono, "JetBrains Mono", monospace);
    font-size: 10px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: #7bc4a8;
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.pci-footer-toggle {
    background: transparent;
    border: 0;
    padding: 0;
    font-family: var(--pci-mono, "JetBrains Mono", monospace);
    color: #7bc4a8;
    cursor: pointer;
    width: 100%;
    text-align: left;
    /* on desktop, the toggle behaves like a static heading */
}
.pci-footer-toggle-icon { display: none; }

/* Contact list */
.pci-footer-contact {
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.pci-footer-contact-row {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    font-size: 14px;
    line-height: 1.5;
    color: #f7f4ef;
}
.pci-footer-contact-row svg {
    color: rgba(247, 244, 239, .6);
    margin-top: 2px;
    flex-shrink: 0;
}
.pci-footer-contact-row span { word-break: break-all; }
.pci-mono { font-family: var(--pci-mono, "JetBrains Mono", monospace); }

/* Services grid */
.pci-footer-services {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px 18px;
}
.pci-footer-services a {
    font-size: 13.5px;
    color: #f7f4ef;
    opacity: .85;
    transition: opacity .12s;
}
.pci-footer-services a:hover { opacity: 1; }

/* Newsletter — high specificity + key !importants because the parent theme
   has aggressive global input/button rules that would otherwise bleed in. */
.pci-footer .pci-footer-newsletter {
    display: flex;
    align-items: center;
    padding: 4px !important;
    border-radius: 99px !important;
    background: rgba(247, 244, 239, .06) !important;
    border: 1px solid rgba(247, 244, 239, .1) !important;
    margin: 0 0 22px !important;
    box-shadow: none !important;
    height: auto !important;
    width: 100%;
    box-sizing: border-box;
}
.pci-footer .pci-footer-newsletter input[type="email"] {
    flex: 1;
    background: transparent !important;
    border: 0 !important;
    outline: none !important;
    color: #f7f4ef !important;
    font-size: 13.5px !important;
    line-height: 1.4 !important;
    padding: 8px 14px !important;
    margin: 0 !important;
    font-family: inherit !important;
    font-weight: 400 !important;
    min-width: 0;
    width: auto;
    height: auto !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    text-transform: none !important;
    letter-spacing: 0 !important;
}
.pci-footer .pci-footer-newsletter input[type="email"]::placeholder {
    color: rgba(247, 244, 239, .4);
    opacity: 1;
}
.pci-footer .pci-footer-newsletter button[type="submit"] {
    padding: 8px 16px !important;
    border-radius: 99px !important;
    border: 0 !important;
    background: var(--pci-teal, #25826A) !important;
    color: #fff !important;
    cursor: pointer;
    font-size: 13px !important;
    line-height: 1.2 !important;
    font-weight: 600 !important;
    font-family: inherit !important;
    text-transform: none !important;
    letter-spacing: 0 !important;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: auto !important;
    width: auto !important;
    min-height: 0 !important;
    box-shadow: none !important;
    text-shadow: none !important;
    transition: background .15s;
    flex-shrink: 0;
}
.pci-footer .pci-footer-newsletter button[type="submit"]:hover {
    background: #1f6e59 !important;
}

.pci-footer-quicklinks {
    display: flex;
    gap: 18px;
    font-size: 13.5px;
    flex-wrap: wrap;
}
.pci-footer-quicklinks a {
    color: #f7f4ef;
    opacity: .85;
}
.pci-footer-quicklinks a:hover { opacity: 1; }

/* Compliance */
.pci-footer-compliance {
    padding: 32px 0;
    border-bottom: 1px solid rgba(247, 244, 239, .1);
    display: grid;
    grid-template-columns: 180px 1fr;
    gap: 40px;
}
.pci-footer-compliance .pci-footer-heading { margin-bottom: 10px; }
.pci-footer-afsl {
    font-size: 11px;
    color: rgba(247, 244, 239, .6);
}
.pci-footer-compliance-text {
    margin: 0;
    font-size: 11.5px;
    line-height: 1.65;
    color: rgba(247, 244, 239, .6);
    max-width: 880px;
}
.pci-footer-compliance-text strong {
    color: rgba(247, 244, 239, .85);
    font-weight: 600;
}

/* Bottom bar */
.pci-footer-bottom {
    padding-top: 22px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    font-size: 12px;
    color: rgba(247, 244, 239, .6);
    letter-spacing: 0.04em;
}
.pci-footer-legal {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
}
.pci-footer-legal a {
    color: rgba(247, 244, 239, .6);
}
.pci-footer-legal a:hover { color: #f7f4ef; }

/* ===== Responsive ====================================================== */
@media (max-width: 1100px) {
    .pci-cta-band { padding: 56px 24px; }
    .pci-cta-headline { font-size: 40px; }
    .pci-footer { padding: 56px 24px 24px; }
    .pci-footer-top {
        grid-template-columns: 1fr 1fr;
        gap: 40px 32px;
    }
    .pci-footer-watermark { font-size: 200px; }
}

@media (max-width: 720px) {
    .pci-cta-band { padding: 48px 20px; }
    .pci-cta-grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }
    .pci-cta-headline { font-size: 32px; }

    .pci-footer { padding: 48px 20px 24px; }
    .pci-footer-top {
        grid-template-columns: 1fr;
        gap: 0;
        padding-bottom: 0;
        border-bottom: 0;
    }
    .pci-footer-col,
    .pci-footer-brand {
        padding: 24px 0;
        border-top: 1px solid rgba(247, 244, 239, .1);
    }
    .pci-footer-brand {
        border-top: 0;
        padding-top: 0;
    }

    /* Mobile collapsible services */
    .pci-footer-toggle { cursor: pointer; }
    .pci-footer-toggle .pci-footer-toggle-icon {
        display: grid;
        place-items: center;
        width: 28px;
        height: 28px;
        border-radius: 99px;
        background: rgba(247, 244, 239, .08);
        transition: transform .2s ease;
    }
    .pci-footer-toggle[aria-expanded="true"] .pci-footer-toggle-icon { transform: rotate(45deg); }
    .pci-footer-toggle[aria-expanded="false"] + .pci-footer-services { display: none; }
    .pci-footer-services {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    .pci-footer-services a {
        display: flex;
        justify-content: space-between;
        align-items: center;
        font-size: 14px;
    }

    .pci-footer-blurb { max-width: none; }
    .pci-footer-newsletter input { font-size: 13px; padding: 8px 12px; }
    .pci-footer-newsletter button { padding: 8px 14px; font-size: 12px; }
    .pci-footer-newsletter button svg { display: none; }

    .pci-footer-compliance {
        grid-template-columns: 1fr;
        gap: 16px;
        padding: 24px 0;
    }

    .pci-footer-bottom {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        padding-top: 18px;
        font-size: 11px;
    }
    .pci-footer-legal { gap: 16px; }

    .pci-footer-watermark { font-size: 140px; bottom: -40px; }
}
