/* Lawyer Website - Professional Stylesheet */
/* Professional Law Firm Color Theme: Navy Blue + Gold + White */

:root {
    /* Primary Color Palette */
    --navy-blue: #0B1F3A;
    --navy-blue-light: #1a3a5c;
    --gold: #C9A227;
    --gold-light: #d4b547;
    --white: #FFFFFF;
    --light-gray: #F5F5F5;
    --text-dark: #333333;
    --text-gray: #666666;
    
    /* Legacy variable names for compatibility */
    --dark-blue: #0B1F3A;
    --dark-blue-light: #1a3a5c;
    --dark-gray: #333333;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Open Sans', 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--text-dark);
    line-height: 1.7;
    padding-top: 76px;
    background-color: var(--white);
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', 'Merriweather', serif;
    font-weight: 600;
    color: var(--navy-blue);
    line-height: 1.3;
}

/* Navigation */
.bg-dark-blue {
    background-color: var(--navy-blue) !important;
    box-shadow: 0 2px 10px rgba(11, 31, 58, 0.2);
}

.navbar-brand {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    font-size: 1.3rem;
}

.lawyer-name {
    color: var(--gold);
}

.navbar-nav .nav-link {
    color: var(--white) !important;
    font-weight: 500;
    margin: 0 5px;
    transition: color 0.3s, transform 0.2s;
    padding: 8px 12px !important;
    border-radius: 6px;
}

.navbar-nav .nav-link:hover {
    color: var(--gold) !important;
    background-color: rgba(201, 162, 39, 0.1);
    transform: translateY(-2px);
}

.btn-gold {
    background-color: var(--gold);
    color: var(--white);
    border: none;
    font-weight: 600;
    padding: 12px 30px;
    border-radius: 6px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(201, 162, 39, 0.3);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.9rem;
}

.btn-gold:hover {
    background-color: var(--navy-blue);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(11, 31, 58, 0.4);
}

.btn-outline-gold {
    border: 2px solid var(--gold);
    color: var(--gold);
    background: transparent;
    font-weight: 600;
    padding: 12px 30px;
    border-radius: 6px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.9rem;
}

.btn-outline-gold:hover {
    background-color: var(--gold);
    color: var(--white);
    border-color: var(--gold);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(201, 162, 39, 0.3);
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--navy-blue) 0%, var(--navy-blue-light) 100%);
    color: var(--white);
    padding: 120px 0;
    position: relative;
    overflow: hidden;
}

.hero-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" viewBox="0 0 1440 320"><path fill="%23ffffff" fill-opacity="0.08" d="M0,96L48,112C96,128,192,160,288,160C384,160,480,128,576,112C672,96,768,96,864,112C960,128,1056,160,1152,160C1248,160,1344,128,1392,112L1440,96L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>') no-repeat bottom;
    background-size: cover;
    opacity: 0.4;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-section h1 {
    color: var(--white);
    font-size: 3.5rem;
    margin-bottom: 20px;
    font-weight: 700;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.hero-section .tagline {
    font-size: 1.3rem;
    margin-bottom: 30px;
    color: var(--gold);
    font-weight: 400;
}

.hero-section .experience-badge {
    display: inline-block;
    background: var(--gold);
    color: var(--white);
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 700;
    margin-bottom: 30px;
    box-shadow: 0 4px 15px rgba(201, 162, 39, 0.4);
}

/* Section Styles */
.section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--gold);
}

.section-title p {
    color: var(--text-gray);
    font-size: 1.1rem;
    margin-top: 20px;
}

/* Cards */
.card {
    border: none;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(11, 31, 58, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    margin-bottom: 30px;
    background: var(--white);
    overflow: hidden;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(11, 31, 58, 0.15);
}

.card-icon {
    width: 80px;
    height: 80px;
    background: var(--navy-blue);
    color: var(--gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin: 0 auto 20px;
    box-shadow: 0 4px 15px rgba(11, 31, 58, 0.2);
    transition: all 0.3s ease;
}

.card:hover .card-icon {
    background: var(--gold);
    color: var(--navy-blue);
    transform: scale(1.1);
}

.card-title {
    color: var(--navy-blue);
    font-weight: 600;
    margin-bottom: 15px;
    font-family: 'Playfair Display', serif;
}

/* Practice Areas */
.practice-area-card {
    text-align: center;
    padding: 30px 20px;
}

.practice-area-card .card-icon {
    background: linear-gradient(135deg, var(--navy-blue) 0%, var(--navy-blue-light) 100%);
}

/* About Section */
.about-content {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-gray);
}

.timeline {
    position: relative;
    padding: 20px 0;
}

.timeline-item {
    position: relative;
    padding-left: 50px;
    margin-bottom: 40px;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: 10px;
    top: 0;
    bottom: -40px;
    width: 2px;
    background: var(--gold);
}

.timeline-item:last-child::before {
    display: none;
}

.timeline-icon {
    position: absolute;
    left: 0;
    top: 0;
    width: 22px;
    height: 22px;
    background: var(--gold);
    border-radius: 50%;
    border: 4px solid var(--navy-blue);
    box-shadow: 0 2px 8px rgba(201, 162, 39, 0.3);
}

.timeline-year {
    color: var(--gold);
    font-weight: 700;
    font-size: 1.1rem;
}

.timeline-title {
    color: var(--dark-blue);
    font-weight: 600;
    margin: 5px 0;
}

/* Testimonials */
.testimonial-card {
    background: var(--light-gray);
    padding: 30px;
    border-radius: 10px;
    position: relative;
    margin-bottom: 30px;
}

.testimonial-card::before {
    content: '"';
    position: absolute;
    top: -10px;
    left: 20px;
    font-size: 80px;
    color: var(--gold);
    font-family: 'Playfair Display', serif;
    line-height: 1;
}

.testimonial-author {
    margin-top: 20px;
    font-weight: 600;
    color: var(--navy-blue);
}

/* Contact Form */
.contact-form {
    background: var(--light-gray);
    padding: 40px;
    border-radius: 10px;
}

.form-control, .form-select {
    border: 2px solid #e0e0e0;
    border-radius: 5px;
    padding: 12px 15px;
    margin-bottom: 20px;
    transition: border-color 0.3s;
}

.form-control:focus, .form-select:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 0.2rem rgba(201, 162, 39, 0.25);
    outline: none;
}

/* Footer */
.footer {
    background: var(--navy-blue) !important;
    margin-top: 80px;
    box-shadow: 0 -4px 20px rgba(11, 31, 58, 0.1);
}

.footer h5 {
    color: var(--gold);
    margin-bottom: 20px;
    font-family: 'Playfair Display', serif;
}

.footer a {
    text-decoration: none;
    transition: color 0.3s ease;
    color: rgba(255, 255, 255, 0.9);
}

.footer a:hover {
    color: var(--gold) !important;
}

.social-links a {
    display: inline-block;
    width: 40px;
    height: 40px;
    line-height: 40px;
    text-align: center;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    transition: all 0.3s;
}

.social-links a:hover {
    background: var(--gold);
    color: var(--white) !important;
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(201, 162, 39, 0.4);
}

/* WhatsApp Float Button */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 30px;
    right: 30px;
    background-color: #25d366;
    color: white;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 2px 3px #999;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    text-decoration: none;
}

.whatsapp-float:hover {
    background-color: #128c7e;
    transform: scale(1.1);
    color: white;
}

/* Blog */
.blog-card {
    margin-bottom: 30px;
}

.blog-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 10px 10px 0 0;
}

.blog-meta {
    color: var(--text-gray);
    font-size: 0.9rem;
    margin-bottom: 10px;
}

/* Admin Panel */
.admin-sidebar {
    background: var(--navy-blue);
    min-height: 100vh;
    padding: 20px 0;
    box-shadow: 2px 0 10px rgba(11, 31, 58, 0.1);
}

.admin-sidebar .nav-link {
    color: rgba(255,255,255,0.9);
    padding: 12px 20px;
    transition: all 0.3s ease;
    border-radius: 6px;
    margin: 5px 10px;
}

.admin-sidebar .nav-link:hover,
.admin-sidebar .nav-link.active {
    background: var(--gold);
    color: var(--white);
    transform: translateX(5px);
}

/* Responsive */
@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 2.5rem;
    }
    
    .hero-section .tagline {
        font-size: 1.1rem;
    }
    
    .section {
        padding: 50px 0;
    }
    
    .section-title h2 {
        font-size: 2rem;
    }
    
    .contact-form {
        padding: 25px;
    }
    
    .whatsapp-float {
        width: 50px;
        height: 50px;
        font-size: 25px;
        bottom: 20px;
        right: 20px;
    }
}

/* Appointment Form Enhancements */
.appointment-progress {
    max-width: 600px;
    margin: 0 auto;
}

.progress-steps {
    position: relative;
}

.step {
    flex: 1;
    text-align: center;
    position: relative;
}

.step-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--light-gray);
    border: 3px solid #e0e0e0;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 10px;
    transition: all 0.3s;
    color: var(--text-gray);
    font-size: 1.5rem;
}

.step.active .step-icon {
    background: var(--gold);
    border-color: var(--gold);
    color: var(--white);
    transform: scale(1.1);
    box-shadow: 0 4px 15px rgba(201, 162, 39, 0.4);
}

.step-label {
    font-size: 0.9rem;
    color: var(--text-gray);
    font-weight: 500;
}

.step.active .step-label {
    color: var(--navy-blue);
    font-weight: 600;
}

.step-line {
    flex: 1;
    height: 3px;
    background: #e0e0e0;
    margin: 0 10px;
    margin-top: -40px;
    position: relative;
    z-index: 0;
}

.form-section {
    padding: 25px;
    background: var(--light-gray);
    border-radius: 10px;
    margin-bottom: 25px;
    border-left: 4px solid var(--gold);
}

.section-title {
    color: var(--navy-blue);
    font-size: 1.1rem;
    font-weight: 600;
    padding-bottom: 10px;
    border-bottom: 2px solid rgba(201, 162, 39, 0.2);
    font-family: 'Playfair Display', serif;
}

.input-group-text {
    border: 2px solid #e0e0e0;
    border-right: none;
    border-radius: 5px 0 0 5px;
}

.input-group .form-control,
.input-group .form-select {
    border-left: none;
    border-radius: 0 5px 5px 0;
}

.input-group .form-control:focus,
.input-group .form-select:focus {
    border-left: 2px solid var(--gold);
}

.form-label {
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.form-label.fw-semibold {
    font-weight: 600;
}

/* Enhanced Form Controls */
.form-control:focus,
.form-select:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 0.2rem rgba(201, 162, 39, 0.25);
    outline: none;
}

.form-control::placeholder {
    color: #999;
    opacity: 0.7;
}

/* Alert Enhancements */
.alert {
    border-radius: 8px;
}

.alert-heading {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.border-gold {
    border: 2px solid var(--gold) !important;
}

/* Card Enhancements */
.card.shadow-sm {
    transition: transform 0.3s, box-shadow 0.3s;
}

.card.shadow-sm:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15) !important;
}

/* Responsive adjustments for appointment form */
@media (max-width: 768px) {
    .appointment-progress {
        margin-bottom: 30px;
    }
    
    .step-icon {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
    
    .step-label {
        font-size: 0.8rem;
    }
    
    .step-line {
        margin-top: -35px;
    }
    
    .form-section {
        padding: 20px 15px;
    }
    
    .card-body {
        padding: 20px !important;
    }
}

/* Utility Classes */
.bg-light-gray {
    background-color: var(--light-gray);
}

.text-gold {
    color: var(--gold);
}

.text-dark-blue {
    color: var(--navy-blue);
}

/* Links */
a {
    color: var(--navy-blue);
    transition: color 0.3s ease;
}

a:hover {
    color: var(--gold);
}

/* Additional Professional Styling */
.page-header-section {
    background: linear-gradient(135deg, var(--navy-blue) 0%, var(--navy-blue-light) 100%);
    color: var(--white);
    padding: 80px 0;
    margin-top: 0;
    box-shadow: 0 4px 20px rgba(11, 31, 58, 0.1);
}

.page-header-section h1 {
    color: var(--white);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.page-header-section .lead {
    color: rgba(255, 255, 255, 0.9);
}

/* Section Backgrounds */
.bg-light-gray {
    background-color: var(--light-gray) !important;
}

/* Text Colors */
.text-muted {
    color: var(--text-gray) !important;
}

/* Border Colors */
.border-gold {
    border-color: var(--gold) !important;
}

/* Badge Styling */
.badge {
    border-radius: 6px;
    padding: 6px 12px;
    font-weight: 500;
}

/* Alert Styling */
.alert-info {
    background-color: rgba(201, 162, 39, 0.1);
    border-color: var(--gold);
    color: var(--navy-blue);
}

/* Input Group Enhancements */
.input-group-text {
    background-color: var(--light-gray);
    border-color: #e0e0e0;
    color: var(--navy-blue);
}

/* Table Styling */
.table {
    border-radius: 8px;
    overflow: hidden;
}

.table thead {
    background-color: var(--navy-blue);
    color: var(--white);
}

.table thead th {
    border: none;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
}

/* Pagination */
.pagination .page-link {
    color: var(--navy-blue);
    border-color: #e0e0e0;
}

.pagination .page-link:hover {
    background-color: var(--gold);
    border-color: var(--gold);
    color: var(--white);
}

.pagination .page-item.active .page-link {
    background-color: var(--navy-blue);
    border-color: var(--navy-blue);
    color: var(--white);
}
