:root {
    --navy: #0a1628;
    --navy-light: #0d2044;
    --gold: #c9a84c;
    --gold-light: #dfc06a;
    --gold-pale: #f5e9c8;
    --white: #ffffff;
    --cream: #f8f5f0;
    --text: #1c1c2e;
    --text-muted: #64748b;
    --border: #e2e8f0;
    --shadow: 0 4px 24px rgba(0,0,0,0.08);
    --shadow-lg: 0 12px 48px rgba(0,0,0,0.12);
    --radius: 4px;
    --transition: all 0.3s ease;
    --card-dark: #0f2242;
    --border-dark: rgba(255, 255, 255, 0.08);
    --text-on-dark: rgba(255, 255, 255, 0.75);
}

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

html { scroll-behavior: smooth; scroll-padding-top: 120px; }

body {
    font-family: 'Inter', sans-serif;
    color: var(--text);
    line-height: 1.7;
    background: var(--white);
}

html.js .reveal {
    opacity: 0;
    transform: translateY(28px);
}

html:not(.js) .reveal {
    opacity: 1;
    transform: none;
}

html.js .reveal.visible {
    opacity: 1;
    transform: none;
}


/* === TYPOGRAPHY === */
h1, h2, h3, h4 { font-family: 'Playfair Display', serif; line-height: 1.2; }

.section-label {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 1rem;
}

.section-title { font-size: clamp(1.8rem, 4vw, 3rem); margin-bottom: 1.5rem; }

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 600px;
    line-height: 1.8;
}

/* === BUTTONS === */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.85rem 2rem;
    border-radius: var(--radius);
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
    border: 2px solid transparent;
    font-family: 'Inter', sans-serif;
}

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

.btn-gold:hover {
    background: var(--gold-light);
    border-color: var(--gold-light);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(201,168,76,0.3);
}

.btn-outline {
    background: transparent;
    color: var(--white);
    border-color: rgba(255,255,255,0.5);
}

.btn-outline:hover {
    background: rgba(255,255,255,0.1);
    border-color: var(--white);
}

.btn-outline-dark {
    background: transparent;
    color: var(--navy);
    border-color: var(--navy);
}

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

/* === LAYOUT === */
.container { max-width: 1360px; margin: 0 auto; padding: 0 2rem; }

section { padding: 6rem 0; }

.timeline-section { padding: 3.5rem 0 4.5rem; }

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

/* === HEADER === */
.site-header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    padding: 1.75rem 0;
    border-bottom: 1px solid transparent;
    transition: padding 0.25s ease, background 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.site-header.scrolled {
    background: rgba(10,22,40,0.97);
    backdrop-filter: blur(12px);
    padding: 1rem 0;
    border-bottom-color: rgba(201,168,76,0.15);
    box-shadow: 0 2px 24px rgba(0,0,0,0.2);
}

.header-inner {
    max-width: 1360px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo { text-decoration: none; display: flex; flex-direction: column; transition: opacity 0.15s ease; }

.logo:hover { opacity: 0.8; }

.site-header .logo {
    flex-direction: row;
    align-items: center;
    gap: 0.9rem;
    min-width: 0;
    padding-bottom: 0.6rem;
    border-bottom: 1px solid rgba(201,168,76,0.3);
}

.logo-text { display: flex; flex-direction: column; justify-content: center; min-width: 0; max-width: 340px; }

.logo-badge {
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 70px;
    height: 70px;
    border-radius: 50%;
    border: 1.75px solid var(--gold);
    background: rgba(201,168,76,0.06);
    color: var(--gold);
    font-family: 'Inter', sans-serif;
    font-weight: 800;
    font-size: 1.18rem;
    letter-spacing: 0.12em;
    padding: 0 0 0 0.12em;
    line-height: 1;
}

.logo-name {
    font-family: 'Playfair Display', serif;
    font-size: 1.3rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: var(--white);
    line-height: 1.25;
    white-space: nowrap;
}

.logo-sub {
    display: block;
    font-size: 0.68rem;
    letter-spacing: 0.4px;
    text-transform: uppercase;
    color: var(--gold);
    line-height: 1.45;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    list-style: none;
}

.nav-links a {
    text-decoration: none;
    color: rgba(255,255,255,0.8);
    font-size: 0.85rem;
    font-weight: 500;
    padding: 0.5rem 0.7rem;
    border-radius: var(--radius);
    transition: var(--transition);
    letter-spacing: 0.3px;
    white-space: nowrap;
}

.nav-links a:hover,
.nav-links a.active { color: var(--gold); }

.nav-dropdown { position: relative; }

.nav-dropdown > a { display: inline-flex; align-items: center; }

.nav-caret {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px; height: 26px;
    margin-left: 2px;
    margin-bottom: -2px;
    opacity: 0.7;
}

.nav-caret::before {
    content: '';
    display: block;
    width: 6px; height: 6px;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    transform: rotate(45deg);
    transition: transform 0.2s ease;
}

.nav-dropdown:hover .nav-caret::before,
.nav-dropdown:focus-within .nav-caret::before,
.nav-dropdown.open .nav-caret::before { transform: rotate(-135deg); }

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 170px;
    margin: 0;
    padding: 0.5rem;
    list-style: none;
    background: var(--card-dark);
    border: 1px solid var(--border-dark);
    border-radius: 8px;
    box-shadow: 0 12px 32px rgba(0,0,0,0.35);
    opacity: 0;
    visibility: hidden;
    transform: translateY(6px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
    z-index: 200;
}

.nav-dropdown:hover .dropdown-menu,
.nav-dropdown:focus-within .dropdown-menu,
.nav-dropdown.open .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(2px);
}

.dropdown-menu a {
    display: block;
    padding: 0.6rem 0.9rem !important;
    border-radius: 6px;
    color: rgba(255,255,255,0.85);
    font-size: 0.85rem;
    font-weight: 500;
    text-decoration: none;
    white-space: nowrap;
}

.dropdown-menu a:hover,
.dropdown-menu a.active { background: rgba(201,168,76,0.12); color: var(--gold); }

.mega-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(6px);
    display: grid;
    grid-template-columns: repeat(4, minmax(140px, 1fr));
    gap: 1.5rem;
    width: 720px;
    margin: 0;
    padding: 1.5rem;
    background: var(--card-dark);
    border: 1px solid var(--border-dark);
    border-radius: 10px;
    box-shadow: 0 16px 40px rgba(0,0,0,0.4);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
    z-index: 200;
}

.nav-dropdown:hover .mega-menu,
.nav-dropdown:focus-within .mega-menu,
.nav-dropdown.open .mega-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(2px);
}

.mega-col { display: flex; flex-direction: column; gap: 0.15rem; min-width: 0; }

.mega-col-heading {
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 0.6rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border-dark);
}

.mega-col a {
    display: block;
    padding: 0.45rem 0;
    color: rgba(255,255,255,0.8);
    font-size: 0.82rem;
    font-weight: 500;
    text-decoration: none;
    white-space: normal;
    line-height: 1.35;
    transition: var(--transition);
}

.mega-col a:hover { color: var(--gold); padding-left: 0.25rem; }

.header-actions { display: flex; align-items: center; gap: 1rem; flex-shrink: 0; }

.btn-call {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--gold);
    color: var(--navy);
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 0.2px;
    padding: 0.65rem 1.35rem;
    border-radius: 999px;
    text-decoration: none;
    white-space: nowrap;
    transition: var(--transition);
    flex-shrink: 0;
}

.btn-call i { font-size: 0.78rem; }

.btn-call:hover {
    background: var(--gold-light);
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(201,168,76,0.35);
}

.nav-cta {
    background: var(--gold) !important;
    color: var(--navy) !important;
    font-weight: 600 !important;
    padding: 0.5rem 1.25rem !important;
    border-radius: var(--radius);
}

.nav-cta:hover {
    background: var(--gold-light) !important;
    transform: translateY(-1px);
}

.nav-admin-link {
    font-size: 0.78rem !important;
    color: rgba(255,255,255,0.4) !important;
    border: 1px solid rgba(255,255,255,0.15) !important;
    padding: 0.3rem 0.75rem !important;
    border-radius: var(--radius) !important;
}

.nav-admin-link:hover {
    color: rgba(255,255,255,0.75) !important;
    border-color: rgba(255,255,255,0.35) !important;
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 4px;
    background: none;
    border: none;
}

.hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--white);
    transition: var(--transition);
    border-radius: 2px;
}

.mobile-nav {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: var(--navy);
    z-index: 1001;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2rem;
}

.mobile-nav.open { display: flex; }

.mobile-nav a {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    color: var(--white);
    text-decoration: none;
    transition: var(--transition);
}

.mobile-nav a:hover { color: var(--gold); }

.mobile-close {
    position: absolute;
    top: 1.5rem; right: 2rem;
    background: none;
    border: none;
    color: var(--white);
    font-size: 2.5rem;
    cursor: pointer;
    line-height: 1;
}

/* === HERO === */
.hero {
    min-height: 100vh;
    background: var(--navy);
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 30% 60%, rgba(201,168,76,0.08) 0%, transparent 55%),
        linear-gradient(110deg, rgba(10,22,40,0.97) 0%, rgba(10,22,40,0.88) 50%, rgba(13,32,68,0.72) 100%),
        url('uploads/hero.jpg') center/cover no-repeat;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 1360px;
    margin: 0 auto;
    padding: 5rem 2rem 4rem;
}

.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.75rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 2rem;
}

.hero-eyebrow::before {
    content: '';
    display: block;
    width: 40px;
    height: 1px;
    background: var(--gold);
}

.hero h1 {
    font-size: clamp(2.5rem, 6vw, 5rem);
    color: var(--white);
    max-width: 750px;
    margin-bottom: 1.5rem;
    line-height: 1.1;
    text-shadow: 0 2px 16px rgba(0,0,0,0.45);
}

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

.hero-text {
    font-size: 1.15rem;
    color: rgba(255,255,255,0.88);
    max-width: 520px;
    margin-bottom: 3rem;
    line-height: 1.8;
    text-shadow: 0 1px 8px rgba(0,0,0,0.35);
}

.hero-actions { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }

.hero-phone-link {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.85rem 0.25rem;
    color: var(--white);
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.3px;
    text-decoration: none;
    border-bottom: 2px solid transparent;
    transition: var(--transition);
}

.hero-phone-link i { color: var(--gold); font-size: 0.9rem; }

.hero-phone-link:hover { border-bottom-color: var(--gold); color: var(--gold-light); }

.hero-scroll {
    position: absolute;
    bottom: 2.5rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255,255,255,0.35);
    font-size: 0.7rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    text-decoration: none;
    cursor: pointer;
    animation: scrollBounce 2s ease-in-out infinite;
    transition: color 0.2s ease;
}

.hero-scroll:hover { color: rgba(255,255,255,0.6); }

.hero-scroll::after {
    content: '';
    display: block;
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, rgba(255,255,255,0.3), transparent);
}

@keyframes scrollBounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(6px); }
}

.hero-deco {
    position: absolute;
    right: 0; top: 0;
    width: 40%; height: 100%;
    opacity: 0.03;
    background: repeating-linear-gradient(
        45deg, var(--gold), var(--gold) 1px, transparent 1px, transparent 60px
    );
}

/* === PAGE HERO (inner pages) === */
.page-hero {
    background: var(--navy);
    padding: 9.5rem 0 3.5rem;
    position: relative;
    overflow: hidden;
}

.page-hero::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(to right, transparent, var(--gold), transparent);
}

.page-hero-inner { max-width: 1360px; margin: 0 auto; padding: 0 2rem; }

.page-hero h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    color: var(--white);
    margin-bottom: 1rem;
}

.page-hero p {
    color: rgba(255,255,255,0.6);
    font-size: 1.1rem;
    max-width: 500px;
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    color: rgba(255,255,255,0.4);
    margin-bottom: 1.5rem;
}

.breadcrumb a { color: var(--gold); text-decoration: none; }
.breadcrumb span { color: rgba(255,255,255,0.3); }

/* === CARDS === */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.card {
    background: var(--white);
    border-radius: 8px;
    padding: 2.5rem;
    border: 1px solid var(--border);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 3px;
    background: var(--gold);
    transform: scaleX(0);
    transition: var(--transition);
}

.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: transparent; }
.card:hover::before { transform: scaleX(1); }

.card-icon {
    width: 52px; height: 52px;
    background: var(--gold-pale);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    color: var(--gold);
}

.card h3 { font-size: 1.25rem; margin-bottom: 0.75rem; color: var(--navy); }
.card p { color: var(--text-muted); font-size: 0.95rem; line-height: 1.7; }

.card-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin-top: 1.25rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--gold);
    text-decoration: none;
    transition: var(--transition);
}

.card-link:hover { gap: 0.7rem; }

/* === STATS === */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 900px;
    margin: 0 auto;
}

.stat-item {
    text-align: center;
    padding: 2rem;
    border-right: 1px solid rgba(255,255,255,0.08);
}

.stat-item:last-child { border-right: none; }

.stat-number {
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    color: var(--gold);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.8rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: rgba(255,255,255,0.5);
}

/* === TEAM === */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 2rem;
}

.team-card {
    background: var(--white);
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--border);
    transition: var(--transition);
}

.team-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }

.team-photo {
    width: 100%;
    aspect-ratio: 3/4;
    object-fit: cover;
    object-position: center top;
    display: block;
}

.team-photo-placeholder {
    width: 100%;
    aspect-ratio: 3/4;
    background: linear-gradient(135deg, var(--navy) 0%, #1a3a6b 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    color: rgba(255,255,255,0.15);
}

.team-info { padding: 1.5rem; }

.team-info h3 { font-size: 1.15rem; color: var(--navy); margin-bottom: 0.25rem; }

.team-role {
    font-size: 0.8rem;
    color: var(--gold);
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 0.75rem;
}

.team-bio { font-size: 0.9rem; color: var(--text-muted); line-height: 1.6; }

.team-specialties { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 1rem; }

.tag {
    font-size: 0.72rem;
    padding: 0.2rem 0.65rem;
    background: var(--gold-pale);
    color: var(--navy);
    border-radius: 20px;
    font-weight: 500;
}

/* === TEAM BY DIVISION === */
.division-block { display: grid; grid-template-columns: 1fr 1.6fr; gap: 3.5rem; align-items: start; }
.division-block + .division-block { margin-top: 5rem; padding-top: 5rem; border-top: 1px solid var(--border); }

.division-info { position: sticky; top: 120px; }
.division-title { font-size: clamp(1.4rem, 2.6vw, 1.9rem); color: var(--navy); margin-bottom: 0; }

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

.member-tile {
    position: relative;
    display: block;
    aspect-ratio: 3/4;
    border-radius: 4px;
    overflow: hidden;
    text-decoration: none;
    background: var(--navy);
}

.member-tile:nth-child(even) { margin-top: 3rem; }

.member-tile-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    display: block;
    transition: transform 0.5s ease;
}

.member-tile-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--navy) 0%, #1a3a6b 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: rgba(255,255,255,0.15);
}

.member-tile:hover .member-tile-photo { transform: scale(1.06); }

.member-tile-caption {
    position: absolute;
    left: 0; right: 0; bottom: 0;
    padding: 1.25rem 1.1rem 1rem;
    background: linear-gradient(to top, rgba(10,22,40,0.92) 15%, rgba(10,22,40,0.55) 60%, transparent 100%);
    transition: opacity 0.25s ease;
}

.member-tile-name {
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: var(--white);
    margin-bottom: 0.2rem;
}

.member-tile-role {
    font-size: 0.78rem;
    color: var(--gold-light);
    font-weight: 600;
}

.member-tile-overlay {
    position: absolute;
    inset: 0;
    background: rgba(10, 22, 40, 0.94);
    color: var(--white);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.member-tile:hover .member-tile-overlay,
.member-tile:focus-visible .member-tile-overlay,
.member-tile.touched .member-tile-overlay {
    opacity: 1;
    transform: translateY(0);
}

.member-tile:hover .member-tile-caption,
.member-tile:focus-visible .member-tile-caption,
.member-tile.touched .member-tile-caption { opacity: 0; }

.member-tile-overlay-name {
    font-family: 'Playfair Display', serif;
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 0.15rem;
}

.member-tile-overlay-role {
    font-size: 0.78rem;
    color: var(--gold-light);
    font-weight: 600;
    margin-bottom: 0.9rem;
}

.member-tile-highlights {
    list-style: none;
    padding: 0;
    margin: 0 0 1rem;
    font-size: 0.8rem;
    line-height: 1.7;
}

.member-tile-highlights li {
    padding-left: 1rem;
    position: relative;
    color: rgba(255,255,255,0.85);
}

.member-tile-highlights li::before {
    content: '—';
    position: absolute;
    left: 0;
    color: var(--gold);
}

.member-tile-cta {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

@media (max-width: 900px) {
    .division-block { grid-template-columns: 1fr; gap: 2rem; }
    .division-info { position: static; }
}

@media (max-width: 480px) {
    .division-members { grid-template-columns: 1fr; }
    .member-tile:nth-child(even) { margin-top: 0; }
}

/* === TEAM MEMBER PROFILE PAGE === */
.profile-layout { display: grid; grid-template-columns: 320px 1fr; gap: 3.5rem; align-items: start; }
.profile-photo-col { position: sticky; top: 120px; }

.profile-photo {
    width: 100%;
    aspect-ratio: 3/4;
    object-fit: cover;
    object-position: center top;
    border-radius: 4px;
    display: block;
}

.profile-photo-placeholder {
    width: 100%;
    aspect-ratio: 3/4;
    background: linear-gradient(135deg, var(--navy) 0%, #1a3a6b 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    color: rgba(255,255,255,0.15);
    border-radius: 4px;
}

.profile-contact { margin-top: 1.25rem; display: flex; flex-direction: column; gap: 0.6rem; }
.profile-contact a { font-size: 0.85rem; color: var(--text-muted); text-decoration: none; display: flex; align-items: center; gap: 0.5rem; transition: var(--transition); }
.profile-contact a:hover { color: var(--navy); }
.profile-contact-icon { font-style: normal; color: var(--gold); }

.profile-bio { color: var(--text-muted); line-height: 1.85; margin-top: 0.75rem; }

.profile-credentials { list-style: none; padding: 0; margin: 0.75rem 0 0; }
.profile-credentials li { padding: 0.6rem 0 0.6rem 1.25rem; border-bottom: 1px solid var(--border); font-size: 0.92rem; color: var(--text); position: relative; }
.profile-credentials li:last-child { border-bottom: none; }
.profile-credentials li::before { content: ''; position: absolute; left: 0; top: 1rem; width: 6px; height: 6px; border-radius: 50%; background: var(--gold); }

@media (max-width: 800px) {
    .profile-layout { grid-template-columns: 1fr; gap: 2rem; }
    .profile-photo-col { position: static; max-width: 320px; }
}

/* === COMMUNITY ENGAGEMENT === */
.community-group { margin-bottom: 2.75rem; }
.community-group:last-child { margin-bottom: 0; }

.community-group-heading {
    font-family: 'Playfair Display', serif;
    font-size: 1.25rem;
    color: var(--navy);
    margin-bottom: 1.1rem;
    padding-bottom: 0.4rem;
    border-bottom: 2px solid var(--gold);
    display: inline-block;
}

.community-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.25rem;
}

.community-card {
    display: flex;
    align-items: stretch;
    background: var(--white);
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--border);
    max-width: 420px;
    transition: var(--transition);
    cursor: pointer;
}

.community-card:hover { box-shadow: var(--shadow-lg); border-color: var(--gold); }
.community-card:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

.community-card-photo {
    width: 100px;
    min-width: 100px;
    aspect-ratio: 1/1;
    object-fit: cover;
    display: block;
}

.community-card-placeholder {
    width: 100px;
    min-width: 100px;
    aspect-ratio: 1/1;
    background: linear-gradient(135deg, var(--navy) 0%, #1a3a6b 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: rgba(255,255,255,0.15);
}

.community-card-body { padding: 1rem 1.1rem; min-width: 0; }

.community-card-title { font-size: 0.98rem; color: var(--navy); margin-bottom: 0.3rem; line-height: 1.3; }
.community-card-desc { font-size: 0.82rem; color: var(--text-muted); line-height: 1.5; }

.community-card-more {
    display: inline-block;
    margin-top: 0.5rem;
    font-size: 0.76rem;
    font-weight: 600;
    color: var(--navy);
}

/* Community engagement modal */
.community-modal {
    display: none;
    position: fixed; inset: 0;
    background: rgba(10,22,40,0.75);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.community-modal.open { display: flex; }

.community-modal-inner {
    background: var(--white);
    border-radius: 10px;
    max-width: 480px;
    width: 100%;
    max-height: 85vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 20px 60px rgba(0,0,0,0.35);
}

.community-modal-close {
    position: absolute;
    top: 0.75rem; right: 0.75rem;
    background: rgba(255,255,255,0.9);
    border: none;
    border-radius: 50%;
    width: 34px; height: 34px;
    font-size: 1.4rem; line-height: 1;
    cursor: pointer;
    color: var(--navy);
    z-index: 2;
}

.community-modal-photo {
    width: 100%;
    max-height: 60vh;
    object-fit: contain;
    display: block;
    background: var(--cream);
}

.community-modal-body { padding: 1.75rem; }
.community-modal-category {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 0.5rem;
}
.community-modal-body h3 { font-size: 1.4rem; color: var(--navy); margin-bottom: 0.9rem; }
.community-modal-body p { font-size: 0.95rem; color: #64748b; line-height: 1.75; white-space: pre-line; }

/* === GALLERY (embedded in Community Engagement) === */
.album-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
}

.album-card {
    position: relative;
    max-width: 320px;
    aspect-ratio: 4/3;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    background: var(--navy);
}

.album-card:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

.album-cover {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.album-card:hover .album-cover { transform: scale(1.06); }

.album-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(10,22,40,0.88) 15%, rgba(10,22,40,0.2) 60%, transparent 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 1.1rem;
    color: var(--white);
}

.album-card-name {
    font-family: 'Playfair Display', serif;
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 0.2rem;
}

.album-card-count {
    font-size: 0.78rem;
    color: rgba(255,255,255,0.75);
    letter-spacing: 0.3px;
}

.album-modal-inner { max-width: 780px; }

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1.5rem;
}

.gallery-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    background: var(--navy);
}

.gallery-item img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease, opacity 0.4s ease;
}

.gallery-item:hover img { transform: scale(1.04); opacity: 0.85; }

.gallery-caption {
    padding: 0.6rem 0.85rem;
    background: var(--white);
    border-top: 1px solid var(--border);
}

.gallery-caption-title { font-size: 0.85rem; font-weight: 600; color: var(--navy); margin-bottom: 1px; }
.gallery-caption-text { font-size: 0.78rem; color: var(--text-muted); }

#lightbox {
    display: none; position: fixed; inset: 0;
    background: rgba(0,0,0,0.92); z-index: 9999;
    align-items: center; justify-content: center;
    flex-direction: column; padding: 2rem;
}
#lightbox.open { display: flex; }
#lightbox img { max-width: min(90vw, 900px); max-height: 80vh; border-radius: 6px; box-shadow: 0 20px 60px rgba(0,0,0,0.6); }
#lightbox-caption { color: rgba(255,255,255,0.75); margin-top: 0.75rem; font-size: 0.9rem; text-align: center; }
#lightbox-close { position: fixed; top: 1.5rem; right: 1.5rem; background: none; border: none; color: #fff; font-size: 2rem; cursor: pointer; opacity: 0.8; }
#lightbox-close:hover { opacity: 1; }
#lightbox-prev, #lightbox-next { position: fixed; top: 50%; transform: translateY(-50%); background: rgba(255,255,255,0.1); border: none; color: #fff; font-size: 2rem; cursor: pointer; padding: 0.5rem 1rem; border-radius: 4px; transition: background 0.2s; }
#lightbox-prev { left: 1rem; }
#lightbox-next { right: 1rem; }
#lightbox-prev:hover, #lightbox-next:hover { background: rgba(255,255,255,0.25); }

/* === LEGAL PAGES (Disclaimer / Privacy Policy) === */
.legal-content { max-width: 760px; margin: 0 auto; }
.legal-heading { font-size: 1.2rem; color: var(--navy); margin: 2rem 0 0.75rem; }
.legal-heading:first-child { margin-top: 0; }
.legal-paragraph { color: var(--text-muted); line-height: 1.85; margin-bottom: 1.25rem; }
.legal-paragraph:last-child { margin-bottom: 0; }

/* === PRACTICE AREAS === */
.practice-layout {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 4rem;
    align-items: start;
}

.practice-sidebar { position: sticky; top: 8rem; }

.practice-list {
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
}

.practice-item {
    border-bottom: 1px solid var(--border);
    scroll-margin-top: 120px;
}
.practice-item:last-child { border-bottom: none; }

.practice-trigger {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.75rem 2rem;
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
    transition: var(--transition);
    gap: 1rem;
    font-family: 'Inter', sans-serif;
    color: inherit;
}

.practice-trigger:hover { background: var(--cream); }
.practice-trigger.active { background: var(--navy); color: var(--white); }

.practice-trigger-left { display: flex; align-items: center; gap: 1rem; }

.practice-num {
    font-size: 0.75rem;
    color: var(--gold);
    font-weight: 600;
    letter-spacing: 1px;
    min-width: 2rem;
}

.practice-trigger h3 {
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    color: inherit;
}

.practice-icon { font-size: 1.25rem; min-width: 2rem; text-align: center; color: var(--gold); }

.practice-chevron {
    width: 18px; height: 18px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg);
    transition: var(--transition);
    opacity: 0.4;
    flex-shrink: 0;
}

.practice-trigger.active .practice-chevron {
    transform: rotate(-135deg);
    opacity: 1;
    border-color: var(--gold);
}

.practice-body { max-height: 0; overflow: hidden; transition: max-height 0.4s ease; }
.practice-body.open { max-height: 500px; }
.tall-accordion-page .practice-body.open { max-height: 1400px; }

.practice-body-inner {
    padding: 0 2rem 2rem 5rem;
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.8;
}

/* === CAREERS === */
.job-meta { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1.25rem; }

.job-subheading {
    font-family: 'Playfair Display', serif;
    font-size: 1.05rem;
    color: var(--navy);
    margin: 1.5rem 0 0.75rem;
}

.job-requirements { list-style: none; padding: 0; margin: 0 0 1rem; }

.job-requirements li {
    padding: 0.5rem 0 0.5rem 1.25rem;
    border-bottom: 1px solid var(--border);
    position: relative;
    color: var(--text-muted);
}

.job-requirements li:last-child { border-bottom: none; }

.job-requirements li::before {
    content: '';
    position: absolute;
    left: 0; top: 1rem;
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--gold);
}

.job-closing {
    font-size: 0.85rem;
    color: var(--gold);
    font-weight: 600;
    margin-top: 0.75rem;
}

/* === PUBLICATIONS === */
.pub-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
}

.pub-card {
    background: var(--white);
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--border);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.pub-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }

.pub-card-img-placeholder {
    width: 100%; height: 200px;
    background: linear-gradient(135deg, var(--navy) 0%, #1a3a6b 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: rgba(255,255,255,0.15);
}

.pub-body { padding: 1.75rem; flex: 1; display: flex; flex-direction: column; }

.pub-meta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
}

.pub-cat { color: var(--gold); font-weight: 600; text-transform: uppercase; letter-spacing: 1px; }

.pub-body h3 { font-size: 1.15rem; color: var(--navy); margin-bottom: 0.75rem; line-height: 1.4; }
.pub-body p { font-size: 0.9rem; color: var(--text-muted); flex: 1; line-height: 1.7; }
.pub-body .card-link { margin-top: 1.25rem; }

/* === ABOUT SPLIT === */
.about-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: stretch;
}

.about-img-wrap { position: relative; height: 100%; }

.about-img { width: 100%; height: 100%; border-radius: 8px; display: block; }

.about-img-deco {
    position: absolute;
    bottom: -2rem; right: -2rem;
    width: 60%; height: 60%;
    border: 3px solid var(--gold);
    border-radius: 8px;
    z-index: -1;
}

.about-photo-caption {
    position: absolute;
    right: 1.5rem;
    bottom: 1.5rem;
    max-width: 80%;
    padding: 0.85rem 1.25rem;
    text-align: right;
    background: rgba(10,22,40,0.72);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border-radius: 6px;
    border: 1px solid rgba(201,168,76,0.35);
}

.about-photo-caption-name {
    font-family: 'Playfair Display', serif;
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.2;
    color: var(--white);
}

.about-photo-caption-title {
    margin-top: 3px;
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--gold);
}

/* === STORY (About page — photo floated left, text wraps around) === */
.story-content { display: flow-root; max-width: 900px; margin: 0 auto; }

.story-photo {
    position: relative;
    float: left;
    width: 300px;
    max-width: 45%;
    margin: 0.25rem 2rem 1.25rem 0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0,0,0,0.3);
}

.story-photo img { width: 100%; height: auto; display: block; }

/* === HISTORY TIMELINE === */
.timeline {
    position: relative;
    max-width: 860px;
    margin: 0 auto;
    padding-left: 2rem;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, var(--gold), rgba(201,168,76,0.15));
}

.timeline-item {
    position: relative;
    padding: 0 0 3.5rem 3rem;
}

.timeline-item:last-child { padding-bottom: 0; }

.timeline-marker {
    position: absolute;
    left: -1px;
    top: 0;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.timeline-year {
    background: var(--navy);
    color: var(--gold);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 1px;
    padding: 0.3rem 0.65rem;
    border-radius: 20px;
    border: 2px solid var(--gold);
    white-space: nowrap;
}

.timeline-content {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.75rem 2rem;
    box-shadow: 0 2px 12px rgba(0,0,0,0.05);
}

.timeline-content h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.2rem;
    color: var(--navy);
    margin-bottom: 0.75rem;
}

.timeline-content p {
    color: var(--text-muted);
    line-height: 1.85;
    font-size: 0.95rem;
}

.timeline-divisions {
    list-style: none;
    padding: 0;
    margin: 1rem 0 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.timeline-divisions li {
    padding: 0.5rem 1rem;
    background: var(--cream);
    border-left: 3px solid var(--gold);
    border-radius: 0 4px 4px 0;
    font-size: 0.88rem;
    color: var(--text-muted);
}

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

.value-item { text-align: center; padding: 2rem 1.5rem; }

.value-icon { font-size: 2.5rem; margin-bottom: 1rem; color: var(--gold); }

.value-item h3 { font-size: 1rem; color: var(--white); margin-bottom: 0.5rem; }
.value-item p { font-size: 0.9rem; color: rgba(255,255,255,0.5); line-height: 1.7; }

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

.contact-info-item {
    display: flex;
    gap: 1.25rem;
    align-items: flex-start;
    margin-bottom: 2rem;
}

.contact-icon {
    width: 48px; height: 48px;
    background: var(--gold-pale);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--navy);
    flex-shrink: 0;
}

.contact-info-text h4 {
    font-family: 'Inter', sans-serif;
    font-size: 0.8rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 0.3rem;
}

.contact-info-text p,
.contact-info-text a {
    color: var(--text-muted);
    font-size: 0.95rem;
    text-decoration: none;
    line-height: 1.6;
}

.contact-info-text a:hover { color: var(--navy); }

.contact-form {
    background: var(--white);
    border-radius: 8px;
    padding: 3rem;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
}

.contact-disclaimer {
    font-size: 0.78rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-top: 1.25rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--border);
}

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }

.form-group { margin-bottom: 1.5rem; }

.form-group label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    color: var(--text);
    margin-bottom: 0.5rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.85rem 1rem;
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    color: var(--text);
    background: var(--cream);
    transition: var(--transition);
    outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--gold);
    background: var(--white);
    box-shadow: 0 0 0 3px rgba(201,168,76,0.12);
}

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

/* === CTA BANNER === */
.cta-section { background: var(--gold); padding: 5rem 0; text-align: center; }

.cta-section h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); color: var(--navy); margin-bottom: 1rem; }
.cta-section p { color: rgba(10,22,40,0.7); margin-bottom: 2.5rem; font-size: 1.1rem; }

/* === FOOTER === */
.site-footer { background: var(--navy); color: rgba(255,255,255,0.6); padding: 5rem 0 0; }

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    max-width: 1360px;
    margin: 0 auto;
    padding: 0 2rem 4rem;
}

.footer-about p { font-size: 0.9rem; line-height: 1.8; max-width: 280px; margin-top: 1.25rem; }

.footer-col h4 {
    font-family: 'Inter', sans-serif;
    font-size: 0.75rem;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 1.25rem;
}

.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 0.6rem; }

.footer-col ul a {
    color: rgba(255,255,255,0.5);
    text-decoration: none;
    font-size: 0.9rem;
    transition: var(--transition);
}

.footer-col ul a:hover { color: var(--gold); }

.footer-view-all { color: var(--gold) !important; font-weight: 600; }

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.06);
    max-width: 1360px;
    margin: 0 auto;
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
}

.footer-legal-links { display: flex; align-items: center; gap: 0.6rem; color: rgba(255,255,255,0.4); }
.footer-legal-links a { color: rgba(255,255,255,0.5); text-decoration: none; transition: var(--transition); }
.footer-legal-links a:hover { color: var(--gold); }

.footer-social { display: flex; gap: 1.1rem; margin-top: 1.5rem; }

.social-link {
    width: 50px; height: 50px;
    border: 1.5px solid var(--gold);
    border-radius: 50%;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold);
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 700;
    transition: background 0.22s ease, border-color 0.22s ease, color 0.22s ease, transform 0.22s ease, box-shadow 0.22s ease;
}

.social-link:hover,
.social-link:focus-visible {
    background: var(--gold);
    border-color: var(--gold);
    color: var(--navy);
    transform: scale(1.08);
    box-shadow: 0 6px 18px rgba(201,168,76,0.4);
    outline: none;
}

.footer-partner { display: flex; align-items: center; gap: 0.85rem; margin-top: 1.5rem; }

.footer-partner-label {
    font-size: 0.7rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: rgba(255,255,255,0.4);
}

.footer-partner-logo-wrap {
    display: inline-flex;
    align-items: center;
    background: rgba(255,255,255,0.92);
    padding: 0.4rem 0.9rem;
    border-radius: 6px;
    transition: var(--transition);
}

.footer-partner-logo-wrap:hover { background: #fff; transform: translateY(-2px); }

.footer-partner-logo { height: 22px; width: auto; display: block; }

/* === HERO STAGGER ANIMATIONS === */
@keyframes heroFadeUp {
    from { opacity: 0; transform: translateY(28px); }
    to   { opacity: 1; transform: translateY(0); }
}

.hero .hero-eyebrow { animation: heroFadeUp 0.7s ease 0.3s both; }
.hero h1            { animation: heroFadeUp 0.7s ease 0.55s both; }
.hero .hero-text    { animation: heroFadeUp 0.7s ease 0.8s both; }
.hero .hero-actions { animation: heroFadeUp 0.7s ease 1.0s both; }
.hero .hero-scroll  { animation: heroFadeUp 0.7s ease 1.2s both, scrollBounce 2s ease-in-out 2.2s infinite; }

/* === WHY CHOOSE US STRIP === */
.why-strip {
    padding: 0;
    background: transparent;
    position: relative;
    z-index: 10;
    margin-top: -5rem;
    padding: 0 0 2rem;
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    background: var(--white);
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.14);
    overflow: hidden;
    border: 1px solid var(--border);
}

.why-item {
    padding: 2.5rem 2rem;
    border-right: 1px solid var(--border);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.why-item:last-child { border-right: none; }

.why-item::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: var(--gold);
    transform: scaleX(0);
    transform-origin: left;
    transition: var(--transition);
}

.why-item:hover { background: var(--cream); }
.why-item:hover::before { transform: scaleX(1); }

.why-icon { font-size: 2rem; margin-bottom: 1rem; display: block; color: var(--gold); }

.partners-strip { display: flex; justify-content: center; align-items: center; }

.partner-logo-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem 2.5rem;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--white);
    transition: var(--transition);
}

.partner-logo-link:hover {
    border-color: var(--gold);
    box-shadow: 0 12px 30px rgba(0,0,0,0.08);
    transform: translateY(-2px);
}

.partner-logo { height: 50px; width: auto; object-fit: contain; display: block; }

.why-item h4 {
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 0.4rem;
}

.why-item p {
    font-size: 0.875rem;
    color: var(--text-muted);
    line-height: 1.7;
}

/* === ANIMATIONS === */
.reveal {
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible { opacity: 1; transform: translateY(0); }

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }

@media (prefers-reduced-motion: reduce) {
    .reveal, .reveal-delay-1, .reveal-delay-2, .reveal-delay-3 {
        opacity: 1;
        transform: none;
        transition: none;
        transition-delay: 0s;
    }
    .hero-scroll { animation: none; }
}
.reveal-delay-3 { transition-delay: 0.3s; }

.page { animation: pageFadeIn 0.6s ease forwards; }

@keyframes pageFadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* === GOLD DIVIDER === */
.gold-divider { width: 60px; height: 3px; background: var(--gold); margin: 1.5rem 0; }
.gold-divider.center { margin: 1.5rem auto; }

/* === NOTICE / ALERT === */
.form-success {
    margin-top: 1.5rem;
    padding: 1rem 1.5rem;
    background: var(--gold-pale);
    border-radius: var(--radius);
    color: var(--navy);
    font-size: 0.95rem;
    border-left: 3px solid var(--gold);
}

/* === CHATBOT === */
#cbBtn {
    position: fixed;
    bottom: 4.5rem;
    right: 2rem;
    z-index: 1000;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: var(--gold);
    color: var(--navy);
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(0,0,0,0.22);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s, box-shadow 0.2s;
}

#cbBtn:hover { transform: scale(1.08); box-shadow: 0 6px 28px rgba(0,0,0,0.28); }

.back-to-top {
    position: fixed;
    bottom: 4.5rem;
    right: 6.75rem;
    z-index: 999;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: var(--navy);
    color: var(--gold);
    border: 1.5px solid var(--gold);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease, background 0.2s ease, color 0.2s ease;
}

.back-to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }

.back-to-top:hover { background: var(--gold); color: var(--navy); }

#cbBubble {
    position: fixed;
    bottom: 7.7rem;
    right: 1.4rem;
    z-index: 1000;
    background: #fff;
    color: var(--navy);
    border-radius: 16px 16px 4px 16px;
    padding: 0.7rem 1rem;
    font-size: 0.84rem;
    font-weight: 500;
    line-height: 1.45;
    max-width: 210px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.15);
    cursor: pointer;
    opacity: 0;
    pointer-events: none;
    transform: translateY(10px) scale(0.95);
    transition: opacity 0.3s ease, transform 0.3s ease;
}
#cbBubble.show {
    opacity: 1;
    pointer-events: all;
    transform: translateY(0) scale(1);
}
#cbBubble::after {
    content: '';
    position: absolute;
    bottom: -7px;
    right: 16px;
    border-left: 7px solid transparent;
    border-right: 2px solid transparent;
    border-top: 8px solid #fff;
}

#cbWindow {
    position: fixed;
    bottom: 9rem;
    right: 2rem;
    z-index: 1000;
    width: 360px;
    max-width: calc(100vw - 1.5rem);
    background: #f5f5f5;
    border-radius: 16px;
    box-shadow: 0 10px 50px rgba(0,0,0,0.2);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
    transform: translateY(16px) scale(0.97);
    transition: opacity 0.22s, transform 0.22s;
    max-height: 520px;
}

#cbWindow.open {
    opacity: 1;
    pointer-events: all;
    transform: translateY(0) scale(1);
}

.cb-header {
    background: var(--navy);
    padding: 0.9rem 1.1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-shrink: 0;
}

.cb-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--gold);
    color: var(--navy);
    font-weight: 700;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.cb-name {
    font-weight: 600;
    color: var(--white);
    font-size: 0.95rem;
}

.cb-status {
    font-size: 0.72rem;
    color: rgba(255,255,255,0.6);
    display: flex;
    align-items: center;
    gap: 0.35rem;
    margin-top: 1px;
}

.cb-dot {
    width: 7px;
    height: 7px;
    background: #2ecc71;
    border-radius: 50%;
    display: inline-block;
}

.cb-close-btn {
    margin-left: auto;
    background: none;
    border: none;
    color: rgba(255,255,255,0.6);
    font-size: 1.5rem;
    cursor: pointer;
    line-height: 1;
    padding: 0;
}

.cb-close-btn:hover { color: #fff; }

.cb-messages {
    flex: 1;
    overflow-y: auto;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    scroll-behavior: smooth;
}

.cb-msg { display: flex; }

.cb-msg-bot  { justify-content: flex-start; }
.cb-msg-user { justify-content: flex-end; }

.cb-bubble {
    max-width: 82%;
    padding: 0.6rem 0.9rem;
    border-radius: 16px;
    font-size: 0.875rem;
    line-height: 1.55;
}

.cb-msg-bot  .cb-bubble { background: var(--white); color: var(--navy); border-bottom-left-radius: 4px; box-shadow: 0 1px 4px rgba(0,0,0,0.07); }
.cb-msg-user .cb-bubble { background: var(--navy); color: var(--white); border-bottom-right-radius: 4px; }
.cb-msg-bot  .cb-bubble a { color: var(--gold); }

.cb-typing .cb-bubble {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 0.65rem 1rem;
}

.cb-typing .cb-bubble span {
    width: 7px;
    height: 7px;
    background: #bbb;
    border-radius: 50%;
    animation: cbBounce 1s infinite;
}

.cb-typing .cb-bubble span:nth-child(2) { animation-delay: 0.15s; }
.cb-typing .cb-bubble span:nth-child(3) { animation-delay: 0.30s; }

@keyframes cbBounce {
    0%, 80%, 100% { transform: translateY(0); }
    40%           { transform: translateY(-6px); }
}

.cb-chips {
    padding: 0.4rem 0.75rem 0.5rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    flex-shrink: 0;
}

.cb-chip {
    background: var(--white);
    border: 1.5px solid var(--gold);
    color: var(--navy);
    border-radius: 20px;
    padding: 0.3rem 0.8rem;
    font-size: 0.78rem;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
    font-family: inherit;
}

.cb-chip:hover { background: var(--gold); color: var(--navy); }

.cb-input-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.65rem 0.75rem;
    background: var(--white);
    border-top: 1px solid var(--border);
    flex-shrink: 0;
}

#cbInput {
    flex: 1;
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    font-family: inherit;
    color: var(--navy);
    outline: none;
    transition: border-color 0.2s;
}

#cbInput:focus { border-color: var(--gold); }

#cbSend {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--gold);
    color: var(--navy);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: background 0.15s;
}

#cbSend:hover { background: var(--gold-light); }

/* === FORM STATES === */
.form-submitted {
    text-align: center;
    padding: 3rem 2rem;
    background: var(--gold-pale);
    border-radius: var(--radius);
    border: 1px solid rgba(201,168,76,0.3);
}

.form-submitted-icon {
    width: 56px;
    height: 56px;
    background: var(--gold);
    color: var(--navy);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 auto 1.25rem;
}

.form-submitted h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.4rem;
    color: var(--navy);
    margin-bottom: 0.75rem;
}

.form-submitted p {
    color: #64748b;
    line-height: 1.7;
    max-width: 340px;
    margin: 0 auto;
}

.form-error-box {
    background: #fdf2f2;
    border-left: 3px solid #c0392b;
    border-radius: var(--radius);
    padding: 1rem 1.25rem;
    color: #c0392b;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

/* === MAPS === */
.maps-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.map-card {
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 2px 16px rgba(0,0,0,0.08);
    border: 1px solid var(--border);
}

.map-card-label {
    background: var(--navy);
    color: var(--white);
    padding: 0.85rem 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.map-card-label strong {
    font-size: 0.95rem;
    color: var(--gold);
}

.map-card-label span {
    font-size: 0.78rem;
    color: rgba(255,255,255,0.65);
}

/* === RESPONSIVE === */
@media (max-width: 1024px) {
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .about-split { grid-template-columns: 1fr; gap: 3rem; }
    .about-img-wrap { height: 420px; }
    .contact-grid { grid-template-columns: 1fr; }
    .values-grid { grid-template-columns: repeat(2, 1fr); }
    .practice-layout { grid-template-columns: 1fr; }
    .practice-sidebar { position: static; }
}

/* Header/nav switch to the hamburger menu earlier than the general content
   breakpoint below — the full nav row + enlarged logo lockup starts wrapping/
   colliding on tablet/small-laptop widths well before 768px. */
@media (max-width: 1180px) {
    .nav-links { display: none; }
    .hamburger { display: flex; }
    .site-header .logo { align-items: center; border-bottom: none; padding-bottom: 0; }
    .logo-badge { width: 44px; height: 44px; font-size: 0.78rem; }
    .logo-sub { display: none; }
    .logo-text { min-width: 0; }
    .logo-name { font-size: 0.85rem; overflow: hidden; text-overflow: ellipsis; }
    .header-actions { gap: 0.6rem; }
    .btn-call { padding: 0.6rem; border-radius: 50%; }
    .btn-call-text { display: none; }
    .page-hero { padding-top: 7.5rem; }
}

@media (max-width: 768px) {
    section { padding: 4rem 0; }
    .container, .header-inner, .hero-content, .page-hero-inner, .footer-grid, .footer-bottom { padding-left: 1.5rem; padding-right: 1.5rem; }
    .cards-grid { grid-template-columns: 1fr; }
    .team-grid { grid-template-columns: repeat(2, 1fr); }
    .form-row { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .footer-bottom { flex-direction: column; gap: 1rem; text-align: center; }
    .values-grid { grid-template-columns: 1fr; }
    .pub-grid { grid-template-columns: 1fr; }
    .timeline { padding-left: 1.25rem; }
    .timeline-content { padding: 1.25rem; }
    .maps-grid { grid-template-columns: 1fr; }
    .practice-body-inner { padding-left: 2rem; }
    .about-img-deco { display: none; }
    .story-photo { float: none; width: 100%; max-width: 100%; margin: 0 0 1.5rem; }
    .why-grid { grid-template-columns: 1fr; border-radius: 8px; }
    .why-item { border-right: none; border-bottom: 1px solid var(--border); }
    .why-item:last-child { border-bottom: none; }
}

@media (max-width: 480px) {
    .team-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .hero h1 { font-size: 2.2rem; }
    .contact-form { padding: 2rem; }
    .stats-grid { grid-template-columns: 1fr; }
    .stat-item { padding: 1.5rem; border-right: none; border-bottom: 1px solid rgba(255,255,255,0.08); }
    .stat-item:last-child { border-bottom: none; }
    .stat-number { font-size: 2.5rem; }
    .hero-actions { flex-direction: column; align-items: flex-start; }
    .hero-actions .btn { width: 100%; justify-content: center; }
    .hero-phone-link { padding: 0.35rem 0.25rem; }
    .why-strip { margin-top: -2rem; }
}

/* === SITE-WIDE DARK THEME ===
   Scoped to body.site-dark, applied to every public page's <body> tag.
   Kept as a scoped block (rather than redefining the base classes) so
   nothing here can leak into the admin panel, which loads a completely
   separate stylesheet (admin.css). */
body.site-dark {
    background: var(--navy);
    color: var(--white);
    /* Redefining --text-muted here cascades the dark-appropriate colour
       into every element that reads it — including inline style="color:
       var(--text-muted)" attributes scattered across individual pages —
       without having to touch each page's markup. */
    --text-muted: var(--text-on-dark);
    --border: var(--border-dark);
}

body.site-dark .section-cream { background: var(--navy); }

body.site-dark .why-grid {
    background: var(--card-dark);
    box-shadow: 0 20px 60px rgba(0,0,0,0.4);
    border: 1px solid var(--border-dark);
}

body.site-dark .why-item { border-right-color: var(--border-dark); }
body.site-dark .why-item:hover { background: rgba(255,255,255,0.04); }
body.site-dark .why-item h4 { color: var(--white); }
body.site-dark .why-item p { color: var(--text-on-dark); }

body.site-dark .card {
    background: var(--card-dark);
    border-color: var(--border-dark);
}
body.site-dark .card h3 { color: var(--white); }
body.site-dark .card p { color: var(--text-on-dark); }
body.site-dark .card-icon { background: rgba(201,168,76,0.15); }

body.site-dark .section-subtitle { color: var(--text-on-dark); }

/* Publications (publications.php ships its own local <style> block using
   these exact class names — this scoped selector still wins on specificity
   over that page's unscoped .pub-card rule regardless of load order) */
body.site-dark .pub-card { background: var(--card-dark); border-color: var(--border-dark); }
body.site-dark .pub-card-img-placeholder { background: rgba(255,255,255,0.05); }
body.site-dark .pub-title { color: var(--white); }
body.site-dark .pub-excerpt,
body.site-dark .pub-author,
body.site-dark .pub-date { color: var(--text-on-dark); }
body.site-dark .pub-tag { background: rgba(255,255,255,0.06); color: var(--text-on-dark); border-color: var(--border-dark); }

/* History timeline (About) */
body.site-dark .timeline-content { background: var(--card-dark); border-color: var(--border-dark); box-shadow: none; }
body.site-dark .timeline-content h3 { color: var(--white); }
body.site-dark .timeline-content p { color: var(--text-on-dark); }
body.site-dark .timeline-divisions li { background: rgba(255,255,255,0.06); }

/* Community engagement cards */
body.site-dark .community-group-heading { color: var(--white); }
body.site-dark .community-card { background: var(--card-dark); border-color: var(--border-dark); }
body.site-dark .community-card-title,
body.site-dark .community-card-more { color: var(--white); }
body.site-dark .community-card-desc { color: var(--text-on-dark); }

/* Contact page */
body.site-dark .contact-form { background: var(--card-dark); border-color: var(--border-dark); }
body.site-dark .contact-info-text p,
body.site-dark .contact-info-text a,
body.site-dark .contact-disclaimer { color: var(--text-on-dark); }
body.site-dark .contact-info-text a:hover { color: var(--gold); }
body.site-dark .contact-disclaimer { border-top-color: var(--border-dark); }
body.site-dark .form-group label { color: var(--white); }
body.site-dark .form-group input,
body.site-dark .form-group select,
body.site-dark .form-group textarea {
    background: rgba(255,255,255,0.05);
    border-color: var(--border-dark);
    color: var(--white);
}
body.site-dark .form-group input:focus,
body.site-dark .form-group select:focus,
body.site-dark .form-group textarea:focus { background: rgba(255,255,255,0.08); }
body.site-dark .form-group select option {
    color: var(--text);
    background: var(--white);
}
body.site-dark .map-card { border-color: var(--border-dark); }

/* Practice / Careers / FAQ accordion */
body.site-dark .practice-list { border-color: var(--border-dark); }
body.site-dark .practice-item { border-bottom-color: var(--border-dark); }
body.site-dark .practice-trigger:hover { background: rgba(255,255,255,0.04); }
body.site-dark .practice-body-inner { color: var(--text-on-dark); }
body.site-dark .job-subheading { color: var(--white); }
body.site-dark .job-requirements li { border-bottom-color: var(--border-dark); }

/* Disclaimer / Privacy Policy */
body.site-dark .legal-heading { color: var(--white); }
body.site-dark .legal-paragraph { color: var(--text-on-dark); }

/* Our Team */
body.site-dark .division-title { color: var(--white); }
body.site-dark .division-block + .division-block { border-top-color: var(--border-dark); }
body.site-dark .profile-contact a { color: var(--text-on-dark); }
body.site-dark .profile-contact a:hover { color: var(--gold); }
body.site-dark .profile-credentials li { border-bottom-color: var(--border-dark); color: var(--text-on-dark); }
body.site-dark .profile-bio { color: var(--text-on-dark); }

@media (max-width: 768px) {
    body.site-dark .why-item { border-bottom-color: var(--border-dark); }
}
