/* ── Base & Typography ── */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;0,700;1,400&family=Montserrat:wght@300;400;500;600;700&display=swap');

*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: 'Montserrat', sans-serif;
    background: #050507;
    color: #ffffff;
    overflow-x: hidden;
}

.font-cormorant {
    font-family: 'Cormorant Garamond', serif;
}

.font-montserrat {
    font-family: 'Montserrat', sans-serif;
}

/* ── Navbar ── */
#navbar {
    transition: background 0.4s ease, padding 0.4s ease, box-shadow 0.4s ease;
}

#navbar.scrolled {
    background: rgba(5, 5, 7, 0.95);
    backdrop-filter: blur(20px);
    box-shadow: 0 1px 0 rgba(212, 160, 23, 0.1);
}

.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: linear-gradient(90deg, #d4a017, #f5c219);
    transition: width 0.3s ease;
}

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

.nav-link:hover {
    color: #f5c219 !important;
}

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

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

.mobile-link {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2.5rem;
    font-weight: 400;
}

/* Hamburger animation */
.menu-line {
    transition: transform 0.3s ease, opacity 0.3s ease, width 0.3s ease;
}

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

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

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

/* ── Hero ── */
#hero {
    position: relative;
}

/* ── Service Cards ── */
.service-card {
    cursor: pointer;
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 60px rgba(212, 160, 23, 0.1);
}

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

.gallery-item:nth-child(2) {
    aspect-ratio: auto;
}

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

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

/* Prefers reduced motion */
@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
    html {
        scroll-behavior: auto;
    }
    .service-card:hover {
        transform: none;
    }
    .gallery-item img {
        transition: none;
    }
}

/* ── Select styling ── */
select option {
    background: #0a0a0c;
    color: #ffffff;
}

/* ── Custom scrollbar ── */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #050507;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #d4a017, #a11231);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #f5c219, #c72044);
}

/* ── Selection ── */
::selection {
    background: rgba(212, 160, 23, 0.3);
    color: #f5c219;
}

/* ── Focus visible ── */
:focus-visible {
    outline: 2px solid #f5c219;
    outline-offset: 2px;
}

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

    .service-card {
        margin-bottom: 0;
    }

    #about img {
        height: 400px !important;
    }

    .font-cormorant.text-5xl,
    .font-cormorant.text-6xl {
        font-size: 2.75rem;
    }
}

@media (max-width: 480px) {
    #hero h1 {
        font-size: 2.75rem;
    }

    .font-cormorant.text-5xl {
        font-size: 2.25rem;
    }
}
