/* ============================================
   Antonella Salon & Spa — Custom Styles
   ============================================ */

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

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

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

::selection {
    background-color: #C9A84C;
    color: #0a1628;
}

/* --- Skip Link --- */
.skip-link {
    position: absolute;
    top: -100%;
    left: 1rem;
    background: #0a1628;
    color: #fff;
    padding: 0.75rem 1.5rem;
    border-radius: 0 0 0.5rem 0.5rem;
    z-index: 100;
    font-size: 0.875rem;
    text-decoration: none;
    transition: top 0.2s;
}

.skip-link:focus {
    top: 0;
}

/* --- Navbar --- */
.nav {
    background: transparent;
    transition: background-color 0.4s ease, box-shadow 0.4s ease;
}

.nav.scrolled {
    background: rgba(10, 22, 40, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.15);
}

.nav.scrolled #logo-icon,
.nav.scrolled #logo-text,
.nav.scrolled #logo-sub {
    color: #ffffff;
}

.nav.scrolled #logo-icon {
    border-color: rgba(201, 168, 76, 0.6);
}

.nav-link {
    color: rgba(255, 255, 255, 0.8);
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: #C9A84C;
}

/* --- Buttons --- */
.btn-gold {
    background: linear-gradient(135deg, #C9A84C 0%, #e9bd3e 100%);
    color: #0a1628;
    padding: 0.75rem 1.75rem;
    border-radius: 9999px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(201, 168, 76, 0.3);
}

.btn-gold:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(201, 168, 76, 0.4);
    background: linear-gradient(135deg, #d4b35a 0%, #f0c84f 100%);
}

.btn-navy {
    background: #0a1628;
    color: #ffffff;
    padding: 0.75rem 1.75rem;
    border-radius: 9999px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(10, 22, 40, 0.3);
}

.btn-navy:hover {
    transform: translateY(-2px);
    background: #172247;
    box-shadow: 0 8px 25px rgba(10, 22, 40, 0.4);
}

.btn-outline-light {
    background: transparent;
    color: #ffffff;
    padding: 0.75rem 1.75rem;
    border-radius: 9999px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    border: 1.5px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
}

.btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.6);
    transform: translateY(-2px);
}

.btn-outline-gold {
    background: transparent;
    color: #0a1628;
    padding: 0.75rem 1.75rem;
    border-radius: 9999px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    border: 1.5px solid rgba(10, 22, 40, 0.3);
    transition: all 0.3s ease;
}

.btn-outline-gold:hover {
    background: #0a1628;
    color: #ffffff;
    border-color: #0a1628;
    transform: translateY(-2px);
}

/* --- Inputs --- */
.input {
    font-family: 'Nunito', system-ui, sans-serif;
}

.input:focus {
    background: #ffffff;
}

/* --- Service Cards --- */
.service-card {
    background: #ffffff;
    border-radius: 1.5rem;
    padding: 0;
    box-shadow: 0 4px 20px rgba(10, 22, 40, 0.06);
    border: 1px solid rgba(10, 22, 40, 0.06);
    transition: all 0.4s ease;
    overflow: hidden;
}

.service-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 50px rgba(10, 22, 40, 0.12);
}

/* --- Gallery Items --- */
.gallery-item {
    border-radius: 1rem;
    overflow: hidden;
}

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

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

/* Reduced motion */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.7s ease, transform 0.7s ease;
    }

    .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; }
    .reveal-delay-4 { transition-delay: 0.4s; }
    .reveal-delay-5 { transition-delay: 0.5s; }
}

/* Scroll line animation */
@keyframes scrollLine {
    0% { transform: scaleY(0); transform-origin: top; }
    50% { transform: scaleY(1); transform-origin: top; }
    51% { transform-origin: bottom; }
    100% { transform: scaleY(0); transform-origin: bottom; }
}

.animate-scroll-line {
    animation: scrollLine 2s ease-in-out infinite;
}

/* --- Mobile Menu --- */
.mobile-nav-link {
    color: #0a1628;
    transition: color 0.3s ease;
}

.mobile-nav-link:hover {
    color: #C9A84C;
}

/* --- Focus Styles --- */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid #C9A84C;
    outline-offset: 2px;
    border-radius: 0.5rem;
}

/* --- Responsive adjustments --- */
@media (max-width: 640px) {
    html {
        scroll-padding-top: 70px;
    }
}
