/* ==========================================================================
   Crossen Law Firm — homepage (templates/home.php)
   ========================================================================== */

/* Uniform section breathing at lg (p-lg-5 utility caps at 3rem) */
@media (min-width: 992px) {
    #clf-home-practice-areas,
    #clf-home-results,
    #clf-home-about,
    #clf-home-assurances,
    #clf-home-reviews,
    #clf-home-offices {
        padding-top: 4.5rem !important;
        padding-bottom: 4.5rem !important;
    }
}

/* Hero — composed lighting: a glow anchored behind the photo column and a
   faint counter-glow lower left. Restrained; supports the cutout photo. */
#clf-home-hero {
    background:
        radial-gradient(900px 620px at 82% 88%, rgba(0, 53, 142, .75), transparent 62%),
        radial-gradient(700px 420px at 8% 8%, rgba(0, 53, 142, .28), transparent 65%),
        var(--clf-dark);
    overflow: hidden;
}

/* Stage height: the hero is a scene, not a banner. Copy centers in the
   stage (align-self-lg-center in markup); the photo stays bottom-anchored.
   Kept conservative — pending headline options are longer than the live one
   and must be able to wrap to two lines without crowding. */
@media (min-width: 992px) {
    #clf-home-hero > .container > .row {
        /* +3rem offsets the g-lg-5 negative row top margin so the visible
           stage really hits the clamp values */
        min-height: calc(clamp(560px, 66vh, 720px) + 3rem);
    }
}

#clf-home-hero h1 {
    font-weight: 400; /* normal — client request; Playfair 400 loaded in header-scripts.php */
    letter-spacing: 0;
    line-height: 1.08;
    text-wrap: balance;
}

#clf-home-hero .clf-eyebrow {
    color: var(--clf-accent-bright);
}

#clf-home-hero .clf-hero-subtitle {
    color: var(--clf-muted-dark);
    font-family: var(--clf-font-header);
    font-weight: 500;
    line-height: 1.3;
    font-size: clamp(1.25rem, 1.1rem + .5vw, 1.5rem);
}

#clf-home-hero .clf-hero-blurb {
    color: var(--clf-muted-dark);
    max-width: 52ch;
}

/* Photo column: flush to the section bottom, subtle ring + glow backdrop */
#clf-home-hero .clf-hero-media {
    position: relative;
    justify-content: center;
}

#clf-home-hero .clf-hero-media::before {
    content: "";
    position: absolute;
    inset: auto auto -30% 50%;
    transform: translateX(-50%);
    width: 640px;
    height: 640px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, .14);
    background: radial-gradient(circle at 50% 35%, rgba(29, 91, 196, .35), rgba(29, 91, 196, 0) 70%);
    pointer-events: none;
}

#clf-home-hero .clf-hero-photo {
    position: relative;
    display: block;
    width: 100%;
    max-width: 540px;
    height: auto;
    margin-top: 2.5rem;
    filter: drop-shadow(0 12px 24px rgba(0, 0, 0, .3));
}

/* Trust band — one white card strip straddling the hero/body seam.
   The hero gains matching bottom padding so the overlap never eats copy. */
#clf-home-hero {
    padding-bottom: 1.5rem;
}

@media (min-width: 992px) {
    #clf-home-hero {
        padding-bottom: 0; /* photo stays flush; band overlaps the stage */
    }
}

/* Trust band component (.clf-trust-band/-item/-icon/-label) promoted to
   style.css 2026-08-14 — it now also renders under interior page heroes. */

/* .clf-area-card promoted to style.css 2026-08-14 (also used on the
   Personal Injury landing template). */

/* Case result cards (on navy) — solid navy so the bg photo never shows
   through the cards (client request 2026-08-12) */
.clf-result-card {
    background: var(--clf-dark); /* #0a1f44 */
    border: 1px solid var(--clf-line-dark);
    border-radius: var(--clf-radius);
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

/* Subtle lift on hover (navy-on-navy variant of .clf-card-hover; client request 2026-08-14) */
.clf-result-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 28px rgba(0, 0, 0, .35);
    border-color: rgba(255, 255, 255, .28);
}

@media (prefers-reduced-motion: reduce) {
    .clf-result-card { transition: none; }
    .clf-result-card:hover { transform: none; }
}

.clf-result-card .clf-result-amount {
    font-family: var(--clf-font-display);
    font-size: clamp(1.85rem, 1.35rem + 1.8vw, 2.8rem);
    font-weight: 700;
    color: #fff;
    padding-bottom: .55rem;
    margin-bottom: .8rem !important;
    position: relative;
}

/* Short hairline under the settlement amount */
.clf-result-card .clf-result-amount::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 44px;
    height: 1px;
    background: rgba(255, 255, 255, .35);
}

.clf-result-card .clf-result-type {
    color: #ffd7d3;
    font-family: var(--clf-font-header);
    font-size: .9375rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .05em;
}

.clf-result-card .clf-result-summary {
    color: var(--clf-muted-dark);
    font-size: .9375rem;
}

#clf-home-results .clf-results-disclaimer {
    color: var(--clf-muted-dark);
    font-size: .8125rem;
}

/* About intro — credential band (claims published in this section's copy) */
#clf-home-about .clf-cred-band {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1px; /* hairline gaps rendered by the band background */
    background: var(--clf-line);
    border: 1px solid var(--clf-line);
    border-radius: var(--clf-radius);
    overflow: hidden;
}

@media (min-width: 768px) {
    #clf-home-about .clf-cred-band {
        grid-template-columns: repeat(3, 1fr);
    }
}

#clf-home-about .clf-cred {
    background: #fff;
    text-align: center;
    padding: 1.35rem 1rem 1.2rem;
}

#clf-home-about .clf-cred-mark {
    display: block;
    font-family: var(--clf-font-display);
    font-size: 1.85rem;
    font-weight: 500;
    line-height: 1.1;
    color: var(--clf-primary);
    margin-bottom: .3rem;
}

#clf-home-about .clf-cred-mark sup {
    font-size: .9rem;
    top: -.9em;
}

#clf-home-about .clf-cred-label {
    display: block;
    font-family: var(--clf-font-header);
    font-size: .8125rem;
    font-weight: 600;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--clf-muted);
}

/* The existing bold centered "Call ... today" line in the wysiwyg copy
   becomes a proper callout (content untouched — selector keys off the
   editor's centered paragraph). */
#clf-home-about .clf-prose p[style*="text-align"] {
    text-align: left !important;
    background: var(--clf-light);
    border-left: 4px solid var(--clf-accent);
    border-radius: 0 var(--clf-radius-sm) var(--clf-radius-sm) 0;
    padding: 1rem 1.25rem;
    margin-top: 1.5rem;
}

#clf-home-about .clf-prose p[style*="text-align"] strong {
    font-weight: 600;
    color: var(--clf-dark);
}

#clf-home-about .clf-prose p[style*="text-align"] a {
    font-weight: 700;
    white-space: nowrap;
}

/* Assurances — three balanced bands: intro+photo / statute+CTA cards /
   full-width damages. (Fallback two-column keeps .clf-assur-card rules.) */
.clf-assur-card .clf-assur-img {
    height: 260px;
    object-fit: cover;
}

#clf-home-assurances .clf-assur-photo {
    overflow: hidden;
    height: 100%;
    min-height: 280px;
}

#clf-home-assurances .clf-assur-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Statute-deadline callout card */
#clf-home-assurances .clf-statute-card {
    border-top: 4px solid var(--clf-accent);
}

#clf-home-assurances .clf-statute-card h3:first-child {
    margin-top: 0;
}

#clf-home-assurances .clf-statute-card p:last-child {
    margin-bottom: 0;
}

/* Navy CTA card — the section's focal moment */
#clf-home-assurances .clf-assur-cta {
    background:
        radial-gradient(480px 320px at 82% 100%, rgba(0, 53, 142, .65), transparent 65%),
        var(--clf-dark);
    border-radius: var(--clf-radius);
    color: var(--clf-muted-dark);
}

#clf-home-assurances .clf-assur-cta h3 {
    color: #fff;
}

#clf-home-assurances .clf-assur-cta p {
    max-width: 44ch;
}

/* Full-width damages block — a white panel so the band reads as a
   composed card, matching the statute/CTA pair above it. */
#clf-home-assurances .clf-assur-damages {
    background: #fff;
    border: 1px solid var(--clf-line);
    border-radius: var(--clf-radius);
    box-shadow: var(--clf-shadow);
    padding: clamp(1.5rem, 1rem + 2vw, 2.75rem);
}

#clf-home-assurances .clf-assur-damages h3:first-child {
    margin-top: 0;
    font-size: 1.5rem;
}

#clf-home-assurances .clf-assur-damages > p {
    max-width: 78ch;
}

#clf-home-assurances .clf-assur-damages > p:last-child {
    margin-bottom: 0;
    color: var(--clf-muted);
}

/* The wysiwyg damages list renders as feature tiles (content untouched —
   badge drawn via ::before, codepoint from bootstrap-icons 1.13.1). */
#clf-home-assurances .clf-prose ul {
    list-style: none;
    padding-left: 0;
    display: grid;
    grid-template-columns: 1fr;
    gap: .85rem;
    margin: 1.5rem 0;
}

@media (min-width: 768px) {
    #clf-home-assurances .clf-prose ul {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1200px) {
    #clf-home-assurances .clf-assur-damages ul {
        grid-template-columns: repeat(4, 1fr);
    }
}

#clf-home-assurances .clf-prose ul li {
    display: flex;
    align-items: center;
    gap: .9rem;
    padding: 1.1rem 1.15rem;
    background: var(--clf-light);
    border: 1px solid var(--clf-line);
    border-radius: var(--clf-radius);
    font-weight: 600;
    color: var(--clf-dark);
    line-height: 1.35;
    text-wrap: balance;
}

#clf-home-assurances .clf-prose ul li::before {
    content: "\f26a"; /* bootstrap-icons check-circle-fill */
    font-family: "bootstrap-icons";
    flex: 0 0 auto;
    width: 2.4rem;
    height: 2.4rem;
    display: grid;
    place-items: center;
    background: rgba(218, 41, 28, .09);
    color: var(--clf-accent);
    border-radius: 50%;
    font-size: 1.05rem;
}

#clf-home-assurances .clf-prose h3 {
    margin-top: 2rem;
}

/* .clf-review-card promoted to style.css 2026-08-14 (also used on the
   Reviews page template). */

/* Offices: projected Indiana map + leader-line labels + compact office rows.
   Geometry is generated (see home-offices.php docblock), not hand-drawn. */
/* .clf-indiana map styles moved to interior.css (shared with the contact page) */

#clf-home-offices .clf-office-address {
    color: var(--clf-muted);
}

#clf-home-offices .clf-office-phone {
    font-family: var(--clf-font-header);
    font-weight: 700;
    color: var(--clf-primary);
    text-decoration: none;
}

#clf-home-offices .clf-office-phone:hover,
#clf-home-offices .clf-office-phone:focus {
    text-decoration: underline;
}

@media (min-width: 992px) {
    #clf-home-offices .clf-office-actions {
        text-align: right;
    }
}

/* #clf-cta promoted to global.css 2026-08-14 so every template gets the
   composed CTA band, not just the front page. */

/* Results section: law-library photo under a near-opaque navy overlay.
   Falls back to the solid .clf-bg-dark navy when the image is absent. */
#clf-home-results {
    background:
        linear-gradient(rgba(10, 31, 68, .90), rgba(10, 31, 68, .94)),
        var(--clf-results-bg, none) center / cover no-repeat,
        var(--clf-dark);
}

/* Results transformation lead-in (playbook proof pillar) */
#clf-home-results .clf-results-lead {
    color: var(--clf-muted-dark);
    max-width: 56ch;
    margin-top: 1rem;
    font-size: 1.0625rem;
}
