/* Magic City Kidz — Custom Styles */

/* Base overrides */
:root {
    --color-dark: #1a1410;
    --color-dark-2: #231c16;
    --color-dark-3: #2c231c;
    --color-terracotta: #c8956c;
    --color-terracotta-light: #e8c4a0;
    --color-sand: #e8d5c0;
    --color-sand-light: #f2e8dc;
    --color-gold: #d4a574;
}

/* Selection */
::selection {
    background: rgba(200, 149, 108, 0.3);
    color: #f2e8dc;
}

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

/* Smooth scroll offset for fixed nav */
section[id] {
    scroll-margin-top: 80px;
}

/* Service card icon gradient border effect */
.service-card {
    background-image: linear-gradient(145deg, #231c16, #2c231c);
}

/* Button active states */
.btn-primary:active {
    transform: translateY(0) scale(0.98);
}

.btn-outline:active {
    transform: translateY(0) scale(0.98);
}

/* Gallery hover overlay */
.gallery-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(26, 20, 16, 0.4) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.4s ease;
    border-radius: 8px;
}

.gallery-item:hover::after {
    opacity: 1;
}

.gallery-item {
    position: relative;
}

/* Testimonial card quote mark */
.testimonial-card::before {
    content: '\201C';
    position: absolute;
    top: 16px;
    right: 24px;
    font-family: 'Playfair Display', serif;
    font-size: 4rem;
    color: rgba(200, 149, 108, 0.1);
    line-height: 1;
}

.testimonial-card {
    position: relative;
}

/* Gold divider animation */
@keyframes shimmer {
    0% { background-position: -200% center; }
    100% { background-position: 200% center; }
}

.gold-line {
    background: linear-gradient(90deg, transparent, #c8956c, #e8c4a0, #c8956c, transparent);
    background-size: 200% 100%;
}

@media (prefers-reduced-motion: no-preference) {
    .gold-line {
        animation: shimmer 4s ease-in-out infinite;
    }
}

/* Navbar scroll state */
.nav-scrolled {
    background: rgba(26, 20, 16, 0.97) !important;
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(200, 149, 108, 0.15);
}

/* Mobile menu transitions */
.mobile-menu {
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.mobile-menu.open {
    transform: translateX(0);
}

/* Mobile link hover */
.mobile-link {
    transition: color 0.3s ease;
}

.mobile-link:hover {
    color: #e8c4a0;
}

/* Select dropdown styling */
select.form-input {
    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='%23c8956c' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 36px;
}

/* Textarea resize */
textarea.form-input {
    resize: vertical;
    min-height: 100px;
}

/* Button link wrapper */
.btn-primary span,
.btn-outline span {
    position: relative;
    z-index: 1;
}

/* Print styles */
@media print {
    .fixed, header, footer { position: static !important; }
    body { background: white !important; color: black !important; }
    .hero-bg { min-height: auto; }
    .hero-bg::before { display: none; }
}
