/* ========================================
   MEZEMER CATERING - STYLESHEET
   ======================================== */

/* CSS Variables */
:root {
    --color-cream: #F9F4E1;
    --color-navy: #2B2B2B;
    --color-gold: #8b0000;
    --color-gold-dark: #600000;
}

/* Base Styles */
html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--color-cream);
    color: var(--color-navy);
    font-family: 'Cormorant Garamond', serif;
    letter-spacing: 0.05em;
    line-height: 1.8;
}

h1, h2, h3, h4, h5, h6 {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ========================================
   ANIMATIONS
   ======================================== */

/* Two Image Showcase - Desktop Edge Extension */
@media (min-width: 768px) {
    .two-image-section {
        overflow: visible;
    }

    .two-image-section .image-left,
    .two-image-section .image-right {
        width: 100%;
        max-width: none;
    }
    
    .two-image-section .image-left {
        margin-left: 0;
    }
    
    .two-image-section .image-right {
        margin-right: 0;
    }
}

/* Scroll Reveal Classes */
.reveal {
    opacity: 0;
    transform: translateY(2rem);
    transition: all 1s ease-out;
}

.reveal-active {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered Delays */
.delay-100 { transition-delay: 100ms; }
.delay-200 { transition-delay: 200ms; }
.delay-300 { transition-delay: 300ms; }
.delay-400 { transition-delay: 400ms; }
.delay-500 { transition-delay: 500ms; }

/* Image Scale Animation */
.img-scale {
    transform: scale(1);
    transition: transform 2000ms ease-in-out;
}

.img-scale-active {
    transform: scale(1.05);
}

/* Hero Initial Animation */
.hero-scale {
    animation: heroScaleIn 2s ease-out forwards;
}

@keyframes heroScaleIn {
    from {
        transform: scale(1.1);
    }
    to {
        transform: scale(1);
    }
}

/* Fade In Up Animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 1s ease-out forwards;
}

/* Pulse Animation for CTA */
@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.02);
    }
}

.pulse:hover {
    animation: pulse 1s ease-in-out infinite;
}

/* ========================================
   CUSTOM SCROLLBAR
   ======================================== */

::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--color-cream);
}

::-webkit-scrollbar-thumb {
    background: var(--color-gold);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--color-gold-dark);
}

/* ========================================
   UTILITY CLASSES
   ======================================== */

.text-gold { color: var(--color-gold); }
.text-navy { color: var(--color-navy); }
.text-cream { color: var(--color-cream); }

.bg-gold { background-color: var(--color-gold); }
.bg-navy { background-color: var(--color-navy); }
.bg-cream { background-color: var(--color-cream); }

.border-gold { border-color: var(--color-gold); }
.border-navy { border-color: var(--color-navy); }

/* Hover States */
.hover\:text-gold:hover { color: var(--color-gold); }
.hover\:text-cream:hover { color: var(--color-cream); }
.hover\:bg-gold:hover { background-color: var(--color-gold); }
.hover\:bg-cream:hover { background-color: var(--color-cream); }

/* Opacity Variants */
.text-navy\/70 { color: rgba(43, 43, 43, 0.7); }
.text-navy\/60 { color: rgba(43, 43, 43, 0.6); }
.text-cream\/90 { color: rgba(249, 244, 225, 0.9); }
.text-cream\/70 { color: rgba(249, 244, 225, 0.7); }
.text-cream\/50 { color: rgba(249, 244, 225, 0.5); }
.text-cream\/30 { color: rgba(249, 244, 225, 0.3); }

.hover\:text-gold\/70:hover { color: rgba(139, 0, 0, 0.7); }
.hover\:text-cream\/70:hover { color: rgba(249, 244, 225, 0.7); }

/* Background Opacity */
.bg-navy\/30 { background-color: rgba(43, 43, 43, 0.3); }
.bg-cream\/80 { background-color: rgba(249, 244, 225, 0.8); }
.bg-cream\/95 { background-color: rgba(249, 244, 225, 0.95); }

/* Border Opacity */
.border-gold\/20 { border-color: rgba(139, 0, 0, 0.2); }
.border-cream\/10 { border-color: rgba(249, 244, 225, 0.1); }

/* ========================================
   RESPONSIVE TYPOGRAPHY
   ======================================== */

/* Mobile Text Sizes */
@media (max-width: 768px) {
    .text-xs {
        font-size: 0.65rem;
    }
    
    .text-\[10px\] {
        font-size: 10px;
    }
}

/* ========================================
   IMAGE STYLES
   ======================================== */

.img-container {
    overflow: hidden;
}

.img-container img {
    transition: transform 2000ms ease-in-out;
}

.img-container:hover img {
    transform: scale(1.05);
}

/* ========================================
   BUTTON STYLES
   ======================================== */

.btn-primary {
    display: inline-block;
    padding: 1rem 2.5rem;
    background-color: var(--color-cream);
    color: var(--color-navy);
    border: 2px solid transparent;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 0.875rem;
}

.btn-primary:hover {
    background-color: var(--color-gold);
    border-color: var(--color-gold);
    color: var(--color-cream);
}

.btn-secondary {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border: 1px solid var(--color-gold);
    color: var(--color-navy);
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 0.875rem;
}

.btn-secondary:hover {
    background-color: var(--color-gold);
    color: var(--color-cream);
}

/* ========================================
   SECTION STYLES
   ======================================== */

.section-padding {
    padding-top: 6rem;
    padding-bottom: 6rem;
}

@media (min-width: 768px) {
    .section-padding {
        padding-top: 8rem;
        padding-bottom: 8rem;
    }
}

/* ========================================
   NAVBAR STYLES
   ======================================== */

.navbar {
    transition: all 0.3s ease;
}

.navbar.scrolled {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

/* ========================================
   CARD STYLES
   ======================================== */

.service-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

/* ========================================
   DIVIDER STYLES
   ======================================== */

.divider {
    width: 6rem;
    height: 1px;
    background-color: var(--color-gold);
    margin: 3rem auto;
}

.divider-small {
    width: 3rem;
    height: 1px;
    background-color: var(--color-gold);
    margin: 1.5rem auto;
}

/* ========================================
   GALLERY GRID
   ======================================== */

.gallery-grid {
    display: grid;
    gap: 1rem;
}

@media (min-width: 768px) {
    .gallery-grid {
        gap: 1.5rem;
    }
}

.gallery-item {
    overflow: hidden;
    position: relative;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

/* ========================================
   TESTIMONIAL STYLES
   ======================================== */

.testimonial-card {
    background: linear-gradient(135deg, var(--color-cream) 0%, rgba(249, 244, 225, 0.8) 100%);
    border-left: 3px solid var(--color-gold);
}

/* ========================================
   FORM STYLES
   ======================================== */

input, textarea, select {
    font-family: 'Cormorant Garamond', serif;
}

input:focus, textarea:focus, select:focus {
    outline: none;
    border-color: var(--color-gold);
    box-shadow: 0 0 0 3px rgba(139, 0, 0, 0.1);
}

/* ========================================
   LOADING ANIMATION
   ======================================== */

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--color-cream);
    border-top-color: var(--color-gold);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ========================================
   ACCESSIBILITY
   ======================================== */

@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;
    }
}

/* Focus States */
a:focus,
button:focus,
input:focus,
textarea:focus {
    outline: 2px solid var(--color-gold);
    outline-offset: 2px;
}

/* Skip Link */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--color-gold);
    color: var(--color-cream);
    padding: 0.5rem 1rem;
    z-index: 100;
    transition: top 0.3s ease;
}

.skip-link:focus {
    top: 0;
}