html {
    scroll-behavior: auto;
    /* 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;
}

.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 */
}

/* 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-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;
}

/* ---------- 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;
    }
}