/* ========================================
   KT's Coffee Co. - Custom Styles
   ======================================== */

/* Custom Properties */
:root {
    --plum-50: #faf5ff;
    --plum-100: #f3e8ff;
    --plum-200: #e9d5ff;
    --plum-300: #d8b4fe;
    --plum-400: #c084fc;
    --plum-500: #a855f7;
    --plum-600: #9333ea;
    --plum-700: #7e22ce;
    --plum-800: #6b21a8;
    --plum-900: #581c87;
    
    --amber-300: #fcd34d;
    --amber-400: #fbbf24;
    --amber-500: #f59e0b;
    --amber-600: #d97706;
    
    --cream-50: #fffbf5;
    --cream-100: #fef7ed;
}

/* Base Styles */
html {
    scroll-behavior: smooth;
}

body {
    font-family: 'DM Sans', sans-serif;
    color: #581c87;
    overflow-x: hidden;
}

.font-playfair {
    font-family: 'Playfair Display', serif;
}

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

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

::-webkit-scrollbar-thumb {
    background: var(--plum-300);
    border-radius: 5px;
}

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

/* Navigation */
.navbar {
    background: rgba(255, 251, 245, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--plum-100);
}

.navbar.scrolled {
    background: rgba(255, 251, 245, 0.98);
    box-shadow: 0 4px 20px rgba(88, 28, 135, 0.1);
}

.nav-link {
    position: relative;
}

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

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

/* Buttons */
.btn-primary {
    background: linear-gradient(135deg, var(--amber-400), var(--amber-500));
    color: #581c87;
    font-weight: 600;
    padding: 12px 28px;
    border-radius: 9999px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(251, 191, 36, 0.3);
    display: inline-block;
    text-decoration: none;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(251, 191, 36, 0.4);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    font-weight: 600;
    padding: 12px 28px;
    border-radius: 9999px;
    transition: all 0.3s ease;
    display: inline-block;
    text-decoration: none;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

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

.menu-card:hover {
    transform: translateY(-8px);
}

/* Testimonial Cards */
.testimonial-card {
    transition: all 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.15);
}

/* Input Fields */
.input-field {
    border: 2px solid var(--plum-200);
    border-radius: 12px;
    padding: 12px 16px;
    font-size: 1rem;
    color: var(--plum-900);
    transition: all 0.3s ease;
    outline: none;
    font-family: 'DM Sans', sans-serif;
}

.input-field:focus {
    border-color: var(--amber-400);
    box-shadow: 0 0 0 3px rgba(251, 191, 36, 0.2);
}

.input-field::placeholder {
    color: var(--plum-300);
}

/* Mobile Menu */
.mobile-menu {
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.mobile-link {
    transition: all 0.3s ease;
}

/* Back to Top */
.back-to-top {
    transition: all 0.3s ease;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(251, 191, 36, 0.4);
}

/* Animations */
@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-20px);
    }
}

@keyframes float-delayed {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-15px);
    }
}

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

.hero-decoration-1 {
    animation: float 6s ease-in-out infinite;
}

.hero-decoration-2 {
    animation: float-delayed 8s ease-in-out infinite;
}

.hero-decoration-3 {
    animation: float 5s ease-in-out infinite;
}

.hero-badge {
    animation: fadeInUp 0.6s ease forwards;
}

.hero-badge,
h1,
p,
.hero-badge + p,
.flex-col,
.grid {
    animation: fadeInUp 0.6s ease forwards;
}

.hero h1 {
    animation-delay: 0.1s;
}

.hero p {
    animation-delay: 0.2s;
}

.hero .flex-col {
    animation-delay: 0.3s;
}

.hero .grid {
    animation-delay: 0.4s;
}

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

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .font-playfair {
        font-size: clamp(2rem, 8vw, 3rem);
    }
    
    .hero h1 {
        font-size: clamp(2.5rem, 10vw, 4rem);
    }
    
    .menu-card {
        margin-bottom: 1rem;
    }
}

/* Print Styles */
@media print {
    .navbar,
    .back-to-top,
    .mobile-menu {
        display: none;
    }
    
    body {
        color: black;
        background: white;
    }
}
