/* ================================================================
   TRION Law Partners LLP — Master Stylesheet
   ================================================================
   Typography-first, minimal, premium law firm aesthetic.
   Colors: Navy (#0B1D3A), Warm White (#FAFAFA), Accent (#3D5089)
   ================================================================ */

/* ── Google Fonts ─────────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+SC:wght@400;500;600;700&family=Inter:wght@300;400;500;600;700&family=Playfair+Display:ital,wght@0,400;0,500;0,600;0,700;1,400&display=swap');

/* ── Reset & Base ─────────────────────────────────────────────── */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --navy: #0B1D3A;
    --navy-light: #132B52;
    --navy-dark: #061225;
    --white: #FFFFFF;
    --off-white: #FAFAF8;
    --warm-gray: #F4F2EF;
    --mid-gray: #9CA3AF;
    --dark-gray: #4B5563;
    --accent: #3D5089;
    --accent-light: #5068A8;
    --accent-muted: rgba(61, 80, 137, 0.12);
    --hero-gold: #B8860B;
    --hero-gold-light: #D4A843;
    --text: #1F2937;
    --text-light: #6B7280;
    --border: #E5E7EB;
    --shadow-sm: 0 1px 3px rgba(11, 29, 58, 0.08);
    --shadow-md: 0 4px 12px rgba(11, 29, 58, 0.10);
    --shadow-lg: 0 8px 30px rgba(11, 29, 58, 0.12);
    --radius: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
    --font-wordmark: 'Cormorant SC', Georgia, serif;
    --max-width: 1200px;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-sans);
    color: var(--text);
    background: var(--white);
    line-height: 1.7;
    letter-spacing: -0.01em;
}

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

a {
    color: var(--navy);
    text-decoration: none;
    transition: color var(--transition);
}

a:hover {
    color: var(--accent);
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-serif);
    color: var(--navy);
    font-weight: 500;
    line-height: 1.25;
    letter-spacing: -0.02em;
}

h1 {
    font-size: clamp(2rem, 4vw, 3.25rem);
}

h2 {
    font-size: clamp(1.6rem, 3vw, 2.25rem);
}

h3 {
    font-size: clamp(1.25rem, 2vw, 1.6rem);
}

h4 {
    font-size: 1.125rem;
}

h5 {
    font-size: 1rem;
    font-family: var(--font-sans);
    font-weight: 600;
}

p {
    margin-bottom: 1rem;
    text-align: justify;
}

/* ── Container ────────────────────────────────────────────────── */
.container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 2rem;
}

/* ── TOPBAR ───────────────────────────────────────────────────── */
.topbar {
    background: var(--navy-dark);
    color: var(--mid-gray);
    font-size: 0.775rem;
    padding: 0.5rem 0;
    letter-spacing: 0.02em;
}

.topbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.topbar a {
    color: var(--mid-gray);
    transition: color var(--transition);
}

.topbar a:hover {
    color: var(--accent-light);
}

.topbar-links {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

/* ── NAVBAR ───────────────────────────────────────────────────── */
.navbar {
    background: var(--white);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: box-shadow var(--transition), height var(--transition);
}

.navbar.scrolled {
    box-shadow: var(--shadow-md);
}

.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
    transition: height var(--transition);
}

.navbar.scrolled .container {
    height: 56px;
}

.navbar-brand {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.15rem;
    text-decoration: none;
    padding: 0.5rem 0;
}

/* ── CSS Wordmark ───────────────────────────────────────── */
.wordmark {
    font-family: var(--font-wordmark);
    font-weight: 600;
    color: #3D5089;
    line-height: 1;
    display: flex;
    flex-direction: row;
    align-items: baseline;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.animated-logo {
    font-size: 1.8rem;
    letter-spacing: 0.08em;
    white-space: nowrap;
}

.animated-logo .o {
    color: #5DDFF6;
}

.animated-logo .fixed-letter {
    display: inline-block;
    transition: transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.animated-logo .fade-out {
    display: inline-block;
    overflow: hidden;
    opacity: 1;
    font-size: 1.8rem;
    transition: font-size 0.8s cubic-bezier(0.2, 0.8, 0.2, 1),
        opacity 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
    vertical-align: baseline;
    transform-origin: left center;
}

.animated-logo .space-it {
    display: inline-block;
    width: 0.35em;
    transition: width 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.logo-tagline {
    font-family: var(--font-sans);
    font-size: 0.5rem;
    font-weight: 600;
    letter-spacing: 0.25em;
    color: var(--text-light);
    white-space: nowrap;
    opacity: 1;
    transition: opacity 0.4s ease, height 0.4s ease;
    height: 10px;
    display: block;
}

/* ── Scrolled Logo State (Collapse to TLP) ──────────── */
.navbar.scrolled .logo-tagline {
    opacity: 0;
    height: 0;
    overflow: hidden;
}

.navbar.scrolled .animated-logo {
    font-size: 1.5rem;
    letter-spacing: 0.05em;
}

.navbar.scrolled .animated-logo .fade-out {
    font-size: 0px;
    opacity: 0;
}

.navbar.scrolled .animated-logo .space-it {
    width: 0;
}

/* ── SUB-NAVIGATION ─────────────────────────────────────────────── */
.subnav-container {
    background: var(--warm-gray);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 56px;
    /* Below the scrolled navbar */
    z-index: 990;
    overflow: hidden;
}

.subnav-scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    /* Firefox */
}

.subnav-scroll::-webkit-scrollbar {
    display: none;
    /* Safari and Chrome */
}

.subnav-links {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 2.5rem;
    white-space: nowrap;
}

.subnav-links a {
    display: block;
    padding: 1rem 0;
    color: var(--text-light);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    text-decoration: none;
    position: relative;
    transition: color 0.3s ease;
}

.subnav-links a:hover {
    color: var(--navy);
}

.subnav-links a.active {
    color: var(--navy);
}

.subnav-links a::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--hero-gold);
    /* Imperial gold */
    transform: scaleX(0);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: left center;
}

.subnav-links a.active::after {
    transform: scaleX(1);
}

/* Nav Links */
.nav-links {
    display: flex;
    align-items: center;
    gap: 0;
    list-style: none;
}

.nav-links li {
    position: relative;
}

.nav-links a {
    display: block;
    padding: 0.5rem 1.1rem;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text);
    letter-spacing: 0.01em;
    text-transform: uppercase;
    transition: color var(--transition);
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 1.1rem;
    right: 1.1rem;
    height: 2px;
    background: var(--accent);
    transform: scaleX(0);
    transition: transform var(--transition);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    transform: scaleX(1);
}

.nav-links a:hover {
    color: var(--navy);
}

.nav-links a.active {
    color: var(--navy);
    font-weight: 600;
}

/* Mobile Toggle */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.nav-toggle span {
    width: 22px;
    height: 2px;
    background: var(--navy);
    transition: var(--transition);
    border-radius: 1px;
}

/* ── HERO ─────────────────────────────────────────────────────── */
.hero {
    background: var(--navy);
    color: var(--white);
    padding: 7rem 0 6rem;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: linear-gradient(135deg, rgba(11, 29, 58, 0.85) 0%, rgba(19, 43, 82, 0.85) 50%, rgba(6, 18, 37, 0.85) 100%), url('../images/hero-bg.jpg') center/cover no-repeat;
    z-index: 0;
}

.hero .container {
    position: relative;
    z-index: 2;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-eyebrow {
    display: inline-block;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.3em;
    color: var(--hero-gold-light);
    margin-bottom: 1.5rem;
    font-weight: 600;
    padding: 0.4rem 1rem;
    border: 1px solid rgba(212, 168, 67, 0.25);
    border-radius: 2px;
}

.hero h1 {
    color: var(--white);
    font-size: clamp(2.5rem, 5vw, 4rem);
    margin-bottom: 1.5rem;
    letter-spacing: -0.03em;
    font-weight: 400;
    text-align: center;
    white-space: nowrap;
}

.hero h1 em {
    font-style: italic;
    color: var(--hero-gold-light);
}

.hero-text {
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 1);
    max-width: 560px;
    line-height: 1.8;
    margin-bottom: 2.5rem;
    font-weight: 300;
    text-align: center;
}

/* Page Hero (interior pages) */
.page-hero {
    background: var(--navy);
    color: var(--white);
    padding: 4.5rem 0 3.5rem;
    position: relative;
}

.page-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
}

.page-hero .container {
    position: relative;
    z-index: 2;
}

.page-hero h1 {
    color: var(--white);
    margin-bottom: 0.75rem;
}

.page-hero p {
    color: rgba(255, 255, 255, 0.65);
    font-size: 1rem;
    max-width: 600px;
}

.breadcrumb {
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.45);
    margin-bottom: 1rem;
}

.breadcrumb a {
    color: rgba(255, 255, 255, 0.55);
}

.breadcrumb a:hover {
    color: var(--accent-light);
}

.breadcrumb span {
    margin: 0 0.5rem;
}

/* ── BUTTONS ──────────────────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 2rem;
    font-family: var(--font-sans);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    transition: all var(--transition);
    text-decoration: none;
    line-height: 1;
}

.btn-primary {
    background: var(--accent);
    color: var(--white);
}

.btn-primary:hover {
    background: var(--accent-light);
    color: var(--white);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(61, 80, 137, 0.3);
}

.btn-outline {
    background: transparent;
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.btn-outline:hover {
    border-color: var(--accent-light);
    color: var(--accent-light);
}

.btn-navy {
    background: var(--navy);
    color: var(--white);
}

.btn-navy:hover {
    background: var(--navy-light);
    color: var(--white);
    transform: translateY(-1px);
}

.btn-ghost {
    background: transparent;
    color: var(--navy);
    padding: 0;
    text-transform: none;
    letter-spacing: 0;
    font-weight: 500;
}

.btn-ghost:hover {
    color: var(--accent);
}

.btn-ghost i {
    transition: transform var(--transition);
}

.btn-ghost:hover i {
    transform: translateX(4px);
}

/* ── SECTIONS ─────────────────────────────────────────────────── */
.section {
    padding: 5rem 0;
}

.section-alt {
    background: var(--warm-gray);
}

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

.section-header {
    margin-bottom: 3rem;
}

.section-header h2 {
    margin-bottom: 0.75rem;
}

.section-header p {
    color: var(--text-light);
    font-size: 1rem;
    max-width: 600px;
}

.section-header.center {
    text-align: center;
}

.section-header.center p {
    margin-left: auto;
    margin-right: auto;
}

.section-eyebrow {
    display: inline-block;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.25em;
    color: var(--accent);
    font-weight: 600;
    margin-bottom: 0.75rem;
    font-family: var(--font-sans);
}

/* ── CARDS ─────────────────────────────────────────────────────── */
.card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 2rem;
    transition: all var(--transition);
}

.card:hover {
    box-shadow: var(--shadow-md);
    border-color: transparent;
    transform: translateY(-2px);
}

.card-icon {
    width: 48px;
    height: 48px;
    background: var(--accent-muted);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
    color: var(--accent);
    font-size: 1.2rem;
}

.card h3 {
    font-size: 1.15rem;
    margin-bottom: 0.75rem;
}

.card p {
    color: var(--text-light);
    font-size: 0.9rem;
    line-height: 1.7;
}

/* ── GRID LAYOUTS ─────────────────────────────────────────────── */
.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

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

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

/* ── KEY STRENGTHS (Imperial List) ────────────────────────────── */
.imperial-section {
    background-color: #FCFBF9;
}

.imperial-list {
    display: flex;
    flex-direction: column;
    max-width: 900px;
    margin: 0 auto;
}

.imperial-row {
    display: flex;
    align-items: center;
    padding: 3rem 1.5rem;
    border-bottom: 1px solid rgba(212, 175, 55, 0.3);
    /* Muted gold border */
    position: relative;
    overflow: hidden;
    transition: background 0.4s ease;
    text-decoration: none;
}

.imperial-row:first-child {
    border-top: 1px solid rgba(212, 175, 55, 0.3);
}

.imperial-row:hover {
    background: rgba(93, 223, 246, 0.05);
    /* Very light brand tint */
}

.imperial-icon {
    font-size: 1.5rem;
    color: var(--accent);
    width: 60px;
    flex-shrink: 0;
    opacity: 0.7;
    transition: all 0.4s ease;
}

.imperial-title {
    font-family: var(--font-serif);
    font-size: 2.2rem;
    color: var(--navy);
    font-weight: 500;
    margin: 0;
    flex: 1;
    position: relative;
    z-index: 2;
    transition: color 0.4s ease;
}

.imperial-thumb {
    position: absolute;
    right: 5%;
    top: 50%;
    transform: translateY(-50%) translateX(20px);
    height: 180px;
    width: 320px;
    object-fit: cover;
    border-radius: var(--radius);
    opacity: 0;
    filter: grayscale(100%) contrast(1.2) brightness(0.9);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1;
    pointer-events: none;
    mix-blend-mode: multiply;
}

.imperial-row:hover .imperial-icon {
    opacity: 1;
    transform: scale(1.1);
}

.imperial-row:hover .imperial-thumb {
    opacity: 0.15;
    transform: translateY(-50%) translateX(0);
}

@media (max-width: 768px) {
    .imperial-row {
        padding: 2rem 1rem;
    }

    .imperial-title {
        font-size: 1.6rem;
    }

    .imperial-icon {
        width: 40px;
        font-size: 1.2rem;
    }

    .imperial-thumb {
        display: none;
    }
}

/* ── PRACTICE AREA CARDS ──────────────────────────────────────── */
.pa-card {
    background: var(--accent);
    border: none;
    border-radius: var(--radius-md);
    padding: 2.25rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.pa-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 120px;
    height: 120px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 50%;
    transform: translate(30px, -30px);
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1), background 0.6s ease;
    z-index: 0;
}

.pa-card>* {
    position: relative;
    z-index: 1;
    transition: color 0.4s ease, background 0.4s ease;
}

.pa-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(61, 80, 137, 0.35);
}

.pa-card:hover::before {
    transform: translate(30px, -30px) scale(8);
    background: var(--white);
}

.pa-card .card-icon {
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
    color: #fff;
    font-size: 1.1rem;
}

.pa-card h3 {
    font-size: 1.1rem;
    margin-bottom: 0.875rem;
    color: #fff;
}

.pa-card p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.88rem;
    flex: 1;
    margin-bottom: 1.25rem;
}

.pa-card .btn-ghost {
    margin-top: auto;
    color: rgba(255, 255, 255, 0.9);
}

/* Hover text & element color flip */
.pa-card:hover .card-icon {
    background: var(--accent-muted);
    color: var(--accent);
}

.pa-card:hover h3 {
    color: var(--navy);
}

.pa-card:hover p {
    color: var(--text);
}

.pa-card:hover .btn-ghost {
    color: var(--accent);
}

.pa-card:hover .btn-ghost:hover {
    color: var(--navy-dark);
}

/* ── ATTORNEY CARDS ───────────────────────────────────────────── */
.attorney-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: all var(--transition);
}

.attorney-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-3px);
}

.attorney-card-img {
    width: 100%;
    aspect-ratio: 3/4;
    object-fit: cover;
    background: var(--warm-gray);
}

.attorney-card-body {
    padding: 1.5rem;
}

.attorney-card-body h3 {
    font-size: 1.05rem;
    margin-bottom: 0.25rem;
}

.attorney-card-body .designation {
    font-size: 0.78rem;
    color: var(--accent);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 0.35rem;
}

.attorney-card-body .location {
    font-size: 0.82rem;
    color: var(--text-light);
}

.attorney-card-body .location i {
    margin-right: 0.25rem;
}

/* ── EQUITY PARTNER CARDS (Founding Partners) ──────────────────── */
.equity-partner-card {
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-dark) 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: grid;
    grid-template-columns: 350px 1fr;
    min-height: 450px;
    box-shadow: 0 10px 30px rgba(11, 29, 58, 0.2);
    position: relative;
}

.equity-partner-card:nth-child(even) {
    grid-template-columns: 1fr 350px;
}

.equity-partner-card:nth-child(even) .epc-img {
    order: 2;
}

.equity-partner-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 50px rgba(11, 29, 58, 0.35);
    border-color: rgba(93, 223, 246, 0.3);
}

.epc-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: var(--navy);
    filter: saturate(1.1) contrast(1.1);
    position: relative;
    z-index: 2;
}

.epc-body {
    padding: 3.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    z-index: 1;
}

/* Expanding circle for hover */
.epc-body::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 200px;
    height: 200px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 50%;
    transform: translate(50px, -50px);
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1), background 0.6s ease;
    z-index: -1;
}

.equity-partner-card:hover .epc-body::before {
    transform: translate(50px, -50px) scale(10);
    background: var(--white);
}

.epc-body>* {
    transition: color 0.4s ease, background 0.4s ease, border-color 0.4s ease;
}

.epc-header {
    margin-bottom: 1.5rem;
}

.epc-header h3 {
    font-family: var(--font-serif);
    font-size: 2rem;
    color: #fff;
    margin-bottom: 0.25rem;
    letter-spacing: -0.01em;
    transition: color 0.4s ease;
}

.epc-designation {
    font-family: var(--font-sans);
    font-size: 0.85rem;
    color: #5DDFF6;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    transition: color 0.4s ease;
}

.epc-contact {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-bottom: 1.25rem;
    font-family: var(--font-sans);
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
    transition: color 0.4s ease;
}

.epc-contact i {
    color: #5DDFF6;
    margin-right: 0.4rem;
    transition: color 0.4s ease;
}

.epc-qualifications {
    font-family: var(--font-sans);
    font-size: 0.9rem;
    color: #fff;
    margin-bottom: 1.5rem;
    font-style: italic;
    transition: color 0.4s ease;
}

.epc-bio {
    font-family: var(--font-sans);
    font-size: 0.92rem;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.8;
    margin-bottom: 2rem;
    transition: color 0.4s ease;
}

.epc-expertise {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-bottom: 2.5rem;
}

.epc-pill {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-family: var(--font-sans);
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.8);
    transition: all 0.3s ease;
}

.epc-btn {
    align-self: flex-start;
    margin-top: auto;
    color: rgba(255, 255, 255, 0.9);
    transition: all 0.3s ease;
}

.epc-btn:hover {
    color: #fff;
}

/* Hover State Color Flips */
.equity-partner-card:hover .epc-header h3 {
    color: var(--navy);
}

.equity-partner-card:hover .epc-designation {
    color: var(--accent);
}

.equity-partner-card:hover .epc-contact {
    color: var(--text);
}

.equity-partner-card:hover .epc-contact i {
    color: var(--accent);
}

.equity-partner-card:hover .epc-qualifications {
    color: var(--navy);
}

.equity-partner-card:hover .epc-bio {
    color: var(--text);
}

.equity-partner-card:hover .epc-pill {
    background: var(--accent-muted);
    border-color: var(--accent-muted);
    color: var(--accent);
}

.equity-partner-card:hover .epc-btn {
    color: var(--accent);
}

.equity-partner-card:hover .epc-btn:hover {
    color: var(--navy-dark);
}

@media (max-width: 992px) {

    .equity-partner-card,
    .equity-partner-card:nth-child(even) {
        grid-template-columns: 1fr;
    }

    .equity-partner-card:nth-child(even) .epc-img {
        order: 0;
    }

    .epc-img {
        aspect-ratio: 16/9;
    }

    .epc-body {
        padding: 2rem;
    }
}

/* ── ATTORNEY BIG CARDS (Of Counsel) ───────────────────────── */
.attorney-card-big {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: all var(--transition);
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 380px;
}

.attorney-card-big:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-3px);
}

.attorney-card-big .attorney-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: var(--warm-gray);
}

.attorney-card-big .attorney-card-body {
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.attorney-card-big .attorney-card-body h3 {
    font-size: 1.4rem;
    margin-bottom: 0.35rem;
}

.attorney-card-big .attorney-card-body .designation {
    font-size: 0.78rem;
    color: var(--accent);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 0.5rem;
}

.attorney-card-big .attorney-card-body .location {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-bottom: 1rem;
}

.attorney-card-big .attorney-card-body .location i {
    margin-right: 0.25rem;
}

.attorney-card-big .attorney-card-body .qualifications {
    font-size: 0.82rem;
    color: var(--text-light);
    margin-bottom: 1rem;
    font-style: italic;
}

.attorney-card-big .attorney-card-body .bio-excerpt {
    font-size: 0.88rem;
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: 1.25rem;
}

/* Attorney Single */
.attorney-profile {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 3rem;
    align-items: start;
}

.attorney-photo {
    width: 100%;
    aspect-ratio: 3/4;
    object-fit: cover;
    border-radius: var(--radius-md);
    background: var(--warm-gray);
}

.attorney-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin: 1.5rem 0;
    padding: 1.5rem 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.attorney-meta-item {
    font-size: 0.88rem;
}

.attorney-meta-item strong {
    display: block;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-light);
    margin-bottom: 0.25rem;
    font-family: var(--font-sans);
}

.expertise-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1.5rem;
}

.expertise-tag {
    padding: 0.35rem 0.9rem;
    background: var(--accent-muted);
    color: var(--accent);
    font-size: 0.78rem;
    font-weight: 600;
    border-radius: 2px;
    letter-spacing: 0.02em;
}

/* Advanced Attorney Single Features */
.attorney-positioning {
    font-size: 1.05rem;
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: 2rem;
    font-weight: 400;
}

.highlight-stat-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-bottom: 2.5rem;
    background: var(--bg);
    padding: 1.5rem;
    border-radius: var(--radius-sm);
    border-left: 3px solid var(--hero-gold);
}

.highlight-stat {
    display: flex;
    flex-direction: column;
}

.highlight-stat-num {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--navy);
    font-family: var(--font-serif);
    line-height: 1;
    margin-bottom: 0.25rem;
}

.highlight-stat-label {
    font-size: 0.8rem;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
}

.rep-work-list {
    margin-left: 0;
    list-style-type: none;
    padding: 0;
}

.rep-work-list li {
    position: relative;
    margin-bottom: 0.75rem;
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.6;
    padding-left: 1.25rem;
}

.rep-work-list li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--hero-gold);
    font-weight: bold;
}

/* ── INSIGHT/PUBLICATION CARDS ────────────────────────────────── */
.insight-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 2rem;
    transition: all var(--transition);
    display: flex;
    flex-direction: column;
}

.insight-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.insight-card-meta {
    font-size: 0.75rem;
    color: var(--text-light);
    margin-bottom: 0.75rem;
    display: flex;
    gap: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-weight: 500;
}

.insight-card-meta .category {
    color: var(--accent);
}

.insight-card h3 {
    font-size: 1.05rem;
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.insight-card p {
    color: var(--text-light);
    font-size: 0.88rem;
    flex: 1;
    margin-bottom: 1.25rem;
}

/* Insight Single */
.insight-article {
    max-width: 760px;
    margin: 0 auto;
}

.insight-article h3 {
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.insight-article ul {
    margin: 1rem 0 1.5rem 1.5rem;
}

.insight-article li {
    margin-bottom: 0.5rem;
    color: var(--text);
    font-size: 0.95rem;
}

/* ── OFFICE CARDS ─────────────────────────────────────────────── */
.office-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 2rem;
    transition: all var(--transition);
}

.office-card:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--accent);
}

.office-card h3 {
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
}

.office-card .label {
    font-size: 0.72rem;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 600;
    margin-bottom: 1rem;
    display: block;
}

.office-card .address {
    font-size: 0.88rem;
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: 1rem;
}

.office-card .contact-info {
    font-size: 0.85rem;
    color: var(--text);
}

.office-card .contact-info i {
    color: var(--accent);
    width: 18px;
    margin-right: 0.5rem;
}

.office-card .contact-info div {
    margin-bottom: 0.35rem;
}

/* ── CTA SECTION ──────────────────────────────────────────────── */
.cta-section {
    background: var(--navy);
    color: var(--white);
    padding: 5rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(11, 29, 58, 0.85) 0%, rgba(19, 43, 82, 0.85) 100%), url('../images/cta-justice.jpg') center/cover no-repeat;
    z-index: 0;
}

.cta-section .container {
    position: relative;
    z-index: 2;
}

.cta-section h2 {
    color: var(--white);
    margin-bottom: 1rem;
}

.cta-section p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 1rem;
    max-width: 500px;
    margin: 0 auto 2rem;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* ── CONTACT FORM ─────────────────────────────────────────────── */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--navy);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.form-control {
    width: 100%;
    padding: 0.85rem 1rem;
    font-family: var(--font-sans);
    font-size: 0.9rem;
    color: var(--text);
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: border-color var(--transition), box-shadow var(--transition);
    outline: none;
}

.form-control:focus {
    border-color: var(--navy);
    box-shadow: 0 0 0 3px rgba(11, 29, 58, 0.08);
}

textarea.form-control {
    resize: vertical;
    min-height: 140px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}
/* ── CAREERS PAGE ─────────────────────────────────────────────── */
.career-block {
    background: var(--white);
    border-left: 3px solid var(--hero-gold);
    padding: 2rem 2.5rem;
    margin-bottom: 2rem;
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    box-shadow: var(--shadow-sm);
    transition: box-shadow var(--transition), transform var(--transition);
}

.career-block:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.career-block-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.career-block-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--accent-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    font-size: 1.1rem;
    flex-shrink: 0;
}

.career-block h3 {
    margin: 0;
    font-size: 1.35rem;
    color: var(--navy);
}

.career-block p {
    color: var(--text);
    line-height: 1.8;
    font-size: 0.95rem;
}

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

.career-email-link {
    display: inline-block;
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--accent);
    letter-spacing: -0.01em;
    margin: 1rem 0;
    padding: 0.75rem 2rem;
    border: 2px solid var(--accent);
    border-radius: var(--radius);
    transition: all var(--transition);
}

.career-email-link:hover {
    background: var(--accent);
    color: var(--white);
}

/* ── FOOTER ───────────────────────────────────────────────────── */
.footer {
    background: var(--navy-dark);
    color: rgba(255, 255, 255, 0.85);
    padding: 4rem 0 0;
    font-size: 0.88rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 2.5rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer h4 {
    color: var(--white);
    font-family: var(--font-sans);
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin-bottom: 1.25rem;
}

.footer-about p {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.8;
    font-size: 0.85rem;
}

.footer-about .footer-logo {
    height: 36px;
    margin-bottom: 1rem;
    opacity: 0.9;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.6rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.85rem;
    transition: color var(--transition);
}

.footer-links a:hover {
    color: var(--accent-light);
}

.footer-offices p.office-name {
    color: var(--white);
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.25rem;
    margin-top: 1rem;
}

.footer-offices p {
    color: rgba(255, 255, 255, 0.65);
    font-size: 0.82rem;
    margin-bottom: 0.35rem;
    line-height: 1.6;
}

.footer-bottom {
    padding: 1.5rem 0;
    margin-top: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: nowrap; /* Prevent wrapping on desktop */
    gap: 1.5rem;
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.6);
}

.footer-bottom a {
    color: rgba(255, 255, 255, 0.7);
}

.footer-bottom a:hover {
    color: var(--accent-light);
}

.footer-legal {
    display: flex;
    gap: 1.5rem;
}

/* ── Footer Wordmark ────────────────────────────────────────── */
.footer-wordmark {
    margin-bottom: 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.footer-tagline {
    font-family: var(--font-sans);
    font-size: 0.5rem;
    font-weight: 600;
    letter-spacing: 0.25em;
    color: rgba(255, 255, 255, 0.5);
    margin-top: 0.25rem;
    white-space: nowrap;
    display: block;
}

.footer-wordmark .wordmark {
    color: rgba(255, 255, 255, 0.9);
    font-size: clamp(2rem, 3.5vw, 3rem);
    display: flex;
    flex-direction: row;
    align-items: baseline;
    /* gap: 0.5rem; */
    white-space: nowrap;
}

.footer-wordmark .wordmark-sub {
    color: rgba(255, 255, 255, 0.5);
    opacity: 1;
    font-family: var(--font-serif);
    font-size: 0.45em;
    letter-spacing: 0.05em;
    text-transform: none;
    font-weight: 400;
}

.footer-wordmark .wordmark-trion .o {
    color: #5DDFF6;
}

/* ── About Tagline ──────────────────────────────────────────── */
.about-tagline {
    font-family: var(--font-serif);
    font-size: clamp(1.3rem, 2.5vw, 2rem);
    color: rgba(255, 255, 255, 0.85);
    letter-spacing: 0.15em;
    text-transform: uppercase;
    font-weight: 400;
    margin-top: 0.75rem;
}

.about-tagline .separator {
    color: var(--accent-light);
    margin: 0 0.4em;
}

/* ── LEGAL PAGES ──────────────────────────────────────────────── */
.legal-content {
    max-width: 760px;
    margin: 0 auto;
}

.legal-content h3 {
    margin-top: 2rem;
    margin-bottom: 0.75rem;
}

.legal-content p,
.legal-content li {
    color: var(--text-light);
    font-size: 0.92rem;
    line-height: 1.8;
}

.legal-content ul {
    margin: 0.75rem 0 1.5rem 1.5rem;
}

/* ── 404 ──────────────────────────────────────────────────────── */
.error-page {
    text-align: center;
    padding: 6rem 0;
}

.error-page h1 {
    font-size: 6rem;
    color: var(--border);
    margin-bottom: 1rem;
}

.error-page h2 {
    margin-bottom: 1rem;
}

.error-page p {
    color: var(--text-light);
    margin-bottom: 2rem;
}

/* ── COMPLIANCE DISCLAIMER MODAL ─────────────────────────────── */
.disclaimer-modal {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(6, 18, 37, 0.92);
    backdrop-filter: blur(6px);
    opacity: 1;
    visibility: visible;
    transition: opacity 0.4s ease, visibility 0.4s ease;
    padding: 1.5rem;
}

.disclaimer-modal.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.disclaimer-modal-box {
    background: var(--white);
    border-radius: var(--radius-lg);
    max-width: 640px;
    width: 100%;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    padding: 0;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.3);
    transform: scale(0.95) translateY(10px);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease;
}

.disclaimer-modal:not(.hidden) .disclaimer-modal-box {
    transform: scale(1) translateY(0);
}

.disclaimer-modal-header {
    padding: 2.5rem 2.5rem 1rem 2.5rem;
    flex-shrink: 0;
    text-align: center;
}

.disclaimer-modal-box h2 {
    font-size: 1.85rem;
    margin-bottom: 0.5rem;
    color: var(--navy);
}

.disclaimer-modal-box .disclaimer-eyebrow {
    font-family: var(--font-sans);
    font-size: 0.95rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--hero-gold);
    margin-bottom: 0.75rem;
    display: block;
}

.disclaimer-modal-content {
    padding: 0.5rem 2.5rem 1rem 2.5rem;
    overflow-y: auto;
    flex-grow: 1;
}

.disclaimer-modal-box p,
.disclaimer-modal-box li {
    font-size: 0.88rem;
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 1.25rem;
    text-align: justify;
}

.disclaimer-modal-box ul {
    margin: 0rem 0rem 1.25rem 1.5rem;
    color: var(--text-light);
}

.disclaimer-modal-box li {
    margin-bottom: 0.75rem;
}

.disclaimer-modal-buttons {
    padding: 1.5rem 2.5rem 2.5rem 2.5rem;
    flex-shrink: 0;
    display: flex;
    gap: 1rem;
    background: var(--white);
    border-top: 1px solid var(--border);
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
    flex-wrap: wrap;
}

.disclaimer-modal-buttons .btn {
    flex: 1;
    min-width: 140px;
    justify-content: center;
}

.btn-disagree {
    background: transparent;
    color: var(--text-light);
    border: 1px solid var(--border);
}

.btn-disagree:hover {
    background: #FEE2E2;
    color: #991B1B;
    border-color: #FECACA;
}

body.modal-locked {
    overflow: hidden;
}

/* ── RESPONSIVE ───────────────────────────────────────────────── */
@media (max-width: 1024px) {
    .strengths-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }

    .grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .attorney-profile {
        grid-template-columns: 260px 1fr;
        gap: 2rem;
    }

    .attorney-card-big {
        grid-template-columns: 1fr;
    }

    .attorney-card-big .attorney-card-img {
        aspect-ratio: 3/4;
        max-height: 380px;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 1.25rem;
    }

    .section {
        padding: 3.5rem 0;
    }

    .hero {
        padding: 5rem 0 4rem;
    }

    .nav-toggle {
        display: flex;
        width: 32px;
        height: 24px;
        position: relative;
        z-index: 1100;
    }

    .nav-toggle span {
        position: absolute;
        left: 0;
        width: 100%;
        height: 2px;
        background: var(--navy);
        border-radius: 2px;
        transition: all 0.35s cubic-bezier(0.68, -0.55, 0.27, 1.55);
    }

    .nav-toggle span:nth-child(1) {
        top: 0;
    }

    .nav-toggle span:nth-child(2) {
        top: 50%;
        transform: translateY(-50%);
    }

    .nav-toggle span:nth-child(3) {
        bottom: 0;
    }

    .nav-toggle.active span {
        background: var(--accent-light);
    }

    .nav-toggle.active span:nth-child(1) {
        top: 50%;
        transform: translateY(-50%) rotate(45deg);
    }

    .nav-toggle.active span:nth-child(2) {
        opacity: 0;
        transform: translateX(-12px);
    }

    .nav-toggle.active span:nth-child(3) {
        bottom: auto;
        top: 50%;
        transform: translateY(-50%) rotate(-45deg);
    }

    .nav-links {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: linear-gradient(160deg, var(--navy) 0%, var(--navy-dark) 100%);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 0;
        padding: 5rem 2rem 3rem;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.4s ease, visibility 0.4s ease;
        overflow-y: auto;
        z-index: 1050;
    }

    .nav-links.open {
        opacity: 1;
        visibility: visible;
        transform: none;
    }

    .nav-links li {
        width: 100%;
        max-width: 320px;
        text-align: center;
        opacity: 0;
        transform: translateY(16px);
        transition: opacity 0.4s ease, transform 0.4s ease;
    }

    .nav-links.open li {
        opacity: 1;
        transform: translateY(0);
    }

    .nav-links.open li:nth-child(1) {
        transition-delay: 0.08s;
    }

    .nav-links.open li:nth-child(2) {
        transition-delay: 0.14s;
    }

    .nav-links.open li:nth-child(3) {
        transition-delay: 0.20s;
    }

    .nav-links.open li:nth-child(4) {
        transition-delay: 0.26s;
    }

    .nav-links.open li:nth-child(5) {
        transition-delay: 0.32s;
    }

    .nav-links.open li:nth-child(6) {
        transition-delay: 0.38s;
    }

    .nav-links a {
        display: block;
        padding: 1rem 0;
        font-family: var(--font-serif);
        font-size: 1.35rem;
        font-weight: 400;
        color: rgba(255, 255, 255, 1);
        letter-spacing: 0.02em;
        border-bottom: 1px solid rgba(255, 255, 255, 0.06);
        transition: color 0.3s ease, letter-spacing 0.3s ease;
    }

    .nav-links a:hover,
    .nav-links a.active {
        color: rgba(255, 255, 255, 1);
        letter-spacing: 0.06em;
    }

    .nav-links a.active {
        border-bottom-color: rgba(255, 255, 255, 1);
    }

    .nav-links a::after {
        display: none;
    }

    .topbar {
        display: none;
    }

    .grid-2,
    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr;
    }

    .strengths-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

    .form-row {
        grid-template-columns: 1fr;
    }

    .attorney-profile {
        grid-template-columns: 1fr;
    }

    .attorney-photo {
        max-width: 320px;
    }

    /* Override for 2-col grids on mobile */
    .grid-mobile-2 {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 1rem;
    }

    /* Logo Mobile Scaling (20% smaller) */
    .animated-logo {
        font-size: 1.44rem;
    }

    .animated-logo .fade-out {
        font-size: 1.44rem;
    }

    .navbar.scrolled .animated-logo {
        font-size: 1.2rem;
    }

    /* Disclaimer Mobile Fixes */
    .disclaimer-modal {
        padding: 1rem;
    }

    .disclaimer-modal-box {
        padding: 0;
        max-height: 90vh;
    }

    .disclaimer-modal-header {
        padding: 1.5rem 1.5rem 0.5rem 1.5rem;
    }

    .disclaimer-modal-content {
        padding: 0.5rem 1.5rem 1rem 1.5rem;
    }

    .disclaimer-modal-box h2 {
        font-size: 1.15rem;
    }

    .disclaimer-modal-box p {
        font-size: 0.85rem;
        margin-bottom: 1rem;
    }

    .disclaimer-modal-buttons {
        flex-direction: column;
        gap: 0.75rem;
        padding: 1rem 1.5rem 1.5rem 1.5rem;
    }

    .disclaimer-modal-buttons .btn {
        width: 100%;
    }

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

    .footer-legal {
        justify-content: center;
    }

    /* Hero Tagline Mobile Stack */
    .hero .container {
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 100%;
        padding: 0 1.5rem;
        overflow: visible;
    }

    .hero h1 {
        font-size: clamp(3rem, 10vw, 3.75rem);
        white-space: normal;
        display: block;
        width: 100%;
        padding: 0;
        animation: none;
        text-align: center;
        line-height: 1.05;
    }

    .hero h1 span {
        display: block;
        margin-bottom: 0.25rem;
    }

    .hero h1 .h1-sep {
        display: none;
    }

    /* Maintain centering for static elements */
    .hero-eyebrow, 
    .hero-text,
    .cta-buttons {
        width: 100%;
        max-width: 100%;
        margin-left: auto;
        margin-right: auto;
        text-align: center;
    }
}

/* ── UTILITY ──────────────────────────────────────────────────── */
.text-center {
    text-align: center;
}

.text-accent {
    color: var(--accent);
}

.mt-1 {
    margin-top: 0.5rem;
}

.mt-2 {
    margin-top: 1rem;
}

.mt-3 {
    margin-top: 1.5rem;
}

.mt-4 {
    margin-top: 2rem;
}

.mb-0 {
    margin-bottom: 0;
}

.mb-1 {
    margin-bottom: 0.5rem;
}

.mb-2 {
    margin-bottom: 1rem;
}

.mb-3 {
    margin-bottom: 1.5rem;
}

.mb-4 {
    margin-bottom: 2rem;
}

.divider {
    width: 48px;
    height: 2px;
    background: var(--accent);
    margin-top: 1rem;
    margin-bottom: 1.5rem;
}

.divider.center {
    margin-left: auto;
    margin-right: auto;
}