/* Explain: Styles for various UI components, animations, and illustrations. */
.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,
.paw-badge {
    border-radius: 54% 46% 62% 38% / 52% 58% 42% 48%;
}

.bubble-orb {
    position: absolute;
    border-radius: 999px;
    background: color-mix(in srgb, var(--cream-color) 72%, transparent);
    border: 1px solid color-mix(in srgb, var(--primary-color) 42%, transparent);
    box-shadow: inset 0 0 2rem color-mix(in srgb, var(--primary-color) 18%, transparent);
    animation: bubbleDrift 7s ease-in-out infinite;
}

.bubble-orb:nth-child(2n) {
    animation-delay: -2s;
}

.bubble-orb:nth-child(3n) {
    animation-delay: -4s;
}

.bubble-icon {
    animation: iconWiggle 2.6s ease-in-out infinite;
    transform-origin: center;
}

.quote-card {
    position: relative;
    z-index: 75;
    width: min(36rem, 100%);
    min-height: auto;
    border: 8px solid color-mix(in srgb, var(--cream-color) 86%, transparent);
    border-radius: 3.5rem;
    background:
        radial-gradient(circle at 16% 12%, color-mix(in srgb, var(--secondary-color) 58%, transparent), transparent 9rem),
        radial-gradient(circle at 92% 90%, color-mix(in srgb, var(--primary-color) 18%, transparent), transparent 10rem),
        color-mix(in srgb, var(--cream-color) 96%, 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;
}

.ivory-panel {
    position: relative;
    border: 1px solid color-mix(in srgb, var(--primary-color) 18%, transparent);
    border-radius: 2rem;
    background: color-mix(in srgb, var(--surface-color) 84%, 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;
    color: var(--charcoal-color);
    font-size: 0.92rem;
    font-weight: 900;
}

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

.review-card {
    border: 1px solid color-mix(in srgb, var(--cream-color) 20%, transparent);
    border-radius: 2rem;
    background: color-mix(in srgb, var(--cream-color) 12%, 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,
.gallery-card:hover {
    transform: translateY(-0.35rem);
    border-color: color-mix(in srgb, var(--primary-color) 60%, transparent);
    background: color-mix(in srgb, var(--surface-color) 98%, transparent);
}

.review-card:hover {
    transform: translateY(-0.35rem);
    border-color: color-mix(in srgb, var(--secondary-color) 70%, transparent);
    background: color-mix(in srgb, var(--cream-color) 18%, 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.98;
    pointer-events: auto;
    transform: translateY(0);
}

.floating-contact-open {
    position: fixed;
    right: 1rem;
    bottom: 1rem;
    z-index: 950;
    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.98;
    pointer-events: auto;
    transform: translateY(0);
}

.service-dot {
    display: inline-flex;
    height: 3.25rem;
    width: 3.25rem;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: color-mix(in srgb, var(--secondary-color) 56%, var(--cream-color));
    color: var(--charcoal-color);
}

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

.project-split img,
.gallery-card img {
    width: 100%;
    object-fit: cover;
}

.project-split img {
    height: 14rem;
}

.gallery-card img {
    height: 18rem;
}

.callback-status.success {
    display: block;
    border: 1px solid color-mix(in srgb, var(--primary-color) 50%, transparent);
    background: color-mix(in srgb, var(--primary-color) 16%, transparent);
    color: var(--charcoal-color);
}

.callback-status.error {
    display: block;
    border: 1px solid color-mix(in srgb, var(--accent-color) 48%, transparent);
    background: color-mix(in srgb, var(--accent-color) 14%, transparent);
    color: var(--charcoal-color);
}

#packages,
#addons,
#safety,
#gallery,
#reviews,
#faq,
#booking {
    scroll-margin-top: 6rem;
}

.booking-modal {
    z-index: 1000;
}

.booking-modal::backdrop {
    background: color-mix(in srgb, var(--charcoal-color) 52%, transparent);
    backdrop-filter: blur(8px);
}

@media (min-width: 1024px) {
    .quote-card.is-floating {
        position: fixed;
        left: 1.25rem;
        top: auto;
        bottom: 50%;
        z-index: 88;
        width: min(29rem, calc(100vw - 2.5rem));
        max-height: calc(100vh - 2rem);
        overflow-y: auto;
        opacity: 0.94;
        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);
    }
}

@media (max-width: 1023px) {
    .quote-card {
        position: relative;
        left: auto;
        top: auto;
        margin: 2rem auto 0;
    }
}

@media (max-width: 640px) {
    .quote-card {
        width: min(28rem, 100%);
        min-height: auto;
        border-width: 5px;
        border-radius: 2.5rem;
    }

    .mobile-form-float {
        bottom: 1rem;
    }

    .floating-contact-open {
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        width: 100% !important;
        border-radius: 0 !important;
        padding-top: 1.125rem !important;
        padding-bottom: 1.125rem !important;
        justify-content: center;
        border-top: 1px solid color-mix(in srgb, var(--cream-color) 20%, transparent);
        box-shadow: 0 -4px 20px color-mix(in srgb, var(--charcoal-color) 20%, transparent);
    }
}

@keyframes bubbleDrift {
    0%, 100% {
        transform: translate3d(0, 0, 0) scale(1);
    }
    50% {
        transform: translate3d(0.8rem, -1rem, 0) scale(1.06);
    }
}

@keyframes iconWiggle {
    0%, 100% {
        transform: rotate(0deg) scale(1);
    }
    35% {
        transform: rotate(-8deg) scale(1.08);
    }
    70% {
        transform: rotate(7deg) scale(1.04);
    }
}

@keyframes floatSoft {
    0%, 100% {
        transform: translate3d(0, 0, 0);
    }
    50% {
        transform: translate3d(0, -0.9rem, 0);
    }
}

@keyframes floatOrb {
    0%, 100% {
        transform: translate3d(0, 0, 0) scale(1);
    }
    50% {
        transform: translate3d(0.6rem, -1rem, 0) scale(1.08);
    }
}

@keyframes riseIn {
    from {
        opacity: 0;
        transform: translateY(1.2rem);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulseGlow {
    0%, 100% {
        box-shadow: 0 0 0 0 color-mix(in srgb, var(--primary-color) 42%, transparent);
    }
    50% {
        box-shadow: 0 0 0 0.9rem color-mix(in srgb, var(--primary-color) 0%, transparent);
    }
}

.animate-float {
    animation: floatSoft 4.5s ease-in-out infinite;
}

.animate-float-slow {
    animation: floatSoft 7s ease-in-out infinite;
}

.animate-orb {
    animation: floatOrb 8s ease-in-out infinite;
}

.animate-rise {
    animation: riseIn 0.7s ease both;
}

.animate-pulse-glow {
    animation: pulseGlow 2.4s ease-out infinite;
}

.animate-orbit {
    animation: orbitSpin 26s linear infinite;
}

.animate-orbit-reverse {
    animation: orbitSpin 18s linear infinite reverse;
}

.animate-pulse-ring {
    animation: pulseRing 3s ease-out infinite;
}

@keyframes orbitSpin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes pulseRing {
    0% {
        transform: scale(0.9);
        opacity: 0.85;
    }
    70% {
        transform: scale(1.28);
        opacity: 0;
    }
    100% {
        transform: scale(1.28);
        opacity: 0;
    }
}

.reveal {
    opacity: 0;
    transform: translateY(1.75rem);
    transition: opacity 700ms ease, transform 700ms cubic-bezier(0.22, 1, 0.36, 1);
    will-change: opacity, transform;
}

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

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

.illus-card:hover {
    transform: translateY(-0.35rem);
    border-color: color-mix(in srgb, var(--primary-color) 55%, transparent);
    box-shadow: var(--shadow-soft);
}

.illus-frame {
    position: relative;
    overflow: hidden;
    border-radius: 1.5rem;
    border: 1px solid color-mix(in srgb, var(--border-color) 70%, transparent);
    background:
        radial-gradient(circle at 18% 14%, color-mix(in srgb, var(--primary-color) 14%, transparent), transparent 62%),
        radial-gradient(circle at 86% 88%, color-mix(in srgb, var(--accent-color) 12%, transparent), transparent 62%),
        color-mix(in srgb, var(--cream-color) 92%, transparent);
}

.illus-svg {
    display: block;
    width: 100%;
    height: auto;
}

.illus-svg text {
    font-family: var(--font-body);
    font-size: 9px;
    font-weight: 800;
    text-anchor: middle;
    fill: var(--charcoal-color);
}

.illus-node {
    transform-box: fill-box;
    transform-origin: center;
    animation: illusPulse 2.8s ease-in-out infinite;
}

.illus-node:nth-child(2n) {
    animation-delay: -0.6s;
}

.illus-node:nth-child(3n) {
    animation-delay: -1.4s;
}

.illus-node:nth-child(4n) {
    animation-delay: -2.1s;
}

.illus-link {
    stroke-dasharray: 5 7;
    animation: illusDash 2.4s linear infinite;
}

.illus-flow {
    stroke-dasharray: 9 13;
    animation: illusDash 1.5s linear infinite;
}

.illus-spin {
    transform-box: fill-box;
    transform-origin: center;
    animation: illusSpin 20s linear infinite;
}

.illus-float {
    animation: illusFloat 5s ease-in-out infinite;
}

.illus-float:nth-child(2n) {
    animation-delay: -1.6s;
}

.illus-float:nth-child(3n) {
    animation-delay: -3.2s;
}

.illus-bar {
    transform-box: fill-box;
    transform-origin: center;
    animation: illusBar 3.6s ease-in-out infinite;
}

.illus-bar:nth-child(2n) {
    animation-delay: -0.8s;
}

.illus-bar:nth-child(3n) {
    animation-delay: -1.7s;
}

.illus-bar:nth-child(4n) {
    animation-delay: -2.5s;
}

@keyframes illusDash {
    to {
        stroke-dashoffset: -48;
    }
}

@keyframes illusPulse {
    0%, 100% {
        opacity: 0.45;
        transform: scale(0.82);
    }
    50% {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes illusSpin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes illusFloat {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-5px);
    }
}

@keyframes illusBar {
    0%, 100% {
        transform: scaleX(0.94);
        opacity: 0.65;
    }
    50% {
        transform: scaleX(1);
        opacity: 1;
    }
}

@keyframes illusHue {
    from {
        filter: hue-rotate(0deg);
    }
    to {
        filter: hue-rotate(360deg);
    }
}

@keyframes illusPulseFast {
    0%, 100% {
        opacity: 0.4;
        transform: scale(0.78);
    }
    50% {
        opacity: 1;
        transform: scale(1.14);
    }
}

@keyframes illusDrift {
    0%, 100% {
        transform: translate3d(0, 0, 0) rotate(0deg);
    }
    50% {
        transform: translate3d(0.5rem, -0.7rem, 0) rotate(7deg);
    }
}

.illus-rainbow {
    animation: illusHue 7s linear infinite;
}

.illus-pulse-fast {
    transform-box: fill-box;
    transform-origin: center;
    animation: illusPulseFast 1.9s ease-in-out infinite;
}

.illus-pulse-fast:nth-child(2n) {
    animation-delay: -0.6s;
}

.illus-pulse-fast:nth-child(3n) {
    animation-delay: -1.3s;
}

.illus-drift {
    transform-box: fill-box;
    transform-origin: center;
    animation: illusDrift 5.5s ease-in-out infinite;
}

.illus-drift:nth-child(2n) {
    animation-delay: -1.4s;
}

.illus-drift:nth-child(3n) {
    animation-delay: -2.8s;
}

.illus-grow {
    transform-box: fill-box;
    transform-origin: bottom;
    animation: illusGrow 3.4s ease-in-out infinite;
}

.illus-twinkle {
    transform-box: fill-box;
    transform-origin: center;
    animation: illusTwinkle 2.2s ease-in-out infinite;
}

@keyframes illusGrow {
    0%, 100% {
        transform: scaleY(0.68);
        opacity: 0.7;
    }
    50% {
        transform: scaleY(1);
        opacity: 1;
    }
}

@keyframes illusTwinkle {
    0%, 100% {
        opacity: 0.3;
        transform: scale(0.6) rotate(0deg);
    }
    50% {
        opacity: 1;
        transform: scale(1.2) rotate(45deg);
    }
}

.animate-shimmer {
    position: relative;
    overflow: hidden;
}

.animate-shimmer::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(110deg, transparent 18%, color-mix(in srgb, var(--cream-color) 42%, transparent) 50%, transparent 82%);
    transform: translateX(-110%);
    animation: shimmerSweep 4s ease-in-out infinite;
    pointer-events: none;
}

.animate-glow-soft {
    animation: glowSoft 2.8s ease-in-out infinite;
}

@keyframes shimmerSweep {
    0% {
        transform: translateX(-110%);
    }
    60%, 100% {
        transform: translateX(110%);
    }
}

@keyframes glowSoft {
    0%, 100% {
        box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent-color) 45%, transparent);
    }
    50% {
        box-shadow: 0 0 0 0.6rem color-mix(in srgb, var(--accent-color) 0%, transparent);
    }
}

@media (prefers-reduced-motion: reduce) {
    .animate-float,
    .animate-float-slow,
    .animate-orb,
    .animate-rise,
    .animate-pulse-glow,
    .animate-shimmer::after,
    .animate-glow-soft,
    .animate-orbit,
    .animate-orbit-reverse,
    .animate-pulse-ring,
    .bubble-orb,
    .bubble-icon,
    .illus-node,
    .illus-link,
    .illus-flow,
    .illus-spin,
    .illus-float,
    .illus-bar,
    .illus-rainbow,
    .illus-pulse-fast,
    .illus-drift,
    .illus-grow,
    .illus-twinkle {
        animation: none !important;
    }

    .reveal {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }

    .illus-node,
    .illus-bar {
        opacity: 0.92;
        transform: none;
    }
}
