/* =====================================================
   LEGAL DESK BD - HOME SECTIONS  (v1.0)
   -----------------------------------------------------
   Loaded after redesign.css. Only touches:
     1. Hero background image + effects
     2. About section (split layout)
     3. Partners / affiliations marquee
     4. Mobile navigation (hamburger, drawer, sub-menus)
   Nothing else in the theme is changed.
===================================================== */

:root {
    --cream: #f5f2ea;
    --cream-line: #e6dfcf;
}


/* =====================================================
   1. HERO  -  photo background + effects
===================================================== */

.hero {
    isolation: isolate;
    background: var(--primary-dark);   /* replaces the old gradient stack */
}

/* the photograph (statue of justice) */
.hero-bg {
    position: absolute;
    inset: 0;
    z-index: -3;
    background: url("../images/hero.avif") 72% center / cover no-repeat;
    filter: grayscale(0.35) contrast(1.05) brightness(0.9);
    transform-origin: 72% 40%;
    animation: heroZoom 28s ease-in-out infinite alternate;
    will-change: transform;
}

/* navy wash: solid behind the text, lets the statue show on the right */
.hero-overlay {
    position: absolute;
    inset: 0;
    z-index: -2;
    background:
        linear-gradient(90deg,
            rgba(6, 22, 41, 0.97) 0%,
            rgba(6, 22, 41, 0.90) 34%,
            rgba(8, 28, 52, 0.68) 62%,
            rgba(8, 28, 52, 0.52) 100%),
        linear-gradient(180deg,
            rgba(6, 22, 41, 0.55) 0%,
            rgba(6, 22, 41, 0) 28%,
            rgba(6, 22, 41, 0) 70%,
            rgba(6, 22, 41, 0.85) 100%);
}

/* slow gold light sweeping over the statue */
.hero-overlay::after {
    content: "";
    position: absolute;
    inset: -20% -10%;
    background:
        radial-gradient(420px 320px at 78% 38%, rgba(227, 189, 95, 0.20), transparent 70%);
    mix-blend-mode: screen;
    animation: heroGlow 9s ease-in-out infinite alternate;
}

/* the two decorative rings from style.css stay, but sit on the photo */
.hero::before,
.hero::after {
    z-index: -1;
    animation: heroRing 22s linear infinite;
}

.hero::after {
    animation-direction: reverse;
}

/* floating gold dust */
.hero-dust {
    position: absolute;
    inset: 0;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

.hero-dust i {
    position: absolute;
    bottom: -12px;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--accent-light);
    opacity: 0;
    box-shadow: 0 0 10px 2px rgba(227, 189, 95, 0.55);
    animation: heroDust 14s linear infinite;
}

.hero-dust i:nth-child(1) { left: 8%;  animation-delay: 0s;   animation-duration: 15s; }
.hero-dust i:nth-child(2) { left: 22%; animation-delay: 3s;   animation-duration: 18s; width: 3px; height: 3px; }
.hero-dust i:nth-child(3) { left: 38%; animation-delay: 6s;   animation-duration: 13s; }
.hero-dust i:nth-child(4) { left: 55%; animation-delay: 1.5s; animation-duration: 17s; width: 5px; height: 5px; }
.hero-dust i:nth-child(5) { left: 68%; animation-delay: 8s;   animation-duration: 16s; width: 3px; height: 3px; }
.hero-dust i:nth-child(6) { left: 79%; animation-delay: 4.5s; animation-duration: 19s; }
.hero-dust i:nth-child(7) { left: 90%; animation-delay: 10s;  animation-duration: 14s; width: 3px; height: 3px; }
.hero-dust i:nth-child(8) { left: 47%; animation-delay: 12s;  animation-duration: 20s; }

@keyframes heroZoom {
    from { transform: scale(1)    translate3d(0, 0, 0); }
    to   { transform: scale(1.12) translate3d(-1.5%, -1%, 0); }
}

@keyframes heroGlow {
    from { opacity: 0.45; transform: translate3d(-3%, 2%, 0); }
    to   { opacity: 1;    transform: translate3d(3%, -2%, 0); }
}

@keyframes heroRing {
    to { transform: rotate(360deg); }
}

@keyframes heroDust {
    0%   { transform: translate3d(0, 0, 0);       opacity: 0; }
    10%  { opacity: 0.9; }
    85%  { opacity: 0.6; }
    100% { transform: translate3d(24px, -92vh, 0); opacity: 0; }
}

@media (max-width: 991px) {
    .hero-bg {
        background-position: 68% center;
    }

    /* text sits over the whole photo on tablets/phones: darken it evenly */
    .hero-overlay {
        background:
            linear-gradient(180deg,
                rgba(6, 22, 41, 0.86) 0%,
                rgba(6, 22, 41, 0.80) 55%,
                rgba(6, 22, 41, 0.95) 100%);
    }
}

@media (prefers-reduced-motion: reduce) {
    .hero-bg,
    .hero-overlay::after,
    .hero::before,
    .hero::after,
    .hero-dust i {
        animation: none !important;
    }
    .hero-dust { display: none; }
}


/* =====================================================
   2. ABOUT  -  split layout
===================================================== */

.about-section {
    background: var(--cream);
    padding: 100px 0;
}

.about-split {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
    gap: 64px;
    align-items: center;
}

.about-copy {
    max-width: 560px;
}

.about-copy h2 {
    margin-bottom: 26px;
    font-family: var(--font-heading);
    font-size: clamp(36px, 4.4vw, 56px);
    font-weight: 600;
    line-height: 1.1;
    color: var(--primary-dark);
}

.about-copy h2 span {
    display: block;
    color: var(--accent-dark);
    font-style: italic;
    font-weight: 500;
}

.about-copy .lead {
    margin-bottom: 16px;
    font-family: var(--font-heading);
    font-size: 21px;
    line-height: 1.55;
    color: var(--primary);
}

.about-copy p:not(.lead) {
    margin-bottom: 26px;
    font-size: 16.5px;
    line-height: 1.8;
    color: var(--text-light);
}

.about-readmore {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 34px;
    padding-bottom: 4px;
    border-bottom: 1px solid var(--accent);
    font-size: 12.5px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--accent-dark);
    text-decoration: none;
    transition: gap 0.25s ease, color 0.25s ease;
}

.about-readmore:hover {
    gap: 14px;
    color: var(--primary-dark);
}

.about-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.about-chip {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 46px;
    padding: 0 18px 0 10px;
    border: 1px solid var(--cream-line);
    background: #fff;
    color: var(--primary-dark);
    font-size: 13.5px;
    font-weight: 600;
    text-decoration: none;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.about-chip .bi {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 3px;
    background: var(--accent);
    color: #fff;
    font-size: 13px;
}

.about-chip:hover {
    transform: translateY(-2px);
    border-color: var(--accent);
    box-shadow: 0 10px 24px rgba(11, 37, 69, 0.10);
}

.about-chip-dark {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    color: #fff;
}

/* ---- media column ---- */
.about-media {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}

.about-video {
    position: relative;
    aspect-ratio: 16 / 9;
    background: #000;
    overflow: hidden;
}

.about-video iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.about-slider {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: var(--primary);
}

.about-media.no-video .about-slider {
    aspect-ratio: 4 / 3.4;
}

.about-slides,
.about-slide {
    position: absolute;
    inset: 0;
}

.about-slide {
    opacity: 0;
    transition: opacity 0.9s ease;
}

.about-slide.is-active {
    opacity: 1;
}

.about-slide-img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.about-slide-fallback {
    object-position: 70% center;
}

.about-dots {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 14px;
    z-index: 2;
    display: flex;
    justify-content: center;
    gap: 8px;
}

.about-dot {
    width: 9px;
    height: 9px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.55);
    cursor: pointer;
    transition: background 0.25s ease, transform 0.25s ease;
}

.about-dot.is-active {
    background: var(--accent);
    transform: scale(1.25);
}

@media (max-width: 991px) {
    .about-section {
        padding: 70px 0;
    }

    .about-split {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .about-copy {
        max-width: none;
    }
}

@media (max-width: 520px) {
    .about-chip {
        flex: 1 1 calc(50% - 10px);
    }

    .about-chip-dark {
        flex-basis: 100%;
    }
}


/* =====================================================
   3. PARTNERS / AFFILIATIONS
===================================================== */

.clients-section {
    padding: 64px 0 70px;
    background: var(--cream);
    border-top: 1px solid var(--cream-line);
    overflow: hidden;
}

.clients-title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin: 0 0 40px;
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 700;
    line-height: 1.4;
    letter-spacing: 0.28em;
    text-align: center;
    text-transform: uppercase;
    color: var(--accent-dark);
}

.clients-title .bi {
    font-size: 15px;
}

.clients-marquee {
    position: relative;
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 8%, #000 92%, transparent 100%);
            mask-image: linear-gradient(90deg, transparent 0, #000 8%, #000 92%, transparent 100%);
}

.clients-track {
    display: flex;
    width: max-content;
    animation: clientsScroll 45s linear infinite;
}

.clients-marquee:hover .clients-track {
    animation-play-state: paused;
}

.clients-list {
    display: flex;
    flex-shrink: 0;
    align-items: center;
    gap: 64px;
    margin: 0;
    padding: 0 32px;
    list-style: none;
}

.clients-list li {
    display: flex;
    align-items: center;
    margin: 0;
}

.clients-list a {
    display: flex;
}

.clients-list img {
    display: block;
    width: auto;
    height: 76px;
    max-width: 210px;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.clients-list a:hover img {
    transform: scale(1.06);
}

.clients-empty {
    max-width: 640px;
    margin: 0 auto;
    padding: 18px 20px;
    border: 1px dashed var(--accent);
    background: #fff;
    font-size: 14px;
    text-align: center;
    color: var(--text-light);
}

@keyframes clientsScroll {
    to { transform: translateX(-50%); }
}

@media (max-width: 700px) {
    .clients-section {
        padding: 48px 0 52px;
    }

    .clients-title {
        font-size: 11.5px;
        letter-spacing: 0.2em;
        padding: 0 16px;
    }

    .clients-list {
        gap: 44px;
    }

    .clients-list img {
        height: 58px;
        max-width: 160px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .clients-marquee {
        -webkit-mask-image: none;
                mask-image: none;
        overflow-x: auto;
    }
    .clients-track {
        animation: none;
    }
    .clients-list[aria-hidden="true"] {
        display: none;
    }
}


/* =====================================================
   4. MOBILE NAVIGATION  (tablet + phone)
===================================================== */

/* sub-menu toggle button is created by main.js; never shown on desktop */
.submenu-toggle {
    display: none;
}

@media (max-width: 991px) {

    /* ---------- hamburger ---------- */
    .site-header .menu-toggle {
        position: relative;
        display: inline-flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 5px;
        width: 44px;
        height: 44px;
        flex: 0 0 44px;
        margin-left: auto;
        padding: 0;
        border: 1px solid rgba(198, 154, 58, 0.55);
        border-radius: var(--radius);
        background: rgba(255, 255, 255, 0.04);
        transition: background-color 0.25s ease, border-color 0.25s ease;
    }

    .site-header .menu-toggle span {
        display: block;
        width: 20px;
        height: 2px;
        margin: 0;
        border-radius: 2px;
        background: #fff;
        transition: width 0.25s ease, background-color 0.25s ease;
    }

    .site-header .menu-toggle span:nth-child(2) {
        width: 14px;
        align-self: flex-end;
        margin-right: 12px;
        background: var(--accent-light);
    }

    .site-header .menu-toggle:hover,
    .site-header .menu-toggle:focus-visible {
        background: rgba(198, 154, 58, 0.16);
        border-color: var(--accent);
    }

    .site-header .menu-toggle:hover span:nth-child(2) {
        width: 20px;
        margin-right: 0;
    }

    /* ---------- close button (icon centred, 44px tap target) ---------- */
    .site-header .mobile-close {
        top: 16px;
        right: 16px;
        width: 44px;
        height: 44px;
        border: 1px solid rgba(198, 154, 58, 0.55);
        border-radius: var(--radius);
        background: rgba(255, 255, 255, 0.04);
        color: var(--accent-light);
        font-size: 18px;
        line-height: 1;
    }

    .site-header .mobile-close .bi {
        display: block;
        font-size: 18px;
        line-height: 1;
        vertical-align: 0;
    }

    /* ---------- drawer + dimmed page ---------- */
    .site-header .main-navigation {
        padding-top: 84px;
    }

    body.menu-open {
        overflow: hidden;
    }

    body.menu-open::after {
        content: "";
        position: fixed;
        inset: 0;
        z-index: 999;
        background: rgba(6, 22, 41, 0.62);
        -webkit-backdrop-filter: blur(2px);
                backdrop-filter: blur(2px);
    }

    /* ---------- menu rows ---------- */
    .site-header .main-navigation .primary-menu > li {
        position: relative;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    }

    .site-header .main-navigation .primary-menu > li > a {
        padding: 14px 0;
        font-size: 16px;
        font-weight: 500;
    }

    /* The desktop chevron (::before from redesign.css) was landing
       to the LEFT of the label. Remove it here; a real, tappable
       chevron button is added on the right by main.js. */
    .site-header .main-navigation .primary-menu > li.menu-item-has-children > a::before,
    .site-header .main-navigation .primary-menu > li.menu-item-has-children > a::after {
        content: none !important;
        display: none !important;
    }

    .site-header .main-navigation .primary-menu > li.menu-item-has-children > a {
        padding-right: 52px;
    }

    .submenu-toggle {
        position: absolute;
        top: 6px;
        right: 0;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 44px;
        height: 44px;
        padding: 0;
        border: 0;
        border-radius: var(--radius);
        background: transparent;
        color: var(--accent-light);
        font-size: 15px;
        cursor: pointer;
    }

    .submenu-toggle .bi {
        display: block;
        line-height: 1;
        vertical-align: 0;
        transition: transform 0.3s ease;
    }

    .submenu-toggle:hover,
    .submenu-toggle:focus-visible {
        background: rgba(198, 154, 58, 0.14);
    }

    .primary-menu > li.submenu-open > .submenu-toggle .bi {
        transform: rotate(180deg);
    }

    .site-header .main-navigation .primary-menu > li.submenu-open > a {
        color: var(--accent-light);
    }

    /* ---------- sub-menus become an accordion ---------- */
    .site-header .main-navigation .primary-menu .sub-menu {
        position: static;
        display: none;
        min-width: 0;
        margin: 0 0 12px;
        padding: 2px 0 2px 14px;
        border: 0;
        border-left: 2px solid var(--accent);
        border-radius: 0;
        background: transparent;
        box-shadow: none;
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transform: none;
    }

    .site-header .main-navigation .primary-menu > li.submenu-open > .sub-menu {
        display: block;
    }

    .site-header .main-navigation .primary-menu .sub-menu a {
        padding: 10px 0;
        color: rgba(255, 255, 255, 0.82);
        font-size: 14.5px;
        white-space: normal;
    }

    .site-header .main-navigation .primary-menu .sub-menu a:hover,
    .site-header .main-navigation .primary-menu .sub-menu a:focus {
        padding-left: 6px;
        color: var(--accent-light);
    }

    /* ---------- drawer buttons: icon + label aligned ---------- */
    .site-header .main-navigation .mobile-header-buttons {
        margin-top: auto;
        padding-top: 28px;
    }

    .site-header .main-navigation .mobile-header-buttons .header-action-btn {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 10px;
        background: linear-gradient(135deg, var(--accent-light) 0%, var(--accent) 100%);
        border-color: var(--accent);
        color: var(--primary-dark);
    }

    .site-header .main-navigation .mobile-header-buttons .header-action-btn .bi {
        font-size: 17px;
        line-height: 1;
        vertical-align: 0;
    }
}
/* =====================================================
   5. FOOTER - mobile layout
   About on top, Firm + Practice side by side,
   Contact full width at the bottom
===================================================== */
@media (max-width: 700px) {

    .footer-main {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 32px 20px;
    }

    /* About + Contact use the full row */
    .footer-main > .footer-about,
    .footer-main > .footer-column:last-child {
        grid-column: 1 / -1;
    }

    /* Contact: let text use the full width and stop breaking it */
    .footer-main > .footer-column:last-child a,
    .footer-main > .footer-column:last-child .footer-address,
    .footer-main > .footer-column:last-child .footer-address span {
        overflow-wrap: normal;
        word-break: normal;
        font-size: 14px;
    }

    .footer-main > .footer-column:last-child a {
        white-space: nowrap;      /* phone + email stay on one line */
        align-items: center;
    }

    .footer-main > .footer-column:last-child .footer-address {
        align-items: flex-start;  /* address wraps only at spaces/commas */
    }

    /* Firm / Practice links: wrap at spaces, never mid-word */
    .footer-main > .footer-column:not(:last-child) a {
        overflow-wrap: normal;
        word-break: normal;
    }
}
/* =====================================================
   FOOTER BOTTOM - copyright row (mobile)
   Copyright centred on top, links in one row below,
   and room at the bottom so the back-to-top button
   never covers the text
===================================================== */
@media (max-width: 700px) {

    .footer-bottom {
        flex-direction: column;
        align-items: center;
        gap: 14px;
        text-align: center;
        padding-bottom: 76px;   /* space for the round back-to-top button */
    }

    .footer-bottom .footer-copyright {
        margin: 0;
        font-size: 13px;
        line-height: 1.6;
    }

    .footer-bottom .footer-links {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px 24px;
    }

    .footer-bottom .footer-links a {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        white-space: nowrap;    /* "Privacy Policy" stays on one line */
        font-size: 13px;
    }

    /* smaller button, tucked into the corner */
    .back-to-top {
        width: 46px;
        height: 46px;
        right: 14px;
        bottom: 14px;
    }
}
/* =====================================================
   FOOTER BOTTOM - copyright row (mobile)
   Copyright centred on top, links in one row below,
   and room at the bottom so the back-to-top button
   never covers the text
===================================================== */
@media (max-width: 700px) {

    .footer-bottom {
        flex-direction: column;
        align-items: center;
        gap: 14px;
        text-align: center;
        padding-bottom: 76px;   /* space for the round back-to-top button */
    }

    .footer-bottom .footer-copyright {
        margin: 0;
        font-size: 13px;
        line-height: 1.6;
    }

    .footer-bottom .footer-links {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px 24px;
    }

    .footer-bottom .footer-links a {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        white-space: nowrap;    /* "Privacy Policy" stays on one line */
        font-size: 13px;
    }

    /* smaller button, tucked into the corner */
    .back-to-top {
        width: 46px;
        height: 46px;
        right: 14px;
        bottom: 14px;
    }
}
/* Contact page: put the location card on the right of the container */
@media (min-width: 992px) {
    .contact-location-section .location-card {
        margin-left: auto;   /* pushes the card to the right edge */
        margin-right: 0;
    }
}
/* =====================================================
   CONTACT PAGE - direct links sit on a LIGHT background
   (appointment page keeps the original white-on-navy style)
===================================================== */
.contact-intro .contact-direct-link {
    min-width: 0;
    padding: 12px 18px 12px 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: #fff;
    box-shadow: var(--shadow-sm);
}

.contact-intro .contact-direct-link:hover {
    border-color: var(--accent);
    box-shadow: var(--shadow);
}

.contact-intro .contact-direct-link small {
    margin-bottom: 3px;
    color: var(--text-light);   /* grey label */
    font-size: 11px;
    letter-spacing: 0.12em;
}

.contact-intro .contact-direct-link strong {
    color: var(--primary-dark);  /* dark number / email */
    font-size: 15px;
    font-weight: 600;
    overflow-wrap: anywhere;
}

/* both pages: keep the icon box the same size */
.contact-direct-link > span {
    flex: 0 0 40px;
    width: 40px;
    height: 40px;
}

/* appointment page: the labels were too tiny to read */
.appointment-contact-card .contact-direct-link small {
    font-size: 11px;
    letter-spacing: 0.12em;
    color: rgba(255, 255, 255, 0.6);
}

.appointment-contact-card .contact-direct-link strong {
    font-size: 14px;
    overflow-wrap: anywhere;
}
/* =====================================================
   INNER PAGE BANNERS - photo background + parallax
===================================================== */
.page-hero,
.advocates-page-hero,
.practice-page-hero,
.appointment-page-hero,
.contact-page-hero,
.faq-page-hero,
.legal-resources-hero,
.legal-page-hero {
    position: relative;
    background:
        linear-gradient(105deg,
            rgba(6, 22, 41, 0.94) 0%,
            rgba(11, 37, 69, 0.82) 55%,
            rgba(11, 37, 69, 0.66) 100%),
        url("../images/cover.jpg") center 30% / cover no-repeat;
    background-attachment: scroll, fixed;   /* gradient scrolls, photo stays = parallax */
}

/* phones/tablets: fixed backgrounds are choppy (and ignored on iPhone) */
@media (max-width: 991px), (hover: none) {
    .page-hero,
    .advocates-page-hero,
    .practice-page-hero,
    .appointment-page-hero,
    .contact-page-hero,
    .faq-page-hero,
    .legal-resources-hero,
    .legal-page-hero {
        background-attachment: scroll, scroll;
    }
}

@media (prefers-reduced-motion: reduce) {
    .page-hero,
    .advocates-page-hero,
    .practice-page-hero,
    .appointment-page-hero,
    .contact-page-hero,
    .faq-page-hero,
    .legal-resources-hero,
    .legal-page-hero {
        background-attachment: scroll, scroll;
    }
}
/* Desktop header: 3 columns (logo | menu | buttons) so the right edge
   lines up with the page content. The hidden hamburger no longer
   leaves an empty column + gap. */
@media (min-width: 992px) {
    .site-header .header-container {
        grid-template-columns: auto minmax(0, 1fr) auto;
    }
}
.practice-section .practice-card:hover h3,
.practice-section .practice-card:hover h3 a {
    color: #fff;
}
.practice-page .practice-card:hover,
.practice-grid .practice-card:hover {
    background: var(--primary);
}

.practice-grid .practice-card:hover h3,
.practice-grid .practice-card:hover h3 a {
    color: #fff;
}

.practice-grid .practice-card:hover p,
.practice-grid .practice-card:hover .practice-category {
    color: rgba(255, 255, 255, 0.75);
}
/* Contact page only: its own section spacing */
.section.contact-intro,
.section.contact-main-section,
.section.office-hours-section {
    padding: 110px 0;      /* desktop */
}

@media (max-width: 991px) {
    .section.contact-intro,
    .section.contact-main-section,
    .section.office-hours-section {
        padding: 60px 0;  /* tablet / phone */
    }
}
/* =====================================================
   ABOUT PAGE - lists, approvals, closing line
===================================================== */
.ld-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px 22px;
    margin: 0 auto;
    padding: 0;
    list-style: none;
}
.ld-list li {
    position: relative;
    margin: 0;
    padding: 16px 18px 16px 50px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: #fff;
    color: var(--primary-dark);
    font-size: 15px;
    font-weight: 500;
    line-height: 1.5;
    transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.ld-list li::before {
    content: "\f26e";                 /* bootstrap-icons check-circle-fill */
    position: absolute;
    left: 18px;
    top: 16px;
    font-family: "bootstrap-icons";
    font-size: 17px;
    line-height: 1.4;
    color: var(--accent);
}
.ld-list li:hover {
    transform: translateY(-3px);
    border-color: var(--accent);
    box-shadow: var(--shadow-sm);
}
.ld-list-light li {
    border-color: rgba(255,255,255,.14);
    background: rgba(255,255,255,.05);
    color: #fff;
}
.ld-list-light li:hover {
    border-color: var(--accent);
    background: rgba(255,255,255,.09);
    box-shadow: none;
}
.ld-note {
    max-width: 760px;
    margin: 40px auto 0;
    text-align: center;
    font-size: 16.5px;
    line-height: 1.8;
    color: var(--text-light);
}
.ld-note-light { color: rgba(255,255,255,.75); }

.ld-approvals {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}
.ld-approval {
    padding: 28px 26px;
    border: 1px solid rgba(255,255,255,.14);
    border-top: 3px solid var(--accent);
    border-radius: var(--radius);
    background: rgba(255,255,255,.05);
}
.ld-approval strong {
    display: block;
    margin-bottom: 8px;
    font-family: var(--font-heading);
    font-size: 24px;
    font-weight: 600;
    color: var(--accent-light);
}
.ld-approval span {
    display: block;
    font-size: 15px;
    line-height: 1.6;
    color: rgba(255,255,255,.78);
}

.ld-tagline {
    margin-top: 34px;
    padding-top: 28px;
    border-top: 1px solid var(--border);
    font-family: var(--font-heading);
    font-size: 21px;
    font-weight: 600;
    line-height: 1.5;
    color: var(--primary-dark);
}

@media (max-width: 991px) {
    .ld-list, .ld-approvals { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
    .ld-list, .ld-approvals { grid-template-columns: 1fr; }
    .ld-tagline { font-size: 18px; }
}


/* =====================================================
   TRUST: NUMBERS STRIP + CLIENT FEEDBACK
===================================================== */

.stats-strip {
    position: relative;
    z-index: 3;
    margin-top: -58px;          /* overlaps the bottom of the hero */
    padding-bottom: 10px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    border: 1px solid var(--cream-line);
    border-top: 3px solid var(--accent);
    border-radius: var(--radius);
    background: #fff;
    box-shadow: var(--shadow-lg);
}

.stat {
    padding: 28px 24px;
    text-align: center;
}

.stat + .stat {
    border-left: 1px solid var(--border);
}

.stat-value {
    display: block;
    font-family: var(--font-heading);
    font-size: clamp(28px, 3.4vw, 42px);
    font-weight: 600;
    line-height: 1.1;
    color: var(--primary-dark);
    font-variant-numeric: tabular-nums;
}

.stat-label {
    display: block;
    margin-top: 8px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--accent-dark);
}

@media (max-width: 700px) {
    .stats-strip { margin-top: -36px; }
    .stat { padding: 22px 12px; }
    .stat + .stat { border-left: 0; }
    .stats-grid { grid-template-columns: 1fr 1fr; }
    .stat:nth-child(even) { border-left: 1px solid var(--border); }
    .stat:nth-child(n+3) { border-top: 1px solid var(--border); }
}

/* ---- client feedback ---- */
.reviews-section {
    background:
        radial-gradient(700px 400px at 90% 0%, rgba(198, 154, 58, 0.14), transparent 65%),
        var(--primary-dark);
}

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
    gap: 24px;
}

.review-card {
    position: relative;
    display: flex;
    flex-direction: column;
    margin: 0;
    padding: 36px 30px 28px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-top: 3px solid var(--accent);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.05);
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.review-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.08);
}

.review-mark {
    position: absolute;
    top: 14px;
    right: 22px;
    font-size: 54px;
    line-height: 1;
    color: rgba(198, 154, 58, 0.35);
}

.review-card blockquote {
    margin: 0 0 24px;
    font-family: var(--font-heading);
    font-size: 18px;
    font-style: italic;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.92);
}

.review-card figcaption {
    margin-top: auto;
    padding-top: 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.review-card figcaption strong {
    display: block;
    font-size: 15px;
    color: var(--accent-light);
}

.review-card figcaption span {
    display: block;
    margin-top: 2px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.62);
}

.reviews-more {
    margin: 44px 0 0;
    text-align: center;
}

.reviews-section .clients-empty {
    background: rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.75);
}


/* =====================================================
   SINGLE PRACTICE AREA
===================================================== */

.practice-single-hero .hero-buttons {
    margin-top: 28px;
}

.practice-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 64px;
    align-items: start;
}

.practice-article-title {
    margin: 4px 0 28px;
    font-family: var(--font-heading);
    font-size: clamp(30px, 3.6vw, 44px);
    font-weight: 600;
    line-height: 1.15;
    color: var(--primary-dark);
}

.practice-article-title span {
    display: block;
    color: var(--accent-dark);
    font-style: italic;
    font-weight: 500;
}

/* --- the text typed in the editor --- */
.practice-prose {
    font-size: 17px;
    line-height: 1.85;
    color: var(--text-light);
}

.practice-prose > p:first-of-type {
    font-family: var(--font-heading);
    font-size: 21px;
    line-height: 1.6;
    color: var(--primary);
}

.practice-prose p {
    margin: 0 0 22px;
}

.practice-prose h2,
.practice-prose h3,
.practice-prose h4 {
    margin: 44px 0 16px;
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: 1.25;
    color: var(--primary-dark);
}

.practice-prose h2 {
    position: relative;
    padding-bottom: 14px;
    font-size: 30px;
}

.practice-prose h2::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 54px;
    height: 3px;
    border-radius: 2px;
    background: var(--accent);
}

.practice-prose h3 {
    font-size: 23px;
}

.practice-prose h4 {
    font-size: 18px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--accent-dark);
}

.practice-prose ul,
.practice-prose ol {
    margin: 0 0 26px;
    padding: 0;
    list-style: none;
}

.practice-prose ul li,
.practice-prose ol li {
    position: relative;
    margin-bottom: 12px;
    padding-left: 34px;
}

.practice-prose ul li::before {
    content: "\f26e";                 /* bootstrap-icons check-circle-fill */
    position: absolute;
    left: 0;
    top: 1px;
    font-family: "bootstrap-icons";
    font-size: 17px;
    color: var(--accent);
}

.practice-prose ol {
    counter-reset: step;
}

.practice-prose ol li {
    counter-increment: step;
}

.practice-prose ol li::before {
    content: counter(step);
    position: absolute;
    left: 0;
    top: 2px;
    display: grid;
    place-items: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--accent);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
}

.practice-prose blockquote {
    margin: 32px 0;
    padding: 22px 26px;
    border-left: 4px solid var(--accent);
    border-radius: 0 var(--radius) var(--radius) 0;
    background: var(--cream);
    font-family: var(--font-heading);
    font-size: 19px;
    font-style: italic;
    color: var(--primary);
}

.practice-prose blockquote p:last-child {
    margin-bottom: 0;
}

.practice-prose strong {
    color: var(--primary-dark);
}

.practice-prose a {
    color: var(--accent-dark);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.practice-prose img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius);
}

.practice-prose table {
    width: 100%;
    margin-bottom: 26px;
    border-collapse: collapse;
    font-size: 15px;
}

.practice-prose th,
.practice-prose td {
    padding: 12px 14px;
    border: 1px solid var(--border);
    text-align: left;
}

.practice-prose th {
    background: var(--primary);
    color: #fff;
}

/* --- sidebar --- */
.practice-sidebar {
    position: sticky;
    top: 110px;
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.practice-side-card {
    padding: 28px 26px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: #fff;
    box-shadow: var(--shadow-sm);
}

.practice-side-card h3 {
    margin: 0 0 12px;
    font-family: var(--font-heading);
    font-size: 22px;
    font-weight: 600;
    color: var(--primary-dark);
}

.practice-side-cta {
    border: 0;
    border-top: 3px solid var(--accent);
    background: var(--primary-dark);
    color: #fff;
}

.practice-side-cta h3 {
    color: #fff;
}

.practice-side-cta p {
    margin: 0 0 22px;
    font-size: 15px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.75);
}

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

.practice-side-icon,
.related-practice-icon {
    display: inline-grid;
    place-items: center;
    width: 54px;
    height: 54px;
    margin-bottom: 18px;
    border: 1px solid rgba(198, 154, 58, 0.5);
    border-radius: 14px;
    background: rgba(198, 154, 58, 0.12);
    color: var(--accent-light);
    font-size: 24px;
}

.practice-side-phone {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 16px;
    font-size: 15px;
    font-weight: 600;
    color: var(--accent-light);
    text-decoration: none;
}

.practice-side-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.practice-side-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 14px;
    font-size: 14.5px;
    line-height: 1.55;
    color: var(--text-light);
}

.practice-side-list li:last-child {
    margin-bottom: 0;
}

.practice-side-list .bi {
    flex: 0 0 auto;
    margin-top: 2px;
    color: var(--accent);
    font-size: 17px;
}

/* --- related practice areas --- */
.related-practice-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.related-practice-card {
    display: flex;
    flex-direction: column;
    padding: 32px 28px;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: #fff;
    text-decoration: none;
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
}

.related-practice-icon {
    color: var(--accent-dark);
}

.related-practice-card h3 {
    margin: 0 0 10px;
    font-family: var(--font-heading);
    font-size: 23px;
    font-weight: 600;
    color: var(--primary-dark);
    transition: color 0.3s ease;
}

.related-practice-card p {
    margin: 0 0 22px;
    font-size: 15px;
    line-height: 1.7;
    color: var(--text-light);
    transition: color 0.3s ease;
}

.related-practice-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: auto;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--accent-dark);
    transition: gap 0.25s ease, color 0.3s ease;
}

.related-practice-card:hover {
    transform: translateY(-6px);
    border-color: var(--accent);
    background: var(--primary);
    box-shadow: var(--shadow-lg);
}

.related-practice-card:hover h3 {
    color: #fff;
}

.related-practice-card:hover p {
    color: rgba(255, 255, 255, 0.75);
}

.related-practice-card:hover .related-practice-more {
    gap: 14px;
    color: var(--accent-light);
}

.practice-cta-buttons {
    justify-content: center;
    margin-top: 28px;
}

@media (max-width: 991px) {
    .practice-layout {
        grid-template-columns: 1fr;
        gap: 44px;
    }

    .practice-sidebar {
        position: static;
    }

    .related-practice-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 600px) {
    .related-practice-grid {
        grid-template-columns: 1fr;
    }

    .practice-prose {
        font-size: 16px;
    }

    .practice-prose > p:first-of-type {
        font-size: 19px;
    }

    .practice-prose h2 {
        font-size: 25px;
    }
}
