/* ============================================
   ALISON GILMORE DESIGN INC. — CUSTOM STYLES
   ============================================ */

/* --- Base Reset & Typography --- */
*, *::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;
}

/* --- Navigation --- */
#navbar {
    background: transparent;
    transition: background 0.5s ease, box-shadow 0.5s ease;
}

#navbar.scrolled {
    background: rgba(255, 255, 255, 0.97);
    box-shadow: 0 1px 0 rgba(26, 39, 68, 0.08);
}

.nav-logo-text {
    color: #1a2744;
    transition: color 0.5s ease;
}

.nav-logo-sub {
    color: #4a6499;
    transition: color 0.5s ease;
}

#navbar.scrolled .nav-logo-text {
    color: #1a2744;
}

#navbar.scrolled .nav-logo-sub {
    color: #4a6499;
}

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

/* --- Mobile Menu --- */
.mobile-menu {
    backdrop-filter: blur(20px);
}

.mobile-menu.active {
    opacity: 1;
    pointer-events: all;
}

/* --- Hero Section --- */
.hero-bg {
    will-change: transform;
}

/* --- Section Eyebrow --- */
.section-eyebrow {
    letter-spacing: 0.3em;
}

/* --- Scroll Indicator --- */
.scroll-indicator {
    animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
    0%, 100% { opacity: 0.4; }
    50% { opacity: 1; }
}

.scroll-line {
    background: linear-gradient(to bottom, rgba(255,255,255,0.4), transparent);
}

/* --- CTA Buttons --- */
.cta-primary {
    position: relative;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.cta-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
    transition: left 0.5s ease;
}

.cta-primary:hover::before {
    left: 100%;
}

.cta-secondary {
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- Service Cards --- */
.service-card {
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 60px rgba(26, 39, 68, 0.08);
}

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

.gallery-item img {
    transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- Testimonial Cards --- */
.testimonial-card {
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.testimonial-card:hover {
    transform: translateY(-4px);
    border-color: rgba(200, 164, 94, 0.3);
}

/* --- Scroll Reveal Animations --- */
.reveal-on-scroll {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), 
                transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* Staggered delays for grid items */
.reveal-on-scroll:nth-child(1) { transition-delay: 0.05s; }
.reveal-on-scroll:nth-child(2) { transition-delay: 0.1s; }
.reveal-on-scroll:nth-child(3) { transition-delay: 0.15s; }
.reveal-on-scroll:nth-child(4) { transition-delay: 0.2s; }
.reveal-on-scroll:nth-child(5) { transition-delay: 0.25s; }
.reveal-on-scroll:nth-child(6) { transition-delay: 0.3s; }

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

/* --- Custom Selection --- */
::selection {
    background: rgba(200, 164, 94, 0.2);
    color: #1a2744;
}

/* --- 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;
    }
    
    .reveal-on-scroll {
        opacity: 1;
        transform: none;
    }
    
    .scroll-indicator {
        animation: none;
        opacity: 0.6;
    }
}

/* --- Responsive Adjustments --- */
@media (max-width: 767px) {
    .hero-title {
        font-size: 2.5rem;
        line-height: 1.2;
    }
    
    .hero-title br {
        display: none;
    }
    
    .hero-title span {
        display: block;
        margin-top: 0.25rem;
    }
    
    .cta-primary,
    .cta-secondary {
        width: 100%;
        justify-content: center;
    }
    
    #about .relative.overflow-hidden img {
        height: 400px;
    }
    
    .service-card {
        padding: 1.5rem;
    }
    
    .testimonial-card {
        padding: 1.5rem;
    }
    
    #contact form {
        padding: 1.5rem;
    }
}

@media (min-width: 768px) and (max-width: 1023px) {
    .hero-title {
        font-size: 3.5rem;
    }
}

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

/* --- Print Styles --- */
@media print {
    #navbar,
    .scroll-indicator,
    .cta-primary,
    .cta-secondary {
        display: none;
    }
    
    body {
        color: #000;
        background: #fff;
    }
    
    section {
        page-break-inside: avoid;
    }
}
