html {
    /* JS drives the anchor scroll animation for consistent easing (see
       smoothScrollToHash in js.js). scroll-padding-top is still honored by
       any native anchor jump (e.g. tab-through, no-JS load) so the target
       always lands 76px below the viewport top — that's 56px fixed nav +
       20px of breathing room. */
    scroll-behavior: auto;
    scroll-padding-top: 56px;
    /* Always reserve scrollbar gutter so the container width (and the brand mark
       inside it) stays identical across pages — short pages would otherwise lose
       the scrollbar and shift everything ~15px right. */
    overflow-y: scroll;
    scrollbar-gutter: stable;
}
/* Prevent accidental horizontal scroll on mobile if any element overflows */
body { overflow-x: hidden; }

.debug-border {
    border:1px solid red;
}

.gradient {
    background: linear-gradient(90deg, #799771 0%, #2f6e48 100%);
}

/* Initial style without transitions */
#header.no-transition {
    transition: none;
}

/* Regular style with transitions */
#header {
    transition: box-shadow 1s; /* Transition for smooth shadow animation */
    /* Lock the nav to a stable 56px height so pages that reserve 56px of top
       spacing (margin-top / padding-top: 56px on their content) sit flush
       against the nav's bottom edge — no strip of body gradient bleeds through. */
    min-height: 56px;
    display: flex;
    align-items: center;
}
#header > div { width: 100%; }

/* Enhanced visible style for the header when scrolled */
.header-scrolled {
    box-shadow: 0 3px 3px 0 rgba(0, 0, 0, 0.31); /* Strong and clearly visible shadow */
}

.green-text {
    color: #2f6e48;
}

.dark-green-text {
    color: #164227;
}

.green-background {
    background: #799771;
}

.section-alternate-color {
    background-color: #f8fafc;
}

.focus\:border-custom-green:focus {
    border-color: #2f6e48; /* Replace with your hex color */
}

.fa-y3 {
    transform: translateY(5px);
}

/* Wordmark — clean, clinic-appropriate sans for the CedarCare logo text */
.brand-text {
    font-family: 'Manrope', 'Source Sans Pro', system-ui, sans-serif;
    font-weight: 700;
    letter-spacing: -0.01em;
}

/* Inline leaf icon used in the wordmark (replaces the handshake glyph) */
.brand-leaf {
    display: inline-block;
    vertical-align: -0.18em;
    margin-right: 0.35rem;
}

/* Tailwind utilities not in the prebuilt output.css we need on the hero / logo */
@media (min-width: 1024px) {
    .lg\:flex-col { flex-direction: column; }
    .lg\:justify-center { justify-content: center; }
    .lg\:text-5xl { font-size: 3rem; line-height: 1; }
}

/* Push an item to the bottom of its flex column (used to align About icons) */
.mt-auto { margin-top: auto; }

/* 2-col grid at any width (used for side-by-side name/email in contact form) */
.grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }

/* Soft sage-tinted circle around service / about icons — gives them more
   presence and ties the cards together */
.icon-bubble {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    border-radius: 16px;
    background: rgba(122, 155, 113, 0.14);
    color: #2f6e48;
    transition: background-color .3s ease, transform .3s ease;
}
.icon-bubble .icon { font-size: 28px; line-height: 1; }
/* Pop the bubble on parent-card hover */
.bg-white.shadow-lg:hover .icon-bubble,
.cc-card:hover .icon-bubble {
    background: #2f6e48;
    color: #ffffff;
}

/* Hero credentials strip — small line under the CTA */
.hero-credentials {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.6rem;
    margin-top: 0.5rem;
    color: rgba(20, 32, 26, 0.55);
    font-size: 0.95rem;
}
.hero-credentials-label {
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(20, 32, 26, 0.45);
    margin-right: 0.25rem;
}
.hero-credentials-name {
    font-style: italic;
    font-weight: 500;
}
.hero-credentials-dot {
    color: rgba(20, 32, 26, 0.25);
}

/* Footer columns (Clinics / Services / Contact) above the wordmark */
.footer-cols {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2rem;
    padding: 1.5rem 0 0.75rem;
    color: #ffffff;
    text-align: left;
    max-width: 920px;
    margin: 0 auto;
}
@media (max-width: 640px) {
    .footer-cols {
        grid-template-columns: 1fr;
        text-align: center;
    }
}
.footer-col-title {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 0.85rem;
}
.footer-col-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.footer-col-list li { margin-bottom: 0.5rem; font-size: 0.95rem; }
.footer-col-list a {
    color: rgba(255, 255, 255, 0.88);
    text-decoration: none;
    transition: color .2s ease;
}
.footer-col-list a:hover { color: #ffffff; }
.footer-phone-label {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.85rem;
    margin-left: 0.25rem;
}

/* Floating scroll-to-top arrow (mobile only — the fixed nav already has the
   logo/menu accessible on desktop, so this only appears below the lg breakpoint). */
.scroll-top-btn {
    position: fixed;
    right: 1rem;
    bottom: 1rem;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #164227;
    color: #ffffff;
    border: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    display: none;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    pointer-events: none;
    transform: translateY(10px);
    transition: opacity 0.25s ease, transform 0.25s ease;
    z-index: 40;
    padding: 0;
}
.scroll-top-btn svg { width: 22px; height: 22px; display: block; }
.scroll-top-btn.is-visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}
@media (max-width: 1023px) {
    .scroll-top-btn { display: flex; }
}

.footer-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.18);
    margin: 1.5rem auto 1rem;
    max-width: 920px;
}

/* In Tailwind 3, text-white/85 isn't always present in the prebuilt output */
.text-white\/85 { color: rgba(255, 255, 255, 0.85); }

/* ---------- Soft shadows replacing hard borders ---------- */

/* Soft horizontal divider — replaces .border-b-4 inside cards */
.title-soft-rule {
    position: relative;
}
.title-soft-rule::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 70%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(47, 110, 72, 0.28), transparent);
}

/* Soft-edged form input — replaces border-2 border-gray-300 */
.input-soft {
    border: 1px solid rgba(20, 32, 26, 0.06);
    background-color: #ffffff;
    box-shadow: 0 1px 2px rgba(20, 32, 26, 0.04),
                0 8px 24px -12px rgba(20, 32, 26, 0.08);
    transition: box-shadow 0.25s ease, border-color 0.25s ease;
}
.input-soft:focus {
    outline: none;
    border-color: #2f6e48;
    box-shadow: 0 0 0 4px rgba(122, 155, 113, 0.18),
                0 8px 24px -12px rgba(47, 110, 72, 0.18);
}
.input-soft::placeholder { color: #9ca3af; }

/* Slight softening of card edges site-wide (cards already have shadow-lg) */
.shadow-lg {
    box-shadow: 0 1px 2px rgba(20, 32, 26, 0.04),
                0 18px 40px -16px rgba(20, 32, 26, 0.16) !important;
}

/* ---------- Utility fallbacks for classes not in the prebuilt output.css ----------
   The site's output.css is a minimal prebuilt Tailwind subset. When a page needs
   utilities that weren't compiled in (e.g. md:grid-cols-2, rounded-xl), we add
   them here rather than regenerating the whole build. */
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.gap-5 { gap: 1.25rem; }
.gap-6 { gap: 1.5rem; }
.gap-10 { gap: 2.5rem; }
.col-span-1 { grid-column: span 1 / span 1; }
.col-span-2 { grid-column: span 2 / span 2; }
.col-span-3 { grid-column: span 3 / span 3; }
.py-14 { padding-top: 3.5rem; padding-bottom: 3.5rem; }
.pt-10 { padding-top: 2.5rem; }
.pb-8 { padding-bottom: 2rem; }
.pt-14 { padding-top: 3.5rem; }
.mt-6 { margin-top: 1.5rem; }
.mt-8 { margin-top: 2rem; }
.mt-10 { margin-top: 2.5rem; }
.rounded-xl { border-radius: 0.75rem; }
.rounded-2xl { border-radius: 1rem; }
.max-w-4xl { max-width: 56rem; }
.max-w-5xl { max-width: 64rem; }
.items-start { align-items: flex-start; }
.text-lg { font-size: 1.125rem; line-height: 1.75rem; }
.leading-tight { line-height: 1.25; }
.leading-relaxed { line-height: 1.625; }

@media (min-width: 640px) {
    .sm\:pt-14 { padding-top: 3.5rem; }
    .sm\:p-10 { padding: 2.5rem; }
    .sm\:text-4xl { font-size: 2.25rem; line-height: 2.5rem; }
    .sm\:text-5xl { font-size: 3rem; line-height: 1; }
    .sm\:flex-row { flex-direction: row; }
}
@media (min-width: 768px) {
    .md\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .md\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .md\:col-span-1 { grid-column: span 1 / span 1; }
    .md\:col-span-2 { grid-column: span 2 / span 2; }
    .md\:col-span-3 { grid-column: span 3 / span 3; }
    .md\:text-6xl { font-size: 3.75rem; line-height: 1; }
    .md\:text-xl { font-size: 1.25rem; line-height: 1.75rem; }
    .md\:justify-end { justify-content: flex-end; }
    .md\:text-left { text-align: left; }
}
@media (min-width: 1024px) {
    .lg\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .lg\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* ---------- Clinic brand-mark on the top nav (used on clinic sub-pages) ---------- */
.clinic-brand-divider {
    width: 1px;
    height: 28px;
    background: rgba(255, 255, 255, 0.35);
    margin: 0 0.9rem;
}
.clinic-brand-mark {
    font-family: 'Manrope', 'Source Sans Pro', system-ui, sans-serif;
    font-weight: 700;
    font-size: 1.05rem;
    color: #ffffff;
    text-decoration: none;
    letter-spacing: -0.01em;
    transition: opacity .2s ease;
}
.clinic-brand-mark:hover { opacity: 0.8; }

/* ---------- Main-nav active state (shows which sub-page you're on) ---------- */
.nav-item-active {
    background: #ffffff;
    color: #2f6e48 !important;
    border-radius: 999px;
    font-weight: 700;
    box-shadow: 0 2px 8px -3px rgba(0, 0, 0, 0.25);
}
.nav-item-active:hover {
    color: #164227 !important;
    background: #ffffff;
}

/* ---------- Sub-page secondary nav (used on clinic-detail pages) ---------- */
.subnav {
    position: sticky;
    top: 56px; /* stick below the fixed main nav; the page-context above scrolls away with the page */
    z-index: 20;
    background: #ffffff;
    border-bottom: 1px solid rgba(20, 32, 26, 0.08);
    box-shadow: 0 1px 2px rgba(20, 32, 26, 0.03);
}
.subnav-inner {
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    gap: 0.25rem;
    padding: 0 1rem;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}
.subnav-inner::-webkit-scrollbar { display: none; }
.subnav a {
    flex: 0 0 auto;
    display: inline-block;
    padding: 0.9rem 0.9rem;
    font-size: 0.95rem;
    font-weight: 600;
    color: #4b5563;
    text-decoration: none;
    border-bottom: 2px solid transparent;
    transition: color .2s ease, border-color .2s ease;
    white-space: nowrap;
}
.subnav a:hover { color: #2f6e48; }
.subnav a.active { color: #2f6e48; border-bottom-color: #2f6e48; }

/* Distinct brand-style first item — reads as a page/clinic label, not a tab */
.subnav a.subnav-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.55rem 1.25rem 0.55rem 0.75rem;
    margin-right: 0.75rem;
    border-bottom: none;
    border-right: 1px solid rgba(20, 32, 26, 0.10);
}
.subnav a.subnav-brand:hover { color: inherit; }
.subnav-brand-accent {
    display: inline-block;
    width: 5px;
    height: 30px;
    border-radius: 3px;
    background: #2f6e48;
    flex-shrink: 0;
}
.subnav-brand-text {
    display: inline-flex;
    flex-direction: column;
    line-height: 1;
}
.subnav-brand-label {
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(20, 32, 26, 0.45);
    margin-bottom: 0.28rem;
}
.subnav-brand-name {
    font-family: 'Manrope', 'Source Sans Pro', system-ui, sans-serif;
    font-size: 1.05rem;
    font-weight: 700;
    color: #164227;
    letter-spacing: -0.01em;
}

/* ---------- Section banner heading (little corner label + framed section) ---------- */
.section-banner {
    position: relative;
    background: rgba(122, 155, 113, 0.08);
    border: 1px solid rgba(47, 110, 72, 0.15);
    border-radius: 12px;
    padding: 3.5rem 1.5rem 2rem;
    margin-top: 2rem;
}
.section-banner-label {
    position: absolute;
    top: -1px;
    left: 1.5rem;
    background: #2f6e48;
    color: #ffffff;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    padding: 0.55rem 1rem;
    border-radius: 0 0 8px 8px;
}
@media (max-width: 640px) {
    .section-banner { padding: 3rem 1rem 1.5rem; }
    .section-banner-label { left: 1rem; padding: 0.45rem 0.75rem; }
}

/* ---------- Provider row (photo + bio + CTA) ---------- */
.provider-row {
    display: grid;
    grid-template-columns: 140px 1fr;
    gap: 1.5rem;
    align-items: start;
    padding: 1.75rem 0;
    border-bottom: 1px solid rgba(20, 32, 26, 0.06);
}
.provider-row:last-child { border-bottom: none; }
.provider-avatar {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    object-fit: cover;
    background: rgba(122, 155, 113, 0.14);
    box-shadow: 0 8px 24px -10px rgba(20, 32, 26, 0.2);
}
/* Wraps the avatar as a link to the provider's bio — a subtle hover so it's
   discoverable as clickable without competing with the "Read Bio" button. */
.provider-avatar-link {
    display: inline-block;
    line-height: 0;
    transition: transform .2s ease, box-shadow .2s ease;
    border-radius: 50%;
}
.provider-avatar-link:hover .provider-avatar {
    box-shadow: 0 10px 28px -8px rgba(47, 110, 72, 0.35);
}
.provider-avatar-link:hover { transform: translateY(-1px); }
.provider-actions {
    margin-top: 0.9rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    align-items: center;
}
@media (max-width: 640px) {
    .provider-row { grid-template-columns: 1fr; text-align: center; }
    .provider-avatar { margin: 0 auto; width: 120px; height: 120px; }
    .provider-actions { justify-content: center; }
}

/* ---------- Pill buttons (small outline + solid) ---------- */
.pill-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.55rem 1.1rem;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    transition: background-color .2s ease, color .2s ease, transform .2s ease, box-shadow .2s ease;
    line-height: 1.2;
}
.pill-btn-solid {
    background: #799771;
    color: #ffffff;
    box-shadow: 0 6px 14px -6px rgba(47, 110, 72, 0.5);
}
.pill-btn-solid:hover { background: #2f6e48; transform: translateY(-1px); }
.pill-btn-outline {
    background: #ffffff;
    color: #2f6e48;
    border: 1px solid rgba(47, 110, 72, 0.35);
}
.pill-btn-outline:hover { background: rgba(122, 155, 113, 0.12); }

/* ---------- Warning callout (used on service-detail pages for ER red-flags) ---------- */
.warning-panel {
    background: #fff5f5;
    border: 1px solid rgba(220, 38, 38, 0.15);
    border-left: 4px solid #dc2626;
    border-radius: 12px;
    padding: 1.5rem 1.75rem;
}
.warning-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(220, 38, 38, 0.10);
}
.warning-item:last-child { border-bottom: none; }
.warning-item-icon {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(220, 38, 38, 0.12);
    color: #dc2626;
    font-weight: 700;
    font-size: 0.9rem;
    margin-top: 0.15rem;
}
.warning-item-title {
    color: #b91c1c;
    font-weight: 700;
    font-size: 1.05rem;
    line-height: 1.35;
}
.warning-item-desc {
    color: #6b7280;
    font-size: 0.95rem;
    margin-top: 0.15rem;
    line-height: 1.5;
}

/* Condition-grid card (light green tint, subtle, used on service pages) */
.condition-card {
    background: #ffffff;
    border: 1px solid rgba(47, 110, 72, 0.10);
    border-radius: 12px;
    padding: 1.75rem 1.5rem;
    box-shadow: 0 1px 2px rgba(20, 32, 26, 0.03);
    transition: box-shadow .2s ease, transform .2s ease, border-color .2s ease;
}
.condition-card:hover {
    box-shadow: 0 8px 20px -8px rgba(47, 110, 72, 0.18);
    transform: translateY(-1px);
    border-color: rgba(47, 110, 72, 0.22);
}
.condition-card-title {
    color: #164227;
    font-weight: 700;
    font-size: 1.15rem;
    line-height: 1.3;
}
.condition-card-desc {
    color: #4b5563;
    font-size: 1rem;
    margin-top: 0.6rem;
    line-height: 1.55;
}

/* ---------- Scroll-triggered reveal ---------- */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.16, 0.84, 0.32, 1);
    will-change: opacity, transform;
}
.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
    .reveal { opacity: 1; transform: none; transition: none; }
}

@media only screen and (max-width: 770px ) {
    .google-map {
        opacity: 1;
        width: 100%;
        height: 300px;
        background-image: url('../img/google-map-static-mobile.webp');
        background-size: contain;
        background-repeat: no-repeat;
        background-position: center center;
    }
}

/* large screen, shown by default */
@media only screen and (min-width: 771px ) {
    .google-map {
        opacity: 1;
        width: 100%;
        height: 300px;
        background-image: url('../img/google-map-static-desktop.webp');
        background-size: contain;
        background-repeat: no-repeat;
        background-position: center center;
    }
}