/* ============================================
   Dynamic Personal Training Pickerington
   Premium Dark Luxury — Forest Green & Gold
   ============================================ */

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

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

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

/* ---------- Scrollbar ---------- */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #03130d;
}
::-webkit-scrollbar-thumb {
    background: #224a2b;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #C8A45E;
}

/* ---------- Selection ---------- */
::selection {
    background: rgba(200, 164, 94, 0.3);
    color: #FAFAF7;
}

/* ---------- CTA Buttons ---------- */
.cta-primary {
    position: relative;
    display: inline-flex;
    overflow: hidden;
    padding: 14px 32px;
    background: #C8A45E;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.cta-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(200, 164, 94, 0.25);
}

.cta-secondary {
    position: relative;
    display: inline-flex;
    overflow: hidden;
    padding: 14px 32px;
    border: 1px solid rgba(200, 164, 94, 0.4);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.cta-secondary:hover {
    border-color: #C8A45E;
    background: rgba(200, 164, 94, 0.08);
    transform: translateY(-2px);
}

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

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

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

/* ---------- Navbar scroll state ---------- */
#navbar.scrolled {
    background: rgba(3, 19, 13, 0.95);
    backdrop-blur-xl;
    border-bottom: 1px solid rgba(200, 164, 94, 0.1);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

#navbar.scrolled .nav-link {
    color: #F5F5EF;
}

/* ---------- Mobile Menu ---------- */
.mobile-link {
    font-family: 'Playfair Display', Georgia, serif;
}

#mobileMenu.open {
    opacity: 1;
    pointer-events: all;
}

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

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

.service-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    opacity: 0;
    transition: opacity 0.5s ease;
    background: radial-gradient(ellipse at top left, rgba(200, 164, 94, 0.05), transparent 70%);
}

.service-card:hover::before {
    opacity: 1;
}

/* ---------- Scroll Animations ---------- */
.scroll-animate {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.scroll-animate.visible {
    opacity: 1;
    transform: translateY(0);
}

.scroll-animate:nth-child(2) { transition-delay: 0.1s; }
.scroll-animate:nth-child(3) { transition-delay: 0.2s; }
.scroll-animate:nth-child(4) { transition-delay: 0.3s; }
.scroll-animate:nth-child(5) { transition-delay: 0.4s; }

/* ---------- Hero Animations ---------- */
.reveal-hero {
    opacity: 0;
    transform: translateY(20px);
    animation: heroReveal 0.8s ease forwards;
}

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

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

/* ---------- Reduced Motion ---------- */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    html {
        scroll-behavior: auto;
    }
    .scroll-animate {
        opacity: 1;
        transform: none;
    }
    .reveal-hero {
        opacity: 1;
        transform: none;
    }
}

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

/* ---------- Select styling ---------- */
select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23C8A45E' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 36px;
}

/* ---------- Form Input Focus States ---------- */
input:focus,
textarea:focus,
select:focus {
    border-color: rgba(200, 164, 94, 0.5) !important;
    box-shadow: 0 0 0 3px rgba(200, 164, 94, 0.1);
}

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
    html {
        font-size: 15px;
    }

    .cta-primary,
    .cta-secondary {
        padding: 12px 24px;
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 360px) {
    html {
        font-size: 14px;
    }
}
