/* ─── Base & Reset ─── */
*, *::before, *::after {
    box-sizing: border-box;
}

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

body {
    overflow-x: hidden;
}

::selection {
    background: rgba(212, 160, 23, 0.2);
    color: #4A1942;
}

/* ─── Navbar ─── */
.nav-text {
    transition: color 0.3s ease;
}

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

.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: #D4A017;
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

/* Scrolled navbar state */
.navbar-scrolled {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(20px);
    box-shadow: 0 1px 0 rgba(74, 25, 66, 0.06);
}

.navbar-scrolled .nav-text {
    color: #3D1537 !important;
}

.navbar-scrolled .nav-subtext {
    color: #4A1942 !important;
}

.navbar-scrolled .nav-link {
    color: #4A1942 !important;
}

/* ─── Floating Cards ─── */
.floating-card {
    animation: floatCard1 6s ease-in-out infinite;
}

.floating-card-2 {
    animation: floatCard2 5s ease-in-out infinite;
}

@keyframes floatCard1 {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-8px); }
}

@keyframes floatCard2 {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-6px); }
}

/* ─── Service Cards ─── */
.service-card {
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 0;
    background: #D4A017;
    transition: height 0.5s ease;
}

.service-card:hover::before {
    height: 100%;
}

/* ─── Gallery ─── */
.gallery-img-wrap {
    position: relative;
    cursor: pointer;
}

.gallery-img-wrap::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(74, 25, 66, 0);
    transition: background 0.4s ease;
}

.gallery-img-wrap:hover::after {
    background: rgba(74, 25, 66, 0.15);
}

/* ─── Scroll Reveal (progressive enhancement) ─── */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(24px);
        transition: opacity 0.8s ease, transform 0.8s ease;
    }

    .reveal.revealed {
        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; }
    .reveal-delay-4 { transition-delay: 0.4s; }
}

/* ─── Mobile Menu ─── */
.mobile-menu-open {
    opacity: 1 !important;
    pointer-events: all !important;
}

.menu-line {
    transition: all 0.3s ease;
}

#menuBtn.active .menu-line:nth-child(1) {
    transform: rotate(45deg) translate(3px, 3px);
}

#menuBtn.active .menu-line:nth-child(2) {
    opacity: 0;
}

#menuBtn.active .menu-line:nth-child(3) {
    width: 6;
    transform: rotate(-45deg) translate(3px, -3px);
}

/* ─── Form ─── */
input:focus,
textarea:focus {
    border-color: #D4A017 !important;
}

input::placeholder,
textarea::placeholder {
    color: #D4B8C8;
}

/* ─── Utility ─── */
@media (max-width: 767px) {
    .floating-card {
        position: relative !important;
        top: auto !important;
        left: auto !important;
        right: auto !important;
        bottom: auto !important;
        margin-top: 1rem;
        animation: none !important;
    }

    .floating-card-2 {
        position: relative !important;
        top: auto !important;
        left: auto !important;
        right: auto !important;
        animation: none !important;
    }
}

/* ─── Print ─── */
@media print {
    nav, #contactForm, .floating-card, .floating-card-2 {
        display: none;
    }
}
