/* ============================================
   Ibrow Zone — Custom Styles
   Classic & Elegant · Forest Green + Off-White
   ============================================ */

/* ---- Base & Typography ---- */
html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    overflow-x: hidden;
}

::selection {
    background-color: rgba(212, 168, 75, 0.25);
    color: #1B4332;
}

/* ---- Scrollbar ---- */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #FDFBF7;
}
::-webkit-scrollbar-thumb {
    background: #b7ccb9;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #8fb590;
}

/* ---- Navbar Transition ---- */
#navbar {
    transition: background-color 0.5s ease, box-shadow 0.5s ease, padding 0.5s ease;
}

#navbar.scrolled {
    background-color: rgba(253, 251, 247, 0.97);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 20px rgba(27, 67, 50, 0.08);
}

/* ---- Nav Links ---- */
.nav-link {
    position: relative;
}

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

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

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

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

#menu-icon-close {
    transition: opacity 0.3s ease;
}

/* ---- Service Cards ---- */
.service-card {
    opacity: 1;
}

.service-card .service-card-inner {
    transition: transform 0.5s cubic-bezier(0.23, 1, 0.32, 1), box-shadow 0.5s ease;
}

/* ---- Reveal Animations ---- */
.reveal {
    /* Default state: visible (progressive enhancement) */
    opacity: 1;
    transform: translateY(0);
    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);
}

/* Animated state — applied via JS only */
.reveal.animate-in {
    opacity: 0;
    transform: translateY(32px);
}

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

/* Respect reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    .reveal,
    .reveal.animate-in {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

/* ---- Button Ripple / Focus ---- */
button:focus-visible,
a:focus-visible {
    outline: 2px solid #D4A84B;
    outline-offset: 2px;
    border-radius: 0.5rem;
}

/* ---- Form Input Focus ---- */
input:focus,
textarea:focus,
select:focus {
    border-color: #D4A84B !important;
    box-shadow: 0 0 0 4px rgba(212, 168, 75, 0.15) !important;
}

/* ---- Gallery Hover ---- */
.group:hover .group-hover\:scale-105 {
    transform: scale(1.05);
}

/* ---- Spacing Utilities ---- */
.section-padding {
    padding-top: 6rem;
    padding-bottom: 6rem;
}

@media (min-width: 768px) {
    .section-padding {
        padding-top: 8rem;
        padding-bottom: 8rem;
    }
}

/* ---- Loading Spinner Animation ---- */
@keyframes spin {
    to { transform: rotate(360deg); }
}

@keyframes dash {
    to { stroke-dashoffset: 0; }
}

.animate-spin {
    animation: spin 0.8s linear infinite;
}

.animate-dash {
    animation: dash 0.8s linear infinite;
}

/* ---- Decorative Eyebrow SVG Animation ---- */
@keyframes draw-brow {
    from { stroke-dashoffset: 200; }
    to { stroke-dashoffset: 0; }
}

.hero-brow-path {
    stroke-dasharray: 200;
    animation: draw-brow 1.5s ease-out forwards;
}

/* ---- Subtle Floating Animation ---- */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-8px); }
}

.float-soft {
    animation: float 4s ease-in-out infinite;
}

/* ---- Gold Accent Line Animation ---- */
@keyframes expand-line {
    from { width: 0; }
    to { width: 4rem; }
}

.gold-line {
    animation: expand-line 0.8s ease-out forwards;
}

/* ---- Mobile Menu Link Animation ---- */
@keyframes fade-up {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.mobile-nav-link {
    opacity: 0;
    transform: translateY(20px);
}

#mobile-menu.open .mobile-nav-link {
    animation: fade-up 0.5s ease-out forwards;
}

#mobile-menu.open .mobile-nav-link:nth-child(1) { animation-delay: 0.1s; }
#mobile-menu.open .mobile-nav-link:nth-child(2) { animation-delay: 0.15s; }
#mobile-menu.open .mobile-nav-link:nth-child(3) { animation-delay: 0.2s; }
#mobile-menu.open .mobile-nav-link:nth-child(4) { animation-delay: 0.25s; }
#mobile-menu.open .mobile-nav-link:nth-child(5) { animation-delay: 0.3s; }
#mobile-menu.open .mobile-nav-link:nth-child(6) { animation-delay: 0.35s; }

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

/* ---- Print Styles ---- */
@media print {
    #navbar,
    #mobile-menu,
    .reveal {
        display: none !important;
    }
    body {
        background: white !important;
        color: black !important;
    }
}
