/* LegalPoint — Dark Navy, White, Gold */
:root {
    --color-primary: #0D1B2A;
    --color-secondary: #FFFFFF;
    --color-accent: #D4AF37;
    --color-accent-hover: #c4a02e;
    --font-serif: 'Libre Baskerville', Georgia, 'Times New Roman', serif;
    --font-sans: 'DM Sans', system-ui, sans-serif;
    --section-py: clamp(3rem, 6vw, 5rem);
}

body {
    font-family: var(--font-sans);
    color: var(--color-primary);
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .section-title, .home-hero-title {
    font-family: var(--font-serif);
    font-weight: 700;
    letter-spacing: -0.02em;
}

.text-accent {
    color: var(--color-accent) !important;
}

.text-white-75 {
    color: rgba(255, 255, 255, 0.78) !important;
}

.max-w-prose {
    max-width: 38rem;
}

.py-lg-6 {
    padding-top: var(--section-py) !important;
    padding-bottom: var(--section-py) !important;
}

.g-xl-6 {
    --bs-gutter-x: 3rem;
    --bs-gutter-y: 3rem;
}

@media (min-width: 1200px) {
    .g-xl-6 {
        --bs-gutter-x: 3.5rem;
        --bs-gutter-y: 3.5rem;
    }
}

/* —— Home page —— */
.home-hero {
    background: linear-gradient(145deg, #0a1520 0%, #0D1B2A 45%, #152a3d 100%);
    overflow: hidden;
}

.home-hero-copy {
    position: relative;
    z-index: 2;
}

.home-hero-copy::before {
    content: '';
    position: absolute;
    left: 0;
    top: 15%;
    bottom: 15%;
    width: 4px;
    background: linear-gradient(180deg, var(--color-accent), transparent);
    border-radius: 2px;
    opacity: 0.85;
}

@media (max-width: 575.98px) {
    .home-hero-copy::before {
        display: none;
    }
}

@media (min-width: 992px) {
    .home-hero-copy .container-fluid {
        padding-left: 3rem !important;
        padding-left: max(3rem, calc((100vw - 1140px) / 2 + 1rem)) !important;
    }
}

.home-kicker {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--color-accent);
    font-family: var(--font-sans);
}

.home-hero-title {
    line-height: 1.15;
}

.home-hero-lead {
    font-family: var(--font-sans);
    font-weight: 500;
    letter-spacing: 0;
}

.home-stats {
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    padding-top: 1.25rem;
}

.home-stat {
    display: flex;
    flex-direction: column;
    min-width: 4.5rem;
}

.home-stat-num {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-accent);
    line-height: 1.2;
}

.home-stat-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: rgba(255, 255, 255, 0.55);
}

.home-hero-photo {
    position: relative;
    min-height: 45vh;
    background: #0a1520;
}

@media (min-width: 992px) {
    .home-hero-photo {
        min-height: 100%;
    }
}

.home-hero-photo-inner {
    position: absolute;
    inset: 0;
    margin: 1.5rem 1.5rem 1.5rem 0;
    border-radius: 0 0 0 2rem;
    overflow: hidden;
    box-shadow: -20px 20px 60px rgba(0, 0, 0, 0.35);
}

@media (max-width: 991.98px) {
    .home-hero-photo-inner {
        margin: 0;
        border-radius: 0;
        position: relative;
        min-height: 50vh;
    }
}

.home-hero-photo-accent {
    position: absolute;
    right: 0;
    top: 10%;
    width: 40%;
    height: 50%;
    background: radial-gradient(ellipse at top right, rgba(212, 175, 55, 0.12), transparent 70%);
    pointer-events: none;
}

.home-portrait-wrap {
    max-width: 380px;
    position: relative;
}

.home-portrait-frame {
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 24px 48px rgba(13, 27, 42, 0.15);
    border: 1px solid rgba(13, 27, 42, 0.08);
}

.home-portrait-img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    object-position: center top;
    display: block;
}

.home-portrait-badge {
    margin-top: 1rem;
    text-align: center;
}

.home-portrait-name {
    display: block;
    font-weight: 700;
    color: var(--color-primary);
    font-family: var(--font-serif);
}

.home-portrait-title {
    font-size: 0.875rem;
    color: #6c757d;
}

.home-lead {
    color: #1a2d42;
    font-weight: 500;
}

.home-checklist {
    list-style: none;
    padding: 0;
    margin: 0;
}

.home-checklist li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.5rem;
    color: #495057;
}

.home-checklist li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--color-accent);
    font-weight: 700;
}

.section-home--light {
    background: #fff;
}

.section-home--muted {
    background: #f6f7f9;
}

.section-home--dark {
    background: linear-gradient(180deg, #0D1B2A 0%, #0f2030 100%);
}

.section-kicker {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--color-accent);
    font-family: var(--font-sans);
}

.section-kicker--on-dark {
    color: rgba(212, 175, 55, 0.95);
}

.section-title {
    font-size: clamp(1.75rem, 4vw, 2.35rem);
    color: var(--color-primary);
}

.section-title--light {
    color: #fff;
}

.home-pa-card-inner {
    background: #fff;
    border-radius: 1rem;
    border: 1px solid rgba(13, 27, 42, 0.08);
    transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

.home-pa-card:hover .home-pa-card-inner {
    border-color: rgba(212, 175, 55, 0.45);
    box-shadow: 0 16px 40px rgba(13, 27, 42, 0.08);
    transform: translateY(-4px);
}

.home-pa-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 1rem;
    border-radius: 0.75rem;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.2), rgba(212, 175, 55, 0.08));
    color: var(--color-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.home-pa-link {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--color-accent);
}

.home-feature {
    padding: 1.75rem;
    border-radius: 1rem;
    background: #fff;
    border: 1px solid rgba(13, 27, 42, 0.06);
    transition: box-shadow 0.2s ease;
}

.home-feature:hover {
    box-shadow: 0 8px 28px rgba(13, 27, 42, 0.06);
}

.home-feature-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(212, 175, 55, 0.15);
    color: var(--color-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.home-step-num {
    width: 48px;
    height: 48px;
    margin: 0 auto;
    border-radius: 50%;
    border: 2px solid var(--color-accent);
    color: var(--color-accent);
    font-family: var(--font-serif);
    font-weight: 700;
    font-size: 1.125rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.home-faq .accordion-button {
    font-weight: 600;
    color: var(--color-primary);
    background: #fff;
}

.home-faq-item {
    border: 1px solid rgba(13, 27, 42, 0.08) !important;
    border-radius: 0.75rem !important;
    overflow: hidden;
}

.home-quote {
    max-width: 640px;
    padding: 2.5rem 2rem;
    background: #fff;
    border-radius: 1rem;
    border: 1px solid rgba(13, 27, 42, 0.08);
    box-shadow: 0 12px 40px rgba(13, 27, 42, 0.06);
}

.home-quote-text {
    font-family: var(--font-serif);
    font-size: 1.125rem;
    font-style: italic;
    line-height: 1.65;
    color: var(--color-primary);
    margin-bottom: 1.25rem;
}

.home-quote-author {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-accent);
}

.home-blog-card {
    background: #fff;
    border: 1px solid rgba(13, 27, 42, 0.08);
    transition: box-shadow 0.25s ease, transform 0.25s ease, border-color 0.25s ease;
}

.blog-card-link:hover .home-blog-card {
    box-shadow: 0 16px 40px rgba(13, 27, 42, 0.1);
    transform: translateY(-4px);
    border-color: rgba(212, 175, 55, 0.25);
}

.home-blog-card-img {
    height: 180px;
    overflow: hidden;
}

.home-cta {
    background: linear-gradient(135deg, #0D1B2A 0%, #1a2d42 50%, #0D1B2A 100%);
    position: relative;
}

.home-cta::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 80% 50% at 50% 0%, rgba(212, 175, 55, 0.08), transparent 55%);
    pointer-events: none;
}

.home-cta .container {
    position: relative;
    z-index: 1;
}

/* Header */
.header {
    background-color: var(--color-primary);
    position: sticky;
    top: 0;
    z-index: 1030;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.header .nav-link {
    color: rgba(255, 255, 255, 0.9) !important;
}

.header .nav-link:hover,
.header .nav-link.active {
    color: var(--color-accent) !important;
}

.header .navbar-brand {
    font-family: var(--font-serif);
    font-size: 1.35rem;
    letter-spacing: -0.02em;
}

.site-logo {
    height: 44px;
    width: auto;
    max-width: min(100%, 320px);
    object-fit: contain;
    object-position: left center;
}

.footer-logo {
    height: 38px;
    width: auto;
    max-width: min(100%, 280px);
    object-fit: contain;
}

.brand:hover {
    color: var(--color-accent) !important;
}

/* Gold button */
.btn-gold {
    background-color: var(--color-accent);
    color: var(--color-primary);
    border: none;
    padding: 0.5rem 1.25rem;
    font-weight: 600;
    border-radius: 0.25rem;
}

.btn-gold:hover {
    background-color: var(--color-accent-hover);
    color: var(--color-primary);
}

/* Hero (legacy + shared image) */
.hero {
    position: relative;
    min-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--color-primary) 0%, #1a2d42 100%);
}

.hero-split {
    display: block;
}

.hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
}

.hero-img-wrapper {
    overflow: hidden;
    background: #0D1B2A;
}

.hero[style*="url"] {
    background-size: cover;
    background-position: center;
}

.hero .overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(13, 27, 42, 0.7) 0%, rgba(13, 27, 42, 0.9) 100%);
}

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

/* Practice areas cards */
.practice-areas .card {
    border: 1px solid rgba(13, 27, 42, 0.1);
    border-radius: 0.5rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.practice-areas .card:hover {
    border-color: rgba(212, 175, 55, 0.4);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.practice-areas .card h5 {
    color: var(--color-primary);
}

.practice-areas .icon-placeholder {
    width: 50px;
    height: 50px;
    background: rgba(212, 175, 55, 0.2);
    color: var(--color-accent);
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
}

/* Testimonials (legacy pages) */
.testimonials {
    background-color: rgba(13, 27, 42, 0.05);
}

.testimonial-card {
    background: var(--color-secondary);
    border: 1px solid rgba(13, 27, 42, 0.1);
    border-radius: 0.5rem;
    color: var(--color-primary);
}

.testimonial-card h6 {
    color: var(--color-accent);
}

#testimonialCarousel .carousel-control-prev,
#testimonialCarousel .carousel-control-next {
    width: 3rem;
    opacity: 1;
}

#testimonialCarousel .carousel-control-prev-icon,
#testimonialCarousel .carousel-control-next-icon {
    width: 2.75rem;
    height: 2.75rem;
    background-color: var(--color-accent) !important;
    background-size: 50% 50%;
    border-radius: 50%;
}

/* Contact CTA */
.contact-cta {
    background-color: var(--color-primary) !important;
}

/* Icon placeholder (shared) */
.icon-placeholder {
    width: 48px;
    height: 48px;
    min-width: 48px;
    background: rgba(212, 175, 55, 0.2);
    color: var(--color-accent);
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Form focus */
.form-control:focus {
    border-color: var(--color-accent);
    box-shadow: 0 0 0 0.2rem rgba(212, 175, 55, 0.25);
}

/* Blog content */
.content h2 { margin-top: 1.5rem; margin-bottom: 0.5rem; }
.content p { margin-bottom: 1rem; }
.content ul { margin-bottom: 1rem; padding-left: 1.5rem; }

.article-content {
    font-size: 1.1rem;
    line-height: 1.8;
}

.article-content h2 {
    font-size: 1.35rem;
    color: var(--color-primary);
    padding-bottom: 0.25rem;
    border-bottom: 2px solid rgba(212, 175, 55, 0.3);
}

.article-content ul {
    margin-top: 0.5rem;
}

.article-content li {
    margin-bottom: 0.35rem;
}

.article-content strong {
    color: var(--color-primary);
}

/* Blog index hero */
.blog-hero {
    background: linear-gradient(135deg, #0D1B2A 0%, #1a2d42 100%);
}

/* Blog bento cards */
.blog-bento-featured .rounded-3,
.blog-bento-card .rounded-3 {
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.blog-bento-featured:hover .rounded-3 {
    box-shadow: 0 16px 40px rgba(13, 27, 42, 0.2) !important;
    transform: translateY(-2px);
}

.blog-bento-card:hover .rounded-3 {
    box-shadow: 0 12px 32px rgba(13, 27, 42, 0.15) !important;
    transform: translateY(-4px);
}

/* Blog post header */
.blog-post-header {
    position: relative;
    background: #0D1B2A;
    min-height: 220px;
}

.blog-post-header-img {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 260px;
    overflow: hidden;
}

.blog-post-header-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.35;
}

.blog-post-header .container {
    position: relative;
    z-index: 2;
}

/* Blog share */
.blog-share a.hover-gold:hover {
    color: var(--color-accent) !important;
}

/* Blog related items */
.blog-related-item {
    transition: opacity 0.2s ease;
}

.blog-related-item:hover {
    opacity: 0.85;
}

.blog-related-item:hover h5 {
    color: var(--color-accent) !important;
}

/* Blog cards (home + related) */
.blog-card-link .card,
.blog-card-link > div {
    transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.blog-card-link:hover .card,
.blog-card-link:hover > div {
    box-shadow: 0 8px 24px rgba(13, 27, 42, 0.12) !important;
    transform: translateY(-4px);
}

/* Blog post hero breadcrumb */
.breadcrumb.bg-transparent .breadcrumb-item + .breadcrumb-item::before {
    color: rgba(255, 255, 255, 0.5);
}

/* Footer */
footer {
    background-color: var(--color-primary);
}

footer a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
}

footer a:hover {
    color: var(--color-accent);
}

/* Practice area cards (clickable) */
.practice-area-card-link .card,
.practice-area-card-link > div {
    transition: box-shadow 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.practice-area-card-link:hover .card,
.practice-area-card-link:hover > div {
    box-shadow: 0 8px 24px rgba(13, 27, 42, 0.12) !important;
    border-color: rgba(212, 175, 55, 0.35) !important;
}

.practice-area-card-link:hover .card {
    transform: translateY(-2px);
}

/* Practice area FAQ accordion */
#faqAccordion .accordion-button:not(.collapsed) {
    background-color: rgba(212, 175, 55, 0.1);
    color: var(--color-primary);
}

#faqAccordion .accordion-button:focus {
    box-shadow: 0 0 0 0.25rem rgba(212, 175, 55, 0.25);
}

/* Admin-edited HTML (pages.body) */
.cms-page img {
    max-width: 100%;
    height: auto;
}

/* Admin dashboard control cards */
.admin-dash-card {
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

a:hover .admin-dash-card {
    box-shadow: 0 8px 24px rgba(13, 27, 42, 0.12) !important;
    transform: translateY(-2px);
}

