/* Explain: Styles for various UI components including buttons, cards, and search elements. */
.logo-mark {
    display: inline-flex;
    min-height: 3rem;
    align-items: center;
    gap: 0.75rem;
    border-radius: 999px;
    border: 1px solid color-mix(in srgb, var(--clean-white-color) 22%, transparent);
    background: color-mix(in srgb, var(--clean-white-color) 10%, transparent);
    padding: 0.45rem 0.85rem 0.45rem 0.45rem;
    color: var(--clean-white-color);
    text-decoration: none;
    backdrop-filter: blur(18px);
}

.logo-mark-icon {
    display: inline-flex;
    height: 2.1rem;
    width: 2.1rem;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--emergency-aqua-color), var(--safety-orange-color));
    color: var(--storm-navy-color);
    font-weight: 900;
}

.trust-pill,
.proof-pill {
    border: 1px solid color-mix(in srgb, var(--clean-white-color) 20%, transparent);
    background: color-mix(in srgb, var(--clean-white-color) 9%, transparent);
    color: var(--clean-white-color);
    backdrop-filter: blur(16px);
}

.cta-call,
.cta-emergency,
.cta-light,
.floating-contact,
.mobile-sticky-contact {
    min-height: 3.15rem;
    border-radius: 999px;
    padding: 0.9rem 1.25rem;
    font-weight: 900;
    text-decoration: none;
    transition: transform 220ms ease, box-shadow 220ms ease, background 220ms ease;
}

.cta-call {
    border: 1px solid color-mix(in srgb, var(--emergency-aqua-color) 45%, transparent);
    background: color-mix(in srgb, var(--emergency-aqua-color) 15%, transparent);
    color: var(--clean-white-color);
}

.cta-call:hover,
.cta-call:focus-visible {
    background: color-mix(in srgb, var(--emergency-aqua-color) 25%, transparent);
    color: var(--clean-white-color);
    transform: translateY(-2px);
}

.cta-whatsapp {
    border: 0 !important;
    background: #25D366 !important;
    color: #ffffff !important;
    box-shadow: 0 18px 50px color-mix(in srgb, #25D366 32%, transparent) !important;
}

.cta-whatsapp:hover,
.cta-whatsapp:focus-visible {
    background: #1EBE5D !important;
    color: #ffffff !important;
    transform: translateY(-2px);
}

.cta-emergency,
.mobile-sticky-contact {
    border: 0;
    background: var(--accent-color);
    color: var(--storm-navy-color);
    box-shadow: 0 18px 50px color-mix(in srgb, var(--safety-orange-color) 32%, transparent);
}

.cta-emergency:hover,
.cta-emergency:focus-visible,
.mobile-sticky-contact:hover,
.mobile-sticky-contact:focus-visible {
    background: color-mix(in srgb, var(--accent-color) 88%, var(--clean-white-color));
    color: var(--storm-navy-color);
    transform: translateY(-2px);
}

.cta-light {
    background: var(--clean-white-color);
    color: var(--storm-navy-color);
}

.cta-light:hover,
.cta-light:focus-visible {
    background: var(--mist-gray-color);
    color: var(--storm-navy-color);
    transform: translateY(-2px);
}

.emergency-form-panel {
    border: 1px solid color-mix(in srgb, var(--clean-white-color) 18%, transparent);
    border-radius: var(--radius-large);
    background: linear-gradient(145deg, color-mix(in srgb, var(--storm-navy-color) 84%, transparent), color-mix(in srgb, var(--storm-navy-color) 66%, transparent));
    box-shadow: var(--shadow-deep);
    backdrop-filter: blur(24px);
}

.emergency-field {
    min-height: 3.25rem;
    border: 1px solid color-mix(in srgb, var(--clean-white-color) 18%, transparent);
    border-radius: 1rem;
    background: color-mix(in srgb, var(--clean-white-color) 95%, transparent);
    color: var(--storm-navy-color);
}

.emergency-field:focus {
    border-color: var(--emergency-aqua-color);
    outline: 3px solid color-mix(in srgb, var(--emergency-aqua-color) 24%, transparent);
}

.service-card,
.reason-card,
.metric-card {
    border: 1px solid var(--border-color);
    border-radius: var(--radius-soft);
    background: color-mix(in srgb, var(--clean-white-color) 94%, transparent);
    box-shadow: 0 18px 55px rgba(11, 31, 51, 0.08);
}

.service-icon,
.reason-icon {
    display: inline-flex;
    height: 3.5rem;
    width: 3.5rem;
    align-items: center;
    justify-content: center;
    border-radius: 1rem;
    background: linear-gradient(135deg, var(--emergency-aqua-color), color-mix(in srgb, var(--emergency-aqua-color) 62%, var(--clean-white-color)));
    color: var(--storm-navy-color);
    box-shadow: 0 14px 35px color-mix(in srgb, var(--emergency-aqua-color) 24%, transparent);
}

.ripple-shape {
    position: absolute;
    pointer-events: none;
    border: 1px solid color-mix(in srgb, var(--emergency-aqua-color) 20%, transparent);
    background: linear-gradient(135deg, color-mix(in srgb, var(--emergency-aqua-color) 17%, transparent), color-mix(in srgb, var(--clean-white-color) 7%, transparent));
    clip-path: polygon(12% 0, 100% 0, 88% 100%, 0 100%);
    filter: blur(0.1px);
}

.ripple-one {
    right: -8rem;
    top: 12%;
    height: 14rem;
    width: 32rem;
    transform: rotate(-10deg);
}

.ripple-two {
    bottom: 8%;
    left: -9rem;
    height: 10rem;
    width: 26rem;
    transform: rotate(12deg);
}

.floating-contact {
    position: fixed;
    right: 1.5rem;
    bottom: 1.5rem;
    z-index: 80;
    display: none;
    align-items: center;
    gap: 0.65rem;
    border: 0;
    background: var(--accent-color);
    color: var(--storm-navy-color);
    box-shadow: var(--shadow-deep);
    opacity: 0;
    pointer-events: none;
    transform: translateY(1rem);
}

.floating-contact.is-visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.mobile-sticky-contact {
    position: fixed;
    right: 0.9rem;
    bottom: 0.9rem;
    left: 0.9rem;
    z-index: 80;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.7rem;
}

.form-overlay {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: none;
    overflow-y: auto;
    background:
        radial-gradient(circle at 20% 10%, color-mix(in srgb, var(--emergency-aqua-color) 22%, transparent), transparent 22rem),
        linear-gradient(145deg, var(--storm-navy-color), color-mix(in srgb, var(--storm-navy-color) 82%, black));
    padding: 1rem;
}

.form-overlay.overlay-open {
    display: block;
}

.close-overlay {
    display: inline-flex;
    min-height: 3rem;
    min-width: 3rem;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    border: 1px solid color-mix(in srgb, var(--clean-white-color) 25%, transparent);
    background: color-mix(in srgb, var(--clean-white-color) 10%, transparent);
    color: var(--clean-white-color);
}

.is-hidden {
    display: none !important;
}

.product-search-box {
    position: relative;
    display: flex;
    align-items: center;
}

.product-search-input {
    width: 100%;
    min-height: 3.35rem;
    border: 1px solid var(--border-color);
    border-radius: 999px;
    background: var(--clean-white-color);
    color: var(--storm-navy-color);
    padding: 0.9rem 3.5rem 0.9rem 3.4rem;
    font-size: 1rem;
    box-shadow: 0 18px 45px rgba(44, 36, 33, 0.08);
    transition: border-color 200ms ease, box-shadow 200ms ease;
}

.product-search-input:focus {
    border-color: var(--emergency-aqua-color);
    outline: 3px solid color-mix(in srgb, var(--emergency-aqua-color) 20%, transparent);
}

.product-search-input::placeholder {
    color: var(--text-muted);
}

.product-search-icon {
    position: absolute;
    left: 1.3rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--accent-color);
    pointer-events: none;
}

.product-search-clear {
    position: absolute;
    right: 0.7rem;
    top: 50%;
    transform: translateY(-50%);
    display: inline-flex;
    height: 2.35rem;
    width: 2.35rem;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    border: 0;
    background: var(--mist-gray-color);
    color: var(--storm-navy-color);
    cursor: pointer;
    transition: background 200ms ease, color 200ms ease;
}

.product-search-clear:hover,
.product-search-clear:focus-visible {
    background: var(--emergency-aqua-color);
    color: var(--clean-white-color);
}

.product-search-results {
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 0.55rem);
    z-index: 40;
    max-height: 22rem;
    overflow-y: auto;
    border-radius: var(--radius-soft);
    border: 1px solid var(--border-color);
    background: var(--clean-white-color);
    box-shadow: var(--shadow-deep);
}

.search-result-item {
    display: flex;
    width: 100%;
    align-items: center;
    gap: 0.85rem;
    padding: 0.9rem 1.1rem;
    border: 0;
    border-bottom: 1px solid var(--border-color);
    background: transparent;
    color: var(--storm-navy-color);
    text-align: left;
    cursor: pointer;
    transition: background 180ms ease;
}

.search-result-item:last-child {
    border-bottom: 0;
}

.search-result-item:hover,
.search-result-item:focus-visible {
    background: var(--mist-gray-color);
    outline: none;
}

.search-result-icon {
    color: var(--accent-color);
}

.search-result-label {
    flex: 1;
    font-weight: 700;
    font-size: 0.95rem;
}

.search-result-arrow {
    color: var(--text-muted);
    font-size: 0.8rem;
}

@media (min-width: 768px) {
    .floating-contact {
        display: inline-flex;
    }

    .mobile-sticky-contact {
        display: none;
    }
}
