/* ==========================================================================
   1. GLOBAL CONFIGURATION & BASE STYLES
   ========================================================================== */

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background-color: #001d21;
    color: #ffffff;
}

/* ==========================================================================
   2. NAVBAR STYLING
   ========================================================================== */

.navbar-wrapper {
    background-color: transparent; /* Allows the pill layout to float on top of page background */
    padding-top: 24px;
}

.custom-navbar {
    background-color: #001d21 !important;
    border-radius: 16px; /* Soft rounded container corners matching the image */
    padding: 12px 28px !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
}

/* --- Logo & Icon styling --- */
.logo-link {
    display: flex;
    align-items: center;
}

.logo-icon {
    color: #a1b2ce; /* Matches dusty blue */
    display: inline-flex;
    align-items: center;
}

.navbar-wrapper .logo-text {
    font-weight: 500 !important;
    letter-spacing: -0.01em;
    color: #ffffff !important;
}

/* --- Navigation Links --- */
.nav-links-group {
    display: flex;
    gap: 8px;
}

.navbar-wrapper .nav-link {
    font-size: 0.95rem !important;
    font-weight: 500 !important;
    color: #a1b2ce !important;
    transition: color 0.2s ease;
}

.navbar-wrapper .nav-link:hover {
    color: #ffffff !important;
}

.navbar-wrapper .active-nav-link {
    color: #ffffff !important;
    font-weight: 500 !important;
}

/* --- Header Contact Button --- */
.header-contact-btn {
    display: inline-block;
    background-color: #a1b2ce;
    color: #001d21 !important;
    text-decoration: none !important;
    font-size: 0.85rem !important;
    font-weight: 500 !important;
    padding: 10px 24px;
    border-radius: 2px;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.header-contact-btn:hover {
    background-color: #f0f0f0;
    color: #001d21 !important;
}

/* ==========================================================================
   3. HERO SECTION
   ========================================================================== */

.hero {
    padding: 60px 20px;
    background-color: #001d21;
}

.hero-container {
    max-width: 1200px !important;
    margin: 0 auto;
}

.hero-subtitle {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: #ffffff;
    margin-bottom: 15px;
}

.hero-title {
    font-size: 2.4rem;
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.03em;
    color: #ffffff;
    margin: 0 0 15px 0;
}

.hero-desc {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #ffffff;
    max-width: 600px;
    margin-bottom: 25px;
}

.hero-button {
    display: inline-block;
    background-color: #a1b2ce;
    color: #001d21;
    text-decoration: none;
    font-size: 0.85rem;
    padding: 12px 24px;
    border-radius: 2px;
    font-weight: 500;
    transition: background-color 0.2s ease;
}

.hero-button:hover {
    background-color: #f0f0f0;
}

.hero-image-container {
    margin-top: 50px;
    width: 100%;
}

.hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

/* ==========================================================================
   4. SERVICES SECTION
   ========================================================================== */

.services-section {
    padding: 100px 20px;
    background-color: #ffffff;
    border-top: 0px solid #a1b2ce;
}

.services-container {
    max-width: 1200px !important;
    margin: 0 auto;
}

.services-header {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 40px;
    margin-bottom: 80px;
}

.services-subtitle {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: #001d21;
    margin-top: 8px;
}

.services-title {
    font-size: 2.2rem;
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.03em;
    color: #001d21;
    margin: 0 0 20px 0;
}

.services-desc {
    font-size: 0.9rem;
    line-height: 1.6;
    color: #001d21;
    margin-bottom: 25px;
}

.services-button {
    display: inline-block;
    background-color: #a1b2ce;
    color: #001d21;
    text-decoration: none;
    font-size: 0.85rem;
    padding: 12px 24px;
    border-radius: 2px;
    font-weight: 500;
    transition: background-color 0.2s ease;
}

.services-button:hover {
    background-color: #f0f0f0;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border-top: 1px solid #a1b2ce;
    border-bottom: 1px solid #a1b2ce;
}

.service-card {
    padding: 40px 24px;
    background-color: #ffffff;
}

.service-card:not(:last-child) {
    border-right: 1px solid #a1b2ce;
}

.service-card-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: #001d21;
    margin-bottom: 20px;
    letter-spacing: -0.02em;
}

.service-card-text {
    font-size: 0.85rem;
    line-height: 1.6;
    color: #001d21;
}

/* ==========================================================================
   5. ABOUT SECTION
   ========================================================================== */

.about-section {
    padding: 120px 20px;
    background-color: #ffffff;
    text-align: center;
}

.about-container {
    max-width: 750px;
    margin: 0 auto;
}

.about-subtitle {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: #001d21;
    margin-bottom: 20px;
}

.about-title {
    font-size: 2.4rem;
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.03em;
    color: #001d21;
    margin: 0 auto 30px auto;
    max-width: 680px;
}

.about-text {
    font-size: 0.9rem;
    line-height: 1.7;
    color: #001d21;
    margin: 0 auto 20px auto;
    max-width: 600px;
}

.about-actions {
    margin-top: 35px;
}

.about-button {
    display: inline-block;
    background-color: #a1b2ce;
    color: #001d21;
    text-decoration: none;
    font-size: 0.85rem;
    padding: 12px 24px;
    border-radius: 2px;
    font-weight: 500;
    transition: background-color 0.2s ease;
}

.about-button:hover {
    background-color: #f0f0f0;
}

/* ==========================================================================
   6. TEAM SECTION & TEAM PAGE HEADER
   ========================================================================== */

.team-section {
    background-color: #ffffff;
    padding-top: 100px; /* Increase this number (e.g., to 100px) to make the white gap bigger */
    padding-bottom: 100px;
}

.team-container {
    max-width: 1200px !important;
    margin: 0 auto;
}

.team-header {
    margin-bottom: 50px;
}

.team-subtitle {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: #001d21;
    margin-bottom: 12px;
}

.team-title {
    font-size: 2.2rem;
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.03em;
    color: #001d21;
    margin: 0;
    max-width: 800px;
}

.team-desc {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #555555;
    max-width: 650px;
    margin: 15px 0 0 0;
}

/* 3-Column Responsive Grid */
.team-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px 24px;
}

.team-member {
    display: flex;
    flex-direction: column;
}

/* Square image container */
.member-image-container {
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    margin-bottom: 16px;
    border-radius: 0px;
    background-color: #f0f0f0;
}

.member-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Info row below image */
.member-info-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.member-details {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.member-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: #001d21;
    margin: 0;
    line-height: 1.2;
}

.member-role {
    font-size: 0.8rem;
    color: #001d21;
    margin: 0;
}

/* Arrow button */
.member-arrow-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background-color: #001d21;
    color: #a1b2ce;
    border-radius: 2px;
    transition: background-color 0.2s ease, color 0.2s ease;
    text-decoration: none;
    flex-shrink: 0;
}

.member-arrow-btn:hover {
    background-color: #f0f0f0;
    color: #001d21;
}

/* Home Page "View Full Team" Button */
.team-footer {
    margin-top: 40px;
    text-align: left;
}

a.team-button,
.team-button {
    display: inline-block !important;
    background-color: #a1b2ce !important;
    color: #001d21 !important;
    text-decoration: none !important;
    font-size: 0.85rem !important;
    padding: 12px 24px !important;
    border-radius: 2px !important;
    font-weight: 500 !important;
    transition: background-color 0.2s ease, color 0.2s ease;
}

a.team-button:hover,
.team-button:hover {
    background-color: #f0f0f0 !important;
    color: #001d21 !important;
}

/* --- Team Page Header Specific Styles --- */
.team-page-header {
    background-color: #001d21;
    padding-top: 60px;
    padding-bottom: 60px;
    margin-bottom: 0px;
}

.team-page-header .team-subtitle {
    color: #a1b2ce;
}

.team-page-header .team-title {
    color: #ffffff;
}

.team-page-header .team-desc {
    color: #a1b2ce;
}

/* --- Fix Sarah Doe Image Framing Globally --- */
img[src*="md-ishak-rahman-eBR7JFPr5Q8-unsplash.jpg"] {
    object-fit: cover;
    object-position: center 10% !important;
}

/* ==========================================================================
   7. OFFICES SECTION
   ========================================================================== */

.offices-section {
    padding: 100px 20px;
    background-color: #f0f0f0;
}

.offices-container {
    max-width: 1200px !important;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 50px;
}

.offices-info-col {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-start;
}

.offices-subtitle {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: #001d21;
    margin-bottom: 20px;
}

.offices-title {
    font-size: 2.2rem;
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.03em;
    color: #001d21;
    margin: 0 0 15px 0;
}

.offices-desc {
    font-size: 0.9rem;
    line-height: 1.6;
    color: #001d21;
    margin-bottom: 40px;
}

.offices-button {
    display: inline-block;
    background-color: #a1b2ce;
    color: #001d21;
    text-decoration: none;
    font-size: 0.85rem;
    padding: 12px 24px;
    border-radius: 2px;
    font-weight: 500;
    transition: background-color 0.2s ease;
}

.offices-button:hover {
    background-color: #f9f9f7;
}

.offices-cards-col {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.office-card {
    background-color: #f0f0f0;
    padding: 30px;
    border-radius: 2px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.office-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background-color: #001d21;
    color: #a1b2ce;
    border-radius: 2px;
    margin-bottom: 20px;
}

.office-city {
    font-size: 1.25rem;
    font-weight: 600;
    color: #001d21;
    margin: 0 0 12px 0;
}

.office-address {
    font-size: 0.8rem;
    line-height: 1.6;
    color: #001d21;
    margin: 0;
}

/* ==========================================================================
   8. ATTORNEY BIO TEMPLATE STYLES
   ========================================================================== */

.bio-hero-container,
.bio-quote-container,
.bio-experience-container {
    max-width: 1200px !important;
    margin: 0 auto;
}

/* --- Bio Hero Section --- */
.bio-hero-section {
    padding: 80px 20px;
    background-color: #ffffff;
}

.bio-hero-grid {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 60px;
    align-items: center;
}

.bio-main-img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 4px;
}

.bio-text-box {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.bio-subtitle {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    color: #666666;
    margin-bottom: 15px;
}

.bio-name {
    font-size: 3.2rem;
    font-weight: 700;
    color: #001d21;
    line-height: 1.1;
    letter-spacing: -0.03em;
    margin-bottom: 30px;
}

.bio-description {
    font-size: 1rem;
    line-height: 1.6;
    color: #001d21;
    margin-bottom: 25px;
}

.bio-socials {
    display: flex;
    gap: 10px;
    margin-bottom: 35px;
}

.social-icon-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background-color: #f0f0f0;
    color: #001d21;
    border-radius: 4px;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
}

.bio-cta-btn {
    display: inline-block;
    background-color: #001d21;
    color: #ffffff;
    text-decoration: none;
    font-size: 0.85rem;
    padding: 14px 28px;
    border-radius: 4px;
    font-weight: 600;
}

/* --- Words / Quote Section --- */
.bio-quote-section {
    padding: 90px 20px;
    background-color: #f9f9f7;
}

.quote-layout-grid {
    display: grid;
    grid-template-columns: 1fr 3fr;
    gap: 20px;
}

.section-side-label {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    color: #666666;
}

.bio-blockquote {
    font-size: 1.8rem;
    font-weight: 400;
    line-height: 1.4;
    color: #001d21;
    letter-spacing: -0.02em;
    margin: 0;
}

/* --- Experiences Section --- */
.bio-experience-section {
    padding: 100px 20px;
    background-color: #ffffff;
}

.experience-layout-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 60px;
}

.bio-secondary-img {
    width: 100%;
    height: auto;
    border-radius: 4px;
    display: block;
}

.experience-main-title {
    font-size: 2.2rem;
    font-weight: 700;
    color: #001d21;
    margin: 15px 0 20px 0;
    letter-spacing: -0.02em;
}

.experience-intro-text {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #555555;
    margin-bottom: 40px;
}

/* --- Timeline List --- */
.timeline-wrapper {
    display: flex;
    flex-direction: column;
}

.timeline-item {
    border-top: 1px solid #eeeeee;
    padding: 25px 0;
}

.timeline-item:last-child {
    border-bottom: 1px solid #eeeeee;
}

.timeline-header-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 8px;
}

.timeline-title {
    font-size: 1.15rem;
    font-weight: 600;
    color: #001d21;
    margin: 0;
}

.timeline-year {
    font-size: 0.85rem;
    font-weight: 600;
    color: #666666;
}

.timeline-desc {
    font-size: 0.85rem;
    color: #666666;
    margin: 0;
}

/* ==========================================================================
   9. CONTACT PAGE STYLES
   ========================================================================== */

.contact-section {
    padding: 60px 20px 100px 20px;
    background-color: #ffffff;
}

.contact-container {
    max-width: 1200px !important;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1.6fr;
    gap: 60px;
}

/* --- Left Column Info --- */
.contact-info-col {
    display: flex;
    flex-direction: column;
    gap: 35px;
}

.info-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    color: #a1b2ce;
    margin-bottom: 10px;
}

.info-text {
    font-size: 0.9rem;
    line-height: 1.6;
    color: #001d21;
    margin: 0 0 10px 0;
}

.info-detail {
    font-size: 0.85rem;
    color: #001d21;
    margin: 4px 0;
}

.info-notice {
    background-color: #f9f9f7;
    border-left: 3px solid #001d21;
    padding: 20px;
    border-radius: 2px;
}

.notice-text {
    font-size: 0.8rem;
    line-height: 1.5;
    color: #555555;
    margin: 0;
}

/* --- Right Column Form --- */
.custom-contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 0.8rem;
    font-weight: 600;
    color: #001d21;
    letter-spacing: -0.01em;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 14px;
    font-size: 0.85rem;
    font-family: inherit;
    border: 1px solid #dcdcdc;
    border-radius: 2px;
    background-color: #ffffff;
    color: #001d21;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    box-sizing: border-box;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #001d21;
    box-shadow: 0 0 0 2px rgba(0, 29, 33, 0.1);
}

.submit-btn {
    align-self: flex-start;
    background-color: #001d21;
    color: #ffffff;
    border: none;
    padding: 14px 32px;
    font-size: 0.85rem;
    font-weight: 600;
    border-radius: 2px;
    cursor: pointer;
    transition: background-color 0.2s ease;
    margin-top: 10px;
}

.submit-btn:hover {
    background-color: #a1b2ce;
    color: #001d21;
}

/* ==========================================================================
   10. FOOTER STYLES
   ========================================================================== */

.footer-wrapper {
    background-color: #001d21;
    width: 100%;
}

.footer-wrapper a {
    text-decoration: none !important;
}

.footer-wrapper .footer-logo {
    font-weight: 700;
    color: #ffffff !important;
    letter-spacing: -0.03em;
}

.footer-wrapper .footer-text {
    font-size: 0.8rem;
    color: #a1b2ce !important;
}

.footer-wrapper .footer-link {
    font-size: 0.8rem;
    color: #a1b2ce !important;
    transition: color 0.2s ease;
}

.footer-wrapper .footer-link:hover {
    color: #a1b2ce !important;
}

/* ==========================================================================
   11. MEDIA QUERIES & RESPONSIVE BREAKPOINTS
   ========================================================================== */

@media (max-width: 768px) {
    .services-header {
        grid-template-columns: 1fr;
        gap: 15px;
        margin-bottom: 50px;
    }
    .services-grid {
        grid-template-columns: 1fr;
    }
    .service-card:not(:last-child) {
        border-right: none;
        border-bottom: 1px solid #a1b2ce;
    }
    .team-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .offices-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .bio-hero-grid,
    .quote-layout-grid,
    .experience-layout-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .bio-name {
        font-size: 2.5rem;
    }
    .bio-blockquote {
        font-size: 1.4rem;
    }
    .contact-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .form-row {
        grid-template-columns: 1fr;
    }
}