/* ==========================================================================
   Single Attorney (single-attorneys.php)
   Depends on css/tokens.css
   ========================================================================== */

.attorney {
    position: relative;
    overflow: hidden;
    background: var(--mist);
    font-family: var(--font-body);
}

.attorney__glow {
    position: absolute;
    top: -15rem;
    right: -15rem;
    z-index: 0;
    width: 35rem;
    height: 35rem;
    border-radius: 50%;
    background: rgba(219, 230, 255, .6);
    filter: blur(64px);
    pointer-events: none;
}

.attorney__inner {
    position: relative;
    z-index: 1;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: var(--space-8) var(--gutter);
}

/* Breadcrumb ---------------------------------------------------------- */
.attorney__crumbs {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--space-2);
    color: var(--ink-400);
    font-size: var(--text-caption);
    font-weight: 600;
}

.attorney__crumb {
    color: inherit;
    text-decoration: none;
    transition: color .15s ease;
}

.attorney__crumb:hover {
    color: var(--brand-600);
}

.attorney__crumb--current {
    color: var(--ink-700);
}

/* Layout -------------------------------------------------------------- */
.attorney__grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: var(--space-8);
    margin-top: var(--space-7);
}

@media (min-width: 1024px) {
    .attorney__grid {
        grid-template-columns: 320px minmax(0, 1fr);
    }
}

.attorney__aside {
    display: flex;
    flex-direction: column;
    gap: var(--space-5);
}

.attorney__main {
    display: flex;
    flex-direction: column;
    gap: var(--space-7);
}

/* Photo --------------------------------------------------------------- */
.attorney__photo {
    overflow: hidden;
    border-radius: var(--radius-xl);
    background: var(--brand-100);
    box-shadow: var(--shadow-lg);
}

.attorney__photo img {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    object-position: top;
}

/* Contact card -------------------------------------------------------- */
.attorney__contact {
    padding: var(--space-6);
    border-radius: var(--radius-xl);
    background: var(--brand-600);
    color: #fff;
    box-shadow: var(--shadow-lg);
}

.attorney__contact-label {
    margin: 0;
    color: var(--brand-200);
    font-size: var(--text-caption);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .05em;
}

.attorney__contact-title {
    margin: var(--space-2) 0 0;
    color: #fff;
    font-family: var(--font-display);
    font-size: var(--text-h5);
    font-weight: 800;
    line-height: 1.25;
}

.attorney__phone {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    margin-top: var(--space-4);
    padding: var(--space-3) var(--space-5);
    border-radius: var(--radius-pill);
    background: #fff;
    box-shadow: var(--shadow-sm);
    color: var(--brand-700);
    font-size: var(--text-small);
    font-weight: 700;
    text-decoration: none;
    transition: background-color .15s ease;
}

.attorney__phone:hover {
    background: var(--brand-50);
}

.attorney__phone svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.attorney__match {
    display: block;
    width: 100%;
    margin-top: var(--space-3);
    padding: var(--space-3) var(--space-5);
    border: 0;
    border-radius: var(--radius-pill);
    background: var(--accent-400);
    box-shadow: var(--shadow-sm);
    color: var(--ink-900);
    font-family: inherit;
    font-size: var(--text-small);
    font-weight: 700;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: background-color .15s ease;
}

.attorney__match:hover {
    background: var(--accent-300);
}

/* Address ------------------------------------------------------------- */
.attorney__address {
    display: flex;
    align-items: flex-start;
    gap: var(--space-3);
    margin-top: var(--space-4);
    padding-top: var(--space-4);
    border-top: 1px solid rgba(255, 255, 255, .2);
    color: rgba(255, 255, 255, .95);
    font-size: var(--text-small);
    font-style: normal;
    line-height: 1.45;
}

.attorney__address-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    margin-top: 2px;
    color: var(--brand-200);
}

.attorney__address-icon svg {
    width: 18px;
    height: 18px;
}

.attorney__address-lines {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.attorney__address-line {
    display: block;
    word-break: break-word;
}

.attorney__address-street {
    font-weight: 600;
}

.attorney__address-suite {
    color: rgba(255, 255, 255, .85);
}

.attorney__address-csz {
    color: rgba(255, 255, 255, .85);
}


/* At a glance --------------------------------------------------------- */
.attorney__glance {
    padding: var(--space-5);
    border-radius: var(--radius-xl);
    background: var(--cloud);
    box-shadow: 0 0 0 1px var(--border);
}

.attorney__glance-label {
    margin: 0;
    color: var(--ink-400);
    font-family: var(--font-mono);
    font-size: var(--text-caption);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .05em;
}

.attorney__glance-list {
    display: grid;
    gap: var(--space-3);
    margin: var(--space-4) 0 0;
    padding: 0;
    list-style: none;
}

.attorney__glance-item {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    color: var(--ink-700);
    font-size: var(--text-small);
}

.attorney__glance-item svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    color: var(--brand-500);
}

.attorney__glance-item--check svg {
    color: var(--accent-500);
}

.attorney__glance-item--stacked {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-2);
}

.attorney__glance-row {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    color: var(--ink-800);
}

.attorney__glance-row svg {
    width: 16px;
    height: 16px;
    color: var(--brand-500);
    flex-shrink: 0;
}

.attorney__glance-heading {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.attorney__glance-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: var(--radius-pill);
    background: var(--brand-100);
    color: var(--brand-700);
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
}

.attorney__glance-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 4px;
}

.attorney__glance-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 10px;
    border-radius: var(--radius-pill);
    background: #fff;
    box-shadow: 0 0 0 1px var(--border);
    color: var(--ink-800);
    font-size: 12px;
    font-weight: 500;
    line-height: 1.35;
    text-decoration: none;
    transition: all .15s ease;
}

.attorney__glance-pill:hover {
    background: var(--brand-50);
    box-shadow: 0 0 0 1px var(--brand-300);
    color: var(--brand-700);
    text-decoration: none;
}

.attorney__glance-pill--primary {
    background: var(--brand-50);
    box-shadow: 0 0 0 1px var(--brand-200);
    color: var(--brand-700);
    font-weight: 600;
}

.attorney__glance-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--brand-500);
    flex-shrink: 0;
}

/* Headline ------------------------------------------------------------ */
.attorney__badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-2) var(--space-4);
    border-radius: var(--radius-pill);
    background: var(--brand-50);
    box-shadow: 0 0 0 1px var(--brand-100);
    color: var(--brand-600);
    font-size: var(--text-caption);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .05em;
    text-decoration: none;
}

.attorney__badge--primary {
    transition: all .15s ease;
}

.attorney__badge--primary:hover {
    background: var(--brand-100);
    box-shadow: 0 0 0 1px var(--brand-300);
    color: var(--brand-700);
    text-decoration: none;
}

.attorney__glance-link {
    color: inherit;
    text-decoration: none;
    transition: color .15s ease;
}

.attorney__glance-link:hover {
    color: var(--brand-600);
    text-decoration: none;
}

.attorney__badges {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--space-2);
}

.attorney__badge--secondary {
    background: #fff;
    box-shadow: 0 0 0 1px var(--border);
    color: var(--ink-700);
    font-weight: 600;
    text-transform: none;
    letter-spacing: 0;
    transition: all .15s ease;
}

.attorney__badge--secondary:hover {
    box-shadow: 0 0 0 1px var(--brand-300);
    color: var(--brand-700);
    background: var(--brand-50);
    text-decoration: none;
}

.attorney__badge--more {
    background: var(--cloud);
    box-shadow: 0 0 0 1px var(--border);
    color: var(--ink-600);
    font-weight: 600;
    text-transform: none;
    letter-spacing: 0;
    cursor: pointer;
    transition: all .15s ease;
}

.attorney__badge--more:hover {
    background: #fff;
    color: var(--brand-600);
    box-shadow: 0 0 0 1px var(--brand-300);
    text-decoration: none;
}

.attorney__badge svg {
    width: 14px;
    height: 14px;
    color: var(--accent-500);
}

.attorney__name {
    margin: var(--space-4) 0 0;
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -.025em;
    color: var(--ink-900);
}

@media (min-width: 640px) {
    .attorney__name {
        font-size: var(--text-h1);
    }
}

.attorney__firm {
    margin: var(--space-2) 0 0;
    color: var(--ink-500);
    font-size: var(--text-lead);
    font-weight: 600;
}

.attorney__rating {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: var(--space-3);
    color: var(--ink-700);
    font-size: var(--text-small);
    font-weight: 600;
}

.attorney__rating svg {
    width: 16px;
    height: 16px;
    color: var(--accent-500);
}

.attorney__rating-score {
    margin-left: var(--space-1);
}

.attorney__rating-count {
    color: var(--ink-400);
    font-weight: 400;
}

/* About --------------------------------------------------------------- */
.attorney__section-title {
    margin: 0;
    font-family: var(--font-display);
    font-size: var(--text-h5);
    font-weight: 800;
    color: var(--ink-900);
}

.attorney__prose {
    margin: var(--space-3) 0 0;
    color: var(--ink-600);
    font-size: var(--text-base);
    line-height: 1.625;
}

.attorney__prose p {
    margin: 0 0 var(--space-3);
    color: inherit;
}

.attorney__prose p:last-child {
    margin-bottom: 0;
}

/* Trust cards --------------------------------------------------------- */
.attorney__features {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--space-4);
}

@media (min-width: 640px) {
    .attorney__features {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

.attorney__feature {
    padding: var(--space-4);
    border-radius: var(--radius-lg);
    background: var(--cloud);
    box-shadow: 0 0 0 1px var(--border);
}

.attorney__feature svg {
    width: 24px;
    height: 24px;
    color: var(--brand-600);
}

.attorney__feature-title {
    margin: var(--space-2) 0 0;
    color: var(--ink-900);
    font-size: var(--text-small);
    font-weight: 700;
}

.attorney__feature-text {
    margin: 0;
    color: var(--ink-500);
    font-size: var(--text-caption);
}

/* Practice area callout ----------------------------------------------- */
.attorney__callout {
    padding: var(--space-6);
    border-radius: var(--radius-xl);
    background: linear-gradient(180deg, #f0f7ff 0%, #e8f2fc 100%);
    box-shadow: 0 0 0 1px var(--brand-100), 0 4px 12px rgba(15, 82, 186, .04);
}

.attorney__callout-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: var(--space-2);
}

.attorney__callout-label {
    margin: 0;
    color: var(--brand-700);
    font-family: var(--font-mono);
    font-size: var(--text-caption);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .05em;
}

.attorney__callout-sublabel {
    font-size: var(--text-caption);
    font-weight: 600;
    color: var(--ink-500);
}

.attorney__callout-text {
    margin: var(--space-2) 0 0;
    color: var(--ink-700);
    font-size: var(--text-base);
    line-height: 1.55;
    max-width: 65ch;
}

.attorney__callout-link {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    margin-top: var(--space-4);
    padding: 9px 18px;
    border-radius: var(--radius-pill);
    background: var(--brand-600);
    color: #fff;
    font-size: var(--text-small);
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 2px 4px rgba(15, 82, 186, .15);
    transition: background-color .15s ease, transform .15s ease, box-shadow .15s ease;
}

.attorney__callout-link svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.attorney__callout-link:hover {
    background: var(--brand-700);
    color: #fff;
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(15, 82, 186, .22);
}

.attorney__callout-pills-wrap {
    margin-top: var(--space-5);
    padding-top: var(--space-4);
    border-top: 1px solid rgba(15, 82, 186, .12);
}

.attorney__callout-pills-label {
    margin: 0 0 var(--space-3);
    color: var(--ink-600);
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
}

.attorney__callout-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.attorney__callout-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: var(--radius-pill);
    background: #fff;
    box-shadow: 0 0 0 1px rgba(15, 82, 186, .16), 0 1px 2px rgba(0,0,0,.03);
    color: var(--ink-800);
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: all .15s ease;
}

.attorney__callout-pill svg {
    width: 13px;
    height: 13px;
    color: var(--brand-500);
    transition: transform .15s ease;
}

.attorney__callout-pill:hover {
    background: #fff;
    box-shadow: 0 0 0 1.5px var(--brand-500), 0 3px 6px rgba(15, 82, 186, .1);
    color: var(--brand-700);
    text-decoration: none;
    transform: translateY(-1px);
}

.attorney__callout-pill:hover svg {
    transform: translateX(2px);
}

/* Search section ------------------------------------------------------ */
.attorney-search {
    background: var(--cloud);
    font-family: var(--font-body);
}

.attorney-search__inner {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: var(--space-8) var(--gutter);
}

.attorney-search__title {
    margin: 0;
    font-family: var(--font-display);
    font-size: var(--text-h4);
    font-weight: 800;
    color: var(--ink-900);
}

.attorney-search__text {
    margin: var(--space-3) 0 0;
    color: var(--ink-500);
    font-size: var(--text-base);
}


/*
 * The search bar itself is the shared component from css/attorney-search.css,
 * so its rules used to be duplicated here under the same class names. They
 * are gone: only this section wrapper belongs to the profile.
 */
.attorney-search__form {
    margin-top: var(--space-5);
}
