/* Custom styles for Inspire Acupuncture and Herbs (Bootstrap 5) */
:root {
    --brand-green: #7aab96;       /* sage green — favicon leaves */
    --brand-green-dark: #5a8f7c;  /* deep teal — favicon circle */
    --brand-stone: #c4a882;       /* warm beige — favicon pebbles */
    --brand-navy: #2d3b35;        /* deep forest green — replaces cold navy */
    --brand-silver: #f5f7f4;      /* warm off-white */
}

body {
    font-family: "Lato", "Helvetica Neue", Arial, sans-serif;
    color: var(--brand-navy);
    font-size: 1rem;
}

a {
    color: var(--brand-green);
    text-decoration: none;
}

a:hover,
a:focus {
    color: var(--brand-green-dark);
    text-decoration: underline;
}

section {
    padding: 90px 0;
}

.section-heading {
    font-family: "Montserrat", "Helvetica Neue", Arial, sans-serif;
    text-transform: uppercase;
    font-weight: 700;
    font-size: 2.5rem;
    color: var(--brand-navy);
    margin-bottom: 1rem;
}

.section-subheading {
    font-family: "Droid Serif", "Helvetica Neue", Arial, sans-serif;
    font-style: italic;
    font-size: 1.1rem;
    color: #7a8c84;
    margin-bottom: 3rem;
}

.bg-light-gray {
    background-color: var(--brand-silver);
}

/* Navigation */
#mainNav {
    padding: 1.25rem 0;
    background-color: rgba(255, 255, 255, 0.97);
    transition: padding 0.3s ease, box-shadow 0.3s ease;
}

#mainNav .navbar-brand {
    display: flex;
    align-items: center;
    font-family: "Montserrat", "Helvetica Neue", Arial, sans-serif;
    font-weight: 700;
    font-size: 1rem;
    color: var(--brand-navy);
}

#mainNav .navbar-brand span {
    line-height: 1.2;
}

.navbar-brand-logo {
    height: 48px;
    width: auto;
}

#mainNav .navbar-nav .nav-link {
    font-family: "Montserrat", "Helvetica Neue", Arial, sans-serif;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--brand-navy);
    padding: 0.75rem 1rem;
}

#mainNav .navbar-nav .nav-link:focus {
    outline: none;
}

#mainNav .navbar-nav .nav-link:hover,
#mainNav .navbar-nav .nav-link:focus {
    color: var(--brand-green);
}

@media (min-width: 992px) {
    #mainNav .navbar-nav .nav-link {
        white-space: nowrap;
        padding-left: 0.85rem;
        padding-right: 0.85rem;
        font-size: 0.95rem;
    }
}

#mainNav.navbar-shrink {
    padding: 0.5rem 0;
    box-shadow: 0 0.5rem 1.5rem rgba(0, 0, 0, 0.08);
}

#mainNav.navbar-shrink .navbar-brand-logo {
    height: 40px;
}

#mainNav .navbar-toggler {
    border-color: rgba(0, 0, 0, 0.2);
}

#mainNav .navbar-toggler:focus {
    box-shadow: none;
}

/* Hero */
header {
    text-align: center;
    color: #fff;
    background: linear-gradient(rgba(45, 59, 53, 0.55), rgba(90, 143, 124, 0.45)), url("/img/header-bg.jpg") center center / cover no-repeat;
    padding: 10rem 0 7rem;
}

header .intro-text {
    max-width: 720px;
    margin: 0 auto;
}

header .intro-lead-in {
    font-family: "Droid Serif", "Helvetica Neue", Arial, sans-serif;
    font-size: 1.5rem;
    font-style: italic;
    margin-bottom: 2rem;
}

.btn-xl {
    padding: 1.2rem 2.5rem;
    font-size: 1.1rem;
    text-transform: uppercase;
    font-family: "Montserrat", "Helvetica Neue", Arial, sans-serif;
    font-weight: 700;
    border-radius: 999px;
    background-color: var(--brand-green);
    border-color: var(--brand-green);
    color: #fff;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.btn-xl i {
    margin-right: 0.5rem;
}

.btn-xl:hover,
.btn-xl:focus {
    background-color: var(--brand-green-dark);
    border-color: var(--brand-green-dark);
    color: #fff;
    transform: translateY(-2px);
}

/* Services */
.service-item {
    margin-bottom: 3rem;
    text-align: center;
}

.service-link {
    position: relative;
    display: block;
    border-radius: 0.75rem;
    overflow: hidden;
    box-shadow: 0 0.75rem 1.5rem rgba(0, 0, 0, 0.12);
}

.service-link img {
    display: block;
    width: 100%;
    height: auto;
}

.service-hover {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(90, 143, 124, 0.85);
    opacity: 0;
    transition: opacity 0.2s ease;
}

.service-link:hover .service-hover,
.service-link:focus .service-hover {
    opacity: 1;
}

.service-hover-content {
    color: #fff;
}

.service-caption h4 {
    margin-top: 1.5rem;
    font-family: "Montserrat", "Helvetica Neue", Arial, sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--brand-navy);
}

.service-caption .btn {
    margin-top: 0.75rem;
}

.btn-click {
    border-radius: 999px;
    border: 2px solid var(--brand-green);
    background-color: #fff;
    color: var(--brand-green);
    text-transform: uppercase;
    font-family: "Montserrat", "Helvetica Neue", Arial, sans-serif;
    font-weight: 600;
    padding: 0.6rem 1.75rem;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.btn-click:hover,
.btn-click:focus {
    background-color: var(--brand-green);
    color: #fff;
}

/* Testimonials */
#testimonials .review-summary {
    background-color: #fff;
    border-radius: 0.75rem;
    padding: 2rem;
    box-shadow: 0 0.75rem 1.5rem rgba(0, 0, 0, 0.08);
}

#testimonials .rating-stars {
    display: inline-flex;
    gap: 0.25rem;
}

#testimonials .rating-stars i {
    color: #f6c343;
}

#testimonials .review-summary .rating-stars i {
    font-size: 1.5rem;
}

#testimonials .rating-value {
    font-family: "Montserrat", "Helvetica Neue", Arial, sans-serif;
    font-weight: 700;
    font-size: 3rem;
    color: var(--brand-navy);
}

#testimonials .testimonial-card {
    background-color: #fff;
    border-radius: 0.75rem;
    padding: 2rem;
    box-shadow: 0 0.75rem 1.5rem rgba(0, 0, 0, 0.1);
}

#testimonials .testimonial-quote {
    font-style: italic;
    color: #5a6b62;
    margin-bottom: 1.5rem;
}

#testimonials .testimonial-author {
    font-weight: 600;
    color: var(--brand-navy);
}

/* Conditions */
.fa-stack {
    margin-bottom: 1rem;
}

.condition-heading {
    font-family: "Montserrat", "Helvetica Neue", Arial, sans-serif;
    font-weight: 700;
    font-size: 1.25rem;
    margin-top: 1rem;
    color: var(--brand-navy);
}

.condition-detail ul {
    margin: 0.75rem auto 0;
    padding-left: 1.1rem;
}

.condition-detail li {
    margin-bottom: 0.35rem;
}

/* Team Cards */
.team-card {
    background: #fff;
    border-radius: 1.25rem;
    padding: 2.5rem 2rem;
    box-shadow: 0 0.5rem 1.75rem rgba(0, 0, 0, 0.07);
    height: 100%;
}

.team-card-h {
    display: flex;
    align-items: flex-start;
    gap: 2rem;
}

@media (max-width: 575.98px) {
    .team-card-h {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .team-card-h .team-skills {
        justify-content: center;
    }
}

.team-photo {
    width: 160px;
    height: 160px;
    object-fit: cover;
    border: 4px solid var(--brand-green);
}

.team-photo-placeholder {
    width: 160px;
    height: 160px;
    background: linear-gradient(135deg, var(--brand-green), var(--brand-green-dark));
    font-family: "Montserrat", "Helvetica Neue", Arial, sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: 0.05em;
}

.team-name {
    font-family: "Montserrat", "Helvetica Neue", Arial, sans-serif;
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--brand-navy);
    margin-bottom: 0.25rem;
}

.team-role {
    color: var(--brand-green);
    font-family: "Montserrat", "Helvetica Neue", Arial, sans-serif;
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 0;
}

.team-skills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    justify-content: center;
    margin-top: 1rem;
}

.team-skill-tag {
    background: var(--brand-silver);
    color: var(--brand-navy);
    border-radius: 999px;
    padding: 0.25rem 0.8rem;
    font-size: 0.78rem;
    font-family: "Montserrat", "Helvetica Neue", Arial, sans-serif;
    font-weight: 600;
}

.team-licenses {
    font-size: 0.85rem;
    color: #7a8c84;
}

/* Testimonial Video Carousel */
.testimonial-rail-outer {
    position: relative;
    padding: 0 3rem;
    margin-top: 0.5rem;
}

.testimonial-rail {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    padding: 0.75rem 0.25rem 1.5rem;
    /* hide scrollbar but keep functional */
    scrollbar-width: thin;
    scrollbar-color: var(--brand-green) transparent;
}

.testimonial-rail::-webkit-scrollbar {
    height: 4px;
}

.testimonial-rail::-webkit-scrollbar-thumb {
    background: var(--brand-green);
    border-radius: 2px;
}

.testimonial-video-card {
    flex: 0 0 340px;
    scroll-snap-align: start;
    background: #fff;
    border-radius: 0.875rem;
    overflow: hidden;
    box-shadow: 0 0.4rem 1.2rem rgba(0, 0, 0, 0.09);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.testimonial-video-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 0.8rem 1.8rem rgba(0, 0, 0, 0.14);
}

.testimonial-video-wrap {
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #111;
}

.testimonial-video-wrap video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.testimonial-video-label {
    padding: 0.6rem 0.85rem;
    font-family: "Montserrat", "Helvetica Neue", Arial, sans-serif;
    font-weight: 600;
    font-size: 0.82rem;
    color: var(--brand-navy);
    border-top: 1px solid var(--brand-silver);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Arrow buttons */
.testimonial-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-60%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--brand-green);
    color: #fff;
    border: none;
    font-size: 1.6rem;
    line-height: 1;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.testimonial-arrow:hover {
    background: var(--brand-green-dark);
}

.testimonial-arrow-prev { left: 0; }
.testimonial-arrow-next { right: 0; }

@media (max-width: 575.98px) {
    .testimonial-rail-outer {
        padding: 0 2.5rem;
    }
    .testimonial-video-card {
        flex: 0 0 280px;
    }
}

/* Typography helpers */
.p-font {
    font-family: "Lato", "Helvetica Neue", Arial, sans-serif;
    font-size: 1rem;
}

/* Patient section */
#patient ul {
    margin-bottom: 1.5rem;
}

#patient li + li {
    margin-top: 0.5rem;
}

/* Business hours */
.business-hours {
    font-family: "Lato", "Helvetica Neue", Arial, sans-serif;
    font-size: 0.95rem;
}

.business-hours li {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 0.25rem;
}

.business-hours .fw-semibold {
    min-width: 3.5rem;
}

@media (max-width: 767.98px) {
    .business-hours {
        display: inline-block;
        text-align: left;
    }

    .business-hours li {
        justify-content: center;
    }
}

/* Map */
.map-container {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 0.75rem;
    box-shadow: 0 0.75rem 1.5rem rgba(0, 0, 0, 0.12);
}

.map-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* Modals */
.portfolio-modal .modal-content {
    padding: 2rem;
    border-radius: 0.75rem;
}

.portfolio-modal .modal-body img {
    margin-bottom: 1.5rem;
    border-radius: 0.5rem;
}

.portfolio-modal .modal-body p {
    text-align: left;
}

/* Footer */
footer {
    background-color: var(--brand-silver);
    padding: 2rem 0;
    text-align: center;
}

footer span.copyright {
    font-family: "Montserrat", "Helvetica Neue", Arial, sans-serif;
    font-weight: 600;
    font-size: 0.95rem;
}

/* Responsive tweaks */
@media (min-width: 992px) {
    header {
        padding: 14rem 0 10rem;
    }

    .navbar-brand-logo {
        height: 56px;
    }
}

@media (max-width: 991.98px) {
    #mainNav .navbar-nav .nav-link {
        padding: 0.75rem;
    }

    header {
        padding: 8rem 0 6rem;
    }
}
