/* =============================================
   Henry K's — Custom Styles
   Terracotta + Sand · Confident Corporate
   ============================================= */

/* ---------- Base ---------- */
html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    overflow-x: hidden;
}

::selection {
    background-color: rgba(184, 87, 45, 0.2);
    color: inherit;
}

/* ---------- Navbar ---------- */
#navbar {
    background: transparent;
    transition: background 0.4s ease, box-shadow 0.4s ease, backdrop-filter 0.4s ease;
}

#navbar.scrolled {
    background: rgba(253, 252, 250, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06);
}

.nav-logo-text {
    transition: color 0.3s ease;
}

#navbar:not(.scrolled) .nav-logo-text {
    color: #1F1C18;
}

/* ---------- Scroll Indicator ---------- */
.scroll-line {
    animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
    0%, 100% { opacity: 0.3; transform: scaleY(0.6); transform-origin: top; }
    50% { opacity: 1; transform: scaleY(1); }
}

/* ---------- Hero Animations ---------- */
.hero-badge {
    animation: fadeInUp 0.8s ease-out both;
}

#hero h1 {
    animation: fadeInUp 0.8s ease-out 0.15s both;
}

#hero p {
    animation: fadeInUp 0.8s ease-out 0.3s both;
}

#hero .flex-wrap {
    animation: fadeInUp 0.8s ease-out 0.45s both;
}

#hero .flex.gap-10 {
    animation: fadeInUp 0.8s ease-out 0.6s both;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ---------- Menu Tabs ---------- */
.menu-tab {
    color: #6D6257;
    background: transparent;
    cursor: pointer;
}

.menu-tab.active {
    color: #ffffff;
    background: #B8572D;
    box-shadow: 0 4px 14px rgba(184, 87, 45, 0.35);
}

.menu-tab:not(.active):hover {
    color: #B8572D;
    background: rgba(184, 87, 45, 0.08);
}

/* ---------- Mobile Menu ---------- */
#mobile-menu {
    overflow: hidden;
}

#mobile-menu.open {
    max-height: 400px;
}

.mobile-nav-link {
    display: block;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.mobile-nav-link:last-child {
    border-bottom: none;
}

/* ---------- Mobile Toggle ---------- */
.nav-toggle span {
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.nav-toggle.active span:nth-child(1) {
    transform: translateY(3.5px) rotate(45deg);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
    transform: translateY(-3.5px) rotate(-45deg);
    width: 100%;
}

/* ---------- Reveal Animations ---------- */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* ---------- Map Container ---------- */
.leaflet-container,
iframe {
    border-radius: 1.5rem;
}

/* ---------- Form Focus ---------- */
input:focus,
textarea:focus {
    outline: none;
}

/* ---------- Smooth Image Loading ---------- */
img {
    opacity: 1;
    transition: opacity 0.3s ease;
}

img[lazy="loaded"] {
    opacity: 1;
}

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
    #hero h1 {
        font-size: 2.75rem;
    }

    #hero h1 span.block {
        font-size: 1.5rem !important;
    }

    .floating-card {
        position: relative !important;
        bottom: auto !important;
        left: auto !important;
        margin-top: 1rem;
        max-width: 100%;
    }
}

/* ---------- Print ---------- */
@media print {
    #navbar,
    .scroll-indicator {
        display: none;
    }
}
