/* ============================================
   Deb's Lil Angels Daycare — Custom Styles
   Premium Dark Luxury Theme
   Deep Navy + Warm Gold
============================================ */

/* ===== CSS Custom Properties ===== */
:root {
    --color-navy-900: #020c1b;
    --color-navy-800: #0a192f;
    --color-navy-700: #112240;
    --color-navy-600: #1a2f4b;
    --color-navy-500: #233554;
    --color-navy-400: #304667;
    --color-navy-300: #8892b0;
    --color-navy-200: #a8b5d1;
    --color-navy-100: #ccd6f6;
    --color-gold-500: #d4af37;
    --color-gold-400: #e5c158;
    --color-gold-300: #f0d060;
    --color-gold-600: #b8962e;
    --color-gold-700: #967a24;
    
    --font-serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
    --font-sans: 'Lato', system-ui, -apple-system, sans-serif;
    
    --transition-smooth: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --transition-bounce: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

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

body {
    font-family: var(--font-sans);
    background-color: var(--color-navy-900);
    color: var(--color-navy-100);
    line-height: 1.7;
    overflow-x: hidden;
}

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

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

/* ===== Scrollbar ===== */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--color-navy-900);
}
::-webkit-scrollbar-thumb {
    background: var(--color-navy-600);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--color-gold-500);
}

/* ===== Gold Text Utility ===== */
.gold-text {
    color: var(--color-gold-400);
}

/* ===== Section Labels ===== */
.section-label {
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

.gold-line {
    display: block;
    width: 40px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--color-gold-500), transparent);
}

/* ===== Gold Button ===== */
.gold-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    background: linear-gradient(135deg, var(--color-gold-500) 0%, var(--color-gold-400) 50%, var(--color-gold-600) 100%);
    color: var(--color-navy-900);
    font-family: var(--font-sans);
    font-weight: 700;
    font-size: 0.8rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition-smooth);
    box-shadow: 0 4px 20px rgba(212, 175, 55, 0.3), inset 0 1px 0 rgba(255,255,255,0.2);
    position: relative;
    overflow: hidden;
}

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

.gold-btn:hover::before {
    left: 100%;
}

.gold-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(212, 175, 55, 0.4), inset 0 1px 0 rgba(255,255,255,0.2);
}

.gold-btn:active {
    transform: translateY(0);
}

/* ===== Section Spacing ===== */
.section {
    position: relative;
}

/* ===== Navigation ===== */
.nav {
    background: rgba(2, 12, 27, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(212, 175, 55, 0.1);
    transition: var(--transition-smooth);
    z-index: 50;
}

.nav.scrolled {
    background: rgba(2, 12, 27, 0.95);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.4);
}

.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--color-gold-500);
    transition: width 0.3s ease;
}

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

.nav-link:hover {
    color: var(--color-gold-400) !important;
}

/* ===== Mobile Menu ===== */
.mobile-menu-btn {
    z-index: 60;
}

.menu-line {
    transition: all 0.3s ease;
}

.mobile-menu-btn.active .menu-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}
.mobile-menu-btn.active .menu-line:nth-child(2) {
    opacity: 0;
}
.mobile-menu-btn.active .menu-line:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
    width: 28px;
}

.mobile-menu {
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

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

.mobile-menu-link {
    font-family: var(--font-serif);
    font-size: 1.75rem;
    transition: color 0.3s ease;
}

/* ===== Hero Section ===== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-img {
    transition: transform 8s ease;
    will-change: transform;
}

.hero:hover .hero-img {
    transform: scale(1.03);
}

.hero-overlay {
    background: linear-gradient(
        135deg,
        rgba(2, 12, 27, 0.88) 0%,
        rgba(10, 25, 47, 0.82) 40%,
        rgba(17, 34, 64, 0.75) 70%,
        rgba(2, 12, 27, 0.92) 100%
    );
}

.hero-content {
    padding: 0 1rem;
}

.hero-title {
    text-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

.hero-subtitle {
    text-shadow: 0 2px 15px rgba(0, 0, 0, 0.4);
}

.hero-badge {
    animation: badgePulse 3s ease-in-out infinite;
}

@keyframes badgePulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(212, 175, 55, 0.2); }
    50% { box-shadow: 0 0 20px 5px rgba(212, 175, 55, 0.1); }
}

.hero-actions {
    gap: 1rem;
}

.hero-cta-btn {
    border-radius: 8px;
    transition: var(--transition-smooth);
}

.hero-cta-btn:hover {
    background: rgba(212, 175, 55, 0.08);
    transform: translateY(-2px);
}

.hero-scroll {
    animation: scrollBounce 2s ease-in-out infinite;
}

@keyframes scrollBounce {
    0%, 100% { transform: translate(-50%, 0); }
    50% { transform: translate(-50%, 8px); }
}

.scroll-line {
    background: linear-gradient(to bottom, var(--color-gold-500), transparent);
}

/* ===== Hero Decorative Stars ===== */
.hero-deco {
    animation: starFloat 6s ease-in-out infinite;
}

.hero-deco-1 {
    animation-delay: 0s;
}
.hero-deco-2 {
    animation-delay: 2s;
}
.hero-deco-3 {
    animation-delay: 4s;
}

@keyframes starFloat {
    0%, 100% { transform: translateY(0) rotate(0deg); opacity: 0.2; }
    50% { transform: translateY(-20px) rotate(10deg); opacity: 0.35; }
}

/* ===== About Section ===== */
.about-image-wrapper {
    position: relative;
}

.about-image-frame {
    border-radius: 12px;
}

.about-image {
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.5);
}

.about-accent-card {
    border-radius: 12px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
}

.about-stats {
    gap: 1.5rem;
}

/* ===== Services Section ===== */
.service-card {
    perspective: 1000px;
}

.service-card-inner {
    border-radius: 16px;
    transition: var(--transition-smooth);
    transform-style: preserve-3d;
}

.service-card-inner:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(212, 175, 55, 0.2);
}

.service-icon {
    transition: transform 0.4s ease;
}

.service-card-inner:hover .service-icon {
    transform: scale(1.1) rotate(5deg);
}

/* ===== Why Choose Us ===== */
.why-image-wrapper {
    position: relative;
}

.why-image {
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.5);
}

.feature-item {
    transition: var(--transition-smooth);
}

.feature-item:hover .feature-icon-shrink-0 {
    background: rgba(212, 175, 55, 0.2);
    transform: scale(1.05);
}

/* ===== Testimonials ===== */
.testimonials-bg-pattern {
    animation: patternDrift 30s linear infinite;
}

@keyframes patternDrift {
    0% { transform: translate(0, 0); }
    100% { transform: translate(100px, 50px); }
}

.testimonial-card {
    perspective: 1000px;
}

.testimonial-card-inner {
    border-radius: 16px;
    transition: var(--transition-smooth);
}

.testimonial-card-inner:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(212, 175, 55, 0.15);
}

.testimonial-quote-icon {
    opacity: 0.7;
}

.testimonial-author-avatar {
    transition: var(--transition-smooth);
}

.testimonial-card-inner:hover .testimonial-author-avatar {
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.3);
}

/* ===== Contact Section ===== */
.contact-form-wrapper {
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-label {
    font-size: 0.7rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.form-input {
    width: 100%;
    padding: 14px 16px;
    background: rgba(10, 25, 47, 0.6);
    border: 1px solid var(--color-navy-600);
    border-radius: 8px;
    color: var(--color-navy-100);
    font-family: var(--font-sans);
    font-size: 1rem;
    transition: var(--transition-smooth);
    outline: none;
}

.form-input::placeholder {
    color: var(--color-navy-500);
}

.form-input:focus {
    border-color: var(--color-gold-500);
    background: rgba(10, 25, 47, 0.8);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
}

.form-input:hover:not(:focus) {
    border-color: var(--color-navy-400);
}

select.form-input {
    appearance: none;
    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='%23d4af37' 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 16px center;
    padding-right: 40px;
    cursor: pointer;
}

select.form-input option {
    background: var(--color-navy-800);
    color: var(--color-navy-100);
}

.form-success {
    animation: successFadeIn 0.5s ease forwards;
}

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

/* ===== Map Section ===== */
.map-container {
    position: relative;
}

.map-overlay {
    pointer-events: none;
}

/* ===== Footer ===== */
.footer {
    background: var(--color-navy-900);
    border-top: 1px solid rgba(212, 175, 55, 0.1);
}

.footer-stars-pattern {
    animation: footerStarDrift 40s linear infinite;
}

@keyframes footerStarDrift {
    0% { transform: translate(0, 0); }
    100% { transform: translate(-80px, -40px); }
}

.footer-bottom {
    border-radius: 0;
}

/* ===== Back to Top ===== */
.back-to-top {
    transition: var(--transition-smooth);
}

.back-to-top.visible {
    opacity: 1;
    pointer-events: all;
}

.back-to-top:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.4);
}

/* ===== Scroll Reveal Animations ===== */
.reveal-up,
.reveal-left,
.reveal-right {
    opacity: 1;
    transform: none;
    transition: opacity 0.8s ease, transform 0.8s ease;
}

@media (prefers-reduced-motion: no-preference) {
    .reveal-up {
        opacity: 0;
        transform: translateY(40px);
    }
    .reveal-left {
        opacity: 0;
        transform: translateX(-40px);
    }
    .reveal-right {
        opacity: 0;
        transform: translateX(40px);
    }
    
    .reveal-up.revealed,
    .reveal-left.revealed,
    .reveal-right.revealed {
        opacity: 1;
        transform: none;
    }
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.75rem;
    }
    
    .hero-title span {
        font-size: 0.85em;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .section {
        py: 4rem;
    }
    
    .about-image-wrapper {
        margin-bottom: 2rem;
    }
    
    .about-image {
        height: 350px !important;
    }
    
    .why-image {
        height: 400px !important;
    }
    
    .contact-form-wrapper {
        padding: 1.5rem;
    }
    
    .gold-btn {
        padding: 12px 20px;
        font-size: 0.75rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2.25rem;
    }
    
    .section-label {
        font-size: 0.7rem;
    }
    
    .about-stats {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .about-stat {
        text-align: center;
    }
}

/* ===== 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;
    }
    
    .hero-img {
        transition: none;
    }
    
    .hero:hover .hero-img {
        transform: none;
    }
    
    .reveal-up,
    .reveal-left,
    .reveal-right {
        opacity: 1;
        transform: none;
    }
}
