/**
 * AdvocateCentre Theme — Practice Areas CSS
 * Specific styles for practice area page templates.
 *
 * @package AdvocateCentre
 * @version 1.0.0
 */

/* =========================================================
   PRACTICE AREA PAGE HERO ENHANCEMENTS
   ========================================================= */
.page-hero {
    position: relative;
    overflow: hidden;
}

.page-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 700px;
    height: 700px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(184,148,46,0.07) 0%, transparent 70%);
    pointer-events: none;
}

/* =========================================================
   SERVICE DETAIL CARDS (Practice Area Pages)
   ========================================================= */
.service-detail-card {
    background: var(--color-white);
    border-radius: var(--radius-lg);
    padding: var(--spacing-2xl);
    border-left: 4px solid var(--color-gold);
    box-shadow: var(--shadow-sm);
    margin-bottom: var(--spacing-xl);
    transition: box-shadow var(--transition-base), transform var(--transition-base);
}

.service-detail-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateX(4px);
}

.service-detail-card h3 {
    font-size: var(--font-size-xl);
    color: var(--color-navy);
    margin-bottom: var(--spacing-md);
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
}

.service-detail-card h3 .icon {
    width: 36px;
    height: 36px;
    background: var(--color-gold);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.service-detail-card h3 .icon svg {
    width: 18px;
    height: 18px;
    fill: var(--color-white);
}

.service-detail-card ul {
    list-style: none;
    padding: 0;
    margin: var(--spacing-md) 0 0;
}

.service-detail-card ul li {
    padding: 7px 0;
    border-bottom: 1px solid var(--color-border);
    font-size: var(--font-size-sm);
    color: var(--color-text-light);
    display: flex;
    align-items: flex-start;
    gap: var(--spacing-sm);
}

.service-detail-card ul li:last-child {
    border-bottom: none;
}

.service-detail-card ul li::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--color-gold);
    flex-shrink: 0;
    margin-top: 6px;
}

/* =========================================================
   PROCESS TIMELINE (Alternative)
   ========================================================= */
.process-timeline {
    position: relative;
    padding-left: var(--spacing-3xl);
}

.process-timeline::before {
    content: '';
    position: absolute;
    left: 20px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, var(--color-gold), rgba(184,148,46,0.2));
}

.timeline-item {
    position: relative;
    margin-bottom: var(--spacing-3xl);
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -46px;
    top: 8px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--color-gold);
    border: 3px solid var(--color-white);
    box-shadow: 0 0 0 2px var(--color-gold);
    z-index: 1;
}

.timeline-item-year {
    font-size: var(--font-size-xs);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--color-gold);
    margin-bottom: var(--spacing-xs);
}

.timeline-item-title {
    font-family: var(--font-heading);
    font-size: var(--font-size-xl);
    color: var(--color-navy);
    margin-bottom: var(--spacing-sm);
}

.timeline-item-desc {
    font-size: var(--font-size-sm);
    color: var(--color-text-light);
    line-height: var(--line-height-loose);
}

/* =========================================================
   PRACTICE AREA INTRO SECTION
   ========================================================= */
.practice-intro {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: var(--spacing-4xl);
    align-items: start;
    padding: var(--spacing-5xl) 0;
}

.practice-intro-content h2 {
    font-size: var(--font-size-4xl);
    line-height: var(--line-height-tight);
    margin-bottom: var(--spacing-xl);
}

.practice-intro-content p {
    font-size: var(--font-size-md);
    color: var(--color-text-light);
    line-height: var(--line-height-loose);
    margin-bottom: var(--spacing-lg);
}

.practice-intro-sidebar {
    position: sticky;
    top: calc(var(--nav-height) + 30px);
}

.practice-quick-facts {
    background: var(--color-navy);
    border-radius: var(--radius-lg);
    padding: var(--spacing-2xl);
    margin-bottom: var(--spacing-xl);
}

.practice-quick-facts h3 {
    font-family: var(--font-heading);
    font-size: var(--font-size-lg);
    color: var(--color-white);
    margin-bottom: var(--spacing-xl);
    padding-bottom: var(--spacing-md);
    border-bottom: 1px solid rgba(184,148,46,0.4);
}

.quick-fact-item {
    display: flex;
    align-items: flex-start;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-lg);
}

.quick-fact-item:last-child {
    margin-bottom: 0;
}

.quick-fact-icon {
    width: 36px;
    height: 36px;
    background: rgba(184,148,46,0.15);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.quick-fact-icon svg {
    width: 16px;
    height: 16px;
    fill: var(--color-gold);
}

.quick-fact-label {
    font-size: var(--font-size-xs);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(255,255,255,0.5);
    margin-bottom: 2px;
    display: block;
}

.quick-fact-value {
    font-size: var(--font-size-base);
    color: var(--color-white);
    font-weight: 600;
}

/* =========================================================
   CASE STUDIES SECTION (Practice Pages)
   ========================================================= */
.case-study-card {
    background: var(--color-white);
    border-radius: var(--radius-lg);
    padding: var(--spacing-2xl);
    box-shadow: var(--shadow-md);
    transition: transform var(--transition-base), box-shadow var(--transition-base);
    border-top: 4px solid var(--color-gold);
}

.case-study-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
}

.case-label {
    display: inline-block;
    font-size: var(--font-size-xs);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-gold);
    margin-bottom: var(--spacing-md);
}

.case-title {
    font-family: var(--font-heading);
    font-size: var(--font-size-xl);
    color: var(--color-navy);
    margin-bottom: var(--spacing-md);
}

.case-summary {
    font-size: var(--font-size-sm);
    color: var(--color-text-light);
    line-height: var(--line-height-loose);
    margin-bottom: var(--spacing-lg);
}

.case-outcome {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-md);
    background: var(--color-off-white);
    border-radius: var(--radius-sm);
    font-size: var(--font-size-sm);
    font-weight: 700;
    color: var(--color-navy);
}

.case-outcome::before {
    content: '✓';
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #22c55e;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    flex-shrink: 0;
}

/* =========================================================
   EXPERTISE TAG CLOUD
   ========================================================= */
.expertise-tags {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-2xl);
}

.expertise-tag {
    padding: 7px 14px;
    background: var(--color-off-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-full);
    font-size: var(--font-size-xs);
    font-weight: 600;
    color: var(--color-text-light);
    transition: all var(--transition-fast);
    cursor: pointer;
}

.expertise-tag:hover,
.expertise-tag.active {
    background: var(--color-gold);
    border-color: var(--color-gold);
    color: var(--color-white);
}

/* =========================================================
   JURISDICTION MAP PLACEHOLDER
   ========================================================= */
.jurisdiction-map {
    height: 350px;
    background: linear-gradient(135deg, var(--color-navy), var(--color-navy-mid));
    border-radius: var(--radius-xl);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.jurisdiction-map-inner {
    text-align: center;
    color: rgba(255,255,255,0.4);
}

.jurisdiction-map-inner svg {
    width: 80px;
    height: 80px;
    fill: rgba(184,148,46,0.3);
    margin-bottom: var(--spacing-md);
}

/* =========================================================
   CTA BANNER (Practice Area Specific)
   ========================================================= */
.practice-cta-inline {
    background: var(--color-off-white);
    border: 1px solid var(--color-border);
    border-left: 5px solid var(--color-gold);
    border-radius: var(--radius-lg);
    padding: var(--spacing-2xl);
    margin: var(--spacing-3xl) 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--spacing-xl);
    flex-wrap: wrap;
}

.practice-cta-inline h3 {
    font-family: var(--font-heading);
    font-size: var(--font-size-xl);
    color: var(--color-navy);
    margin-bottom: var(--spacing-xs);
}

.practice-cta-inline p {
    font-size: var(--font-size-sm);
    color: var(--color-text-light);
    margin: 0;
}

.practice-cta-inline .btn {
    flex-shrink: 0;
}

/* =========================================================
   ATTORNEY PROFILE (Practice Area related attorney)
   ========================================================= */
.attorney-mini-card {
    display: flex;
    align-items: center;
    gap: var(--spacing-lg);
    background: var(--color-white);
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg);
    box-shadow: var(--shadow-sm);
    transition: box-shadow var(--transition-fast);
    margin-bottom: var(--spacing-md);
}

.attorney-mini-card:hover {
    box-shadow: var(--shadow-md);
}

.attorney-mini-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--color-navy), var(--color-navy-mid));
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-size: var(--font-size-xl);
    color: var(--color-gold);
    font-weight: 700;
}

.attorney-mini-info h4 {
    font-family: var(--font-heading);
    font-size: var(--font-size-base);
    color: var(--color-navy);
    margin-bottom: 2px;
}

.attorney-mini-info span {
    font-size: var(--font-size-xs);
    color: var(--color-text-muted);
    display: block;
}

.attorney-mini-info a.attorney-link {
    font-size: var(--font-size-xs);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--color-gold);
    display: inline-block;
    margin-top: 4px;
}

/* =========================================================
   RESPONSIVE — PRACTICE AREA INTRO
   ========================================================= */
@media (max-width: 1024px) {
    .practice-intro {
        grid-template-columns: 1fr;
        gap: var(--spacing-3xl);
    }

    .practice-intro-sidebar {
        position: static;
    }
}

@media (max-width: 768px) {
    .practice-cta-inline {
        flex-direction: column;
        align-items: flex-start;
    }

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

    .process-timeline {
        padding-left: var(--spacing-2xl);
    }

    .process-timeline::before {
        left: 12px;
    }

    .timeline-item::before {
        left: -34px;
    }
}

/* Editor-driven practice pages */
.practice-index-hero,
.practice-detail-hero {
    background: var(--color-navy);
    background-image: linear-gradient(90deg, rgba(4,17,26,.97), rgba(4,17,26,.68) 56%, rgba(4,17,26,.26)), var(--title-practice-image);
    background-size: cover;
    background-position: center;
    color: #fff;
    padding: 180px 0 100px;
    position: relative;
    overflow: hidden;
}
.practice-index-hero::after,
.practice-detail-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 85% 20%, rgba(184,144,88,.2), transparent 33%);
    pointer-events: none;
}
.practice-index-hero .container,
.practice-detail-hero-inner { position: relative; z-index: 1; }
.practice-index-hero h1,
.practice-detail-hero h1 { color: #fff; font-size: clamp(1.65rem,2.2vw,2.4rem); line-height: 1.15; letter-spacing: -.025em; max-width: 950px; }
.practice-index-intro,
.practice-detail-hero p { color: rgba(255,255,255,.68); max-width: 720px; font-size: 1.05rem; line-height: 1.85; margin-top: 28px; }
.practice-detail-hero .btn { margin-top: 30px; }
.practice-detail-hero.has-image { background-image: linear-gradient(90deg,rgba(5,19,28,.98),rgba(5,19,28,.7)),var(--practice-image); background-size: cover; background-position: center; }
.practice-detail-layout { display: grid; grid-template-columns: minmax(0,1fr) 340px; gap: clamp(50px,8vw,110px); padding-top: clamp(70px,9vw,120px); padding-bottom: clamp(70px,9vw,120px); align-items: start; }
.practice-detail-content { color: var(--color-text-light); font-size: 1rem; line-height: 1.9; }
.practice-detail-content > p:first-child { color: var(--color-navy); font-family: var(--font-heading); font-size: clamp(1.05rem,1.4vw,1.25rem); line-height: 1.6; }
.practice-detail-content h2 { color: var(--color-navy); font-size: clamp(1.2rem,1.6vw,1.6rem); margin: 48px 0 16px; }
.practice-detail-content h3 { color: var(--color-navy); font-size: 1.1rem; margin: 28px 0 10px; }
.practice-detail-content ul { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px 26px; list-style: none; padding: 0; }
.practice-detail-content li { padding: 14px 0 14px 20px; border-bottom: 1px solid var(--color-border); position: relative; }
.practice-detail-content li::before { content: ""; width: 6px; height: 6px; background: var(--color-gold); position: absolute; left: 0; top: 23px; }
.practice-detail-aside { position: sticky; top: 120px; }
.practice-enquiry-card { background: var(--color-navy); color: #fff; padding: 34px; }
.practice-enquiry-card > span { color: var(--color-gold); font-size: .7rem; letter-spacing: .15em; text-transform: uppercase; }
.practice-enquiry-card h2 { color: #fff; font-size: 2rem; line-height: 1.15; margin: 18px 0; }
.practice-enquiry-card p { color: rgba(255,255,255,.63); font-size: .85rem; line-height: 1.7; }
.related-practices { margin-top: 34px; }
.related-practices h2 { font-family: var(--font-body); font-size: .7rem; letter-spacing: .16em; text-transform: uppercase; }
.related-practices ul { list-style: none; padding: 0; }
.related-practices li { border-top: 1px solid var(--color-border); }
.related-practices a { color: var(--color-navy); display: flex; justify-content: space-between; gap: 15px; padding: 14px 0; font-size: .82rem; }
.related-practices a span { color: var(--color-gold); }
.practice-index-hero + .practices-redesign { padding-top: 100px; }
.practices-redesign .capability-card h2 { font-size: 1.55rem; margin: 48px 0 18px; line-height: 1.2; }
.practices-redesign .capability-card h2 a { color: #fff; }

@media (max-width: 850px) {
    .practice-detail-layout { grid-template-columns: 1fr; }
    .practice-detail-aside { position: static; }
}
@media (max-width: 600px) {
    .practice-index-hero,
    .practice-detail-hero { padding: 135px 0 70px; }
    .practice-detail-content ul { grid-template-columns: 1fr; }
}
