/* ===== Base Layout ===== */
body {
    font-family: 'Playfair Display', serif;
    background-color: #f2f0ed;
    color: #111;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

.bg-dark {
    background-color: #333333 !important;
    /* Your desired dark color */
}

/* ===== Navbar & Header ===== */
.navbar {
    background-color: #e4e2dd !important;
    padding-top: 1rem;
    padding-bottom: 1rem;
}

.custom-header {
    border-bottom: 1px solid #ddd;
}

.header-logo {
    height: 100px;
    width: auto;
    max-width: 100%;
}

/* Brand Text */
.brand-text {
    font-size: 1.5rem;
    font-weight: 600;
    color: #111;
    letter-spacing: 0.5px;
    line-height: 1.1;
}

.brand-text span {
    display: block;
}

@media (max-width: 575.98px) {
    .brand-text {
        font-size: 1rem;
    }
}


/* ===== Nav Links ===== */
.navbar-nav .nav-link {
    color: #333333;
    margin-left: 1rem;
    font-size: 1.5rem;
    transition: color 0.3s ease, background-color 0.3s ease;
    padding: 0.5rem 0.75rem;

}


.navbar-nav .nav-link:hover {
    color: #333333;
    background-color: transparent;
}

.navbar-nav .nav-link:hover:not(.book-btn) {
    text-decoration: underline;
    text-underline-offset: 4px;
    color: #111;
}

/* ===== CTA Button ===== */
.book-btn {
    padding: 0.6rem 1.2rem;
    border-radius: 999px;
    font-weight: 600;
    background-color: #333333;
    color: #fff !important;
    font-size: 1.4rem;
    transition: all 0.3s ease;
    border: 1px solid transparent;
    display: inline-block;
}

.book-btn:hover {
    background-color: #fff;
    color: #333333 !important;
    border: 1px solid #333333;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transform: translateY(-1px);
}

/* Prevent shifting */
.book-btn,
.navbar-nav .nav-link {
    line-height: 1.5;
}

/* ===== Responsive Adjustments ===== */
@media (max-width: 991.98px) {
    .navbar-collapse {
        background-color: #e4e2dd;
        padding: 1rem;
    }

    .navbar-nav {
        flex-direction: column;
        align-items: flex-start;
    }

    .navbar-nav .nav-link {
        margin-left: 0;
        margin-bottom: 0.5rem;
    }

    .book-btn {
        width: 100%;
        text-align: center;
        margin-top: 1rem;
    }

    .brand-text {
        font-size: 1.15rem;
    }

    .header-logo {
        height: 60px;
    }
}

.navbar-toggler {
    border: none;
    outline: none;
    box-shadow: none;
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml;charset=utf8,%3Csvg viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='black' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E");
}




/* ===== Hero Section (Dark Left + Faded Image Right) ===== */
.hero-section {
    position: relative;
    /* OLD: min-height: 100vh; */
    min-height: 65vh;
    display: flex;
    align-items: center;
    background-color: #333333;
    color: #fff;
    overflow: hidden;
}

.hero-section::after {
    content: '';
    position: absolute;
    inset: 0;
    background: url('../assets/piller.jpg') right center no-repeat;
    background-size: 160%;
    opacity: 0.05;
    mask-image: linear-gradient(to left, rgba(0, 0, 0, 1), rgba(0, 0, 0, 0));
    -webkit-mask-image: linear-gradient(to left, rgba(0, 0, 0, 1), rgba(0, 0, 0, 0));
    pointer-events: none;
    z-index: 0;
}

@media (max-width: 768px) {
    .hero-section {
        min-height: 90vh;
        /* Increase height for stacked layout */
        padding-top: 4rem;
        padding-bottom: 4rem;
    }

    .hero-section::after {
        background-position: center top;
        background-size: 180%;
        /* Zoom in a bit more for mobile */
        mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0));
        -webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0));
    }
}



/* Remove default overlay if you had one */
.hero-overlay {
    display: none !important;
}

/* Keep all hero content layered above background */
.hero-section h1,
.hero-section p,
.hero-section .btn,
.hero-form {
    position: relative;
    z-index: 2;
}

/* Heading */
.hero-section h1 {
    font-size: 3rem;
    line-height: 1.3;
}

/* Subtext */
.hero-section p {
    font-size: 1.125rem;
    max-width: 700px;
}

/* Buttons */
.hero-section .btn {
    font-size: 1rem;
    transition: all 0.3s ease;
}

.hero-section .btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 10px rgba(255, 255, 255, 0.15);
}

/* ===== Hero Form ===== */
.hero-form {
    background-color: #f8f9fa;
    border: 1px solid rgba(0, 0, 0, 0.05);
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    z-index: 2;
}

.hero-form input,
.hero-form textarea {
    border-radius: 10px;
    padding: 0.75rem;
    font-size: 0.95rem;
}

.hero-form .btn {
    padding: 0.6rem 1rem;
    font-weight: 600;
    font-size: 1rem;
    transition: background 0.3s ease;
    background-color: #333333;
}

.hero-form .btn:hover {
    background-color: #333333be;
}

/* ===== Mobile Responsiveness ===== */
@media (max-width: 768px) {
    .hero-section {
        text-align: center;
        padding-top: 4rem;
        padding-bottom: 4rem;
    }

    .hero-section h1 {
        font-size: 2.2rem;
    }

    .hero-section .d-flex {
        justify-content: center;
    }

    .hero-form {
        margin-top: 2rem;
    }
}





/* ===== Why Choose Us Section ===== */
.why-choose-us-section {
    background-color: #f8f9fa;
}

.why-choose-us-section h2 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.why-card {
    border-radius: 1rem;
    background: #fff;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.icon-circle {
    background-color: #E4E2DD;
    color: #000;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 1.5rem;
}







/* ===== Services Gallery ===== */
/* ===== Services Gallery ===== */
.services-gallery-section h2 {
    font-size: 2rem;
}

.service-tile {
    position: relative;
    height: 320px;
    background-size: cover;
    background-position: center;
    border-radius: 1rem;
    overflow: hidden;
    transition: transform 0.3s ease, background-size 0.4s ease;
    cursor: pointer;
}

.service-tile:hover {
    transform: translateY(-4px);
    /* Subtle zoom effect */
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

.service-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.1));
    color: #fff;
    border-radius: 1rem;
    display: flex;
    align-items: flex-end;
    padding: 1rem;
}

.service-content {
    text-align: left;
    width: 100%;
}

.service-content h5 {
    margin-bottom: 0.25rem;
}

.service-desc {
    opacity: 0;
    max-height: 0;
    transition: opacity 0.3s ease, max-height 0.3s ease;
    font-size: 0.875rem;
    line-height: 1.4;
}

.service-tile:hover .service-desc {
    opacity: 1;
    max-height: 100px;
}



/* ---- */

/* ==== TIMELINE SECTION ==== */
/* TIMELINE */
.timeline-horizontal {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 2rem;
    padding: 3rem 0;
}

.timeline-step {
    background: #fff;
    border-radius: 16px;
    padding: 2rem 1rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.07);
    flex: 1;
    min-width: 200px;
    max-width: 240px;
    text-align: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.timeline-step:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.timeline-icon {
    width: 50px;
    height: 50px;
    background: #333333;
    color: #fff;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 1rem auto;
    font-weight: bold;
    font-size: 1.1rem;
    border: 3px solid white;
    box-shadow: 0 0 0 4px #333333;
}

.timeline-step h5 {
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.timeline-step p {
    font-size: 1rem;
    color: #555;
    margin: 0 auto;
    max-width: 220px;
}

/* MOBILE */
@media (max-width: 768px) {
    .timeline-horizontal {
        flex-direction: column;
        align-items: center;
    }

    .timeline-step {
        width: 100%;
        max-width: 90%;
    }
}

.mediator-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    height: 100%;
    font-size: 0.95rem;
}

.mediator-img {
    overflow: hidden;
}

.mediator-img img {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
    object-position: center 20%;
    display: block;
}

.mediator-content {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    padding: 24px;
}

.mediator-content h3,
.mediator-content h5 {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 6px;
    color: #1a1a1a;
    letter-spacing: -0.01em;
}

.mediator-content > p,
.mediator-content > .text-muted {
    font-size: 0.85rem;
    margin-bottom: 14px;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 500;
}

.mediator-bio {
    font-size: 0.95rem;
    line-height: 1.7;
    color: #555;
    flex-grow: 1;
    letter-spacing: 0.01em;
}

.mediator-bio p {
    margin-bottom: 12px;
    color: #555;
    font-size: 0.95rem;
    line-height: 1.7;
}

.mediator-bio p:last-child {
    margin-bottom: 0;
}

.mediator-content .btn {
    display: inline-block;
    padding: 0.5rem 1.2rem;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: 999px;
    background-color: #e4e2dd;
    color: #333;
    border: 1px solid #ccc;
    text-decoration: none;
    transition: all 0.3s ease;
}

.mediator-content .btn:hover {
    background-color: #333;
    color: #fff;
    border-color: #333;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    transform: translateY(-1px);
}



.faq-section .accordion-button {
    font-weight: 600;
    font-size: 1.05rem;
    color: #1a1a1a;
}

.faq-section .accordion-button:focus {
    box-shadow: none;
    background-color: #e9ecef;
}

.faq-section .accordion-body {
    color: #444;
    line-height: 1.6;
}



/* Testimonials Section */
.testimonials-section {
    background-color: #f8f9fa;
}

.testimonial-card {
    border-left: 4px solid #333333;
    /* your accent green */
    background: #fff;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border-radius: 1rem;
}

.testimonial-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.testimonial-card p {
    font-size: 1.05rem;
    line-height: 1.6;
    color: #333;
}

.testimonial-card .text-accent {
    color: #333333;
    font-weight: 600;
}


.contract-consult-form .form-label {
    font-weight: 600;
}

.contract-consult-form input,
.contract-consult-form textarea,
.contract-consult-form select {
    border-radius: 0.5rem;
}



@media (max-width: 767.98px) {
    .service-desc {
      opacity: 1 !important;
      max-height: none !important;
      visibility: visible !important;
      display: block !important;
    }
  
    .service-tile:hover .service-desc {
      opacity: 1 !important;
      max-height: none !important;
      visibility: visible !important;
      display: block !important;
    }
  }
  
/* ===== Compact Hero for Subpages ===== */
.hero-compact {
    min-height: auto !important;
    padding-top: 1rem;
    padding-bottom: 1rem;
}
.hero-compact .row {
    min-height: auto !important;
}
.hero-compact h1 {
    font-size: 2.2rem !important;
    margin-bottom: 0.5rem !important;
}
.hero-compact p.lead {
    font-size: 1rem !important;
    margin-bottom: 0.5rem !important;
}

/* ===== Mobile Enhancements ===== */
@media (max-width: 767.98px) {
    body {
        font-size: 16px;
    }
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    .btn, a.btn, button.btn {
        min-height: 44px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }
    .nav-link {
        min-height: 44px;
        display: flex;
        align-items: center;
    }
    .hero-section h1 {
        font-size: 1.8rem;
        margin-bottom: 1rem;
    }
    .hero-section p {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }
}
