/*
Theme Name: Tact Prudence
Theme URI: https://tactprudence.com
Author: Tact Prudence
Description: Lightweight SEO-focused lead generation theme for Tact Prudence, built for TSF and Google Discover.
Version: 1.0
Text Domain: tactprudence
*/

:root {
    --tp-navy: #101935;        /* deep navy from logo */
    --tp-gold: #d2b25f;        /* warm gold accent */
    --tp-bg: #ffffff;
    --tp-text: #222222;        /* warmer, softer body text */
    --tp-muted: #555555;       /* softer muted tone */

    --tp-red: #e60000;         /* prod-style red for CTA */
    --tp-red-hover: #c90000;
    --tp-accent: var(--tp-red);

    --tp-header-gradient-start: #f4f5d6;
    --tp-header-gradient-end: #ffffff;

    --tp-max-width: 1120px;
    --tp-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Helvetica Neue", Arial, sans-serif;
    --tp-sticky-offset: 96px; /* adjust if your header is taller/shorter */
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

html, body {
    max-width: 100%;
    overflow-x: hidden;
}

body {
    margin: 0;
    padding: 0;
    font-size: 18px;
    font-weight: 400;
    color: var(--tp-text);
    background-color: var(--tp-bg);
    line-height: 1.7;
    font-family: var(--tp-font);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Global heading system */

h1, h2, h3, h4, h5, h6 {
    font-family: inherit;
    color: #222222;
    margin-top: 0;
    margin-bottom: 0.7rem;
}

h1 {
    font-size: clamp(32px, 4vw, 52px);
    font-weight: 600;
    line-height: 1.2;
}

h2 {
    font-size: clamp(26px, 3.2vw, 36px);
    font-weight: 600;
    line-height: 1.28;
}

h3 {
    font-size: 22px;
    font-weight: 500;
    line-height: 1.3;
}

h4 {
    font-size: 20px;
    font-weight: 500;
    line-height: 1.35;
}

h5 {
    font-size: 18px;
    font-weight: 500;
}

h6 {
    font-size: 16px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

/* Layout helpers */

.tp-container {
    width: 100%;
    max-width: var(--tp-max-width);
    margin: 0 auto;
    padding: 0 1rem;
}

.tp-section {
    padding: 0;
    padding-bottom: 3rem;
}
.tp-section:not(:first-child) {
    padding-top: 3rem;
}

.tp-section--light {
    background-color: #f7fafc;
}

.tp-section--dark {
    background-color: #1a202c;
    color: #f7fafc;
}

/* SECTION HEADINGS */

.tp-section h2 {
    font-size: clamp(26px, 2.4vw, 32px);
    font-weight: 600;
    line-height: 1.28;
    margin-bottom: 1rem;
    color: #222222;
}

.tp-section h3 {
    font-size: 20px;
    font-weight: 500;
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
    color: #222222;
}

/* HEADER */

/* Fixed header */
.site-header {
    background-image: linear-gradient(
        150deg,
        var(--tp-header-gradient-start) 0%,
        var(--tp-header-gradient-start) 45%,
        var(--tp-header-gradient-end) 100%
    );
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    backdrop-filter: blur(10px);
}

/* Placeholder under header to prevent layout jump (outside header in template) */
.site-header-placeholder {
    height: var(--header-height, 72px);
}

.site-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1rem;
    gap: 1.5rem;
}

.site-branding {
    display: flex;
    align-items: center;
    flex: 0 1 auto;
}

.site-logo img {
    display: block;
    height: 44px;
    width: auto;
}

/* slightly smaller logo on very small devices */
@media (max-width: 400px) {
    .site-logo img {
        height: 38px;
    }
}

/* Hide title/tagline visually but keep for SEO */

.site-title,
.site-tagline {
    position: absolute;
    left: -9999px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* NAVIGATION */

.main-nav {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex: 0 1 auto;
}

.main-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 1.25rem;
}

.main-nav a {
    text-decoration: none;
    color: #374151;
    font-size: 0.95rem;
    font-weight: 500;
}

.main-nav a:hover {
    color: var(--tp-navy);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

/* MORE PROMINENT HEADER PHONE */

.header-phone {
    font-size: 1rem;
    font-weight: 700;
    color: var(--tp-navy);
    white-space: nowrap;
    padding: 0.35rem 0.85rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

.header-phone::before {
    content: "📞";
    font-size: 1rem;
}

.header-phone a {
    color: inherit;
    text-decoration: none;
    display: inline-block;
}

.header-phone a:hover {
    text-decoration: underline;
}

/* Header CTA — smaller prod-style button */

.header-cta {
    white-space: nowrap;
    font-size: 0.9rem;
    padding: 0.5rem 1.35rem;
    border-radius: 10px;
    color: #ffffff !important;
}

/* MOBILE NAV TOGGLE */

.nav-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.7rem;
    cursor: pointer;
    flex: 0 0 auto;
    margin-left: auto;
}

/* Flex ordering to keep hamburger visible */
.site-branding {
    order: 1;
}
.main-nav {
    order: 2;
}
.nav-toggle {
    order: 3;
}

/* Mobile nav behavior */

@media (max-width: 768px) {
    .site-header-inner {
        gap: 0.75rem;
    }

    .main-nav {
        position: fixed;
        top: 56px;
        right: 0;
        left: auto;
        background: #ffffff;
        flex-direction: column;
        align-items: flex-start;
        padding: 1rem;
        box-shadow: 0 4px 12px rgba(0,0,0,0.1);
        max-width: 260px;
        z-index: 9999;
        display: none !important; /* hidden by default */
    }

    .main-nav.is-open {
        display: flex !important; /* show when toggled */
    }

    .main-nav ul {
        flex-direction: column;
        gap: 0.5rem;
    }

    .header-actions {
        flex-direction: column;
        align-items: stretch;
        width: 100%;
        margin-top: 0.75rem;
    }

    .header-phone {
        width: 100%;
        justify-content: center;
    }

    .header-cta {
        width: 100%;
        text-align: center;
    }

    .nav-toggle {
        display: block;
    }
}

/* HERO */

.hero {
    padding: 2.5rem 0 2rem;
}

/* container that holds both text and form */
.hero-centered {
    display: grid;
    gap: 2rem;
    align-items: flex-start;
}

/* desktop: 2 columns (text left, form right) */
@media (min-width: 900px) {
    .hero-centered {
        grid-template-columns: minmax(0, 1.6fr) minmax(0, 1.4fr);
        text-align: left;
    }
}

/* mobile: stacked, centered text */
@media (max-width: 899px) {
    .hero-centered {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

.hero-text {
    max-width: 720px;
}

/* center hero text block on mobile */
@media (max-width: 899px) {
    .hero-text {
        margin: 0 auto 0 auto;
    }
}

/* HERO HEADINGS — refined style */

.hero-title {
    font-size: clamp(34px, 4.8vw, 58px);
    font-weight: 600;
    line-height: 1.15;
    color: #222222;
    margin: 0 0 14px;
}

.hero-subtitle {
    font-size: clamp(20px, 3.3vw, 34px);
    font-weight: 500;
    line-height: 1.35;
    color: #333333;
    margin-bottom: 16px;
}

.hero-intro {
    font-size: 1rem;
    color: var(--tp-muted);
    margin-bottom: 14px;
}

.hero-bullets {
    list-style: none;
    padding: 0;
    margin-bottom: 1.25rem;
    font-size: 0.98rem;
    color: var(--tp-muted);
}

.hero-bullets li {
    display: inline-block;
    margin: 0 0.4rem 0.2rem 0.4rem;
}

/* Hero main CTA – mobile-only scroll-to-form */

.hero-main-cta {
    margin-top: 1rem;
}

/* desktop: hide duplicate hero CTA (we have header CTA + hero form) */
@media (min-width: 900px) {
    .hero-main-cta {
        display: none !important;
    }
}

/* BUTTONS – prod-style red, reused everywhere */

.tp-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.7rem 1.4rem;
    border-radius: 999px; /* overridden per use */
    border: none;
    cursor: pointer;
    font-weight: 700;
    font-size: 0.95rem;
    text-decoration: none;
    letter-spacing: 0.5px;
    transition: all 0.2s ease-in-out;
}

.tp-btn-primary {
    background: var(--tp-red);
    color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.30);
}

.tp-btn-primary:hover {
    background: var(--tp-red-hover);
    box-shadow: 0 4px 12px rgba(0,0,0,0.35);
    transform: translateY(-1px);
}

.tp-btn-outline {
    background-color: transparent;
    color: var(--tp-accent);
    border-radius: 999px;
    border: 1px solid var(--tp-accent);
    box-shadow: none;
}

.tp-btn-block {
    width: 100%;
}

/* LEAD FORM – hero form with Name + Phone visible, rest optional */

.lead-form {
    background-color: #ffffff;
    border-radius: 0.75rem;
    padding: 1.5rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    border: 1px solid rgba(0,0,0,0.04);
    max-width: 420px;
    margin: 0 0 0 auto; /* right align on desktop */
    text-align: left;
    scroll-margin-top: 96px;  /* prevent fixed header from covering anchor */
}

.lead-form-everywhere {
    max-width: 100%;
    width: 100%;
    margin: 0;
    text-align: left;
    scroll-margin-top: 0;  /* prevent fixed header from covering anchor */
}

/* center form on mobile */
@media (max-width: 899px) {
    .lead-form {
        margin: 0 auto;
    }
}

.lead-form h2 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-top: 0;
    margin-bottom: 0.5rem;
    color: #222222;
}

.lead-form p {
    font-size: 0.85rem;
    color: var(--tp-muted);
    margin-top: 0;
    margin-bottom: 1rem;
}

.lead-form-basic .form-row,
.lead-form-extra .form-row {
    margin-bottom: 0.8rem;
}

.lead-form label {
    display: block;
    font-size: 0.85rem;
    margin-bottom: 0.25rem;
    color: #333333;
}

.lead-form input[type="text"],
.lead-form input[type="email"],
.lead-form input[type="tel"],
.lead-form textarea,
.lead-form select {
    width: 100%;
    padding: 0.5rem 0.6rem;
    border-radius: 0.5rem;
    border: 1px solid #cbd5e0;
    font-size: 0.9rem;
    font-family: inherit;
    color: var(--tp-text);
}

.lead-form textarea {
    min-height: 80px;
}

/* Toggle for extra fields */

.lead-form-toggle {
    display: block;
    text-align: center;
    width: 100%;
    background: none;
    border: none;
    font-size: 0.85rem;
    color: var(--tp-accent);
    cursor: pointer;
    margin-top: 0.5rem;
}

/* Extra fields hidden by default */

.lead-form-extra {
    display: none;
    margin-top: 1rem;
    border-top: 1px solid #eee;
    padding-top: 1rem;
}

.lead-form.lead-form--expanded .lead-form-extra {
    display: block;
}

/* Form submit button */

.lead-form-submit {
    margin-top: 1rem;
    font-size: 0.95rem;
    padding-top: 0.7rem;
    padding-bottom: 0.7rem;
    margin-bottom: 1rem;
}

/* LISTS */

.tp-list-check {
    list-style: none;
    padding-left: 0;
    margin: 0;
}

.tp-list-check li {
    margin-bottom: 0.5rem;
    padding-left: 1.4rem;
    position: relative;
    font-size: 0.98rem;
    color: var(--tp-text);
}

.tp-list-check li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--tp-gold);
    font-weight: 700;
}

/* GRID 3 */

.tp-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
}

@media (max-width: 900px) {
    .tp-grid-3 {
        grid-template-columns: 1fr;
    }
}

/* COMPARISON TABLE */

.tp-compare {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
}

.tp-compare th,
.tp-compare td {
    border: 1px solid #e2e8f0;
    padding: 0.6rem 0.75rem;
    text-align: left;
    color: var(--tp-text);
}

.tp-compare th {
    background-color: #f7fafc;
    font-weight: 600;
}

/* TESTIMONIALS */

.testimonials {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
}

@media (max-width: 900px) {
    .testimonials {
        grid-template-columns: 1fr;
    }
}

.testimonial-card {
    background-color: #fefefe;
    border-radius: 0.75rem;
    padding: 1.25rem;
    box-shadow: 0 4px 14px rgba(0,0,0,0.06);
    border: 1px solid rgba(0,0,0,0.03);
    font-size: 0.98rem;
    color: var(--tp-text);
}
.testimonial-card p {
    margin-bottom: 0;
}
.testimonial-card h3 {
    margin-top: 0;
}

/* FAQ */

.faq-item {
    background: #ffffff;
    border-radius: 10px;
    padding: 16px 18px;
    margin-bottom: 14px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.faq-question {
    font-weight: 600;
    cursor: pointer;
    font-size: 0.98rem;
    color: #222222;
}

.faq-answer {
    margin-top: 0.25rem;
    font-size: 0.95rem;
    color: var(--tp-muted);
}

/* BLOG CARDS */

.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
}

@media (max-width: 900px) {
    .blog-grid {
        grid-template-columns: 1fr;
    }
}

/* BLOG CARDS */

.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
}

@media (max-width: 900px) {
    .blog-grid {
        grid-template-columns: 1fr;
    }
}

.blog-card {
    border-radius: 0.75rem;
    overflow: hidden;
    border: 1px solid #e2e8f0;
    background-color: #ffffff;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.03);
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.blog-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}

.blog-card-image-link {
    display: block;
}

/* Reset WordPress inline width/height on card images */
.blog-card-image {
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 1.91 / 1 !important; /* Discover-friendly ratio */
    object-fit: cover !important;
}

.blog-card-body {
    padding: 1rem;
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
}

.blog-card-title {
    margin: 0 0 0.5rem;
    font-size: 1.02rem;
    color: #222222;
}

.blog-card-title a {
    text-decoration: none;
    color: inherit;
    display: -webkit-box;
    -webkit-line-clamp: 2;           /* max 2 lines */
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-card-title a:hover {
    text-decoration: underline;
}

.blog-card-meta {
    font-size: 0.85rem;
    color: var(--tp-muted);
    margin-bottom: 0.75rem;
}

/* Make excerpt sit at the bottom of the card */
.blog-card-body p {
    margin-bottom: 0;
}

.blog-card-body p:last-child {
    margin-top: auto; /* forces excerpt to bottom */
}

.site-footer {
    background: #0b1120; /* dark navy */
    color: #e5e7eb;
    padding: 2.5rem 0 12rem 0;
    font-size: 0.9rem;
}

.footer-inner {
    display: flex;
    flex-wrap: wrap;
    gap: 1.75rem;
}

.footer-col {
    flex: 1 1 220px;
    min-width: 0;
}

.footer-brand {
    margin: 0 0 0.75rem;
}

.footer-subtext {
    margin: 0;
    color: #9ca3af;
}

.footer-subtext a {
    margin: 0;
    color: var(--tp-gold);
}

.footer-heading {
    margin: 0 0 0.5rem;
    font-weight: 600;
    color: #f9fafb;
}

.footer-links a {
    color: #e5e7eb;
    text-decoration: none;
}
.footer-brand a {
    color: #e5e7eb;
    
}

.footer-links a:hover {
    text-decoration: underline;
}

.footer-disclaimer {
    margin: 0.75rem 0 0.75rem;
    color: #9ca3af;
}

.footer-meta {
    margin: 0;
    color: #6b7280;
}

/* Make footer stack nicely on small screens */
@media (max-width: 768px) {
    .footer-inner {
        flex-direction: column;
    }
}

/* CTA VISIBILITY LOGIC */

/* ✅ Only hide header CTA on MOBILE when the form button is visible */
/* Desktop keeps header CTA for symmetry & conversions */
@media (max-width: 768px) {
    body.form-visible .header-cta {
        opacity: 0;
        pointer-events: none;
        visibility: hidden;
        transition: opacity 0.2s ease-out, visibility 0.2s ease-out;
    }
}

/* --- STICKY MOBILE CTA WITH ANIMATION, iOS SAFE AREA, DARK MODE --- */

/* slide-up + fade animation */
@keyframes tpSlideUpFade {
    from {
        opacity: 0;
        transform: translateY(16px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.sticky-mobile-cta {
    display: none;
}

@media (max-width: 768px) {
    .sticky-mobile-cta {
        position: fixed;
        bottom: calc(12px + env(safe-area-inset-bottom, 0px)); /* iOS safe area friendly */
        left: 0;
        right: 0;
        background: transparent;
        padding: 0 1rem;
        z-index: 60;
        pointer-events: none;
        display: none;
    }

    /* Show only when body has show-mobile-cta AND not hide-mobile-cta (keyboard, etc.) */
    body.show-mobile-cta:not(.hide-mobile-cta) .sticky-mobile-cta {
        display: flex;
        justify-content: center;
    }

    .sticky-mobile-cta-inner {
        max-width: var(--tp-max-width);
        width: 100%;
        margin: 0 auto;
        background-color: #ffffff;
        border-radius: 0.5rem;
        border: 1px solid #e2e8f0;
        padding: 0.9rem;
        display: flex;
        flex-direction: column;
        gap: 0.65rem;
        box-shadow: 0 -2px 12px rgba(0,0,0,0.12);
        pointer-events: auto;
        animation: tpSlideUpFade 0.25s ease-out;
    }

    .sticky-mobile-cta-text {
        font-size: 0.9rem;
        color: var(--tp-muted);
        text-align: center;
        padding: 0 0.3rem;
    }

    /* Buttons inside sticky CTA */
    .sticky-cta-call,
    .sticky-cta-offer {
        display: flex;
        justify-content: center;
        align-items: center;
        font-size: 0.95rem;
        padding: 0.75rem 1rem;
        width: 100%;
        border-radius: 0.65rem;
    }

    .sticky-cta-call {
        border: 1px solid var(--tp-accent);
        color: var(--tp-accent);
        background: #ffffff;
    }

    .sticky-cta-offer {
        background: var(--tp-accent);
        color: #ffffff;
        border: none;
    }

    .sticky-cta-offer:hover {
        background: var(--tp-red-hover);
    }

    /* Dark mode adaptations for sticky CTA only */
    @media (prefers-color-scheme: dark) {
        .sticky-mobile-cta-inner {
            background-color: #111827;
            border-color: #374151;
            box-shadow: 0 -2px 16px rgba(0,0,0,0.6);
        }

        .sticky-mobile-cta-text {
            color: #e5e7eb;
        }

        .sticky-cta-call {
            background: transparent;
            border-color: #fbbf24;
            color: #fbbf24;
        }

        .sticky-cta-offer {
            background: #f97316;
            color: #111827;
        }

        .sticky-cta-offer:hover {
            background: #ea580c;
        }
    }
}

/* Prevent iOS Safari from zooming on form fields */
@media (max-width: 768px) {
    input[type="text"],
    input[type="email"],
    input[type="tel"],
    input[type="number"],
    input[type="search"],
    input[type="password"],
    textarea,
    select {
        font-size: 16px !important;
        line-height: 1.4;
    }
}

.tp-compare span.good {
    color: #0a7a2f;
    font-weight: 700;
}
.tp-compare span.bad {
    color: #c00000;
    font-weight: 700;
}

.hero-call-now {
    margin-top: 0.75rem;
    font-size: 0.95rem;
    color: var(--tp-muted);
    text-align: center;
}
.hero-call-now a {
    font-weight: 600;
    color: var(--tp-navy);
    text-decoration: none;
}
.hero-call-now a:hover {
    text-decoration: underline;
}
.cta-final-form-disclaimer {
    font-size: 0.78rem;
    color: var(--tp-muted);
    margin-top: 0.5rem;
    line-height: 1.35;
    text-align: center;
}


.discover-featured-wrapper {
    margin: 0 0 1.25rem 0;
}

.discover-featured-image {
    display: block;
    width: 100%;
    height: auto;
    max-width: 1200px;
    margin: 0 auto;
    border-radius: 0.5rem;
    aspect-ratio: 1.91 / 1;
    object-fit: cover;
}

.tp-related-posts {
    margin-top: 2.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e2e2e2;
}

.tp-related-title {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

.tp-related-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.tp-related-item + .tp-related-item {
    margin-top: 0.35rem;
}

.tp-related-link {
    text-decoration: none;
    color: var(--tp-navy);
}

.tp-related-link:hover {
    text-decoration: underline;
}

.tp-author-block {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #e0e0e0;
}

.tp-author-inner {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.tp-author-avatar img {
    border-radius: 50%;
}

.tp-author-name {
    font-size: 1.2rem;
    margin: 0 0 0.25rem 0;
}

.tp-author-bio {
    margin: 0 0 0.5rem 0;
    color: var(--tp-muted);
}

.tp-author-readmore a {
    text-decoration: none;
    color: var(--tp-navy);
    font-weight: 600;
}

.tp-author-readmore a:hover {
    text-decoration: underline;
}

@media (max-width: 600px) {
    .tp-author-inner {
        display: block;
        text-align: center;
    }
    
}

/* Prevent sticky header from covering TOC headings */
.entry-content h2[id],
.entry-content h3[id] {
    scroll-margin-top: var(--tp-sticky-offset);
}
#cash-offer-form,

.tp-toc {
    border: 1px solid #e2e2e2;
    background: #fafafa;
    padding: 1rem;
    margin-bottom: 1.5rem;
    border-radius: 6px;
}

.tp-toc-title {
    font-weight: 700;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.tp-toc-list {
    list-style: disc;
    padding-left: 1.25rem;
    margin: 0;
}

.tp-toc-list li {
    margin: 0.35rem 0;
}

.tp-toc-list li::marker {
    color: var(--tp-gold); /* matches your brand */
}

.tp-toc-list a {
    text-decoration: none;
    color: var(--tp-navy);
}

.tp-toc-list a:hover {
    text-decoration: underline;
}

/* Prevent sticky header from covering TOC headings */
.entry-content h2[id],
.entry-content h3[id] {
    scroll-margin-top: var(--tp-sticky-offset);
}

#cash-offer-form,
.tp-section[id] {
    scroll-margin-top: var(--tp-sticky-offset);
}

.archive-header {
    margin-bottom: 1.5rem;
}

.archive-title {
    font-size: 1.6rem;
    margin: 0 0 0.5rem 0;
}

.archive-description {
    font-size: 0.95rem;
    color: var(--tp-muted);
}

.skip-link {
    position: absolute;
    left: -9999px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
    z-index: 999;
}

.skip-link:focus {
    left: 50%;
    top: 10px;
    width: auto;
    height: auto;
    padding: 0.5rem 1rem;
    transform: translateX(-50%);
    background: #111827;
    color: #ffffff;
    text-decoration: none;
    border-radius: 999px;
}

/* PAGINATION — Modern, clean, centered */
.nav-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.4rem;
    margin: 2rem 0 1rem;
    flex-wrap: wrap;
}

.nav-links a.page-numbers,
.nav-links span.page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 0.75rem;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: 8px;
    text-decoration: none;
    color: #1a1a1a;
    background: #f3f4f6; /* light gray */
    border: 1px solid #e5e7eb;
    transition: all 0.15s ease-in-out;
}

/* Hover */
.nav-links a.page-numbers:hover {
    background: #e5e7eb;
    border-color: #d1d5db;
}

/* Active page */
.nav-links .page-numbers.current {
    background: var(--tp-red);
    border-color: var(--tp-red);
    color: #ffffff;
}

/* Previous / Next buttons */
.nav-links a.prev,
.nav-links a.next {
    font-weight: 600;
    padding: 0 1rem;
    background: #ffffff;
    border: 1px solid #d1d5db;
}

.nav-links a.prev:hover,
.nav-links a.next:hover {
    background: #f3f4f6;
    border-color: #cbd5e0;
}

/* Mobile adjustments */
@media (max-width: 480px) {
    .nav-links a.page-numbers,
    .nav-links span.page-numbers {
        min-width: 36px;
        height: 36px;
        font-size: 0.85rem;
    }
}

/* Footer list styling upgrade */
.footer-links-list {
    list-style: none;
    padding-left: 0;
    margin: 0;
}

.footer-links-list li {
    margin-bottom: 0.45rem;
    line-height: 1.35;
}

.footer-links-list li a {
    display: inline-block;
    color: #e5e7eb;
    text-decoration: none;
    font-size: 0.92rem;
    transition: color 0.15s ease, transform 0.15s ease;
}

.footer-links-list li a:hover {
    color: var(--tp-gold);
    transform: translateX(2px);
}

/* Make footer list columns look more balanced */
.footer-col ul.footer-links-list {
    margin-top: 0.5rem;
}
/* Clamp recent post titles in footer */
.footer-links-list li a {
    display: -webkit-box;
    -webkit-line-clamp: 1; /* = one-line title */
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: normal;
    max-width: 100%;
}
.footer-links-list li {
    position: relative;
    padding-left: 14px;
}

.footer-links-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 8px;
    width: 6px;
    height: 6px;
    background: var(--tp-gold);
    border-radius: 50%;
    opacity: 0.7;
}
/* Footer Areas We Serve */
.footer-areas-list li a {
    display: inline-block;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    white-space: normal;
    text-overflow: ellipsis;
}

/* Gold bullet styling (inherits your footer list bullets) */
.footer-areas-list li {
    position: relative;
    padding-left: 0;
}

.footer-areas-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 8px;
    width: 6px;
    height: 6px;
    background: var(--tp-gold);
    border-radius: 50%;
    opacity: 0;
}

/* Full-width "Areas We Serve" row */
.footer-col-areas {
    flex: 1 1 100%;
    margin-top: 2rem;
}

/* Pill list layout */
.footer-areas-list {
    list-style: none;
    padding-left: 0;
    margin: 0.5rem 0 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

/* Individual pill items */
.footer-areas-list li {
    margin: 0;
}

/* Gold pill, navy text */
.footer-areas-list li a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.3rem 0.8rem;
    border-radius: 999px;
    background-color: var(--tp-gold);
    color: var(--tp-navy);
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    transition: background-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

/* Hover state */
.footer-areas-list li a:hover {
    background-color: #e0c578; /* slightly lighter gold */
    color: var(--tp-navy);
    transform: translateY(-1px);
    box-shadow: 0 3px 8px rgba(0,0,0,0.18);
}

/* Mobile: allow wrapping, but keep pills readable */
@media (max-width: 600px) {
    .footer-areas-list li a {
        white-space: normal;
        text-align: center;
    }
}

@media (max-width: 899px) {
    .lead-form-everywhere {
        margin: 0;
    }
}



.tp-contact-page .wp-block-columns {
    align-items: flex-start;
}

/* ============================
   MEET THE EXPERTS – MAGAZINE FOOTER STYLE
   ============================ */

.tp-experts-footer {
    padding: 48px 0 40px;
    background: transparent; /* footer already navy */
    color: #ffffff;
}

/* Small overline label for magazine-style feel */
.tp-experts-footer::before {
    content: "Editorial Team";
    display: block;
    font-size: 0.75rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    opacity: 0.7;
    text-align: center;
    margin-bottom: 6px;
}

/* Main section title */
.tp-experts-title {
    font-size: 1.35rem;
    margin-bottom: 26px;
    color: #ffffff;
    text-align: center;
}

/* Thin separator under title */
.tp-experts-title::after {
    content: "";
    display: block;
    width: 72px;
    height: 2px;
    margin: 10px auto 0;
    background: linear-gradient(
        90deg,
        rgba(255,255,255,0) 0%,
        rgba(255,255,255,0.7) 50%,
        rgba(255,255,255,0) 100%
    );
}

/* Grid layout – full-width magazine style */
.tp-experts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 22px;
    align-items: stretch; /* ensures cards stretch to equal height in each row */
}

/* Card: equal height + soft glow variant */
.tp-expert-card {
    position: relative;
    display: flex;          /* allow full-height content */
    height: 100%;
    background: rgba(8, 24, 48, 0.7); /* subtle dark overlay on navy */
    padding: 16px 18px;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.08);
    backdrop-filter: blur(4px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.35);
    overflow: hidden;

    /* hover animation base */
    transition:
        transform 0.18s ease-out,
        box-shadow 0.18s ease-out,
        border-color 0.18s ease-out,
        background 0.18s ease-out;
}

/* Soft glow “halo” behind card on hover */
.tp-expert-card::before {
    content: "";
    position: absolute;
    inset: -40%;
    opacity: 0;
    background: radial-gradient(
        circle at top left,
        rgba(255,255,255,0.16),
        transparent 55%
    );
    transition: opacity 0.25s ease-out;
    pointer-events: none;
}

/* Hover state: lift + glow + stronger border */
.tp-expert-card:hover {
    transform: translateY(-4px);
    background: rgba(14, 32, 68, 0.9);
    border-color: rgba(255,255,255,0.2);
    box-shadow: 0 14px 32px rgba(0,0,0,0.55);
}

.tp-expert-card:hover::before {
    opacity: 1;
}

/* Link layout inside card */
.tp-expert-link {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    text-decoration: none;
    width: 100%;
}

/* Avatar styling for dark footer */
.tp-expert-avatar img {
    border-radius: 999px;
    width: 56px;
    height: 56px;
    object-fit: cover;
    border: 2px solid rgba(255,255,255,0.35);
    box-shadow: 0 4px 12px rgba(0,0,0,0.55);
}

/* Text block inside card */
.tp-expert-meta {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

/* Name – pops a bit more */
.tp-expert-name {
    font-weight: 600;
    font-size: 1rem;
    color: #ffffff;
    margin-bottom: 2px;
}

/* Short bio snippet */
.tp-expert-bio {
    font-size: 0.86rem;
    color: rgba(230,235,245,0.86);
    line-height: 1.45;
}

/* Subtle link hover affordance */
.tp-expert-link:hover .tp-expert-name {
    text-decoration: underline;
}

/* Mobile tweaks */
@media (max-width: 768px) {
    .tp-experts-footer {
        padding-top: 40px;
    }

    .tp-experts-grid {
        gap: 16px;
    }

    .tp-expert-card {
        padding: 14px 15px;
    }

    .tp-expert-avatar img {
        width: 50px;
        height: 50px;
    }
}

/* Footer link under expert grid */
.tp-experts-footer-link {
    text-align: center;
    margin-top: 26px;
}

.tp-experts-footer-link a {
    color: #ffffff;
    font-size: 0.95rem;
    font-weight: 500;
    text-decoration: none;
    opacity: 0.85;
    border-bottom: 1px solid rgba(255,255,255,0.25);
    padding-bottom: 3px;
    transition: all 0.2s ease;
}

/* Hover animation: slight lift + brighter underline */
.tp-experts-footer-link a:hover {
    opacity: 1;
    border-bottom-color: rgba(255,255,255,0.5);
    text-shadow: 0 0 6px rgba(255,255,255,0.35);
}

.entry-header .entry-meta {
    font-size: 0.9rem;
    color: #667667;
    margin-top: 0.25rem;
    margin-bottom: 1.25rem;
}

.entry-header .entry-meta .entry-date,
.entry-header .entry-meta .entry-updated {
    white-space: nowrap;
}

.tp-breadcrumbs {
    font-size: 0.85rem;
    margin-bottom: 0.75rem;
    color: #666666;
}

.tp-breadcrumbs-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}

.tp-breadcrumbs-item {
    display: inline-flex;
    align-items: center;
}

.tp-breadcrumbs-item + .tp-breadcrumbs-item::before {
    content: "›";
    margin: 0 0.35rem 0 0;
    color: #bbbbbb;
}

.tp-breadcrumbs a {
    text-decoration: none;
    color: #444444;
}

.tp-breadcrumbs a:hover {
    text-decoration: underline;
}
