/*
Theme Name: Bridgeport Law Group
Description: A custom WordPress theme based on the Bridgeport Law Group website design
Version: 1.0
Author: Custom Theme
*/

/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Styles */
.site-header {
    background-color: #2c3e50;
    color: white;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-top {
    background-color: rgba(0, 0, 0, 0.2);
    padding: 10px 0;
    font-size: 14px;
}

.contact-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.contact-info a {
    color: white;
    text-decoration: none;
    margin-right: 20px;
    display: inline-flex;
    align-items: center;
}

.contact-info a:before {
    content: '';
    display: inline-block;
    width: 16px;
    height: 16px;
    margin-right: 8px;
    background-size: contain;
    background-repeat: no-repeat;
}

.contact-info a.phone:before {
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" fill="white" viewBox="0 0 24 24"><path d="M6.62 10.79c1.44 2.83 3.76 5.14 6.59 6.59l2.2-2.2c.27-.27.67-.36 1.02-.24 1.12.37 2.33.57 3.57.57.55 0 1 .45 1 1V20c0 .55-.45 1-1 1-9.39 0-17-7.61-17-17 0-.55.45-1 1-1h3.5c.55 0 1 .45 1 1 0 1.25.2 2.45.57 3.57.11.35.03.74-.25 1.02l-2.2 2.2z"/></svg>');
}

.contact-info a.email:before {
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" fill="white" viewBox="0 0 24 24"><path d="M20 4H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.89 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 4l-8 5-8-5V6l8 5 8-5v2z"/></svg>');
}

.contact-info .address:before {
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" fill="white" viewBox="0 0 24 24"><path d="M12 2C8.13 2 5 5.13 5 9c0 5.25 7 13 7 13s7-7.75 7-13c0-3.87-3.13-7-7-7zm0 9.5c-1.38 0-2.5-1.12-2.5-2.5s1.12-2.5 2.5-2.5 2.5 1.12 2.5 2.5-1.12 2.5-2.5 2.5z"/></svg>');
}

.contact-info a:hover {
    text-decoration: underline;
}

.header-main {
    padding: 15px 0;
}

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

.site-branding h1 {
    font-size: 28px;
    font-weight: bold;
    color: #d4af37;
}

.site-branding a {
    color: inherit;
    text-decoration: none;
}

.main-navigation {
    display: flex;
    align-items: center;
}

.main-navigation ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

.main-navigation li {
    margin: 0 15px;
}

.main-navigation a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.main-navigation a:hover {
    color: #d4af37;
}

.cta-button {
    background-color: #d4af37;
    color: #2c3e50 !important;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none !important;
    font-weight: bold;
    margin-left: 20px;
    transition: background-color 0.3s ease;
}

.cta-button:hover {
    background-color: #b8941f;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(rgba(44, 62, 80, 0.8), rgba(44, 62, 80, 0.8)), url('/wp-content/uploads/2025/06/hero-background-scaled.jpeg');
    background-size: cover;
    background-position: center;
    color: white;
    padding: 100px 0;
    text-align: center;
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 300;
    margin-bottom: 20px;
    font-family: Georgia, serif;
}

.hero-subtitle {
    color: #d4af37;
    font-weight: 400;
}

.hero-description {
    font-size: 1.2rem;
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Button Styles */
.btn {
    padding: 15px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    display: inline-block;
    border: 2px solid transparent;
}

.btn-primary {
    background-color: #d4af37;
    color: #2c3e50;
}

.btn-primary:hover {
    background-color: #b8941f;
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: transparent;
    color: white;
    border: 2px solid #d4af37;
}

.btn-secondary:hover {
    background-color: #d4af37;
    color: #2c3e50;
}

.btn-outline {
    background-color: transparent;
    color: #2c3e50;
    border: 2px solid #2c3e50;
}

.btn-outline:hover {
    background-color: #2c3e50;
    color: white;
}

/* Section Styles */
section {
    padding: 80px 0;
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 20px;
    color: #2c3e50;
    font-family: Georgia, serif;
}

.section-description {
    text-align: center;
    font-size: 1.1rem;
    margin-bottom: 50px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    color: #666;
}

/* Practice Areas */
.practice-areas-section {
    background-color: #f8f9fa;
}

.practice-areas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.practice-area-card {
    background: white;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.practice-area-card:hover {
    transform: translateY(-5px);
}

.practice-area-card h3 {
    color: #2c3e50;
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.practice-area-card p {
    color: #666;
    margin-bottom: 20px;
}

.learn-more {
    color: #d4af37;
    text-decoration: none;
    font-weight: bold;
}

.learn-more:hover {
    text-decoration: underline;
}

/* About Section */
.about-section {
    background-color: white;
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.about-content p {
    font-size: 1.1rem;
    margin-bottom: 20px;
    color: #666;
}

/* Team Section */
.team-section {
    background-color: #f8f9fa;
}

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

.team-member {
    background: white;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.team-member h3 {
    color: #2c3e50;
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.team-member .title {
    color: #d4af37;
    font-weight: bold;
    margin-bottom: 15px;
}

.team-member p {
    color: #666;
}

.team-cta {
    text-align: center;
}

/* Testimonials */
.testimonials-section {
    background-color: white;
}

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

.testimonial {
    background: #f8f9fa;
    padding: 30px;
    border-radius: 10px;
    border-left: 4px solid #d4af37;
}

.testimonial p {
    font-style: italic;
    margin-bottom: 20px;
    color: #555;
}

.testimonial-author strong {
    color: #2c3e50;
}

.testimonial-author span {
    color: #666;
    font-size: 0.9rem;
}

/* Location Section */
.location-section {
    background-color: #f8f9fa;
}

.location-content {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.location-info h3 {
    color: #2c3e50;
    font-size: 1.5rem;
    margin-bottom: 20px;
}

.address p {
    margin-bottom: 5px;
    color: #666;
}

/* Final CTA */
.final-cta-section {
    background: linear-gradient(rgba(44, 62, 80, 0.9), rgba(44, 62, 80, 0.9)), #2c3e50;
    color: white;
    text-align: center;
}

.final-cta-section .section-title,
.final-cta-section .section-description {
    color: white;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Footer */
.site-footer {
    background-color: #2c3e50;
    color: white;
    padding: 50px 0 20px;
}

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

.footer-column h3 {
    color: #d4af37;
    margin-bottom: 20px;
}

.footer-column p,
.footer-column li {
    color: #ccc;
    margin-bottom: 10px;
}

.footer-column a {
    color: #ccc;
    text-decoration: none;
}

.footer-column a:hover {
    color: #d4af37;
}

.practice-areas-list {
    list-style: none;
}

.practice-areas-list li {
    margin-bottom: 8px;
}

.footer-bottom {
    border-top: 1px solid #34495e;
    padding-top: 20px;
}

.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.footer-nav {
    display: flex;
    gap: 20px;
}

.footer-nav a {
    color: #ccc;
    text-decoration: none;
    font-size: 0.9rem;
}

.footer-nav a:hover {
    color: #d4af37;
}

/* Responsive Design */
@media (max-width: 768px) {
    .contact-info {
        flex-direction: column;
        text-align: center;
    }
    
    .contact-info a {
        margin: 5px 0;
    }
    
    .header-main .container {
        flex-direction: column;
        text-align: center;
    }
    
    .main-navigation {
        margin-top: 20px;
    }
    
    .main-navigation ul {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .practice-areas-grid,
    .team-grid,
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
    
    .hero-buttons,
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .footer-bottom-content {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-nav {
        margin-top: 10px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    section {
        padding: 50px 0;
    }
    
    .hero-section {
        padding: 60px 0;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .practice-area-card,
    .team-member,
    .testimonial {
        padding: 25px;
    }
}


/* Animation styles for JavaScript interactions */
.animate-in {
    animation: fadeInUp 0.6s ease-out forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Header scroll effect */
.site-header.scrolled {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.3s ease;
}

/* Mobile menu styles */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
}

.mobile-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: #2c3e50;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.mobile-menu.active {
    display: block;
}

.mobile-menu ul {
    flex-direction: column;
    padding: 20px;
}

.mobile-menu li {
    margin: 10px 0;
}

/* Form error styles */
.error {
    border-color: #e74c3c !important;
    box-shadow: 0 0 5px rgba(231, 76, 60, 0.3);
}

/* Enhanced responsive design for mobile menu */
@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: block;
    }
    
    .main-navigation ul {
        display: none;
    }
    
    .main-navigation.toggled ul {
        display: flex;
    }
}

/* Smooth transitions for all interactive elements */
a, button, .btn {
    transition: all 0.3s ease;
}

/* Enhanced hover effects */
.practice-area-card:hover,
.team-member:hover,
.testimonial:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

/* Loading animation for buttons */
.btn.loading {
    position: relative;
    color: transparent;
}

.btn.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid transparent;
    border-top: 2px solid currentColor;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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


/* Team member photos */
.team-photo {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 20px;
    border: 4px solid #d4af37;
}

.team-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Address styling with icon */
.contact-info .address {
    color: white;
    display: inline-flex;
    align-items: center;
}

.contact-info .address:before {
    content: '';
    display: inline-block;
    width: 16px;
    height: 16px;
    margin-right: 8px;
    background-size: contain;
    background-repeat: no-repeat;
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" fill="white" viewBox="0 0 24 24"><path d="M12 2C8.13 2 5 5.13 5 9c0 5.25 7 13 7 13s7-7.75 7-13c0-3.87-3.13-7-7-7zm0 9.5c-1.38 0-2.5-1.12-2.5-2.5s1.12-2.5 2.5-2.5 2.5 1.12 2.5 2.5-1.12 2.5-2.5 2.5z"/></svg>');
}

/* Ensure proper site title styling */
.site-branding h1.site-title {
    font-size: 28px;
    font-weight: bold;
    color: #d4af37;
    margin: 0;
}

.site-branding h1.site-title a {
    color: inherit;
    text-decoration: none;
}

/* Fix for WordPress default styling conflicts */
.site-header .site-title {
    margin: 0;
    padding: 0;
}

/* Ensure hero section displays properly */
body.home .hero-section,
body.front-page .hero-section {
    display: flex;
}

/* Better responsive handling for contact info */
@media (max-width: 768px) {
    .contact-info {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
    
    .contact-info a,
    .contact-info .address {
        margin: 5px 0;
        justify-content: center;
    }
}


/* Blog Styles */
.blog-main {
    padding: 80px 0;
    background-color: #f8f9fa;
}

.page-header {
    text-align: center;
    margin-bottom: 60px;
}

.page-title {
    font-size: 2.5rem;
    color: #2c3e50;
    margin-bottom: 20px;
    font-family: Georgia, serif;
}

.page-description {
    font-size: 1.1rem;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
}

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

.blog-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.blog-card-image {
    height: 200px;
    overflow: hidden;
}

.blog-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.blog-card:hover .blog-card-image img {
    transform: scale(1.05);
}

.blog-card-content {
    padding: 30px;
}

.entry-title {
    margin-bottom: 15px;
}

.entry-title a {
    color: #2c3e50;
    text-decoration: none;
    font-size: 1.3rem;
    font-weight: 600;
}

.entry-title a:hover {
    color: #d4af37;
}

.entry-meta {
    margin-bottom: 15px;
    font-size: 0.9rem;
    color: #666;
}

.entry-meta span {
    margin-right: 15px;
}

.entry-summary {
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
}

.read-more {
    color: #d4af37;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.read-more:hover {
    color: #b8941f;
    text-decoration: underline;
}

.pagination {
    text-align: center;
    margin-top: 40px;
}

.pagination .nav-links {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.pagination a,
.pagination .current {
    padding: 10px 15px;
    border: 1px solid #ddd;
    text-decoration: none;
    color: #2c3e50;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.pagination a:hover,
.pagination .current {
    background-color: #d4af37;
    color: white;
    border-color: #d4af37;
}

.no-posts {
    text-align: center;
    padding: 60px 20px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.no-posts h2 {
    color: #2c3e50;
    margin-bottom: 15px;
}

.no-posts p {
    color: #666;
}

/* Single post styles */
.single-post .entry-header {
    text-align: center;
    margin-bottom: 40px;
}

.single-post .entry-title {
    font-size: 2.5rem;
    color: #2c3e50;
    margin-bottom: 20px;
}

.single-post .entry-meta {
    font-size: 1rem;
    color: #666;
    margin-bottom: 30px;
}

.single-post .post-thumbnail {
    margin-bottom: 40px;
    text-align: center;
}

.single-post .post-thumbnail img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.single-post .entry-content {
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.8;
    font-size: 1.1rem;
}

.single-post .entry-content h2,
.single-post .entry-content h3 {
    color: #2c3e50;
    margin-top: 40px;
    margin-bottom: 20px;
}

.single-post .entry-content p {
    margin-bottom: 20px;
}

/* Responsive blog styles */
@media (max-width: 768px) {
    .blog-grid {
        grid-template-columns: 1fr;
    }
    
    .blog-card-content {
        padding: 20px;
    }
    
    .page-title {
        font-size: 2rem;
    }
    
    .single-post .entry-title {
        font-size: 2rem;
    }
}

