/* ============================================
   Trim & Tresses — Custom Styles
   Clean Minimalist | Deep Navy + Warm Gold
   ============================================ */

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

body {
    font-family: 'Montserrat', sans-serif;
    font-weight: 300;
    letter-spacing: 0.01em;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

/* ---- Scrollbar ---- */
::-webkit-scrollbar {
    width: 6px;
}
::-webkit-scrollbar-track {
    background: #0a1628;
}
::-webkit-scrollbar-thumb {
    background: #d4a843;
    border-radius: 3px;
}

/* ---- Hero Animations ---- */
.hero-tag {
    animation: fadeDown 0.8s ease forwards;
    animation-delay: 0.2s;
    opacity: 0;
}

.hero-word {
    display: block;
    animation: fadeUp 0.9s cubic-bezier(0.23, 1, 0.32, 1) forwards;
    opacity: 0;
    transform: translateY(40px);
}

.hero-word:nth-child(1) { animation-delay: 0.4s; }
.hero-word:nth-child(2) { animation-delay: 0.6s; }
.hero-word:nth-child(3) { animation-delay: 0.8s; }

.hero-text {
    animation: fadeUp 0.9s cubic-bezier(0.23, 1, 0.32, 1) forwards;
    animation-delay: 1s;
    opacity: 0;
    transform: translateY(30px);
}

.hero-cta {
    animation: fadeUp 0.9s cubic-bezier(0.23, 1, 0.32, 1) forwards;
    animation-delay: 1.2s;
    opacity: 0;
    transform: translateY(30px);
}

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

@keyframes fadeDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ---- Decorative Lines ---- */
.hero-line {
    position: absolute;
    background: linear-gradient(to bottom, transparent, rgba(212, 168, 67, 0.08), transparent);
    width: 1px;
}

.line-1 {
    top: 0;
    left: 15%;
    height: 100%;
    animation: lineGrow 1.5s ease forwards;
    animation-delay: 0.5s;
    opacity: 0;
}

.line-2 {
    top: 0;
    left: 35%;
    height: 60%;
    animation: lineGrow 1.5s ease forwards;
    animation-delay: 0.7s;
    opacity: 0;
}

.line-3 {
    top: 40%;
    right: 20%;
    width: 100%;
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(212, 168, 67, 0.08), transparent);
    animation: lineGrowH 1.5s ease forwards;
    animation-delay: 0.9s;
    opacity: 0;
}

.line-4 {
    top: 70%;
    right: 10%;
    height: 40%;
    animation: lineGrow 1.5s ease forwards;
    animation-delay: 1.1s;
    opacity: 0;
}

@keyframes lineGrow {
    from {
        opacity: 0;
        height: 0;
    }
    to {
        opacity: 1;
        height: 100%;
    }
}

@keyframes lineGrowH {
    from {
        opacity: 0;
        width: 0;
    }
    to {
        opacity: 1;
        width: 100%;
    }
}

/* ---- Scroll Dot ---- */
.scroll-dot {
    animation: scrollDot 2s ease-in-out infinite;
}

@keyframes scrollDot {
    0%, 100% { top: 0; opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { top: 100%; opacity: 0; }
}

/* ---- Reveal Animations ---- */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.23, 1, 0.32, 1), transform 0.8s cubic-bezier(0.23, 1, 0.32, 1);
}

.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; }

/* ---- Service Cards ---- */
.service-card {
    transition: background-color 0.5s ease;
}

/* ---- Navbar ---- */
.nav-scrolled {
    background: rgba(10, 22, 40, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(212, 168, 67, 0.1);
}

.nav-scrolled .group svg,
.nav-scrolled .group span {
    color: #d4a843;
}

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

/* ---- Input Autofill ---- */
input:-webkit-autofill,
textarea:-webkit-autofill {
    -webkit-box-shadow: 0 0 0 30px white inset !important;
}

/* ---- Responsive ---- */
@media (max-width: 768px) {
    .hero-word {
        font-size: 2.5rem;
    }
}

@media (min-width: 768px) {
    .hero-word {
        font-size: 3.5rem;
    }
}

@media (min-width: 1024px) {
    .hero-word {
        font-size: 4.5rem;
    }
}
