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

/* 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;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

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

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

.booknow p {
    margin-bottom: 1.5rem;
    color: #555;
    font-size: 1rem;
    line-height: 1.6;
}

.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;
}

/* Content Section */
.content-section {
    padding: 2rem;
}

.content-header {
    margin-bottom: 3rem;
}

.content-header h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #333;
    line-height: 1.2;
}

.content-header .lead {
    font-size: 1.2rem;
    color: #555;
    line-height: 1.8;
}

/* Services Section */
.services-section {
    margin-bottom: 3rem;
}

.services-section h2 {
    font-size: 2rem;
    margin-bottom: 2rem;
    color: #333;
}

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

.service-item {
    background-color: #f8f9fa;
    border-left: 4px solid #000;
    padding: 1.5rem;
    border-radius: 0 8px 8px 0;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
}

.service-item h3 {
    font-size: 1.2rem;
    margin-bottom: 0.75rem;
    color: #333;
}

.service-item p {
    color: #555;
    line-height: 1.6;
    margin: 0;
}

.content-footer {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #eee;
}

.content-footer p {
    font-size: 1.1rem;
    color: #444;
    line-height: 1.8;
}

/* Contact Section */
.contact-us {
    background-color: #4a3f35;
    padding: 3rem 2rem;
    margin: 2rem -2rem 0;
    text-align: center;
}

.contact-content {
    max-width: 800px;
    margin: 0 auto;
}

.contact-us h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: #ffffff;
}

.contact-us p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    color: #ffffff;
    line-height: 1.6;
}

/* ==========================================================================
   CORPORATE LAW PAGE RESPONSIVE ADJUSTMENTS
   ========================================================================== */

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

    .sidebar {
        order: -1;
        width: 100%;
    }

    .main-content {
        width: 100%;
    }

    .booknow {
        padding: 2.5rem 1.5rem;
        margin-bottom: 2rem;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {

    /* Content adjustments for mobile */
    .content-section {
        padding: 1.5rem;
    }

    .content-header h1 {
        font-size: 2rem;
    }

    .content-header .lead {
        font-size: 1.1rem;
    }

    .services-section h2 {
        font-size: 1.8rem;
    }

    .service-item {
        padding: 1.25rem;
    }

    .contact-us {
        padding: 2.5rem 1.5rem;
        margin: 1.5rem -1.5rem 0;
    }

    .contact-us h2 {
        font-size: 1.8rem;
    }

}

@media (max-width: 480px) {

    .content-header h1 {
        font-size: 1.75rem;
    }

    .services-section h2 {
        font-size: 1.5rem;
    }

    .service-item h3 {
        font-size: 1.1rem;
    }

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