/* =====================================================
   LAW FIRMS PAGE - PREMIUM LEGAL CRM UI SYSTEM
   Case Intake Funnel + Retainer Pipeline + Review Engine
   ===================================================== */

:root {
    --primary-accent: #d9b36d;
    --secondary-blue: #8faefc;
    --legal-navy: #0d1324;
    --legal-gold: #d5b872;
    --legal-ink: #101827;
    --legal-rose: #832a5d;
    --legal-mint: #1cb6a3;
    --dark-bg: #090d17;
    --light-text: #f3efe8;
    --border-subtle: rgba(213, 184, 114, 0.18);
    --border-medium: rgba(213, 184, 114, 0.3);
}

.hero-section {
    padding: 140px 0 100px;
    position: relative;
    background:
        radial-gradient(circle at top left, rgba(213, 184, 114, 0.24), transparent 28%),
        radial-gradient(circle at lower right, rgba(130, 42, 93, 0.22), transparent 26%),
        linear-gradient(135deg, rgba(9, 13, 23, 0.98) 0%, rgba(14, 18, 32, 0.96) 44%, rgba(18, 24, 42, 0.95) 100%);
    border-bottom: 1px solid var(--border-subtle);
}

.sub-hero-eyebrow {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
    opacity: 0;
    animation: fadeInUp 0.8s ease-out 0.2s forwards;
}

.sub-hero-eyebrow .eyebrow-line {
    width: 24px;
    height: 2px;
    background: var(--legal-gold);
    border-radius: 1px;
}

.sub-hero-eyebrow .eyebrow-text {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--legal-gold);
}

.hero-title {
    font-size: 56px;
    font-weight: 800;
    line-height: 1.1;
    color: #ffffff;
    margin-bottom: 24px;
    opacity: 0;
    animation: fadeInUp 0.8s ease-out 0.3s forwards;
}

.text-gradient-legal {
    background: linear-gradient(135deg, #f5d98d 0%, #9f7aea 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.sub-hero-description {
    font-size: 18px;
    line-height: 1.6;
    color: rgba(229, 229, 229, 0.82);
    max-width: 700px;
    margin-bottom: 32px;
    opacity: 0;
    animation: fadeInUp 0.8s ease-out 0.4s forwards;
}

.hero-actions {
    display: flex;
    gap: 16px;
    margin-bottom: 60px;
    opacity: 0;
    animation: fadeInUp 0.8s ease-out 0.5s forwards;
}

.hero-actions a {
    text-decoration: none;
    border: none;
    cursor: pointer;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.btn-primary {
    padding: 14px 28px;
    background: linear-gradient(135deg, #efcf86 0%, var(--legal-gold) 45%, #b98d42 100%);
    color: #111827;
    border-radius: 10px;
    font-size: 15px;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(213, 184, 114, 0.25);
}

.btn-secondary {
    padding: 14px 28px;
    background: transparent;
    color: white;
    border: 2px solid var(--border-medium);
    border-radius: 10px;
    font-size: 15px;
}

.btn-secondary:hover {
    border-color: var(--legal-gold);
    background: rgba(213, 184, 114, 0.06);
}

.hero-stats-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 24px;
}

.stat-card {
    display: flex;
    flex-direction: column;
    padding: 20px;
    background: rgba(12, 17, 29, 0.92);
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    opacity: 0;
    animation: fadeInUp 0.8s ease-out 0.6s forwards;
}

.stat-value {
    font-size: 28px;
    font-weight: 800;
    line-height: 1.2;
    color: var(--legal-gold);
    margin-bottom: 8px;
}

.stat-label {
    font-size: 13px;
    color: rgba(229, 229, 229, 0.76);
    line-height: 1.4;
}

/* =====================================================
   CASE INTAKE FUNNEL
   ===================================================== */
.case-intake-section {
    padding: 100px 0;
    position: relative;
    border-bottom: 1px solid var(--border-subtle);
}

.case-funnel {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    max-width: 1100px;
    margin: 0 auto;
    position: relative;
}

.case-funnel::before {
    content: '';
    position: absolute;
    top: 64px;
    left: 60px;
    right: 60px;
    height: 2px;
    background: linear-gradient(90deg, rgba(213, 184, 114, 0.75), rgba(130, 42, 93, 0.45));
    z-index: 0;
}

.case-stage {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    opacity: 0;
    animation: slideInUp 0.7s ease-out forwards;
}

.case-stage:nth-child(1) { animation-delay: 0.1s; }
.case-stage:nth-child(2) { animation-delay: 0.2s; }
.case-stage:nth-child(3) { animation-delay: 0.3s; }
.case-stage:nth-child(4) { animation-delay: 0.4s; }

.case-stage-badge {
    width: 120px;
    height: 120px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 18px;
    border: 1px solid rgba(213, 184, 114, 0.4);
    background: linear-gradient(135deg, rgba(213, 184, 114, 0.12), rgba(130, 42, 93, 0.08));
    margin-bottom: 18px;
    transition: all 0.3s ease;
}

.case-stage:hover .case-stage-badge {
    transform: scale(1.05);
    box-shadow: 0 12px 30px rgba(213, 184, 114, 0.18);
}

.case-stage-number {
    font-size: 11px;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--legal-gold);
    font-weight: 700;
    margin-bottom: 4px;
}

.case-stage-emoji {
    font-size: 30px;
    margin-bottom: 6px;
}

.case-stage-title {
    font-size: 15px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 10px;
}

.case-stage-copy {
    font-size: 12px;
    line-height: 1.6;
    color: rgba(229, 229, 229, 0.7);
}

/* =====================================================
   RETAINER PIPELINE / LEGAL JOURNEY
   ===================================================== */
.retainer-pipeline-section {
    padding: 100px 0;
    border-bottom: 1px solid var(--border-subtle);
}

.retainer-pipeline {
    display: grid;
    grid-template-columns: repeat(3, minmax(220px, 1fr));
    gap: 22px;
}

.retainer-card {
    position: relative;
    padding: 28px 22px;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(213, 184, 114, 0.06), rgba(130, 42, 93, 0.04));
    border: 1px solid var(--border-subtle);
    transition: all 0.3s ease;
    opacity: 0;
    animation: slideInUp 0.7s ease-out forwards;
}

.retainer-card:nth-child(1) { animation-delay: 0.1s; }
.retainer-card:nth-child(2) { animation-delay: 0.2s; }
.retainer-card:nth-child(3) { animation-delay: 0.3s; }

.retainer-card::before {
    content: '';
    position: absolute;
    inset: 0 auto auto 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--legal-gold), var(--legal-rose));
    border-radius: 16px 16px 0 0;
}

.retainer-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(107, 24, 216, 0.13);
    border-color: rgba(213, 184, 114, 0.3);
}

.retainer-step {
    color: var(--legal-gold);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 12px;
}

.retainer-card h3 {
    font-size: 20px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 12px;
}

.retainer-card p {
    font-size: 13px;
    line-height: 1.6;
    color: rgba(229, 229, 229, 0.7);
}

/* =====================================================
   AUTOMATION MODULES
   ===================================================== */
.module-section {
    padding: 100px 0;
    border-bottom: 1px solid var(--border-subtle);
}

.module-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.module-card {
    display: flex;
    flex-direction: column;
    padding: 28px 24px;
    background: linear-gradient(135deg, rgba(11, 17, 29, 0.8), rgba(130, 42, 93, 0.05));
    border: 1px solid var(--border-subtle);
    border-radius: 14px;
    transition: all 0.3s ease;
    opacity: 0;
    animation: scaleIn 0.65s ease-out forwards;
}

.module-card:nth-child(1) { animation-delay: 0.05s; }
.module-card:nth-child(2) { animation-delay: 0.1s; }
.module-card:nth-child(3) { animation-delay: 0.15s; }
.module-card:nth-child(4) { animation-delay: 0.2s; }
.module-card:nth-child(5) { animation-delay: 0.25s; }
.module-card:nth-child(6) { animation-delay: 0.3s; }

.module-card:hover {
    transform: translateY(-4px);
    border-color: rgba(213, 184, 114, 0.4);
    box-shadow: 0 12px 30px rgba(213, 184, 114, 0.12);
}

.module-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border-radius: 10px;
    border: 1px solid rgba(213, 184, 114, 0.35);
    background: rgba(213, 184, 114, 0.08);
    color: var(--legal-gold);
    font-weight: 800;
    margin-bottom: 18px;
}

.module-title {
    font-size: 17px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 10px;
    line-height: 1.4;
}

.module-copy {
    font-size: 13px;
    line-height: 1.6;
    color: rgba(229, 229, 229, 0.72);
}

/* CTA */
.ghl-cta-section {
    padding: 80px 0;
}

.cta-banner-glass {
    padding: 60px 48px;
    background: linear-gradient(135deg, rgba(213, 184, 114, 0.10), rgba(130, 42, 93, 0.08));
    border: 1px solid var(--border-subtle);
    border-radius: 20px;
    text-align: center;
}

.cta-eyebrow {
    display: inline-flex;
    align-items: center;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--legal-gold);
    margin-bottom: 16px;
}

.cta-title {
    font-size: 42px;
    font-weight: 800;
    line-height: 1.3;
    color: #ffffff;
    margin-bottom: 16px;
}

.cta-desc {
    max-width: 620px;
    margin: 0 auto 32px;
    font-size: 16px;
    line-height: 1.7;
    color: rgba(229, 229, 229, 0.8);
}

.btn-large {
    padding: 16px 40px !important;
    font-size: 16px !important;
}

.footer-pre-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    padding: 40px;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(213, 184, 114, 0.08), rgba(130, 42, 93, 0.06));
    border: 1px solid var(--border-subtle);
    margin-bottom: 60px;
}

.footer-pre-cta-content {
    flex: 1;
}

.footer-pre-cta-title {
    font-size: 24px;
    font-weight: 700;
    line-height: 1.3;
    color: #ffffff;
    margin-bottom: 8px;
}

.footer-pre-cta-desc {
    font-size: 14px;
    line-height: 1.6;
    color: rgba(229, 229, 229, 0.75);
}

.site-footer {
    border-top: 1px solid var(--border-subtle);
    padding: 60px 0 40px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-brand {
    max-width: 300px;
}

.logo {
    font-size: 18px;
    font-weight: 800;
    color: #ffffff;
    text-decoration: none;
}

.logo-dot {
    color: var(--legal-gold);
}

.footer-desc {
    font-size: 13px;
    line-height: 1.6;
    color: rgba(229, 229, 229, 0.7);
    margin-top: 12px;
}

.footer-links-col {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-title {
    font-size: 11px;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--legal-gold);
    font-weight: 700;
}

.footer-links-col a {
    font-size: 14px;
    color: rgba(229, 229, 229, 0.8);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links-col a:hover {
    color: var(--legal-gold);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 24px;
    border-top: 1px solid var(--border-subtle);
}

.footer-bottom p {
    font-size: 12px;
    color: rgba(229, 229, 229, 0.6);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@media (max-width: 1024px) {
    .hero-title {
        font-size: 42px;
    }

    .section-title {
        font-size: 32px;
    }

    .case-funnel {
        grid-template-columns: repeat(2, minmax(220px, 1fr));
    }

    .retainer-pipeline {
        grid-template-columns: 1fr;
    }

    .footer-pre-cta {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 768px) {
    .hero-section {
        padding: 100px 0 80px;
    }

    .hero-title {
        font-size: 32px;
    }

    .hero-actions {
        flex-direction: column;
        width: 100%;
    }

    .hero-actions a {
        width: 100%;
        justify-content: center;
    }

    .hero-stats-row {
        grid-template-columns: 1fr;
    }

    .case-funnel {
        grid-template-columns: 1fr;
    }

    .case-funnel::before {
        left: 50%;
        right: auto;
        top: 0;
        bottom: 0;
        width: 2px;
        height: auto;
        background: linear-gradient(180deg, rgba(213, 184, 114, 0.5), rgba(107, 24, 216, 0.3));
    }

    .cta-banner-glass {
        padding: 40px 24px;
    }

    .cta-title {
        font-size: 28px;
    }
}

@media (max-width: 640px) {
    .hero-title {
        font-size: 28px;
    }

    .section-title {
        font-size: 26px;
    }

    .module-grid {
        gap: 16px;
    }

    .cta-title {
        font-size: 24px;
    }
}

@media (max-width: 480px) {
    .hero-section {
        padding: 80px 0 60px;
    }

    .hero-title {
        font-size: 24px;
    }

    .case-stage-badge {
        width: 90px;
        height: 90px;
    }

    .cta-banner-glass {
        padding: 30px 16px;
    }
}

@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
