/* ==========================================
   Corrins Leading Edge — Custom Styles
   Premium Dark Luxury · Emerald + Cream
   ========================================== */

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

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

body {
    margin: 0;
    overflow-x: hidden;
}

::selection {
    background: rgba(201, 168, 76, 0.3);
    color: #fdfcf8;
}

/* --- Scrollbar --- */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #0a0f0d;
}
::-webkit-scrollbar-thumb {
    background: #065f46;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #c9a84c;
}

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

#navbar.scrolled {
    background: rgba(10, 15, 13, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 1px 0 rgba(201, 168, 76, 0.1);
}

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

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

.service-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, #c9a84c, transparent);
    opacity: 0;
    transition: opacity 0.5s ease;
}

.service-card:hover::after {
    opacity: 0.6;
}

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

/* --- Form --- */
select option {
    background: #111a15;
    color: #fdfcf8;
}

input:focus,
textarea:focus,
select:focus {
    outline: none;
}

/* --- Mobile Menu Animation --- */
#bar1 {
    transition: transform 0.3s ease, margin 0.3s ease, opacity 0.3s ease;
}
#bar2 {
    transition: opacity 0.3s ease;
}
#bar3 {
    transition: width 0.3s ease, margin 0.3s ease, opacity 0.3s ease;
}

#mobile-menu.open #bar1 {
    transform: translateY(4px) rotate(45deg);
}
#mobile-menu.open #bar2 {
    opacity: 0;
}
#mobile-menu.open #bar3 {
    width: 24px;
    margin-left: 0;
}

/* --- Scroll Reveal (Progressive Enhancement) --- */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 1;
        transform: translateY(0);
        transition: opacity 0.8s ease, transform 0.8s ease;
    }

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

@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

/* --- Responsive --- */
@media (max-width: 767px) {
    .font-serif {
        line-height: 1.1;
    }
}
