/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #0a2540; /* Deep Navy */
    --secondary-color: #334e68; /* Slate Blue */
    --accent-color: #c5a059; /* Refined Gold */
    --accent-hover: #b08d45;
    --accent-light: #f3e9d2;
    --text-color: #1a202c;
    --text-light: #4a5568;
    --white: #ffffff;
    --light-bg: #f8fafc;
    --lighter-bg: #edf2f7;
    --dark-overlay: linear-gradient(135deg, rgba(10, 37, 64, 0.65) 0%, rgba(10, 37, 64, 0.5) 100%);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Inter', sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    line-height: 1.8;
    color: var(--text-color);
    overflow-x: hidden;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    background-color: var(--white);
    width: 100%;
}

img, video, iframe {
    max-width: 100%;
    height: auto;
}

* {
    word-wrap: break-word;
    overflow-wrap: break-word;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    color: var(--primary-color);
}

h1, h2, h3 {
    display: inline-block;
    position: relative;
    max-width: 100%;
}

h1::after, h2::after, h3::after {
    content: '';
    display: block;
    width: 100%;
    height: 3px;
    background: linear-gradient(to right, var(--primary-color), var(--accent-color));
    margin-top: 8px;
    border-radius: 2px;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: transparent;
    padding: 1.5rem 0;
    z-index: 1000;
    transition: var(--transition);
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 1rem 0;
    box-shadow: var(--shadow-md);
}

.navbar.scrolled .logo a {
    color: var(--accent-color);
}

.navbar.scrolled .nav-link {
    color: var(--text-color);
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo a {
    display: flex; /* align image + text */
    align-items: center;
    gap: 0.6rem;
    font-size: 1.1rem; /* base size for the text next to logo */
    font-weight: 700;
    color: var(--accent-color);
    text-decoration: none;
    letter-spacing: 1px;
    font-family: var(--font-heading);
}

/* Logo image sizing */
.logo img.logo-img {
    height: 52px;
    width: auto;
    display: block;
    transition: var(--transition);
}

.logo .logo-text {
    display: inline-block;
    color: inherit;
    font-size: 1.15rem;
    line-height: 1;
    letter-spacing: 1px;
    text-transform: uppercase;
    white-space: nowrap;
}

/* slightly reduce logo text size when navbar shrinks */
.navbar.scrolled .logo .logo-text {
    font-size: 1rem;
}

@media (max-width: 640px) {
    .logo .logo-text {
        font-size: 0.95rem;
    }
}

.navbar.scrolled .logo img.logo-img {
    height: 40px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2.5rem;
}

.nav-link {
    color: var(--white);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    position: relative;
    padding: 0.5rem 0;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    font-size: 0.85rem;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-color);
    transition: var(--transition);
}

.nav-link:hover::after {
    width: 100%;
}

.nav-link:hover {
    color: var(--accent-color);
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--white);
    transition: var(--transition);
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    height: 100vh;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--dark-overlay);
    z-index: 1;
}

.hero-overlay {
    display: none; /* Removed in favor of ::before gradient */
}

.hero-content {
    position: relative;
    z-index: 3;
    max-width: 1000px;
    padding: 2rem;
    margin-top: 80px;
    animation: fadeInUp 1s ease-out;
}

.hero-title {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    line-height: 1.1;
    font-weight: 700;
    color: var(--white);
    letter-spacing: -1px;
}

.hero-subtitle {
    font-size: 1.35rem;
    margin-bottom: 3rem;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
    font-weight: 300;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-practice-selector {
    margin-top: 2.5rem;
    display: flex;
    justify-content: center;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
    animation: fadeInUp 1.2s ease-out;
}

.select-wrapper {
    position: relative;
    min-width: 300px;
}

#practice-area-select {
    width: 100%;
    padding: 16px 24px;
    font-size: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 4px;
    background: rgba(0, 0, 0, 0.4);
    color: var(--white);
    backdrop-filter: blur(5px);
    appearance: none;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    transition: all 0.3s ease;
}

#practice-area-select:hover {
    background: rgba(0, 0, 0, 0.6);
    border-color: var(--white);
}

#practice-area-select:focus {
    outline: none;
    background: rgba(0, 0, 0, 0.7);
    border-color: var(--accent-color);
}

#practice-area-select option {
    background: var(--primary-color);
    color: var(--white);
    padding: 10px;
}

.select-wrapper i {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--white);
    pointer-events: none;
    font-size: 0.9rem;
}

.hero-practice-selector .btn {
    padding: 16px 30px;
    min-width: auto;
}

.btn {
    padding: 16px 36px;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition);
    display: inline-block;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-size: 0.9rem;
}

.btn-primary {
    background: var(--accent-color);
    color: var(--primary-color);
}

.btn-primary:hover {
    background: var(--accent-hover);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

.btn-secondary {
    background: transparent;
    color: var(--white);
    border: 1px solid rgba(255,255,255,0.5);
    backdrop-filter: blur(5px);
}

.btn-secondary:hover {
    background: var(--white);
    color: var(--primary-color);
    border-color: var(--white);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

.btn-secondary:hover {
    background: var(--white);
    color: var(--primary-color);
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
}

.scroll-indicator i {
    font-size: 2rem;
    color: var(--white);
}

/* Stats Section */
.stats {
    position: relative;
    margin-top: -80px;
    z-index: 10;
    padding: 0 20px;
}

.stats .container {
    background: var(--white);
    border-radius: 8px;
    box-shadow: var(--shadow-xl);
    padding: 2rem 1.5rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    align-items: center;
}

.stat-item {
    text-align: center;
    padding: 0.5rem;
    border-right: 1px solid var(--lighter-bg);
}

.stat-item:last-child {
    border-right: none;
}

.stat-icon {
    font-size: 1.8rem;
    color: var(--accent-color);
    margin-bottom: 0.75rem;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.25rem;
    line-height: 1;
    font-family: var(--font-heading);
}

.stat-label {
    font-size: 0.75rem;
    color: var(--text-light);
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* Section Styles */
.section-header {
    text-align: center;
    margin-bottom: 4rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.section-subtitle {
    color: var(--accent-color);
    font-weight: 600;
    font-size: 0.85rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    display: block;
    margin-bottom: 1rem;
}

.section-title {
    font-size: 3rem;
    color: var(--primary-color);
    margin: 0;
    font-weight: 700;
    line-height: 1.2;
}

/* About Section */
.about {
    padding: 8rem 0;
    background: var(--white);
    overflow: hidden;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text {
    position: relative;
    z-index: 2;
}

.about-text h3 {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-family: var(--font-heading);
}

.about-text p {
    color: var(--text-light);
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    line-height: 1.8;
}

.about-features {
    margin-top: 3rem;
}

.feature-item {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
    align-items: flex-start;
}

.feature-icon {
    font-size: 2rem;
    color: var(--accent-color);
    min-width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--light-bg);
    border-radius: 50%;
}

.feature-content h4 {
    color: var(--primary-color);
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.feature-content p {
    color: var(--text-light);
    font-size: 1rem;
}

.about-image {
    position: relative;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    max-width: 100%;
}

.about-image img {
    width: 100%;
    height: 600px;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.about-image:hover img {
    transform: scale(1.05);
}

.image-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(30, 58, 95, 0.9), transparent);
    color: var(--white);
    padding: 2rem;
}

.image-overlay h4 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
    color: var(--white);
}

.image-overlay p {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.9);
}

/* Services Section */
.services {
    padding: 8rem 0;
    background: var(--light-bg);
    overflow: hidden;
}

.carousel-container {
    position: relative;
    padding: 0 60px;
    max-width: 1400px;
    margin: 0 auto;
}

.services-track-container {
    overflow: hidden;
    padding: 20px 10px;
    margin: -20px -10px;
}

.services-track {
    display: flex;
    gap: 2rem;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-card {
    flex: 0 0 calc(33.333% - 1.33rem);
    background: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    border: 1px solid rgba(0, 0, 0, 0.05);
    position: relative;
    display: flex;
    flex-direction: column;
}

.carousel-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: var(--white);
    border: 1px solid var(--lighter-bg);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 1.2rem;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    z-index: 10;
}

.carousel-button:hover {
    background: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
    transform: translateY(-50%) scale(1.1);
}

.carousel-button.prev {
    left: 0;
}

.carousel-button.next {
    right: 0;
}

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 3rem;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #cbd5e0;
    cursor: pointer;
    transition: var(--transition);
}

.dot.active {
    background: var(--accent-color);
    transform: scale(1.3);
}

/* Responsive Carousel */
@media (max-width: 1024px) {
    .service-card {
        flex: 0 0 calc(50% - 1rem);
    }
}

@media (max-width: 768px) {
    .carousel-container {
        padding: 0;
    }
    
    .carousel-button {
        display: none;
    }
    
    .service-card {
        flex: 0 0 100%;
    }
    
    .services-track {
        gap: 1rem;
    }
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--accent-color);
    transform: scaleX(0);
    transition: transform 0.4s ease;
    transform-origin: left;
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.service-image {
    position: relative;
    height: 240px;
    overflow: hidden;
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.service-card:hover .service-image img {
    transform: scale(1.05);
}

.service-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 37, 64, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.service-card:hover .service-overlay {
    opacity: 1;
}

.service-overlay i {
    font-size: 3rem;
    color: var(--accent-color);
    transform: translateY(20px);
    transition: transform 0.4s ease;
}

.service-card:hover .service-overlay i {
    transform: translateY(0);
}

.service-content {
    padding: 2.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.service-content h3 {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-bottom: 1rem;
    font-family: var(--font-heading);
}

.service-content p {
    color: var(--text-light);
    margin-bottom: 2rem;
    line-height: 1.7;
    font-size: 1rem;
    flex-grow: 1;
}

.service-link {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
}

.service-link:hover {
    color: var(--accent-hover);
    gap: 0.8rem;
}

/* Contact Section */
.contact {
    padding: 4rem 0;
    background: var(--white);
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 3rem;
    align-items: start;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-item {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
    padding: 1.5rem;
    background: var(--white);
    border-radius: 8px;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    border: 1px solid var(--lighter-bg);
    flex-wrap: wrap;
}

.contact-item:hover {
    border-color: var(--accent-color);
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.contact-icon {
    font-size: 1.5rem;
    color: var(--accent-color);
    min-width: 40px;
    height: 40px;
    background: var(--light-bg);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-details h4 {
    color: var(--primary-color);
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    word-break: break-word;
}

.contact-details p {
    color: var(--text-light);
    margin-bottom: 0.25rem;
    line-height: 1.6;
    word-break: break-word;
}

.contact-details a {
    color: var(--text-light);
    text-decoration: none;
    transition: var(--transition);
    word-break: break-word;
}

.contact-details a:hover {
    color: var(--accent-color);
}

.contact-form-wrapper {
    background: var(--white);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--lighter-bg);
}

.contact-form-wrapper h3 {
    color: var(--primary-color);
    font-size: 2rem;
    margin-bottom: 2rem;
    font-family: var(--font-heading);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 16px;
    border: 1px solid #e2e8f0;
    border-radius: 4px;
    font-size: 1rem;
    font-family: var(--font-body);
    transition: var(--transition);
    background: var(--light-bg);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    background: var(--white);
    box-shadow: 0 0 0 4px rgba(197, 160, 89, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 150px;
}

/* Footer */
.footer {
    background: var(--primary-color);
    color: var(--white);
    padding: 5rem 0 2rem;
    border-top: 5px solid var(--accent-color);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-section h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--white);
    font-family: var(--font-heading);
}

.footer-section h4 {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    color: var(--accent-color);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-section p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 1rem;
    line-height: 1.8;
}

/* Footer logo (replaces short paragraph) */
.footer-content > .footer-section:first-child img.footer-logo {
    display: block;
    /* slightly bigger for stronger brand presence */
    height: 180px;
    width: auto;
    margin-bottom: 1rem;
    /* nudge a little to the right without breaking flow */
    margin-left: 12px;
    transform: translateZ(0);
}

@media (max-width: 640px) {
    .footer-content > .footer-section:first-child img.footer-logo {
        /* scale down on small screens */
        height: 88px;
        margin-left: 6px;
    }
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.8rem;
}

.footer-section ul li a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: var(--transition);
    display: inline-block;
}

.footer-section ul li a:hover {
    color: var(--accent-color);
    transform: translateX(5px);
}

.footer-section ul li i {
    margin-right: 0.8rem;
    color: var(--accent-color);
    width: 20px;
    text-align: center;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.social-links a {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    text-decoration: none;
    transition: var(--transition);
    font-size: 1.1rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.social-links a:hover {
    background: var(--accent-color);
    border-color: var(--accent-color);
    transform: translateY(-3px);
    color: var(--primary-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    margin-top: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
}

.designer-credit {
    margin-top: 0.5rem;
    font-size: 0.85rem;
    opacity: 0.8;
}

.designer-credit a {
    color: var(--accent-color);
    text-decoration: none;
    transition: var(--transition);
}

.designer-credit a:hover {
    color: var(--white);
    text-decoration: underline;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

/* Page Header */
.page-header {
    height: 400px;
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    margin-top: 0; /* Navbar is fixed/transparent initially, but we might need background */
}

/* Ensure navbar has background on subpages */
body.subpage .navbar {
    background: var(--white);
    box-shadow: var(--shadow-sm);
    padding: 1rem 0;
}
body.subpage .navbar .nav-link {
    color: var(--primary-color);
}

body.subpage .navbar .logo a {
    color: var(--accent-color);
}
body.subpage .nav-link::after {
    background: var(--accent-color);
}

.page-header-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--dark-overlay);
    z-index: 1;
}

.page-header .container {
    position: relative;
    z-index: 2;
}

.page-title {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    color: var(--white);
}

.page-subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
    color: var(--white);
}

/* Service Detail */
.service-detail {
    padding: 5rem 0;
}

.service-detail-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
}

.service-text h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
    font-family: var(--font-heading);
}

.service-text h3 {
    font-size: 1.5rem;
    margin: 2rem 0 1rem;
    color: var(--primary-color);
    font-family: var(--font-heading);
}

.service-text p {
    margin-bottom: 1.5rem;
    color: var(--text-light);
    font-size: 1.1rem;
}

.service-sidebar {
    background: var(--light-bg);
    padding: 2rem;
    border-radius: 8px;
    height: fit-content;
    position: sticky;
    top: 100px;
}

.service-sidebar h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    font-family: var(--font-heading);
}

.sidebar-menu {
    list-style: none;
}

.sidebar-menu li {
    margin-bottom: 0.5rem;
}

.sidebar-menu a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    transition: var(--transition);
    display: block;
    padding: 0.8rem 1rem;
    border-radius: 4px;
    border-left: 3px solid transparent;
}

.sidebar-menu a:hover, .sidebar-menu a.active {
    background: var(--white);
    color: var(--accent-color);
    border-left-color: var(--accent-color);
    box-shadow: var(--shadow-sm);
}

@media (max-width: 768px) {
    .service-detail-content {
        grid-template-columns: 1fr;
    }
    .page-header {
        height: 300px;
    }
    .page-title {
        font-size: 2.5rem;
    }
    .service-sidebar {
        position: static;
    }
}

/* Team Section */
.team-section {
    padding: 5rem 0;
    background: var(--white);
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-top: 2rem;
}

.team-card {
    background: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    border: 1px solid var(--lighter-bg);
}

.team-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.team-image {
    height: 400px;
    overflow: hidden;
}

.team-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
    transition: transform 0.5s ease;
}

.team-card:hover .team-image img {
    transform: scale(1.05);
}

.team-info {
    padding: 2rem;
    text-align: center;
}

.team-info h3 {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    font-family: var(--font-heading);
}

.team-info .role {
    color: var(--accent-color);
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1rem;
}

.team-info .bio {
    color: var(--text-light);
    font-size: 1rem;
    line-height: 1.6;
}

/* Our Values Section */
.our-values {
    margin-top: 4rem;
    padding-top: 3rem;
    border-top: 2px solid var(--accent-color);
}

.our-values h2 {
    color: var(--primary-color);
    font-size: 2rem;
    margin-bottom: 1.5rem;
    font-family: var(--font-heading);
    position: relative;
    display: inline-block;
}

.our-values h2::after {
    content: '';
    display: block;
    width: 60%;
    height: 3px;
    background: var(--accent-color);
    margin-top: 8px;
}

.values-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.values-list li {
    color: var(--text-color);
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: 1rem;
    padding-left: 0;
}

.values-list li strong {
    color: var(--primary-color);
    font-weight: 600;
}

/* Practice Areas Page Styles */
.practice-areas-overview {
    padding: 4rem 0;
    background: var(--white);
}

.practice-areas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.practice-area-block {
    background: var(--white);
    border-radius: 8px;
    border: 2px solid var(--accent-color);
    padding: 2.5rem;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    position: relative;
}

.practice-area-block:hover {
    box-shadow: var(--shadow-xl);
    transform: translateY(-5px);
    border-color: var(--accent-hover);
}

.practice-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--accent-color);
    color: var(--primary-color);
    padding: 0.4rem 0.9rem;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.practice-icon-circle {
    width: 70px;
    height: 70px;
    background: var(--accent-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.practice-icon-circle i {
    font-size: 2rem;
    color: var(--primary-color);
}

.practice-area-block h3 {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-bottom: 1rem;
    font-family: var(--font-heading);
    line-height: 1.3;
}

.practice-area-block h3::after {
    display: none;
}

.practice-description {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.practice-area-block h4 {
    color: var(--primary-color);
    font-size: 1rem;
    margin-bottom: 1rem;
    margin-top: 1.5rem;
    font-family: var(--font-heading);
    font-weight: 600;
}

.practice-area-block h4::after {
    display: none;
}

.services-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.services-list li {
    color: var(--text-color);
    font-size: 0.9rem;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.35rem 0;
    line-height: 1.6;
}

.services-list li i {
    color: var(--accent-color);
    font-size: 0.8rem;
    margin-top: 0.3rem;
    flex-shrink: 0;
}

.practice-area-block .btn {
    margin-top: 1.5rem;
    display: inline-block;
    width: 100%;
    text-align: center;
    background: var(--accent-color);
    color: var(--white);
    padding: 14px 30px;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
}

.practice-area-block .btn:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.cta-section {
    background: var(--primary-color);
    padding: 4rem 0;
    margin-top: 4rem;
}

/* Responsive Adjustments for Practice Areas */
@media (max-width: 1024px) {
    .practice-areas-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .practice-areas-grid {
        grid-template-columns: 1fr;
    }

    .practice-area-block {
        padding: 2rem;
    }

    .practice-icon-circle {
        width: 60px;
        height: 60px;
    }

    .practice-icon-circle i {
        font-size: 1.75rem;
    }

    .practice-area-block h3 {
        font-size: 1.35rem;
    }
}

/* Mobile Responsive Styles */
@media (max-width: 1024px) {
    .container {
        padding: 0 20px;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .stat-item {
        border-right: none;
        border-bottom: 1px solid var(--lighter-bg);
    }

    .stat-item:nth-last-child(-n+2) {
        border-bottom: none;
    }

    .footer-content {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }

    /* Contact on tablets */
    .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .about-image img {
        height: 450px;
    }
}

@media (max-width: 768px) {
    /* Navigation */
    .navbar {
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(10px);
        box-shadow: var(--shadow-md);
    }

    .navbar .logo a {
        color: var(--accent-color);
    }

    .navbar .nav-link {
        color: var(--text-color);
    }

    .hamburger {
        display: flex;
        z-index: 1001;
    }

    .hamburger span {
        background: var(--primary-color);
    }

    .navbar.scrolled .hamburger span {
        background: var(--primary-color);
    }

    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(8px, 8px);
    }

    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -7px);
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 400px;
        height: 100vh;
        background: var(--white);
        flex-direction: column;
        padding: 80px 30px 30px;
        box-shadow: var(--shadow-xl);
        transition: right 0.4s ease;
        gap: 0;
    }

    .nav-menu.active {
        right: 0;
    }

    .nav-menu li {
        width: 100%;
        border-bottom: 1px solid var(--lighter-bg);
    }

    .nav-link {
        color: var(--text-color);
        display: block;
        padding: 1rem 0;
        width: 100%;
    }

    .nav-link::after {
        display: none;
    }

    /* Headings - Make block display on mobile */
    h1, h2, h3 {
        display: block;
        width: 100%;
    }

    h1::after, h2::after, h3::after {
        width: 100%;
        max-width: 100%;
    }

    /* Hero Section */
    .hero {
        min-height: 100vh;
        height: auto;
        background-attachment: scroll;
        background-size: cover;
        background-position: center center;
        background-repeat: no-repeat;
    }

    .hero-content {
        padding: 1.5rem;
        margin-top: 80px;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
        margin-bottom: 2rem;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 1rem;
    }

    .hero-buttons .btn {
        width: 100%;
        max-width: 300px;
    }

    .hero-practice-selector {
        flex-direction: column;
        gap: 1rem;
        width: 100%;
    }

    .select-wrapper {
        min-width: 100%;
        max-width: 300px;
    }

    /* Stats Section */
    .stats {
        margin-top: 0;
        padding: 20px 15px;
    }

    .stats .container {
        padding: 2rem 1.5rem;
    }

    .stats-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .stat-item {
        border-right: none;
        border-bottom: 1px solid var(--lighter-bg);
        padding-bottom: 2rem;
    }

    .stat-item:last-child {
        border-bottom: none;
        padding-bottom: 0;
    }

    .stat-number {
        font-size: 2.5rem;
    }

    /* Section Headers */
    .section-title {
        font-size: 2rem;
        display: block;
        width: 100%;
    }

    .section-header {
        margin-bottom: 3rem;
    }

    /* About Section */
    .about {
        padding: 4rem 0;
    }

    .about-content {
        gap: 2rem;
    }

    .about-text h3 {
        font-size: 1.5rem;
        display: block;
        width: 100%;
    }

    .about-text p {
        font-size: 1rem;
    }

    .about-image {
        order: -1;
        height: 300px;
        width: 100%;
        max-width: 100%;
    }

    .about-image img {
        height: 300px;
        width: 100%;
    }

    /* Feature Items */
    .feature-item {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    .feature-icon {
        margin: 0 auto;
    }

    /* Services */
    .services {
        padding: 4rem 0;
    }

    /* Contact Section */
    .contact {
        padding: 3rem 0;
    }

    .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .contact-item {
        flex-direction: row;
        align-items: flex-start;
        text-align: left;
        padding: 1.25rem;
    }

    .contact-icon {
        flex-shrink: 0;
    }

    .contact-details {
        flex: 1;
        min-width: 0;
        text-align: left;
    }

    .contact-details h4 {
        font-size: 1rem;
        text-align: left;
    }

    .contact-details p,
    .contact-details a {
        font-size: 0.9rem;
        overflow-wrap: break-word;
        word-wrap: break-word;
        hyphens: auto;
        text-align: left;
    }

    /* Team Grid */
    .team-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .team-image {
        height: 350px;
    }

    /* Our Values */
    .our-values {
        margin-top: 3rem;
        padding-top: 2rem;
    }

    .values-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    /* Footer */
    .footer {
        padding: 3rem 0 1.5rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .footer-column h3,
    .footer-section h3,
    .footer-section h4 {
        font-size: 1.1rem;
        display: block;
        width: 100%;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    /* Buttons */
    .btn {
        padding: 14px 28px;
        font-size: 0.9rem;
    }

    /* Contact Info */
    .contact-info {
        gap: 1.5rem;
    }

    .contact-item {
        flex-direction: row;
        text-align: left;
    }

    /* Page Headers */
    .page-header {
        height: 250px;
    }

    .page-title {
        font-size: 2rem;
        display: block;
        width: 100%;
    }

    /* Form elements */
    .form-group input,
    .form-group textarea {
        font-size: 16px; /* Prevents iOS zoom on focus */
    }

    /* Contact form wrapper */
    .contact-form-wrapper {
        padding: 1.5rem;
    }

    .contact-form-wrapper h3 {
        font-size: 1.5rem;
        display: block;
        width: 100%;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .hero-title {
        font-size: 1.75rem;
        display: block;
        width: 100%;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .section-title {
        font-size: 1.75rem;
        display: block;
        width: 100%;
    }

    .stat-number {
        font-size: 2rem;
    }

    .about-text h3 {
        font-size: 1.35rem;
        display: block;
        width: 100%;
    }

    .feature-content h4 {
        font-size: 1.1rem;
    }

    .navbar {
        padding: 1rem 0;
    }

    .logo a {
        font-size: 1.5rem;
    }

    .page-title {
        font-size: 1.75rem;
        display: block;
        width: 100%;
    }

    .page-header {
        height: 200px;
    }

    /* Ensure select dropdowns fit */
    .select-wrapper {
        max-width: 100%;
    }

    #practice-area-select {
        padding: 14px 20px;
        font-size: 0.95rem;
    }

    /* Footer sections */
    .footer-section h3,
    .footer-section h4 {
        font-size: 1rem;
        display: block;
        width: 100%;
    }

    /* About image on very small screens */
    .about-image {
        height: 250px;
    }

    .about-image img {
        height: 250px;
    }

    /* Contact on very small screens */
    .contact-item {
        padding: 1rem;
        gap: 1rem;
        flex-direction: row;
        text-align: left;
    }

    .contact-icon {
        min-width: 35px;
        width: 35px;
        height: 35px;
        font-size: 1.25rem;
        flex-shrink: 0;
    }

    .contact-details {
        text-align: left;
    }

    .contact-details h4 {
        font-size: 0.95rem;
        text-align: left;
    }

    .contact-details p,
    .contact-details a {
        font-size: 0.85rem;
        text-align: left;
    }

    .contact-form-wrapper {
        padding: 1.25rem;
    }

    .contact-form-wrapper h3 {
        font-size: 1.35rem;
    }
}
