/* Al Waha Pools */

body {
    font-family: 'Montserrat', sans-serif;
    scroll-behavior: smooth;
}

/* ── Scroll progress bar ─────────────────────────────────────────────────── */
#scroll-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 2px;
    background: linear-gradient(to right, #d97706, #065f46);
    z-index: 9999;
    transition: width 0.1s linear;
    pointer-events: none;
}

/* ── Sticky nav ──────────────────────────────────────────────────────────── */
#site-nav {
    position: sticky;
    top: 0;
    z-index: 50;
    background: white;
    transition: background 0.35s ease, box-shadow 0.35s ease;
}
#site-nav.scrolled {
    background: rgba(4, 28, 20, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 1px 24px rgba(0,0,0,0.22);
}
#site-nav.scrolled .nav-link { color: rgba(255,255,255,0.88) !important; }
#site-nav.scrolled .nav-link:hover { color: #fbbf24 !important; }
#site-nav.scrolled .brand-name { color: white !important; }
#site-nav.scrolled #nav-toggle { color: white !important; }
#site-nav.scrolled #mobile-menu {
    background: rgba(4, 28, 20, 0.96);
    border-color: rgba(255,255,255,0.08);
}
#site-nav.scrolled #mobile-menu a { color: rgba(255,255,255,0.85) !important; }

/* ── Hero ─────────────────────────────────────────────────────────────────── */
.hero-container {
    height: calc(100vh - 60px);
    height: calc(100dvh - 60px);
    max-height: 840px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.hero-pill {
    border-radius: 500px;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    flex: 1;
    min-height: 140px;
    max-height: 420px;
}

@media (max-height: 700px) {
    .hero-pill { min-height: 110px; max-height: 260px; }
    .hero-heading { font-size: clamp(1.5rem, 5vh, 3.75rem); }
}

/* Ken Burns */
@keyframes kenburns {
    from { transform: scale(1); }
    to   { transform: scale(1.06); }
}
.hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    animation: kenburns 12s ease-out forwards;
    transform-origin: center center;
}

/* Hero text reveal */
.hero-line-wrap {
    display: block;
    overflow: hidden;
    line-height: 1.05;
}
.hero-word { display: block; }

/* ── Floating badge ─────────────────────────────────────────────────────── */
.floating-badge { animation: rotate 20s linear infinite; }

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

/* ── CTA shimmer sweep ───────────────────────────────────────────────────── */
@keyframes shimmer {
    0%   { background-position: -200% center; }
    100% { background-position: 200% center; }
}
.shimmer-btn {
    position: relative;
    overflow: hidden;
}
.shimmer-btn::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(105deg, transparent 35%, rgba(255,255,255,0.28) 50%, transparent 65%);
    background-size: 250% 100%;
    background-position: -200% center;
    animation: shimmer 3.8s ease-in-out infinite;
    pointer-events: none;
    border-radius: inherit;
}

/* ── Section heading underline draw ─────────────────────────────────────── */
.draw-underline {
    position: relative;
    display: inline-block;
}
.draw-underline::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    height: 3px;
    width: 0;
    background: #d97706;
    border-radius: 2px;
    transition: width 0.75s cubic-bezier(0.22, 1, 0.36, 1);
}
.draw-underline.visible::after { width: 56px; }

/* ── WhatsApp sonar pulse ────────────────────────────────────────────────── */
@keyframes sonar {
    0%   { transform: scale(1); opacity: 0.55; }
    100% { transform: scale(1.9); opacity: 0; }
}
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #25d366;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
    z-index: 100;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.whatsapp-float::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: #25d366;
    animation: sonar 2.5s ease-out infinite;
    z-index: -1;
}
.whatsapp-float:hover { transform: scale(1.1) rotate(5deg); }
.whatsapp-float:focus-visible { outline: 3px solid #25d366; outline-offset: 4px; }

/* ── Mobile nav ─────────────────────────────────────────────────────────── */
.mobile-menu { display: none; }
.mobile-menu.open { display: flex; }

/* ── Service cards — 3D tilt hover ─────────────────────────────────────── */
.service-card {
    position: relative;
    overflow: hidden;
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
    will-change: transform;
}
.service-card:hover .service-icon { background-color: #065f46; }
.service-card:hover .service-icon i { color: white; }

.card-sheen {
    position: absolute;
    inset: 0;
    border-radius: inherit;
    opacity: 0;
    pointer-events: none;
    z-index: 1;
    transition: opacity 0.25s ease;
}
.service-card > *:not(.card-sheen) { position: relative; z-index: 2; }

/* ── Why Us cards — animated gradient border on hover ───────────────────── */
.why-card {
    position: relative;
    border-radius: 20px;
    background: #f9fafb;
    z-index: 0;
    transition: transform 0.25s ease;
}
.why-card::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 22px;
    background: linear-gradient(135deg, #d97706, #065f46, #d97706, #065f46);
    background-size: 300% 300%;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
    animation: grad-border 3s ease infinite;
}
.why-card:hover::before { opacity: 1; }
.why-card:hover { transform: translateY(-4px); }
@keyframes grad-border {
    0%, 100% { background-position: 0% 50%; }
    50%       { background-position: 100% 50%; }
}

/* ── Testimonial cards ──────────────────────────────────────────────────── */
.testimonial-card {
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.testimonial-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0,0,0,0.09);
}

/* ── Pricing cards ──────────────────────────────────────────────────────── */
.pricing-card {
    transition: all 0.3s ease;
}
.pricing-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.05);
}

/* ── Mobile CTA body padding ─────────────────────────────────────────────── */
@media (max-width: 767px) {
    #main-content { padding-bottom: 60px; }
}

/* ── Preloader ──────────────────────────────────────────────────────────── */
#preloader {
    position: fixed;
    inset: 0;
    background: white;
    z-index: 9998;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
    transition: opacity 0.55s ease 0.15s, visibility 0.55s ease 0.15s;
}
#preloader.done {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}
.preloader-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    animation: preloader-breathe 1.1s ease-in-out infinite alternate;
}
@keyframes preloader-breathe {
    from { transform: scale(0.9); opacity: 0.75; }
    to   { transform: scale(1.05); opacity: 1; }
}
.preloader-bar {
    width: 56px;
    height: 2px;
    background: #e5e7eb;
    border-radius: 2px;
    overflow: hidden;
}
.preloader-bar::after {
    content: '';
    display: block;
    height: 100%;
    width: 0;
    background: linear-gradient(to right, #d97706, #065f46);
    border-radius: 2px;
    animation: preloader-fill 1.4s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
@keyframes preloader-fill {
    to { width: 100%; }
}

/* ── Coverage pill reveal ───────────────────────────────────────────────── */
.area-pill {
    opacity: 0;
    transform: scale(0.75);
    transition:
        opacity  0.35s ease calc(var(--i, 0) * 55ms),
        transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1) calc(var(--i, 0) * 55ms);
}
.area-pill.visible {
    opacity: 1;
    transform: scale(1);
}

/* ── Scroll reveal — cards fade+slide up ────────────────────────────────── */
.reveal-card {
    opacity: 0;
    transform: translateY(32px);
    transition:
        opacity  0.55s ease calc(var(--delay, 0ms)),
        transform 0.55s cubic-bezier(0.22, 1, 0.36, 1) calc(var(--delay, 0ms));
}
.reveal-card.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ── Before/After slide-in ───────────────────────────────────────────────── */
.slide-left {
    opacity: 0;
    transform: translateX(-40px);
    transition: opacity 0.65s ease, transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
}
.slide-right {
    opacity: 0;
    transform: translateX(40px);
    transition: opacity 0.65s ease 0.15s, transform 0.65s cubic-bezier(0.22, 1, 0.36, 1) 0.15s;
}
.slide-left.visible, .slide-right.visible {
    opacity: 1;
    transform: translateX(0);
}

/* ── Contact section tiles ───────────────────────────────────────────────── */
.contact-tile {
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.contact-tile:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(0,0,0,0.08);
}

/* ── Reduced motion ─────────────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
    .floating-badge, .hero-img, .shimmer-btn::after, .whatsapp-float::before { animation: none; }
    .draw-underline::after { transition: none; }
    #preloader { transition: none; }
    .preloader-logo { animation: none; }
    .preloader-bar::after { animation: none; width: 100%; }
    .area-pill { opacity: 1; transform: none; transition: none; }
    .reveal-card { opacity: 1; transform: none; transition: none; }
    .slide-left, .slide-right { opacity: 1; transform: none; transition: none; }
    * { transition-duration: 0.01ms !important; }
}
