/* Main Stylesheet for The Law Offices of G. Lynn Thorpe
   A bright, professional theme for a law firm website
*/

/* Base Styles and Variables */
:root {
    --primary: #1a365d;      /* Navy Blue */
    --secondary: #e6b012;    /* Gold/Amber */
    --accent: #2c7d8c;       /* Teal */
    --background: #f9f7f2;   /* Light Cream */
    --text: #333333;         /* Dark Charcoal */
    --light: #ffffff;        /* White */
    --gray: #f4f4f4;         /* Light Gray */
    --dark-gray: #666666;    /* Dark Gray */
    --shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Open Sans', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text);
    background-color: var(--background);
    padding-top: 90px; /* To accommodate the fixed header and prevent overlap */
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 1rem;
}

p {
    margin-bottom: 1.5rem;
}

a {
    color: var(--accent);
    text-decoration: none;
    transition: var(--transition);
}

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

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

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.underline {
    height: 3px;
    width: 80px;
    background-color: var(--secondary);
    margin: 0 auto;
}

.bg-light {
    background-color: var(--gray);
}

/* Header and Navigation */
header {
    background-color: var(--light);
    box-shadow: var(--shadow);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: var(--transition);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

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

.logo h1 span {
    color: var(--secondary);
}

.nav-menu {
    display: flex;
    list-style: none;
}

.nav-menu li {
    margin-left: 2rem;
}

.nav-menu a {
    color: var(--primary);
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    padding: 0.5rem 0;
    position: relative;
}

.nav-menu a:after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--secondary);
    transition: var(--transition);
}

.nav-menu a:hover:after,
.nav-menu a.active:after {
    width: 100%;
}

.cta-button {
    background-color: var(--secondary);
    color: var(--light) !important;
    padding: 0.7rem 1.5rem !important;
    border-radius: 4px;
    font-weight: 600;
    transition: var(--transition);
    display: inline-block;
}

.cta-button:hover {
    background-color: var(--primary);
    transform: translateY(-3px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.menu-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--primary);
}

/* Hero Section */
#hero {
    background: url('images/hero.jpg');
    background-size: cover;
    background-position: center;
    height: 100vh; /* Re-added for original size */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--light);
}

.hero-content {
    max-width: 800px;
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    color: var(--light) !important;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    display: inline-block;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: var(--light) !important; /* Ensure text is white */
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.8);
    display: inline-block;
}

/* About Section */
#about {
    padding: 6rem 0;
}

.about-content {
    display: flex;
    align-items: center;
    gap: 4rem;
}

.about-image {
    flex: 1;
}

.about-image img {
    width: 100%;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.about-text {
    flex: 1;
}

.about-text h3 {
    color: var(--primary);
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
}

blockquote {
    border-left: 3px solid var(--secondary);
    padding-left: 1.5rem;
    margin: 2rem 0;
    font-style: italic;
    color: var(--primary);
}

blockquote cite {
    display: block;
    margin-top: 1rem;
    font-style: normal;
    font-weight: 600;
}

/* Practice Areas Section */
#practices {
    padding: 6rem 0;
    background-color: var(--gray);
}

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

.practice-card {
    background-color: var(--light);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    text-align: center;
}

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

.practice-icon {
    font-size: 2.5rem;
    color: var(--secondary);
    margin-bottom: 1.5rem;
}

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

.practice-card p {
    color: var(--dark-gray);
}

/* Approach Section */
#approach {
    padding: 6rem 0;
}

.approach-content {
    display: flex;
    align-items: center;
    gap: 4rem;
}

.approach-text {
    flex: 1;
}

.approach-image {
    flex: 1;
}

.approach-image img {
    width: 100%;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.approach-features {
    margin-top: 2rem;
}

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

.feature i {
    color: var(--secondary);
    margin-right: 1rem;
    font-size: 1.2rem;
}

/* Testimonials Section */
#testimonials {
    padding: 6rem 0;
    background: linear-gradient(rgba(26, 54, 93, 0.9), rgba(26, 54, 93, 0.9)), url('images/legal.jpg');
    background-size: cover;
    background-position: center;
    color: var(--light);
}

#testimonials .section-header h2 {
    color: var(--light);
}

.testimonials-slider {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    gap: 2rem;
    padding: 1rem 0;
}

.testimonial {
    flex: 0 0 100%;
    scroll-snap-align: start;
    padding: 0 1rem;
}

.testimonial-content {
    background-color: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 2rem;
    border-radius: 8px;
    position: relative;
}

.testimonial-content p {
    font-style: italic;
    margin-bottom: 1.5rem;
}

.testimonial-author h4 {
    color: var(--secondary);
    margin-bottom: 0.3rem;
}

.testimonial-author p {
    margin: 0;
    font-size: 0.9rem;
}

/* Contact Section */
#contact {
    padding: 6rem 0;
}

.contact-content {
    display: flex;
    gap: 4rem;
}

.contact-info, .contact-form {
    flex: 1;
}

.contact-item {
    display: flex;
    margin-bottom: 1.5rem;
}

.contact-item i {
    color: var(--secondary);
    margin-right: 1rem;
    font-size: 1.2rem;
    margin-top: 5px;
}

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

.office-hours h4 {
    margin-bottom: 0.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: 'Open Sans', sans-serif;
}

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

.submit-button {
    background-color: var(--primary);
    color: var(--light);
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
}

.submit-button:hover {
    background-color: var(--secondary);
}

/* Footer */
footer {
    background-color: var(--primary);
    color: var(--light);
    padding: 4rem 0 2rem;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin-bottom: 3rem;
}

.footer-logo, .footer-links, .footer-practice, .footer-social {
    margin-bottom: 2rem;
}

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

.footer-logo h3 span {
    color: var(--secondary);
}

.footer-logo p {
    color: #ccc;
}

.footer-links h4, .footer-practice h4, .footer-social h4 {
    color: var(--light);
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
}

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

.footer-links li, .footer-practice li {
    margin-bottom: 0.8rem;
}

.footer-links a, .footer-practice a {
    color: #ccc;
    transition: var(--transition);
}

.footer-links a:hover, .footer-practice a:hover {
    color: var(--secondary);
}

.social-icons {
    display: flex;
    gap: 1rem;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: var(--light);
    transition: var(--transition);
}

.social-icon:hover {
    background-color: var(--secondary);
    color: var(--light);
}

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

.footer-bottom p {
    margin-bottom: 1rem;
}

.footer-bottom a {
    color: #ccc;
    margin: 0 0.5rem;
}

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

/* Responsive Styles */
@media (max-width: 992px) {
    .about-content, .approach-content, .contact-content {
        flex-direction: column;
        gap: 2rem;
    }
    
    .hero-content h1 {
        font-size: 2.8rem;
    }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }
    
    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        flex-direction: column;
        background-color: var(--light);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        padding: 2rem 0;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-menu li {
        margin: 1.5rem 0;
    }
    
    .hero-content h1 {
        font-size: 2.2rem;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
    
    .footer-content {
        flex-direction: column;
    }
}

@media (max-width: 576px) {
    .hero-content h1 {
        font-size: 1.8rem;
    }
    
    .section-header h2 {
        font-size: 1.8rem;
    }
    
    .practices-grid {
        grid-template-columns: 1fr;
    }
}
