/* === HOME INTRO (two-column: report card + the questions) ===
   Mirrors case.php's .case-intro — the Full Analytics Report offer sits on the
   left, visible right away, beside the questions visitors are already asking.
   Collapses to a single column (offer first) on narrower viewports. */
.home-intro {
    padding: 3.5rem 2rem 1rem;
    background: var(--white);
}

.home-intro-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
    gap: 3rem;
    align-items: start;
}

.home-intro-offer .report-card {
    margin-bottom: 0;
}

.home-intro-questions .empathy-header {
    margin-bottom: 1.5rem;
}

/* In the column the checklist fills the available width rather than the
   centered 600px block it uses as a standalone section. */
.home-intro-questions .empathy-checklist {
    max-width: none;
    margin: 0;
}

/* === HERO === */
.hero {
    padding: 4rem 2rem;
    background: linear-gradient(180deg, var(--white) 0%, var(--cream) 100%);
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-content {
    opacity: 0;
    animation: fadeIn 0.8s ease forwards;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(212, 163, 115, 0.15);
    border: 1px solid var(--gold);
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--gold-dark);
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.headline {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2.5rem, 4vw, 3.5rem);
    font-weight: 600;
    line-height: 1.15;
    letter-spacing: -0.02em;
    margin-bottom: 1.5rem;
    color: var(--navy);
}

.subheadline {
    font-size: 1.125rem;
    color: var(--slate);
    max-width: 480px;
    margin-bottom: 2.5rem;
    line-height: 1.7;
}

/* === SEARCH BUTTONS === */
.search-buttons {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-bottom: 2.5rem;
}

.search-btn {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem 1.5rem;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 12px;
    text-decoration: none;
    color: var(--navy);
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(13, 27, 42, 0.06);
}

.search-btn:hover {
    border-color: var(--navy);
    box-shadow:
        0 8px 20px rgba(13, 27, 42, 0.12),
        0 2px 6px rgba(13, 27, 42, 0.06);
    transform: translateY(-2px);
}

.search-btn-icon {
    width: 44px;
    height: 44px;
    background: var(--cream);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--slate);
    font-size: 1.125rem;
    transition: all 0.3s ease;
}

.search-btn:hover .search-btn-icon {
    background: var(--navy);
    color: var(--white);
}

.search-btn-text h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.125rem;
}

.search-btn-text p {
    font-size: 0.8125rem;
    color: var(--slate-light);
}

/* === Primary search CTA — dominant "Find My Case" treatment === */
.search-btn--primary {
    position: relative;
    grid-column: 1 / -1;
    background: var(--navy);
    border-color: var(--navy);
    color: var(--white);
    padding: 1.5rem 1.75rem;
    box-shadow:
        0 10px 24px rgba(13, 27, 42, 0.18),
        0 4px 10px rgba(13, 27, 42, 0.10);
}

.search-btn--primary:hover {
    background: var(--navy);
    border-color: var(--navy);
    color: var(--white);
    box-shadow:
        0 14px 32px rgba(13, 27, 42, 0.25),
        0 6px 14px rgba(13, 27, 42, 0.12);
}

.search-btn--primary .search-btn-icon {
    background: rgba(255, 255, 255, 0.14);
    color: var(--white);
    width: 52px;
    height: 52px;
    font-size: 1.375rem;
}

.search-btn--primary:hover .search-btn-icon {
    background: rgba(255, 255, 255, 0.22);
    color: var(--white);
}

.search-btn--primary .search-btn-text h3 {
    font-size: 1.25rem;
    color: var(--white);
}

.search-btn--primary .search-btn-text p {
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.875rem;
}

.search-btn-eyebrow {
    position: absolute;
    top: 0.5rem;
    left: 1.5rem;
    font-size: 0.6875rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.75);
    font-weight: 600;
}

/* Subtle pulse — opt-in via .search-btn--pulse, respects reduced-motion */
@media (prefers-reduced-motion: no-preference) {
    .search-btn--pulse::after {
        content: "";
        position: absolute;
        inset: 0;
        border-radius: 12px;
        pointer-events: none;
        box-shadow: 0 0 0 0 rgba(13, 27, 42, 0.45);
        animation: searchBtnPulse 2.4s cubic-bezier(0.4, 0, 0.6, 1) infinite;
    }
}

@keyframes searchBtnPulse {
    0%   { box-shadow: 0 0 0 0 rgba(13, 27, 42, 0.45); }
    70%  { box-shadow: 0 0 0 16px rgba(13, 27, 42, 0); }
    100% { box-shadow: 0 0 0 0 rgba(13, 27, 42, 0); }
}

/* === REPORT CARD === */
.report-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.75rem;
    box-shadow:
        0 10px 24px rgba(13, 27, 42, 0.08),
        0 4px 10px rgba(13, 27, 42, 0.04);
    margin-bottom: 2.5rem;
    position: relative;
}

.report-card__header {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    margin-bottom: 1.25rem;
}

.report-card__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: var(--navy);
    color: var(--gold);
    border-radius: 10px;
    font-size: 1.125rem;
    flex-shrink: 0;
}

.report-card__title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.25rem, 2.5vw, 1.625rem);
    font-weight: 600;
    color: var(--navy);
    line-height: 1.2;
    margin: 0;
}

/* === REPORT CARD FEATURES === */
.report-card__features {
    list-style: none;
    margin: 0 0 1.5rem;
    padding: 0;
    display: grid;
    gap: 0.625rem;
}

.report-card__features li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    font-size: 0.9375rem;
    color: var(--slate);
    line-height: 1.5;
}

.report-card__features li i {
    color: var(--success);
    font-size: 0.875rem;
    margin-top: 0.2rem;
    flex-shrink: 0;
}

/* === REPORT CARD CTA ===
   A horizontal bar: the offer text on the left, the one-time price on the right.
   position: relative anchors the .search-btn--pulse ::after halo to the button. */
.report-card__cta {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    width: 100%;
    padding: 1rem 1.25rem;
    position: relative;
    background: var(--navy);
    border: 1px solid var(--navy);
    border-radius: 12px;
    text-decoration: none;
    color: var(--white);
    text-align: left;
    transition: box-shadow 0.3s ease, background 0.3s ease;
    box-shadow:
        0 10px 24px rgba(13, 27, 42, 0.18),
        0 4px 10px rgba(13, 27, 42, 0.10);
}

.report-card__cta-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.3rem;
    min-width: 0;
}

.report-card__cta-price {
    flex-shrink: 0;
    font-family: 'Playfair Display', serif;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--gold);
    line-height: 1;
    white-space: nowrap;
}

.report-card__cta:hover {
    background: var(--navy);
    color: var(--white);
    box-shadow:
        0 14px 32px rgba(13, 27, 42, 0.25),
        0 6px 14px rgba(13, 27, 42, 0.12);
}

.report-card__cta-eyebrow {
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.72);
    line-height: 1;
}

.report-card__cta-label {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--white);
    line-height: 1;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* === REPORT CARD ALT LINE === */
.report-card__alt {
    font-size: 0.8125rem;
    color: var(--slate-light);
    text-align: center;
    margin: 1rem 0 0;
    line-height: 1.5;
}

.report-card__alt a {
    color: var(--gold-dark);
    text-decoration: none;
    font-weight: 500;
}

.report-card__alt a:hover {
    color: var(--gold);
    text-decoration: underline;
}

/* Reduced-motion: suppress transform-based transitions on the card CTA */
@media (prefers-reduced-motion: reduce) {
    .report-card__cta {
        transition: none;
    }
}

/* === TRUST BADGES === */
.trust-badges {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.trust-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--slate);
}

.trust-badge i {
    color: var(--success);
}

/* === HERO VISUAL === */
.hero-visual {
    opacity: 0;
    animation: fadeIn 0.8s ease forwards;
    animation-delay: 0.2s;
}

.hero-image {
    width: 100%;
    border-radius: 20px;
    box-shadow:
        0 20px 40px rgba(13, 27, 42, 0.12),
        0 8px 16px rgba(13, 27, 42, 0.06);
    object-fit: cover;
}

.stats-card {
    background: var(--white);
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow:
        0 12px 24px rgba(13, 27, 42, 0.08),
        0 4px 8px rgba(13, 27, 42, 0.04);
    border: 1px solid var(--border);
    margin-top: -60px;
    margin-left: 2rem;
    margin-right: 2rem;
    position: relative;
    z-index: 2;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    text-align: center;
}

.stat-item {
    text-align: center;
}

.stat-value {
    font-family: 'Playfair Display', serif;
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--navy);
    line-height: 1;
}

.stat-value span {
    font-size: 1rem;
    color: var(--slate);
}

.stat-label {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--slate-light);
    margin-top: 0.375rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* === FEATURES === */
.features-section {
    padding: 6rem 2rem;
    background: var(--white);
}

.features-container {
    max-width: 1200px;
    margin: 0 auto;
}

.features-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--gold-dark);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 0.75rem;
}

.features-header h2 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    font-weight: 600;
    color: var(--navy);
    margin-bottom: 1rem;
}

.features-header p {
    font-size: 1.0625rem;
    color: var(--slate);
    max-width: 560px;
    margin: 0 auto;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.feature-card {
    padding: 2rem;
    background: var(--cream);
    border-radius: 16px;
    border: 1px solid transparent;
    transition: all 0.3s ease;
}

.feature-card:hover {
    background: var(--white);
    border-color: var(--border);
    box-shadow: 0 8px 24px rgba(13, 27, 42, 0.06);
}

.feature-icon {
    width: 48px;
    height: 48px;
    background: var(--white);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: var(--navy);
    margin-bottom: 1.25rem;
    border: 1px solid var(--border);
}

.feature-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--navy);
    margin-bottom: 0.625rem;
}

.feature-desc {
    font-size: 0.9375rem;
    color: var(--slate);
    line-height: 1.6;
}

/* === CASE TYPES === */
.case-types-section {
    padding: 5rem 2rem;
    background: var(--cream);
}

.case-types-container {
    max-width: 1000px;
    margin: 0 auto;
}

.case-types-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.case-types-header h2 {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--navy);
}

.case-types-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.case-type-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--navy);
    text-decoration: none;
    transition: all 0.2s ease;
    box-shadow: 0 1px 3px rgba(13, 27, 42, 0.04);
}

.case-type-link:hover {
    border-color: var(--navy);
    background: var(--navy);
    color: var(--white);
    box-shadow: 0 4px 12px rgba(13, 27, 42, 0.12);
}

.case-type-link i {
    font-size: 0.75rem;
    opacity: 0.5;
}

/* === CTA SECTION === */
.cta-section {
    padding: 5rem 2rem;
    background: var(--navy);
    color: var(--white);
}

.cta-container {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
}

.cta-section h2 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    font-weight: 500;
    margin-bottom: 2rem;
    line-height: 1.3;
}

.cta-search-wrapper {
    display: flex;
    align-items: center;
    background: var(--white);
    border-radius: 12px;
    padding: 0.5rem;
    max-width: 560px;
    margin: 0 auto 1.5rem;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.cta-search-input {
    flex: 1;
    border: none;
    background: transparent;
    font-family: inherit;
    font-size: 1rem;
    color: var(--navy);
    padding: 0.75rem 1rem;
    outline: none;
}

.cta-search-input::placeholder {
    color: var(--slate-light);
}

.cta-search-btn {
    background: var(--gold);
    color: var(--navy);
    border: none;
    border-radius: 8px;
    padding: 0.875rem 1.5rem;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 2px 8px rgba(212, 163, 115, 0.3);
}

.cta-search-btn:hover {
    background: var(--gold-dark);
    box-shadow: 0 4px 12px rgba(212, 163, 115, 0.4);
}

.cta-hint {
    font-size: 0.875rem;
    color: var(--slate-light);
}

/* === HERO NOTE (supporting line under the hero) ===
   The "what we actually do" paragraph, relocated from the old empathy intro.
   Cream background continues the hero's gradient end into the case-types
   section below, so there's no white seam. */
.hero-note {
    padding: 0 2rem 2rem;
    background: var(--cream);
}

.hero-note-container {
    max-width: 820px;
    margin: 0 auto;
    text-align: center;
}

.hero-note-container p {
    font-size: 1.0625rem;
    color: var(--slate);
    line-height: 1.8;
}

/* === EMPATHY (heading + question checklist; used inside .home-intro) === */
.empathy-header {
    text-align: center;
    margin-bottom: 3rem;
}

/* Styled as a banner, not a heading: kept a <p> so the hero <h1> stays the
   page's first heading in the document outline (WCAG 1.3.1 heading order). */
.empathy-header-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    font-weight: 500;
    margin-bottom: 1rem;
    line-height: 1.3;
    color: var(--navy);
}

.empathy-checklist {
    list-style: none;
    display: grid;
    gap: 1rem;
    max-width: 600px;
    margin: 0 auto;
}

.empathy-checklist li {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    font-size: 1.0625rem;
    color: var(--slate);
    line-height: 1.6;
}

.empathy-checklist li i {
    color: var(--success);
    font-size: 1.125rem;
    margin-top: 0.125rem;
    flex-shrink: 0;
}

.empathy-highlight {
    color: var(--navy);
    font-weight: 500;
}

/* The two standout questions: bold navy on a soft gold highlight */
.empathy-question-item span {
    font-weight: 700;
    color: var(--navy);
    background: rgba(212, 163, 115, 0.18);
    padding: 0.2rem 0.5rem;
    border-radius: 5px;
}

/* Offset the check icon by the span's 0.2rem top padding so it lines up with
   the first line of text. Selector mirrors `.empathy-checklist li i` specificity
   plus the modifier class so it actually wins. */
.empathy-checklist li.empathy-question-item i {
    margin-top: 0.325rem;
}

/* === FEATURED IN === */
.featured-section {
    padding: 4rem 2rem;
    background: var(--cream);
    border-top: 1px solid var(--border);
}

.featured-container {
    max-width: 1000px;
    margin: 0 auto;
    text-align: center;
}

.featured-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--slate-light);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 2rem;
}

.featured-logos {
    max-width: 100%;
    opacity: 0.7;
    filter: grayscale(20%);
    transition: all 0.3s ease;
}

.featured-logos:hover {
    opacity: 1;
    filter: grayscale(0%);
}

/* === ANIMATIONS === */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* === RESPONSIVE === */
@media (max-width: 1024px) {
    /* Offer first, then the questions, in one centered column. */
    .home-intro {
        padding: 2.5rem 2rem 0;
    }

    .home-intro-container {
        grid-template-columns: 1fr;
        gap: 2.5rem;
        max-width: 640px;
    }

    .hero-container {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .hero-visual {
        max-width: 600px;
        margin: 0 auto;
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .search-buttons {
        grid-template-columns: 1fr;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .trust-badges {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }

    .stats-card {
        margin-left: 0;
        margin-right: 0;
    }

    .cta-search-wrapper {
        flex-direction: column;
    }

    .cta-search-btn {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 3rem 1.5rem;
    }

    .stats-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .case-types-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
}

/* Find My Case modal styles now live in design-system.css so the modal can be
   rendered (and styled) on every page, not just the homepage. */

/* === SERVER-RENDERED SEARCH RESULTS (/?q=...) === */
.search-results {
    padding: 2.5rem 1rem 1rem;
    background: var(--cream, #fafbfc);
}

.search-results-container {
    max-width: 820px;
    margin: 0 auto;
}

.search-results-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-weight: 700;
    font-size: 1.75rem;
    color: var(--primary-dark, #0d1b2a);
    margin: 0 0 1.5rem;
    word-break: break-word;
}

.search-results-empty {
    font-size: 1rem;
    color: var(--slate-light, #778da9);
}

.search-results-open {
    background: none;
    border: none;
    padding: 0;
    color: var(--gold, #d4a373);
    font: inherit;
    text-decoration: underline;
    cursor: pointer;
}

.search-result-group {
    margin-bottom: 2rem;
}

.search-result-group-title {
    font-size: 0.8125rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--slate-light, #778da9);
    margin: 0 0 0.75rem;
}

.search-result-list {
    list-style: none;
    margin: 0;
    padding: 0;
    border: 1px solid var(--border, #e2e8f0);
    border-radius: 12px;
    overflow: hidden;
    background: var(--white, #ffffff);
}

.search-result-item + .search-result-item .search-result-link {
    border-top: 1px solid var(--border, #e2e8f0);
}

.search-result-link {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    padding: 0.875rem 1.125rem;
    text-decoration: none;
    color: var(--navy, #0d1b2a);
    transition: background 0.12s ease;
}

.search-result-link:hover,
.search-result-link:focus {
    background: var(--cream, #fafbfc);
    outline: none;
}

.search-result-icon {
    color: var(--gold, #d4a373);
    width: 1.25rem;
    text-align: center;
    flex-shrink: 0;
}

.search-result-text {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.search-result-name {
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.search-result-meta {
    font-size: 0.8125rem;
    color: var(--slate-light, #778da9);
}

/* Cases are grouped by year with per-year + window "load more" controls. */
.search-result-year {
    margin-bottom: 1.25rem;
}

.search-result-year-title {
    font-size: 0.9375rem;
    font-weight: 700;
    color: var(--primary-dark, #0d1b2a);
    margin: 0 0 0.5rem;
}

.search-result-year-count {
    font-weight: 600;
    color: var(--slate-light, #778da9);
}

.srp-loadmore {
    display: inline-block;
    margin-top: 0.625rem;
    padding: 0.5rem 1rem;
    border: 1px solid var(--border, #e2e8f0);
    border-radius: 10px;
    background: var(--white, #ffffff);
    color: var(--navy, #0d1b2a);
    font: inherit;
    font-size: 0.8125rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease;
}

.srp-loadmore:hover,
.srp-loadmore:focus {
    background: var(--cream, #fafbfc);
    color: var(--gold, #d4a373);
    outline: none;
}

.srp-loadmore-years {
    display: block;
    width: 100%;
    text-align: center;
    margin-top: 0.5rem;
}

.srp-loadmore-loading {
    opacity: 0.6;
    cursor: default;
}

.search-results-note {
    font-size: 0.8125rem;
    color: var(--slate-light, #778da9);
    margin: 0.5rem 0;
}
