/* ========================================
   Adam's General Store - Custom Styles
   Burgundy & Blush | Minimalist Design
======================================== */

/* --- CSS Custom Properties --- */
:root {
    --burgundy-500: #800020;
    --burgundy-600: #72001d;
    --burgundy-200: #f0c4c4;
    --burgundy-100: #f9e4e4;
    --cream: #FAF9F6;
    --charcoal: #2C2C2C;
    --transition-smooth: cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    overflow-x: hidden;
}

::selection {
    background: var(--burgundy-500);
    color: white;
}

/* --- Custom Scrollbar --- */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: var(--cream);
}

::-webkit-scrollbar-thumb {
    background: var(--burgundy-200);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--burgundy-500);
}

/* --- Navigation --- */
#navbar {
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    background: rgba(250, 249, 246, 0.85);
    border-bottom: 1px solid rgba(44, 44, 44, 0.06);
}

#navbar.scrolled {
    background: rgba(250, 249, 246, 0.95);
    box-shadow: 0 1px 0 rgba(44, 44, 44, 0.06);
}

/* --- Hero Animations --- */
.hero-tag {
    animation: fadeUp 0.8s var(--transition-smooth) 0.2s both;
}

.hero-title-line {
    animation: slideUp 0.9s var(--transition-smooth) both;
}

.hero-title-line:nth-child(1) { animation-delay: 0.3s; }
.hero-title-line:nth-child(2) { animation-delay: 0.45s; }
.hero-title-line:nth-child(3) { animation-delay: 0.6s; }

.hero-image {
    animation: fadeIn 1.2s var(--transition-smooth) 0.5s both;
}

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

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(100%);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

@keyframes scrollPulse {
    0%, 100% {
        opacity: 0.3;
        transform: scaleY(0.5);
        transform-origin: top;
    }
    50% {
        opacity: 1;
        transform: scaleY(1);
    }
}

/* --- Service Cards --- */
.service-card {
    transition: all 0.5s var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, var(--burgundy-500), var(--burgundy-300));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.5s var(--transition-smooth);
}

.service-card:hover::before {
    transform: scaleX(1);
}

/* --- Feature Items --- */
.feature-item {
    transition: all 0.3s var(--transition-smooth);
}

.feature-item:hover {
    padding-left: 12px;
}

/* --- Contact Items --- */
.contact-item {
    transition: all 0.3s var(--transition-smooth);
}

.contact-item:hover {
    transform: translateX(8px);
}

/* --- Scroll Reveal Animations --- */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s var(--transition-smooth);
}

.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; }
.reveal-delay-6 { transition-delay: 0.6s; }

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

.mobile-link {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s var(--transition-smooth);
}

#mobile-menu.active .mobile-link {
    opacity: 1;
    transform: translateY(0);
}

#mobile-menu.active .mobile-link:nth-child(1) { transition-delay: 0.1s; }
#mobile-menu.active .mobile-link:nth-child(2) { transition-delay: 0.15s; }
#mobile-menu.active .mobile-link:nth-child(3) { transition-delay: 0.2s; }
#mobile-menu.active .mobile-link:nth-child(4) { transition-delay: 0.25s; }

/* --- Menu Lines Animation --- */
.menu-line {
    transition: all 0.4s var(--transition-smooth);
}

#menu-btn.active .menu-line:nth-child(1) {
    transform: rotate(45deg) translate(3px, 3px);
}

#menu-btn.active .menu-line:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

#menu-btn.active .menu-line:nth-child(3) {
    transform: rotate(-45deg) translate(3px, -3px);
    width: 1.5rem;
}

/* --- Image Hover Effects --- */
.service-card img,
section img {
    transition: transform 0.7s var(--transition-smooth);
}

/* --- Form Focus States --- */
input:focus,
textarea:focus,
select:focus {
    border-bottom-color: var(--burgundy-500) !important;
}

input:focus ~ label,
textarea:focus ~ label,
select:focus ~ label {
    color: var(--burgundy-500);
}

/* --- Button Hover Effects --- */
button, 
a[href] {
    cursor: pointer;
}

/* --- Responsive Adjustments --- */
@media (max-width: 768px) {
    .hero-tag {
        font-size: 11px;
    }
    
    .service-card {
        padding: 2rem !important;
    }
}

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

/* --- Print Styles --- */
@media print {
    #navbar,
    .scroll-indicator,
    button {
        display: none !important;
    }
    
    body {
        color: #000;
        background: #fff;
    }
}
