/* CalInjuryLaw marketing site styles (no build step required) */
:root {
    --navy:   #0a1628;
    --gold:   #c9933a;
    --gold2:  #e8b460;
    --cream:  #f9f5ef;
    --white:  #ffffff;
    --gray:   #6b7280;
    --light:  #f3f4f6;
    --red:    #c0392b;
}

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

html { scroll-behavior: smooth; }

body {
    font-family: 'DM Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--white);
    color: var(--navy);
    overflow-x: hidden;
}

.toast-success {
    position: fixed;
    top: 90px;
    right: 24px;
    z-index: 120;
    max-width: 360px;
    background: #ecfdf3;
    border-left: 4px solid #16a34a;
    box-shadow: 0 18px 45px rgba(0,0,0,.25);
    border-radius: 10px;
    padding: 0.85rem 1rem;
    font-size: 0.9rem;
    color: #166534;
    animation: toast-in .25s ease-out;
}

.toast-success-inner {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.toast-success-inner strong {
    font-size: 0.95rem;
}

.toast-success-inner span {
    font-size: 0.85rem;
}

.toast-close {
    position: absolute;
    top: 4px;
    right: 8px;
    border: none;
    background: transparent;
    color: #166534;
    font-size: 1.1rem;
    cursor: pointer;
}

.toast-hidden {
    opacity: 0;
    transform: translateY(-10px);
    pointer-events: none;
    transition: opacity .2s ease, transform .2s ease;
}

@keyframes toast-in {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}

header {
    position: sticky; top: 0; z-index: 100;
    background: var(--navy);
    display: flex; align-items: center; justify-content: space-between;
    padding: 0 5%;
    height: 70px;
    box-shadow: 0 2px 20px rgba(0,0,0,.35);
}

.logo {
    font-family: 'Playfair Display', serif;
    font-size: 1.4rem;
    color: var(--gold);
    letter-spacing: .5px;
    text-decoration: none;
}
.logo span { color: var(--white); }

nav { display: flex; gap: 2rem; align-items: center; }
nav a {
    color: rgba(255,255,255,.8);
    text-decoration: none;
    font-size: .88rem;
    font-weight: 500;
    letter-spacing: .3px;
    transition: color .2s;
}
nav a:hover { color: var(--gold2); }

.btn-call {
    background: var(--gold);
    color: var(--navy) !important;
    font-weight: 700 !important;
    padding: .5rem 1.25rem;
    border-radius: 4px;
    font-size: .85rem !important;
    letter-spacing: .5px;
    transition: background .2s, transform .15s !important;
}
.btn-call:hover { background: var(--gold2) !important; transform: translateY(-1px); }

.hero {
    min-height: 92vh;
    background: linear-gradient(135deg, var(--navy) 55%, #122040 100%);
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: flex-start;
    padding: 6rem 5% 4rem;
    gap: 3rem;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute; inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23c9933a' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
}

.hero-text { position: relative; z-index: 1; }

.hero-tag {
    display: inline-block;
    background: rgba(201,147,58,.15);
    border: 1px solid rgba(201,147,58,.4);
    color: var(--gold2);
    font-size: .78rem;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    padding: .35rem .9rem;
    border-radius: 3px;
    margin-bottom: 1.5rem;
    animation: fadeUp .6s ease both;
}

.hero h1 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2.4rem, 4.5vw, 3.8rem);
    color: var(--white);
    line-height: 1.15;
    margin-bottom: 1.25rem;
    animation: fadeUp .7s .1s ease both;
}

.hero h1 em {
    font-style: normal;
    color: var(--gold);
}

.hero p {
    color: rgba(255,255,255,.7);
    font-size: 1.05rem;
    line-height: 1.75;
    max-width: 500px;
    margin-bottom: 2rem;
    animation: fadeUp .7s .2s ease both;
}

.hero-ctas {
    display: flex; gap: 1rem; flex-wrap: wrap;
    animation: fadeUp .7s .3s ease both;
}

.cta-primary {
    background: var(--gold);
    color: var(--navy);
    padding: .9rem 2rem;
    border-radius: 5px;
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
    transition: background .2s, transform .15s;
    display: flex; align-items: center; gap: .5rem;
}
.cta-primary:hover { background: var(--gold2); transform: translateY(-2px); }

.cta-secondary {
    background: transparent;
    color: var(--white);
    padding: .9rem 2rem;
    border-radius: 5px;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    border: 1.5px solid rgba(255,255,255,.35);
    transition: border-color .2s, transform .15s;
}
.cta-secondary:hover { border-color: var(--gold); transform: translateY(-2px); }

.hero-form {
    background: var(--white);
    border-radius: 12px;
    padding: 2.5rem;
    box-shadow: 0 25px 60px rgba(0,0,0,.35);
    animation: fadeUp .8s .2s ease both;
    position: relative; z-index: 1;
}

.hero-form h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.45rem;
    color: var(--navy);
    margin-bottom: .4rem;
}

.hero-form p.sub {
    color: var(--gray);
    font-size: .88rem;
    margin-bottom: 1.5rem;
}

.form-group { margin-bottom: 1rem; }

.form-group label {
    display: block;
    font-size: .8rem;
    font-weight: 600;
    color: var(--navy);
    margin-bottom: .35rem;
    letter-spacing: .3px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    border: 1.5px solid #dde1e8;
    border-radius: 6px;
    padding: .7rem .9rem;
    font-size: .92rem;
    font-family: 'DM Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--navy);
    background: var(--cream);
    transition: border-color .2s;
    outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--gold);
    background: var(--white);
}

.form-group textarea { resize: vertical; min-height: 80px; }

.form-submit {
    width: 100%;
    background: var(--navy);
    color: var(--white);
    border: none;
    border-radius: 6px;
    padding: .9rem;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    font-family: 'DM Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    transition: background .2s;
    margin-top: .5rem;
}
.form-submit:hover { background: #122040; }

.form-note {
    text-align: center;
    font-size: .75rem;
    color: var(--gray);
    margin-top: .75rem;
}

.trust-bar {
    background: var(--cream);
    border-top: 3px solid var(--gold);
    padding: 1.5rem 5%;
    display: flex;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: .6rem;
    font-size: .88rem;
    font-weight: 600;
    color: var(--navy);
}

.trust-item .icon { font-size: 1.2rem; }

section { padding: 5rem 5%; }

.section-label {
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: .6rem;
}

.section-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.8rem, 3vw, 2.6rem);
    color: var(--navy);
    line-height: 1.25;
    margin-bottom: 1rem;
}

.section-sub {
    color: var(--gray);
    font-size: 1rem;
    line-height: 1.75;
    max-width: 600px;
}

.practice { background: var(--white); }

.practice-header { text-align: center; margin-bottom: 3rem; }
.practice-header .section-sub { margin: 0 auto; }

.areas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 1.25rem;
}

.area-card {
    border: 1.5px solid #e5e9f0;
    border-radius: 10px;
    padding: 1.75rem 1.5rem;
    text-decoration: none;
    color: var(--navy);
    transition: border-color .2s, transform .2s, box-shadow .2s;
    display: flex;
    flex-direction: column;
    gap: .75rem;
    background: var(--white);
}

.area-card:hover {
    border-color: var(--gold);
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(201,147,58,.12);
}

.area-icon {
    font-size: 2rem;
    width: 52px; height: 52px;
    background: var(--cream);
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
}

.area-card h3 { font-size: 1rem; font-weight: 700; }

.area-card p {
    font-size: .83rem;
    color: var(--gray);
    line-height: 1.6;
}

.area-link {
    font-size: .82rem;
    font-weight: 700;
    color: var(--gold);
    margin-top: auto;
}

.how { background: var(--navy); }
.how .section-title { color: var(--white); }
.how .section-sub { color: rgba(255,255,255,.6); }

.steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.step {
    text-align: center;
    padding: 2rem 1.5rem;
    border-radius: 10px;
    background: rgba(255,255,255,.05);
    border: 1px solid rgba(255,255,255,.08);
    position: relative;
}

.step-num {
    width: 48px; height: 48px;
    background: var(--gold);
    color: var(--navy);
    font-family: 'Playfair Display', serif;
    font-size: 1.3rem;
    font-weight: 900;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 1.25rem;
}

.step h3 { color: var(--white); font-size: 1rem; font-weight: 700; margin-bottom: .5rem; }
.step p { color: rgba(255,255,255,.55); font-size: .88rem; line-height: 1.65; }

.cities { background: var(--cream); }

.cities-header { margin-bottom: 2.5rem; }

.cities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: .75rem;
}

.city-pill {
    background: var(--white);
    border: 1.5px solid #dde1e8;
    border-radius: 6px;
    padding: .7rem 1rem;
    text-decoration: none;
    color: var(--navy);
    font-size: .88rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: .5rem;
    transition: border-color .2s, color .2s;
}

.city-pill:hover { border-color: var(--gold); color: var(--gold); }
.city-pill .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--gold); flex-shrink: 0; }

.qa { background: var(--white); }

.qa-header { margin-bottom: 2.5rem; }

.qa-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
}

.qa-card {
    border: 1.5px solid #e5e9f0;
    border-radius: 10px;
    padding: 1.75rem;
    text-decoration: none;
    color: var(--navy);
    transition: border-color .2s, box-shadow .2s;
}

.qa-card:hover {
    border-color: var(--gold);
    box-shadow: 0 8px 24px rgba(201,147,58,.1);
}

.qa-tag {
    display: inline-block;
    background: var(--cream);
    color: var(--gold);
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .5px;
    text-transform: uppercase;
    padding: .25rem .65rem;
    border-radius: 3px;
    margin-bottom: .9rem;
}

.qa-card h3 {
    font-size: .98rem;
    font-weight: 700;
    margin-bottom: .6rem;
    line-height: 1.4;
}

.qa-card p {
    font-size: .84rem;
    color: var(--gray);
    line-height: 1.65;
}

.qa .cta-secondary {
    display: inline-block;
    background: var(--white);
    color: var(--navy);
    border-color: #e5e7eb;
    font-size: .9rem;
}

.qa .cta-secondary:hover {
    background: var(--cream);
    border-color: var(--gold);
    color: var(--navy);
}

.testimonials { background: var(--cream); }

.testimonials-header { text-align: center; margin-bottom: 3rem; }

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

.review-card {
    background: var(--white);
    border-radius: 10px;
    padding: 2rem;
    box-shadow: 0 4px 16px rgba(0,0,0,.06);
}

.stars { color: var(--gold); font-size: 1rem; margin-bottom: 1rem; letter-spacing: 2px; }

.review-card p {
    font-size: .92rem;
    color: #374151;
    line-height: 1.7;
    margin-bottom: 1.25rem;
    font-style: italic;
}

.reviewer {
    display: flex;
    align-items: center;
    gap: .75rem;
}

.reviewer-avatar {
    width: 40px; height: 40px;
    border-radius: 50%;
    background: var(--navy);
    color: var(--gold);
    font-family: 'Playfair Display', serif;
    font-size: 1rem;
    font-weight: 700;
    display: flex; align-items: center; justify-content: center;
}

.reviewer-info strong { display: block; font-size: .88rem; font-weight: 700; }
.reviewer-info span { font-size: .78rem; color: var(--gray); }

.cta-band {
    background: linear-gradient(135deg, var(--gold) 0%, #a87420 100%);
    padding: 4rem 5%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    flex-wrap: wrap;
}

.cta-band h2 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    color: var(--navy);
    max-width: 550px;
    line-height: 1.3;
}

.cta-band a {
    background: var(--navy);
    color: var(--white);
    padding: 1rem 2.25rem;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1rem;
    white-space: nowrap;
    transition: background .2s;
    flex-shrink: 0;
}

.cta-band a:hover { background: #122040; }

footer {
    background: var(--navy);
    color: rgba(255,255,255,.5);
    padding: 3rem 5% 2rem;
}

.footer-top {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2.5rem;
    padding-bottom: 2.5rem;
    border-bottom: 1px solid rgba(255,255,255,.08);
}

.footer-brand .logo { display: block; margin-bottom: 1rem; }

.footer-brand p {
    font-size: .85rem;
    line-height: 1.7;
}

.footer-col h4 {
    color: var(--white);
    font-size: .88rem;
    font-weight: 700;
    margin-bottom: 1rem;
    letter-spacing: .3px;
}

.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: .6rem; }

.footer-col ul a {
    color: rgba(255,255,255,.5);
    text-decoration: none;
    font-size: .84rem;
    transition: color .2s;
}

.footer-col ul a:hover { color: var(--gold2); }

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: .78rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.disclaimer {
    font-size: .75rem;
    color: rgba(255,255,255,.35);
    margin-top: 1.5rem;
    line-height: 1.65;
}

.mobile-cta {
    display: none;
    position: fixed;
    bottom: 0; left: 0; right: 0;
    z-index: 200;
    background: var(--navy);
    padding: .75rem 1rem;
    gap: .75rem;
    border-top: 2px solid var(--gold);
}

.mobile-cta a {
    flex: 1;
    text-align: center;
    padding: .75rem;
    border-radius: 5px;
    font-weight: 700;
    font-size: .9rem;
    text-decoration: none;
}

.mobile-cta .m-call { background: var(--gold); color: var(--navy); }
.mobile-cta .m-form { background: rgba(255,255,255,.1); color: var(--white); }

/* Compensation calculator */
.calculator { background: var(--cream); }

.calculator-inner {
    max-width: 1100px;
    margin: 0 auto;
}

.calculator-header { margin-bottom: 2.5rem; max-width: 720px; }

.calculator-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
    gap: 2.5rem;
    align-items: flex-start;
}

.calc-group-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    margin-bottom: 1.25rem;
}

.calc-row {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 1rem;
}

.calc-row label {
    font-size: .95rem;
    color: #111827;
}

.calc-input {
    display: flex;
    background: var(--white);
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(15,23,42,.08);
    overflow: hidden;
}

.calc-prefix {
    padding: .75rem .9rem;
    border-right: 1px solid #e5e7eb;
    background: #f9fafb;
    font-size: .9rem;
    color: #6b7280;
}

.calc-input input {
    border: none;
    outline: none;
    padding: .75rem 1rem;
    width: 100%;
    font-size: .95rem;
}

.calc-input input:focus {
    box-shadow: inset 0 0 0 1px var(--gold);
}

.calc-summary {
    background: var(--white);
    border-radius: 14px;
    padding: 1.75rem 1.75rem 1.5rem;
    box-shadow: 0 20px 40px rgba(15,23,42,.12);
}

.calc-summary-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.2rem;
    margin-bottom: 1.25rem;
}

.calc-summary-item {
    margin-bottom: 1rem;
    font-size: .9rem;
    color: #374151;
}

.calc-summary-item strong {
    display: block;
    font-size: 1.2rem;
    margin-top: .25rem;
}

.calc-summary-total strong {
    font-size: 1.4rem;
}

.calc-multiplier-value {
    font-size: .85rem;
    color: #6b7280;
    margin-top: .15rem;
}

.calc-disclaimer {
    font-size: .75rem;
    color: #6b7280;
    margin-top: .75rem;
    line-height: 1.6;
}

.calculator input[type="range"] {
    width: 100%;
}

@media (max-width: 900px) {
    .calculator-grid {
        grid-template-columns: minmax(0, 1fr);
    }
    .calc-row {
        grid-template-columns: 1fr;
    }
}

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

@media (max-width: 900px) {
    .hero { grid-template-columns: 1fr; padding-top: 3rem; }
    .hero p { max-width: 100%; }
    .qa-grid { grid-template-columns: 1fr; }
    .footer-top { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
    nav { display: none; }
    .mobile-cta { display: flex; }
    body { padding-bottom: 70px; }
    .trust-bar { gap: 1.25rem; }
    .footer-top { grid-template-columns: 1fr; }
    .cta-band { flex-direction: column; align-items: flex-start; }
}

/* Practice areas index rows */
.practice-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.practice-row {
    padding: 1.25rem 1.5rem;
    border-radius: 10px;
    border: 1px solid #e5e7eb;
    background: var(--white);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    text-decoration: none;
    color: var(--navy);
    transition: border-color .15s, box-shadow .15s, transform .15s;
}

.practice-row:hover {
    border-color: var(--gold);
    box-shadow: 0 12px 30px rgba(201,147,58,.12);
    transform: translateY(-2px);
}

.practice-row-main {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.practice-row-icon {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    background: var(--cream);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    font-weight: 700;
}

.practice-row-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.practice-row h3 {
    font-size: 1rem;
    margin-bottom: .25rem;
}

.practice-row p {
    font-size: .88rem;
    color: var(--gray);
    max-width: 620px;
}

.practice-row-link {
    font-size: .85rem;
    font-weight: 600;
    color: var(--gold);
}

/* Blog list */
.blog-list {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.blog-row {
    padding: 1.5rem 1.75rem;
    border-radius: 10px;
    border: 1px solid #e5e7eb;
    background: var(--white);
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1.25rem;
    text-decoration: none;
    color: var(--navy);
    transition: border-color .15s, box-shadow .15s, transform .15s;
}

.blog-row:hover {
    border-color: var(--gold);
    box-shadow: 0 12px 30px rgba(201,147,58,.12);
    transform: translateY(-2px);
}

.blog-row-main h3 {
    font-size: 1.05rem;
    margin-bottom: .4rem;
}

.blog-row-main p {
    font-size: .9rem;
    color: #4b5563;
    margin-bottom: .5rem;
}

.blog-row-meta {
    display: flex;
    gap: 1rem;
    font-size: .8rem;
    color: #6b7280;
}

.blog-row-link {
    font-size: .85rem;
    font-weight: 600;
    color: var(--gold);
    white-space: nowrap;
}

.blog-article {
    font-size: .98rem;
    line-height: 1.8;
    color: #111827;
}

.blog-article p { margin-bottom: 1rem; }
.blog-article h2,
.blog-article h3,
.blog-article h4 { margin: 1.5rem 0 .75rem; }
.blog-article ul,
.blog-article ol { margin: .75rem 0 .75rem 1.25rem; }

.cases {
    background: #f9f5ef;
}

.cases-inner {
    max-width: 900px;
    margin: 0 auto;
}

.cases-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2rem, 3vw, 2.8rem);
    color: #0a1628;
    margin-bottom: 1rem;
}

.cases-sub {
    color: #6b7280;
    font-size: 1rem;
    line-height: 1.8;
    max-width: 720px;
    margin-bottom: 2rem;
}

.cases-list {
    margin-bottom: 2rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2.5rem 3rem;
}

.case-row {
    text-align: left;
    padding-bottom: 1.25rem;
    border-bottom: 2px solid #fca5a5;
}

.case-amount {
    font-family: 'Playfair Display', serif;
    font-size: 2.2rem;
    color: #111827;
}

.case-label {
    text-transform: uppercase;
    letter-spacing: .18em;
    font-size: .78rem;
    color: #9ca3af;
}

.case-type {
    font-size: 1rem;
    color: #111827;
}

.cases-footnote {
    margin-top: 1rem;
    font-size: .8rem;
    color: #6b7280;
}
