/* Premium Page Builder - Custom Styles */
html { scroll-behavior: smooth; }

[data-animate] {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}
[data-animate].visible {
    opacity: 1;
    transform: translateY(0);
}

#navbar { transition: top 0.2s; }
body.preview-mode { padding-top: 44px; }
body.preview-mode #navbar { top: 44px; }

#navbar.scrolled {
    background: color-mix(in srgb, var(--color-bg) 85%, transparent);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid color-mix(in srgb, currentColor 10%, transparent);
    box-shadow: 0 4px 30px rgba(0,0,0,0.05);
}

::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--color-accent); border-radius: 4px; }

::selection { background: var(--color-accent); color: white; }

details summary::-webkit-details-marker { display: none; }

@media (max-width: 640px) {
    .font-heading { word-break: break-word; }
}

/* Hero is above the fold — always visible immediately */
.hero-section[data-animate] {
    opacity: 1;
    transform: none;
}

/* ── Hero Carousel ── */
.hero-carousel { position: relative; }
.hero-carousel-viewport { overflow: hidden; }

.hero-carousel-track[data-transition="slide"] {
    display: flex;
    height: 100%;
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2,  1);
}

.hero-carousel-track[data-transition="slide"] .hero-slide {
    flex: 0 0 100%;
    min-height: 100vh;
    position: relative;
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.9s ease, visibility 0.9s;
    z-index: 0;
}

.hero-carousel-track[data-transition="slide"] .hero-slide {
    position: relative;
    opacity: 1;
    visibility: visible;
}

.hero-slide.is-active {
    opacity: 1;
    visibility: visible;
    z-index: 1;
}

.hero-slide-bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.hero-slide-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.05);
}

.hero-slide.is-active .hero-ken-burns .hero-slide-img {
    animation: heroKenBurns 12s ease-out forwards;
}

@keyframes heroKenBurns {
    from { transform: scale(1.05); }
    to { transform: scale(1.18); }
}

.hero-carousel-track[data-transition="zoom"] .hero-slide.is-active .hero-slide-img {
    animation: heroZoomIn 1.2s ease-out forwards;
}

@keyframes heroZoomIn {
    from { transform: scale(1.2); opacity: 0.6; }
    to { transform: scale(1.05); opacity: 1; }
}

.hero-slide-overlay {
    position: absolute;
    inset: 0;
    background: #000;
    pointer-events: none;
}

.hero-slide-content {
    position: relative;
    z-index: 2;
}

.hero-text-wrap .hero-text-item {
    opacity: 0;
    transform: translateY(24px);
}

.hero-slide.is-active .hero-text-wrap[data-text-animation="fade-up"] .hero-text-item,
.hero-slide.is-active .hero-text-wrap[data-text-animation="slide-up"] .hero-text-item {
    animation: heroTextIn 0.7s ease forwards;
}

.hero-slide.is-active .hero-text-wrap[data-text-animation="zoom-in"] .hero-text-item {
    animation: heroTextZoom 0.7s ease forwards;
}

.hero-slide.is-active .hero-text-wrap[data-text-animation="slide-left"] .hero-text-item {
    animation: heroTextSlideLeft 0.7s ease forwards;
}

.hero-slide.is-active .hero-text-wrap[data-text-animation="none"] .hero-text-item {
    opacity: 1;
    transform: none;
}

.hero-slide.is-active .hero-badge { animation-delay: 0.05s; }
.hero-slide.is-active .hero-headline { animation-delay: 0.15s; }
.hero-slide.is-active .hero-subheadline { animation-delay: 0.25s; }
.hero-slide.is-active .hero-ctas { animation-delay: 0.35s; }

@keyframes heroTextIn {
    to { opacity: 1; transform: translateY(0); }
}

@keyframes heroTextZoom {
    from { opacity: 0; transform: scale(0.92); }
    to { opacity: 1; transform: scale(1); }
}

@keyframes heroTextSlideLeft {
    from { opacity: 0; transform: translateX(-32px); }
    to { opacity: 1; transform: translateX(0); }
}

.hero-carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 20;
    width: 3rem;
    height: 3rem;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.2);
    color: white;
    backdrop-filter: blur(8px);
    transition: background 0.2s, transform 0.2s;
}

.hero-carousel-arrow:hover {
    background: rgba(255,255,255,0.22);
    transform: translateY(-50%) scale(1.05);
}

.hero-carousel-prev { left: 1rem; }
.hero-carousel-next { right: 1rem; }

.hero-carousel-dots {
    position: absolute;
    bottom: 5.5rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 20;
    display: flex;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    border-radius: 999px;
    background: rgba(0,0,0,0.25);
    backdrop-filter: blur(8px);
}

.hero-carousel-dot {
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 999px;
    background: rgba(255,255,255,0.35);
    border: none;
    padding: 0;
    cursor: pointer;
    transition: width 0.3s, background 0.3s;
}

.hero-carousel-dot.is-active {
    width: 1.75rem;
    background: var(--color-accent, #d4af37);
}

@media (max-width: 640px) {
    .hero-carousel-arrow { width: 2.5rem; height: 2.5rem; }
    .hero-carousel-prev { left: 0.5rem; }
    .hero-carousel-next { right: 0.5rem; }
    .hero-carousel-dots { bottom: 4.5rem; }
}

/* ── Hero Video Background ── */
.hero-video-wrap {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}
.hero-video-wrap iframe {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 177.78vh;
    min-width: 100%;
    min-height: 100%;
    height: 56.25vw;
    transform: translate(-50%, -50%);
    border: 0;
}

/* ── Animation speed ── */
.anim-speed-slow [data-animate] { transition-duration: 1.2s; }
.anim-speed-fast [data-animate] { transition-duration: 0.45s; }
.anim-speed-slow.animations-on [data-animate] { transition-duration: 1.2s; }
.anim-speed-fast.animations-on [data-animate] { transition-duration: 0.45s; }

[data-animate][data-animation="slide-right"] {
    transform: translateX(40px);
}
[data-animate][data-animation="slide-right"].visible {
    transform: translateX(0);
}

html.smooth-scroll-on { scroll-behavior: smooth; }

/* ── Premium section polish ── */
[data-animate][data-animation="slide-left"] {
    transform: translateX(-40px);
}
[data-animate][data-animation="slide-left"].visible {
    transform: translateX(0);
}
[data-animate][data-animation="zoom-in"] {
    transform: scale(0.94);
}
[data-animate][data-animation="zoom-in"].visible {
    transform: scale(1);
}

.property-card .property-price {
    background: linear-gradient(135deg, var(--color-accent), var(--color-accent-hover));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.newsletter-box {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 3rem 2rem;
    box-shadow: var(--shadow-card);
}

.vision-quote {
    font-size: clamp(1.25rem, 2.5vw, 1.75rem);
    line-height: 1.6;
}

.pillar-tag {
    background: color-mix(in srgb, var(--color-accent) 10%, transparent);
    border: 1px solid color-mix(in srgb, var(--color-accent) 30%, transparent);
    transition: background 0.25s, transform 0.25s;
}
.pillar-tag:hover {
    background: color-mix(in srgb, var(--color-accent) 18%, transparent);
    transform: translateY(-2px);
}

.team-carousel { scrollbar-width: none; }
.team-carousel::-webkit-scrollbar { display: none; }

/* ── Cookie consent ── */
.cookie-consent {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9998;
    padding: 1rem;
    background: color-mix(in srgb, var(--color-bg) 92%, transparent);
    backdrop-filter: blur(16px);
    border-top: 1px solid var(--color-border);
    box-shadow: 0 -8px 32px rgba(0,0,0,0.08);
}
.cookie-consent.hidden { display: none; }
.cookie-consent-inner {
    max-width: 72rem;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}
.cookie-consent-text { font-size: 0.875rem; opacity: 0.85; max-width: 42rem; }
.cookie-consent-actions { display: flex; align-items: center; gap: 1rem; flex-shrink: 0; }
.cookie-consent-link { font-size: 0.875rem; text-decoration: underline; opacity: 0.7; }
.cookie-consent-btn {
    padding: 0.625rem 1.25rem;
    background: var(--color-accent);
    color: white;
    border: none;
    border-radius: calc(var(--radius) * 0.7);
    font-weight: 600;
    font-size: 0.875rem;
    cursor: pointer;
}
.showreel-play-btn { transition: transform 0.3s ease; }
.menu-category-title { position: relative; }
.episode-row { text-decoration: none; color: inherit; }


/* ── Gallery Lightbox ── */
.gallery-lightbox {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0, 0, 0, 0.92);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}
.gallery-lightbox.hidden { display: none; }
.gallery-lightbox-inner {
    max-width: min(90vw, 1200px);
    max-height: 90vh;
    margin: 0;
}
.gallery-lightbox-inner img {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 0.5rem;
}
.gallery-lightbox-inner figcaption {
    text-align: center;
    color: rgba(255,255,255,0.7);
    margin-top: 0.75rem;
    font-size: 0.875rem;
}
.gallery-lightbox-close,
.gallery-lightbox-prev,
.gallery-lightbox-next {
    position: absolute;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    color: white;
    cursor: pointer;
    border-radius: 999px;
    transition: background 0.2s;
}
.gallery-lightbox-close:hover,
.gallery-lightbox-prev:hover,
.gallery-lightbox-next:hover { background: rgba(255,255,255,0.2); }
.gallery-lightbox-close {
    top: 1rem;
    right: 1rem;
    width: 2.5rem;
    height: 2.5rem;
    font-size: 1.5rem;
    line-height: 1;
}
.gallery-lightbox-prev,
.gallery-lightbox-next {
    top: 50%;
    transform: translateY(-50%);
    width: 3rem;
    height: 3rem;
    font-size: 1.75rem;
}
.gallery-lightbox-prev { left: 1rem; }
.gallery-lightbox-next { right: 1rem; }

/* ── WhatsApp Float ── */
.whatsapp-float {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    z-index: 9990;
    display: inline-flex;
    align-items: center;
    gap: 0.625rem;
    padding: 0.875rem 1.125rem;
    background: #25D366;
    color: white;
    border-radius: 999px;
    box-shadow: 0 8px 32px rgba(37, 211, 102, 0.4);
    font-weight: 600;
    font-size: 0.875rem;
    transition: transform 0.2s, box-shadow 0.2s;
    text-decoration: none;
}
.whatsapp-float:hover {
    transform: translateY(-2px) scale(1.03);
    box-shadow: 0 12px 40px rgba(37, 211, 102, 0.5);
    color: white;
}
.whatsapp-float-label { white-space: nowrap; }
@media (max-width: 640px) {
    .whatsapp-float { padding: 0.875rem; }
    .whatsapp-float-label { display: none; }
}
