:root {
    --color-sand:  #F2EFE9;
    --color-stone: #D7D0C8;
    --color-clay:  #A98467;
    --color-olive: #4A5340;
    --color-dark:  #1C1D1A;
    --color-gold:  #C5A880;
}

/* ─── Navbar padding overrides ──────────────────────────────── */
#navbar.py-5 {
    padding-top: 0.5rem;
    padding-bottom: 0;
}
#navbar.py-2,
#navbar.py-3 {
    padding-top: 0;
    padding-bottom: 0;
}

#nav-logo img {
    height: 3.5rem;
}
@media (min-width: 768px) {
    #nav-logo img {
        height: 4.5rem;
    }
}

/* ─── Glassmorphism Navbar ───────────────────────────────────── */
.glass-nav {
    background: rgba(255,255,255,0.05);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255,255,255,0.1);
}
.glass-nav-scrolled {
    background: rgba(255,255,255,0.96);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 4px 30px rgba(0,0,0,0.06);
}

.hekterra-logo-static {
    transition: filter 0.5s ease;
    filter: brightness(0) invert(1);
}
.hekterra-scrolled .hekterra-logo-static {
    filter: brightness(0);
}
.hekterra-dev-text {
    transition: color 0.5s ease;
}
.hekterra-scrolled .hekterra-dev-text {
    color: rgba(28,29,26,0.5) !important;
}

/* ─── Hero Ken Burns ─────────────────────────────────────────── */
.hero-zoom {
    animation: zoomInOut 20s infinite alternate linear;
    transform-origin: center;
}
@keyframes zoomInOut {
    0%   { transform: scale(1); }
    100% { transform: scale(1.1); }
}

/* ─── Animated hero text ────────────────────────────────────── */
.hero-animate {
    opacity: 0;
    transform: translateY(20px);
    animation: heroFadeUp 1.2s cubic-bezier(0.16,1,0.3,1) forwards;
}
.hero-animate-delay   { animation-delay: 0.3s; }
.hero-animate-delay-2 { animation-delay: 0.6s; }
@keyframes heroFadeUp {
    to { opacity: 1; transform: translateY(0); }
}

/* ─── Image reveal wrapper ──────────────────────────────────── */
.reveal-wrapper { position: relative; overflow: hidden; }
.reveal-overlay {
    position: absolute; top:0; left:0; width:100%; height:100%;
    z-index: 10; transform-origin: right;
    transition: transform 1.2s cubic-bezier(0.77,0,0.175,1);
}
.reveal-wrapper.aos-animate .reveal-overlay { transform: scaleX(0); }
.img-hover { transition: transform 1.5s cubic-bezier(0.16,1,0.3,1); }
.reveal-wrapper:hover .img-hover { transform: scale(1.05); }

/* ─── Premium underline button ──────────────────────────────── */
.btn-premium {
    position: relative; overflow: hidden;
    display: inline-flex; align-items: center; transition: all 0.5s ease;
}
.btn-premium::after {
    content: ''; position: absolute; bottom: 0; left: 0;
    width: 100%; height: 1px; background-color: currentColor;
    transform: scaleX(0); transform-origin: right;
    transition: transform 0.5s cubic-bezier(0.16,1,0.3,1);
}
.btn-premium:hover::after { transform: scaleX(1); transform-origin: left; }

/* ─── Gallery lightbox overlay ──────────────────────────────── */
#lightbox {
    position: fixed; inset: 0; background: rgba(0,0,0,0.92);
    z-index: 9999; display: none; align-items: center; justify-content: center;
}
#lightbox.open { display: flex; }
#lightbox img { max-width: 90vw; max-height: 90vh; object-fit: contain; }
#lightbox-close {
    position: absolute; top: 20px; right: 24px; font-size: 2rem;
    color: #fff; cursor: pointer; background: none; border: none;
}

/* ─── Stats bar ─────────────────────────────────────────────── */
.stat-item {
    text-align: center; padding: 1.5rem 2rem;
    border-right: 1px solid rgba(255,255,255,0.1);
}
.stat-item:last-child { border-right: none; }

/* ─── Blog prose ─────────────────────────────────────────────── */
.prose h2 { font-family: 'Playfair Display', serif; font-size: 1.75rem; margin: 2rem 0 1rem; }
.prose h3 { font-family: 'Playfair Display', serif; font-size: 1.35rem; margin: 1.5rem 0 0.75rem; }
.prose p  { line-height: 1.85; margin-bottom: 1.25rem; }
.prose ul { list-style: disc; padding-left: 1.5rem; margin-bottom: 1.25rem; }
.prose li { margin-bottom: 0.5rem; line-height: 1.7; }
.prose img { max-width: 100%; border-radius: 0.5rem; margin: 1.5rem auto; display: block; }
.prose a  { color: var(--color-gold); text-decoration: underline; }

/* ─── Admin flash messages ──────────────────────────────────── */
.flash-success { background: #d1fae5; color: #065f46; border: 1px solid #6ee7b7; border-radius: 0.375rem; padding: 0.75rem 1rem; margin-bottom: 1rem; }
.flash-error   { background: #fee2e2; color: #991b1b; border: 1px solid #fca5a5; border-radius: 0.375rem; padding: 0.75rem 1rem; margin-bottom: 1rem; }

/* ─── WhatsApp float button ─────────────────────────────────── */
.wa-float {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 50;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #25D366;
    box-shadow: 0 4px 20px rgba(37,211,102,0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}
.wa-pulse-ring {
    position: absolute;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #25D366;
    opacity: 0.6;
    animation: wa-pulse 2s ease-out infinite;
    pointer-events: none;
}
@keyframes wa-pulse {
    0%   { transform: scale(1);   opacity: 0.6; }
    100% { transform: scale(1.9); opacity: 0;   }
}
