/* 
* Lighthouse Legal Counsel - Custom Styles
* A professional law firm website with blue and white color scheme
*/

/* ===== VARIABLES ===== */
:root {
    --primary: #0056b3;
    --primary-dark: #004494;
    --primary-light: #3a7cc9;
    --secondary: #6c757d;
    --light: #f8f9fa;
    --dark: #343a40;
    --body-text: #212529;
    --body-bg: #ffffff;
    --border-radius: 8px;
    --box-shadow: 0 8px 15px rgba(0, 0, 0, 0.05);
    --transition: all 0.3s ease;
    --heading-font: 'Playfair Display', serif;
    --body-font: 'Libre Franklin', sans-serif;
}

/* ===== BASE STYLES ===== */
body {
    font-family: var(--body-font);
    color: var(--body-text);
    background-color: var(--body-bg);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--heading-font);
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--dark);
}

h1 {
    font-weight: 700;
}

h2 {
    font-size: 2.25rem;
    margin-bottom: 1.5rem;
}

h3 {
    font-size: 1.75rem;
}

a {
    color: var(--primary);
    transition: var(--transition);
}

a:hover {
    color: var(--primary-dark);
}

p {
    margin-bottom: 1.5rem;
}

.lead {
    font-weight: 400;
    font-size: 1.125rem;
    color: var(--secondary);
}

.text-primary {
    color: var(--primary) !important;
}

.bg-primary {
    background-color: var(--primary) !important;
}

/* ===== UTILITY CLASSES ===== */
.section-padding {
    padding: 6rem 0;
}

.rounded-4 {
    border-radius: 1rem !important;
}

.shadow-sm {
    box-shadow: var(--box-shadow) !important;
}

.shadow-lg {
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08) !important;
}

.text-shadow {
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.icon-box {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
}

/* ===== BUTTONS ===== */
.btn {
    font-weight: 500;
    padding: 0.625rem 1.5rem;
    transition: var(--transition);
    border-width: 2px;
}

.btn-primary {
    background-color: var(--primary);
    border-color: var(--primary);
}

.btn-primary:hover, .btn-primary:focus {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
}

.btn-outline-primary {
    color: var(--primary);
    border-color: var(--primary);
}

.btn-outline-primary:hover, .btn-outline-primary:focus {
    background-color: var(--primary);
    border-color: var(--primary);
}

.btn-link {
    font-weight: 500;
    text-decoration: none;
}

.btn-lg {
    padding: 0.75rem 2rem;
    font-size: 1.1rem;
}

/* ===== NAVIGATION ===== */
.navbar {
    padding: 1rem 0;
    transition: var(--transition);
}

.navbar-brand {
    font-family: var(--heading-font);
    font-weight: 700;
    color: var(--primary);
}

.navbar-brand img {
    margin-right: 0.5rem;
}

.navbar-nav .nav-link {
    color: var(--dark);
    font-weight: 500;
    padding: 0.5rem 1rem;
    transition: var(--transition);
}

.navbar-nav .nav-link:hover, 
.navbar-nav .nav-link.active {
    color: var(--primary);
}

.navbar-nav .dropdown-menu {
    border: none;
    border-radius: var(--border-radius);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    padding: 1rem 0;
}

.navbar-nav .dropdown-item {
    padding: 0.5rem 1.5rem;
    font-weight: 500;
    transition: var(--transition);
}

.navbar-nav .dropdown-item:hover, 
.navbar-nav .dropdown-item:focus {
    background-color: rgba(0, 86, 179, 0.05);
    color: var(--primary);
}

.navbar-toggler {
    border: none;
    padding: 0.5rem;
}

.navbar-toggler:focus {
    box-shadow: none;
}

/* ===== HERO SECTION ===== */
.hero-section {
    padding: 8rem 0 4rem;
    background-color: var(--light);
    position: relative;
}

.hero-section h1 {
    margin-bottom: 1.5rem;
    font-size: 3rem;
    line-height: 1.2;
}

.hero-section .lead {
    font-size: 1.25rem;
    margin-bottom: 2rem;
}

.hero-section .img-wrapper {
    height: 100%;
}

.hero-section .img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ===== PAGE HEADER ===== */
.page-header {
    padding: 8rem 0 4rem;
    background-color: var(--light);
    margin-bottom: 4rem;
}

.page-header h1 {
    margin-bottom: 1rem;
}

/* ===== CARDS ===== */
.card {
    border-radius: var(--border-radius);
    overflow: hidden;
    transition: var(--transition);
    height: 100%;
}

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

.card-body {
    padding: 2rem;
}

/* ===== TESTIMONIALS ===== */
.testimonial-card {
    padding: 2rem;
    border-radius: var(--border-radius);
    background-color: var(--body-bg);
    box-shadow: var(--box-shadow);
}

/* ===== SERVICES SECTION ===== */
.services-section .card {
    height: 100%;
    transition: var(--transition);
}

.services-section .card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.08);
}

/* ===== BLOCKQUOTE ===== */
.blockquote {
    font-size: 1.1rem;
    border-left: 4px solid var(--primary);
}

.blockquote-footer {
    color: var(--secondary);
}

/* ===== CTA BOX ===== */
.cta-box {
    border-radius: var(--border-radius);
}

/* ===== FOOTER ===== */
footer {
    background-color: var(--dark);
    color: #fff;
    padding: 5rem 0 2rem;
}

footer h5 {
    color: #fff;
    margin-bottom: 1.5rem;
    font-weight: 700;
}

footer a {
    color: rgba(255, 255, 255, 0.7);
    transition: var(--transition);
}

footer a:hover {
    color: #fff;
    text-decoration: none;
}

footer hr {
    margin: 3rem 0 2rem;
    background-color: rgba(255, 255, 255, 0.1);
}

footer .social-icons a {
    margin-right: 1rem;
    font-size: 1.25rem;
}

/* ===== SERVICE DETAIL PAGES ===== */
.sidebar-sticky.sticky-top {
    position: sticky;
    top: 100px;
}

/* ===== CONTACT FORM ===== */
.form-control {
    padding: 0.75rem 1.25rem;
    border-radius: var(--border-radius);
    border: 1px solid #ced4da;
    transition: var(--transition);
}

.form-control:focus {
    border-color: var(--primary-light);
    box-shadow: 0 0 0 0.25rem rgba(0, 86, 179, 0.25);
}

/* ===== RESPONSIVE STYLES ===== */
@media (max-width: 991.98px) {
    .hero-section h1 {
        font-size: 2.5rem;
    }
    
    h2 {
        font-size: 2rem;
    }
    
    /* Fix for overflowing content */
    .container {
        max-width: 95%;
    }
    
    /* Make all text more responsive */
    p, .lead, .card-text {
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    
    /* Ensure logo displays properly on mobile */
    .navbar-brand img {
        height: 40px;
    }
    
    /* Adjust card layout */
    .card {
        margin-bottom: 1.5rem;
    }
    
    /* Fix for About page industries section */
    .col-md-4.col-lg-2 {
        min-height: 125px;
    }
}

@media (max-width: 767.98px) {
    .hero-section {
        padding: 7rem 0 3rem;
    }
    
    .hero-section h1 {
        font-size: 2.25rem;
    }
    
    .page-header {
        padding: 7rem 0 3rem;
    }
    
    .section-padding {
        padding: 4rem 0;
    }
    
    h2 {
        font-size: 1.75rem;
    }
    
    .card-body {
        padding: 1.5rem;
    }
    
    /* Fix for team page layout */
    .col-md-3 > .rounded-circle {
        width: 150px !important;
        height: 150px !important;
        margin: 0 auto;
    }
    
    /* Fix width issues */
    .w-75.mx-auto {
        width: 100% !important;
    }
}

@media (max-width: 575.98px) {
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .hero-section .lead {
        font-size: 1.1rem;
    }
    
    .btn-lg {
        padding: 0.625rem 1.5rem;
        font-size: 1rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    /* Team page fixes for mobile */
    .team-member-card .row {
        flex-direction: column;
    }
    
    .team-member-card .col-md-3 {
        width: 100%;
        margin-bottom: 1.5rem;
    }
    
    .team-member-card .col-md-9 {
        width: 100%;
    }
    
    /* Make sure the logo works on very small screens */
    .navbar-brand img {
        height: 35px;
    }
    
    /* Better spacing for small screens */
    h3, h4, h5 {
        margin-top: 1rem;
    }
    
    /* Make buttons more usable on mobile */
    .btn {
        margin-bottom: 0.5rem;
        white-space: normal;
    }
}
