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

:root {
    --primary-navy: #1e3a5f;
    --secondary-navy: #2a4d73;
    --dark-navy: #152940;
    --gold: #c9a962;
    --light-gold: #d4b572;
    --dark-gold: #b89654;
    --text-dark: #2d3748;
    --text-medium: #4a5568;
    --text-light: #718096;
    --white: #ffffff;
    --cream: #fdfbf7;
    --light-cream: #f9f6f1;
    --border-gray: #e8e5df;
}

/* Page Transition Styles */
html {
    scroll-behavior: smooth;
}

body.page-transition {
    animation: fadeIn 0.5s ease-in-out;
}

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

/* Scroll Animation Classes */
.scroll-animate {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.scroll-animate.animated {
    opacity: 1;
    transform: translateY(0);
}

.scroll-animate-left {
    opacity: 0;
    transform: translateX(-30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.scroll-animate-left.animated {
    opacity: 1;
    transform: translateX(0);
}

.scroll-animate-right {
    opacity: 0;
    transform: translateX(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.scroll-animate-right.animated {
    opacity: 1;
    transform: translateX(0);
}

.scroll-animate-scale {
    opacity: 0;
    transform: scale(0.9);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.scroll-animate-scale.animated {
    opacity: 1;
    transform: scale(1);
}

/* Stagger animation for children */
.scroll-animate-stagger > * {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.scroll-animate-stagger.animated > *:nth-child(1) { transition-delay: 0.1s; }
.scroll-animate-stagger.animated > *:nth-child(2) { transition-delay: 0.2s; }
.scroll-animate-stagger.animated > *:nth-child(3) { transition-delay: 0.3s; }
.scroll-animate-stagger.animated > *:nth-child(4) { transition-delay: 0.4s; }
.scroll-animate-stagger.animated > *:nth-child(5) { transition-delay: 0.5s; }
.scroll-animate-stagger.animated > *:nth-child(6) { transition-delay: 0.6s; }

.scroll-animate-stagger.animated > * {
    opacity: 1;
    transform: translateY(0);
}

/* Page Loader */
.page-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--primary-navy);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.page-loader.active {
    opacity: 1;
    pointer-events: all;
}

.loader-content {
    text-align: center;
    color: var(--white);
}

.loader-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(201, 169, 110, 0.2);
    border-top-color: var(--gold);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.8;
    color: var(--text-dark);
    background-color: var(--cream);
    font-size: 16px;
    background-image: 
        radial-gradient(circle at 100% 0%, rgba(201, 169, 98, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 0% 100%, rgba(30, 58, 95, 0.03) 0%, transparent 50%);
    background-attachment: fixed;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Georgia', 'Times New Roman', serif;
    font-weight: 400;
    letter-spacing: 0.5px;
}

.section-label {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 0.875rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--gold);
    font-weight: 600;
    margin-bottom: 1rem;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

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

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

/* Top Info Bar */
.top-bar {
    background-color: var(--primary-navy);
    color: var(--white);
    padding: 0.5rem 0;
    font-size: 0.875rem;
}

.top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-bar-left,
.top-bar-right {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.top-bar a {
    color: var(--white);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.top-bar a:hover {
    color: var(--gold);
}

/* Navigation */
.navbar {
    background-color: var(--white);
    padding: 1.25rem 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    position: sticky;
    top: 0;
    z-index: 1000;
}

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

.logo h1 {
    color: var(--primary-navy);
    font-size: 1.5rem;
    font-weight: 400;
    letter-spacing: 1px;
}

.logo .firm-name {
    display: block;
    font-size: 1.75rem;
    line-height: 1.2;
}

.logo .tagline {
    display: block;
    font-size: 0.75rem;
    color: var(--gold);
    letter-spacing: 2px;
    text-transform: uppercase;
    font-family: 'Segoe UI', sans-serif;
    font-weight: 600;
    margin-top: 0.25rem;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu {
    align-items: center;
}

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

.menu-toggle span {
    width: 28px;
    height: 3px;
    background-color: var(--primary-navy);
    transition: all 0.3s ease;
    border-radius: 2px;
}

.nav-menu a {
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    padding: 0.5rem 1rem;
    font-family: 'Segoe UI', sans-serif;
    font-size: 0.9375rem;
    letter-spacing: 0.5px;
}

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

.btn-consultation {
    background-color: var(--gold);
    color: var(--white) !important;
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    font-family: 'Segoe UI', sans-serif;
    font-size: 0.875rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-left: 1rem;
}

.btn-consultation:hover {
    background-color: var(--primary-navy);
    color: var(--white);
    transform: translateY(-2px);
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(15, 37, 55, 0.85), rgba(26, 58, 82, 0.9)), 
                url('https://images.unsplash.com/photo-1589829545856-d10d557cf95f?q=80&w=2070&auto=format&fit=crop');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: var(--white);
    padding: 8rem 0 6rem;
    text-align: center;
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" opacity="0.05"><text x="50" y="50" font-size="60" text-anchor="middle" fill="white">§</text></svg>');
    opacity: 0.3;
}

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

.hero-label {
    font-family: 'Segoe UI', sans-serif;
    font-size: 0.875rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--gold);
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.hero h2 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    font-weight: 400;
    line-height: 1.2;
    letter-spacing: 1px;
}

.hero .hero-subtitle {
    color: var(--gold);
    font-size: 3rem;
    display: block;
    margin-top: 0.5rem;
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    opacity: 0.95;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.8;
}

/* Buttons */
.btn-primary,
.btn-secondary {
    display: inline-block;
    padding: 1rem 2.5rem;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 0.9375rem;
    font-family: 'Segoe UI', sans-serif;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.btn-primary {
    background-color: var(--gold);
    color: var(--primary-navy);
    border: 2px solid var(--gold);
}

.btn-primary:hover {
    background-color: transparent;
    color: var(--white);
    border-color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

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

.btn-secondary:hover {
    background-color: var(--white);
    color: var(--primary-navy);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

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

/* Stats Section */
.stats-section {
    background: linear-gradient(135deg, var(--dark-navy) 0%, var(--primary-navy) 100%);
    color: var(--white);
    padding: 3rem 0;
    margin-top: -3rem;
    position: relative;
    z-index: 2;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.stats-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" opacity="0.03"><circle cx="50" cy="50" r="40" fill="none" stroke="white" stroke-width="2"/></svg>');
    opacity: 0.3;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem;
    text-align: center;
}

.stat-item h3 {
    font-size: 3rem;
    color: var(--gold);
    margin-bottom: 0.5rem;
    font-weight: 400;
}

.stat-item p {
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--white);
    opacity: 0.9;
    font-family: 'Segoe UI', sans-serif;
}

/* Sections */
.intro {
    padding: 6rem 0;
    background-color: var(--white);
    position: relative;
}

.intro::after {
    content: '';
    display: block;
    width: 100px;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
    margin: 3rem auto 0;
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
}

.about-content,
.services-content,
.contact-content {
    padding: 5rem 0;
}

.intro h2,
.about-content h2,
.services-content h2 {
    color: var(--primary-navy);
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    text-align: center;
    font-weight: 400;
    letter-spacing: 0.5px;
}

.intro::after {
    content: '';
    display: block;
    width: 100px;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
    margin: 3rem auto;
}

.intro p,
.about-content p,
.services-content p {
    font-size: 1.125rem;
    color: var(--text-medium);
    margin-bottom: 1.5rem;
    text-align: center;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.8;
}

/* Feature Cards */
.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
    margin-top: 4rem;
}

.feature-card {
    background-color: var(--white);
    padding: 3rem;
    border-radius: 8px;
    text-align: center;
    border: 1px solid var(--border-gray);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 30px rgba(26, 58, 82, 0.12);
    border-color: var(--gold);
}

.feature-card .icon {
    font-size: 3rem;
    color: var(--gold);
    margin-bottom: 1.5rem;
}

.feature-card .icon i {
    display: block;
}

.feature-card h3 {
    color: var(--primary-navy);
    font-size: 1.5rem;
    margin-bottom: 1rem;
    font-weight: 400;
}

.feature-card p {
    color: var(--text-medium);
    margin: 0;
    line-height: 1.8;
}

/* Page Header */
.page-header {
    background: linear-gradient(rgba(15, 37, 55, 0.9), rgba(26, 58, 82, 0.85)),
                url('https://images.unsplash.com/photo-1589391886645-d51941baf7fb?q=80&w=2070&auto=format&fit=crop');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: var(--white);
    padding: 4rem 0;
    text-align: center;
    position: relative;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" opacity="0.05"><text x="50" y="50" font-size="60" text-anchor="middle" fill="white">§</text></svg>');
    opacity: 0.2;
}

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

.page-header-label {
    font-family: 'Segoe UI', sans-serif;
    font-size: 0.875rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--gold);
    font-weight: 600;
    margin-bottom: 1rem;
}

.page-header h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
    font-weight: 400;
    letter-spacing: 0.5px;
}

.page-header p {
    font-size: 1.25rem;
    opacity: 0.95;
    line-height: 1.8;
}

/* About Page */
.firm-intro {
    margin-bottom: 4rem;
    padding: 3rem;
    background: linear-gradient(135deg, rgba(26, 58, 82, 0.03) 0%, rgba(201, 169, 110, 0.05) 100%);
    border-radius: 8px;
    border-left: 4px solid var(--gold);
}

.firm-values {
    margin-bottom: 3rem;
}

.firm-intro h3,
.firm-values h3,
.attorneys h3 {
    color: var(--primary-blue);
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
}

.firm-intro p,
.firm-values p {
    text-align: left;
    font-size: 1.0625rem;
    line-height: 1.8;
}

.attorneys {
    margin-bottom: 3rem;
}

.attorneys {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.attorney-card {
    background-color: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.attorney-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 30px rgba(26, 58, 82, 0.15);
}

.attorney-photo {
    width: 100%;
    height: 400px;
    background: linear-gradient(135deg, var(--secondary-navy) 0%, var(--primary-navy) 100%);
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.25rem;
    position: relative;
    overflow: hidden;
}

.attorney-photo.dante {
    background: linear-gradient(rgba(26, 58, 82, 0.3), rgba(15, 37, 55, 0.3)),
                url('https://images.unsplash.com/photo-1507003211169-0a1dd7228f2d?q=80&w=2787&auto=format&fit=crop');
    background-size: cover;
    background-position: center;
}

.attorney-photo.karima {
    background: linear-gradient(rgba(26, 58, 82, 0.3), rgba(15, 37, 55, 0.3)),
                url('https://images.unsplash.com/photo-1573497019940-1c28c88b4f3e?q=80&w=2787&auto=format&fit=crop');
    background-size: cover;
    background-position: center;
}

.attorney-photo span {
    background-color: rgba(15, 37, 55, 0.8);
    padding: 1rem 2rem;
    border-radius: 4px;
    font-size: 0.875rem;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.attorney-photo::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background-color: var(--gold);
}

.attorney-info {
    padding: 2rem;
}

.attorney-info h4 {
    color: var(--primary-navy);
    font-size: 2rem;
    margin-bottom: 0.5rem;
    font-weight: 400;
}

.attorney-title {
    color: var(--gold);
    font-weight: 600;
    font-size: 0.875rem;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-family: 'Segoe UI', sans-serif;
}

.attorney-info p {
    text-align: left;
    color: var(--text-medium);
    font-size: 1.0625rem;
    margin-bottom: 1rem;
    line-height: 1.8;
}

.firm-values ul {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.firm-values li {
    padding: 2rem;
    background-color: var(--cream);
    border-top: 3px solid var(--gold);
    border-radius: 4px;
    font-size: 1.0625rem;
    color: var(--text-medium);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.firm-values li:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.firm-values li strong {
    color: var(--primary-navy);
    font-size: 1.125rem;
    display: block;
    margin-bottom: 0.5rem;
}

/* Services Page */
.services-intro {
    margin-bottom: 3rem;
    position: relative;
}

.services-intro::before {
    content: '';
    position: absolute;
    top: -2rem;
    right: 0;
    width: 200px;
    height: 200px;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" opacity="0.03"><text x="50" y="60" font-size="50" text-anchor="middle" fill="%231a3a52">⚖</text></svg>');
    background-size: contain;
    background-repeat: no-repeat;
    pointer-events: none;
}

.services-intro p {
    text-align: center;
}

.consultation-notice {
    background-color: var(--cream);
    color: var(--text-dark);
    padding: 1.5rem;
    border-radius: 5px;
    border-left: 4px solid var(--gold);
    margin-top: 2rem;
    text-align: left !important;
    font-size: 1.0625rem;
}

.consultation-notice strong {
    color: var(--primary-navy);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.service-item {
    background-color: var(--white);
    padding: 2.5rem;
    border-radius: 8px;
    border: 1px solid var(--border-gray);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    position: relative;
}

.service-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background-color: var(--gold);
    border-radius: 8px 0 0 8px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.service-item:hover::before {
    opacity: 1;
}

.service-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 30px rgba(26, 58, 82, 0.12);
    border-color: var(--gold);
}

.service-icon {
    font-size: 3rem;
    color: var(--gold);
    margin-bottom: 1.5rem;
}

.service-icon i {
    display: block;
}

.service-item h3 {
    color: var(--primary-navy);
    font-size: 1.75rem;
    margin-bottom: 1rem;
    font-weight: 400;
}

.service-item p {
    text-align: left;
    color: var(--text-medium);
    margin: 0;
    font-size: 1.0625rem;
    line-height: 1.8;
}

.services-approach {
    background: linear-gradient(135deg, rgba(26, 58, 82, 0.03) 0%, rgba(201, 169, 110, 0.05) 100%);
    padding: 3rem;
    border-radius: 8px;
    margin-bottom: 3rem;
    border-left: 4px solid var(--gold);
    position: relative;
}

.services-approach h3 {
    color: var(--primary-blue);
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
}

.services-approach p {
    text-align: left;
    font-size: 1.0625rem;
}

.contact-cta {
    text-align: center;
    padding: 4rem 2rem;
    background: linear-gradient(rgba(15, 37, 55, 0.95), rgba(26, 58, 82, 0.9)),
                url('https://images.unsplash.com/photo-1450101499163-c8848c66ca85?q=80&w=2070&auto=format&fit=crop');
    background-size: cover;
    background-position: center;
    border-radius: 8px;
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.contact-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" opacity="0.05"><text x="50" y="50" font-size="60" text-anchor="middle" fill="white">§</text></svg>');
    opacity: 0.2;
}

.contact-cta .container {
    position: relative;
    z-index: 1;
}

.contact-cta h3 {
    color: var(--white);
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 400;
}

.contact-cta p {
    color: var(--white);
    margin-bottom: 2.5rem;
    font-size: 1.25rem;
    opacity: 0.95;
}

/* Contact Page */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.contact-info h3,
.contact-form-container h3 {
    color: var(--primary-blue);
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
}

.contact-info p {
    text-align: left;
    font-size: 1.0625rem;
    margin-bottom: 2rem;
}

.contact-details {
    margin-top: 2rem;
}

.contact-item {
    margin-bottom: 2rem;
    padding: 2rem;
    background-color: var(--cream);
    border-radius: 8px;
    border-top: 3px solid var(--gold);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.contact-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

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

.contact-icon i {
    display: block;
}

.contact-item h4 {
    color: var(--primary-navy);
    font-size: 1.25rem;
    margin-bottom: 1rem;
    font-weight: 400;
}

.contact-item p {
    color: var(--text-medium);
    margin: 0;
    line-height: 1.8;
}

/* Contact Form */
.contact-form {
    background-color: var(--light-gray);
    padding: 2rem;
    border-radius: 8px;
}

/* How We Work Section */
.how-we-work {
    background: linear-gradient(135deg, var(--primary-navy) 0%, var(--dark-navy) 100%);
    color: var(--white);
    padding: 7rem 0;
    position: relative;
}

.how-we-work::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" opacity="0.03"><circle cx="50" cy="50" r="40" fill="none" stroke="white" stroke-width="2"/></svg>');
    opacity: 0.3;
}

.how-we-work .container {
    position: relative;
    z-index: 1;
}

.how-we-work .section-label {
    text-align: center;
    color: var(--gold);
}

.how-we-work h2 {
    color: var(--white);
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.how-we-work .section-intro {
    text-align: center;
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.125rem;
    max-width: 700px;
    margin: 0 auto 4rem;
}

.process-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 3rem;
    margin-top: 3rem;
}

.process-step {
    text-align: center;
    position: relative;
}

.process-step:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 30px;
    right: -1.5rem;
    width: 3rem;
    height: 2px;
    background: linear-gradient(90deg, var(--gold), transparent);
}

.step-number {
    font-size: 3rem;
    color: var(--gold);
    font-weight: 300;
    margin-bottom: 1rem;
    opacity: 0.7;
    font-family: 'Georgia', serif;
}

.process-step h3 {
    color: var(--white);
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
    font-weight: 400;
}

.process-step p {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.8;
    font-size: 1rem;
}

/* FAQ Section */
.faq-section {
    padding: 5rem 0;
    background-color: var(--cream);
}

.faq-section .section-label {
    text-align: center;
}

.faq-section h2 {
    color: var(--primary-navy);
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.faq-item {
    background-color: var(--white);
    padding: 2rem;
    border-radius: 8px;
    border-left: 4px solid var(--gold);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.faq-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(26, 58, 82, 0.12);
}

.faq-item h3 {
    color: var(--primary-navy);
    font-size: 1.125rem;
    margin-bottom: 1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.faq-item h3 i {
    color: var(--gold);
    font-size: 1.25rem;
}

.faq-item p {
    color: var(--text-medium);
    line-height: 1.8;
    margin: 0;
}

/* Ready CTA Section */
.ready-cta {
    background-color: var(--light-cream);
    padding: 6rem 0;
    text-align: center;
}

.ready-cta h2 {
    color: var(--primary-navy);
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.ready-cta p {
    color: var(--text-medium);
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
}

.btn-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2.5rem;
    background-color: var(--primary-navy);
    color: var(--white);
    text-decoration: none;
    border-radius: 4px;
    font-weight: 600;
    font-family: 'Segoe UI', sans-serif;
    font-size: 0.875rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: all 0.3s ease;
}

.btn-cta:hover {
    background-color: var(--gold);
    color: var(--primary-navy);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.btn-cta i {
    transition: transform 0.3s ease;
}

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

/* Office/Professional Image Section */
.office-section {
    background: linear-gradient(rgba(30, 58, 95, 0.75), rgba(21, 41, 64, 0.85)),
                url('https://images.unsplash.com/photo-1497366216548-37526070297c?q=80&w=2069&auto=format&fit=crop');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    padding: 7rem 0;
    text-align: center;
    color: var(--white);
    position: relative;
}

.office-section h2 {
    color: var(--white);
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.office-section p {
    font-size: 1.25rem;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.8;
    opacity: 0.95;
}

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--primary-navy);
    font-weight: 600;
    font-family: 'Segoe UI', sans-serif;
    font-size: 0.9375rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border-gray);
    border-radius: 5px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(201, 169, 110, 0.1);
}

.form-message {
    margin-top: 1rem;
    padding: 1rem;
    border-radius: 5px;
    display: none;
}

.form-message.success {
    background-color: #d1fae5;
    color: #065f46;
    border: 1px solid #10b981;
}

.form-message.error {
    background-color: #fee2e2;
    color: #991b1b;
    border: 1px solid #ef4444;
}

/* Map */
.map-container {
    margin-top: 3rem;
}

.map-container h3 {
    color: var(--primary-blue);
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
    text-align: center;
}

.map-placeholder {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    border: 3px solid var(--gold);
}

.map-placeholder iframe {
    display: block;
}

.map-note {
    text-align: center;
    color: var(--text-light);
    font-size: 0.875rem;
    margin-top: 1rem;
    font-style: italic;
}

/* CTA Section */
.cta {
    background: linear-gradient(rgba(15, 37, 55, 0.95), rgba(26, 58, 82, 0.9)),
                url('https://images.unsplash.com/photo-1521791055366-0d553872125f?q=80&w=2069&auto=format&fit=crop');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: var(--white);
    padding: 5rem 0;
    text-align: center;
    position: relative;
}

.cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" opacity="0.05"><text x="50" y="50" font-size="60" text-anchor="middle" fill="white">§</text></svg>');
    opacity: 0.2;
}

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

.cta h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    font-weight: 400;
}

.cta p {
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    opacity: 0.95;
    line-height: 1.8;
}

/* Footer */
footer {
    background-color: var(--dark-navy);
    color: var(--white);
    margin-top: 0;
}

.footer-main {
    padding: 4rem 0 3rem;
    background-color: var(--primary-navy);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 3rem;
}

.footer-col h3 {
    color: var(--white);
    font-size: 1.5rem;
    margin-bottom: 1rem;
    font-weight: 400;
}

.footer-col h4 {
    color: var(--gold);
    font-size: 0.875rem;
    letter-spacing: 2px;
    margin-bottom: 1.5rem;
    font-family: 'Segoe UI', sans-serif;
    font-weight: 600;
}

.footer-col p {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.footer-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 1.5rem;
    background-color: rgba(201, 169, 110, 0.15);
    border: 1px solid var(--gold);
    border-radius: 4px;
    color: var(--gold);
    font-family: 'Segoe UI', sans-serif;
    font-weight: 600;
    letter-spacing: 1.5px;
    font-size: 0.875rem;
}

.footer-badge i {
    font-size: 1.25rem;
}

.footer-contact,
.footer-hours {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-contact li,
.footer-hours li {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 1rem;
    line-height: 1.8;
}

.footer-contact li i {
    color: var(--gold);
    margin-right: 0.75rem;
    width: 20px;
    display: inline-block;
}

.footer-hours strong {
    color: var(--white);
    font-size: 1.125rem;
}

.footer-bottom {
    background-color: var(--dark-navy);
    padding: 1.5rem 0;
}

.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-bottom p {
    margin: 0;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9375rem;
}

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 0.9375rem;
    transition: color 0.3s ease;
}

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

/* Responsive Design */

/* Tablet and below */
@media (max-width: 1024px) {
    .features {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 2rem;
    }
    
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 968px) {
    .hero {
        padding: 5rem 0;
    }
    
    .hero h2 {
        font-size: 2.75rem;
    }
    
    .hero .hero-subtitle {
        font-size: 2.5rem;
    }
    
    .section {
        padding: 4rem 0;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }

    .attorneys {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .process-step:not(:last-child)::after {
        display: none;
    }
    
    .firm-values ul {
        grid-template-columns: 1fr;
    }
}

/* Keep the links on one row. Side-by-side with the logo overflows until ~840px. */
@media (max-width: 840px) {
    .navbar .container {
        flex-direction: column;
        gap: 1rem;
    }

    .nav-menu {
        justify-content: center;
        flex-wrap: wrap;
        row-gap: 0.5rem;
    }

    .navbar .btn-consultation {
        margin-left: 0;
    }
}

@media (max-width: 768px) {
    /* Top Bar Mobile */
    .top-bar {
        padding: 1rem 0;
    }
    
    .top-bar .container {
        flex-direction: column;
        gap: 0.75rem;
        text-align: center;
    }

    .top-bar-left,
    .top-bar-right {
        flex-direction: column;
        gap: 0.75rem;
        width: 100%;
    }
    
    .top-bar-right {
        font-size: 0.8125rem;
    }

    /* Navigation Mobile */
    .navbar {
        padding: 1rem 0;
    }
    
    .navbar .container {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .logo h1 {
        font-size: 1.375rem;
    }

    .nav-menu {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        align-items: center;
        gap: 0.35rem 0.65rem;
        width: 100%;
    }

    .nav-menu li {
        width: auto;
    }

    .nav-menu a {
        text-align: center;
        width: auto;
        padding: 0.5rem 0.65rem;
        background-color: transparent;
        border-radius: 4px;
        white-space: nowrap;
    }

    /* Higher specificity than .nav-menu a, which would otherwise cover the gold fill. */
    .nav-menu a.btn-consultation,
    .navbar .btn-consultation {
        background-color: var(--gold);
        color: var(--white) !important;
        width: auto;
        margin-left: 0;
        padding: 0.7rem 1.15rem;
        white-space: nowrap;
    }

    .nav-menu a.btn-consultation:hover,
    .navbar .btn-consultation:hover {
        background-color: var(--primary-navy);
        color: var(--white) !important;
    }

    /* Hero Mobile */
    .hero {
        padding: 4rem 0;
    }
    
    .hero h2 {
        font-size: 2.25rem;
        margin-bottom: 1rem;
    }

    .hero .hero-subtitle {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1.0625rem;
        margin-bottom: 2rem;
        padding: 0 1rem;
    }
    
    /* Page Header Mobile */
    .page-header {
        padding: 3rem 0;
    }

    .page-header h2 {
        font-size: 2rem;
    }
    
    .page-header p {
        font-size: 1rem;
        padding: 0 1rem;
    }

    /* Sections Mobile */
    .section {
        padding: 3rem 0;
    }
    
    .intro h2,
    .about-content h2,
    .services-content h2 {
        font-size: 2rem;
        margin-bottom: 1rem;
    }
    
    .intro p,
    .about-content p,
    .services-content p {
        font-size: 1rem;
    }

    /* Grids Mobile */
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .features,
    .services-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .stats-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .process-steps {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .faq-grid {
        grid-template-columns: 1fr;
    }
    
    /* Cards Mobile */
    .feature-card,
    .service-card {
        padding: 2rem;
    }
    
    .stat-item {
        padding: 2rem 1.5rem;
    }
    
    .contact-card {
        padding: 2rem;
    }

    /* Footer Mobile */
    .footer {
        padding: 3rem 0 0;
    }
    
    .footer-bottom-content {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    .footer-links {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    /* Form Mobile */
    .contact-form {
        padding: 2rem;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    /* Typography Mobile */
    .hero h2 {
        font-size: 1.75rem;
        line-height: 1.3;
    }
    
    .hero .hero-subtitle {
        font-size: 1.5rem;
    }
    
    .hero p {
        font-size: 1rem;
    }

    .container {
        padding: 0 16px;
    }
    
    /* Buttons Mobile */
    .btn-primary,
    .btn-secondary {
        padding: 0.875rem 1.75rem;
        font-size: 0.875rem;
        width: 100%;
    }

    .nav-menu {
        gap: 0.25rem 0.4rem;
    }

    .nav-menu a {
        padding: 0.45rem 0.5rem;
        font-size: 0.8125rem;
    }

    .nav-menu a.btn-consultation,
    .navbar .btn-consultation {
        padding: 0.6rem 0.9rem;
        font-size: 0.75rem;
    }
    
    /* Generous spacing mobile */
    .section {
        padding: 2.5rem 0;
    }
    
    .feature-card,
    .service-card,
    .contact-card {
        padding: 1.75rem;
    }
    
    .feature-card .icon {
        font-size: 2.5rem;
        margin-bottom: 1.25rem;
    }
    
    .feature-card h3,
    .service-card h3 {
        font-size: 1.25rem;
    }
    
    /* Page Header Small Mobile */
    .page-header {
        padding: 2.5rem 0;
    }
    
    .page-header h2 {
        font-size: 1.75rem;
    }
    
    /* Stats Small Mobile */
    .stat-number {
        font-size: 2.5rem;
    }
    
    /* Attorney Cards Mobile */
    .attorney-info h4 {
        font-size: 1.5rem;
    }
    
    /* Process Steps Mobile */
    .process-step h3 {
        font-size: 1.25rem;
    }
    
    /* Form fields full width mobile */
    .form-row {
        grid-template-columns: 1fr;
    }
}

/* Extra small devices */
@media (max-width: 360px) {
    .container {
        padding: 0 12px;
    }
    
    .hero h2 {
        font-size: 1.5rem;
    }
    
    .hero .hero-subtitle {
        font-size: 1.375rem;
    }
    
    .btn-primary,
    .btn-secondary {
        padding: 0.75rem 1.25rem;
        font-size: 0.8125rem;
    }
}
