/* ===== GLOBAL STYLES ===== */
:root {
    --primary-color: #152b38;       /* Dark blue */
    --secondary-color: #ad8e63;    /* Gold accent */
    --text-color: #333333;         /* Main text */
    --light-text: #ffffff;         /* Light text */
    --background-color: #f8f9fa;   /* Light background */
    --dark-background: #1a1a1a;    /* Dark footer background */
    --light-accent: #f0f2f5;       /* Light accent background */
    --border-color: #e0e0e0;       /* Border color */
    --box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);  /* Subtle shadow */
    --transition: all 0.3s ease;   /* Smooth transitions */
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Raleway', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background-color);
    overflow-x: hidden;
}

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

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

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

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

section {
    padding: 80px 0;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 4px;
    font-weight: 600;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: var(--transition);
}

.primary-btn {
    background-color: var(--secondary-color);
    color: var(--light-text);
    border: 1px solid var(--secondary-color);
}

.secondary-btn {
    background-color: transparent;
    color: var(--light-text);
    border: 1px solid var(--light-text);
}

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

.secondary-btn:hover {
    background-color: var(--light-text);
    color: var(--primary-color);
}

/* Section Headers */
.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 36px;
    position: relative;
    display: inline-block;
}

.separator {
    width: 80px;
    height: 3px;
    background-color: var(--secondary-color);
    margin: 15px auto 25px;
}

.section-header p {
    max-width: 700px;
    margin: 0 auto;
    color: #666;
}

/* Animation Classes */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* ===== HEADER STYLES ===== */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 20px 0;
    transition: var(--transition);
    background-color: transparent;
}

header.sticky {
    background-color: var(--primary-color);
    padding: 15px 0;
    box-shadow: var(--box-shadow);
}

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

.logo h1 {
    color: var(--light-text);
    font-size: 24px;
    margin-bottom: 0;
}

.nav-links {
    display: flex;
}

.nav-links li {
    margin: 0 15px;
}

.nav-links a {
    color: var(--light-text);
    font-weight: 500;
    padding: 5px 0;
    position: relative;
}

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

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

.hamburger {
    display: none;
    cursor: pointer;
}

.hamburger span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--light-text);
    margin: 5px 0;
    transition: var(--transition);
}

/* ===== HERO SECTION ===== */
.hero {
    height: 100vh;
    background-image: url('https://images.unsplash.com/photo-1575912458423-ee3e1af37541?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=870&q=80');
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: center;
    color: var(--light-text);
}

.hero .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(21, 43, 56, 0.8), rgba(21, 43, 56, 0.9));
}

.hero-content {
    max-width: 800px;
    position: relative;
    z-index: 1;
}

.hero-content h1 {
    font-size: 48px;
    margin-bottom: 20px;
    color: var(--light-text);
    line-height: 1.2;
}

.hero-content p {
    font-size: 20px;
    margin-bottom: 30px;
}

.cta-buttons {
    display: flex;
    gap: 15px;
}

/* ===== ABOUT SECTION ===== */
.about {
    background-color: var(--light-accent);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-gap: 50px;
    align-items: center;
}

.about-image {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--box-shadow);
}

.about-image img {
    width: 100%;
    transition: transform 0.7s ease;
}

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

.about-text h3 {
    font-size: 28px;
    margin-bottom: 20px;
}

.about-text p {
    margin-bottom: 20px;
    color: #555;
}

.about-stats {
    display: flex;
    justify-content: space-between;
    margin: 30px 0;
}

.stat {
    text-align: center;
}

.stat .number {
    display: block;
    font-size: 36px;
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 5px;
}

.stat .label {
    font-size: 14px;
    color: #666;
}

/* ===== PRACTICE AREAS ===== */
.practice-areas {
    background-color: #fff;
}

.practice-areas-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-gap: 30px;
}

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

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

.practice-area-card .icon {
    font-size: 40px;
    color: var(--secondary-color);
    margin-bottom: 20px;
}

.practice-area-card h3 {
    font-size: 22px;
    margin-bottom: 15px;
}

.practice-area-card p {
    color: #666;
}

/* ===== ATTORNEYS SECTION ===== */
.attorneys {
    background-color: var(--light-accent);
}

.attorneys-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-gap: 30px;
}

.attorney-card {
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

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

.attorney-image {
    height: 300px;
    overflow: hidden;
}

.attorney-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s ease;
}

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

.attorney-info {
    padding: 25px;
    text-align: center;
}

.attorney-info h3 {
    font-size: 22px;
    margin-bottom: 5px;
}

.attorney-info .position {
    display: block;
    color: var(--secondary-color);
    font-weight: 600;
    margin-bottom: 15px;
}

.attorney-info p {
    color: #666;
    margin-bottom: 20px;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 20px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background-color: var(--light-accent);
    color: var(--primary-color);
    transition: var(--transition);
}

.social-links a:hover {
    background-color: var(--secondary-color);
    color: var(--light-text);
}

/* Attorney Contact Buttons */
.attorney-contact {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 5px;
}

.attorney-address {
    margin-bottom: 15px;
    color: #666;
    font-size: 14px;
    line-height: 1.5;
}

.attorney-address i {
    color: var(--secondary-color);
    margin-right: 5px;
}

.contact-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 15px;
    background-color: var(--primary-color);
    color: var(--light-text);
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    transition: var(--transition);
}

.contact-btn i {
    margin-right: 6px;
}

.contact-btn:hover {
    background-color: var(--secondary-color);
    transform: translateY(-3px);
}

@media (max-width: 576px) {
    .attorney-contact {
        flex-direction: column;
        gap: 8px;
    }
}

/* ===== TESTIMONIALS SECTION ===== */
.testimonials {
    background-color: #fff;
}

.testimonial-slider {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}

.testimonial-slide {
    display: none;
    animation: fadeEffect 1s;
}

.testimonial-slide.active {
    display: block;
}

@keyframes fadeEffect {
    from {opacity: 0.5}
    to {opacity: 1}
}

.testimonial-content {
    background-color: var(--light-accent);
    padding: 40px;
    border-radius: 8px;
    text-align: center;
    box-shadow: var(--box-shadow);
}

.quote {
    font-size: 28px;
    color: var(--secondary-color);
    margin-bottom: 20px;
}

.testimonial-content p {
    font-size: 18px;
    font-style: italic;
    color: #555;
    margin-bottom: 25px;
}

.client-info h4 {
    font-size: 20px;
    margin-bottom: 5px;
}

.client-info span {
    display: block;
    color: #666;
    margin-bottom: 10px;
}

.rating {
    color: #ffd700;
    font-size: 18px;
}

.testimonial-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 30px;
}

.prev-btn, .next-btn {
    background-color: var(--primary-color);
    color: var(--light-text);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    cursor: pointer;
    transition: var(--transition);
}

.prev-btn:hover, .next-btn:hover {
    background-color: var(--secondary-color);
}

.testimonial-dots {
    display: flex;
    justify-content: center;
    margin: 0 20px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #ccc;
    margin: 0 5px;
    cursor: pointer;
    transition: var(--transition);
}

.dot.active {
    background-color: var(--secondary-color);
}

/* ===== CONTACT SECTION ===== */
.contact {
    background-color: var(--light-accent);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-gap: 50px;
}

.contact-info h3, .contact-form h3 {
    font-size: 24px;
    margin-bottom: 25px;
}

.info-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 20px;
}

.info-item i {
    font-size: 20px;
    color: var(--secondary-color);
    margin-right: 15px;
    margin-top: 3px;
}

.office-hours {
    margin-top: 30px;
    margin-bottom: 30px;
}

.office-hours h4 {
    font-size: 18px;
    margin-bottom: 10px;
}

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

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

input, select, textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-family: 'Raleway', sans-serif;
    transition: var(--transition);
}

input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--secondary-color);
}

.checkbox-group {
    display: flex;
    align-items: center;
}

.checkbox-group input {
    width: auto;
    margin-right: 10px;
}

/* ===== THANK YOU MESSAGE ===== */
.thank-you-message {
    text-align: center;
    padding: 40px 20px;
    background-color: var(--light-accent);
    border-radius: 8px;
    box-shadow: var(--box-shadow);
    animation: fadeInUp 0.6s ease-out;
}

.thank-you-content {
    max-width: 500px;
    margin: 0 auto;
}

.success-icon {
    font-size: 64px;
    color: #28a745;
    margin-bottom: 20px;
    animation: bounceIn 0.8s ease-out;
}

.thank-you-content h3 {
    font-size: 32px;
    color: var(--primary-color);
    margin-bottom: 15px;
    font-family: 'Playfair Display', serif;
}

.thank-you-content p {
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 15px;
    color: var(--text-color);
}

.thank-you-content p:last-of-type {
    margin-bottom: 30px;
}

.thank-you-content .btn {
    margin-top: 20px;
}

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

@keyframes bounceIn {
    0% {
        opacity: 0;
        transform: scale(0.3);
    }
    50% {
        opacity: 1;
        transform: scale(1.05);
    }
    70% {
        transform: scale(0.9);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

/* ===== MAP SECTION ===== */
.map {
    padding: 0;
    height: 450px;
}

.map iframe {
    height: 100%;
    width: 100%;
    border: none;
}

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

.footer-content {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-gap: 30px;
    margin-bottom: 50px;
}

.footer-logo h2 {
    color: var(--light-text);
    margin-bottom: 15px;
}

.footer-column h3 {
    color: var(--light-text);
    font-size: 18px;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: #aaa;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--secondary-color);
    padding-left: 5px;
}

.newsletter-form {
    display: flex;
    margin-top: 15px;
}

.newsletter-form input {
    flex: 1;
    border-radius: 4px 0 0 4px;
}

.newsletter-form button {
    background-color: var(--secondary-color);
    color: var(--light-text);
    border: none;
    border-radius: 0 4px 4px 0;
    padding: 0 15px;
    cursor: pointer;
    transition: var(--transition);
}

.newsletter-form button:hover {
    background-color: #c0a07b;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    color: #aaa;
}

.footer-legal {
    display: flex;
}

.footer-legal li {
    margin-left: 20px;
}

.footer-legal a {
    color: #aaa;
    font-size: 14px;
    transition: var(--transition);
}

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

/* ===== BACK TO TOP BUTTON ===== */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: var(--secondary-color);
    color: var(--light-text);
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    z-index: 999;
    transition: var(--transition);
}

.back-to-top.active {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background-color: var(--primary-color);
}

/* ===== RESPONSIVE STYLES ===== */
@media (max-width: 1024px) {
    .practice-areas-grid,
    .attorneys-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    section {
        padding: 60px 0;
    }
    
    .section-header {
        margin-bottom: 40px;
    }
    
    .section-header h2 {
        font-size: 28px;
    }
    
    .hero-content h1 {
        font-size: 36px;
    }
    
    .hero-content p {
        font-size: 18px;
    }
    
    .about-content,
    .contact-content {
        grid-template-columns: 1fr;
        grid-gap: 30px;
    }
    
    .about-stats {
        flex-wrap: wrap;
    }
    
    .stat {
        width: 50%;
        margin-bottom: 20px;
    }
    
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 250px;
        height: 100vh;
        background-color: var(--primary-color);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: var(--transition);
        z-index: 999;
    }
    
    .nav-links.active {
        right: 0;
    }
    
    .nav-links li {
        margin: 15px 0;
    }
    
    .hamburger {
        display: block;
        z-index: 1000;
    }
    
    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 6px);
    }
    
    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }
    
    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -6px);
    }
}

@media (max-width: 576px) {
    .practice-areas-grid,
    .attorneys-grid {
        grid-template-columns: 1fr;
    }
    
    .cta-buttons {
        flex-direction: column;
        gap: 10px;
    }
    
    .btn {
        width: 100%;
        text-align: center;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .footer-legal {
        justify-content: center;
    }
    
    .footer-legal li {
        margin: 0 10px;
    }
    
    .testimonial-content {
        padding: 25px;
    }
}
