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

/* Reset and Custom Scrollbar */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    /* Color Palette */
    --primary-deep: #7D0F14; /* Logo Burgundy */
    --primary-charcoal: #1F2421;
    --primary-slate: #9D1C22;
    --primary: #7D0F14;
    --accent-gold: #7D0F14; /* Brand Burgundy */
    --accent-gold-dark: #5C0A0E;
    --accent-gold-light: #FDF5F5; /* Extremely light burgundy tint */
    --bg-light: #FFFFFF; /* Pure White */
    --bg-dark: #FFFFFF; /* Pure White */
    --bg-glass: rgba(255, 255, 255, 0.95); /* White glass */
    --border-color-light: rgba(125, 15, 20, 0.08); /* Faint burgundy border */
    
    /* Text Colors */
    --text-dark: #1F2421;
    --text-muted: #64748B;
    --text-light: #FFFFFF; /* Keep buttons white text */
    --text-light-muted: rgba(255, 255, 255, 0.7);
    --text-white: #FFFFFF;
    
    /* Fonts */
    --font-heading: 'Playfair Display', Georgia, serif;
    --font-body: 'Montserrat', sans-serif;
    
    /* Transitions & Shadows */
    --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    --shadow-sm: 0 4px 6px var(--shadow-color);
    --shadow-md: 0 10px 20px var(--shadow-color);
    --shadow-lg: 0 20px 40px var(--shadow-color);
    --border-radius: 4px; /* Classic, clean corners fit law firms better than super round ones */

    /* Theme-specific variables to replace hardcoded values */
    --card-bg: #FFFFFF;
    --border-color: #ECEEF2;
    --border-color-medium: #D1D5DB;
    --bg-scrolled: #FFFFFF;
    --bg-mobile-nav: #FFFFFF;
    --hero-overlay-1: rgba(255, 255, 255, 0.94);
    --hero-overlay-2: rgba(253, 250, 248, 0.89);
    --page-hero-overlay-1: rgba(255, 255, 255, 0.95);
    --page-hero-overlay-2: rgba(253, 250, 248, 0.9);
    --global-contact-bg-1: #fafafa;
    --global-contact-bg-2: #f5f0f0;
    --form-control-bg: #f9f5f5;
    --shadow-color: rgba(125, 15, 20, 0.05);
}

[data-theme="dark"] {
    --primary-deep: #7D0F14; /* Exact Logo Burgundy */
    --primary-charcoal: #E5E7EB;
    --primary-slate: #9D1C22; /* Original Logo Slate */
    --primary: #7D0F14;
    --accent-gold: #7D0F14; /* Exact Brand Burgundy */
    --accent-gold-dark: #5C0A0E;
    --accent-gold-light: #251415; /* Deep burgundy background tint */
    --bg-light: #121212; /* Premium dark background */
    --bg-dark: #0A0A0A;
    --bg-glass: rgba(18, 18, 18, 0.95);
    --border-color-light: rgba(125, 15, 20, 0.2);
    
    /* Text Colors */
    --text-dark: #FFFFFF; /* Pure White */
    --text-muted: #FFFFFF; /* Pure White */
    --text-light: #FFFFFF;
    --text-light-muted: rgba(255, 255, 255, 0.85);
    --text-white: #FFFFFF;

    /* Theme-specific overrides */
    --card-bg: #FFFFFF; /* White cards in dark mode */
    --border-color: #ECEEF2; /* Light borders for white cards */
    --border-color-medium: #D1D5DB;
    --bg-scrolled: #121212;
    --bg-mobile-nav: #FFFFFF; /* White mobile drawer menu */
    --hero-overlay-1: rgba(18, 18, 18, 0.95);
    --hero-overlay-2: rgba(30, 22, 23, 0.9);
    --page-hero-overlay-1: rgba(18, 18, 18, 0.96);
    --page-hero-overlay-2: rgba(30, 22, 23, 0.92);
    --global-contact-bg-1: #151111;
    --global-contact-bg-2: #1D1516;
    --form-control-bg: #f9f5f5; /* Light input fields */
    --shadow-color: rgba(0, 0, 0, 0.5);
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-dark);
}
::-webkit-scrollbar-thumb {
    background: var(--accent-gold);
    border-radius: var(--border-radius);
}
::-webkit-scrollbar-thumb:hover {
    background: var(--accent-gold-dark);
}

/* Typography Helpers */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--primary-deep);
    font-weight: 600;
}

p {
    color: var(--text-muted);
    font-weight: 400;
}

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

/* Base Layout Components */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.section-padding {
    padding: 100px 0;
}

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

/* Section Titles */
.section-title-wrapper {
    margin-bottom: 60px;
    text-align: center;
}

.subtitle {
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--accent-gold);
    margin-bottom: 12px;
    display: inline-block;
}

.section-title {
    font-size: 2.5rem;
    color: var(--primary-deep);
    position: relative;
    padding-bottom: 20px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 2px;
    background-color: var(--accent-gold);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    border-radius: 50px;
    transition: var(--transition-smooth);
    cursor: pointer;
    border: none;
}

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

.btn-primary:hover {
    background-color: var(--accent-gold-dark);
    color: var(--text-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

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

.btn-secondary:hover {
    background-color: var(--accent-gold);
    color: var(--text-light);
    transform: translateY(-2px);
}

.btn-dark {
    background-color: var(--primary-deep);
    color: var(--text-light);
}

.btn-dark:hover {
    background-color: var(--primary-charcoal);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Navigation Header */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: var(--transition-smooth);
    background: var(--bg-glass);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color-light);
}

header.scrolled {
    background: var(--bg-scrolled);
    box-shadow: var(--shadow-sm);
}

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

header.scrolled .nav-container {
    height: 75px;
}

.logo-link {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-image {
    height: 55px;
    width: auto;
    display: block;
    transition: var(--transition-smooth);
}

header.scrolled .logo-image {
    height: 44px;
}

.logo-text {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-deep);
    letter-spacing: 1px;
}

.logo-text span {
    color: var(--primary-slate);
}

.nav-menu {
    display: flex;
    align-items: center;
    list-style: none;
    gap: 22px;
}

.nav-item a {
    color: var(--text-dark);
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 1px;
    position: relative;
    padding: 8px 0;
}

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

.nav-item a:hover {
    color: var(--primary-deep);
}

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

.nav-item.active a {
    color: var(--primary-deep);
}

.nav-cta {
    display: flex;
    align-items: center;
}

.hamburger {
    display: none;
    cursor: pointer;
    background: transparent;
    border: none;
    color: var(--primary-deep);
}

/* Mobile Sidebar Menu style */
.mobile-nav {
    position: fixed;
    top: 0;
    right: -300px;
    width: 300px;
    height: 100vh;
    background-color: var(--bg-mobile-nav);
    border-left: 1px solid var(--border-color-light);
    z-index: 1001;
    transition: var(--transition-smooth);
    padding: 40px 30px;
    box-shadow: var(--shadow-lg);
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.mobile-nav.active {
    right: 0;
}

.mobile-nav-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.mobile-close-btn {
    background: transparent;
    border: none;
    color: var(--primary-deep);
    font-size: 1.5rem;
    cursor: pointer;
}

.mobile-menu {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.mobile-menu-item a {
    color: var(--text-dark);
    font-size: 1.1rem;
    font-weight: 500;
    letter-spacing: 1px;
}

.mobile-menu-item a:hover,
.mobile-menu-item.active a {
    color: var(--primary-deep);
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, var(--hero-overlay-1) 0%, var(--hero-overlay-2) 100%), 
                url('../images/general/office.jpg') no-repeat center center / cover;
    color: var(--text-dark);
    padding-top: 100px;
    padding-bottom: 80px;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Luxury geometric lattice pattern in SVG as data URI */
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80' viewBox='0 0 80 80'%3E%3Cpath d='M40 0l40 40-40 40L0 40z' fill='none' stroke='%23c5a880' stroke-width='0.5' stroke-opacity='0.05'/%3E%3C/svg%3E");
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 750px;
    margin: 0 auto;
    text-align: center;
    animation: fadeInUp 1s ease-out;
}

.hero-title {
    font-size: 4rem;
    line-height: 1.15;
    margin-bottom: 24px;
    color: var(--text-dark);
}

.hero-title span {
    color: var(--accent-gold);
}

.hero-subtitle {
    font-size: 1.15rem;
    font-weight: 400;
    color: var(--text-muted);
    margin-bottom: 40px;
    line-height: 1.8;
}

.hero-actions {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 30px;
}

/* Feature highlight cards on Homepage */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    position: relative;
    z-index: 10;
}

.feature-card {
    background: var(--card-bg);
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
    border-top: 3px solid var(--accent-gold);
    transition: var(--transition-smooth);
}

.feature-card:hover {
    transform: translateY(-10px);
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: rgba(197, 168, 128, 0.1);
    color: var(--accent-gold);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--border-radius);
    margin-bottom: 24px;
    font-size: 1.5rem;
}

.feature-card h3 {
    font-size: 1.25rem;
    margin-bottom: 12px;
}

/* About / Philosophy section */
.about-section {
    background-color: var(--bg-light);
}

.grid-2col {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 60px;
    align-items: center;
}

.about-text h3 {
    font-size: 1.75rem;
    margin-bottom: 16px;
    font-style: italic;
    font-weight: 400;
    color: var(--accent-gold-dark);
}

.about-text p {
    margin-bottom: 24px;
    text-align: justify;
}

.about-visual {
    position: relative;
}

.about-visual-bg {
    width: 100%;
    height: 450px;
    background: transparent;
    position: relative;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: flex-end;
}

.about-visual-pattern {
    position: absolute;
    width: 200%;
    height: 200%;
    border: 1px solid rgba(197, 168, 128, 0.08);
    transform: rotate(45deg);
}

.about-justice-img {
    height: 100%;
    width: auto;
    object-fit: contain;
    position: relative;
    z-index: 2;
    display: block;
}

.about-seal {
    position: absolute;
    bottom: -30px;
    right: -30px;
    width: 180px;
    height: 180px;
    background: var(--accent-gold);
    border: 8px solid var(--bg-light);
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: var(--primary-deep);
    box-shadow: var(--shadow-lg);
    z-index: 10;
}

.about-seal .seal-year {
    font-size: 1.75rem;
    font-weight: 700;
    font-family: var(--font-heading);
}

.about-seal .seal-label {
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* Practice Areas Preview Section */
.practice-section {
    background-color: var(--bg-light);
}

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

.practice-card {
    border: 1px solid var(--border-color);
    padding: 45px 30px;
    border-radius: var(--border-radius);
    transition: var(--transition-smooth);
    background: var(--card-bg);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    box-shadow: var(--shadow-sm);
}

.practice-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent-gold-dark);
}

.practice-card-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
}

.practice-icon {
    width: 70px;
    height: 70px;
    background: rgba(125, 15, 20, 0.04);
    color: var(--primary-deep);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin: 0 auto 24px auto;
    font-size: 1.6rem;
    transition: var(--transition-smooth);
    border: 1px solid rgba(125, 15, 20, 0.08);
}

.practice-card:hover .practice-icon {
    background: var(--primary-deep);
    color: #FFFFFF;
    transform: scale(1.08);
}

.practice-card h3 {
    font-family: var(--font-heading);
    color: var(--primary-deep);
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 12px;
    transition: var(--transition-smooth);
}

.practice-card p {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.65;
    margin-bottom: 24px;
    transition: var(--transition-smooth);
}

.practice-link {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--accent-gold);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    transition: var(--transition-smooth);
    margin-top: auto;
}

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

.practice-card:hover .practice-link {
    color: var(--primary-deep);
}

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

/* Stats Counter Section */
.stats-section {
    background: var(--accent-gold-light);
    color: var(--text-dark);
    position: relative;
    border-top: 1px solid var(--border-color-light);
    border-bottom: 1px solid var(--border-color-light);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    color: var(--accent-gold);
    font-weight: 700;
    margin-bottom: 8px;
}

.stat-label {
    font-size: 0.85rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-muted);
}

/* Testimonials / Sliders */
.testimonials-section {
    background-color: var(--bg-light);
}

.testimonial-slider {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
}

.testimonial-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.testimonial-slide {
    min-width: 100%;
    padding: 20px;
    text-align: center;
}

.testimonial-quote {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-style: italic;
    color: var(--primary-deep);
    margin-bottom: 30px;
    line-height: 1.8;
}

.testimonial-author {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.author-name {
    font-weight: 700;
    color: var(--text-dark);
}

.author-title {
    font-size: 0.8rem;
    color: var(--accent-gold-dark);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 4px;
}

.slider-controls {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 40px;
}

.slider-dot {
    width: 10px;
    height: 10px;
    background-color: #D1D5DB;
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.slider-dot.active {
    background-color: var(--accent-gold);
    transform: scale(1.3);
}

/* Contact CTA Block */
.contact-cta {
    background: var(--accent-gold-light);
    color: var(--text-dark);
    border-top: 1px solid var(--border-color-light);
    border-bottom: 1px solid var(--border-color-light);
}

.cta-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cta-text {
    max-width: 600px;
}

.cta-text h2 {
    color: var(--primary-deep);
    font-size: 2.2rem;
    margin-bottom: 12px;
}

.cta-text p {
    color: var(--text-muted);
}

/* Footer Section */
footer {
    background-color: var(--bg-light);
    color: var(--text-dark);
    padding: 80px 0 30px;
    border-top: 1px solid var(--border-color-light);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 50px;
    margin-bottom: 60px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
}

.footer-logo .logo-text {
    font-size: 1.35rem;
}

.footer-desc {
    font-size: 0.9rem;
    line-height: 1.7;
    margin-bottom: 24px;
    color: var(--text-muted);
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-icon {
    width: 36px;
    height: 36px;
    background: rgba(125, 15, 20, 0.05);
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-deep);
    transition: var(--transition-smooth);
    border: 1px solid rgba(125, 15, 20, 0.08);
}

.social-icon:hover {
    background: var(--accent-gold);
    color: #FFFFFF;
    transform: translateY(-3px);
}

.footer-title {
    color: var(--primary-deep);
    font-size: 1.1rem;
    margin-bottom: 24px;
    position: relative;
    padding-bottom: 12px;
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 1.5px;
    background-color: var(--accent-gold);
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links a {
    font-size: 0.9rem;
    color: var(--text-dark);
}

.footer-links a:hover {
    color: var(--accent-gold);
    padding-left: 5px;
}

.footer-info {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 0.9rem;
}

.footer-info li {
    display: flex;
    gap: 12px;
}

.footer-info svg {
    color: var(--accent-gold);
    flex-shrink: 0;
    margin-top: 4px;
}

.footer-bottom {
    border-top: 1px solid var(--border-color-light);
    padding-top: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.footer-legal-links {
    display: flex;
    gap: 24px;
}

.footer-legal-links a {
    color: var(--text-muted);
    text-decoration: none;
    transition: var(--transition-smooth);
}

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

/* Practice Areas Detail Page */
.page-hero {
    padding: 180px 0 100px;
    background: linear-gradient(135deg, var(--page-hero-overlay-1) 0%, var(--page-hero-overlay-2) 100%),
                url('../images/general/office.jpg') no-repeat center center / cover;
    color: var(--text-dark);
    text-align: center;
    position: relative;
    border-bottom: 1px solid var(--border-color-light);
}

.page-hero .subtitle {
    margin-bottom: 16px;
}

.page-hero h1 {
    color: var(--primary-deep);
    font-size: 3.5rem;
    margin-bottom: 20px;
}

.page-hero-desc {
    max-width: 600px;
    margin: 0 auto;
    color: var(--text-muted);
}

.practice-details-section {
    background-color: var(--bg-light);
}

.practice-detail-block {
    background: var(--card-bg);
    border-radius: var(--border-radius);
    padding: 50px;
    box-shadow: var(--shadow-sm);
    margin-bottom: 40px;
    border-left: 4px solid var(--accent-gold);
    transition: var(--transition-smooth);
}

.practice-detail-block:hover {
    box-shadow: var(--shadow-md);
}

.practice-detail-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 30px;
}

.practice-detail-header h2 {
    font-size: 2rem;
}

.practice-detail-icon {
    font-size: 2rem;
    color: var(--accent-gold);
    background: rgba(197, 168, 128, 0.1);
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--border-radius);
}

.practice-detail-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
}

.practice-detail-body h4 {
    margin: 24px 0 12px;
}

.practice-detail-body ul {
    list-style: none;
    margin-left: 0;
    margin-bottom: 24px;
}

.practice-detail-body ul li {
    position: relative;
    padding-left: 24px;
    margin-bottom: 10px;
}

.practice-detail-body ul li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--accent-gold);
    font-weight: 700;
}

.practice-detail-sidebar {
    background: var(--bg-light);
    padding: 30px;
    border-radius: var(--border-radius);
}

.practice-detail-sidebar h4 {
    font-size: 1.1rem;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--border-color-light);
    padding-bottom: 10px;
}

/* Attorneys Page */
.attorneys-section {
    background-color: var(--bg-light);
}

.attorneys-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 45px 30px;
}

.partner-message-grid {
    display: grid;
    grid-template-columns: 350px 1fr;
    gap: 50px;
    align-items: start;
    max-width: 1000px;
    margin: 0 auto;
}

@media (max-width: 900px) {
    .partner-message-grid {
        grid-template-columns: 1fr;
        gap: 30px;
        max-width: 400px;
    }
}

.attorney-card {
    background: var(--card-bg);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-smooth);
    border: 1px solid var(--border-color);
}

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

.attorney-photo-container {
    width: 100%;
    height: 380px;
    background: linear-gradient(135deg, var(--primary-charcoal) 0%, var(--primary-deep) 100%);
    position: relative;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

.attorney-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    transition: var(--transition-smooth);
    position: absolute;
    top: 0;
    left: 0;
    z-index: 2;
}

.attorney-card:hover .attorney-photo {
    transform: scale(1.05);
}

.attorney-avatar-svg {
    width: 160px;
    height: 160px;
    opacity: 0.15;
    transition: var(--transition-smooth);
}

.attorney-card:hover .attorney-avatar-svg {
    opacity: 0.25;
    transform: scale(1.1);
}

.attorney-photo-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    color: rgba(255, 255, 255, 0.8);
    z-index: 2;
}

.attorney-photo-placeholder .initials {
    font-family: var(--font-heading);
    font-size: 4rem;
    font-weight: 700;
    color: var(--accent-gold);
    letter-spacing: 2px;
}

.attorney-info {
    padding: 30px;
    text-align: center;
}

.attorney-name {
    font-size: 1.5rem;
    margin-bottom: 4px;
}

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

.attorney-card-cta {
    margin-top: 20px;
    display: block;
    width: 100%;
}

/* Modal Popup Styles */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(7, 10, 19, 0.85);
    backdrop-filter: blur(8px);
    z-index: 2000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition-smooth);
}

.modal.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-content {
    background: var(--card-bg);
    width: 90%;
    max-width: 900px;
    max-height: 85vh;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
    overflow-y: auto;
    position: relative;
    transform: scale(0.9);
    transition: var(--transition-smooth);
    border-top: 4px solid var(--accent-gold);
}

.modal.active .modal-content {
    transform: scale(1);
}

.modal-close {
    position: absolute;
    top: 24px;
    right: 24px;
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: var(--primary-deep);
    transition: var(--transition-smooth);
    z-index: 10;
}

.modal-close:hover {
    color: var(--accent-gold);
}

.modal-body {
    padding: 50px;
}

.modal-header-grid {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 40px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 30px;
    margin-bottom: 30px;
}

.modal-avatar-box {
    height: 200px;
    background: linear-gradient(135deg, var(--primary-charcoal) 0%, var(--primary-deep) 100%);
    border-radius: var(--border-radius);
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.modal-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 2;
}

.modal-avatar-box .initials {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--accent-gold);
}

.modal-title-info h2 {
    font-size: 2.2rem;
    margin-bottom: 4px;
}

.modal-title-info .modal-role {
    font-size: 0.9rem;
    color: var(--accent-gold-dark);
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 1.5px;
    margin-bottom: 20px;
}

.modal-meta-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    font-size: 0.9rem;
}

.modal-meta-item {
    display: flex;
    gap: 10px;
    color: var(--text-muted);
}

.modal-meta-item svg {
    color: var(--accent-gold);
}

.modal-bio-sections h3 {
    font-size: 1.25rem;
    margin: 30px 0 15px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 8px;
}

.modal-bio-sections ul {
    list-style: none;
}

.modal-bio-sections ul li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 8px;
    color: var(--text-muted);
    font-size: 0.95rem;
}

.modal-bio-sections ul li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--accent-gold);
    font-size: 1.25rem;
    line-height: 1;
}

/* Insights / Blog Page */
.insights-section {
    background-color: var(--bg-light);
}

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

.insight-card {
    background: var(--card-bg);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-smooth);
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
}

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

.insight-visual {
    height: 220px;
    background: linear-gradient(135deg, var(--primary-charcoal) 0%, var(--primary-deep) 100%);
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.insight-category {
    position: absolute;
    top: 20px;
    left: 20px;
    background: var(--accent-gold);
    color: var(--bg-dark);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 6px 12px;
    border-radius: var(--border-radius);
}

.insight-visual-svg {
    width: 80px;
    height: 80px;
    opacity: 0.1;
}

.insight-content {
    padding: 30px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.insight-meta {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 12px;
    display: flex;
    gap: 15px;
}

.insight-title {
    font-size: 1.25rem;
    margin-bottom: 12px;
    line-height: 1.4;
}

.insight-excerpt {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 20px;
    flex-grow: 1;
}

.insight-readmore {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--accent-gold-dark);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

/* Contact & Scheduler Page styling */

.contact-section-grid {
    display: grid;
    grid-template-columns: 1.2fr 1.8fr;
    gap: 50px;
}

.contact-info-panel {
    background: var(--accent-gold-light);
    color: var(--text-dark);
    padding: 50px;
    border-radius: var(--border-radius);
    border-top: 3px solid var(--primary-deep);
    border: 1px solid var(--border-color-light);
}

.contact-info-panel h2 {
    color: var(--primary-deep);
    font-size: 2rem;
    margin-bottom: 20px;
}

.contact-info-panel p {
    color: var(--text-muted);
    margin-bottom: 40px;
}

.contact-details-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 32px;
}

.contact-detail-item {
    display: flex;
    gap: 16px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--border-radius);
    padding: 14px 18px;
    transition: all 0.3s ease;
}

.contact-detail-item:hover {
    transform: translateY(-3px);
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(197, 168, 128, 0.4);
}

.contact-detail-item .icon-box {
    width: 32px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 4px;
    background: transparent;
}

.contact-detail-content h4 {
    color: var(--primary-deep);
    font-size: 0.95rem;
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.contact-detail-content p, .contact-detail-content a {
    color: var(--text-dark);
    font-size: 0.95rem;
}

/* Standard Contact Form */
.form-card {
    background: var(--card-bg);
    padding: 50px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
}

.form-card h2 {
    font-size: 2rem;
    margin-bottom: 30px;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 24px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group.full-width {
    grid-column: 1 / span 2;
}

.form-label {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--primary-deep);
}

.form-control {
    width: 100%;
    padding: 14px;
    border: 1px solid var(--border-color-medium);
    border-radius: var(--border-radius);
    font-family: var(--font-body);
    font-size: 0.9rem;
    transition: var(--transition-smooth);
    background-color: var(--bg-light);
}

.form-control:focus {
    outline: none;
    border-color: var(--accent-gold);
    background-color: var(--card-bg);
    box-shadow: 0 0 0 3px rgba(197, 168, 128, 0.15);
}

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

/* Scheduler / Stepper styling */
.scheduler-card {
    background: var(--card-bg);
    padding: 50px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
}

.scheduler-card h2 {
    font-size: 2rem;
    margin-bottom: 12px;
}

.scheduler-card .lead {
    color: var(--text-muted);
    margin-bottom: 40px;
}

/* Stepper Progress Bar */
.stepper-header {
    display: flex;
    justify-content: space-between;
    position: relative;
    margin-bottom: 50px;
}

.stepper-header::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--border-color);
    z-index: 1;
}

.stepper-step {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 25%;
}

.step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--card-bg);
    border: 2px solid var(--border-color-medium);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 8px;
    transition: var(--transition-smooth);
}

.step-label {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
    transition: var(--transition-smooth);
}

.stepper-step.active .step-number {
    border-color: var(--accent-gold);
    background: var(--accent-gold);
    color: var(--bg-dark);
}

.stepper-step.active .step-label {
    color: var(--primary-deep);
}

.stepper-step.completed .step-number {
    border-color: var(--primary-deep);
    background: var(--primary-deep);
    color: var(--text-light);
}

.stepper-step.completed .step-label {
    color: var(--primary-deep);
}

/* Scheduler Panels */
.scheduler-panel {
    display: none;
}

.scheduler-panel.active {
    display: block;
    animation: fadeIn 0.4s ease-out;
}

/* Step 1: Services Grid */
.services-selection-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.service-select-card {
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 24px;
    cursor: pointer;
    transition: var(--transition-smooth);
    position: relative;
}

.service-select-card:hover {
    border-color: var(--accent-gold);
    box-shadow: var(--shadow-sm);
}

.service-select-card.selected {
    border-color: var(--accent-gold);
    background-color: rgba(197, 168, 128, 0.05);
    box-shadow: 0 0 0 3px rgba(197, 168, 128, 0.15);
}

.service-select-card h4 {
    font-size: 1.1rem;
    margin-bottom: 8px;
}

.service-select-card p {
    font-size: 0.85rem;
}

.service-select-card .select-indicator {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 20px;
    height: 20px;
    border: 2px solid var(--border-color-medium);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-select-card.selected .select-indicator {
    border-color: var(--accent-gold);
    background: var(--accent-gold);
}

.service-select-card.selected .select-indicator::after {
    content: '';
    width: 6px;
    height: 6px;
    background: var(--bg-dark);
    border-radius: 50%;
}

/* Step 2: Attorney Selection Grid */
.attorney-select-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.attorney-select-card {
    display: flex;
    align-items: center;
    gap: 20px;
    border: 1px solid var(--border-color);
    padding: 20px;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition-smooth);
    position: relative;
}

.attorney-select-card:hover {
    border-color: var(--accent-gold);
}

.attorney-select-card.selected {
    border-color: var(--accent-gold);
    background-color: rgba(197, 168, 128, 0.05);
    box-shadow: 0 0 0 3px rgba(197, 168, 128, 0.15);
}

.attorney-select-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-charcoal) 0%, var(--primary-deep) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-gold);
    font-weight: 700;
    font-family: var(--font-heading);
}

.attorney-select-details h4 {
    font-size: 1rem;
    margin-bottom: 2px;
}

.attorney-select-details p {
    font-size: 0.8rem;
}

.attorney-select-card .select-indicator {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 20px;
    height: 20px;
    border: 2px solid var(--border-color-medium);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.attorney-select-card.selected .select-indicator {
    border-color: var(--accent-gold);
    background: var(--accent-gold);
}

.attorney-select-card.selected .select-indicator::after {
    content: '';
    width: 6px;
    height: 6px;
    background: var(--bg-dark);
    border-radius: 50%;
}

/* Step 3: Calendar & Time Grid */
.calendar-time-layout {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 30px;
}

.calendar-widget {
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 24px;
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.calendar-header h4 {
    font-size: 1.1rem;
    color: var(--primary-deep);
}

.calendar-nav-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-muted);
}

.calendar-nav-btn:hover {
    color: var(--accent-gold);
}

.calendar-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    text-align: center;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.calendar-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 8px;
}

.calendar-day {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition-smooth);
}

.calendar-day:hover:not(.disabled) {
    background-color: var(--accent-gold-light);
}

.calendar-day.disabled {
    color: var(--border-color-medium);
    cursor: not-allowed;
}

.calendar-day.selected {
    background-color: var(--accent-gold);
    color: var(--bg-dark);
    font-weight: 600;
}

.time-slots-widget {
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 24px;
    display: flex;
    flex-direction: column;
}

.time-slots-widget h4 {
    font-size: 1.1rem;
    margin-bottom: 20px;
}

.slots-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    max-height: 250px;
    overflow-y: auto;
}

.time-slot {
    border: 1px solid var(--border-color);
    padding: 12px;
    text-align: center;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 600;
    transition: var(--transition-smooth);
}

.time-slot:hover {
    border-color: var(--accent-gold);
    color: var(--accent-gold-dark);
}

.time-slot.selected {
    background-color: var(--primary-deep);
    border-color: var(--primary-deep);
    color: var(--text-light);
}

/* Scheduler Navigation Buttons */
.scheduler-nav {
    display: flex;
    justify-content: space-between;
    margin-top: 40px;
    border-top: 1px solid var(--border-color);
    padding-top: 30px;
}

/* Step 5: Success message screen */
.scheduler-success {
    text-align: center;
    padding: 40px 0;
}

.success-icon {
    width: 80px;
    height: 80px;
    background: rgba(197, 168, 128, 0.1);
    color: var(--accent-gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    margin: 0 auto 30px;
}

.success-title {
    font-size: 2.2rem;
    margin-bottom: 16px;
}

.success-details-card {
    background-color: var(--card-bg);
    border-radius: var(--border-radius);
    padding: 30px;
    max-width: 500px;
    margin: 30px auto;
    text-align: left;
    border: 1px solid var(--border-color);
}

.success-detail-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
    font-size: 0.9rem;
    border-bottom: 1px dashed #E5E7EB;
    padding-bottom: 8px;
}

.success-detail-row:last-child {
    border-bottom: none;
    padding-bottom: 0;
    margin-bottom: 0;
}

.success-detail-row strong {
    color: var(--primary-deep);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Responsive Grid/Flex Breaks */
@media (max-width: 1024px) {
    .features-grid {
        grid-template-columns: 1fr;
        margin-top: 0;
        padding-top: 60px;
    }
    
    .practice-grid, .attorneys-grid, .insights-grid, .about-grid, .contact-section-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .grid-2col, .split-layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px 30px;
    }
    
    .hero-title {
        font-size: 2.8rem;
    }

    .hero-stats-row {
        grid-template-columns: repeat(3, 1fr);
        gap: 24px;
    }
}

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

    .section-padding {
        padding: 55px 0;
    }

    .section-title-wrapper {
        margin-bottom: 40px;
    }

    .section-title {
        font-size: 1.85rem;
    }

    .page-hero {
        padding: 140px 0 60px;
    }

    .page-hero h1 {
        font-size: 2.2rem;
    }

    .page-hero.outsourcing-hero {
        padding: 140px 0 60px;
    }

    .page-hero.outsourcing-hero h1 {
        font-size: 2.1rem;
    }

    .hero {
        padding-top: 130px;
        padding-bottom: 60px;
        min-height: auto;
    }

    .hero-title {
        font-size: 2.2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 30px;
    }

    .hero-buttons {
        gap: 12px;
        margin-bottom: 40px;
    }

    .hero-buttons .btn {
        width: 100%;
        text-align: center;
        justify-content: center;
    }

    .nav-menu {
        display: none;
    }
    
    .nav-cta {
        display: none;
    }
    
    .hamburger {
        display: block;
    }
    
    .practice-grid, .attorneys-grid, .insights-grid, .about-grid, .contact-section-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px 20px;
    }
    
    .practice-detail-grid {
        grid-template-columns: 1fr;
    }

    .partner-message-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .modal-header-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .modal-avatar-box {
        margin: 0 auto;
    }

    .modal-content {
        width: 95%;
        margin: 20px auto;
        padding: 24px 20px;
        max-height: 90vh;
        overflow-y: auto;
    }
    
    .calendar-time-layout {
        grid-template-columns: 1fr;
    }
    
    .services-selection-grid, .attorney-select-grid {
        grid-template-columns: 1fr;
    }
    
    .stepper-header {
        margin-bottom: 25px;
    }

    .step-indicator-bar {
        display: flex;
        justify-content: space-between;
        gap: 8px;
    }
    
    .step-label {
        font-size: 0.65rem;
    }
    
    .form-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .form-group.full-width {
        grid-column: 1;
    }

    .form-control {
        font-size: 16px; /* Prevents auto-zoom on mobile browsers */
    }
    
    .cta-flex {
        flex-direction: column;
        gap: 25px;
        text-align: center;
    }

    .expand-capacity-card, .lpo-why-card {
        padding: 28px 20px;
    }

    .fortified-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .security-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .offices-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .sla-banner-box {
        flex-direction: column;
        align-items: flex-start;
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }

    .section-padding {
        padding: 45px 0;
    }

    .section-title {
        font-size: 1.55rem;
    }

    .stats-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .hero-title {
        font-size: 1.95rem;
    }

    .page-hero h1 {
        font-size: 1.8rem;
    }

    .page-hero.outsourcing-hero h1 {
        font-size: 1.75rem;
    }
    
    .hero-actions {
        flex-direction: column;
        width: 100%;
    }

    .hero-actions .btn {
        width: 100%;
        text-align: center;
        justify-content: center;
    }

    .hero-stats-row {
        grid-template-columns: 1fr;
        gap: 18px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 35px;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

    .btn {
        padding: 12px 24px;
        font-size: 0.9rem;
    }

    .attorney-photo-container {
        height: 280px;
    }

    .expand-capacity-card h3 {
        font-size: 1.4rem;
    }
}

/* Global Offices Grid Section */
.offices-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.office-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color-light);
    border-radius: var(--border-radius);
    padding: 30px;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.office-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: var(--accent-gold);
}

.flag-icon-wrapper {
    margin-bottom: 20px;
}

.office-card h3 {
    font-size: 1.25rem;
    color: var(--primary-deep);
    margin-bottom: 15px;
    font-family: var(--font-heading);
    font-weight: 700;
}

.office-card p {
    font-size: 0.9rem;
    color: var(--text-dark);
    margin-bottom: 10px;
    line-height: 1.6;
}

.office-card p a {
    color: var(--primary-deep);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s ease;
}

.office-card p a:hover {
    color: var(--accent-gold-dark);
}

/* Global Call to Action Section */
.global-cta-section {
    padding: 60px 0;
    background-color: var(--bg-light);
}

.global-cta-card {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    background: url('../images/general/office.jpg') no-repeat center center / cover;
    padding: 80px 30px;
    text-align: center;
    box-shadow: var(--shadow-lg);
}

.global-cta-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Rich purple/burgundy to dark charcoal gradient overlay as shown in user's image */
    background: linear-gradient(135deg, rgba(125, 15, 20, 0.94) 0%, rgba(98, 25, 102, 0.88) 50%, rgba(31, 36, 33, 0.92) 100%);
    z-index: 1;
}

.global-cta-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.global-cta-icon {
    color: #FFFFFF;
    margin-bottom: 5px;
    opacity: 0.95;
}

.global-cta-subtitle {
    font-family: var(--font-body);
    font-size: 1.2rem;
    font-weight: 400;
    color: #FFFFFF;
    letter-spacing: 1px;
}

.global-cta-title {
    font-family: var(--font-heading);
    font-size: 2.8rem;
    font-weight: 700;
    color: #FFFFFF;
    letter-spacing: 2px;
    margin-bottom: 10px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.global-cta-btn {
    display: inline-block;
    padding: 12px 35px;
    background-color: #9B2C8B; /* Rich purple/magenta button as in image */
    color: #FFFFFF;
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 50px;
    text-decoration: none;
    transition: var(--transition-smooth);
    box-shadow: 0 4px 15px rgba(155, 44, 139, 0.3);
}

.global-cta-btn:hover {
    background-color: #7D0F14; /* Hover to Brand Burgundy */
    color: #FFFFFF;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(125, 15, 20, 0.4);
}

@media (max-width: 768px) {
    .global-cta-card {
        padding: 50px 20px;
    }
    
    .global-cta-title {
        font-size: 2rem;
    }
    
    .global-cta-subtitle {
        font-size: 1rem;
    }
}

/* Firm Overview card layout in Attorneys page */
.overview-card {
    max-width: 1000px;
    margin: 0 auto;
    padding: 40px;
    background: var(--accent-gold-light);
    border-left: 4px solid var(--primary-deep);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    display: grid;
    grid-template-columns: 2.2fr 0.8fr;
    gap: 40px;
    align-items: center;
}

.overview-card-img-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
}

.overview-card-img {
    max-width: 100%;
    height: auto;
    max-height: 250px;
    object-fit: contain;
    filter: drop-shadow(0 4px 10px rgba(125, 15, 20, 0.05));
}

@media (max-width: 768px) {
    .overview-card {
        grid-template-columns: 1fr;
        padding: 30px 20px;
        gap: 30px;
    }
    
    .overview-card-img-wrapper {
        order: -1; /* image on top for mobile */
    }
}

/* ============================================================ */
/* Global Inline Contact Form Section                            */
/* ============================================================ */
.global-contact-section {
    padding: 100px 0;
    background: linear-gradient(135deg, var(--global-contact-bg-1) 0%, var(--global-contact-bg-2) 100%);
    position: relative;
    overflow: hidden;
}

.global-contact-section::before {
    content: '';
    position: absolute;
    top: -80px;
    right: -80px;
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, rgba(125, 15, 20, 0.06) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.global-contact-section::after {
    content: '';
    position: absolute;
    bottom: -60px;
    left: -60px;
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, rgba(125, 15, 20, 0.04) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.global-contact-inner {
    display: grid;
    grid-template-columns: 1fr 1.6fr;
    gap: 60px;
    align-items: start;
}

.global-contact-info {
    padding-top: 10px;
}

.global-contact-info .subtitle {
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    color: var(--primary);
    text-transform: uppercase;
    margin-bottom: 16px;
}

.global-contact-info h2 {
    font-size: clamp(1.8rem, 3vw, 2.4rem);
    color: var(--text-dark);
    line-height: 1.25;
    margin-bottom: 20px;
}

.global-contact-info p {
    font-size: 0.97rem;
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 36px;
}

.global-contact-detail-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.global-contact-detail-list li {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.55;
}

.global-contact-detail-list .detail-icon {
    width: 36px;
    height: 36px;
    min-width: 36px;
    background: var(--primary);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 2px;
}

.global-contact-detail-list .detail-icon svg {
    width: 16px;
    height: 16px;
    fill: #fff;
}

.global-contact-detail-list strong {
    display: block;
    color: var(--text-dark);
    font-weight: 600;
    font-size: 0.85rem;
    margin-bottom: 2px;
}

.global-contact-form-card {
    background: var(--card-bg);
    border-radius: 20px;
    padding: 48px 44px;
    box-shadow: 0 8px 40px var(--shadow-color);
    border: 1px solid var(--border-color-light);
    position: relative;
    z-index: 1;
}

.global-contact-form-card h3 {
    font-size: 1.5rem;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.global-contact-form-card .form-subtext {
    font-size: 0.88rem;
    color: var(--text-muted);
    margin-bottom: 32px;
    line-height: 1.6;
}

.global-contact-form-card .form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    margin-bottom: 18px;
}

.global-contact-form-card .form-group {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.global-contact-form-card .form-group.full-width {
    grid-column: 1 / -1;
}

.global-contact-form-card .form-label {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-dark);
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.global-contact-form-card .form-control {
    width: 100%;
    padding: 13px 16px;
    background: var(--form-control-bg);
    border: 1.5px solid var(--border-color-light);
    border-radius: 10px;
    font-size: 0.93rem;
    color: var(--text-dark);
    font-family: inherit;
    transition: border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
    outline: none;
    box-sizing: border-box;
}

.global-contact-form-card .form-control:focus {
    border-color: var(--primary);
    background: var(--card-bg);
    box-shadow: 0 0 0 3px var(--shadow-color);
}

.global-contact-form-card .form-control::placeholder {
    color: #b5a8a8;
    font-size: 0.9rem;
}

.global-contact-form-card textarea.form-control {
    min-height: 130px;
    resize: vertical;
}

.global-contact-form-card .form-submit-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: 8px;
    flex-wrap: wrap;
}

.global-contact-form-card .form-privacy-note {
    font-size: 0.78rem;
    color: var(--text-muted);
    line-height: 1.5;
    max-width: 280px;
}

.global-contact-form-card .form-privacy-note a {
    color: var(--primary);
    text-decoration: underline;
}

.global-contact-form-card .btn-submit {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--primary);
    color: #fff;
    border: none;
    padding: 14px 32px;
    border-radius: 50px;
    font-size: 0.93rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: background 0.25s ease, transform 0.2s ease, box-shadow 0.25s ease;
    white-space: nowrap;
}

.global-contact-form-card .btn-submit:hover {
    background: #5a080c;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(125, 15, 20, 0.25);
}

.global-contact-form-card .btn-submit svg {
    width: 16px;
    height: 16px;
    fill: #fff;
    transition: transform 0.2s ease;
}

.global-contact-form-card .btn-submit:hover svg {
    transform: translateX(3px);
}

.global-contact-success {
    display: none;
    text-align: center;
    padding: 40px 20px;
}

.global-contact-success.visible {
    display: block;
}

.global-contact-success .success-icon-wrap {
    width: 64px;
    height: 64px;
    background: rgba(125, 15, 20, 0.08);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.global-contact-success .success-icon-wrap svg {
    width: 30px;
    height: 30px;
    fill: var(--primary);
}

.global-contact-success h4 {
    font-size: 1.3rem;
    color: var(--text-dark);
    margin-bottom: 10px;
}

.global-contact-success p {
    font-size: 0.9rem;
    color: var(--text-muted);
    max-width: 340px;
    margin: 0 auto;
    line-height: 1.7;
}

@media (max-width: 900px) {
    .global-contact-inner {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .global-contact-form-card {
        padding: 36px 24px;
    }

    .global-contact-form-card .form-grid {
        grid-template-columns: 1fr;
    }

    .global-contact-form-card .form-submit-row {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* ============================================================ */
/* Theme Toggle & Dynamic Brand styling                        */
/* ============================================================ */
.nav-right-group {
    display: flex;
    align-items: center;
    gap: 15px;
}

.theme-toggle-btn {
    background: transparent;
    border: 1px solid var(--border-color-light);
    color: var(--primary-deep);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition-smooth);
    outline: none;
    flex-shrink: 0;
}

.theme-toggle-btn:hover {
    background: rgba(125, 15, 20, 0.05);
    border-color: var(--accent-gold);
    color: var(--accent-gold);
    transform: scale(1.05);
}

[data-theme="dark"] .theme-toggle-btn:hover {
    background: rgba(255, 94, 98, 0.1);
    border-color: var(--accent-gold);
    color: var(--accent-gold);
}

.theme-toggle-btn svg {
    width: 20px;
    height: 20px;
    stroke: currentColor;
    fill: none;
    transition: transform 0.3s ease;
}

.theme-toggle-btn:hover svg {
    transform: rotate(20deg);
}

/* CSS logo swapping between PNG and SVG */
.logo-image {
    content: url('../images/logo/logo.png');
}

[data-theme="dark"] .logo-image {
    content: url('../images/logo/logo.svg');
}

/* Card container text reset for dark mode white cards */
.feature-card,
.practice-card,
.practice-detail-block,
.practice-detail-sidebar,
.attorney-card,
.modal-content,
.form-card,
.scheduler-card,
.office-card,
.global-contact-form-card,
.success-details-card,
.service-select-card,
.attorney-select-card,
.calendar-widget,
.time-slots-widget,
.overview-card,
.contact-info-panel {
    color: #1F2421 !important; /* Charcoal color for text inside white cards */
}

/* Ensure headings inside these cards are also dark/burgundy */
.feature-card h3,
.practice-card h3,
.attorney-name,
.modal-content h2,
.modal-content h3,
.form-card h2,
.scheduler-card h2,
.office-card h3,
.global-contact-form-card h3,
.practice-detail-block h2,
.practice-detail-block h4,
.success-title,
.success-details-card strong,
.service-select-card h4,
.attorney-select-details h4,
.calendar-header h4,
.time-slots-widget h4,
.overview-card h2,
.contact-info-panel h2 {
    color: #7D0F14 !important; /* Logo Burgundy */
}

/* Ensure paragraph/muted text inside these cards is also charcoal/gray */
.feature-card p,
.practice-card p,
.attorney-role,
.modal-role,
.modal-meta-item,
.modal-bio-sections ul li,
.form-label,
.scheduler-card .lead,
.step-label,
.office-card p,
.global-contact-form-card .form-subtext,
.global-contact-form-card .form-label,
.global-contact-form-card .form-privacy-note,
.practice-detail-body p,
.practice-detail-body ul li,
.practice-detail-sidebar h4,
.success-detail-row,
.contact-info-panel p,
.contact-detail-content p,
.contact-detail-content a {
    color: #64748B !important; /* Gray */
}

/* Ensure links and highlights inside cards also have appropriate dark colors */
.practice-link,
.office-card p a,
.modal-meta-item svg,
.success-detail-row strong,
.contact-detail-content h4 {
    color: #7D0F14 !important; /* Logo burgundy */
}

.calendar-day:hover:not(.disabled) {
    background-color: #FDF5F5 !important;
}

.calendar-day.disabled {
    color: #D1D5DB !important;
}

.calendar-day.selected {
    color: #FFFFFF !important;
    background-color: #7D0F14 !important;
}

.time-slot:hover {
    border-color: #7D0F14 !important;
    color: #5C0A0E !important;
}

.time-slot.selected {
    background-color: #7D0F14 !important;
    border-color: #7D0F14 !important;
    color: #FFFFFF !important;
}

.service-select-card.selected,
.attorney-select-card.selected {
    background-color: rgba(125, 15, 20, 0.05) !important;
    border-color: #7D0F14 !important;
}

.service-select-card.selected .select-indicator,
.attorney-select-card.selected .select-indicator {
    background: #7D0F14 !important;
    border-color: #7D0F14 !important;
}

.service-select-card.selected .select-indicator::after,
.attorney-select-card.selected .select-indicator::after {
    background: #FFFFFF !important;
}

/* Mobile closed button */
.mobile-close-btn {
    color: #7D0F14 !important;
}

.mobile-menu-item a {
    color: #1F2421 !important;
}

.mobile-menu-item a:hover,
.mobile-menu-item.active a {
    color: #7D0F14 !important;
}

/* ============================================================ */
/* Language Selector Styling                                    */
/* ============================================================ */
.lang-selector {
    position: relative;
    display: inline-block;
}

.lang-btn {
    background: transparent;
    border: 1px solid var(--border-color-light);
    color: var(--primary-deep);
    height: 44px;
    padding: 0 12px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    transition: var(--transition-smooth);
    outline: none;
}

.lang-btn:hover {
    background: rgba(125, 15, 20, 0.05);
    border-color: var(--accent-gold);
    color: var(--accent-gold);
}

.lang-btn svg {
    width: 16px;
    height: 16px;
}

.lang-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 8px;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
    list-style: none;
    display: none;
    z-index: 1000;
    min-width: 120px;
    padding: 8px 0;
}

.lang-dropdown.active {
    display: block;
    animation: fadeIn 0.2s ease-out;
}

.lang-dropdown li a {
    display: block;
    padding: 8px 16px;
    font-size: 0.85rem;
    color: #1F2421 !important; /* Keep it dark inside dropdown cards */
    transition: var(--transition-smooth);
    text-align: left;
}

.lang-dropdown li a:hover {
    background: var(--accent-gold-light);
    color: var(--accent-gold) !important;
}

/* Mobile Language Selector styling */
.mobile-lang-row {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin-top: 10px;
    padding: 0 10px;
}

.mobile-lang-btn {
    flex: 1;
    padding: 8px 0;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    border-radius: 4px;
    border: 1px solid var(--border-color-light);
    background: transparent;
    color: var(--primary-deep);
    cursor: pointer;
    transition: var(--transition-smooth);
}

.mobile-lang-btn.active {
    background: var(--primary-deep);
    color: #FFFFFF !important;
    border-color: var(--primary-deep);
}

/* ============================================================ */
/* Right-to-Left (RTL) Layout Adaptations                       */
/* ============================================================ */
[dir="rtl"] {
    text-align: right;
}

[dir="rtl"] .nav-container,
[dir="rtl"] .footer-grid,
[dir="rtl"] .grid-2col,
[dir="rtl"] .features-grid,
[dir="rtl"] .stats-grid,
[dir="rtl"] .form-grid,
[dir="rtl"] .cta-flex,
[dir="rtl"] .partner-message-grid,
[dir="rtl"] .modal-header-grid,
[dir="rtl"] .calendar-time-layout,
[dir="rtl"] .stepper-header,
[dir="rtl"] .global-contact-inner,
[dir="rtl"] .global-contact-form-card .form-submit-row {
    direction: rtl;
}

[dir="rtl"] .logo-link {
    flex-direction: row;
}

[dir="rtl"] .nav-menu {
    flex-direction: row-reverse;
}

[dir="rtl"] .lang-dropdown {
    right: auto;
    left: 0;
}

[dir="rtl"] .lang-dropdown li a {
    text-align: right;
}

[dir="rtl"] .theme-toggle-btn {
    margin-right: 0;
    margin-left: 15px;
}

[dir="rtl"] .mobile-nav {
    right: auto;
    left: -300px;
    border-left: none;
    border-right: 1px solid var(--border-color-light);
}

[dir="rtl"] .mobile-nav.active {
    left: 0;
    right: auto;
}

[dir="rtl"] .practice-detail-block {
    border-left: none;
    border-right: 4px solid var(--accent-gold);
}

[dir="rtl"] .practice-detail-body ul li::before {
    left: auto;
    right: 0;
}

[dir="rtl"] .practice-detail-body ul li {
    padding-left: 0;
    padding-right: 24px;
}

[dir="rtl"] .modal-bio-sections ul li::before {
    left: auto;
    right: 0;
}

[dir="rtl"] .modal-bio-sections ul li {
    padding-left: 0;
    padding-right: 20px;
}

[dir="rtl"] .overview-card {
    border-left: none;
    border-right: 4px solid var(--primary-deep);
}

[dir="rtl"] .footer-title::after {
    left: auto;
    right: 0;
}

[dir="rtl"] .footer-links a:hover {
    padding-left: 0;
    padding-right: 5px;
}

[dir="rtl"] .footer-info li svg {
    margin-left: 0;
}

[dir="rtl"] .success-details-card {
    text-align: right;
}

[dir="rtl"] .success-detail-row strong {
    text-align: left;
}

[dir="rtl"] .service-select-card .select-indicator,
[dir="rtl"] .attorney-select-card .select-indicator {
    right: auto;
    left: 20px;
}

[dir="rtl"] .global-contact-form-card .btn-submit svg {
    transform: rotate(180deg);
}

[dir="rtl"] .global-contact-form-card .btn-submit:hover svg {
    transform: rotate(180deg) translateX(3px);
}

/* Collaboration Badge */
.collaboration-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 18px;
    border: 2px solid rgba(255, 255, 255, 0.6);
    background: rgba(125, 15, 20, 0.2);
    border-radius: 4px;
    margin-top: 25px;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    color: #FFFFFF;
    text-transform: uppercase;
}

[data-theme="dark"] .collaboration-badge {
    border-color: rgba(255, 255, 255, 0.35);
    background: rgba(255, 255, 255, 0.05);
}

.collaboration-badge.badge-dark-text {
    color: var(--primary-deep) !important;
    border-color: rgba(125, 15, 20, 0.4) !important;
    background: rgba(125, 15, 20, 0.08) !important;
}

.pulse-dot {
    width: 10px;
    height: 10px;
    background-color: #10B981;
    border-radius: 50%;
    position: relative;
    display: inline-block;
    flex-shrink: 0;
}

.pulse-dot::after {
    content: '';
    width: 100%;
    height: 100%;
    background-color: #10B981;
    border-radius: 50%;
    position: absolute;
    top: 0;
    left: 0;
    animation: dotPulse 1.8s infinite ease-in-out;
    opacity: 0.8;
}

@keyframes dotPulse {
    0% {
        transform: scale(1);
        opacity: 0.8;
    }
    100% {
        transform: scale(2.8);
        opacity: 0;
    }
}

/* LPO Hero Custom Section Styles */
.outsourcing-hub-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    border: 1.5px solid var(--accent-gold);
    background: rgba(212, 175, 55, 0.1);
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--accent-gold);
    letter-spacing: 1px;
    margin-bottom: 25px;
    text-transform: uppercase;
}

.outsourcing-hub-badge svg {
    flex-shrink: 0;
    stroke: var(--accent-gold);
}

.highlight-gold-italic {
    color: var(--accent-gold);
    font-style: italic;
    font-family: 'Playfair Display', Georgia, serif;
}

/* Responsive Grid for 5 Columns */
.grid-5col {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 24px;
}

@media (max-width: 1200px) {
    .grid-5col {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .grid-5col {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
}

@media (max-width: 480px) {
    .grid-5col {
        grid-template-columns: 1fr;
    }
}

/* SLA Banner Styling */
.sla-banner-box {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 24px 30px;
    box-shadow: var(--shadow-md);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.sla-banner-info {
    text-align: right;
    border-left: 1px solid var(--border-color);
    padding-left: 24px;
    min-width: 200px;
}

[dir="rtl"] .sla-banner-info {
    text-align: left;
    border-left: none;
    border-right: 1px solid var(--border-color);
    padding-left: 0;
    padding-right: 24px;
}

@media (max-width: 768px) {
    .sla-banner-box {
        flex-direction: column;
        align-items: flex-start;
    }
    .sla-banner-info {
        border-left: none;
        padding-left: 0;
        text-align: left;
    }
    [dir="rtl"] .sla-banner-info {
        border-right: none;
        padding-right: 0;
        text-align: right;
    }
}

/* LPO Why Choose sidebar */
.lpo-why-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 40px;
    color: var(--text-dark);
    box-shadow: var(--shadow-sm);
}
.lpo-why-card h3 {
    color: var(--primary-deep);
    margin-bottom: 20px;
    font-size: 1.4rem;
}
.lpo-why-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.lpo-why-card li {
    position: relative;
    padding-left: 24px;
    margin-bottom: 15px;
    color: var(--text-muted);
}
.lpo-why-card li::before {
    content: '●';
    position: absolute;
    left: 0;
    color: var(--accent-gold);
}
[dir="rtl"] .lpo-why-card li {
    padding-left: 0;
    padding-right: 24px;
}
[dir="rtl"] .lpo-why-card li::before {
    left: auto;
    right: 0;
}

/* Security Layout Grid */
.security-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}
.security-block {
    background: rgba(16, 185, 129, 0.08);
    border: 1.5px solid rgba(16, 185, 129, 0.25);
    border-radius: var(--border-radius);
    padding: 24px;
    text-align: center;
    color: #10B981;
    font-weight: 600;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: var(--transition-smooth);
}
.security-block svg {
    stroke: #10B981;
}

/* Fortified Security Panel */
.fortified-section {
    background: var(--bg-light);
    color: var(--text-dark);
    border-top: 1px solid var(--border-color-light);
    border-bottom: 1px solid var(--border-color-light);
}
.fortified-section .section-title {
    color: var(--primary-deep);
}
.fortified-section .section-title span {
    color: var(--primary-deep);
}
.fortified-block {
    border: 1px solid var(--border-color);
    background: var(--card-bg);
    padding: 24px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    transition: var(--transition-smooth);
}
.fortified-block:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-3px);
}
.fortified-block h4 {
    color: var(--primary-deep);
    font-size: 1.15rem;
    margin-bottom: 10px;
}
.fortified-block p {
    color: var(--text-muted);
    margin: 0;
    font-size: 0.9rem;
}

/* Expand capacity card */
.expand-capacity-card {
    background: var(--card-bg);
    color: var(--text-dark);
    padding: 40px;
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.expand-capacity-card h3 {
    color: var(--primary-deep);
    font-size: 1.8rem;
    margin-bottom: 20px;
}
.expand-capacity-card ul {
    list-style: none;
    padding: 0;
    margin: 0 0 30px;
}
.expand-capacity-card li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 12px;
    color: var(--text-muted);
    font-size: 0.95rem;
}
.expand-capacity-card li::before {
    content: '●';
    position: absolute;
    left: 0;
    color: var(--accent-gold);
}
[dir="rtl"] .expand-capacity-card li {
    padding-left: 0;
    padding-right: 20px;
}
[dir="rtl"] .expand-capacity-card li::before {
    left: auto;
    right: 0;
}
.capacity-contact-box {
    background: var(--accent-gold-light);
    border: 1px solid var(--border-color-light);
    border-radius: var(--border-radius);
    padding: 20px;
    text-align: center;
}
.capacity-contact-box .label-heading {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 6px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
}
.capacity-contact-box a {
    color: var(--primary-deep);
    font-weight: 700;
    font-size: 1.2rem;
    text-decoration: none;
    transition: var(--transition-smooth);
}
.capacity-contact-box a:hover {
    color: var(--accent-gold-dark);
}
.capacity-contact-box .email-info {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-top: 6px;
}

/* LPO Hero Theme-Adaptive Grid */
.page-hero.outsourcing-hero {
    padding: 180px 0 80px;
    text-align: center;
    border-bottom: 1px solid var(--border-color-light);
    color: var(--text-dark);
    background: linear-gradient(135deg, var(--page-hero-overlay-1) 0%, var(--page-hero-overlay-2) 100%),
                url('../images/general/office.jpg') no-repeat center center / cover;
}

.page-hero.outsourcing-hero h1 {
    color: var(--primary-deep);
    font-size: 3.2rem;
    font-weight: 700;
    max-width: 900px;
    margin: 0 auto 24px;
}
[data-theme="dark"] .page-hero.outsourcing-hero h1 {
    color: #FFFFFF;
}

.page-hero.outsourcing-hero p {
    color: var(--text-muted);
    max-width: 800px;
    margin: 0 auto 40px;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 60px;
}

[data-theme="dark"] .page-hero.outsourcing-hero .btn-secondary {
    border-color: rgba(255, 255, 255, 0.4) !important;
    color: #FFFFFF !important;
}
[data-theme="dark"] .page-hero.outsourcing-hero .btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.1) !important;
    border-color: #FFFFFF !important;
}

.hero-stats-divider {
    width: 100%;
    height: 1px;
    background: var(--border-color-light);
    margin-bottom: 40px;
}
[data-theme="dark"] .hero-stats-divider {
    background: rgba(255, 255, 255, 0.1);
}

.hero-stats-row {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
    text-align: left;
}

.stat-col {
    padding: 0 10px;
    border-left: 1px solid var(--border-color-light);
}
[data-theme="dark"] .stat-col {
    border-left: 1px solid rgba(255, 255, 255, 0.1);
}

.stat-col:first-child {
    border-left: none;
}

.stat-col .stat-val {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--accent-gold);
    margin-bottom: 6px;
    line-height: 1.1;
}
[data-theme="dark"] .stat-col .stat-val {
    color: #E2C044;
}

.stat-col .stat-sub {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-dark);
    letter-spacing: 0.5px;
    margin-bottom: 4px;
    text-transform: uppercase;
}

.stat-col .stat-desc {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* RTL overrides for stats row */
[dir="rtl"] .hero-stats-row {
    text-align: right;
}
[dir="rtl"] .stat-col {
    border-left: none;
    border-right: 1px solid var(--border-color-light);
}
[data-theme="dark"][dir="rtl"] .stat-col {
    border-right: 1px solid rgba(255, 255, 255, 0.1);
}
[dir="rtl"] .stat-col:first-child {
    border-right: none;
}

@media (max-width: 992px) {
    .hero-stats-row {
        grid-template-columns: repeat(3, 1fr);
        gap: 30px;
    }
    .stat-col {
        border-left: none;
    }
    [dir="rtl"] .stat-col {
        border-right: none;
    }
}

@media (max-width: 600px) {
    .hero-stats-row {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
    .page-hero.outsourcing-hero h1 {
        font-size: 2.2rem;
    }
}






