/* 
* Gardner Injury Law - Styles
* A clean, professional design for a personal injury attorney website
*/

/* --- Base Styles --- */
:root {
    --primary-color: #1a4b84;
    --secondary-color: #c0934a;
    --accent-color: #e7edf3;
    --text-color: #333333;
    --light-text: #ffffff;
    --dark-text: #222222;
    --body-font: 'Open Sans', Arial, sans-serif;
    --heading-font: 'Merriweather', Georgia, serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--body-font);
    color: var(--text-color);
    line-height: 1.6;
    font-size: 16px;
    background-color: #fafafa;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

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

p {
    margin-bottom: 1rem;
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: color 0.3s ease;
}

a:hover {
    color: var(--secondary-color);
}

.section-title {
    text-align: center;
    margin-bottom: 2.5rem;
    font-size: 2.2rem;
    position: relative;
    padding-bottom: 1rem;
}

.section-title:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: var(--secondary-color);
}

/* --- Buttons --- */
.btn-primary {
    display: inline-block;
    background-color: var(--primary-color);
    color: var(--light-text);
    padding: 12px 24px;
    border-radius: 4px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid var(--primary-color);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

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

.btn-contact {
    background-color: var(--secondary-color);
    color: var(--light-text);
    padding: 8px 16px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.btn-contact:hover {
    background-color: var(--primary-color);
    color: var(--light-text);
    transform: translateY(-3px);
    box-shadow: 0 3px 5px rgba(0, 0, 0, 0.2);
}

/* --- Header --- */
header {
    background-color: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 15px 0;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

.header-logo {
    max-height: 60px;
    width: auto;
    display: block;
}

.logo-container h1 {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 0;
}

.tagline {
    font-size: 0.9rem;
    color: var(--secondary-color);
    margin-bottom: 0;
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-left: 20px;
}

nav ul li a {
    font-weight: 600;
    color: var(--text-color);
}

nav ul li a:hover {
    color: var(--primary-color);
}

/* --- Hero Section --- */
.hero {
    position: relative;
    color: var(--light-text);
    padding: 120px 0;
    text-align: center;
    overflow: hidden;
}

.video-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.video-background::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5); /* Reduced overlay darkness for a brighter video */
    z-index: 1;
}

#hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translateX(-50%) translateY(-50%);
    z-index: 0;
    object-fit: cover;
}

.video-fallback {
    /* Fallback to the old background image if video doesn't load */
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('../images/courthouse.jpg');
    background-size: cover;
    background-position: center;
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 2; /* Make sure content appears above the video overlay */
    max-width: 800px;
    margin: 0 auto;
}

.hero h2 {
    font-size: 2.8rem;
    margin-bottom: 1rem;
    color: var(--light-text);
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.8);
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.8);
}

/* --- Practice Areas --- */
.practice-areas {
    padding: 80px 0;
    background-color: white;
}

.practice-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.practice-card {
    background-color: var(--accent-color);
    border-radius: 8px;
    padding: 30px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.practice-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.practice-card i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.practice-card h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

/* --- About Section --- */
.about {
    padding: 80px 0;
    background-color: var(--accent-color);
}

.about-content {
    max-width: 1000px;
    margin: 0 auto;
}

.attorney-profile {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 30px;
    margin-top: 20px;
    text-align: left;
}

.attorney-photo {
    text-align: center;
}

.profile-image {
    width: 100%;
    max-width: 280px;
    border-radius: 50%;
    border: 5px solid white;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.attorney-bio p {
    margin-bottom: 1.2rem;
    line-height: 1.7;
}

/* --- Verdicts Section --- */
.verdicts {
    padding: 80px 0;
    background-color: white;
}

.verdicts-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.verdict-card {
    background-color: var(--accent-color);
    border-radius: 8px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.verdict-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background-color: var(--primary-color);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

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

.verdict-card:hover::before {
    transform: scaleX(1);
}

.verdict-card h3 {
    color: var(--primary-color);
    font-size: 1.3rem;
    margin-bottom: 0.8rem;
    position: relative;
    padding-bottom: 10px;
}

.verdict-card h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 2px;
    background-color: var(--secondary-color);
}

.verdict-description {
    font-size: 1rem;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.verdict-amount {
    font-size: 2rem;
    font-weight: bold;
    color: var(--secondary-color);
    margin-top: auto;
    transition: color 0.3s ease, transform 0.3s ease;
}

.verdict-card:hover .verdict-amount {
    transform: scale(1.1);
}

.verdict-disclaimer {
    text-align: center;
    font-size: 0.9rem;
    color: #666;
    margin-top: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    font-style: italic;
    padding: 15px;
    border-top: 1px solid #eee;
}

/* Remove old testimonial styles that are no longer needed */
.testimonial-slider {
    max-width: 800px;
    margin: 0 auto;
}

.testimonial {
    background-color: var(--accent-color);
    border-radius: 8px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.testimonial p {
    font-style: italic;
    font-size: 1.1rem;
}

.client-name {
    font-weight: bold;
    color: var(--primary-color);
    margin-top: 1rem;
}

/* --- Reviews Section --- */
.reviews {
    padding: 80px 0;
    background-color: white;
}

/* Remove old review styles as they conflict with our custom implementation */
/* These older review styles will be replaced by our Google Reviews Widget styles */

/* --- Affiliations Section --- */
.affiliations {
    padding: 60px 0;
    background-color: var(--accent-color);
}

.affiliations-container {
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    flex-wrap: nowrap;
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.affiliation-badge {
    text-align: center;
    transition: transform 0.3s ease;
    padding: 15px;
}

.affiliation-badge:hover {
    transform: translateY(-5px);
}

.badge-img {
    max-width: 160px;
    height: auto;
    filter: grayscale(0%);
    transition: filter 0.3s ease, transform 0.3s ease;
}

/* Remove styles for text that's no longer present */
/* .affiliation-badge p {
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 2px;
}

.badge-subtitle {
    font-size: 0.85rem;
    font-weight: normal;
    color: var(--text-color);
    font-style: italic;
} */

/* Responsive adjustments for affiliations */
@media (max-width: 992px) {
    .affiliations-container {
        flex-wrap: wrap;
        justify-content: center;
        gap: 40px;
    }
    
    .badge-img {
        max-width: 150px;
    }
}

@media (max-width: 768px) {
    .affiliations-container {
        gap: 30px;
    }
    
    .badge-img {
        max-width: 140px;
    }
}

@media (max-width: 576px) {
    .badge-img {
        max-width: 120px;
    }
    
    .affiliation-badge {
        padding: 10px;
    }
}

@media (max-width: 480px) {
    .affiliations-container {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 20px;
    }
    
    .badge-img {
        max-width: 100px;
    }
}

/* --- Contact --- */
.contact {
    padding: 80px 0;
    background-color: var(--accent-color);
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 50px;
}

.contact-info i {
    color: var(--primary-color);
    margin-right: 10px;
}

.contact-info p {
    margin-bottom: 1rem;
}

.office-hours {
    margin-top: 2rem;
}

.contact-form {
    background-color: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.form-group {
    margin-bottom: 20px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: var(--body-font);
}

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

.contact-form h3 {
    margin-bottom: 20px;
    color: var(--primary-color);
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    font-size: 0.9rem;
}

/* Honeypot field: moved off-screen so humans never see or fill it */
.hp-field {
    position: absolute;
    left: -9999px;
    top: -9999px;
}

.form-disclaimer {
    margin-top: 15px;
    color: #777;
    line-height: 1.4;
}

/* --- Footer --- */
footer {
    background-color: var(--primary-color);
    color: var(--light-text);
    padding: 50px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.footer-logo h3 {
    color: var(--light-text);
    margin-bottom: 0.5rem;
}

.footer-links h4 {
    color: var(--light-text);
    margin-bottom: 1rem;
}

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

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

.footer-links ul li a {
    color: var(--light-text);
    opacity: 0.8;
}

.footer-links ul li a:hover {
    opacity: 1;
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    font-size: 0.9rem;
}

.footer-bottom a {
    color: var(--light-text);
}

/* --- Responsive Styles --- */
@media (max-width: 992px) {
    .verdicts-container {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .affiliations-container {
        flex-wrap: wrap;
        justify-content: center;
        gap: 40px;
    }
    
    .badge-img {
        max-width: 150px;
    }
}

@media (max-width: 768px) {
    header .container {
        flex-direction: column;
        text-align: center;
    }
    
    .logo-container {
        justify-content: center;
        margin-bottom: 10px;
    }
    
    .header-logo {
        max-height: 50px;
    }
    
    nav ul {
        margin-top: 1rem;
        justify-content: center;
    }
    
    .hero h2 {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .verdicts-container {
        grid-template-columns: 1fr;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .attorney-profile {
        grid-template-columns: 1fr;
    }
    
    .attorney-photo {
        margin-bottom: 20px;
    }
    
    .profile-image {
        max-width: 200px;
    }
    
    .affiliations-container {
        gap: 30px;
    }
    
    .badge-img {
        max-width: 140px;
    }
    
    .reviews-container {
        grid-template-columns: 1fr;
    }
    
    .google-reviews-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .google-badge {
        margin-bottom: 1rem;
    }
    
    .review-cta {
        flex-direction: column;
    }
}

@media (max-width: 576px) {
    .header-logo {
        max-height: 45px;
    }
    
    nav ul {
        flex-direction: column;
        align-items: center;
    }
    
    nav ul li {
        margin: 5px 0;
    }
    
    .practice-grid {
        grid-template-columns: 1fr;
    }
    
    .hero {
        padding: 100px 0 80px;
    }
    
    .hero-content {
        padding: 20px;
    }
    
    .hero h2 {
        font-size: 1.8rem;
    }
    
    .badge-img {
        max-width: 120px;
    }
    
    .affiliation-badge {
        padding: 10px;
    }
}

@media (max-width: 480px) {
    .affiliations-container {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 20px;
    }
    
    .badge-img {
        max-width: 100px;
    }
}

/* --- Google Reviews Widget Styles --- */
.google-reviews-widget {
    background-color: #f8f9fa;
    padding: 4rem 0;
}

.google-widget-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
}

.widget-description {
    text-align: center;
    margin-bottom: 2rem;
}

.widget-description p {
    font-size: 1.1rem;
    color: #555;
}

#google-reviews-widget {
    width: 100%;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.reviews-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    min-height: 300px; /* Ensure container has height even when empty */
}

/* Loading state styles */
.loading-reviews {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    grid-column: 1 / -1;
    padding: 2rem;
    color: #777;
    font-size: 0.9rem;
}

.loading-reviews i {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    animation: spin 1.5s linear infinite;
}

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

.review-card {
    background-color: white;
    border: 1px solid #eaeaea;
    border-radius: 6px;
    padding: 1.25rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.review-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
}

.reviewer-info {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.reviewer-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-right: 12px;
    object-fit: cover;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--light-text);
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
}

.reviewer-details {
    flex-grow: 1;
}

.reviewer-name {
    font-weight: 600;
    color: #333;
    margin-bottom: 2px;
}

.review-date {
    font-size: 0.8rem;
    color: #777;
}

.review-rating {
    margin-bottom: 0.75rem;
}

.review-text {
    color: #555;
    line-height: 1.4;
    font-size: 0.95rem;
}

/* Pagination styles */
.reviews-pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1rem;
    width: 100%;
}

.pagination-btn {
    border: 1px solid #ddd;
    background-color: white;
    border-radius: 4px;
    padding: 0.5rem 0.75rem;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 2.5rem;
    text-align: center;
}

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

.pagination-btn:hover:not(.active) {
    background-color: #f0f0f0;
}

.pagination-btn.next-page {
    font-weight: bold;
}

.review-cta {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    margin-top: 1.5rem;
}

/* Fix for filters */
.filter-five-star .review-card:not(:has(.review-rating i.fas.fa-star:nth-child(5))) {
    display: none;
} 