/* ============================================
   HVAC Demo — Custom Styles
   (Most styling via TailwindCSS CDN)
   ============================================ */

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #F5F8FB;
}
::-webkit-scrollbar-thumb {
    background: #59CBE8;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #0B2545;
}

/* Glass blur effect for header */
.glass-blur {
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

/* Entrance animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.animate-fadeInUp {
    animation: fadeInUp 0.6s ease-out forwards;
}

.animate-fadeIn {
    animation: fadeIn 0.5s ease-out forwards;
}

.animate-slideInLeft {
    animation: slideInLeft 0.5s ease-out forwards;
}

.animate-slideInRight {
    animation: slideInRight 0.5s ease-out forwards;
}

/* Staggered animations */
.stagger-1 { animation-delay: 0.1s; }
.stagger-2 { animation-delay: 0.2s; }
.stagger-3 { animation-delay: 0.3s; }
.stagger-4 { animation-delay: 0.4s; }
.stagger-5 { animation-delay: 0.5s; }
.stagger-6 { animation-delay: 0.6s; }

/* Hero gradient */
.hero-gradient {
    background: linear-gradient(135deg, #0B2545 0%, #06172C 60%, #0B2545 100%);
}

/* Accent gradient */
.accent-gradient {
    background: linear-gradient(135deg, #59CBE8, #9FE3F3);
}

/* Card hover lift */
.card-hover {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.card-hover:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(11, 37, 69, 0.12);
}

/* Pulse ring animation for tier badge */
@keyframes pulseRing {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    100% {
        transform: scale(1.5);
        opacity: 0;
    }
}

.pulse-ring {
    animation: pulseRing 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* Admin sidebar active state */
.sidebar-link.active {
    background: rgba(89, 203, 232, 0.15);
    color: #59CBE8;
    border-right: 3px solid #59CBE8;
}

/* Form focus transitions */
input:focus, select:focus, textarea:focus {
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

/* Print styles */
@media print {
    .no-print { display: none !important; }
    body { background: white; }
}

/* SaaS-style floating card shadows */
.saas-shadow {
    box-shadow: 0 4px 24px -4px rgba(11, 37, 69, 0.08),
                0 12px 48px -8px rgba(11, 37, 69, 0.06);
}

/* Glassmorphism card */
.glass-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

/* Gradient text for headings */
.gradient-text {
    background: linear-gradient(135deg, #0B2545, #59CBE8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Smooth hover lift for cards */
.hover-lift {
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                box-shadow 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.hover-lift:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 60px -12px rgba(89, 203, 232, 0.15),
                0 8px 24px -8px rgba(11, 37, 69, 0.1);
}

/* The Service Tech cinematic homepage */
.hero-cinematic {
    isolation: isolate;
}

.hero-cinematic__video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 112%;
    object-fit: cover;
    object-position: center;
    transform: translate3d(0, var(--parallax-y, 0px), 0) scale(1.06);
    filter: saturate(0.9) contrast(1.08) brightness(0.62);
    z-index: 0;
}

.hero-cinematic__scrim {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 18%, rgba(89, 203, 232, 0.26), transparent 30%),
        linear-gradient(90deg, rgba(6, 23, 44, 0.92) 0%, rgba(6, 23, 44, 0.72) 42%, rgba(6, 23, 44, 0.35) 100%),
        linear-gradient(180deg, rgba(6, 23, 44, 0.35) 0%, rgba(6, 23, 44, 0.88) 100%);
    z-index: 1;
}

.hero-cinematic__grain {
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: 0.18;
    background-image:
        linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);
    background-size: 42px 42px;
    mask-image: linear-gradient(to bottom, rgba(0,0,0,0.75), transparent 85%);
    z-index: 2;
}

.cinematic-title {
    text-wrap: balance;
    text-shadow: 0 18px 50px rgba(0, 0, 0, 0.38);
}

.cinematic-chip {
    display: inline-flex;
    align-items: center;
    min-height: 2.35rem;
    padding: 0.45rem 0.85rem;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
}

.cinematic-contact-card {
    transform: translate3d(0, var(--parallax-y, 0px), 0);
    padding: clamp(1.75rem, 3vw, 2.5rem);
    border-radius: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: linear-gradient(145deg, rgba(255,255,255,0.16), rgba(255,255,255,0.06));
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.34);
    backdrop-filter: blur(18px);
}

.cinematic-orb {
    position: absolute;
    border-radius: 999px;
    filter: blur(42px);
    opacity: 0.42;
    transform: translate3d(0, var(--parallax-y, 0px), 0);
    z-index: 3;
    pointer-events: none;
}

.cinematic-orb--one {
    width: 22rem;
    height: 22rem;
    right: -7rem;
    top: 8rem;
    background: rgba(89, 203, 232, 0.26);
}

.cinematic-orb--two {
    width: 18rem;
    height: 18rem;
    left: -6rem;
    bottom: 4rem;
    background: rgba(159, 227, 243, 0.18);
}

.cinematic-section-glow {
    position: absolute;
    width: 34rem;
    height: 34rem;
    right: -12rem;
    top: -8rem;
    border-radius: 999px;
    background: radial-gradient(circle, rgba(89, 203, 232, 0.16), transparent 68%);
    transform: translate3d(0, var(--parallax-y, 0px), 0);
    pointer-events: none;
}

.cinematic-service-card {
    position: relative;
    overflow: hidden;
}

.cinematic-service-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(89, 203, 232, 0.10), transparent 42%);
    opacity: 0;
    transition: opacity 220ms ease;
    pointer-events: none;
}

.cinematic-service-card:hover::before {
    opacity: 1;
}

@media (max-width: 768px) {
    .hero-cinematic {
        min-height: 680px;
    }

    .hero-cinematic__scrim {
        background:
            linear-gradient(180deg, rgba(6, 23, 44, 0.82) 0%, rgba(6, 23, 44, 0.86) 52%, rgba(6, 23, 44, 0.96) 100%);
    }

    .cinematic-chip {
        min-height: 2.15rem;
        font-size: 0.8rem;
    }
}

@media (max-height: 500px) and (orientation: landscape) {
    .hero-cinematic {
        min-height: auto;
    }

    .hero-cinematic .py-20 {
        padding-top: 3rem;
        padding-bottom: 3rem;
    }

    .cinematic-title {
        font-size: clamp(2.25rem, 7vw, 4rem);
    }
}

@media (prefers-reduced-motion: reduce) {
    .hero-cinematic__video,
    .cinematic-contact-card,
    .cinematic-orb,
    .cinematic-section-glow {
        transform: none !important;
    }
}

/* The Service Tech hero overflow guard */
html,
body {
    max-width: 100%;
    overflow-x: hidden;
}

.hero-cinematic {
    width: 100%;
    max-width: 100vw;
}

.hero-cinematic > .relative {
    min-width: 0;
}

.hero-cinematic__video {
    display: block;
}

@media (min-width: 1024px) {
    .hero-cinematic .cinematic-contact-card {
        max-width: 430px;
        margin-left: auto;
    }
}

@media (max-width: 1023px) {
    .hero-cinematic {
        min-height: 680px;
    }
}

/* Hero contact card logo */
.cinematic-contact-logo {
    filter: drop-shadow(0 18px 32px rgba(0, 0, 0, 0.32));
}

@media (max-width: 1280px) {
    .cinematic-contact-logo {
        height: 7rem;
    }
}

/* The Service Tech brand color system */
:root {
    --st-white: #ffffff;
    --st-red: #d8020f;
    --st-black: #000000;
    --st-blue: #0f7198;
    --st-gray: #7f7f7f;
    --st-light-blue: #a4c9d7;
}

body {
    background: var(--st-white);
}

.hero-cinematic__scrim {
    background:
        radial-gradient(circle at 18% 20%, rgba(164, 201, 215, 0.30), transparent 32%),
        radial-gradient(circle at 80% 30%, rgba(216, 2, 15, 0.16), transparent 28%),
        linear-gradient(90deg, rgba(0, 0, 0, 0.92) 0%, rgba(15, 113, 152, 0.74) 45%, rgba(0, 0, 0, 0.48) 100%),
        linear-gradient(180deg, rgba(0, 0, 0, 0.20) 0%, rgba(0, 0, 0, 0.92) 100%);
}

.cinematic-title {
    text-shadow:
        0 18px 50px rgba(0, 0, 0, 0.45),
        0 0 32px rgba(15, 113, 152, 0.18);
}

.cinematic-chip {
    border-color: rgba(164, 201, 215, 0.28);
    background: rgba(15, 113, 152, 0.24);
    color: var(--st-white);
}

.cinematic-contact-card {
    border-color: rgba(164, 201, 215, 0.30);
    background:
        linear-gradient(145deg, rgba(0, 0, 0, 0.72), rgba(15, 113, 152, 0.32)),
        rgba(0, 0, 0, 0.50);
    box-shadow:
        0 24px 80px rgba(0, 0, 0, 0.42),
        0 0 0 1px rgba(255, 255, 255, 0.04);
}

.cinematic-orb--one {
    background: rgba(216, 2, 15, 0.32);
}

.cinematic-orb--two,
.cinematic-section-glow {
    background: rgba(164, 201, 215, 0.18);
}

.cinematic-service-card {
    border-color: rgba(15, 113, 152, 0.10);
}

.cinematic-service-card::before {
    background: linear-gradient(135deg, rgba(216, 2, 15, 0.10), rgba(15, 113, 152, 0.08), transparent 52%);
}

/* Stronger CTA contrast */
a.bg-accent,
button.bg-accent {
    background-color: var(--st-red) !important;
    color: var(--st-white) !important;
}

a.bg-accent:hover,
button.bg-accent:hover,
.hover\:bg-accentLight:hover {
    background-color: #b9020c !important;
    color: var(--st-white) !important;
}

.text-accent {
    color: var(--st-red) !important;
}

.bg-accent\/10 {
    background-color: rgba(216, 2, 15, 0.10) !important;
}

.border-accent,
.hover\:border-accent\/20:hover {
    border-color: rgba(216, 2, 15, 0.45) !important;
}

.bg-primaryDark {
    background-color: var(--st-black) !important;
}

.text-primary {
    color: var(--st-blue) !important;
}

.bg-primary {
    background-color: var(--st-blue) !important;
}

.text-accentLight {
    color: var(--st-light-blue) !important;
}

/* Header polish with brand palette */
header {
    border-bottom-color: rgba(15, 113, 152, 0.12);
}

header a[href="/"].group img {
    filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.12));
}

/* Service page visual lift */
article.group:hover h3,
.cinematic-service-card:hover h3 {
    color: var(--st-red) !important;
}

@media (max-width: 768px) {
    .hero-cinematic__scrim {
        background:
            linear-gradient(180deg, rgba(0, 0, 0, 0.74) 0%, rgba(15, 113, 152, 0.74) 48%, rgba(0, 0, 0, 0.95) 100%);
    }
}

/* Linked hero service chips */
.cinematic-chip-link {
    text-decoration: none;
    transition: transform 180ms ease, border-color 180ms ease, background-color 180ms ease;
}

.cinematic-chip-link:hover {
    transform: translateY(-2px);
    border-color: rgba(216, 2, 15, 0.7);
    background: rgba(216, 2, 15, 0.22);
}

/* Inner page cinematic heroes */
.page-cinematic-hero {
    isolation: isolate;
}

.page-cinematic-hero__video {
    z-index: 0;
    display: block;
    object-fit: cover;
    object-position: center;
    filter: saturate(0.92) contrast(1.08) brightness(0.62);
    transform: scale(1.04);
}

.page-cinematic-hero__scrim {
    z-index: 1;
    background:
        radial-gradient(circle at 18% 20%, rgba(164, 201, 215, 0.30), transparent 32%),
        radial-gradient(circle at 80% 30%, rgba(216, 2, 15, 0.14), transparent 28%),
        linear-gradient(90deg, rgba(0, 0, 0, 0.92) 0%, rgba(15, 113, 152, 0.72) 48%, rgba(0, 0, 0, 0.55) 100%),
        linear-gradient(180deg, rgba(0, 0, 0, 0.18) 0%, rgba(0, 0, 0, 0.90) 100%);
}

.page-cinematic-hero__grain {
    z-index: 2;
    opacity: 0.14;
    background-image:
        linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);
    background-size: 42px 42px;
    mask-image: linear-gradient(to bottom, rgba(0,0,0,0.75), transparent 85%);
}

.page-hero-logo-card,
.page-contact-logo-panel {
    padding: clamp(1.5rem, 3vw, 2.5rem);
    border-radius: 2rem;
    border: 1px solid rgba(164, 201, 215, 0.28);
    background:
        linear-gradient(145deg, rgba(0, 0, 0, 0.72), rgba(15, 113, 152, 0.32)),
        rgba(0, 0, 0, 0.50);
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.38);
    backdrop-filter: blur(18px);
}

.page-contact-logo-panel img,
.page-hero-logo-card img {
    filter: drop-shadow(0 18px 32px rgba(0, 0, 0, 0.34));
}

.contact-action-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    min-height: 5.75rem;
    padding: 1.25rem 1.5rem;
    border-radius: 1.35rem;
    border: 1px solid rgba(15, 113, 152, 0.14);
    background: #ffffff;
    color: var(--st-blue);
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.055);
    transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.contact-action-card:hover {
    transform: translateY(-2px);
    border-color: rgba(216, 2, 15, 0.38);
    box-shadow: 0 24px 55px rgba(0, 0, 0, 0.085);
}

.contact-action-card--red {
    background: var(--st-red);
    color: #ffffff;
    border-color: rgba(216, 2, 15, 0.65);
}

.contact-action-label {
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--st-red);
    margin-bottom: 0.35rem;
}

.contact-action-card--red .contact-action-label {
    color: rgba(255, 255, 255, 0.78);
}

.contact-action-title {
    font-weight: 900;
    font-size: 1rem;
}

.contact-action-arrow {
    font-weight: 900;
    font-size: 1.25rem;
}

.contact-info-feature {
    display: grid;
    grid-template-columns: 180px 1fr;
    gap: 2rem;
    align-items: center;
    padding: clamp(1.5rem, 3vw, 2.5rem);
    border-radius: 2rem;
    background:
        linear-gradient(135deg, rgba(0, 0, 0, 0.94), rgba(15, 113, 152, 0.78)),
        var(--st-black);
    box-shadow: 0 24px 65px rgba(0, 0, 0, 0.18);
}

.contact-info-feature__logo {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 11rem;
    border-radius: 1.5rem;
    background: rgba(255, 255, 255, 0.96);
}

@media (max-width: 900px) {
    .page-cinematic-hero {
        min-height: 480px;
    }

    .contact-info-feature {
        grid-template-columns: 1fr;
    }

    .contact-info-feature__logo {
        min-height: 9rem;
    }
}

@media (max-width: 600px) {
    .page-cinematic-hero {
        min-height: 520px;
    }

    .page-contact-logo-panel {
        margin-top: 1rem;
    }

    .contact-action-card {
        min-height: 5rem;
    }
}

/* Contact hero Chris photo panel */
.page-contact-photo-panel {
    padding: clamp(0.75rem, 1.5vw, 1rem);
    border-radius: 2rem;
    border: 1px solid rgba(164, 201, 215, 0.28);
    background:
        linear-gradient(145deg, rgba(0, 0, 0, 0.74), rgba(15, 113, 152, 0.30)),
        rgba(0, 0, 0, 0.50);
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.38);
    backdrop-filter: blur(18px);
}

.page-contact-photo {
    display: block;
    width: min(100%, 430px);
    max-height: 390px;
    margin-inline: auto;
    border-radius: 1.45rem;
    object-fit: cover;
    object-position: center;
    box-shadow: 0 18px 46px rgba(0, 0, 0, 0.34);
}

@media (max-width: 900px) {
    .page-contact-photo {
        max-height: 340px;
    }
}

/* Show full Chris contact image without cropping */
.page-contact-photo-panel {
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: visible !important;
}

.page-contact-photo {
    width: min(100%, 430px) !important;
    height: auto !important;
    max-height: none !important;
    object-fit: contain !important;
    object-position: center !important;
    border-radius: 1.45rem;
    background: rgba(255, 255, 255, 0.96);
}

/* Force cinematic inner hero copy to readable white */
.page-cinematic-hero p,
.page-cinematic-hero .hero-supporting-copy {
    color: rgba(255, 255, 255, 0.86) !important;
}

.page-cinematic-hero h1,
.page-cinematic-hero h2 {
    color: #ffffff !important;
}

/* Float Chris contact photo without surrounding frame */
.page-contact-photo-panel {
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
    border-radius: 0 !important;
}

.page-contact-photo {
    width: min(100%, 430px) !important;
    height: auto !important;
    max-height: none !important;
    object-fit: contain !important;
    object-position: center !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: 0 28px 70px rgba(0, 0, 0, 0.38) !important;
    filter: drop-shadow(0 18px 36px rgba(0, 0, 0, 0.30));
}

/* Service card WhatsApp CTAs */
.service-whatsapp-cta {
    background: var(--st-red);
    color: #ffffff;
    box-shadow: 0 16px 34px rgba(216, 2, 15, 0.20);
    text-align: center;
}

.service-whatsapp-cta:hover {
    background: #b9020c;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 20px 44px rgba(216, 2, 15, 0.28);
}

/* Service card WhatsApp CTAs */
.service-whatsapp-cta {
    background: var(--st-red);
    color: #ffffff;
    box-shadow: 0 16px 34px rgba(216, 2, 15, 0.20);
    text-align: center;
}

.service-whatsapp-cta:hover {
    background: #b9020c;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 20px 44px rgba(216, 2, 15, 0.28);
}

/* Entire service cards link to WhatsApp */
.service-card-global-link {
    cursor: pointer;
}

.service-card-global-link:hover {
    border-color: rgba(216, 2, 15, 0.38) !important;
}

.service-card-global-link:focus-visible {
    outline: 3px solid rgba(216, 2, 15, 0.55);
    outline-offset: 4px;
}

/* Entire service cards link to WhatsApp */
.service-card-global-link {
    cursor: pointer;
}

.service-card-global-link:hover {
    border-color: rgba(216, 2, 15, 0.38) !important;
}

.service-card-global-link:focus-visible {
    outline: 3px solid rgba(216, 2, 15, 0.55);
    outline-offset: 4px;
}

/* Service cards are the WhatsApp links; old internal buttons are disabled */
.service-whatsapp-cta {
    display: none !important;
}

.service-card-global-link {
    cursor: pointer;
}

.service-card-global-link:hover {
    border-color: rgba(216, 2, 15, 0.38) !important;
}

.service-card-global-link:focus-visible {
    outline: 3px solid rgba(216, 2, 15, 0.55);
    outline-offset: 4px;
}

/* Full service card WhatsApp link behavior */
.service-whatsapp-cta {
    display: none !important;
}

.service-card-global-link {
    cursor: pointer;
    text-decoration: none;
}

.service-card-global-link:hover {
    border-color: rgba(216, 2, 15, 0.42) !important;
}

.service-card-global-link:focus-visible {
    outline: 3px solid rgba(216, 2, 15, 0.55);
    outline-offset: 4px;
}

/* Production polish: light blue brand background */
body,
.bg-background {
    background:
        radial-gradient(circle at 12% 18%, rgba(255, 255, 255, 0.78), transparent 34%),
        linear-gradient(180deg, #ffffff 0%, #eef7fb 18%, #a4c9d7 100%) !important;
}

main {
    background:
        radial-gradient(circle at 85% 26%, rgba(216, 2, 15, 0.08), transparent 30%),
        linear-gradient(180deg, #ffffff 0%, #eef7fb 40%, #a4c9d7 100%);
}

/* Keep cinematic heroes dark and unaffected by page background */
.hero-cinematic,
.page-cinematic-hero {
    background-color: #000000 !important;
}

/* White content cards stay crisp over the light blue field */
section.bg-white {
    background:
        radial-gradient(circle at 92% 12%, rgba(216, 2, 15, 0.07), transparent 30%),
        linear-gradient(180deg, #ffffff 0%, #eef7fb 100%) !important;
}

/* Production copy cleanup */
.contact-info-feature,
.bg-primaryDark {
    box-shadow: 0 24px 65px rgba(0, 0, 0, 0.18);
}

footer {
    background: #000000 !important;
}

/* Production refinement: remove heavy black panels */
footer {
    background:
        radial-gradient(circle at 15% 20%, rgba(255, 255, 255, 0.18), transparent 32%),
        linear-gradient(135deg, #0f7198 0%, #0a5d7e 58%, #a4c9d7 160%) !important;
}

footer,
footer p,
footer li,
footer span,
footer a {
    color: rgba(255, 255, 255, 0.86) !important;
}

footer h4,
footer .font-bold,
footer a:hover {
    color: #ffffff !important;
}

.contact-info-feature {
    background:
        radial-gradient(circle at 18% 18%, rgba(255, 255, 255, 0.22), transparent 34%),
        linear-gradient(135deg, #0f7198 0%, #0b6386 62%, #a4c9d7 150%) !important;
    box-shadow: 0 24px 65px rgba(15, 113, 152, 0.22) !important;
}

.contact-info-feature__logo {
    background: rgba(255, 255, 255, 0.94) !important;
}

/* Replace generic black cards outside the video hero with brand blue */
main .bg-primaryDark:not(.hero-cinematic):not(.page-cinematic-hero) {
    background:
        radial-gradient(circle at 20% 15%, rgba(255, 255, 255, 0.18), transparent 34%),
        linear-gradient(135deg, #0f7198 0%, #0b6386 68%, #a4c9d7 155%) !important;
    color: #ffffff !important;
}

/* Keep page backgrounds light blue and airy */
main {
    background:
        radial-gradient(circle at 85% 18%, rgba(216, 2, 15, 0.055), transparent 28%),
        linear-gradient(180deg, #ffffff 0%, #eef7fb 36%, #a4c9d7 100%) !important;
}

/* Mobile footer spacing and readability */
@media (max-width: 768px) {
    footer {
        background:
            linear-gradient(180deg, #0f7198 0%, #0b6386 72%, #a4c9d7 170%) !important;
    }

    .contact-info-feature {
        background:
            linear-gradient(160deg, #0f7198 0%, #0b6386 70%, #a4c9d7 150%) !important;
    }
}

/* Mobile hero centering */
@media (max-width: 767px) {
    .hero-cinematic,
    .page-cinematic-hero {
        text-align: center;
        align-items: center;
    }

    .hero-cinematic .grid,
    .page-cinematic-hero .grid {
        justify-items: center;
        text-align: center;
    }

    .hero-cinematic h1,
    .page-cinematic-hero h1,
    .hero-cinematic p,
    .page-cinematic-hero p {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-cinematic h1,
    .page-cinematic-hero h1 {
        max-width: 22rem;
    }

    .hero-cinematic p,
    .page-cinematic-hero p {
        max-width: 21rem;
    }

    .hero-cinematic .inline-flex,
    .page-cinematic-hero .inline-flex {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-cinematic .flex.flex-wrap,
    .page-cinematic-hero .flex.flex-wrap {
        justify-content: center;
    }

    .hero-cinematic .flex.flex-wrap a,
    .page-cinematic-hero .flex.flex-wrap a {
        min-width: 9.5rem;
    }

    .page-contact-photo-panel {
        width: min(100%, 320px) !important;
        margin-left: auto !important;
        margin-right: auto !important;
        margin-top: 1.25rem !important;
    }

    .page-contact-photo {
        width: min(100%, 320px) !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }

    .page-hero-logo-card,
    .page-contact-logo-panel {
        margin-left: auto;
        margin-right: auto;
    }

    .cinematic-contact-card {
        margin-left: auto;
        margin-right: auto;
    }
}

@media (max-width: 420px) {
    .hero-cinematic h1,
    .page-cinematic-hero h1 {
        max-width: 20rem;
        font-size: clamp(2.15rem, 11vw, 3rem);
    }

    .hero-cinematic .flex.flex-wrap a,
    .page-cinematic-hero .flex.flex-wrap a {
        width: 100%;
        max-width: 18rem;
    }

    .page-contact-photo-panel {
        width: min(100%, 300px) !important;
    }

    .page-contact-photo {
        width: min(100%, 300px) !important;
    }
}

/* Hero status dot */
.hero-cinematic .inline-flex span.relative.flex.h-2.w-2 > span {
    background-color: #00BE00 !important;
}

/* Service area links */
.service-area-link-wrap {
    align-items: center;
}

.service-area-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: transform 180ms ease, border-color 180ms ease, background-color 180ms ease;
}

.service-area-link:hover {
    transform: translateY(-2px);
    border-color: rgba(216, 2, 15, 0.62) !important;
    background: rgba(216, 2, 15, 0.18) !important;
    color: #ffffff !important;
}

@media (max-width: 767px) {
    .service-area-link-wrap {
        justify-content: center !important;
        text-align: center;
    }

    .service-area-link-wrap + *,
    .contact-info-feature,
    main .bg-primaryDark {
        text-align: center;
    }

    .contact-info-feature .service-area-link-wrap {
        justify-content: center !important;
    }
}

/* Site-wide production animation system */
:root {
    --motion-fast: 180ms;
    --motion-mid: 420ms;
    --motion-slow: 720ms;
    --motion-ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* Initial reveal state */
[data-reveal] {
    opacity: 0;
    transform: translate3d(0, 24px, 0);
    transition:
        opacity var(--motion-slow) var(--motion-ease),
        transform var(--motion-slow) var(--motion-ease);
    will-change: opacity, transform;
}

[data-reveal].is-visible {
    opacity: 1;
    transform: translate3d(0, 0, 0);
}

[data-reveal="fade"] {
    transform: none;
}

[data-reveal="left"] {
    transform: translate3d(-28px, 0, 0);
}

[data-reveal="right"] {
    transform: translate3d(28px, 0, 0);
}

[data-reveal="scale"] {
    transform: scale(0.96);
}

[data-reveal="scale"].is-visible {
    transform: scale(1);
}

/* Hero load animation */
.hero-cinematic h1,
.page-cinematic-hero h1 {
    animation: stHeroTitle 900ms var(--motion-ease) both;
}

.hero-cinematic p,
.page-cinematic-hero p {
    animation: stHeroCopy 950ms var(--motion-ease) 120ms both;
}

.hero-cinematic .flex.flex-wrap,
.page-cinematic-hero .flex.flex-wrap {
    animation: stHeroCopy 950ms var(--motion-ease) 220ms both;
}

.hero-cinematic .cinematic-chip,
.page-cinematic-hero .inline-flex:first-child {
    animation: stHeroBadge 700ms var(--motion-ease) both;
}

.cinematic-contact-card,
.page-contact-photo-panel,
.page-hero-logo-card,
.page-contact-logo-panel {
    animation: stHeroCard 950ms var(--motion-ease) 180ms both;
}

/* Soft background movement */
.hero-cinematic__video,
.page-cinematic-hero__video {
    animation: stSlowZoom 18s ease-in-out infinite alternate;
}

.cinematic-orb {
    animation: stFloat 8s ease-in-out infinite alternate;
}

/* Hover motion */
a,
button,
.service-card-global-link,
.contact-action-card,
.cinematic-service-card,
article.group {
    transition:
        transform var(--motion-fast) ease,
        box-shadow var(--motion-fast) ease,
        border-color var(--motion-fast) ease,
        background-color var(--motion-fast) ease,
        color var(--motion-fast) ease;
}

.service-card-global-link:hover,
.contact-action-card:hover,
.cinematic-service-card:hover,
article.group:hover {
    transform: translateY(-4px);
}

/* Service-area chip motion */
.service-area-link,
.cinematic-chip-link,
.cinematic-chip {
    transition:
        transform var(--motion-fast) ease,
        background-color var(--motion-fast) ease,
        border-color var(--motion-fast) ease,
        box-shadow var(--motion-fast) ease;
}

.service-area-link:hover,
.cinematic-chip-link:hover {
    transform: translateY(-2px) scale(1.02);
}

/* Footer polish */
footer a {
    transition: color var(--motion-fast) ease, transform var(--motion-fast) ease;
}

footer a:hover {
    transform: translateX(2px);
}

/* Keyframes */
@keyframes stHeroTitle {
    from {
        opacity: 0;
        transform: translate3d(0, 28px, 0) scale(0.985);
        filter: blur(4px);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0) scale(1);
        filter: blur(0);
    }
}

@keyframes stHeroCopy {
    from {
        opacity: 0;
        transform: translate3d(0, 18px, 0);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

@keyframes stHeroBadge {
    from {
        opacity: 0;
        transform: translate3d(0, -10px, 0) scale(0.96);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0) scale(1);
    }
}

@keyframes stHeroCard {
    from {
        opacity: 0;
        transform: translate3d(24px, 0, 0) scale(0.97);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0) scale(1);
    }
}

@keyframes stSlowZoom {
    from {
        transform: translate3d(0, var(--parallax-y, 0px), 0) scale(1.04);
    }
    to {
        transform: translate3d(0, var(--parallax-y, 0px), 0) scale(1.09);
    }
}

@keyframes stFloat {
    from {
        transform: translate3d(0, var(--parallax-y, 0px), 0) scale(1);
    }
    to {
        transform: translate3d(8px, calc(var(--parallax-y, 0px) - 14px), 0) scale(1.04);
    }
}

/* Disable motion for users who request reduced motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 1ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: 1ms !important;
    }

    [data-reveal] {
        opacity: 1 !important;
        transform: none !important;
    }
}

/* Homepage testimonials */
.home-testimonials-section {
    background:
        radial-gradient(circle at 15% 20%, rgba(255, 255, 255, 0.78), transparent 32%),
        linear-gradient(135deg, #ffffff 0%, #eef7fb 42%, #a4c9d7 135%);
}

.testimonial-card {
    min-height: 17rem;
    padding: 1.75rem;
    border-radius: 1.5rem;
    border: 1px solid rgba(15, 113, 152, 0.12);
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 22px 55px rgba(15, 113, 152, 0.12);
    transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.testimonial-card:hover {
    transform: translateY(-4px);
    border-color: rgba(216, 2, 15, 0.32);
    box-shadow: 0 28px 70px rgba(15, 113, 152, 0.18);
}

.testimonial-stars {
    color: #d8020f;
    letter-spacing: 0.08em;
    font-size: 0.9rem;
    font-weight: 900;
    margin-bottom: 1rem;
}

.testimonial-card h3 {
    color: #0f7198;
    font-size: 1.15rem;
    font-weight: 900;
    margin-bottom: 0.75rem;
}

.testimonial-card p {
    color: #4f5f66;
    font-size: 0.95rem;
    line-height: 1.65;
}

@media (max-width: 767px) {
    .home-testimonials-section {
        text-align: center;
    }

    .testimonial-card {
        min-height: auto;
    }
}

/* Real Google review cards */
.testimonial-card-real {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.testimonial-quote {
    color: #4f5f66;
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.testimonial-author {
    padding-top: 1rem;
    border-top: 1px solid rgba(15, 113, 152, 0.12);
}

.testimonial-author strong {
    display: block;
    color: #0f7198;
    font-weight: 900;
    margin-bottom: 0.25rem;
}

.testimonial-author span {
    display: block;
    color: #7f7f7f;
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

/* Services page mobile centering */
@media (max-width: 767px) {
    /* Main focus card and service notes card */
    .services-intro-card,
    #residential-hvac,
    #residential-hvac + div,
    main .grid.lg\:grid-cols-\[0\.9fr_1\.1fr\] > div {
        text-align: center !important;
    }

    #residential-hvac .flex,
    main .grid.lg\:grid-cols-\[0\.9fr_1\.1fr\] > div .flex {
        justify-content: center !important;
    }

    #residential-hvac a,
    main .grid.lg\:grid-cols-\[0\.9fr_1\.1fr\] > div a {
        justify-content: center !important;
    }

    /* Improve button layout on small screens */
    #residential-hvac .flex.flex-wrap {
        display: grid !important;
        grid-template-columns: 1fr;
        gap: 0.75rem;
        width: 100%;
        max-width: 18rem;
        margin-left: auto;
        margin-right: auto;
    }

    #residential-hvac .flex.flex-wrap a {
        width: 100%;
    }

    /* Service Notes card readability */
    main .grid.lg\:grid-cols-\[0\.9fr_1\.1fr\] > div.bg-white {
        max-width: 22rem;
        margin-left: auto;
        margin-right: auto;
    }

    main .grid.lg\:grid-cols-\[0\.9fr_1\.1fr\] {
        justify-items: center !important;
    }
}

/* Visible homepage testimonials */
.visible-testimonials,
.home-testimonials-section {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
    background:
        radial-gradient(circle at 15% 20%, rgba(255, 255, 255, 0.78), transparent 32%),
        linear-gradient(135deg, #ffffff 0%, #eef7fb 42%, #a4c9d7 135%) !important;
}

.home-testimonials-section [data-reveal],
.visible-testimonials [data-reveal] {
    opacity: 1 !important;
    transform: none !important;
}

.testimonial-card-real {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 19rem;
}

.testimonial-quote {
    color: #4f5f66;
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.testimonial-author {
    padding-top: 1rem;
    border-top: 1px solid rgba(15, 113, 152, 0.12);
}

.testimonial-author strong {
    display: block;
    color: #0f7198;
    font-weight: 900;
    margin-bottom: 0.25rem;
}

.testimonial-author span {
    display: block;
    color: #7f7f7f;
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

/* Forced homepage testimonials */
.force-testimonials,
.home-testimonials-section {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
    background:
        radial-gradient(circle at 15% 20%, rgba(255, 255, 255, 0.88), transparent 32%),
        linear-gradient(135deg, #ffffff 0%, #eef7fb 42%, #a4c9d7 135%) !important;
}

.force-testimonials * {
    visibility: visible !important;
}

.testimonial-card-real {
    display: flex !important;
    flex-direction: column;
    justify-content: space-between;
    min-height: 19rem;
    padding: 1.75rem;
    border-radius: 1.5rem;
    border: 1px solid rgba(15, 113, 152, 0.12);
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 22px 55px rgba(15, 113, 152, 0.12);
}

.testimonial-stars {
    color: #d8020f;
    letter-spacing: 0.08em;
    font-size: 0.9rem;
    font-weight: 900;
    margin-bottom: 1rem;
}

.testimonial-quote {
    color: #4f5f66;
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.testimonial-author {
    padding-top: 1rem;
    border-top: 1px solid rgba(15, 113, 152, 0.12);
}

.testimonial-author strong {
    display: block;
    color: #0f7198;
    font-weight: 900;
    margin-bottom: 0.25rem;
}

.testimonial-author span {
    display: block;
    color: #7f7f7f;
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

@media (max-width: 767px) {
    .force-testimonials {
        text-align: center;
    }

    .testimonial-card-real {
        min-height: auto;
    }
}

/* Service page SEO FAQ */
.service-faq-section {
    background:
        radial-gradient(circle at 20% 15%, rgba(255, 255, 255, 0.88), transparent 34%),
        linear-gradient(135deg, #ffffff 0%, #eef7fb 44%, #a4c9d7 140%);
}

.service-faq-group {
    padding: 1.5rem;
    border-radius: 1.75rem;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(15, 113, 152, 0.12);
    box-shadow: 0 24px 60px rgba(15, 113, 152, 0.10);
}

.service-faq-group h3 {
    color: #0f7198;
    font-size: 1.25rem;
    line-height: 1.2;
    font-weight: 950;
    margin-bottom: 1rem;
}

.service-faq-item {
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(15, 113, 152, 0.10);
    border-radius: 1.1rem;
    padding: 1rem 1.1rem;
    box-shadow: 0 12px 34px rgba(15, 113, 152, 0.07);
}

.service-faq-item summary {
    cursor: pointer;
    color: #0f7198;
    font-weight: 900;
    line-height: 1.35;
    list-style-position: outside;
}

.service-faq-item summary::marker {
    color: #d8020f;
}

.service-faq-item p {
    color: #4f5f66;
    line-height: 1.7;
    margin-top: 0.85rem;
    font-size: 0.95rem;
}

.service-faq-cta {
    max-width: 48rem;
    margin-left: auto;
    margin-right: auto;
}

@media (max-width: 767px) {
    .service-faq-section {
        text-align: center;
    }

    .service-faq-group {
        padding: 1rem;
    }

    .service-faq-item {
        text-align: left;
    }

    .service-faq-item p {
        text-align: left;
    }
}

/* Visible services FAQ section */
.service-faq-section {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    background:
        radial-gradient(circle at 20% 15%, rgba(255, 255, 255, 0.88), transparent 34%),
        linear-gradient(135deg, #ffffff 0%, #eef7fb 44%, #a4c9d7 140%);
}

.service-faq-group {
    padding: 1.5rem;
    border-radius: 1.75rem;
    background: rgba(255, 255, 255, 0.76);
    border: 1px solid rgba(15, 113, 152, 0.12);
    box-shadow: 0 24px 60px rgba(15, 113, 152, 0.10);
}

.service-faq-group h3 {
    color: #0f7198;
    font-size: 1.25rem;
    line-height: 1.2;
    font-weight: 950;
    margin-bottom: 1rem;
}

.service-faq-item {
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(15, 113, 152, 0.10);
    border-radius: 1.1rem;
    padding: 1rem 1.1rem;
    box-shadow: 0 12px 34px rgba(15, 113, 152, 0.07);
}

.service-faq-item summary {
    cursor: pointer;
    color: #0f7198;
    font-weight: 900;
    line-height: 1.35;
}

.service-faq-item summary::marker {
    color: #d8020f;
}

.service-faq-item p {
    color: #4f5f66;
    line-height: 1.7;
    margin-top: 0.85rem;
    font-size: 0.95rem;
}

@media (max-width: 767px) {
    .service-faq-section {
        text-align: center;
    }

    .service-faq-group {
        padding: 1rem;
    }

    .service-faq-item,
    .service-faq-item p {
        text-align: left;
    }
}

/* Service card WhatsApp click restoration */
.service-whatsapp-card-active {
    position: relative !important;
    cursor: pointer !important;
    transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.service-whatsapp-card-active:hover {
    transform: translateY(-4px);
    border-color: rgba(216, 2, 15, 0.35) !important;
    box-shadow: 0 28px 70px rgba(216, 2, 15, 0.12) !important;
}

.service-whatsapp-card-active:focus-visible {
    outline: 3px solid rgba(216, 2, 15, 0.45);
    outline-offset: 4px;
}

.service-whatsapp-card-hint {
    margin-top: 1.4rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(15, 113, 152, 0.12);
    color: #d8020f;
    font-size: 0.82rem;
    font-weight: 950;
    letter-spacing: 0.01em;
}

@media (max-width: 767px) {
    .service-whatsapp-card-hint {
        text-align: center;
    }
}

/* Targeted service card click cue */
.service-card-global-link {
    cursor: pointer !important;
}

.service-card-click-cue {
    margin-top: 1.4rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(15, 113, 152, 0.12);
    color: #d8020f;
    font-size: 0.82rem;
    font-weight: 950;
    letter-spacing: 0.01em;
}

.service-card-global-link:hover .service-card-click-cue {
    color: #0f7198;
}

@media (max-width: 767px) {
    .service-card-click-cue {
        text-align: center;
    }
}

/* Direct services-grid WhatsApp anchor fix */
.service-card-global-link {
    cursor: pointer !important;
    color: inherit !important;
    text-decoration: none !important;
}

.service-card-click-cue {
    margin-top: 1.4rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(15, 113, 152, 0.12);
    color: #d8020f;
    font-size: 0.82rem;
    font-weight: 950;
    letter-spacing: 0.01em;
}

.service-card-global-link:hover .service-card-click-cue {
    color: #0f7198;
}

/* Direct real-link service cards */
a.service-card-global-link {
    display: block !important;
    cursor: pointer !important;
    color: inherit !important;
    text-decoration: none !important;
}

a.service-card-global-link:hover {
    border-color: rgba(216, 2, 15, 0.35) !important;
    box-shadow: 0 28px 70px rgba(216, 2, 15, 0.12) !important;
}

a.service-card-global-link:focus-visible {
    outline: 3px solid rgba(216, 2, 15, 0.45);
    outline-offset: 5px;
}

.service-card-click-cue {
    margin-top: 1.4rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(15, 113, 152, 0.12);
    color: #d8020f;
    font-size: 0.82rem;
    font-weight: 950;
    letter-spacing: 0.01em;
}

a.service-card-global-link:hover .service-card-click-cue {
    color: #0f7198;
}
