/* ===== Custom Properties ===== */
:root {
    --charcoal-900: #1a1a1a;
    --charcoal-800: #2d2d2d;
    --charcoal-700: #404040;
    --charcoal-600: #525252;
    --charcoal-500: #6b6b6b;
    --charcoal-400: #8a8a8a;
    --charcoal-300: #b0b0b0;
    --charcoal-200: #d1d1d1;
    --charcoal-100: #e8e8e8;
    --charcoal-50: #f5f5f5;
    --coral-600: #c0503a;
    --coral-500: #e8735a;
    --coral-400: #f09080;
    --coral-300: #f5b0a5;
    --coral-200: #fad4cf;
    --coral-100: #fde8e4;
    --coral-50: #fef3f0;
    --stone-100: #f5f5f4;
    --stone-200: #e7e5e4;
    --stone-50: #fafaf9;
}

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

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

body {
    font-family: 'Lato', sans-serif;
    font-weight: 400;
    line-height: 1.6;
    color: var(--charcoal-900);
    background-color: var(--stone-50);
    overflow-x: hidden;
}

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

.font-lato {
    font-family: 'Lato', sans-serif;
}

/* ===== Navigation ===== */
#navbar {
    background: transparent;
    transition: background 0.5s ease, box-shadow 0.5s ease, padding 0.5s ease;
}

#navbar.scrolled {
    background: rgba(26, 26, 26, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--coral-400);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

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

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

.nav-brand-text {
    color: white !important;
}

#navbar.scrolled .nav-brand-text {
    color: white !important;
}

/* Mobile menu */
#mobile-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
}

#mobile-menu.open {
    max-height: 400px;
}

.mobile-nav-link {
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

/* ===== Hero ===== */
.hero-gradient {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d1f1a 25%, #4a2020 50%, #2d1f1a 75%, #1a1a1a 100%);
    background-size: 400% 400%;
    animation: heroGradientShift 15s ease infinite;
}

@keyframes heroGradientShift {
    0% { background-position: 0% 50%; }
    25% { background-position: 100% 0%; }
    50% { background-position: 100% 50%; }
    75% { background-position: 0% 100%; }
    100% { background-position: 0% 50%; }
}

.hero-badge {
    animation: fadeInDown 0.8s ease forwards;
}

.hero-badge span:first-child {
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(1.2); }
}

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

.hero h1 {
    animation: fadeInUp 1s ease 0.2s both;
}

.hero p {
    animation: fadeInUp 1s ease 0.4s both;
}

.hero .flex {
    animation: fadeInUp 1s ease 0.6s both;
}

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

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

.animate-scroll-line {
    animation: scrollLine 1.5s ease-in-out infinite;
}

/* ===== Section Labels ===== */
.section-label {
    letter-spacing: 0.2em;
}

.section-label-dark {
    letter-spacing: 0.2em;
}

/* ===== Service Cards ===== */
.service-card {
    border: 1px solid rgba(0, 0, 0, 0.04);
}

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

/* ===== Gallery ===== */
.gallery-item {
    height: 280px;
}

.gallery-item img {
    transition: transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* ===== CTA Section ===== */
.cta-gradient {
    background: linear-gradient(135deg, #c0503a 0%, #e8735a 50%, #f09080 100%);
    background-size: 200% 200%;
    animation: ctaGradient 8s ease infinite;
}

@keyframes ctaGradient {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* ===== Scroll Reveal (progressive enhancement) ===== */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 1;
        transform: translateY(0);
        transition: opacity 0.8s ease, transform 0.8s ease;
    }

    .reveal-hidden {
        opacity: 0;
        transform: translateY(30px);
    }

    .reveal-hidden.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== Button Focus ===== */
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid var(--coral-500);
    outline-offset: 2px;
}

/* ===== Mobile Responsive ===== */
@media (max-width: 768px) {
    .hero-badge {
        font-size: 0.7rem;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .service-card {
        margin: 0 -0.5rem;
    }

    .gallery-item {
        height: 200px;
    }

    .section-label {
        font-size: 0.75rem;
    }

    .font-playfair.text-4xl {
        font-size: 2.25rem;
    }

    .font-playfair.text-5xl {
        font-size: 2.75rem;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 0.95rem;
    }

    .gallery-item {
        height: 180px;
    }
}

/* ===== Utility ===== */
.text-charcoal-900 { color: var(--charcoal-900); }
.text-charcoal-800 { color: var(--charcoal-800); }
.text-charcoal-700 { color: var(--charcoal-700); }
.text-charcoal-600 { color: var(--charcoal-600); }
.text-charcoal-500 { color: var(--charcoal-500); }
.text-charcoal-400 { color: var(--charcoal-400); }
.text-charcoal-300 { color: var(--charcoal-300); }
.text-charcoal-200 { color: var(--charcoal-200); }
.text-charcoal-100 { color: var(--charcoal-100); }

.bg-charcoal-900 { background-color: var(--charcoal-900); }
.bg-charcoal-800 { background-color: var(--charcoal-800); }
.bg-charcoal-700 { background-color: var(--charcoal-700); }

.text-coral-600 { color: var(--coral-600); }
.text-coral-500 { color: var(--coral-500); }
.text-coral-400 { color: var(--coral-400); }
.text-coral-300 { color: var(--coral-300); }
.text-coral-200 { color: var(--coral-200); }
.text-coral-100 { color: var(--coral-100); }

.bg-coral-600 { background-color: var(--coral-600); }
.bg-coral-500 { background-color: var(--coral-500); }
.bg-coral-400 { background-color: var(--coral-400); }
.bg-coral-200 { background-color: var(--coral-200); }
.bg-coral-100 { background-color: var(--coral-100); }
.bg-coral-50 { background-color: var(--coral-50); }

.bg-stone-100 { background-color: var(--stone-100); }
.bg-stone-200 { background-color: var(--stone-200); }
.bg-stone-50 { background-color: var(--stone-50); }
