/* ===== Custom Styles for Natural Stone Creations ===== */

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

body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ===== Navigation ===== */
.nav {
    background: rgba(253, 248, 240, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(228, 193, 158, 0.3);
    transition: all duration-500;
}

.nav.scrolled {
    background: rgba(253, 248, 240, 0.95);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.08);
}

.nav-link {
    position: relative;
}

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

.mobile-menu.hidden {
    animation: slideUp 0.2s ease-in forwards;
}

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

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

/* ===== Hero ===== */
.hero {
    background: linear-gradient(135deg, #FDF8F0 0%, #FAF0E0 50%, #F5E6D3 100%);
}

.hero-blob {
    animation: blobFloat 8s ease-in-out infinite;
}

.blob-1 {
    animation-delay: 0s;
}

.blob-2 {
    animation-delay: -3s;
}

.blob-3 {
    animation-delay: -5s;
}

@keyframes blobFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(30px, -20px) scale(1.05); }
    66% { transform: translate(-20px, 20px) scale(0.95); }
}

/* Floating cards */
.floating-card {
    animation: floatCard 4s ease-in-out infinite;
}

.floating-card-2 {
    animation: floatCard2 5s ease-in-out infinite;
}

@keyframes floatCard {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

@keyframes floatCard2 {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-8px) rotate(2deg); }
}

/* ===== Buttons ===== */
.btn-primary {
    display: inline-flex;
    align-items: center;
    background: #C0603A;
    color: #fff;
    padding: 14px 28px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
    box-shadow: 0 4px 20px rgba(192, 96, 58, 0.35);
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    background: #a84e2e;
    box-shadow: 0 8px 30px rgba(192, 96, 58, 0.45);
    transform: translateY(-2px);
    color: #fff;
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    background: transparent;
    color: #C0603A;
    padding: 14px 28px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
    border: 2px solid #C0603A;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-secondary:hover {
    background: #C0603A;
    color: #fff;
    transform: translateY(-2px);
}

.btn-call {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #1c1917;
    color: #fff;
    padding: 14px 28px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
    box-shadow: 0 4px 20px rgba(28, 25, 23, 0.3);
    transition: all 0.3s ease;
}

.btn-call:hover {
    background: #292524;
    box-shadow: 0 8px 30px rgba(28, 25, 23, 0.4);
    transform: translateY(-2px);
    color: #fff;
}

/* ===== Section Labels ===== */
.section-label {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #C0603A;
    background: rgba(192, 96, 58, 0.1);
    padding: 6px 16px;
    border-radius: 50px;
}

.section-label-light {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #fdebd0;
    background: rgba(255, 255, 255, 0.15);
    padding: 6px 16px;
    border-radius: 50px;
}

/* ===== Service Cards ===== */
.service-card {
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* ===== Process Cards ===== */
.process-card {
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.process-card:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 255, 255, 0.35);
}

/* ===== Gallery ===== */
.gallery-item {
    height: 100%;
    min-height: 200px;
    cursor: pointer;
}

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

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

/* Staggered delays */
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }
.reveal-delay-6 { transition-delay: 0.6s; }

/* ===== Responsive ===== */
@media (max-width: 768px) {
    .hero {
        min-height: auto;
        padding: 80px 0 60px;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .floating-card {
        position: relative;
        bottom: auto;
        left: auto;
        margin-top: 1rem;
        display: inline-flex;
    }
    
    .floating-card-2 {
        display: none;
    }
}

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

/* ===== 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;
    }
    
    .reveal {
        opacity: 1;
        transform: none;
    }
}

/* ===== Focus styles ===== */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid #C0603A;
    outline-offset: 2px;
    border-radius: 4px;
}

/* ===== Utility ===== */
.text-balance {
    text-wrap: balance;
}
