/* ===================================
   CSS Variables - Legal Industry Theme
   =================================== */
:root {
    /* Brand Colors - From Visiting Card */
    --primary-dark: #1a2e1a;
    --primary-green: #2d4a2d;
    --accent-gold: #c9a961;
    --text-dark: #1a1a1a;
    --text-light: #f5f5f5;
    --bg-light: #fafafa;
    --bg-white: #ffffff;
    --border-color: #e0e0e0;
    
    /* Typography */
    --font-primary: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    --font-heading: 'Georgia', 'Times New Roman', serif;
    
    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 6rem;
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
}

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

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

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

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

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

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ===================================
   Utility Classes
   =================================== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

.btn-primary {
    display: inline-block;
    padding: 1rem 2rem;
    background: var(--accent-gold);
    color: var(--primary-dark);
    font-weight: 600;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: var(--transition-normal);
    text-align: center;
}

.btn-primary:hover {
    background: #b89850;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(201, 169, 97, 0.3);
}

.btn-secondary {
    display: inline-block;
    padding: 1rem 2rem;
    background: transparent;
    color: var(--text-light);
    font-weight: 600;
    border: 2px solid var(--text-light);
    border-radius: 4px;
    cursor: pointer;
    transition: var(--transition-normal);
}

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

/* ===================================
   Legal Disclaimer Modal
   =================================== */
.modal {
    display: flex;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

.modal.hidden {
    display: none;
}

.modal-content {
    background-color: var(--bg-white);
    padding: 0;
    border-radius: 8px;
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.4s ease;
}

.modal-header {
    background: var(--primary-dark);
    color: var(--text-light);
    padding: var(--spacing-md);
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    border-radius: 8px 8px 0 0;
}

.modal-icon {
    width: 32px;
    height: 32px;
    color: var(--accent-gold);
}

.modal-header h2 {
    margin: 0;
    font-size: 1.5rem;
}

.modal-body {
    padding: var(--spacing-md);
}

.modal-body p {
    margin-bottom: var(--spacing-sm);
    line-height: 1.8;
}

.modal-body ul {
    margin: var(--spacing-sm) 0;
    padding-left: var(--spacing-md);
}

.modal-body li {
    margin-bottom: var(--spacing-xs);
    line-height: 1.8;
}

.modal-footer-text {
    font-weight: 600;
    color: var(--primary-dark);
    margin-top: var(--spacing-md);
}

.modal-footer {
    padding: var(--spacing-md);
    text-align: center;
    border-top: 1px solid var(--border-color);
}

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

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

/* ===================================
   Navigation
   =================================== */
.navbar {
    background: var(--primary-dark);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

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

.nav-brand {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    color: var(--text-light);
}

.brand-icon {
    width: 40px;
    height: 40px;
    color: var(--accent-gold);
}

.brand-text {
    display: flex;
    flex-direction: column;
}

.brand-name {
    font-size: 1.5rem;
    font-weight: 700;
    font-family: var(--font-heading);
}

.brand-tagline {
    font-size: 0.875rem;
    font-style: italic;
    opacity: 0.9;
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-light);
    cursor: pointer;
    padding: 0.5rem;
}

.mobile-menu-toggle svg {
    width: 28px;
    height: 28px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: var(--spacing-md);
    align-items: center;
}

.nav-link {
    color: var(--text-light);
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    transition: var(--transition-fast);
}

.nav-link:hover,
.nav-link.active {
    background: var(--primary-green);
    color: var(--accent-gold);
}

/* ===================================
   Hero Section
   =================================== */
.hero {
    position: relative;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-green) 100%);
    color: var(--text-light);
    padding: var(--spacing-xl) 0;
    overflow: hidden;
}

.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" viewBox="0 0 1200 600"><path d="M0,300 Q300,200 600,300 T1200,300 L1200,600 L0,600 Z" fill="rgba(201,169,97,0.1)"/></svg>') no-repeat bottom center;
    background-size: cover;
    opacity: 0.3;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 50%, rgba(201, 169, 97, 0.1) 0%, transparent 50%);
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
}

.hero-icon-wrapper {
    margin-bottom: var(--spacing-md);
}

.hero-icon {
    width: 80px;
    height: 80px;
    color: var(--accent-gold);
    margin: 0 auto;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
}

.hero-title {
    font-size: 4rem;
    margin-bottom: var(--spacing-sm);
    color: var(--text-light);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    letter-spacing: 0.05em;
}

.hero-subtitle {
    font-size: 1.5rem;
    font-style: italic;
    margin-bottom: var(--spacing-md);
    opacity: 0.95;
    color: var(--accent-gold);
}

.hero-divider {
    width: 100px;
    height: 3px;
    background: var(--accent-gold);
    margin: var(--spacing-md) auto;
}

.hero-description {
    font-size: 1.25rem;
    margin-bottom: var(--spacing-sm);
    opacity: 0.95;
}

.hero-tagline {
    font-size: 1rem;
    margin-bottom: var(--spacing-lg);
    opacity: 0.9;
    font-style: italic;
}

.hero-buttons {
    display: flex;
    gap: var(--spacing-sm);
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: var(--spacing-lg);
}

.hero-buttons .btn-primary,
.hero-buttons .btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
}

.hero-buttons .btn-primary svg,
.hero-buttons .btn-secondary svg {
    width: 20px;
    height: 20px;
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    cursor: pointer;
    animation: bounce 2s infinite;
    transition: opacity 0.3s ease;
}

.scroll-indicator svg {
    width: 32px;
    height: 32px;
    color: var(--accent-gold);
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-10px);
    }
    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

/* ===================================
   Section Styles
   =================================== */
section {
    padding: var(--spacing-xl) 0;
}

.section-header {
    text-align: center;
    margin-bottom: var(--spacing-lg);
}

.section-label {
    display: inline-block;
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--accent-gold);
    margin-bottom: var(--spacing-xs);
}

.section-title {
    font-size: 2.5rem;
    color: var(--primary-dark);
    margin-bottom: var(--spacing-sm);
}

.title-underline {
    width: 80px;
    height: 4px;
    background: var(--accent-gold);
    margin: 0 auto var(--spacing-sm);
}

.section-subtitle {
    font-size: 1.125rem;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
}

/* ===================================
   About Section
   =================================== */
.about {
    background: var(--bg-light);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-lg);
}

.about-text {
    font-size: 1.0625rem;
    line-height: 1.8;
}

.about-text .lead {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--primary-dark);
    margin-bottom: var(--spacing-md);
}

.about-text p {
    margin-bottom: var(--spacing-sm);
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--spacing-md);
}

.stat-card {
    background: var(--bg-white);
    padding: var(--spacing-md);
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: var(--transition-normal);
}

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

.stat-icon {
    width: 48px;
    height: 48px;
    color: var(--accent-gold);
    margin: 0 auto var(--spacing-sm);
}

.stat-number {
    font-size: 2.5rem;
    color: var(--primary-dark);
    font-weight: 700;
    margin-bottom: var(--spacing-xs);
}

.stat-label {
    color: #666;
    font-size: 1rem;
}

/* ===================================
   Practice Areas Section
   =================================== */
.practice-areas {
    background: var(--bg-white);
}

.practice-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-md);
}

.practice-card {
    background: var(--bg-light);
    padding: var(--spacing-md);
    border-radius: 8px;
    border: 2px solid transparent;
    transition: var(--transition-normal);
}

.practice-card:hover {
    border-color: var(--accent-gold);
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.practice-icon {
    width: 60px;
    height: 60px;
    background: var(--primary-dark);
    color: var(--accent-gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--spacing-sm);
}

.practice-icon svg {
    width: 32px;
    height: 32px;
}

.practice-title {
    font-size: 1.5rem;
    color: var(--primary-dark);
    margin-bottom: var(--spacing-sm);
}

.practice-description {
    color: #666;
    line-height: 1.8;
}

/* ===================================
   Why Choose Us Section
   =================================== */
.why-choose {
    background: var(--primary-dark);
    color: var(--text-light);
}

.why-choose .section-label {
    color: var(--accent-gold);
}

.why-choose .section-title {
    color: var(--text-light);
}

.why-choose .title-underline {
    background: var(--accent-gold);
}

.why-choose .section-subtitle {
    color: rgba(255, 255, 255, 0.9);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-md);
}

.feature-card {
    background: var(--primary-green);
    padding: var(--spacing-md);
    border-radius: 8px;
    text-align: center;
    transition: var(--transition-normal);
}

.feature-card:hover {
    background: rgba(201, 169, 97, 0.2);
    transform: translateY(-5px);
}

.feature-icon {
    width: 56px;
    height: 56px;
    color: var(--accent-gold);
    margin: 0 auto var(--spacing-sm);
}

.feature-title {
    font-size: 1.25rem;
    margin-bottom: var(--spacing-sm);
    color: var(--text-light);
}

.feature-description {
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.8;
}

/* ===================================
   Contact Section
   =================================== */
.contact {
    background: var(--bg-light);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-lg);
}

.contact-info {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-md);
}

.contact-card {
    background: var(--bg-white);
    padding: var(--spacing-md);
    border-radius: 8px;
    border-left: 4px solid var(--accent-gold);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.contact-icon {
    width: 32px;
    height: 32px;
    color: var(--primary-dark);
    margin-bottom: var(--spacing-sm);
}

.contact-card h3 {
    font-size: 1.25rem;
    color: var(--primary-dark);
    margin-bottom: var(--spacing-sm);
}

.contact-card p {
    color: #666;
    line-height: 1.8;
}

.contact-card a {
    color: var(--primary-dark);
    font-weight: 500;
}

.contact-card a:hover {
    color: var(--accent-gold);
}

.contact-form-wrapper {
    background: var(--bg-white);
    padding: var(--spacing-md);
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

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

.form-group label {
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--primary-dark);
}

.form-group input,
.form-group textarea {
    padding: 0.75rem;
    border: 2px solid var(--border-color);
    border-radius: 4px;
    font-family: var(--font-primary);
    font-size: 1rem;
    transition: var(--transition-fast);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-gold);
}

.form-group textarea {
    resize: vertical;
}

/* ===================================
   Footer
   =================================== */
.footer {
    background: var(--primary-dark);
    color: var(--text-light);
    padding: var(--spacing-lg) 0 var(--spacing-md);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-lg);
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-sm);
}

.footer-brand-icon {
    width: 40px;
    height: 40px;
    color: var(--accent-gold);
}

.footer-brand h3 {
    font-size: 1.5rem;
    margin: 0;
}

.footer-brand p {
    font-size: 0.875rem;
    font-style: italic;
    margin: 0;
}

.footer-description {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.8;
}

.footer-section h4 {
    color: var(--accent-gold);
    margin-bottom: var(--spacing-sm);
    font-size: 1.125rem;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    transition: var(--transition-fast);
}

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

.footer-contact {
    list-style: none;
}

.footer-contact li {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    margin-bottom: 0.75rem;
    color: rgba(255, 255, 255, 0.8);
}

.footer-contact svg {
    width: 18px;
    height: 18px;
    color: var(--accent-gold);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: var(--spacing-md);
    text-align: center;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 0.5rem;
}

.footer-disclaimer {
    font-size: 0.875rem;
    font-style: italic;
}

/* ===================================
   Responsive Design
   =================================== */
@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: block;
    }
    
    .nav-menu {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--primary-dark);
        flex-direction: column;
        padding: var(--spacing-sm);
        gap: 0;
        display: none;
    }
    
    .nav-menu.active {
        display: flex;
    }
    
    .nav-link {
        width: 100%;
        text-align: center;
        padding: var(--spacing-sm);
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.125rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .hero-buttons .btn-primary,
    .hero-buttons .btn-secondary {
        width: 100%;
        max-width: 300px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    .practice-grid,
    .features-grid {
        grid-template-columns: 1fr;
    }
}

/* ===================================
   Print Styles
   =================================== */
@media print {
    .navbar,
    .hero-buttons,
    .contact-form-wrapper,
    .modal {
        display: none;
    }
    
    body {
        color: #000;
        background: #fff;
    }
    
    .hero {
        background: #fff;
        color: #000;
        min-height: auto;
    }
}