/* Dossier - Professional Law Firm Template */

/* CSS Variables for Professional Color Scheme */
:root {
    --primary-navy: #1a2332;
    --secondary-navy: #2c3e50;
    --accent-gold: #c9a876;
    --light-gold: #e4d4b7;
    --text-dark: #2c3e50;
    --text-light: #ffffff;
    --text-gray: #6c757d;
    --bg-light: #f8f9fa;
    --bg-white: #ffffff;
    --border-light: #e9ecef;
    --shadow: 0 2px 15px rgba(26, 35, 50, 0.1);
    --shadow-hover: 0 5px 25px rgba(26, 35, 50, 0.2);
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Georgia', 'Times New Roman', serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-white);
    padding-top: 60px; /* Account for fixed header */
}

/* Modern Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Arial', sans-serif;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--primary-navy);
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.5rem; }

p {
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

a {
    color: var(--accent-gold);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--primary-navy);
}

/* Container and Layout */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 80px 0;
}

.section.bg-light {
    background-color: var(--bg-light);
}

/* Header Styles */
.header {
    background: linear-gradient(135deg, var(--primary-navy), var(--secondary-navy));
    padding: 1rem 0;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.nav-brand a {
    display: flex;
    align-items: center;
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--text-light);
    text-decoration: none;
}

.nav-brand i {
    margin-right: 0.5rem;
    color: var(--accent-gold);
}

.nav-menu {
    display: flex;
    list-style: none;
    align-items: center;
    margin: 0;
    padding: 0;
}

.nav-menu li {
    margin-left: 2rem;
}

.nav-link {
    color: var(--text-light);
    font-weight: 500;
    padding: 0.5rem 0;
    position: relative;
    transition: color 0.3s ease;
    text-decoration: none;
}

.nav-link:hover {
    color: var(--accent-gold);
}

.nav-link.active {
    color: var(--accent-gold);
}



/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-light);
    font-size: 1.5rem;
    cursor: pointer;
    flex-direction: column;
    justify-content: center;
    width: 30px;
    height: 30px;
}

.mobile-menu-toggle span {
    display: block;
    height: 3px;
    width: 25px;
    background-color: var(--text-light);
    margin: 3px 0;
    transition: 0.3s;
    border-radius: 1px;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, rgba(26, 35, 50, 0.8), rgba(44, 62, 80, 0.8)), 
                url('https://images.unsplash.com/photo-1589829545856-d10d557cf95f?ixlib=rb-4.0.3&auto=format&fit=crop&w=1200&q=80') center/cover;
    height: 100vh;
    display: flex;
    align-items: center;
    color: var(--text-light);
    text-align: center;
}

.hero-content h1 {
    color: var(--text-light);
    margin-bottom: 1.5rem;
    font-size: 3.5rem;
    line-height: 1.2;
}

.hero-content p {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Button Styles */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 5px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary {
    background-color: var(--accent-gold);
    color: var(--primary-navy);
}

.btn-primary:hover {
    background-color: var(--light-gold);
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.btn-outline {
    background: transparent;
    color: var(--text-light);
    border: 2px solid var(--accent-gold);
}

.btn-outline:hover {
    background-color: var(--accent-gold);
    color: var(--primary-navy);
}

/* Cards */
.card {
    background: var(--bg-white);
    border-radius: 10px;
    padding: 2rem;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.card-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--accent-gold), var(--light-gold));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem auto;
    position: relative;
    font-size: 1.8rem;
    color: var(--primary-navy);
}

/* Grid System */
.row {
    display: flex;
    flex-wrap: wrap;
    margin: -15px;
}

.col-1 { flex: 0 0 8.333333%; max-width: 8.333333%; }
.col-2 { flex: 0 0 16.666667%; max-width: 16.666667%; }
.col-3 { flex: 0 0 25%; max-width: 25%; }
.col-4 { flex: 0 0 33.333333%; max-width: 33.333333%; }
.col-6 { flex: 0 0 50%; max-width: 50%; }
.col-8 { flex: 0 0 66.666667%; max-width: 66.666667%; }
.col-12 { flex: 0 0 100%; max-width: 100%; }

[class*="col-"] {
    padding: 15px;
}

/* Stats Section */
.stats {
    background: linear-gradient(135deg, var(--primary-navy), var(--secondary-navy));
    color: var(--text-light);
    padding: 60px 0;
}

.stat-item {
    text-align: center;
    padding: 1rem;
}

.stat-number {
    font-size: 3rem;
    font-weight: bold;
    color: var(--accent-gold);
    display: block;
}

.stat-label {
    font-size: 1.1rem;
    margin-top: 0.5rem;
}

/* Team Section */
.team-member {
    text-align: center;
    margin-bottom: 2rem;
}

.team-photo {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 1rem;
    border: 4px solid var(--accent-gold);
}

.team-name {
    font-size: 1.3rem;
    color: var(--primary-navy);
    margin-bottom: 0.5rem;
}

.team-position {
    color: var(--accent-gold);
    font-weight: 600;
    margin-bottom: 1rem;
}

/* Form Styles */
.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--primary-navy);
}

.form-control {
    width: 100%;
    padding: 12px;
    border: 2px solid var(--border-light);
    border-radius: 5px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: var(--accent-gold);
    box-shadow: 0 0 0 3px rgba(201, 168, 118, 0.1);
}

textarea.form-control {
    resize: vertical;
    min-height: 120px;
}

/* Footer */
.footer {
    background-color: var(--primary-navy);
    color: var(--text-light);
    padding: 60px 0 30px;
}

.footer-content {
    margin-bottom: 2rem;
}

.footer h4 {
    color: var(--accent-gold);
    margin-bottom: 1rem;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: var(--text-light);
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--accent-gold);
}

.footer-bottom {
    border-top: 1px solid var(--secondary-navy);
    padding-top: 2rem;
    text-align: center;
    color: var(--text-gray);
}

/* Responsive Design */
@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: flex;
    }
    
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--primary-navy);
        flex-direction: column;
        padding: 1rem;
        box-shadow: var(--shadow);
    }
    
    .nav-menu.active {
        display: flex;
    }
    
    .nav-menu li {
        margin: 0.5rem 0;
        margin-left: 0;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .hero-content p {
        font-size: 1.1rem;
    }
    
    .section {
        padding: 60px 0;
    }
    
    .row {
        flex-direction: column;
    }
    
    [class*="col-"] {
        max-width: 100%;
        flex: 0 0 100%;
    }
    
    .stat-number {
        font-size: 2.5rem;
    }
}

@media (max-width: 576px) {
    .container {
        padding: 0 15px;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .card {
        padding: 1.5rem;
    }
    
    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
}

/* Animation Classes */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Utility Classes */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.mb-4 { margin-bottom: 2rem; }
.mt-4 { margin-top: 2rem; }
.py-5 { padding: 3rem 0; }

/* Single Page Application Styles */
#main-content {
    position: relative;
}

.page-content {
    min-height: 100vh;
    position: relative;
    width: 100%;
}

/* Text fade-in animation for all page transitions */
.page-content.text-fade-in .hero-content,
.page-content.text-fade-in .section > .container,
.page-content.text-fade-in .stats > .container,
.page-content.text-fade-in .card,
.page-content.text-fade-in .fade-in {
    animation: textFadeIn 0.6s ease-out;
}

/* Staggered animation delays for more natural feel */
.page-content.text-fade-in .section:nth-child(2) > .container {
    animation-delay: 0.1s;
}

.page-content.text-fade-in .section:nth-child(3) > .container {
    animation-delay: 0.2s;
}

.page-content.text-fade-in .section:nth-child(4) > .container {
    animation-delay: 0.3s;
}

.page-content.text-fade-in .section:nth-child(5) > .container {
    animation-delay: 0.4s;
}

@keyframes textFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Team Photo Styles for Attorneys Page */
.team-photo {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    margin: 0 auto 1rem;
    object-fit: cover;
    border: 4px solid var(--accent-gold);
    transition: transform 0.3s ease;
}

.team-photo:hover {
    transform: scale(1.05);
}

.team-name {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-navy);
    margin-bottom: 0.5rem;
}

.team-position {
    color: var(--accent-gold);
    font-weight: bold;
    margin-bottom: 1rem;
}

/* Enhanced Navigation Hover Effects */
.nav-link {
    position: relative;
    transition: all 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--accent-gold);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

/* Page Link Styling */
.page-link {
    transition: all 0.3s ease;
}

.page-link:hover {
    text-decoration: none;
    color: var(--accent-gold) !important;
}

/* Enhanced Card Hover Effects */
.card {
    transition: all 0.3s ease;
    cursor: default;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

/* Smooth Scrolling Enhancement */
html {
    scroll-behavior: smooth;
}

/* Loading State for Form */
.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}