/* Explain: Styles for UI components, animations, and layout. */
.eyebrow {
    font-size: 0.75rem;
    font-weight: 900;
    letter-spacing: 0.22em;
    text-transform: uppercase;
}

.hero-cinematic {
    position: relative;
    z-index: 70;
    isolation: isolate;
}

.leaf-accent {
    border-radius: 68% 32% 64% 36% / 42% 62% 38% 58%;
}

.quote-card {
    position: relative;
    z-index: 75;
    border: 1px solid color-mix(in srgb, var(--sage-color) 46%, transparent);
    background: color-mix(in srgb, var(--cream-color) 94%, transparent);
    box-shadow: var(--shadow-soft);
    backdrop-filter: blur(18px);
}

.quote-card.is-dismissed {
    display: none;
}

.quote-card .quote-close {
    opacity: 0;
    pointer-events: none;
    visibility: hidden;
}

.quote-card.is-floating .quote-close {
    opacity: 1;
    pointer-events: auto;
    visibility: visible;
}

.quote-card::before,
.ivory-panel::before {
    content: "";
    position: absolute;
    inset: 0.8rem;
    pointer-events: none;
    border: 1px solid color-mix(in srgb, var(--sage-color) 30%, transparent);
    border-radius: inherit;
}

.ivory-panel {
    position: relative;
    border: 1px solid color-mix(in srgb, var(--forest-color) 16%, transparent);
    border-radius: 2rem;
    background: color-mix(in srgb, var(--surface-color) 76%, transparent);
    box-shadow: var(--shadow-soft);
    backdrop-filter: blur(14px);
}

.credibility-item {
    display: flex;
    min-height: 4rem;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    border-radius: 999px 2rem 999px 2rem;
    color: var(--charcoal-color);
    font-size: 0.92rem;
    font-weight: 800;
}

/* Scroll Reveal Animations */
.reveal-on-scroll {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Micro-interactions for buttons */
.btn {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn:active {
    transform: scale(0.96) !important;
}

.service-card,
.project-card,
.timeline-card,
.faq-card,
.benefit-card {
    border: 1px solid var(--border-color);
    border-radius: 2rem;
    background: color-mix(in srgb, var(--surface-color) 82%, transparent);
    box-shadow: var(--shadow-card);
    transition: transform 300ms ease, border-color 300ms ease, background 300ms ease, box-shadow 300ms ease;
}

.review-card {
    border: 1px solid color-mix(in srgb, var(--cream-color) 16%, transparent);
    border-radius: 2rem;
    background: color-mix(in srgb, var(--cream-color) 10%, transparent);
    box-shadow: var(--shadow-card);
    transition: transform 300ms ease, border-color 300ms ease, background 300ms ease;
}

.service-card:hover,
.project-card:hover,
.timeline-card:hover,
.benefit-card:hover {
    transform: translateY(-0.35rem);
    border-color: color-mix(in srgb, var(--sage-color) 60%, transparent);
    background: color-mix(in srgb, var(--surface-color) 94%, transparent);
}

.review-card:hover {
    transform: translateY(-0.35rem);
    border-color: color-mix(in srgb, var(--sage-color) 58%, transparent);
    background: color-mix(in srgb, var(--cream-color) 16%, transparent);
}

.mobile-form-float {
    position: fixed;
    left: 1rem;
    right: 1rem;
    bottom: 1rem;
    z-index: 89;
    display: none;
    opacity: 0;
    pointer-events: none;
    transform: translateY(0.75rem);
}

.mobile-form-float.is-visible {
    display: inline-flex;
    opacity: 0.96;
    pointer-events: auto;
    transform: translateY(0);
}

.floating-contact-open {
    position: fixed;
    right: 1rem;
    bottom: 1rem;
    z-index: 89;
    display: none;
    opacity: 0;
    pointer-events: none;
    transform: translateY(0.75rem);
    box-shadow: 0 1.2rem 3rem color-mix(in srgb, var(--charcoal-color) 28%, transparent);
}

.floating-contact-open.is-visible {
    display: inline-flex;
    opacity: 0.96;
    pointer-events: auto;
    transform: translateY(0);
}

@media (min-width: 1024px) {
    .quote-card.is-floating {
        position: fixed;
        right: 1.25rem;
        bottom: 40%;
        z-index: 88;
        width: min(28rem, calc(100vw - 2.5rem));
        max-height: calc(100vh - 2rem);
        overflow-y: auto;
        opacity: 0.9;
        transform: translateY(50%);
        transition: opacity 300ms ease, transform 300ms ease, box-shadow 300ms ease;
    }

    .quote-card.is-floating:hover,
    .quote-card.is-floating:focus-within {
        opacity: 1;
        transform: translateY(50%) scale(1.01);
    }
}

.service-dot {
    display: inline-flex;
    height: 3.25rem;
    width: 3.25rem;
    align-items: center;
    justify-content: center;
    border-radius: 68% 32% 64% 36% / 42% 62% 38% 58%;
    background: color-mix(in srgb, var(--sage-color) 24%, var(--cream-color));
    color: var(--forest-color);
}

.project-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    overflow: hidden;
    border-radius: 1.5rem;
}

.project-split img {
    height: 14rem;
    width: 100%;
    object-fit: cover;
}

#callbackStatus.success {
    display: block;
    border: 1px solid color-mix(in srgb, var(--sage-color) 48%, transparent);
    background: color-mix(in srgb, var(--sage-color) 18%, transparent);
    color: var(--charcoal-color);
}

#callbackStatus.error {
    display: block;
    border: 1px solid color-mix(in srgb, var(--clay-color) 45%, transparent);
    background: color-mix(in srgb, var(--clay-color) 14%, transparent);
    color: var(--charcoal-color);
}

#services,
#projects,
#process,
#faq,
#quote-form {
    scroll-margin-top: 6rem;
}

.richtext-content {
    color: var(--charcoal-color);
}

.richtext-content p {
    margin-bottom: 1.25rem;
    line-height: 1.8;
    font-size: 1.125rem;
}

.richtext-content strong,
.richtext-content b {
    font-weight: 800;
    color: var(--forest-color);
}

.richtext-content h1,
.richtext-content h2,
.richtext-content h3,
.richtext-content h4 {
    font-family: var(--font-heading);
    font-weight: 900;
    color: var(--forest-color);
    margin-top: 2rem;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.richtext-content h3 {
    font-size: 1.5rem;
}

.richtext-content ul,
.richtext-content ol {
    margin-inline-start: 1.5rem;
    margin-bottom: 1.5rem;
    font-size: 1.125rem;
    line-height: 1.8;
}

.richtext-content ul {
    list-style-type: disc;
}

.richtext-content ol {
    list-style-type: decimal;
}

.richtext-content li {
    margin-bottom: 0.5rem;
}

.richtext-content li::marker {
    color: var(--sage-color);
}

/* Accessibility Overrides */
html.a11y-large-text {
    font-size: 115% !important;
}

body.a11y-high-contrast {
    --background-color: #000000 !important;
    --surface-color: #111111 !important;
    --cream-color: #1a1a1a !important;
    --text-color: #ffffff !important;
    --charcoal-color: #ffffff !important;
    --forest-color: #00ff00 !important;
    --clay-color: #ffcc00 !important;
    --sage-color: #444444 !important;
    --border-color: #ffff00 !important;
    filter: contrast(1.1);
}

body.a11y-high-contrast img,
body.a11y-high-contrast video {
    filter: grayscale(100%) contrast(120%);
}

body.a11y-highlight-links a,
body.a11y-highlight-links button {
    text-decoration: underline !important;
    text-decoration-color: var(--clay-color) !important;
    text-decoration-thickness: 3px !important;
    text-underline-offset: 4px !important;
}

@media (max-width: 640px) {
    .mobile-form-float {
        bottom: 1rem;
    }

            .floating-contact-open {
            left: 1rem;
            right: 1rem;
            bottom: 1rem;
        }
    }


