/* Custom CSS for Boorman Lawyers Gold Coast Legal Website */

:root {
    --primary-color: #000000;
    --secondary-color: #1a1a1a;
    --accent-color: #bd2300;
    --text-dark: #000000;
    --text-light: #6b7280;
    --bg-light: #ffffff;
    --success-color: #bd2300;
    --warning-color: #bd2300;
    --border-color: #e5e7eb;
}

/* Legal Disclaimer Styling */
.legal-disclaimer {
    background-color: #f8f9fa !important;
    border: 1px solid #dee2e6 !important;
    padding: 15px !important;
    margin-top: 20px !important;
    border-radius: 5px !important;
}

.legal-disclaimer p {
    color: #495057 !important;
    font-weight: 500 !important;
    margin-bottom: 0 !important;
    font-size: 14px !important;
}

/* Global Styles */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    padding-top: 160px;
}

/* Navigation Styles */
.navbar {
    background-color: var(--primary-color) !important;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.navbar-nav {
    align-items: center;
}

.navbar-collapse {
    justify-content: center !important;
}

/* Logo Header */
.logo-header {
    background: white;
    padding: 15px 0;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1030;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    border-bottom: 1px solid #e5e7eb;
}

.logo-image {
    height: 70px;
    width: auto;
    object-fit: contain;
    display: block;
    margin: 0 auto;
    max-width: 100%;
}

/* Special styling for the new header image */
.img-fluid {
    height: 70px;
    width: auto;
    object-fit: contain;
}

/* Navigation Styles */
.navbar {
    background-color: white !important;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    border-top: 1px solid #e5e7eb;
}

.navbar-nav {
    align-items: center;
}

.navbar-collapse {
    justify-content: center !important;
}

.navbar-nav .nav-link {
    font-weight: 500;
    transition: color 0.3s ease;
    color: black !important;
    padding: 15px 20px !important;
}

.navbar-nav .nav-link:hover {
    color: var(--accent-color) !important;
}

.navbar-nav .nav-link.active {
    color: var(--accent-color) !important;
}

.dropdown-menu {
    border: none;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    background-color: white !important;
    z-index: 1025 !important;
    min-width: 200px;
}

.dropdown-item {
    color: black !important;
    padding: 8px 16px;
    transition: all 0.2s ease;
}

.dropdown-item:hover,
.dropdown-item:focus {
    background-color: #f8f9fa !important;
    color: var(--accent-color) !important;
}

.dropdown-item.active {
    background-color: #f8f9fa !important;
    color: var(--accent-color) !important;
}

/* Mobile responsive logo */
@media (max-width: 768px) {
    .logo-image {
        height: 60px;
    }
    
    body {
        padding-top: 160px;
    }
}

@media (max-width: 480px) {
    .logo-image {
        height: 50px;
    }
    
    body {
        padding-top: 140px;
    }
}

.navbar-brand {
    font-size: 1.5rem;
    color: white !important;
    width: 100% !important;
    display: flex !important;
    justify-content: center !important;
}

.navbar-brand img {
    width: 100% !important;
    max-width: 100% !important;
    height: 60px !important;
    object-fit: cover !important;
}

.navbar-nav .nav-link {
    font-weight: 500;
    transition: color 0.3s ease;
}

.navbar-nav .nav-link:hover {
    color: var(--accent-color) !important;
}

.dropdown-menu {
    border: none;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    background-color: white !important;
    z-index: 1025 !important;
    min-width: 200px;
}

.dropdown-item {
    color: var(--text-dark) !important;
    padding: 8px 16px;
    transition: all 0.2s ease;
}

.dropdown-item:hover,
.dropdown-item:focus {
    background-color: #f8f9fa !important;
    color: var(--accent-color) !important;
}

/* Dropdown menu styling and behavior */
.navbar-nav .dropdown-menu {
    margin-top: 0;
    border-radius: 0 0 8px 8px;
    display: none;
    min-width: 220px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
    border: 1px solid rgba(0,0,0,0.1);
    animation: dropdownFadeIn 0.2s ease-out;
}

@keyframes dropdownFadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Desktop hover behavior */
@media (min-width: 992px) {
    .navbar-nav .dropdown:hover > .dropdown-menu {
        display: block;
    }
    
    .navbar-nav .dropdown-menu:hover {
        display: block;
    }
}

/* Mobile dropdown behavior */
@media (max-width: 991.98px) {
    .navbar-nav .dropdown-menu {
        position: static;
        float: none;
        width: auto;
        margin-top: 5px;
        background-color: #f8f9fa;
        border: none;
        box-shadow: none;
        border-radius: 8px;
        padding: 10px;
    }
    
    .navbar-nav .dropdown-menu.show {
        display: block;
        animation: dropdownSlideDown 0.3s ease-out;
    }
    
    .navbar-nav .dropdown-toggle::after {
        transition: transform 0.2s ease;
    }
    
    .navbar-nav .dropdown-toggle[aria-expanded="true"]::after {
        transform: rotate(180deg);
    }
}

@keyframes dropdownSlideDown {
    from {
        opacity: 0;
        max-height: 0;
        overflow: hidden;
    }
    to {
        opacity: 1;
        max-height: 500px;
        overflow: visible;
    }
}

/* Hero Section */
.hero-section {
    background: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)), url('../images/legal-team-hero.jpg') center/cover no-repeat;
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

/* Page Header */
.page-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    padding: 4rem 0;
}

.page-header img {
    border: 3px solid rgba(255, 255, 255, 0.2);
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Ccircle cx='30' cy='30' r='2'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E") repeat;
}

.hero-icon {
    font-size: 12rem;
    opacity: 0.9;
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

.hero-section .container {
    position: relative;
    z-index: 2;
}

/* Emergency Banner */
.emergency-banner {
    background-color: var(--accent-color) !important;
    border-bottom: 3px solid #bd2300;
}

/* Service Cards */
.service-card {
    background: white;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    border-color: var(--accent-color);
}

.service-icon {
    font-size: 3rem;
}

/* Feature Boxes */
.feature-box {
    background: white;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
}

.feature-box:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.1);
}

.feature-icon {
    font-size: 2.5rem;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--primary-color) 100%);
    position: relative;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 40v20h100V40H0zm0-20v20h100V20H0zm0-20v20h100V0H0z' fill='%23ffffff' fill-opacity='0.05'/%3E%3C/svg%3E") repeat;
}

.cta-section .container {
    position: relative;
    z-index: 2;
}

/* Override Bootstrap danger classes with blood red */
.text-danger {
    color: var(--accent-color) !important;
}

.btn-danger {
    background-color: var(--accent-color) !important;
    border-color: var(--accent-color) !important;
    color: white !important;
}

.btn-danger:hover {
    background-color: #a01f00 !important;
    border-color: #a01f00 !important;
    color: white !important;
}

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

/* Buttons */
.btn-danger {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
    color: var(--text-dark);
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-warning:hover {
    background-color: #f59e0b;
    border-color: #f59e0b;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(251, 191, 36, 0.4);
}

.btn-outline-primary {
    border-color: var(--primary-color);
    color: var(--primary-color);
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-outline-primary:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

.btn-outline-light {
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-outline-light:hover {
    transform: translateY(-2px);
}

/* Footer */
footer {
    background-color: #1a202c !important;
}

footer a {
    text-decoration: none;
    transition: color 0.3s ease;
}

footer a:hover {
    color: var(--accent-color) !important;
}

.social-links a {
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.social-links a:hover {
    transform: translateY(-2px);
}

/* Page-specific styles */
.page-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    padding: 100px 0 50px;
    color: white;
}

.breadcrumb {
    background: transparent;
    margin: 0;
    padding: 0;
}

.breadcrumb-item a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
}

.breadcrumb-item.active {
    color: var(--accent-color);
}

/* Content sections */
.content-section {
    padding: 60px 0;
}

.content-section h2 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.content-section h3 {
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

/* Info boxes */
.info-box {
    background: var(--bg-light);
    border-left: 4px solid var(--accent-color);
    padding: 1.5rem;
    margin: 1.5rem 0;
    border-radius: 0 8px 8px 0;
}

.warning-box {
    background: #fef3cd;
    border-left: 4px solid #fbbf24;
    padding: 1.5rem;
    margin: 1.5rem 0;
    border-radius: 0 8px 8px 0;
}

.success-box {
    background: #d1fae5;
    border-left: 4px solid #10b981;
    padding: 1.5rem;
    margin: 1.5rem 0;
    border-radius: 0 8px 8px 0;
}

/* Contact form */
.form-control:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 0.2rem rgba(251, 191, 36, 0.25);
}

/* Professional Legal Images */
.legal-hero-image {
    background: linear-gradient(135deg, rgba(26, 54, 93, 0.8), rgba(44, 82, 130, 0.8)), 
                url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 600'%3E%3Crect width='1200' height='600' fill='%23f8fafc'/%3E%3Cpath d='M400 200h400v200H400z' fill='%23e2e8f0'/%3E%3Ctext x='600' y='310' text-anchor='middle' font-family='serif' font-size='24' fill='%23374151'%3EGold Coast Legal%3C/text%3E%3C/svg%3E");
    background-size: cover;
    background-position: center;
    min-height: 300px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
}

.courthouse-image {
    background: linear-gradient(135deg, rgba(26, 54, 93, 0.1), rgba(44, 82, 130, 0.1)), 
                url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 300'%3E%3Crect width='400' height='300' fill='%23f1f5f9'/%3E%3Crect x='50' y='80' width='300' height='180' fill='%23e2e8f0'/%3E%3Crect x='150' y='120' width='100' height='120' fill='%23cbd5e1'/%3E%3Ctext x='200' y='270' text-anchor='middle' font-family='serif' font-size='14' fill='%23475569'%3ECourthouse%3C/text%3E%3C/svg%3E");
    background-size: cover;
    background-position: center;
    min-height: 200px;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.lawyer-profile-image {
    background: linear-gradient(135deg, rgba(26, 54, 93, 0.1), rgba(44, 82, 130, 0.1)), 
                url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 300 300'%3E%3Crect width='300' height='300' fill='%23f8fafc'/%3E%3Ccircle cx='150' cy='120' r='50' fill='%23e2e8f0'/%3E%3Crect x='100' y='200' width='100' height='80' fill='%23cbd5e1'/%3E%3Ctext x='150' y='280' text-anchor='middle' font-family='serif' font-size='12' fill='%23475569'%3EProfessional%3C/text%3E%3C/svg%3E");
    background-size: cover;
    background-position: center;
    min-height: 250px;
    border-radius: 10px;
    margin-bottom: 1rem;
}

/* Sidebar Enhancements */
.sidebar .contact-card {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    border-radius: 10px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.sidebar .info-card {
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.sidebar .quick-links {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* SEO Optimized Card Grid */
.seo-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.seo-card {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    text-decoration: none;
    color: inherit;
}

.seo-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    text-decoration: none;
    color: inherit;
}

/* Responsive enhancements */
@media (max-width: 768px) {
    .hero-section {
        min-height: 70vh;
        padding: 2rem 0;
    }
    
    .hero-icon {
        font-size: 8rem;
    }
    
    .page-header {
        padding: 100px 0 40px;
    }
    
    .seo-card-grid {
        grid-template-columns: 1fr;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-icon {
        font-size: 8rem;
    }
    
    .display-4 {
        font-size: 2.5rem;
    }
    
    .display-5 {
        font-size: 2rem;
    }
    
    .service-icon,
    .feature-icon {
        font-size: 2rem;
    }
    
    .emergency-banner .row {
        text-align: center;
    }
    
    .emergency-banner .col-lg-4 {
        margin-top: 1rem;
    }
}

/* Animation classes */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Loading states */
.loading {
    pointer-events: none;
    opacity: 0.6;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    transform: translate(-50%, -50%);
}

@keyframes spin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Video Section Styles */
.video-section {
    background-color: #f8f9fa;
    border-bottom: 1px solid var(--border-color);
}

.video-container {
    border: 2px solid var(--border-color);
    border-radius: 10px;
    overflow: hidden;
    transition: box-shadow 0.3s ease;
}

.video-container:hover {
    box-shadow: 0 10px 25px rgba(0,0,0,0.15) !important;
}

.video-container iframe {
    border: none;
    border-radius: 7px;
}

.feature-highlight {
    padding: 15px;
    text-align: center;
    margin-bottom: 20px;
}

.feature-highlight i {
    color: var(--accent-color);
    margin-bottom: 8px;
    display: block;
}

.feature-highlight h6 {
    color: var(--text-dark);
    margin-bottom: 5px;
}

.video-info small {
    color: #6c757d;
    font-style: italic;
}

/* Video responsive styling */
@media (max-width: 768px) {
    .video-section {
        padding: 30px 0;
    }
    
    .feature-highlight {
        padding: 10px;
        margin-bottom: 15px;
    }
    
    .video-section h2 {
        font-size: 1.5rem;
    }
}
