/* ─── Base & Typography ─── */
html {
    scroll-behavior: smooth;
}

body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

::selection {
    background: #D4A017;
    color: #28152D;
}

/* ─── Navigation ─── */
#nav {
    background: transparent;
}

#nav.scrolled {
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(91, 44, 111, 0.08);
}

#nav.scrolled .nav-logo {
    color: #391D43;
}

#nav.scrolled .nav-link {
    color: #5B2C6F;
}

/* ─── Hero ─── */
.hero-bg {
    transform: scale(1.05);
    animation: heroZoom 20s ease-out forwards;
}

@keyframes heroZoom {
    from { transform: scale(1.08); }
    to { transform: scale(1); }
}

.hero-overlay {
    background: linear-gradient(
        to bottom,
        rgba(40, 21, 45, 0.55) 0%,
        rgba(40, 21, 45, 0.40) 50%,
        rgba(40, 21, 45, 0.70) 100%
    );
}

.hero-tagline {
    opacity: 0;
    animation: fadeUp 1s ease 0.3s forwards;
}

.hero-title {
    opacity: 0;
    animation: fadeUp 1s ease 0.5s forwards;
}

.hero-subtitle {
    opacity: 0;
    animation: fadeUp 1s ease 0.7s forwards;
}

.hero-buttons {
    opacity: 0;
    animation: fadeUp 1s ease 0.9s forwards;
}

.hero-scroll {
    opacity: 0;
    animation: fadeIn 1s ease 1.4s forwards;
}

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

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.hero-btn-primary {
    box-shadow: 0 4px 24px rgba(212, 160, 23, 0.3);
}

.hero-btn-primary:hover {
    box-shadow: 0 8px 32px rgba(212, 160, 23, 0.4);
    transform: translateY(-2px);
}

.hero-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

/* ─── Scroll Reveal ─── */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

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

@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(32px);
    }

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

/* ─── Service Cards ─── */
.service-card {
    border-top: 1px solid #E8D5EA;
    border-bottom: 0;
}

@media (min-width: 768px) {
    .service-card {
        border-top: 1px solid #E8D5EA;
        border-bottom: 0;
    }
}

/* ─── Gallery ─── */
.gallery-item {
    cursor: pointer;
}

.gallery-item img {
    will-change: transform;
}

/* ─── CTA Section ─── */
.cta-bg {
    transform: scale(1.02);
}

.cta-overlay {
    background: linear-gradient(
        to right,
        rgba(40, 21, 45, 0.82) 0%,
        rgba(40, 21, 45, 0.65) 50%,
        rgba(40, 21, 45, 0.82) 100%
    );
}

/* ─── Mobile Menu ─── */
#mobileMenu.open {
    opacity: 1;
    pointer-events: all;
}

#mobileMenu.closed {
    opacity: 0;
    pointer-events: none;
}

.menu-line {
    display: block;
}

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

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

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

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

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

/* ─── Utilities ─── */
@media (prefers-reduced-motion: no-preference) {
    .service-card {
        transition: background-color 0.5s ease;
    }
}

/* ─── Print ─── */
@media print {
    #nav, .hero-scroll, .cta-bg img {
        display: none;
    }
    body {
        color: #000;
        background: #fff;
    }
}
