:root {
    --primary-color: #1a365d;
    --secondary-color: #c59d5f;
    --accent-color: #718096;
    --text-color: #2d3748;
    --light-bg: #f7fafc;
    --white: #ffffff;
    --error-color: #e53e3e;
    --success-color: #38a169;
    --transition: all 0.3s ease;
    --font-heading: 'Cormorant Garamond', serif;
    --font-body: 'Montserrat', sans-serif;
}

/* Base Styles */
body {
    font-family: var(--font-body);
    font-weight: 300;
    line-height: 1.6;
    color: var(--text-color);
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

/* Header & Navigation */
header {
    position: fixed;
    width: 100%;
    top: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    z-index: 1000;
}

nav {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 700;
    letter-spacing: -0.2px;
    line-height: 1.1;
    text-align: left;
    min-width: 300px;
    padding-right: 1rem;
}

.logo-associates {
    color: var(--primary-color);
    font-size: 2.4rem;
    display: block;
    font-weight: 700;
    margin-bottom: 0.2rem;
}

.logo-justice {
    color: var(--primary-color);
    font-size: 2rem;
    display: block;
    font-weight: 600;
}

.logo-and {
    display: none;
}

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

.nav-links a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 400;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    transition: var(--transition);
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--secondary-color);
    transition: var(--transition);
}

.nav-links a:hover::after {
    width: 100%;
}

.contact-btn {
    background: var(--secondary-color);
    color: var(--primary-color) !important;
    font-weight: 600;
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    transition: var(--transition);
}

.contact-btn:hover {
    background: var(--primary-color);
    color: var(--white) !important;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(197, 157, 95, 0.3);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 6rem 2rem 2rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    position: relative;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: 1.2;
}

h1 {
    font-size: 4rem;
    letter-spacing: -0.5px;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

.highlight {
    font-family: var(--font-heading);
    font-style: italic;
    font-weight: 500;
    color: var(--secondary-color);
}

.hero-text {
    font-size: 1.25rem;
    font-weight: 300;
    line-height: 1.8;
    letter-spacing: 0.2px;
    max-width: 600px;
    margin: 0 auto 2rem;
    color: #666;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
}

.cta-button {
    background: var(--secondary-color);
    color: var(--white);
    border: none;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-size: 0.95rem;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-body);
    font-size: 0.95rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-weight: 500;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(231, 76, 60, 0.3);
}

.secondary-button {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    padding: 1rem 2rem;
    border-radius: 50px;
    font-size: 0.95rem;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-body);
    font-size: 0.95rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-weight: 500;
}

.secondary-button:hover {
    background: var(--primary-color);
    color: var(--white);
}

/* Stats Section */
.stats {
    display: flex;
    justify-content: center;
    gap: 4rem;
    margin-top: 4rem;
}

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

.stat-number {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 600;
    color: var(--secondary-color);
    display: block;
}

.stat-label {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 400;
    color: var(--text-color);
    opacity: 0.8;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    h1 {
        font-size: 2.8rem;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .stats {
        flex-direction: column;
        gap: 2rem;
    }
    
    .logo {
        font-size: 1.8rem;
        min-width: 240px;
    }
    
    .logo-associates {
        font-size: 2rem;
    }
    
    .logo-justice {
        font-size: 1.6rem;
    }
}

/* Features Section */
.features {
    padding: 6rem 2rem;
    background: var(--white);
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.feature-card {
    background: var(--white);
    padding: 3rem 2rem;
    text-align: center;
    border-radius: 10px;
    transition: var(--transition);
    border: 1px solid rgba(0,0,0,0.1);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.feature-card i {
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin-bottom: 1.5rem;
}

.feature-card h2 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.8rem;
}

.feature-card p {
    color: #666;
    line-height: 1.6;
}

/* Practice Areas Section */
.practice-areas {
    padding: 6rem 2rem;
    background: var(--light-bg);
}

.section-title {
    text-align: center;
    color: var(--primary-color);
    font-size: 3rem;
    margin-bottom: 3rem;
    font-family: var(--font-heading);
    font-weight: 600;
    letter-spacing: -0.5px;
}

.practice-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.practice-card {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 10px;
    transition: var(--transition);
    border: 1px solid rgba(0,0,0,0.1);
}

.practice-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.practice-card i {
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin-bottom: 1.5rem;
}

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

.practice-card p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.learn-more {
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition);
}

.learn-more:hover {
    gap: 0.8rem;
}

/* Contact Section */
.contact-section {
    padding: 6rem 2rem;
    background: var(--white);
}

.contact-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: start;
}

.contact-map {
    background: var(--light-bg);
    border-radius: 10px;
    overflow: hidden;
    height: 100%;
}

.contact-map iframe {
    width: 100%;
    height: 100%;
    min-height: 500px;
    border: 0;
}

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

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

.contact-item i {
    color: var(--secondary-color);
    font-size: 1.2rem;
    width: 1.2rem;
    text-align: center;
    margin-top: 0.3rem;
}

.contact-item div {
    flex: 1;
}

.contact-item p {
    margin: 0;
    font-size: 1.1rem;
    color: var(--text-color);
    line-height: 1.3;
}

.contact-item small {
    display: block;
    margin-top: 0.2rem;
    color: var(--accent-color);
    font-size: 0.85rem;
}

.contact-link {
    color: var(--text-color);
    text-decoration: none;
    transition: var(--transition);
}

.contact-link:hover {
    color: var(--secondary-color);
}

.social-links {
    text-align: center;
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(0,0,0,0.1);
}

.social-links h4 {
    margin-bottom: 1rem;
    color: var(--primary-color);
    font-size: 1.2rem;
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}

.social-icon {
    color: var(--primary-color);
    font-size: 1.5rem;
    transition: var(--transition);
}

.social-icon:hover {
    color: var(--secondary-color);
    transform: translateY(-3px);
}

/* Utility Classes */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    border: 0;
}

/* Theme Toggle & Scroll Top */
#theme-toggle,
#whatsapp-button {
    position: fixed;
    bottom: 2rem;
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    background: var(--primary-color);
    color: var(--white);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

#theme-toggle {
    right: 2rem;
}

#whatsapp-button {
    right: 6rem;
    background: #25D366;  /* WhatsApp's brand color */
    color: var(--white);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    box-shadow: 0 2px 10px rgba(37, 211, 102, 0.3);
    text-decoration: none;
    font-size: 1.5rem;
}

#theme-toggle:hover,
#whatsapp-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

/* Additional Responsive Styles */
@media (max-width: 768px) {
    .features {
        padding: 4rem 1rem;
        grid-template-columns: 1fr;
    }
    
    .practice-areas {
        padding: 4rem 1rem;
    }
    
    .contact-container {
        grid-template-columns: 1fr;
    }
    
    .contact-info {
        text-align: center;
    }
    
    .contact-info p {
        justify-content: center;
    }
    
    .social-links {
        justify-content: center;
    }
    
    #theme-toggle,
    #whatsapp-button {
        width: 2.5rem;
        height: 2.5rem;
        bottom: 1rem;
    }
    
    #theme-toggle {
        right: 1rem;
    }
    
    #whatsapp-button {
        right: 4rem;
        font-size: 1.2rem;
    }
}

/* Dark Theme Styles */
[data-theme="dark"] {
    --primary-color: #c59d5f;
    --secondary-color: #edf2f7;
    --text-color: #e2e8f0;
    --light-bg: #1a202c;
    --white: #2d3748;
    --dark-nav: rgba(26, 38, 52, 0.95);
    --dark-bg: #111827;
}

/* Add these rules for dark theme */
[data-theme="dark"] html,
[data-theme="dark"] body {
    background-color: var(--dark-bg);
}

[data-theme="dark"] .features {
    background-color: var(--white);
}

[data-theme="dark"] .practice-areas {
    background-color: var(--light-bg);
}

[data-theme="dark"] .contact-section {
    background-color: var(--dark-bg);
}

/* Update existing dark theme styles for better contrast */
[data-theme="dark"] .feature-card,
[data-theme="dark"] .practice-card {
    background-color: var(--white);
    border-color: rgba(255, 255, 255, 0.05);
}

[data-theme="dark"] .contact-info {
    background-color: var(--white);
}

[data-theme="dark"] .hero {
    background: linear-gradient(135deg, var(--dark-bg) 0%, var(--light-bg) 100%);
}

[data-theme="dark"] header {
    background: var(--dark-nav);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .logo-justice,
[data-theme="dark"] .logo-associates {
    color: var(--secondary-color);
}

[data-theme="dark"] .logo-and {
    color: var(--primary-color);
}

[data-theme="dark"] .nav-links a {
    color: var(--text-color);
}

[data-theme="dark"] .contact-btn {
    background: var(--primary-color);
    color: var(--light-bg) !important;
}

[data-theme="dark"] .contact-btn:hover {
    background: var(--secondary-color);
    color: var(--light-bg) !important;
    box-shadow: 0 5px 15px rgba(197, 157, 95, 0.2);
}

[data-theme="dark"] .feature-card:hover,
[data-theme="dark"] .practice-card:hover {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .feature-card i,
[data-theme="dark"] .practice-card i {
    color: var(--primary-color);
}

[data-theme="dark"] .feature-card h2,
[data-theme="dark"] .practice-card h3 {
    color: var(--secondary-color);
}

[data-theme="dark"] .feature-card p,
[data-theme="dark"] .practice-card p {
    color: var(--text-color);
    opacity: 0.9;
}

[data-theme="dark"] .section-title {
    color: var(--secondary-color);
}

[data-theme="dark"] .learn-more {
    color: var(--primary-color);
}

[data-theme="dark"] .contact-info {
    background: var(--white);
}

[data-theme="dark"] .contact-info h3 {
    color: var(--secondary-color);
}

[data-theme="dark"] .contact-info p {
    color: var(--text-color);
}

[data-theme="dark"] .contact-info p i {
    color: var(--primary-color);
}

[data-theme="dark"] .social-links a {
    color: var(--text-color);
}

[data-theme="dark"] .social-links a:hover {
    color: var(--primary-color);
}

[data-theme="dark"] #theme-toggle,
[data-theme="dark"] #whatsapp-button {
    background: var(--primary-color);
    color: var(--light-bg);
}

[data-theme="dark"] #theme-toggle:hover,
[data-theme="dark"] #whatsapp-button:hover {
    background: var(--secondary-color);
    box-shadow: 0 5px 15px rgba(197, 157, 95, 0.2);
}

/* Responsive Typography */
@media (max-width: 768px) {
    h1 {
        font-size: 2.8rem;
    }
    
    .section-title {
        font-size: 2.4rem;
    }
    
    .stat-number {
        font-size: 2.4rem;
    }
}
/* Social Links Section */
.social-links {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(0,0,0,0.1);
}

.social-links h4 {
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
    color: var(--primary-color);
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}

.social-icon {
    color: var(--primary-color);
    font-size: 1.5rem;
    transition: var(--transition);
}

.social-icon:hover {
    color: var(--secondary-color);
    transform: translateY(-3px);
}

/* Contact Info Container Styles */
.contact-info {
    padding: 2rem;
    background: var(--white);
    border-radius: 12px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.contact-info h3 {
    text-align: center;
    margin-bottom: 2rem;
    color: var(--primary-color);
    font-size: 1.8rem;
}

.contact-details {
    background: var(--light-bg);
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    border: 1px solid rgba(0, 0, 0, 0.08);
}

/* Dark theme adjustments */
[data-theme="dark"] .contact-info {
    background: var(--white);
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.2);
}

[data-theme="dark"] .contact-details {
    background: var(--light-bg);
    border-color: rgba(255, 255, 255, 0.05);
}

/* Add this to the dark theme */
[data-theme="dark"] #whatsapp-button {
    background: #25D366;
    color: #ffffff;  /* Always keep white text for contrast */
}

/* Add these styles to make the address more compact */
.contact-item p {
    font-size: 0.95rem;
    line-height: 1.4;
    margin-bottom: 0.2rem;
}

.contact-item small {
    font-size: 0.8rem;
    color: var(--accent-color);
    display: block;
    line-height: 1.3;
}

/* Add specific style for the address */
.contact-item.address p {
    max-width: 280px; /* Limit width for better readability */
}

@media (max-width: 768px) {
    .logo {
        font-size: 1.2rem;
    }
}