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

:root {
    --primary: #0A1428;
    /* Deep Imperial Navy */
    --primary-light: #16243E;
    /* Navy Light Accent */
    --accent: #C5A880;
    /* Champagne Gold */
    --accent-dark: #A88B62;
    /* Dark Gold */
    --charcoal: #1F2226;
    /* Charcoal Black */
    --bg-light: #FAF9F6;
    /* Warm Editorial Ivory */
    --bg-white: #FFFFFF;
    --text-main: #2D3136;
    /* Charcoal for high readability */
    --text-muted: #6C727A;
    /* Muted Grey */
    --border-color: #E2DFD9;
    /* Warm border */

    --font-serif: 'Cormorant Garamond', Georgia, serif;
    --font-sans: 'Inter', system-ui, -apple-system, sans-serif;

    --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    --container-width: 1280px;
    --header-height: 80px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    background-color: var(--bg-light);
    color: var(--text-main);
    line-height: 1.7;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-serif);
    font-weight: 500;
    color: var(--primary);
    line-height: 1.25;
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4.2rem);
    letter-spacing: -0.02em;
}

h2 {
    font-size: clamp(2rem, 3.5vw, 2.75rem);
    letter-spacing: -0.01em;
}

h3 {
    font-size: clamp(1.4rem, 2.2vw, 1.85rem);
}

p {
    margin-bottom: 1.5rem;
    font-weight: 300;
}

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

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

.text-white {
    color: var(--bg-white);
}

/* Layout Utilities */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 2rem;
}

.section {
    padding: 7rem 0;
}

.section-dark {
    background-color: var(--primary);
    color: var(--bg-light);
}

.section-dark h2,
.section-dark h3 {
    color: var(--bg-white);
}

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

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

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

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.875rem 2rem;
    font-family: var(--font-sans);
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    transition: var(--transition-smooth);
    border: 1px solid transparent;
    cursor: pointer;
}

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

.btn-primary:hover {
    background-color: var(--accent-dark);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.btn-secondary {
    border: 1px solid var(--border-color);
    background-color: transparent;
    color: var(--primary);
}

.btn-secondary:hover {
    border-color: var(--primary);
    background-color: var(--primary);
    color: var(--bg-white);
    transform: translateY(-2px);
}

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

.btn-outline-white:hover {
    border-color: var(--accent);
    color: var(--accent);
    transform: translateY(-2px);
}

/* Header */
header {
    height: var(--header-height);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: transparent;
    transition: var(--transition-smooth);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

header.scrolled {
    background-color: rgba(10, 20, 40, 0.95);
    backdrop-filter: blur(10px);
    height: 70px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.logo {
    display: flex;
    flex-direction: column;
}

.logo-main {
    font-family: var(--font-serif);
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--bg-white);
    letter-spacing: 0.05em;
    line-height: 1;
}

.logo-sub {
    font-family: var(--font-sans);
    font-size: 0.65rem;
    font-weight: 500;
    letter-spacing: 0.35em;
    color: var(--accent);
    text-transform: uppercase;
    margin-top: 4px;
}

nav {
    display: flex;
    align-items: center;
    gap: 2rem;
}

nav a {
    font-family: var(--font-sans);
    font-size: 0.78rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.8);
    letter-spacing: 0.05em;
    text-transform: uppercase;
    position: relative;
}

nav a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    bottom: -6px;
    left: 0;
    background-color: var(--accent);
    transition: var(--transition-smooth);
}

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

nav a:hover::after,
nav a.active::after {
    width: 100%;
}

/* Dropdown Navigation Menu */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-toggle {
    display: inline-flex !important;
    align-items: center;
    gap: 0.35rem;
}

.dropdown-arrow {
    display: inline-block;
    transition: transform 0.3s ease;
    vertical-align: middle;
}

@media (min-width: 769px) {
    .dropdown:hover .dropdown-arrow {
        transform: rotate(180deg);
    }
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(15px);
    background-color: var(--primary-light);
    border: 1px solid rgba(197, 168, 128, 0.25);
    border-radius: 4px;
    padding: 0.75rem 0;
    min-width: 260px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.3s ease;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
    z-index: 1000;
}

/* Hover bridge helper */
.dropdown-menu::before {
    content: '';
    position: absolute;
    top: -15px;
    left: 0;
    width: 100%;
    height: 15px;
    background-color: transparent;
}

@media (min-width: 769px) {
    .dropdown:hover .dropdown-menu {
        opacity: 1;
        visibility: visible;
        transform: translateX(-50%) translateY(5px);
    }
}

.dropdown-menu a {
    display: block;
    padding: 0.65rem 1.5rem;
    font-size: 0.8rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.8) !important;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: var(--transition-smooth);
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    position: relative;
    text-align: left;
}

.dropdown-menu a:last-child {
    border-bottom: none;
}

.dropdown-menu a::after {
    display: none !important;
    /* Prevent main nav link underline */
}

.dropdown-menu a.active {
    color: var(--accent) !important;
    background-color: rgba(255, 255, 255, 0.05);
}

.dropdown-menu a:hover {
    color: var(--accent) !important;
    background-color: rgba(255, 255, 255, 0.04);
    padding-left: 1.75rem;
}

.mobile-nav-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--bg-white);
    font-size: 1.5rem;
    cursor: pointer;
}

/* Light header styles (for inner pages if needed) */
header.inner-header {
    background-color: var(--primary);
}

/* Hero Section */
.hero {
    height: 100vh;
    min-height: 650px;
    position: relative;
    overflow: hidden;
    color: var(--bg-white);
}

.hero-slides {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    padding-top: var(--header-height);
    opacity: 0;
    visibility: hidden;
    transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1), visibility 1s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 1;
    overflow: hidden;
}

.hero-slide.active {
    opacity: 1;
    visibility: visible;
    z-index: 2;
}

.hero-slide-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 1;
    transform: scale(1.12);
    opacity: 0.85;
    transition: transform 7s cubic-bezier(0.16, 1, 0.3, 1), opacity 1.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-slide.active .hero-slide-bg {
    transform: scale(1);
    opacity: 1;
}

.hero-slide .container {
    width: 100%;
    position: relative;
    z-index: 10;
}

.hero-content {
    max-width: 850px;
    margin-top: -3.5rem;
}

.hero-tagline {
    font-family: var(--font-sans);
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--accent);
    letter-spacing: 0.2em;
    margin-bottom: 1.5rem;
    display: block;
}

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

.hero-subheading {
    font-size: 1.25rem;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 2.5rem;
    border-left: 2px solid var(--accent);
    padding-left: 1.5rem;
}

.hero-actions {
    display: flex;
    gap: 1.5rem;
}

/* Animations for slide content */
.hero-slide h1,
.hero-slide .hero-subheading {
    opacity: 1;
    transform: none;
    filter: none;
    transition: none;
    perspective: 1200px;
    transform-style: preserve-3d;
}

.word-span {
    display: inline-block;
    perspective: 800px;
    transform-style: preserve-3d;
}

.hero-slide .hero-tagline,
.hero-slide .hero-actions {
    opacity: 0;
    transform: translateX(60px);
    filter: blur(8px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1), filter 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Active Slide Animations (Entrance) */
.hero-slide.active .hero-tagline {
    opacity: 1;
    transform: translateX(0);
    filter: blur(0);
    transition-delay: 0.1s;
}

.hero-slide.active .hero-actions {
    opacity: 1;
    transform: translateX(0);
    filter: blur(0);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1), filter 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    transition-delay: 3.8s;
}

/* Exit Slide Animations (Leaving) */
.hero-slide.exit .hero-tagline,
.hero-slide.exit .hero-actions {
    opacity: 0;
    transform: translateX(-60px);
    filter: blur(8px);
    transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), filter 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    transition-delay: 0s !important;
}

/* Letter-by-letter (3D Rolling Typewriter) Animation style */
.char-inner {
    display: inline-block;
    opacity: 0;
    transform: translate3d(0, 25px, -25px) rotateX(-90deg);
    filter: blur(4px);
    transform-origin: center bottom;
    transition: opacity 0.65s cubic-bezier(0.175, 0.885, 0.32, 1.255), 
                transform 0.65s cubic-bezier(0.175, 0.885, 0.32, 1.255), 
                filter 0.55s ease;
    will-change: opacity, transform, filter;
}

.hero-slide.active .char-inner {
    opacity: 1;
    transform: translate3d(0, 0, 0) rotateX(0deg);
    filter: blur(0);
}

.hero-slide.exit .char-inner {
    opacity: 0;
    transform: translate3d(0, -25px, -25px) rotateX(90deg);
    filter: blur(4px);
    transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1), 
                transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), 
                filter 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    transition-delay: 0s !important;
}

/* Vertical Dots Navigation Indicator (Screenshot Style) */
.hero-nav-container {
    position: absolute;
    right: 4rem;
    top: 50%;
    transform: translateY(-55%);
    display: flex;
    flex-direction: column;
    gap: 2.25rem;
    z-index: 20;
}

.hero-nav-line {
    position: absolute;
    right: 12px;
    top: 10px;
    bottom: 10px;
    width: 1px;
    background-color: rgba(255, 255, 255, 0.15);
    z-index: 1;
}

.hero-nav-item {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    cursor: pointer;
    z-index: 2;
    position: relative;
}

.hero-nav-label {
    font-family: var(--font-sans);
    font-size: 0.85rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.5);
    margin-right: 1.5rem;
    text-align: right;
    white-space: nowrap;
    opacity: 0.8;
    transition: color 0.3s ease, transform 0.3s ease, opacity 0.3s ease;
    user-select: none;
}

.hero-nav-dot-wrapper {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.hero-nav-dot {
    width: 7px;
    height: 7px;
    background-color: rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Hover and Active States */
.hero-nav-item:hover .hero-nav-label {
    color: #FFFFFF;
    opacity: 1;
    transform: translateX(-5px);
}

.hero-nav-item:hover .hero-nav-dot {
    background-color: #FFFFFF;
    transform: scale(1.2);
}

.hero-nav-item.active .hero-nav-label {
    color: #FFFFFF;
    font-weight: 500;
    opacity: 1;
}

.hero-nav-item.active .hero-nav-dot {
    background-color: #FFFFFF;
}

/* Pulsing outline for active state */
.hero-nav-item.active .hero-nav-dot-wrapper::after {
    content: "";
    position: absolute;
    width: 17px;
    height: 17px;
    border: 1.5px solid var(--accent);
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: activePulse 2s infinite ease-in-out;
    pointer-events: none;
}

@keyframes activePulse {
    0% {
        transform: translate(-50%, -50%) scale(0.9);
        opacity: 0.8;
    }

    50% {
        transform: translate(-50%, -50%) scale(1.1);
        opacity: 1;
    }

    100% {
        transform: translate(-50%, -50%) scale(0.9);
        opacity: 0.8;
    }
}

/* Responsive adjustments for navigation */
@media (max-width: 1024px) {
    .hero-nav-container {
        right: 2.5rem;
    }
}

@media (max-width: 768px) {
    .hero-nav-container {
        right: 1.5rem;
        gap: 1.75rem;
    }

    .hero-nav-label {
        display: none;
        /* Hide labels on mobile to avoid overlap */
    }

    .hero-nav-line {
        right: 12px;
    }

    .hero-content {
        margin-top: -1.5rem;
        padding-right: 2rem;
    }
}

/* Credibility Strip */
.credibility-strip {
    background-color: var(--bg-white);
    border: 1px solid rgba(197, 168, 128, 0.18);
    border-bottom: 2px solid var(--accent);
    position: relative;
    z-index: 20;
    margin-top: -60px;
    box-shadow: 0 25px 50px rgba(10, 20, 40, 0.06);
    border-radius: 8px;
    overflow: hidden;
}

.credibility-container {
    display: flex;
    justify-content: space-around;
    padding: 2.25rem 2rem;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.cred-item {
    text-align: center;
    flex: 1;
    min-width: 150px;
    border-right: 1px solid var(--border-color);
    padding: 0.5rem 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: var(--transition-smooth);
}

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

.cred-item:hover {
    transform: translateY(-4px);
}

.cred-icon {
    margin-bottom: 0.75rem;
    color: var(--accent);
    transition: var(--transition-smooth);
    opacity: 0.85;
}

.cred-item:hover .cred-icon {
    transform: scale(1.15);
    color: var(--accent-dark);
    opacity: 1;
}

.cred-number {
    font-family: var(--font-serif);
    font-size: 2.75rem;
    font-weight: 600;
    color: var(--primary);
    line-height: 1.1;
    margin-bottom: 0.50rem;
    transition: var(--transition-smooth);
}

.cred-item:hover .cred-number {
    color: var(--accent-dark);
}

.cred-label {
    font-family: var(--font-sans);
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--text-muted);
}

/* Client logos bar */
.client-bar {
    background-color: #FAF9F6;
    padding: 4rem 0;
    border-bottom: 1px solid var(--border-color);
    overflow: hidden;
    position: relative;
}

.client-title {
    font-family: var(--font-sans);
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.22em;
    color: var(--text-muted);
    font-weight: 600;
    margin-bottom: 2.5rem;
    text-align: center;
    opacity: 0.85;
}

.logo-slider {
    overflow: hidden;
    width: 100%;
    position: relative;
    display: flex;
}

.logo-slider::before,
.logo-slider::after {
    content: "";
    position: absolute;
    top: 0;
    width: 120px;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

.logo-slider::before {
    left: 0;
    background: linear-gradient(to right, #FAF9F6 0%, rgba(250, 249, 246, 0) 100%);
}

.logo-slider::after {
    right: 0;
    background: linear-gradient(to left, #FAF9F6 0%, rgba(250, 249, 246, 0) 100%);
}

.logo-track {
    display: flex;
    width: max-content;
    gap: 4rem;
    align-items: center;
    padding: 0.5rem 0;
}

.client-logo {
    box-sizing: border-box;
    width: calc((100% - 16rem) / 5);
    text-align: center;
    font-family: var(--font-serif);
    font-size: 1.15rem;
    font-weight: 500;
    color: var(--primary-light);
    letter-spacing: 0.08em;
    white-space: nowrap;
    border: 1px solid rgba(197, 168, 128, 0.25);
    padding: 0.6rem 1rem;
    border-radius: 4px;
    background-color: #FFFFFF;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02);
    opacity: 0.35;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    will-change: transform, opacity;
}

@media (max-width: 1024px) {
    .client-logo {
        width: calc((100% - 8rem) / 3); /* Show 3 logos on tablet */
    }
}

@media (max-width: 600px) {
    .client-logo {
        width: calc((100% - 4rem) / 1.8); /* Show ~2 logos on mobile */
    }
}

.client-logo:hover {
    border-color: var(--accent);
    color: var(--primary);
    box-shadow: 0 8px 20px rgba(10, 20, 40, 0.06);
}

@keyframes marquee {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* Section Header */
.section-header {
    max-width: 700px;
    margin-bottom: 5rem;
}

.section-label {
    font-family: var(--font-sans);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--accent);
    letter-spacing: 0.2em;
    margin-bottom: 1rem;
    display: block;
}

.section-title {
    margin-bottom: 1.5rem;
}

/* Core Practice Areas Cards */
.practice-grid {
    margin-top: 2rem;
}

.practice-card {
    background-color: transparent;
    border: none;
    padding: 0;
    height: 420px;
    perspective: 1500px;
    display: block;
    position: relative;
    overflow: visible;
    box-shadow: none;
}

.practice-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.15);
    transform-style: preserve-3d;
}

.practice-card:hover .practice-card-inner {
    transform: rotateY(180deg);
}

/* Front & Back Faces */
.practice-card-front,
.practice-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    box-shadow: 0 10px 30px rgba(10, 20, 40, 0.04);
}

/* Front Side Styling */
.practice-card-front {
    background-color: var(--primary-light);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
}

.practice-card-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 1;
}

.practice-card:hover .practice-card-image {
    transform: scale(1.08);
}

.practice-card-front::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(10, 20, 40, 0.15) 0%, rgba(10, 20, 40, 0.85) 100%);
    z-index: 2;
}

.practice-card-front-content {
    position: relative;
    z-index: 3;
    padding: 3rem 2.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.practice-card-front h3 {
    margin-bottom: 0;
    color: var(--bg-white) !important;
    font-size: 1.60rem;
    font-family: var(--font-serif);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.6);
    text-align: center;
}

.practice-card-front .practice-icon {
    border-color: rgba(255, 255, 255, 0.3);
    background-color: rgba(255, 255, 255, 0.08);
    margin-bottom: 1.5rem;
}

.practice-card-front .practice-icon svg {
    stroke: var(--bg-white);
}

/* Back Side Styling */
.practice-card-back {
    background: radial-gradient(circle at 10% 10%, rgba(197, 168, 128, 0.05) 0%, var(--bg-white) 80%);
    transform: rotateY(180deg);
    border-color: var(--accent);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.practice-card-back-content {
    padding: 3rem 2.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    justify-content: center;
    height: 100%;
    width: 100%;
    box-sizing: border-box;
}

.practice-card-back h3 {
    margin-bottom: 1rem;
    font-family: var(--font-serif);
    font-size: 1.55rem;
    color: var(--primary);
}

.practice-card-back p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 2rem;
    flex-grow: 0; /* Override general practice-card p flex-grow: 1 */
}

.practice-card-back .practice-link {
    color: var(--accent-dark);
    margin-top: 0; /* Reset general margin-top: auto to allow true vertical centering */
}

.practice-card-back .practice-link svg {
    stroke: var(--accent-dark);
}

/* 3D Practice Card Back Face Word Reveal Logic */
.practice-card-back .word-inner,
.revealed .practice-card-back .word-inner {
    opacity: 0;
    filter: blur(4px);
    transform: translateY(6px);
    transition: opacity 0.35s ease, filter 0.35s ease, transform 0.35s ease;
    transition-delay: 0s; /* Reset immediately when mouse leaves */
}

.practice-card:hover .practice-card-back .word-inner {
    opacity: 1;
    filter: blur(0px);
    transform: translateY(0);
    transition-delay: var(--delay, 0.45s); /* Staggered typing starting after flip finishes */
}

.practice-icon {
    width: 56px;
    height: 56px;
    background-color: rgba(197, 168, 128, 0.08);
    border: 1px solid rgba(197, 168, 128, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
    transition: var(--transition-smooth);
}

.practice-icon svg {
    width: 1.5rem;
    height: 1.5rem;
    stroke: var(--accent-dark);
    stroke-width: 1.5;
    fill: none;
    transition: var(--transition-smooth);
}

.practice-card:hover .practice-icon {
    background-color: var(--accent);
    border-color: var(--accent);
    box-shadow: 0 8px 20px rgba(197, 168, 128, 0.25);
}

.practice-card:hover .practice-icon svg {
    stroke: var(--primary);
    transform: scale(1.1);
}

.practice-card h3 {
    margin-bottom: 1rem;
    font-family: var(--font-serif);
    font-size: 1.55rem;
    color: var(--primary);
    transition: var(--transition-smooth);
}

.practice-card:hover h3 {
    color: var(--primary-light);
}

.practice-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 2rem;
    line-height: 1.6;
    flex-grow: 1;
}

.practice-link {
    font-family: var(--font-sans);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary);
    margin-top: auto;
    transition: var(--transition-smooth);
}

.practice-link svg {
    transition: var(--transition-smooth);
}

.practice-link:hover {
    color: var(--accent-dark);
}

.practice-link:hover svg {
    transform: translateX(5px);
}

.practice-card:hover .practice-link {
    color: var(--accent-dark);
}

.practice-card:hover .practice-link svg {
    transform: translateX(5px);
}

/* Representative Matters Preview */
.representative-disputes-section {
    position: relative;
    background-image: linear-gradient(to bottom, rgba(10, 20, 40, 0.88) 0%, rgba(22, 36, 62, 0.88) 100%), url('images/disputes_bg.png');
    background-attachment: fixed;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    overflow: hidden;
    padding: 4.5rem 0;
}

@media (max-width: 768px) {
    .representative-disputes-section {
        background-attachment: scroll; /* Fallback for touch devices where fixed attachment causes issues */
    }
}

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

.matter-preview-card {
    background: linear-gradient(135deg, rgba(10, 20, 40, 0.7) 0%, rgba(6, 12, 24, 0.85) 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 3rem 2.5rem;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.matter-preview-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(to bottom, rgba(197, 168, 128, 0.15), rgba(197, 168, 128, 0.3));
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 2;
}

.matter-preview-card:hover {
    transform: translateY(-8px);
    border-color: rgba(197, 168, 128, 0.25);
    background: linear-gradient(135deg, rgba(10, 20, 40, 0.85) 0%, rgba(6, 12, 24, 0.95) 100%);
    box-shadow:
        0 30px 60px rgba(0, 0, 0, 0.45),
        0 0 30px rgba(197, 168, 128, 0.05);
}

.matter-preview-card:hover::before {
    width: 4px;
    background: linear-gradient(to bottom, var(--accent), var(--accent-dark));
    box-shadow: 0 0 10px rgba(197, 168, 128, 0.3);
}

.matter-tag {
    font-family: var(--font-sans);
    font-size: 0.68rem;
    font-weight: 600;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    background: rgba(197, 168, 128, 0.05);
    border: 1px solid rgba(197, 168, 128, 0.15);
    padding: 0.45rem 1rem 0.45rem 1.8rem;
    border-radius: 50px;
    display: inline-block;
    margin-bottom: 2rem;
    width: fit-content;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
}

.matter-tag::before {
    content: "";
    position: absolute;
    left: 0.7rem;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 6px;
    background-color: var(--accent);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--accent);
    animation: tagPulse 2s infinite ease-in-out;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes tagPulse {
    0% {
        transform: translateY(-50%) scale(0.85);
        opacity: 0.6;
        box-shadow: 0 0 0 0 rgba(197, 168, 128, 0.7);
    }

    50% {
        transform: translateY(-50%) scale(1.15);
        opacity: 1;
        box-shadow: 0 0 8px 3px rgba(197, 168, 128, 0.45);
    }

    100% {
        transform: translateY(-50%) scale(0.85);
        opacity: 0.6;
        box-shadow: 0 0 0 0 rgba(197, 168, 128, 0);
    }
}

.matter-preview-card:hover .matter-tag {
    background: rgba(197, 168, 128, 0.15);
    border-color: rgba(197, 168, 128, 0.4);
    color: #FFFFFF;
}

.matter-preview-card:hover .matter-tag::before {
    background-color: #FFFFFF;
    box-shadow: 0 0 8px #FFFFFF;
    animation: tagPulseWhite 2s infinite ease-in-out;
}

@keyframes tagPulseWhite {
    0% {
        transform: translateY(-50%) scale(0.85);
        opacity: 0.6;
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.7);
    }

    50% {
        transform: translateY(-50%) scale(1.15);
        opacity: 1;
        box-shadow: 0 0 8px 3px rgba(255, 255, 255, 0.45);
    }

    100% {
        transform: translateY(-50%) scale(0.85);
        opacity: 0.6;
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0);
    }
}

.matter-description {
    font-family: var(--font-serif);
    font-size: 1.35rem;
    line-height: 1.6;
    margin-bottom: 0;
    color: rgba(255, 255, 255, 0.82);
    flex-grow: 1;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 1;
    font-style: italic;
}

.matter-preview-card:hover .matter-description {
    color: #FFFFFF;
}

/* Partners Section */
.partners-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2.25rem;
}

.partner-card {
    background-color: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 35px rgba(10, 20, 40, 0.03), 0 2px 8px rgba(10, 20, 40, 0.01);
}

.partner-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 30px 60px rgba(10, 20, 40, 0.12), 0 0 0 1px var(--accent);
    border-color: var(--accent);
}

.partner-image-box {
    width: 100%;
    height: 280px;
    background-color: var(--primary-light);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.partner-image-box::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle, transparent 30%, rgba(10, 20, 40, 0.4) 100%);
    opacity: 0.6;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    pointer-events: none;
    z-index: 1;
}

.partner-card:hover .partner-image-box::after {
    opacity: 0.8;
}

.partner-placeholder-avatar {
    width: 90px;
    height: 90px;
    background: radial-gradient(circle, rgba(197, 168, 128, 0.1) 0%, rgba(10, 20, 40, 0.3) 100%);
    border: 2px solid var(--accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    font-size: 2.2rem;
    font-family: var(--font-serif);
    letter-spacing: 0.05em;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.25), inset 0 0 15px rgba(197, 168, 128, 0.2);
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 2;
}

.partner-card:hover .partner-placeholder-avatar {
    transform: scale(1.08) rotate(2deg);
    border-color: #FFFFFF;
    color: #FFFFFF;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.15) 0%, rgba(197, 168, 128, 0.3) 100%);
    box-shadow: 0 12px 30px rgba(197, 168, 128, 0.35), inset 0 0 20px rgba(255, 255, 255, 0.25);
}

.partner-image-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.partner-card:hover .partner-image-box img {
    transform: scale(1.08);
}

.partner-info {
    padding: 2rem 1.75rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    border-top: 1px solid rgba(10, 20, 40, 0.05);
}

.partner-card h3 {
    margin-bottom: 0.25rem;
    font-size: 1.4rem;
    font-family: var(--font-serif);
    color: var(--primary);
    transition: all 0.4s ease;
}

.partner-card:hover h3 {
    color: var(--primary-light);
}

.partner-role {
    font-family: var(--font-sans);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--accent-dark);
    margin-bottom: 1rem;
    font-weight: 600;
}

.partner-excerpt {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
    line-height: 1.5;
    flex-grow: 1;
}

.partner-link {
    font-family: var(--font-sans);
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--primary);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    position: relative;
    padding-bottom: 2px;
    width: fit-content;
    transition: all 0.4s ease;
}

.partner-link::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background-color: var(--accent);
    transition: all 0.4s ease;
}

.partner-link svg {
    transition: all 0.4s ease;
}

.partner-card:hover .partner-link {
    color: var(--accent-dark);
}

.partner-card:hover .partner-link::after {
    width: calc(100% - 1.25rem);
}

.partner-card:hover .partner-link svg {
    transform: translateX(5px);
    color: var(--accent-dark);
}

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

.sector-card {
    padding: 2.5rem;
    background-color: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
    transition: var(--transition-smooth);
    cursor: default;
    position: relative;
    overflow: hidden;
}

.sector-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: -150%;
    width: 60%;
    height: 100%;
    background: linear-gradient(to right,
            rgba(255, 255, 255, 0) 0%,
            rgba(197, 168, 128, 0.12) 50%,
            rgba(255, 255, 255, 0) 100%);
    transform: skewX(-25deg);
    transition: none;
    z-index: 1;
    pointer-events: none;
}

.sector-card:hover::before {
    left: 150%;
    transition: all 0.9s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.sector-card:hover {
    /* No translateY or box-shadow lift, indicating non-clickable information cards */
    border-color: rgba(197, 168, 128, 0.25);
    background-color: rgba(255, 255, 255, 0.85);
}

.sector-icon {
    width: 52px;
    height: 52px;
    background-color: rgba(197, 168, 128, 0.05);
    border: 1px solid rgba(197, 168, 128, 0.18);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: var(--transition-smooth);
    z-index: 2;
}

.sector-icon svg {
    width: 1.35rem;
    height: 1.35rem;
    stroke: var(--accent-dark);
    fill: none;
    transition: var(--transition-smooth);
}

.sector-card:hover .sector-icon {
    border-color: var(--accent);
    background-color: var(--accent);
    box-shadow: 0 0 15px rgba(197, 168, 128, 0.3);
}

.sector-card:hover .sector-icon svg {
    stroke: var(--primary);
}

.sector-card h4 {
    margin-bottom: 0.5rem;
    font-size: 1.25rem;
}

.sector-card p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 0;
}

/* Insights Preview */
.insights-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
}

.insight-card {
    background-color: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(10, 20, 40, 0.02), 0 2px 8px rgba(10, 20, 40, 0.01);
}

.insight-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 30px 60px rgba(10, 20, 40, 0.1), 0 0 0 1px var(--accent);
    border-color: var(--accent);
}

.insight-img {
    height: 220px;
    background-color: var(--primary);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.insight-img::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(10, 20, 40, 0.1) 0%, rgba(10, 20, 40, 0.55) 100%);
    opacity: 0.7;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 1;
}

.insight-card:hover .insight-img::after {
    opacity: 0.5;
}

.insight-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.insight-card:hover .insight-img img {
    transform: scale(1.08);
}

.insight-placeholder {
    font-family: var(--font-serif);
    font-size: 2rem;
    color: rgba(197, 168, 128, 0.3);
}

.insight-body {
    padding: 2.25rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.insight-meta {
    font-family: var(--font-sans);
    font-size: 0.72rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin-bottom: 1.25rem;
    display: flex;
    gap: 1.25rem;
    align-items: center;
}

.insight-meta span:last-child {
    background-color: rgba(197, 168, 128, 0.06);
    border: 1px solid rgba(197, 168, 128, 0.18);
    color: var(--accent-dark);
    padding: 0.2rem 0.65rem;
    border-radius: 4px;
    font-size: 0.68rem;
    font-weight: 600;
    transition: all 0.4s ease;
}

.insight-card:hover .insight-meta span:last-child {
    background-color: var(--accent);
    color: var(--primary);
    border-color: var(--accent);
}

.insight-body h3 {
    font-family: var(--font-serif);
    font-size: 1.45rem;
    font-weight: 500;
    color: var(--primary);
    margin-bottom: 1.5rem;
    line-height: 1.4;
    flex-grow: 1;
    transition: all 0.4s ease;
}

.insight-card:hover h3 {
    color: var(--accent-dark);
}

.insight-link {
    font-family: var(--font-sans);
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    position: relative;
    padding-bottom: 2px;
    width: fit-content;
    transition: all 0.4s ease;
}

.insight-link::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background-color: var(--accent);
    transition: all 0.4s ease;
}

.insight-link svg {
    transition: all 0.4s ease;
}

.insight-card:hover .insight-link {
    color: var(--accent-dark);
}

.insight-card:hover .insight-link::after {
    width: calc(100% - 1.25rem);
}

.insight-card:hover .insight-link svg {
    transform: translateX(5px);
    color: var(--accent-dark);
}

/* Contact Home Section */
.contact-section-home {
    background-color: var(--primary);
    color: var(--bg-white);
    position: relative;
    overflow: hidden;
}

.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 5rem;
}

.contact-info-block {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.contact-info-block h2 {
    color: var(--bg-white);
    margin-bottom: 2rem;
}

.contact-details {
    margin-top: 3rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-item {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}

.contact-item-icon {
    color: var(--accent);
    font-size: 1.25rem;
    margin-top: 0.25rem;
}

.contact-item h5 {
    color: var(--bg-white);
    font-family: var(--font-sans);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 0.5rem;
}

.contact-item p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 0;
}

/* Contact Form */
.form-box {
    background-color: var(--primary-light);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 4rem;
}

.form-group-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

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

.form-control {
    width: 100%;
    background-color: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1rem 1.25rem;
    color: var(--bg-white);
    font-family: var(--font-sans);
    font-size: 0.9rem;
    transition: var(--transition-smooth);
}

.form-control:focus {
    outline: none;
    border-color: var(--accent);
    background-color: rgba(255, 255, 255, 0.05);
}

label.form-label {
    font-family: var(--font-sans);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(255, 255, 255, 0.6);
    display: block;
    margin-bottom: 0.5rem;
}

textarea.form-control {
    resize: none;
    height: 150px;
}

/* Floating Sticky Contact Button */
.sticky-contact-btn {
    position: fixed;
    bottom: 2.5rem;
    right: 2.5rem;
    background-color: var(--accent);
    color: var(--primary);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    z-index: 999;
    transition: var(--transition-smooth);
    border: none;
    cursor: pointer;
}

.sticky-contact-btn:hover {
    background-color: var(--accent-dark);
    transform: scale(1.05);
}

.sticky-contact-btn svg {
    width: 24px;
    height: 24px;
}

/* Page Header (Inner Pages) */
.page-header {
    position: relative;
    overflow: hidden;
    padding: 10rem 0 6rem 0;
    color: var(--bg-white);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

@keyframes headerZoom {
    0% {
        transform: scale(1.12);
    }
    100% {
        transform: scale(1);
    }
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: var(--header-bg);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 1;
    animation: headerZoom 7s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.page-header::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(10, 20, 40, 0.9) 0%, rgba(22, 36, 62, 0.8) 100%);
    z-index: 2;
}

.page-header .container {
    position: relative;
    z-index: 3;
}

.page-header h1 {
    color: var(--bg-white);
    margin-bottom: 1rem;
}

.breadcrumbs {
    font-family: var(--font-sans);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--accent);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.breadcrumbs span {
    color: rgba(255, 255, 255, 0.5);
}

/* Footer */
footer {
    background-color: #050A14;
    color: rgba(255, 255, 255, 0.6);
    padding: 3.5rem 0 2.5rem 0;
    font-size: 0.9rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* Circular Social Media Buttons */
.social-circle-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-smooth);
}

.social-circle-btn:hover {
    background-color: var(--accent);
    color: var(--primary);
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(197, 168, 128, 0.25);
}

/* Redesigned Centered Subscription Form */
.footer-subscribe-form {
    display: flex;
    border-radius: 4px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background-color: var(--bg-white);
}

.footer-subscribe-form input[type="email"] {
    flex: 1;
    border: none;
    background: transparent;
    padding: 1.1rem 1.5rem;
    color: var(--primary);
    font-family: var(--font-sans);
    font-size: 0.95rem;
    outline: none;
}

.footer-subscribe-form input[type="email"]::placeholder {
    color: var(--text-muted);
    font-family: var(--font-sans);
}

.footer-subscribe-form button {
    border: none;
    background-color: var(--primary-light);
    color: var(--bg-white);
    padding: 0 2.2rem;
    font-family: var(--font-sans);
    font-size: 0.9rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.footer-subscribe-form button:hover {
    background-color: var(--accent);
    color: var(--primary);
}

.footer-bottom-centered {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

/* --- Internal Pages Styles --- */

/* People Page Details */
.partner-profile-section {
    padding: 6rem 0;
    border-bottom: 1px solid var(--border-color);
}

.partner-profile-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 5rem;
}

.partner-sticky-sidebar {
    position: sticky;
    top: 120px;
    align-self: start;
}

.partner-large-image {
    width: 100%;
    height: 480px;
    background-color: var(--primary-light);
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.partner-large-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.partner-sidebar-credentials {
    background-color: var(--bg-white);
    border: 1px solid var(--border-color);
    padding: 2.5rem;
}

.partner-sidebar-credentials h4 {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0.5rem;
}

.sidebar-cred-list {
    list-style: none;
}

.sidebar-cred-list li {
    margin-bottom: 1rem;
    font-size: 0.9rem;
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
}

.sidebar-cred-list svg {
    color: var(--accent-dark);
    margin-top: 0.25rem;
    flex-shrink: 0;
}

.partner-profile-content h2.profile-name {
    font-size: 3rem;
    margin-bottom: 0.5rem;
}

.partner-profile-content .profile-headline {
    font-family: var(--font-sans);
    font-size: 1rem;
    font-weight: 500;
    color: var(--accent-dark);
    margin-bottom: 3rem;
}

.profile-section-block {
    margin-bottom: 3.5rem;
}

.profile-section-block h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0.5rem;
}

.profile-section-block ul {
    list-style-position: outside;
    padding-left: 1.25rem;
}

.profile-section-block li {
    margin-bottom: 0.85rem;
    font-weight: 300;
}

/* Representative Matters Library */
/* Representative Matters Library Page Design */
.matters-two-column-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 4rem;
    align-items: start;
}

.matters-sidebar-filters {
    position: sticky;
    top: 120px;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 1.5rem 0;
    border-right: 1px solid var(--border-color);
}

.matters-sidebar-title {
    font-family: var(--font-sans);
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--accent-dark);
    margin-bottom: 1.5rem;
    padding-left: 0.5rem;
}

.filter-tab {
    background-color: transparent;
    border: none;
    color: var(--text-muted);
    padding: 0.75rem 1.25rem;
    font-family: var(--font-sans);
    font-size: 0.8rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    cursor: pointer;
    transition: var(--transition-smooth);
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    text-align: left;
    border-radius: 0;
    border-left: 2px solid transparent;
}

.filter-tab:hover {
    color: var(--primary);
    background-color: rgba(197, 168, 128, 0.05);
    padding-left: 1.5rem;
}

.filter-tab.active {
    border-left: 2px solid var(--accent);
    color: var(--primary);
    background-color: rgba(197, 168, 128, 0.08);
    font-weight: 600;
    box-shadow: none;
    padding-left: 1.5rem;
}

.filter-badge {
    font-family: var(--font-sans);
    font-size: 0.75rem;
    font-weight: 400;
    color: var(--text-muted);
    background-color: rgba(0, 0, 0, 0.04);
    padding: 2px 8px;
    border-radius: 20px;
    transition: var(--transition-smooth);
}

.filter-tab.active .filter-badge {
    background-color: var(--accent);
    color: var(--primary);
    font-weight: 600;
}

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

.editorial-matter-card {
    background-color: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(10, 20, 40, 0.02);
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    position: relative;
}

.editorial-matter-image-wrap {
    position: relative;
    overflow: hidden;
    height: 240px;
}

.editorial-matter-image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.editorial-matter-card:hover .editorial-matter-image-wrap img {
    transform: scale(1.06);
}

.editorial-matter-content {
    padding: 2.25rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.editorial-matter-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: -150%;
    width: 60%;
    height: 100%;
    background: linear-gradient(to right,
            rgba(255, 255, 255, 0) 0%,
            rgba(197, 168, 128, 0.12) 50%,
            rgba(255, 255, 255, 0) 100%);
    transform: skewX(-25deg);
    transition: none;
    z-index: 3;
    pointer-events: none;
}

.editorial-matter-card:hover::before {
    left: 150%;
    transition: all 0.9s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.editorial-matter-card:hover {
    transform: translateY(-8px);
    border-color: rgba(197, 168, 128, 0.25);
    box-shadow: 0 25px 50px rgba(10, 20, 40, 0.06);
}

.editorial-matter-card .matter-category {
    font-family: var(--font-sans);
    font-size: 0.68rem;
    color: var(--accent-dark);
    text-transform: uppercase;
    letter-spacing: 0.18em;
    margin-bottom: 1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.editorial-matter-card .matter-category::before {
    content: "✦";
    font-size: 0.8rem;
    color: var(--accent);
}

.editorial-matter-card h3 {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--primary);
    line-height: 1.3;
    transition: var(--transition-smooth);
}

.editorial-matter-card:hover h3 {
    color: var(--accent-dark);
}

.editorial-matter-card p {
    color: var(--text-muted);
    font-size: 0.92rem;
    line-height: 1.65;
    margin-bottom: 0;
    font-weight: 300;
}

/* Responsiveness for new 2-column layout */
@media (max-width: 992px) {
    .matters-two-column-layout {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    
    .matters-sidebar-filters {
        position: static;
        flex-direction: row;
        overflow-x: auto;
        border-right: none;
        border-bottom: 1px solid var(--border-color);
        padding: 0.5rem 0 1.25rem 0;
        gap: 0.5rem;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none; /* Firefox */
    }
    
    .matters-sidebar-filters::-webkit-scrollbar {
        display: none; /* Chrome, Safari, Opera */
    }
    
    .matters-sidebar-title {
        display: none;
    }
    
    .filter-tab {
        width: auto;
        white-space: nowrap;
        border-left: none;
        border-bottom: 2px solid transparent;
        border-radius: 50px;
        padding: 0.5rem 1.25rem;
        background-color: rgba(0, 0, 0, 0.02);
    }
    
    .filter-tab.active {
        border-left: none;
        border-bottom: 2px solid transparent;
        background-color: var(--primary);
        color: var(--bg-white);
        border-radius: 50px;
    }

    .filter-tab.active .filter-badge {
        background-color: var(--accent);
        color: var(--primary);
    }
    
    .filter-tab:hover {
        padding-left: 1.25rem;
    }
}

@media (max-width: 768px) {
    .matters-editorial-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .editorial-matter-image-wrap {
        height: 200px;
    }
}


/* Practice Area Details Page Layout */
.practice-detail-section {
    padding: 6rem 0;
}

.practice-detail-grid {
    display: grid;
    grid-template-columns: 1.8fr 1.2fr;
    gap: 5rem;
}

.practice-main-content h2 {
    font-size: 2.2rem;
    margin-top: 2.5rem;
    margin-bottom: 1.5rem;
}

.practice-main-content ul {
    list-style-position: outside;
    padding-left: 1.25rem;
    margin-bottom: 2rem;
}

.practice-main-content li {
    margin-bottom: 0.85rem;
    font-weight: 300;
}

.practice-sidebar {
    display: flex;
    flex-direction: column;
    gap: 3rem;
    position: sticky;
    top: 120px;
    align-self: start;
}

.sidebar-widget {
    background-color: var(--bg-white);
    border: 1px solid var(--border-color);
    padding: 2.5rem;
}

.sidebar-widget h3 {
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0.5rem;
}

.sidebar-practice-list {
    list-style: none;
}

.sidebar-practice-list li {
    margin-bottom: 0.75rem;
}

.sidebar-practice-list a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 500;
    font-size: 0.95rem;
    transition: var(--transition-smooth);
}

.sidebar-practice-list a.active,
.sidebar-practice-list a:hover {
    color: var(--accent-dark);
}

.sidebar-practice-list a svg {
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), stroke 0.3s ease;
    opacity: 0.8;
}

.sidebar-practice-list a:hover svg,
.sidebar-practice-list a.active svg {
    transform: translateX(5px);
    stroke: var(--accent-dark);
    opacity: 1;
}

.cta-widget {
    background-color: var(--primary);
    color: var(--bg-white);
    padding: 3rem 2.5rem;
    border: none;
    text-align: center;
}

.cta-widget h3 {
    color: var(--bg-white);
    font-size: 1.5rem;
    margin-bottom: 1rem;
    border: none;
}

.cta-widget p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    margin-bottom: 2rem;
}

/* FAQs */
.faq-accordion {
    margin-top: 3rem;
}

.faq-item {
    border-bottom: 1px solid var(--border-color);
    padding: 1.5rem 0;
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: var(--font-serif);
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--primary);
    cursor: pointer;
    user-select: none;
}

.faq-icon {
    font-size: 1.5rem;
    transition: var(--transition-smooth);
    color: var(--accent-dark);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out;
}

.faq-answer-inner {
    padding-top: 1rem;
    color: var(--text-muted);
    font-size: 0.95rem;
    font-weight: 300;
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
}

.faq-item.active .faq-answer {
    max-height: 500px;
    transition: max-height 0.5s ease-in;
}

/* Insights Section Detail */
.insights-detail-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
}

.blog-post-card {
    background-color: var(--bg-white);
    border: 1px solid var(--border-color);
    margin-bottom: 3rem;
    display: flex;
    flex-direction: column;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(10, 20, 40, 0.015);
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.blog-post-card:hover {
    transform: translateY(-6px);
    border-color: rgba(197, 168, 128, 0.25);
    box-shadow: 0 30px 60px rgba(10, 20, 40, 0.06);
}


.blog-post-img {
    height: 350px;
    background-color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.blog-post-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

.blog-post-card:hover .blog-post-img img {
    transform: scale(1.03);
}

.blog-post-body {
    padding: 3.5rem;
}

.blog-post-body h2 {
    font-size: 2.2rem;
    margin-bottom: 1.5rem;
}

.blog-post-body p {
    color: var(--text-muted);
    margin-bottom: 2rem;
}

/* Contact Page Grid */
.contact-page-grid {
    display: grid;
    grid-template-columns: 1.2fr 1.8fr;
    gap: 5rem;
}

.contact-card-sidebar {
    background-color: var(--bg-white);
    border: 1px solid var(--border-color);
    padding: 3rem;
}

.contact-card-sidebar h3 {
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.contact-card-sidebar p {
    font-size: 0.95rem;
    color: var(--text-muted);
}

.map-container {
    width: 100%;
    height: 400px;
    background-color: #eee;
    border: 1px solid var(--border-color);
    margin-top: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-sans);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
}

/* Media Queries (Mobile Responsive) */
@media (max-width: 1024px) {

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

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

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

    .partner-profile-grid,
    .practice-detail-grid,
    .contact-layout,
    .contact-page-grid,
    .insights-detail-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .partner-sticky-sidebar,
    .practice-sidebar {
        position: static;
    }
}

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

    .grid-2,
    .grid-3,
    .grid-4,
    .sectors-grid,
    .partners-grid,
    .insights-grid,
    .matters-library-grid {
        grid-template-columns: 1fr;
    }

    .hero-actions {
        flex-direction: column;
        gap: 1rem;
    }

    nav {
        display: none;
        /* Controlled by mobile menu JS class */
    }

    .mobile-nav-toggle {
        display: block;
    }

    .mobile-menu-open nav {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background-color: var(--primary);
        z-index: 999;
        justify-content: flex-start;
        align-items: center;
        gap: 1.5rem;
        overflow-y: auto;
        padding: 6rem 2rem 3rem 2rem;
    }

    .mobile-menu-open nav a {
        font-size: 1.25rem;
    }

    /* Mobile Dropdown styles */
    .mobile-menu-open nav .dropdown {
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 100%;
    }

    .mobile-menu-open nav .dropdown-toggle {
        font-size: 1.25rem !important;
        margin-bottom: 0.25rem;
    }

    .mobile-menu-open nav .dropdown-menu {
        position: static;
        transform: none;
        opacity: 1;
        visibility: visible;
        display: none;
        background-color: rgba(255, 255, 255, 0.04);
        border: none;
        border-radius: 4px;
        box-shadow: none;
        min-width: unset;
        width: 90%;
        max-width: 320px;
        padding: 0.5rem 0;
        transition: none;
    }

    .mobile-menu-open nav .dropdown.open .dropdown-menu {
        display: block;
    }

    .mobile-menu-open nav .dropdown.open .dropdown-arrow {
        transform: rotate(180deg);
    }

    .mobile-menu-open nav .dropdown-menu a {
        font-size: 0.95rem !important;
        padding: 0.65rem 1rem !important;
        color: rgba(255, 255, 255, 0.7) !important;
        border-bottom: none;
        text-align: center;
        transition: none;
    }

    .mobile-menu-open nav .dropdown-menu a:hover {
        padding-left: 1rem !important;
        color: var(--accent) !important;
    }

    .mobile-menu-open .mobile-nav-toggle {
        position: fixed;
        right: 2rem;
        top: 2rem;
        z-index: 1001;
    }

    .credibility-container {
        flex-direction: column;
        gap: 1.5rem;
    }

    .cred-item {
        border-right: none;
        border-bottom: 1px solid var(--border-color);
        padding-bottom: 1.5rem;
    }

    .cred-item:last-child {
        border-bottom: none;
        padding-bottom: 0;
    }

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

    .form-box {
        padding: 2rem;
    }
}

/* Premium Disclaimer Modal Styles */
.disclaimer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(6, 12, 26, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    padding: 2rem;
}

.disclaimer-overlay.visible {
    opacity: 1;
    visibility: visible;
}

.disclaimer-modal {
    background: linear-gradient(145deg, #0d1b33 0%, #060c1a 100%);
    border: 1px solid rgba(197, 168, 128, 0.3);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    width: 100%;
    max-width: 680px;
    padding: 3rem 2.5rem;
    color: rgba(255, 255, 255, 0.85);
    transform: translateY(30px) scale(0.96);
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.disclaimer-overlay.visible .disclaimer-modal {
    transform: translateY(0) scale(1);
}

.disclaimer-header {
    text-align: center;
    margin-bottom: 2rem;
}

.disclaimer-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
}

.disclaimer-logo .logo-main {
    font-family: var(--font-serif);
    font-size: 2.2rem;
    font-weight: 600;
    color: #FFFFFF;
    letter-spacing: 0.1em;
}

.disclaimer-logo .logo-sub {
    font-family: var(--font-sans);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--accent);
    letter-spacing: 0.3em;
}

.disclaimer-divider {
    width: 60px;
    height: 1px;
    background-color: var(--accent);
    margin: 1.5rem auto;
    opacity: 0.6;
}

.disclaimer-title {
    font-family: var(--font-serif);
    font-size: 1.6rem;
    color: #FFFFFF;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.disclaimer-body {
    max-height: 280px;
    overflow-y: auto;
    margin-bottom: 2.5rem;
    padding-right: 1rem;
    font-size: 0.92rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.75);
}

/* Custom premium scrollbar for body */
.disclaimer-body::-webkit-scrollbar {
    width: 4px;
}

.disclaimer-body::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 10px;
}

.disclaimer-body::-webkit-scrollbar-thumb {
    background: rgba(197, 168, 128, 0.4);
    border-radius: 10px;
}

.disclaimer-body::-webkit-scrollbar-thumb:hover {
    background: var(--accent);
}

.disclaimer-body p {
    margin-bottom: 1.25rem;
    font-weight: 300;
}

.disclaimer-list {
    list-style: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.disclaimer-list li {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.disclaimer-bullet {
    color: var(--accent);
    font-size: 0.8rem;
    margin-top: 0.2rem;
}

.disclaimer-text {
    font-weight: 300;
}

.disclaimer-footer {
    display: flex;
    gap: 1.5rem;
    justify-content: flex-end;
}

.disclaimer-btn {
    min-width: 160px;
    padding: 0.9rem 1.5rem;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

/* Responsive disclaimer */
@media (max-width: 768px) {
    .disclaimer-overlay {
        padding: 1rem;
    }

    .disclaimer-modal {
        padding: 2.5rem 1.5rem;
    }

    .disclaimer-logo .logo-main {
        font-size: 1.8rem;
    }

    .disclaimer-footer {
        flex-direction: column-reverse;
        gap: 1rem;
    }

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

/* Partner Detail Pages Styling */
.partner-detail-grid {
    display: grid;
    grid-template-columns: 360px 1fr;
    gap: 4rem;
    align-items: start;
    margin-top: 3rem;
    margin-bottom: 5rem;
}

.partner-detail-sidebar {
    position: sticky;
    top: calc(var(--header-height) + 2rem);
}

.partner-detail-card {
    background-color: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 3rem 2rem;
    box-shadow: 0 15px 45px rgba(10, 20, 40, 0.02), 0 2px 10px rgba(10, 20, 40, 0.01);
    text-align: center;
}

.partner-detail-avatar-box {
    width: 140px;
    height: 140px;
    margin: 0 auto 2rem;
    background: radial-gradient(circle, rgba(197, 168, 128, 0.12) 0%, rgba(10, 20, 40, 0.35) 100%);
    border: 3px solid var(--accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    font-family: var(--font-serif);
    font-size: 3.5rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2), inset 0 0 20px rgba(197, 168, 128, 0.2);
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.partner-detail-card:hover .partner-detail-avatar-box {
    transform: scale(1.05) rotate(2deg);
    border-color: var(--accent-dark);
}

.partner-detail-card h2 {
    font-size: 1.8rem;
    margin-bottom: 0.3rem;
    color: var(--primary);
}

.partner-detail-card .partner-role {
    font-size: 0.78rem;
    margin-bottom: 2rem;
    color: var(--accent-dark);
}

.partner-contact-info {
    border-top: 1px solid rgba(10, 20, 40, 0.06);
    padding-top: 2rem;
    text-align: left;
}

.partner-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.partner-contact-item:last-child {
    margin-bottom: 0;
}

.partner-contact-icon {
    font-size: 1.15rem;
    color: var(--accent-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 0.2rem;
}

.partner-contact-content h5 {
    font-family: var(--font-sans);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    font-weight: 600;
    margin-bottom: 0.15rem;
}

.partner-contact-content p,
.partner-contact-content a {
    font-size: 0.95rem;
    color: var(--text-main);
    text-decoration: none;
    transition: var(--transition-smooth);
}

.partner-contact-content a:hover {
    color: var(--accent-dark);
}

.partner-detail-body {
    background-color: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 4rem 3.5rem;
    box-shadow: 0 15px 45px rgba(10, 20, 40, 0.02);
}

.partner-detail-headline {
    font-size: 1.4rem;
    line-height: 1.5;
    color: var(--accent-dark);
    font-family: var(--font-serif);
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(10, 20, 40, 0.06);
}

.partner-practice-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 3rem;
}

.partner-practice-pill {
    background-color: rgba(197, 168, 128, 0.05);
    border: 1px solid rgba(197, 168, 128, 0.2);
    color: var(--accent-dark);
    padding: 0.5rem 1.25rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 500;
    font-family: var(--font-sans);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.partner-practice-pill:hover {
    background-color: var(--accent);
    color: var(--primary);
    border-color: var(--accent);
    box-shadow: 0 5px 15px rgba(197, 168, 128, 0.2);
}

.partner-detail-section {
    margin-bottom: 3.5rem;
}

.partner-detail-section:last-child {
    margin-bottom: 0;
}

.partner-detail-section h3 {
    font-size: 1.6rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.6rem;
}

.partner-detail-section h3::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 35px;
    height: 2px;
    background-color: var(--accent);
}

.partner-detail-section p {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--text-main);
}

.partner-detail-section ul {
    list-style: none;
    padding: 0;
}

.partner-detail-section li {
    position: relative;
    padding-left: 2rem;
    margin-bottom: 1.25rem;
    font-size: 1.05rem;
    line-height: 1.6;
    color: var(--text-main);
}

.partner-detail-section li:last-child {
    margin-bottom: 0;
}

.partner-detail-section li::before {
    content: "";
    position: absolute;
    left: 0.5rem;
    top: 0.75rem;
    width: 6px;
    height: 6px;
    background-color: var(--accent);
    border-radius: 50%;
}

.partner-detail-section li strong {
    color: var(--primary);
}

/* Responsive details layout */
@media (max-width: 992px) {
    .partner-detail-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .partner-detail-sidebar {
        position: static;
    }

    .partner-detail-card {
        padding: 3rem 2.5rem;
    }

    .partner-detail-body {
        padding: 3rem 2rem;
    }
}

/* Premium Scroll Reveal and Progress Animations */
.scroll-progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: linear-gradient(90deg, var(--accent) 0%, var(--accent-dark) 100%);
    z-index: 9999;
    transition: width 0.1s ease-out;
}

/* Base reveal transition settings */
.reveal {
    opacity: 0;
    transition: opacity 1.2s cubic-bezier(0.16, 1, 0.3, 1), transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: transform, opacity;
}

/* Reveal direction presets */
.reveal-up {
    transform: translateY(40px);
}

.reveal-down {
    transform: translateY(-40px);
}

.reveal-left {
    transform: translateX(-40px);
}

.reveal-right {
    transform: translateX(40px);
}

/* Revealed (active) state */
.reveal.revealed {
    opacity: 1;
    transform: translate(0) scale(1) skew(0);
}

/* Staggered Delay Utilities */
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }

/* Handle cases where JavaScript is disabled - immediately show elements if HTML has js-enabled class, or if js is disabled */
html:not(.js-enabled) .reveal {
    opacity: 1 !important;
    transform: none !important;
}

/* Accessibility: Respect user prefers-reduced-motion setting */
@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }
    .scroll-progress-bar {
        display: none !important;
    }
}

/* Pagination Styling */
.pagination {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 4rem;
    margin-bottom: 2rem;
}

.page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid var(--border-color);
    background-color: var(--bg-white);
    color: var(--primary);
    font-family: var(--font-sans);
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition-smooth);
    cursor: pointer;
}

.page-link:hover {
    border-color: var(--accent);
    color: var(--accent-dark);
    background-color: rgba(197, 168, 128, 0.05);
}

.page-link.active {
    background-color: var(--primary);
    border-color: var(--primary);
    color: var(--bg-white);
    box-shadow: 0 8px 20px rgba(10, 20, 40, 0.15);
}

.page-link.next {
    width: auto;
    padding: 0 1.5rem;
    border-radius: 30px;
    gap: 0.5rem;
}

.page-link.next svg {
    transition: transform 0.3s ease;
}

.page-link.next:hover svg {
    transform: translateX(3px);
}

/* Insights Carousel Slider styling */
.insights-slider-container {
    position: relative;
    margin-top: 3rem;
}

.insights-slider-track-wrap {
    overflow: hidden;
    width: 100%;
    padding: 20px 0;
    margin: -20px 0;
}

.insights-slider-track {
    display: flex;
    gap: 30px;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: transform;
}

.insight-slide-item {
    flex: 0 0 calc((100% - 60px) / 3); /* 3 cards visible on desktop */
    box-sizing: border-box;
}

@media (max-width: 1024px) {
    .insight-slide-item {
        flex: 0 0 calc((100% - 30px) / 2); /* 2 cards visible on tablet */
    }
}

@media (max-width: 768px) {
    .insight-slide-item {
        flex: 0 0 100%; /* 1 card visible on mobile */
    }
}

/* Navigation Arrow Buttons */
.slider-nav {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    margin-bottom: 2rem;
    margin-top: -5.5rem; /* Align inline with section header */
    position: relative;
    z-index: 10;
}

@media (max-width: 768px) {
    .slider-nav {
        margin-top: 2rem;
        justify-content: center;
    }
}

.slider-arrow {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 1px solid var(--border-color);
    background-color: var(--bg-white);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition-smooth);
    box-shadow: 0 4px 12px rgba(10, 20, 40, 0.03);
}

.slider-arrow:hover {
    border-color: var(--accent);
    color: var(--accent-dark);
    background-color: rgba(197, 168, 128, 0.05);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(10, 20, 40, 0.08);
}

/* Careers Split Card Layout styles */
.careers-list-container {
    display: flex;
    flex-direction: column;
    gap: 4rem;
    margin-top: 3rem;
}

.career-split-card {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    background-color: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 0;
    overflow: hidden;
    box-shadow: 0 15px 45px rgba(10, 20, 40, 0.02);
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    min-height: 380px;
    position: relative;
}

.career-split-card.reverse-layout {
    grid-template-columns: 1.2fr 1fr;
}

.career-split-card.reverse-layout .career-image-wrap {
    order: 2;
}

.career-image-wrap {
    position: relative;
    overflow: hidden;
    height: 100%;
    min-height: 250px;
}

.career-image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.career-split-card:hover {
    transform: translateY(-4px);
    border-color: rgba(197, 168, 128, 0.4);
    box-shadow: 0 20px 50px rgba(10, 20, 40, 0.08);
}

.career-split-card:hover .career-image-wrap img {
    transform: scale(1.06);
}

.career-content-wrap {
    padding: 3.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.career-tag-badge {
    display: inline-block;
    font-family: var(--font-sans);
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--accent);
    margin-bottom: 1rem;
}

.career-experience-info {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    border-left: 2px solid var(--accent);
    padding-left: 1rem;
}

@media (max-width: 992px) {
    .career-split-card, .career-split-card.reverse-layout {
        grid-template-columns: 1fr;
        min-height: auto;
    }
    
    .career-split-card.reverse-layout .career-image-wrap {
        order: 0;
    }
    
    .career-image-wrap {
        height: 250px;
    }
    
    .career-content-wrap {
        padding: 2.5rem;
    }
}

/* Word-by-Word Typewriter Reveal Animation */
.word-wrapper {
    display: inline-block;
    vertical-align: baseline;
    margin-right: 0.28em;
}

.word-wrapper:last-child {
    margin-right: 0;
}

.word-inner {
    display: inline-block;
    opacity: 0;
    filter: blur(4px);
    transform: translateY(6px);
    transition:
        opacity 0.35s ease,
        filter 0.35s ease,
        transform 0.35s ease;
    will-change: opacity, filter, transform;
}

/* When parent block is revealed or active slide in hero */
.revealed .word-inner,
.hero-slide.active .word-inner {
    opacity: 1;
    filter: blur(0px);
    transform: translateY(0);
}

/* Footer & CTA Section Styles */
footer {
    background-color: var(--primary);
    padding: 0 !important; /* Reset padding to let CTA be full-width */
    border-top: 1px solid rgba(197, 168, 128, 0.15);
}

.footer-content-wrap {
    padding: 5rem 0 3rem 0;
}

.footer-cta {
    background-image: linear-gradient(to bottom, rgba(10, 20, 40, 0.88) 0%, rgba(22, 36, 62, 0.88) 100%), url('images/cta_background.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    padding: 7.5rem 2rem;
    text-align: center;
    border-bottom: 1px solid rgba(197, 168, 128, 0.12);
    position: relative;
    overflow: hidden;
}

.footer-cta-bg-glow-1 {
    position: absolute;
    top: -50%;
    left: -20%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(197, 168, 128, 0.05) 0%, transparent 70%);
    pointer-events: none;
}

.footer-cta-bg-glow-2 {
    position: absolute;
    bottom: -50%;
    right: -20%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(197, 168, 128, 0.05) 0%, transparent 70%);
    pointer-events: none;
}

.footer-cta h2 {
    font-family: var(--font-serif);
    font-size: clamp(2rem, 3.5vw, 2.75rem);
    color: var(--bg-white);
    margin-bottom: 1.25rem;
    letter-spacing: -0.01em;
}

.footer-cta p {
    color: rgba(255, 255, 255, 0.7);
    font-size: clamp(0.95rem, 1.5vw, 1.15rem);
    max-width: 650px;
    margin: 0 auto 3rem auto;
    font-weight: 300;
    line-height: 1.6;
}

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