/* ============================================================
   ROOT VARIABLES & BASE
   ============================================================ */
:root {
    --blue: #1238e8;
    --blue-deep: #0a2bc0;
    --ink: #11182a;
    --paper: #f4f6f9;
    --white: #ffffff;
    --yellow: #f5d83d;
    --line: rgba(17, 24, 42, 0.18);
    --font-sans: "Archivo", Arial, sans-serif;
    --font-mono: "IBM Plex Mono", monospace;
    --font-heading: "Cinzel", Georgia, serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    background: var(--paper);
}

body {
    font-family: var(--font-sans);
    background: var(--paper);
    color: var(--ink);
    min-width: 320px;
    -webkit-font-smoothing: antialiased;
}

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

button {
    cursor: pointer;
    font-family: inherit;
}

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

::selection {
    background: var(--yellow);
    color: var(--ink);
}

/* ============================================================
   BRAND LOGO
   ============================================================ */
.brand-logo {
    width: 70px;
    height: 70px;
    object-fit: contain;
    border-radius: 50px;
    flex-shrink: 0;
}

/* ============================================================
   UTILITY
   ============================================================ */
.section {
    padding: clamp(5rem, 10vw, 8rem) 0;
    overflow: hidden;
}

.section-shell {
    width: min(100% - 48px, 1380px);
    margin-inline: auto;
}

.section-light {
    background: var(--paper);
}

.section-blue {
    background: var(--blue);
    color: var(--white);
}

.section-kicker {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.13em;
    line-height: 1;
    text-transform: uppercase;
    margin: 0;
}

.section-kicker-light {
    color: rgba(255, 255, 255, 0.64);
}

.section-heading {
    display: grid;
    grid-template-columns: 1.45fr 0.55fr;
    align-items: end;
    gap: 4rem;
    margin-bottom: clamp(3rem, 6vw, 5rem);
}

.section-heading h2 {
    max-width: 920px;
    margin: 22px 0 0;
    font-family: var(--font-heading);
    font-size: clamp(2.8rem, 7vw, 5.5rem);
    font-weight: 570;
    letter-spacing: -0.07em;
    line-height: 0.92;
}

.section-heading.compact h2 {
    font-size: clamp(2.4rem, 5vw, 4rem);
}

.section-intro {
    max-width: 430px;
    margin: 0 0 7px;
    font-size: 0.98rem;
    line-height: 1.65;
    opacity: 0.8;
}

.section-blue .section-intro {
    color: rgba(255, 255, 255, 0.74);
}

/* ============================================================
   BUTTONS
   ============================================================ */
.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    min-height: 52px;
    padding: 0 24px;
    border: 1px solid transparent;
    font-size: 0.78rem;
    font-weight: 700;
    line-height: 1;
    transition:
        background 180ms ease,
        color 180ms ease,
        border-color 180ms ease;
}

.button-primary {
    background: var(--white);
    color: var(--blue);
}
.button-primary:hover {
    background: var(--yellow);
    color: var(--ink);
}

.button-yellow {
    background: var(--yellow);
    color: var(--ink);
}
.button-yellow:hover {
    background: var(--ink);
    color: var(--white);
}

.button-outline {
    background: transparent;
    color: var(--blue);
    border-color: var(--blue);
}
.button-outline:hover {
    background: var(--blue);
    color: var(--white);
}

.section-blue .button-outline {
    color: var(--white);
    border-color: rgba(255, 255, 255, 0.5);
}
.section-blue .button-outline:hover {
    background: var(--white);
    color: var(--blue);
    border-color: var(--white);
}

.button-urgent {
    background: #dc2626;
    color: white;
    border: none;
}
.button-urgent:hover {
    background: #b91c1c;
}

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
    position: fixed;
    z-index: 90;
    top: 0;
    left: 0;
    width: 100%;
    color: white;
    transition:
        color 220ms ease,
        background-color 220ms ease;
}

.site-header.scrolled {
    color: var(--ink);
    background: var(--paper);
    border-bottom: 1px solid var(--line);
}

.site-header-inner {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    width: min(100% - 48px, 1380px);
    min-height: 84px;
    margin-inline: auto;
}

.header-brand,
.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.05;
    text-transform: uppercase;
}

.header-brand small,
.footer-brand small {
    display: block;
    margin-top: 4px;
    font-family: var(--font-mono);
    font-size: 0.55rem;
    font-weight: 400;
    letter-spacing: 0.15em;
}

/* Brand mark fallback (hidden when logo is used) */
.brand-mark {
    display: none;
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: clamp(1.4rem, 2.5vw, 2.8rem);
    font-size: 0.73rem;
    font-weight: 600;
    letter-spacing: 0.02em;
}
.desktop-nav a {
    padding: 8px 0;
    position: relative;
}
.desktop-nav a::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: 2px;
    left: 0;
    height: 1px;
    background: currentColor;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 220ms ease;
}
.desktop-nav a:hover::after,
.desktop-nav a.active::after {
    transform: scaleX(1);
    transform-origin: left;
}

.header-actions {
    display: flex;
    align-items: center;
    justify-self: end;
    gap: 10px;
}

.header-cta {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 8px 0;
    font-size: 0.73rem;
    font-weight: 650;
    border-bottom: 1px solid currentColor;
}
.header-cta-primary {
    border-bottom-color: var(--yellow);
}
.header-cta svg {
    transition: transform 180ms ease;
}
.header-cta:hover svg {
    transform: translate(3px, -3px);
}

.menu-button {
    display: none;
    place-items: center;
    width: 42px;
    height: 42px;
    border: 1px solid currentColor;
    background: transparent;
}

.mobile-nav {
    display: none;
    flex-direction: column;
    padding: 35px 24px;
    background: var(--paper);
    color: var(--ink);
    height: calc(100svh - 84px);
}
.mobile-nav.open {
    display: flex;
}
.mobile-nav a {
    padding: 22px 0;
    border-bottom: 1px solid var(--line);
    font-size: clamp(1.4rem, 5vw, 2.2rem);
    font-weight: 570;
    letter-spacing: -0.04em;
}
.mobile-nav .mobile-cta {
    border-bottom: none;
    color: var(--blue);
    font-weight: 700;
}
.mobile-nav-contact {
    margin-top: auto;
    display: flex;
    justify-content: space-between;
    color: #626a7b;
    font-family: var(--font-mono);
    font-size: 0.66rem;
    text-transform: uppercase;
    padding-top: 24px;
    border-top: 1px solid var(--line);
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
    min-height: 100svh;
    display: flex;
    align-items: flex-end;
    color: white;
    position: relative;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-image: url("../images/tshepo_tlotleng_logo_background.jpg");
}

.hero-wash {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(4, 22, 92, 0.85) 0%, rgba(5, 29, 128, 0.65) 42%, rgba(5, 26, 98, 0.2) 78%),
        linear-gradient(0deg, rgba(4, 17, 66, 0.75) 0%, transparent 50%);
    mix-blend-mode: multiply;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
    width: min(100% - 48px, 1380px);
    margin-inline: auto;
    padding: 128px 0 clamp(4rem, 8vh, 6rem);
}

.hero-badge {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--yellow);
    margin-bottom: 1.5rem;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: clamp(4rem, 12vw, 9rem);
    font-weight: 800;
    letter-spacing: -0.075em;
    line-height: 0.85;
    text-transform: uppercase;
    overflow: visible;
    padding-bottom: 0.05em;
}

.hero-word {
    display: block;
    overflow: visible;
}

.hero-word span {
    display: block;
    transform: translateY(110%);
    animation: heroSlide 0.8s cubic-bezier(0.22, 1, 0.36, 1) forwards;
    overflow: visible;
}

.hero-word:nth-child(1) span {
    animation-delay: 0.2s;
}
.hero-word:nth-child(2) span {
    animation-delay: 0.32s;
}

.hero-attorneys {
    display: block;
    margin-top: 0.6em;
    padding-left: 0.34em;
    border-left: 4px solid var(--yellow);
    font-family: var(--font-mono);
    font-size: 0.1em;
    font-weight: 500;
    letter-spacing: 0.24em;
    line-height: 1.2;
    opacity: 0;
    animation: heroFade 0.55s 0.55s forwards;
}
@keyframes heroSlide {
    to {
        transform: translateY(0);
    }
}
@keyframes heroFade {
    to {
        opacity: 1;
    }
}

.hero-bottom {
    display: grid;
    grid-template-columns: minmax(240px, 1fr) 1fr;
    gap: 3rem;
    margin-top: clamp(2.5rem, 5vh, 4rem);
    opacity: 0;
    animation: heroFade 0.75s 0.75s forwards;
}
.hero-bottom p {
    font-size: clamp(1.1rem, 2vw, 1.8rem);
    font-weight: 450;
    letter-spacing: -0.035em;
    line-height: 1.2;
    max-width: 480px;
}
.hero-actions {
    display: flex;
    align-items: center;
    gap: clamp(1.5rem, 3vw, 3rem);
    flex-wrap: wrap;
}
.text-link {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.55);
    font-size: 0.77rem;
    font-weight: 600;
}
.text-link-light {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.77rem;
    font-weight: 600;
    border-bottom: 1px solid rgba(255, 255, 255, 0.4);
    padding-bottom: 4px;
}

/* ============================================================
   FIRM SNIPPET
   ============================================================ */
.snippet-grid {
    display: grid;
    grid-template-columns: minmax(190px, 0.55fr) minmax(0, 1.8fr);
    gap: clamp(3rem, 8vw, 9rem);
}
.snippet-badge {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.counsel-mark {
    position: relative;
    width: 54px;
    height: 88px;
    margin-top: 6rem;
    border-bottom: 7px solid var(--blue);
    border-left: 7px solid var(--blue);
}
.counsel-mark::after {
    content: "";
    position: absolute;
    bottom: -7px;
    left: -7px;
    width: 17px;
    height: 17px;
    background: var(--yellow);
}
.snippet-title {
    font-family: var(--font-heading);
    font-size: clamp(2.6rem, 6vw, 5.5rem);
    font-weight: 560;
    letter-spacing: -0.065em;
    line-height: 0.96;
    max-width: 1000px;
}
.snippet-copy {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(2rem, 6vw, 7rem);
    max-width: 920px;
    margin-top: clamp(2.5rem, 5vw, 4rem);
}
.snippet-copy p {
    color: #3d4659;
    font-size: 1rem;
    line-height: 1.72;
    margin: 0;
}

/* ============================================================
   PRACTICE PREVIEW (Home page cards with images)
   ============================================================ */
.preview-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 2rem;
}

.preview-card {
    position: relative;
    padding: 1.5rem;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-color: #0a0f1b;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 0;
    transition:
        transform 180ms ease,
        border-color 180ms ease;
    overflow: hidden;
    color: #fff;
    min-height: 200px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.preview-card .card-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
    z-index: 0;
    pointer-events: none;
}

.preview-card > *:not(.card-overlay) {
    position: relative;
    z-index: 1;
}

.preview-card h3 {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
    color: #fff;
}

.preview-card p {
    font-size: 0.85rem;
    opacity: 0.9;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.9);
}

.preview-card .urgent-tag {
    display: inline-block;
    margin-top: 0.5rem;
    padding: 2px 10px;
    border-radius: 999px;
    background: var(--yellow);
    color: var(--ink);
    font-family: var(--font-mono);
    font-size: 0.55rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    align-self: flex-start;
}

.preview-card:hover {
    transform: scale(1.03);
    border-color: var(--yellow);
}

/* ============================================================
   ATTORNEY SPOTLIGHT
   ============================================================ */
.spotlight-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(340px, 0.95fr);
    align-items: center;
    gap: clamp(3rem, 8vw, 8rem);
}
.spotlight-image {
    position: relative;
    background: #d8dde6;
}
.spotlight-image img {
    width: 100%;
    aspect-ratio: 1 / 1.03;
    object-fit: cover;
    filter: saturate(0.78) contrast(1.03);
}
.spotlight-image::before {
    content: "";
    position: absolute;
    z-index: 2;
    top: -18px;
    right: -18px;
    width: 85px;
    height: 85px;
    border-top: 7px solid var(--blue);
    border-right: 7px solid var(--blue);
}
.spotlight-caption {
    display: flex;
    justify-content: space-between;
    padding: 16px 0 0;
    font-family: var(--font-mono);
    font-size: 0.61rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}
.spotlight-copy h2 {
    font-family: var(--font-heading);
    font-size: clamp(3rem, 6.5vw, 5.5rem);
    font-weight: 610;
    letter-spacing: -0.07em;
    line-height: 0.86;
    margin: 24px 0 4px;
}
.spotlight-role {
    color: var(--blue);
    font-family: var(--font-mono);
    font-size: 0.7rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin: 24px 0 0;
}
.spotlight-bio {
    color: #3d4659;
    font-size: 1rem;
    line-height: 1.72;
    max-width: 620px;
    margin: clamp(2rem, 4vw, 3.5rem) 0 0;
}
/* ============================================================
   QUOTE BLOCK WITH BACKGROUND IMAGE
   ============================================================ */

/* Homepage spotlight quote */
.spotlight-quote {
    position: relative;
    padding: 2rem 2rem 2rem 2.5rem; /* adjust padding to fit */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-top: 1px solid var(--line);
    border-radius: 4px;
    color: #fff;
    /* 👇 Replace URL with your own image */
    background-image: url("../images/quote-bg-law-library.jpg");
    overflow: hidden;
    margin-top: clamp(2rem, 4vw, 3.5rem);
}

/* Dark overlay for readability */
.spotlight-quote::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(7, 7, 7, 0.65);
    z-index: 0;
    border-radius: inherit;
}

.spotlight-quote > * {
    position: relative;
    z-index: 1;
}

.spotlight-quote blockquote {
    margin: 0;
    font-size: clamp(1.2rem, 2vw, 1.8rem);
    font-weight: 500;
    letter-spacing: -0.03em;
    line-height: 1.3;
    color: #ffffff;
}

.spotlight-quote cite {
    display: block;
    margin-top: 18px;
    font-family: var(--font-mono);
    font-size: 0.63rem;
    font-style: normal;
    text-transform: uppercase;
    color: var(--yellow);
}

/* Attorney profile page quote */
.profile-quote {
    position: relative;
    padding: 2rem 2rem 2rem 2.5rem;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-left: 2px solid var(--blue);
    border-radius: 4px;
    color: #fff;
    /* 👇 Replace URL with your own image */
    background-image: url("../images/quote-bg-law-books.jpg");
    overflow: hidden;
    margin: 2rem 0;
}

.profile-quote::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 0;
    border-radius: inherit;
}

.profile-quote > * {
    position: relative;
    z-index: 1;
    color: white;
}

.profile-quote cite {
    display: block;
    margin-top: 0.75rem;
    font-family: var(--font-mono);
    font-size: 0.63rem;
    font-style: normal;
    text-transform: uppercase;
    color: var(--yellow);
}

/* ============================================================
   TESTIMONIALS
   ============================================================ */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: clamp(2rem, 4vw, 3.5rem);
}
.testimonial-card {
    padding-left: 24px;
    border-left: 4px solid var(--yellow);
}
.testimonial-card blockquote {
    font-size: clamp(1rem, 1.5vw, 1.3rem);
    font-weight: 500;
    letter-spacing: -0.02em;
    line-height: 1.4;
    margin: 0;
}
.testimonial-card cite {
    display: flex;
    flex-direction: column;
    gap: 3px;
    margin-top: 20px;
    font-family: var(--font-mono);
    font-size: 0.63rem;
    font-style: normal;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #3d4659;
}
.testimonial-card cite span {
    color: rgba(61, 70, 89, 0.6);
}

/* ============================================================
   CTA BANNER
   ============================================================ */
.cta-content {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 3rem;
}
.cta-content h2 {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 4vw, 3.2rem);
    font-weight: 570;
    letter-spacing: -0.05em;
    line-height: 1.1;
}
.cta-content p {
    opacity: 0.8;
    font-size: 0.98rem;
    line-height: 1.65;
    max-width: 500px;
    margin-top: 0.5rem;
}
.cta-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* ============================================================
   PAGE HERO (inner pages)
   ============================================================ */
.page-hero {
    padding: 160px 0 80px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-image: url("../images/practice_area_bg.jpeg");
}
.page-hero h1 {
    font-family: var(--font-heading);
    font-size: clamp(3rem, 8vw, 5.5rem);
    font-weight: 570;
    letter-spacing: -0.07em;
    line-height: 0.92;
    margin: 0;
}
.page-hero p {
    font-size: 1.1rem;
    opacity: 0.8;
    margin-top: 1rem;
    max-width: 600px;
}
/* ============================================================
   PAGE HERO – UNIQUE BACKGROUNDS FOR EACH PAGE
   ============================================================ */

/* Practice page hero (already existed – keep it) */
.page-hero-practice {
    background-image: url("../images/practice_area_bg.jpeg");
}

/* About page hero – 👇 ADD THIS */
.page-hero-about {
    background-image: url("../images/about_hero_bg.jpeg");
}

/* Attorney page hero – 👇 ADD THIS */
.page-hero-attorney {
    background-image: url("../images/attorney_hero_bg.jpeg");
}

/* Contact page hero – 👇 ADD THIS */
.page-hero-contact {
    background-image: url("../images/contact_hero_bg.jpeg");
}

/* Fallback for any page-hero without a specific class */
.page-hero {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    /* Fallback gradient if image fails to load */
    background-color: var(--blue);
}

/* ============================================================
   ABOUT PAGE
   ============================================================ */
.firm-full {
    display: grid;
    grid-template-columns: 1.4fr 0.6fr;
    gap: 4rem;
    margin-bottom: 5rem;
}
.firm-full-text h2 {
    font-family: var(--font-heading);
    font-size: clamp(2.4rem, 5vw, 3.8rem);
    font-weight: 570;
    letter-spacing: -0.06em;
    line-height: 0.94;
    margin: 1rem 0 1.5rem;
}
.firm-full-text p {
    color: #3d4659;
    font-size: 1rem;
    line-height: 1.72;
    margin-bottom: 1rem;
}
.firm-full-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    align-content: start;
}
.stat-item {
    padding: 1.5rem;
    background: white;
    border: 1px solid var(--line);
    text-align: center;
}
.stat-number {
    display: block;
    font-family: var(--font-heading);
    font-size: 2.8rem;
    font-weight: 700;
    color: var(--blue);
    line-height: 1;
}
.stat-label {
    font-family: var(--font-mono);
    font-size: 0.6rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #6b7280;
    margin-top: 0.5rem;
}

.working-principles {
    border-top: 1px solid var(--line);
    padding-top: 3rem;
}
.working-principles h3 {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 500;
    letter-spacing: -0.03em;
    margin-bottom: 2rem;
}
.principles-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}
.principle span {
    display: block;
    color: var(--blue);
    font-size: 1.8rem;
    font-weight: 650;
    letter-spacing: -0.04em;
}
.principle p {
    color: #60687a;
    font-size: 0.85rem;
    line-height: 1.5;
    margin-top: 0.8rem;
}

.recognition-block {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 2.5rem;
    align-items: start;
}
.recognition-block.compact {
    grid-template-columns: 1fr;
}
.recognition-block h2 {
    font-family: var(--font-heading);
    font-size: clamp(2.2rem, 5vw, 3.8rem);
    font-weight: 570;
    letter-spacing: -0.06em;
    line-height: 0.94;
    margin: 0.5rem 0 1rem;
}
.recognition-block p {
    opacity: 0.8;
    font-size: 0.98rem;
    line-height: 1.72;
    max-width: 700px;
}
.recognition-icon {
    color: var(--yellow);
    margin-top: 0.5rem;
}

/* ============================================================
   PRACTICE FULL (with background images)
   ============================================================ */
.filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 2.5rem;
}
.filter-btn {
    padding: 0.5rem 1.2rem;
    border: 1px solid var(--line);
    background: transparent;
    font-family: var(--font-mono);
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    transition:
        background 180ms ease,
        color 180ms ease;
}
.filter-btn.active,
.filter-btn:hover {
    background: var(--blue);
    color: white;
    border-color: var(--blue);
}

.practice-full-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.practice-full-card {
    position: relative;
    padding: 1.5rem;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-color: #0a0f1b;
    border: 1px solid var(--line);
    transition:
        border-color 180ms ease,
        transform 180ms ease;
    overflow: hidden;
    color: #fff;
    min-height: 280px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.practice-full-card .card-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 0;
    pointer-events: none;
}

.practice-full-card > *:not(.card-overlay) {
    position: relative;
    z-index: 1;
}

.practice-full-card:hover {
    border-color: var(--yellow);
    transform: scale(1.02);
}

.practice-full-card .urgent-tag {
    display: inline-block;
    margin-bottom: 0.75rem;
    padding: 2px 10px;
    border-radius: 999px;
    background: var(--yellow);
    color: var(--ink);
    font-family: var(--font-mono);
    font-size: 0.55rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.practice-full-card h3 {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 600;
    letter-spacing: -0.03em;
    margin-bottom: 0.5rem;
    color: #fff;
}

.practice-full-card .statute {
    font-family: var(--font-mono);
    font-size: 0.6rem;
    color: var(--yellow);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 0.75rem;
}

.practice-full-card p {
    font-size: 0.9rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.85);
}

.practice-full-card .matters-list {
    margin-top: 0.75rem;
    padding-left: 1.2rem;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.9);
}

.practice-full-card .matters-list li {
    margin-bottom: 0.25rem;
}

.practice-full-card .timeline {
    margin-top: 0.75rem;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.8);
}

/* ============================================================
   JURISDICTIONS
   ============================================================ */
.jurisdiction-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.75rem;
    margin-top: clamp(2rem, 4vw, 3.5rem);
}
.jurisdiction-card {
    padding: 2rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.16);
}
.jurisdiction-card .type {
    font-family: var(--font-mono);
    font-size: 0.62rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--yellow);
}
.jurisdiction-card h3 {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    font-weight: 610;
    letter-spacing: -0.02em;
    margin: 12px 0 10px;
}
.jurisdiction-card p {
    font-size: 0.92rem;
    line-height: 1.5;
    opacity: 0.85;
    margin: 0 0 16px;
}
.jurisdiction-card .turnaround {
    display: block;
    padding-top: 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.18);
    font-family: var(--font-mono);
    font-size: 0.68rem;
}
.jurisdiction-card .advantage {
    display: block;
    margin-top: 0.5rem;
    font-size: 0.8rem;
    opacity: 0.9;
}

/* ============================================================
   ATTORNEY PROFILE FULL
   ============================================================ */
.profile-full-grid {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 4rem;
    align-items: start;
}
.profile-image {
    position: relative;
    background: #d8dde6;
}
.profile-image img {
    width: 100%;
    aspect-ratio: 1 / 1.05;
    object-fit: cover;
    filter: saturate(0.78) contrast(1.03);
}
.profile-image-caption {
    display: flex;
    justify-content: space-between;
    padding: 16px 0 0;
    font-family: var(--font-mono);
    font-size: 0.61rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}
.profile-details h2 {
    font-family: var(--font-heading);
    font-size: clamp(3rem, 6vw, 5rem);
    font-weight: 610;
    letter-spacing: -0.07em;
    line-height: 0.86;
    margin: 0 0 4px;
}
.profile-role {
    color: var(--blue);
    font-family: var(--font-mono);
    font-size: 0.7rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin: 0 0 1.5rem;
}
.profile-credentials {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}
.credential {
    padding: 0.25rem 0.75rem;
    background: rgba(18, 56, 232, 0.08);
    color: var(--blue-deep);
    font-family: var(--font-mono);
    font-size: 0.6rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    border-radius: 999px;
}
.profile-bio p {
    color: #3d4659;
    font-size: 1rem;
    line-height: 1.72;
    margin-bottom: 1rem;
}
.profile-quote {
    border-left: 2px solid var(--blue);
    padding-left: 1.5rem;
    font-size: clamp(1.1rem, 1.8vw, 1.6rem);
    font-weight: 500;
    letter-spacing: -0.02em;
    line-height: 1.3;
    margin: 2rem 0 2rem;
}
.profile-quote cite {
    display: block;
    margin-top: 0.75rem;
    font-family: var(--font-mono);
    font-size: 0.63rem;
    font-style: normal;
    text-transform: uppercase;
}
.profile-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.profile-principles {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 4rem;
    padding-top: 3rem;
    border-top: 1px solid var(--line);
}
.principle-card span {
    display: block;
    color: var(--blue);
    font-size: 1.8rem;
    font-weight: 650;
    letter-spacing: -0.04em;
}
.principle-card p {
    color: #60687a;
    font-size: 0.85rem;
    line-height: 1.5;
    margin-top: 0.5rem;
}

/* ============================================================
   CONTACT PAGE
   ============================================================ */
.contact-grid {
    display: grid;
    grid-template-columns: 0.7fr 1.3fr;
    gap: 4rem;
}
.contact-info h2 {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 570;
    letter-spacing: -0.05em;
    margin-bottom: 2rem;
}
.contact-item {
    display: grid;
    grid-template-columns: 32px 1fr;
    gap: 12px;
    padding-bottom: 28px;
    margin-bottom: 28px;
    border-bottom: 1px solid var(--line);
}
.contact-item .icon {
    color: var(--blue);
    margin-top: 2px;
}
.contact-item span {
    display: block;
    font-family: var(--font-mono);
    font-size: 0.62rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #6b7280;
    margin-bottom: 8px;
}
.contact-item a {
    display: block;
    font-size: 0.94rem;
    line-height: 1.5;
}
.contact-item a.urgent {
    color: #dc2626;
    font-weight: 600;
}
.urgent-note {
    padding-left: 18px;
    border-left: 4px solid var(--blue);
    color: #3d4659;
    font-size: 0.8rem;
    line-height: 1.55;
    margin-top: 0.5rem;
}

.screener-widget {
    background: white;
    padding: 2rem;
    border: 1px solid var(--line);
}
.screener-widget h3 {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 570;
    letter-spacing: -0.04em;
    margin-bottom: 0.5rem;
}
.screener-widget > p {
    color: #6b7280;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}
.screener-form label {
    display: block;
    font-family: var(--font-mono);
    font-size: 0.6rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #6b7280;
    margin-bottom: 1rem;
}
.screener-form select {
    display: block;
    width: 100%;
    padding: 0.6rem 0.5rem;
    border: 1px solid var(--line);
    background: var(--paper);
    font-size: 0.85rem;
    margin-top: 0.25rem;
}
.screener-result {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    background: var(--paper);
    padding: 1rem;
    margin: 1rem 0;
}
.screener-result span {
    font-family: var(--font-mono);
    font-size: 0.55rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #6b7280;
}
.screener-result p {
    font-weight: 600;
    font-size: 0.85rem;
    margin-top: 0.25rem;
}
.screener-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}
.screener-actions button {
    padding: 0.5rem 1.2rem;
    border: 1px solid var(--line);
    background: transparent;
    font-family: var(--font-mono);
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    transition: background 180ms ease;
}
.screener-actions button:hover {
    background: var(--blue);
    color: white;
    border-color: var(--blue);
}

/* ============================================================
   FEE GUIDE
   ============================================================ */
.fee-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-top: 2rem;
}
.fee-card {
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.15);
}
.fee-card .structure {
    font-family: var(--font-mono);
    font-size: 0.55rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--yellow);
}
.fee-card h4 {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 600;
    margin: 0.5rem 0 0.25rem;
}
.fee-card .rate {
    font-size: 1.4rem;
    font-weight: 700;
    margin: 0.25rem 0 0.5rem;
    color: var(--yellow);
}
.fee-card .includes {
    font-size: 0.8rem;
    opacity: 0.8;
    line-height: 1.5;
}
.fee-card .tag {
    display: inline-block;
    padding: 0.15rem 0.75rem;
    background: var(--yellow);
    color: var(--ink);
    font-family: var(--font-mono);
    font-size: 0.5rem;
    text-transform: uppercase;
    font-weight: 700;
    border-radius: 999px;
    margin-bottom: 0.5rem;
}
.fee-guarantee {
    margin-top: 2.5rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.06);
    border-left: 4px solid var(--yellow);
    font-size: 0.9rem;
    line-height: 1.6;
}

/* ============================================================
   BOOKING
   ============================================================ */
.booking-header {
    max-width: 700px;
    margin-bottom: 3rem;
}
.booking-header h2 {
    font-family: var(--font-heading);
    font-size: clamp(2.2rem, 5vw, 3.6rem);
    font-weight: 570;
    letter-spacing: -0.06em;
    line-height: 0.94;
}
.booking-header p {
    color: #3d4659;
    font-size: 0.98rem;
    line-height: 1.65;
    margin-top: 0.5rem;
}
.booking-grid {
    display: grid;
    grid-template-columns: 1.3fr 0.7fr;
    gap: 3rem;
}
.booking-form-container {
    background: white;
    padding: 2rem;
    border: 1px solid var(--line);
}
.booking-form-container form label {
    display: block;
    font-family: var(--font-mono);
    font-size: 0.6rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #6b7280;
    margin-bottom: 1rem;
}
.booking-form-container form input,
.booking-form-container form select,
.booking-form-container form textarea {
    display: block;
    width: 100%;
    padding: 0.6rem 0.5rem;
    border: 1px solid var(--line);
    background: var(--paper);
    font-size: 0.85rem;
    margin-top: 0.25rem;
    font-family: var(--font-sans);
}
.booking-form-container form textarea {
    resize: vertical;
    min-height: 80px;
}
.booking-form-container .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}
.booking-form-container .form-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
    margin-top: 1rem;
    flex-wrap: wrap;
}
.booking-form-container .form-actions .note {
    font-size: 0.7rem;
    color: #6b7280;
}

.booking-sidebar {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}
.sidebar-card {
    padding: 1.5rem;
    background: white;
    border: 1px solid var(--line);
}
.sidebar-card h4 {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}
.sidebar-card ul {
    list-style: none;
    padding: 0;
}
.sidebar-card ul li {
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--line);
    font-size: 0.85rem;
    line-height: 1.4;
}
.sidebar-card ul li:last-child {
    border-bottom: none;
}
.sidebar-card.urgent {
    background: #fef2f2;
    border-color: #fca5a5;
}
.sidebar-card.urgent p {
    font-size: 0.85rem;
    margin-bottom: 0.75rem;
}

/* ============================================================
   FLOATING WHATSAPP BUTTON
   ============================================================ */
.floating-whatsapp {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 50;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px 12px 16px;
    background: #25d366;
    color: #fff;
    border-radius: 999px;
    box-shadow: 0 6px 25px rgba(37, 211, 102, 0.4);
    font-family: var(--font-sans);
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(2px);
}

.floating-whatsapp:hover {
    transform: scale(1.06);
    box-shadow: 0 10px 35px rgba(37, 211, 102, 0.5);
    color: #fff;
}

.floating-whatsapp svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
    flex-shrink: 0;
}

.floating-whatsapp .whatsapp-text {
    display: inline-block;
}

/* On very small screens, show only icon */
@media (max-width: 480px) {
    .floating-whatsapp {
        padding: 12px;
        border-radius: 999px;
        min-width: 56px;
        min-height: 56px;
        justify-content: center;
    }
    .floating-whatsapp .whatsapp-text {
        display: none;
    }
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
    padding: 52px 0 25px;
    background: var(--paper);
}
.footer-top {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    align-items: center;
    padding-bottom: 48px;
    border-bottom: 1px solid var(--line);
}
.footer-top > p {
    margin: 0;
    color: #60687a;
    font-size: 0.79rem;
    text-align: center;
}
.back-to-top {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding-bottom: 6px;
    border-bottom: 1px solid var(--ink);
    font-size: 0.72rem;
    font-weight: 650;
    justify-self: end;
}
.footer-bottom {
    display: flex;
    justify-content: space-between;
    padding-top: 22px;
    color: #6b7280;
    font-family: var(--font-mono);
    font-size: 0.56rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}
.footer-bottom div {
    display: flex;
    gap: 24px;
}
.footer-bottom a:hover {
    color: var(--blue);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
    .site-header-inner {
        grid-template-columns: 1fr auto;
    }
    .desktop-nav,
    .header-actions {
        display: none;
    }
    .menu-button {
        display: grid;
    }
    .mobile-nav.open {
        display: flex;
    }
    .hero-bottom {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .section-heading {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    .snippet-grid,
    .spotlight-grid,
    .firm-full {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .snippet-badge {
        flex-direction: row;
        align-items: center;
    }
    .counsel-mark {
        margin-top: 0;
        width: 36px;
        height: 50px;
        border-width: 5px;
    }
    .counsel-mark::after {
        width: 12px;
        height: 12px;
        bottom: -5px;
        left: -5px;
    }
    .preview-grid,
    .principles-grid,
    .profile-principles {
        grid-template-columns: 1fr 1fr;
    }
    .practice-full-grid {
        grid-template-columns: 1fr;
    }
    .jurisdiction-grid {
        grid-template-columns: 1fr;
    }
    .contact-grid,
    .booking-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .fee-grid {
        grid-template-columns: 1fr 1fr;
    }
    .profile-full-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .footer-top {
        grid-template-columns: 1fr auto;
        gap: 2rem;
    }
    .footer-top > p {
        grid-column: 1 / -1;
        text-align: left;
    }
}

@media (max-width: 760px) {
    .section-shell,
    .site-header-inner {
        width: min(100% - 32px, 1380px);
    }
    .site-header-inner {
        min-height: 72px;
    }
    .hero-content {
        padding: 100px 0 3rem;
    }
    .hero-title {
        font-size: clamp(3.6rem, 18vw, 6rem);
    }
    .hero-bottom p {
        font-size: 1.1rem;
    }
    .snippet-copy {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    .preview-grid,
    .principles-grid,
    .profile-principles {
        grid-template-columns: 1fr;
    }
    .fee-grid {
        grid-template-columns: 1fr;
    }
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
    .cta-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    .booking-form-container .form-row {
        grid-template-columns: 1fr;
    }
    .firm-full-stats {
        grid-template-columns: 1fr 1fr;
    }
    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }
    .screener-result {
        grid-template-columns: 1fr;
    }
    .brand-logo {
        width: 34px;
        height: 34px;
    }
}

/* ── Built-by CodeCraft strip ───────────────────────────── */
.built-by-strip {
    border-top: 1px solid var(--border);
    padding: 2rem 4rem;
    background: rgba(255, 255, 255, 0.015);
    transition: background 0.4s;
}
.built-by-strip:hover {
    background: rgba(255, 255, 255, 0.03);
}
.built-by-inner {
    max-width: 1300px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
}
.built-by-label {
    font-size: 0.65rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--muted);
    white-space: nowrap;
}
.built-by-link {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
    text-decoration: none;
    transition: opacity 0.3s;
    flex: 1;
}
.built-by-link:hover {
    opacity: 0.8;
}
.built-by-name {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--white);
    letter-spacing: 0.03em;
}
.built-by-tagline {
    font-size: 0.68rem;
    color: var(--muted);
    letter-spacing: 0.12em;
    text-transform: uppercase;
}
.built-by-cta {
    font-size: 0.7rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: rgba(245, 245, 240, 0.45);
    text-decoration: none;
    border: 1px solid rgba(245, 245, 240, 0.15);
    padding: 0.6rem 1.4rem;
    white-space: nowrap;
    transition: all 0.3s;
}
.built-by-cta:hover {
    color: var(--white);
    border-color: rgba(245, 245, 240, 0.4);
    background: rgba(255, 255, 255, 0.05);
}

/* CodeCraft credit in footer */
.footer-credit {
    font-size: 0.68rem;
    color: rgba(245, 245, 240, 0.2);
    letter-spacing: 0.06em;
}
.footer-credit a {
    color: inherit;
    text-decoration: none;
    border-bottom: 1px solid rgba(245, 245, 240, 0.1);
}
.footer-credit a:hover {
    color: rgba(245, 245, 240, 0.45);
}

@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
    .hero-word span {
        transform: none;
        animation: none;
    }
    .hero-attorneys,
    .hero-bottom {
        opacity: 1;
        animation: none;
    }
}


/* ============================================================
   MOBILE POLISH (added)
   ============================================================ */
html { -webkit-text-size-adjust: 100%; }
img, svg, video { max-width: 100%; }
@media (max-width: 760px) {
    .hero-title { font-size: clamp(2.6rem, 14vw, 6rem); overflow-wrap: anywhere; }
    .built-by-strip { padding: 1.5rem 1rem; }
    .built-by-inner { gap: 1rem; }
    .built-by-cta { white-space: normal; text-align: center; width: 100%; box-sizing: border-box; }
    .footer-bottom div { flex-wrap: wrap; gap: 10px 20px; }
    /* 16px inputs stop iOS Safari zooming the page on focus */
    input, select, textarea { font-size: 16px; }
}
@media (pointer: coarse) {
    /* 44px minimum tap targets */
    button, select, input:not([type="checkbox"]):not([type="radio"]), .header-cta, .menu-button { min-height: 44px; }
    a[href^="tel:"], a[href^="mailto:"], .footer a { display: inline-block; padding-block: 10px; }
}
@supports (padding: max(0px)) {
    .floating-whatsapp { margin-bottom: env(safe-area-inset-bottom, 0px); }
}
