/* ===================================
   Header & Navigation
   =================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: var(--white);
    z-index: 1000;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.header.scrolled {
    box-shadow: var(--shadow-md);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo-container {
    display: flex;
    align-items: center;
}

.logo {
    height: 60px;
    width: auto;
    transition: height 0.3s ease;
}

.header.scrolled .logo {
    height: 50px;
}

.firm-info {
    display: flex;
    flex-direction: column;
    margin-left: 1rem;
    padding-left: 1rem;
    border-left: 2px solid var(--primary-blue);
    text-align: center;
    white-space: nowrap;
}

.firm-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary-blue-dark);
    letter-spacing: 0.5px;
}

.firm-address {
    font-size: 0.8rem;
    color: var(--neutral-dark);
    margin-top: 0.15rem;
}

.nav {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav a {
    font-weight: 500;
    color: var(--neutral-dark);
    transition: color 0.3s ease;
    position: relative;
}

.nav a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-blue);
    transition: width 0.3s ease;
}

.nav a:hover::after {
    width: 100%;
}

.nav a:hover {
    color: var(--primary-blue);
}

/* Phone button in header - lighter blue background on hover with white text */
.nav .btn-primary {
    color: var(--white);
}

.nav .btn-primary:hover {
    background: var(--primary-blue-light);
    color: var(--white);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--neutral-dark);
    cursor: pointer;
}

.mobile-menu {
    display: none;
    flex-direction: column;
    gap: 1rem;
    padding: 1rem 0;
    border-top: 1px solid var(--neutral-lighter);
}

.mobile-menu a {
    padding: 0.5rem 0;
    color: var(--neutral-dark);
    font-weight: 500;
}

.mobile-menu a:hover {
    color: var(--primary-blue);
}

/* ===================================
   Hero Section
   =================================== */
.hero {
    min-height: 600px;
    display: flex;
    align-items: center;
    background-image: 
        linear-gradient(135deg, rgba(44, 95, 125, 0.85) 0%, rgba(26, 58, 77, 0.85) 100%),
        url('../images/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: var(--white);
    position: relative;
    margin-top: 80px;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="100" height="100" patternUnits="userSpaceOnUse"><path d="M 100 0 L 0 0 0 100" fill="none" stroke="rgba(255,255,255,0.05)" stroke-width="1"/></pattern></defs><rect width="100%" height="100%" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

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

.hero h1 {
    color: var(--white);
    margin-bottom: var(--spacing-md);
}

.hero p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.25rem;
    max-width: 600px;
    margin-bottom: var(--spacing-md);
}

/* ===================================
   Cards & Practice Areas
   =================================== */
.practice-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-md);
    margin-top: var(--spacing-lg);
}

.practice-card {
    background: var(--white);
    padding: var(--spacing-md);
    border-radius: 8px;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
    border-top: 4px solid var(--primary-blue);
}

.practice-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.practice-icon {
    width: 60px;
    height: 60px;
    margin-bottom: var(--spacing-sm);
    color: var(--primary-blue);
}

.practice-card h3 {
    color: var(--primary-blue-dark);
    margin-bottom: var(--spacing-sm);
}

/* ===================================
   Feature Boxes
   =================================== */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-md);
    margin-top: var(--spacing-lg);
}

.feature-box {
    text-align: center;
    padding: var(--spacing-md);
}

.feature-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto var(--spacing-sm);
    background: var(--primary-blue-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 2rem;
}

.feature-box h4 {
    font-size: 1.25rem;
    margin-bottom: var(--spacing-xs);
}

/* ===================================
   Testimonials
   =================================== */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: var(--spacing-md);
    margin-top: var(--spacing-lg);
}

/* 
   TO ADD NEW TESTIMONIALS:
   Copy the testimonial-card structure below and paste it in the Testimonials component.
   Each testimonial should have: quote, author name, and author title/company.
   Example:
   <div className="testimonial-card">
       <div className="quote-mark">"</div>
       <p className="testimonial-text">Your testimonial text here...</p>
       <div className="testimonial-author">
           <strong>Client Name</strong>
           <span>Company or Title</span>
       </div>
   </div>
*/

.testimonial-card {
    background: var(--white);
    padding: var(--spacing-md);
    border-radius: 8px;
    box-shadow: var(--shadow-md);
    position: relative;
}

.quote-mark {
    font-size: 4rem;
    color: var(--primary-blue-light);
    opacity: 0.3;
    font-family: Georgia, serif;
    line-height: 1;
    margin-bottom: -1rem;
}

.testimonial-text {
    font-style: italic;
    margin-bottom: var(--spacing-sm);
    color: var(--neutral-medium);
}

.testimonial-author {
    display: flex;
    flex-direction: column;
    margin-top: var(--spacing-sm);
    padding-top: var(--spacing-sm);
    border-top: 2px solid var(--neutral-lighter);
}

.testimonial-author strong {
    color: var(--neutral-dark);
    font-weight: 600;
}

.testimonial-author span {
    color: var(--neutral-light);
    font-size: 0.9rem;
}

/* ===================================
   Contact Form
   =================================== */
.contact-form {
    max-width: 600px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: var(--spacing-sm);
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--neutral-dark);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid var(--neutral-lighter);
    border-radius: 4px;
    font-family: var(--font-sans);
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

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

.form-group textarea {
    min-height: 150px;
    resize: vertical;
}

.form-error {
    color: #e53e3e;
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

.form-success {
    background: var(--success);
    color: var(--white);
    padding: var(--spacing-sm);
    border-radius: 4px;
    margin-bottom: var(--spacing-sm);
    text-align: center;
}

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

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-lg);
}

.footer-column h4 {
    color: var(--white);
    font-size: 1.25rem;
    margin-bottom: var(--spacing-sm);
}

.footer-column ul {
    list-style: none;
}

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

.footer-column a {
    color: rgba(255, 255, 255, 0.8);
    transition: color 0.3s ease;
}

.footer-column a:hover {
    color: var(--white);
}

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

.disclaimer {
    background: var(--neutral-lighter);
    padding: var(--spacing-md) 0;
    font-size: 0.875rem;
    color: var(--neutral-medium);
}

/* ===================================
   Video Container
   =================================== */
.video-container {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: var(--shadow-lg);
}

.video-container iframe,
.video-container video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* ===================================
   Scroll To Top Button
   =================================== */
.scroll-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    background: var(--primary-blue);
    color: var(--white);
    border: none;
    border-radius: 50%;
    font-size: 1.5rem;
    font-weight: bold;
    cursor: pointer;
    box-shadow: var(--shadow-lg);
    transition: all 0.3s ease;
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.scroll-to-top:hover {
    background: var(--primary-blue-dark);
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
}

.scroll-to-top:active {
    transform: translateY(-2px);
}



/* ===================================
   Responsive Design
   =================================== */
@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .nav {
        display: none;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .mobile-menu {
        display: flex;
    }
    
    .hero {
        min-height: 500px;
        margin-top: 70px;
        background-image: 
            linear-gradient(135deg, rgba(44, 95, 125, 0.85) 0%, rgba(26, 58, 77, 0.85) 100%),
            url('../images/hero-bg.jpg');
        background-size: cover;
        background-position: center;
    }
    
    /* Add top margin to hero content on mobile */
    .hero-content {
        margin-top: 2rem;
    }
    
    .practice-grid,
    .features-grid,
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
    }
    
    /* About section responsive */
    #about > .container > div {
        grid-template-columns: 1fr !important;
    }
    
    /* Contact section responsive - fix the selector */
    #contact .container > div {
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
    }
    
    /* Scroll to top button on mobile */
    .scroll-to-top {
        width: 45px;
        height: 45px;
        bottom: 1.5rem;
        right: 1.5rem;
        font-size: 1.25rem;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .btn {
        padding: 0.75rem 1.5rem;
        font-size: 0.9rem;
    }
}
