/* ================================================
   PROVERITAS — Shared Design System
   Used by: index_try_3.html, thefirm/about2.html, …
================================================ */

/* ================================================
   DESIGN TOKENS
================================================ */
:root {
    --blue: #3D79D4;
    --blue-dark: #2b5ea8;
    --gray: #333333;
    --gray-mid: #666666;
    --gray-pale: #f2f2f2;
    --bg: #f2f2f2;
    --white: #ffffff;
    --serif: 'Amiri', Georgia, 'Times New Roman', serif;
    --sans: 'Carlito', 'Calibri', Arial, sans-serif;
    --shadow-sm: 0 1px 4px rgba(0, 0, 0, .08);
    --shadow-md: 0 2px 12px rgba(0, 0, 0, .1);
    --shadow-lg: 0 4px 24px rgba(0, 0, 0, .1);
    --radius: 8px;
}

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

html {
    -webkit-font-smoothing: antialiased;
}

body {
    font-family: var(--sans);
    color: var(--gray);
    background: var(--bg);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
}

img {
    display: block;
    max-width: 100%;
}

a {
    text-decoration: none;
    color: inherit;
}

/* ================================================
   MAIN WRAPPER — centered container, same bg as body
================================================ */
.page-wrap {
    width: 100%;
    max-width: 820px;
    padding: 0 1rem;
}

/* ================================================
   CARD STYLE — reusable bordered box
================================================ */
.card {
    background: var(--white);
    border: 1px solid var(--gray-mid);
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
}

/* ================================================
   HEADER BANNER (homepage / large)
================================================ */
.header-banner {
    margin-top: 1.25rem;
    overflow: hidden;
}

.header-banner img {
    width: 100%;
    height: auto;
    display: block;
}

/* ================================================
   INNER HEADER BANNER (sub-pages, shorter)
================================================ */
.inner-header-banner {
    margin-top: 1.25rem;
    overflow: hidden;
}

.inner-header-banner img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    max-height: 130px;
}

/* ================================================
   NAVIGATION — bordered card, right-aligned
================================================ */
.site-nav {
    margin-top: .75rem;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: .6rem 1rem;
    gap: .15rem;
    flex-wrap: wrap;
}

.site-nav a {
    font-family: var(--sans);
    font-size: .8rem;
    font-weight: 400;
    color: var(--gray-mid);
    letter-spacing: .04em;
    padding: .4rem .75rem;
    border-radius: 3px;
    border: 1px solid transparent;
    transition: none;
    -webkit-tap-highlight-color: rgba(61, 121, 212, .15);
    user-select: none;
}

/* Active link */
.site-nav a.active {
    color: var(--blue);
    font-weight: 700;
    border-color: var(--blue);
    background: rgba(61, 121, 212, .06);
}

/* Pressed / tap feedback */
.site-nav a.pressed {
    color: var(--blue);
    background: rgba(61, 121, 212, .12);
    border-color: rgba(61, 121, 212, .3);
}

/* ================================================
   HOMEPAGE CONTENT — two columns: logo left / text right
================================================ */
.content-area {
    padding: 2rem .5rem 2.5rem;
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 1.75rem;
    align-items: start;
}

/* Left: logo */
.logo-col {
    padding-top: .75rem;
}

.logo-col img {
    width: 17rem;
    height: auto;
}

/* Right: tagline + text */
.text-col {
    display: flex;
    flex-direction: column;
    gap: .35rem;
}

.tagline-row {
    display: flex;
    justify-content: flex-end;
    padding-bottom: .25rem;
}

.tagline-text {
    font-family: var(--serif);
    font-style: italic;
    font-weight: 700;
    font-size: 1rem;
    color: var(--blue);
    letter-spacing: .02em;
}

.intro-text {
    font-family: var(--sans);
    font-size: .82rem;
    color: var(--gray);
    line-height: 1.85;
    text-align: justify;
    text-indent: 1.5em;
    padding-top: .25rem;
}

/* ================================================
   INNER PAGE LAYOUT — breadcrumb + two-col body
================================================ */
.page-header {
    grid-column: 1 / -1;
    padding: 1.25rem 1.5rem .75rem;
    border-bottom: 1px solid var(--gray-pale);
}

.breadcrumb {
    font-family: var(--sans);
    font-size: .7rem;
    color: var(--gray-mid);
    letter-spacing: .08em;
    text-transform: uppercase;
    margin-bottom: .35rem;
}

.page-title {
    font-family: var(--serif);
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--gray);
}

/* Inner body: page-header spans full width, then sidebar + content */
.inner-body {
    display: grid;
    grid-template-columns: 180px 1fr;
    gap: 0;
    margin-top: .75rem;
    margin-bottom: 1.5rem;
}

/* Full-width content card — for pages without a sidebar (Careers, Contact) */
.content-card {
    margin-top: .75rem;
    margin-bottom: 1.5rem;
}

/* Sidebar */
.sidebar {
    padding: 1rem .75rem 1.5rem;
    border-right: 1px solid var(--gray-pale);
}

.subnav {
    display: flex;
    flex-direction: column;
    gap: .15rem;
}

.subnav a {
    font-family: var(--sans);
    font-size: .78rem;
    color: var(--gray-mid);
    padding: .4rem .6rem;
    border-radius: 4px;
    border: 1px solid transparent;
    -webkit-tap-highlight-color: rgba(61, 121, 212, .15);
    user-select: none;
}

.subnav a.active {
    color: var(--blue);
    font-weight: 700;
    border-color: var(--blue);
    background: rgba(61, 121, 212, .06);
}

.subnav a.pressed {
    color: var(--blue);
    background: rgba(61, 121, 212, .12);
    border-color: rgba(61, 121, 212, .3);
}

/* Sidebar ILF badge */
.sidebar-badge {
    margin-top: 1.5rem;
    display: flex;
    justify-content: center;
}

.sidebar-badge img {
    width: 140px;
    height: auto;
}

/* Main content area */
.main-content {
    padding: 1.25rem 1.5rem 2rem;
}

.main-content p {
    font-family: var(--sans);
    font-size: .88rem;
    color: var(--gray);
    line-height: 1.9;
    text-align: justify;
    text-indent: 1.5em;
    margin-bottom: .9rem;
}

.main-content p:last-child {
    margin-bottom: 0;
}

/* ================================================
   TEAM PROFILE LAYOUT
================================================ */
.profile-header {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 2rem;
    align-items: start;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--gray-pale);
}

.team-photo img {
    width: 156px;
    height: auto;
    border-radius: 4px;
    border: 1px solid var(--gray-mid);
    box-shadow: var(--shadow-sm);
}

.profile-info {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.profile-name {
    font-family: var(--serif);
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--blue);
    line-height: 1.2;
}

.profile-title {
    font-family: var(--sans);
    font-size: 1rem;
    font-weight: 700;
    color: var(--gray-mid);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
}

.profile-contact {
    font-size: 0.82rem;
    color: var(--gray-mid);
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.profile-contact a {
    color: var(--blue);
}

.profile-contact a:hover {
    text-decoration: underline;
}

/* Sidebar team list headings */
.subnav-heading {
    font-family: var(--sans);
    font-size: 0.65rem;
    font-weight: 700;
    color: var(--gray-mid);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin: 1.25rem 0.6rem 0.4rem;
    border-bottom: 1px solid var(--gray-pale);
    padding-bottom: 0.2rem;
    transition: color .18s ease, border-color .18s ease, box-shadow .18s ease, background .18s ease, padding-left .18s ease;
}

.subnav-heading:first-child {
    margin-top: 0.4rem;
}

.subnav-heading.active-section {
    color: var(--blue);
    border-bottom-color: rgba(61, 121, 212, .35);
    box-shadow: inset 2px 0 0 var(--blue);
    background: linear-gradient(90deg, rgba(61, 121, 212, .10), rgba(61, 121, 212, 0));
    padding-left: 0.45rem;
}

@supports selector(.subnav-heading:has(+ a.active)) {
    .subnav > .subnav-heading:has(+ a.active),
    .subnav > .subnav-heading:has(+ a + a.active),
    .subnav > .subnav-heading:has(+ a + a + a.active),
    .subnav > .subnav-heading:has(+ a + a + a + a.active) {
        color: var(--blue);
        border-bottom-color: rgba(61, 121, 212, .35);
        box-shadow: inset 2px 0 0 var(--blue);
        background: linear-gradient(90deg, rgba(61, 121, 212, .10), rgba(61, 121, 212, 0));
        padding-left: 0.45rem;
    }
}

.practices-tabs-page .subnav[role="tablist"] {
    gap: 0;
}

.practices-tabs-page .subnav[role="tablist"] a[role="tab"] {
    position: relative;
    margin: 0 -0.75rem 0 0;
    padding: 0.55rem 1rem 0.55rem 0.7rem;
    border-radius: 6px 0 0 6px;
    border-color: #d7d7d7;
    background: linear-gradient(180deg, rgba(242, 242, 242, 0.95), rgba(242, 242, 242, 0.55));
}

.practices-tabs-page .subnav[role="tablist"] a[role="tab"].active {
    color: var(--blue-dark);
    font-weight: 700;
    background: var(--white);
    border-color: var(--gray-mid);
    border-right-color: var(--white);
    box-shadow: inset 4px 0 0 var(--blue), 0 2px 8px rgba(0, 0, 0, 0.04);
}

.practices-tabs-page .subnav[role="tablist"] a[role="tab"].pressed {
    background: linear-gradient(180deg, rgba(61, 121, 212, 0.12), rgba(61, 121, 212, 0.05));
    border-color: rgba(61, 121, 212, 0.35);
}

.practice-panel-title {
    font-family: var(--serif);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--blue);
    line-height: 1.25;
    text-indent: 0;
    margin-bottom: 0.5rem;
}

.practice-content-divider {
    margin: 1rem 0 1.1rem;
}

.practice-tab-output {
    min-height: 8rem;
}


/* ================================================
   CONTACT PAGE
================================================ */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: start;
}

.contact-topbar {
    margin-top: .75rem;
    padding: 1rem 1.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.25rem;
}

.contact-logo {
    display: inline-flex;
    align-items: center;
    flex: 0 1 14rem;
    min-width: 0;
}

.contact-logo img {
    width: 14rem;
    max-width: 14rem;
    height: auto;
}

.contact-topbar .site-nav {
    margin-top: 0;
    padding: 0;
    border: none;
    box-shadow: none;
    background: transparent;
    flex: 1 1 auto;
}

.contact-block p {
    text-indent: 0;
    margin-bottom: .5rem;
    font-size: .88rem;
    line-height: 1.8;
}

.contact-block p:last-child {
    margin-bottom: 0;
}

.contact-block a {
    color: var(--blue);
}

.contact-block strong {
    color: var(--gray);
}

.contact-map {
    border-radius: 4px;
    overflow: hidden;
    border: 1px solid var(--gray-pale);
}

.contact-map iframe {
    display: block;
    width: 100%;
    height: 220px;
    border: none;
}

/* ================================================
   FOOTER — bordered card
================================================ */
.site-footer {
    margin-top: .5rem;
    margin-bottom: 1.25rem;
    padding: .75rem 1.25rem 1rem;
}

/* Footer links — centered */
.footer-links {
    text-align: center;
    padding: .5rem 0;
    font-size: .78rem;
    color: var(--gray-mid);
}

.footer-links a {
    color: var(--gray-mid);
    padding: .25rem .15rem;
    -webkit-tap-highlight-color: rgba(61, 121, 212, .15);
}

.footer-links a.pressed {
    color: var(--blue);
}

.footer-links .sep {
    color: var(--gray-mid);
    margin: 0 .35rem;
    user-select: none;
}

/* Bottom row: copyright left, ILF right */
.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: .65rem;
    gap: 1rem;
    flex-wrap: wrap;
}

.copyright {
    font-family: var(--sans);
    font-size: .68rem;
    color: var(--gray-mid);
    line-height: 1.5;
}

.ilf-badge a {
    display: inline-block;
    -webkit-tap-highlight-color: rgba(61, 121, 212, .15);
}

.ilf-badge img {
    width: 138px;
    height: 37px;
}

/* ================================================
   RESPONSIVE
================================================ */
@media (max-width: 768px) {
    .page-wrap {
        padding: 0 .65rem;
    }

    .site-nav {
        justify-content: center;
        padding: .5rem .6rem;
    }

    .site-nav a {
        font-size: .72rem;
        padding: .45rem;
    }

    /* Homepage columns → single column */
    .content-area {
        grid-template-columns: 1fr;
        padding: 1.5rem .75rem 2rem;
        gap: 1.25rem;
    }

    .logo-col {
        padding-top: 0;
        text-align: center;
    }

    .logo-col img {
        width: 180px;
        margin: 0 auto;
    }

    .tagline-row {
        justify-content: center;
    }

    .intro-text {
        text-align: left;
        font-size: .88rem;
    }

    /* Inner page → single column layout */
    .inner-body {
        display: flex;
        flex-direction: column;
    }

    /* Content-first: sidebar drops below main content on mobile */
    .page-header { order: 1; }
    .main-content { order: 2; }
    .sidebar {
        order: 3;
        border-right: none;
        border-top: 1px solid var(--gray-pale);
        border-bottom: none;
        padding: 1rem;
    }

    .subnav {
        display: flex;
        flex-direction: column;
        gap: .15rem;
    }

    .sidebar-badge {
        display: none;
    }

    .subnav-heading {
        margin: .75rem .6rem .25rem;
    }

    .subnav-heading:first-child {
        margin-top: .25rem;
    }

    .practices-tabs-page .sidebar {
        order: 2;
        border-top: none;
        border-bottom: 1px solid var(--gray-pale);
        padding: 0.85rem 1rem 0.9rem;
    }

    .practices-tabs-page .main-content {
        order: 3;
        padding-top: 0.85rem;
    }

    .practices-tabs-page .subnav[role="tablist"] {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 0.45rem;
    }

    .practices-tabs-page .subnav[role="tablist"] a[role="tab"] {
        margin: 0;
        padding: 0.5rem 0.8rem;
        border-radius: 999px;
        border-color: rgba(0, 0, 0, 0.08);
        background: var(--white);
        box-shadow: none;
    }

    .practices-tabs-page .subnav[role="tablist"] a[role="tab"].active {
        color: var(--blue-dark);
        border-color: rgba(61, 121, 212, 0.45);
        background: rgba(61, 121, 212, 0.10);
        box-shadow: inset 0 -2px 0 var(--blue);
    }

    .practices-tabs-page .subnav[role="tablist"] a[role="tab"].pressed {
        background: rgba(61, 121, 212, 0.16);
        border-color: rgba(61, 121, 212, 0.35);
    }

    .practices-tabs-page .practice-content-divider {
        margin-top: 0.85rem;
        margin-bottom: 0.95rem;
    }

    .practices-tabs-page .practice-panel-title {
        font-size: 1.05rem;
    }

    .contact-topbar {
        padding: 1rem;
        flex-direction: column;
        align-items: stretch;
    }

    .contact-logo {
        justify-content: center;
        flex-basis: auto;
    }

    .contact-logo img {
        max-width: 360px;
    }

    .contact-topbar .site-nav {
        justify-content: center;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    /* Team profile: stack photo above info */
    .profile-header {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 1.25rem;
    }

    .team-photo img {
        width: 120px;
        margin: 0 auto;
    }

    .profile-info {
        align-items: center;
    }

    .page-header {
        padding: 1rem;
    }

    .main-content {
        padding: 1rem;
    }

    .footer-bottom {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: .75rem;
    }
}

@media (max-width: 400px) {
    .site-nav a {
        font-size: .72rem;
        padding: .3rem .4rem;
    }

    .logo-col img {
        width: 160px;
    }
}

/* ================================================
   ENTRANCE ANIMATION
================================================ */
@keyframes fadeSlideIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.header-banner       { animation: fadeSlideIn .45s ease both; }
.inner-header-banner { animation: fadeSlideIn .45s ease both; }
.site-nav            { animation: fadeSlideIn .45s ease .08s both; }
.content-area        { animation: fadeSlideIn .45s ease .16s both; }
.inner-body          { animation: fadeSlideIn .45s ease .16s both; }
.content-card        { animation: fadeSlideIn .45s ease .16s both; }
.site-footer         { animation: fadeSlideIn .45s ease .24s both; }
