/* ==========================================================================
   PAGE STYLES - Extends base.css
   ========================================================================== */

body {
    background-color: #ffffff;
    color: #333333;
    line-height: 1.6;
    /*padding-top: 80px;*/
    /* Add padding to prevent content from being hidden behind fixed navbar */
}


/* Main content styling */
main {
    width: 100%;
}

/* Content Wrapper for Desktop Layout */
.content-wrapper {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.main-content {
    width: 100%;
}

/* Desktop Layout - Main content and Sidebar */
@media (min-width: 1024px) {
    .content-wrapper {
        flex-direction: row;
        max-width: 1400px;
        margin: 0 auto;
        gap: 2rem;
        padding: 2rem;
    }

    .main-content {
        flex: 1;
        width: calc(100% - 400px);
    }

    .sidebar {
        flex: 0 0 380px;
        position: sticky;
        top: 100px;
        height: fit-content;
    }
}

/* Booking Form Section */
.booknow {
    background-color: #f8f9fa;
    padding: 2rem;
    text-align: center;
    border-radius: 10px;
}

.booknow-content {
    max-width: 100%;
    margin: 0 auto;
}

.booknow h2 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: #333;
}

.booknow p {
    margin-bottom: 2rem;
    color: #555;
    font-size: 1.1rem;
}

.booknow form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    text-align: left;
}

.booknow label {
    font-weight: bold;
    margin-bottom: 0.3rem;
    color: #333;
    font-size: 0.95rem;
}

.booknow input,
.booknow select,
.booknow textarea {
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
    background-color: #fff;
}

.booknow input:focus,
.booknow select:focus,
.booknow textarea:focus {
    outline: none;
    border-color: #000;
}

.booknow button {
    background-color: #000;
    color: #fff;
    padding: 0.75rem 2rem;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: bold;
    transition: background-color 0.3s ease;
    margin-top: 1rem;
    align-self: center;
}

.booknow button:hover {
    background-color: #333;
}

/* Practice Areas Section */
.practice-areas {
    padding: 2rem;
}

.practice-areas-intro {
    text-align: center;
    margin-bottom: 3rem;
}

.practice-areas-intro h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #333;
}

.practice-areas-intro p {
    font-size: 1.1rem;
    color: #555;
    max-width: 900px;
    margin: 0 auto;
    line-height: 1.8;
}

/* Practice Areas Grid */
.practice-areas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.practice-area-card {
    background-color: #fff;
    border: 1px solid #eee;
    border-radius: 10px;
    padding: 2rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: fit-content;
    align-self: start;
}

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

.practice-area-card h2 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: #333;
}

.practice-area-card h3 {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 1rem;
    font-weight: normal;
    font-style: italic;
}

.practice-area-card p {
    color: #555;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

/* CTA Buttons */
.cta-button {
    display: inline-block;
    background-color: #000;
    color: #fff;
    padding: 0.75rem 1.5rem;
    border-radius: 20px;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: bold;
    transition: background-color 0.3s ease;
    text-align: center;
}

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

/* Let's Talk Section */
.lets-talk {
    background-color: #4a3f35;
    color: #fff;
    padding: 4rem 2rem;
    text-align: center;
    margin: 0 -2rem;
}

@media (min-width: 1024px) {
    .lets-talk {
        margin: 2rem -2rem 0 -2rem;
    }
}

.lets-talk h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.lets-talk p {
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto 2rem auto;
    line-height: 1.8;
}

.lets-talk .cta-button {
    background-color: #fff;
    color: #4a3f35;
}

.lets-talk .cta-button:hover {
    background-color: #f0f0f0;
}


/* Mobile Layout - Keep Booking Form on Top */
@media (max-width: 1023px) {
    .content-wrapper {
        flex-direction: column;
    }

    .sidebar {
        order: -1;
        /* Move sidebar to top on mobile */
        width: 100%;
    }

    .main-content {
        width: 100%;
    }

    .booknow {
        padding: 3rem 2rem;
    }

    .booknow-content {
        max-width: 600px;
    }
}

/* Responsive Design */
@media (max-width: 768px) {

    /* Practice Areas Mobile Adjustments */
    .practice-areas {
        padding: 3rem 1rem;
    }

    .practice-areas-intro h1 {
        font-size: 2rem;
    }

    .practice-areas-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .practice-area-card {
        padding: 1.5rem;
    }

    /* Booking form mobile adjustments */
    .booknow {
        padding: 2rem 1rem;
    }

    .booknow h2 {
        font-size: 1.5rem;
    }

    .booknow p {
        font-size: 1rem;
    }

    /* Let's talk mobile adjustments */
    .lets-talk {
        padding: 3rem 1rem;
    }

    .lets-talk h2 {
        font-size: 1.8rem;
    }

    .lets-talk p {
        font-size: 1rem;
    }

}

@media (max-width: 480px) {

    .practice-areas-intro h1 {
        font-size: 1.8rem;
    }

    .practice-area-card h2 {
        font-size: 1.3rem;
    }

    .practice-area-card h3 {
        font-size: 1rem;
    }
}