/* ============================================
   Smoke 'N Styles — Custom Styles
   Classic & Elegant | Terracotta + Sand
   ============================================ */

/* --- Base & Typography --- */
html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: 'Lora', Georgia, serif;
    background-color: #fdfbf7;
    color: #4d3c30;
}

/* --- Scrollbar --- */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #f0ebe5;
}
::-webkit-scrollbar-thumb {
    background: #d4a862;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #c08e44;
}

/* --- Navigation --- */
#navbar {
    background: rgba(253, 251, 247, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(201, 181, 163, 0.3);
    transition: background 0.4s ease, box-shadow 0.4s ease;
}

#navbar.scrolled {
    background: rgba(253, 251, 247, 0.97);
    box-shadow: 0 1px 20px rgba(58, 45, 36, 0.08);
}

.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: #c45f3f;
    transition: width 0.3s ease;
}

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

.nav-brand {
    letter-spacing: 0.05em;
}

/* --- Mobile Menu --- */
#mobileMenu.open {
    opacity: 1;
    pointer-events: all;
}

#mobileMenu.closed {
    opacity: 0;
    pointer-events: none;
}

.mobile-link {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

#mobileMenu.open .mobile-link {
    opacity: 1;
    transform: translateY(0);
}

#mobileMenu.open .mobile-link:nth-child(1) { transition-delay: 0.1s; }
#mobileMenu.open .mobile-link:nth-child(2) { transition-delay: 0.15s; }
#mobileMenu.open .mobile-link:nth-child(3) { transition-delay: 0.2s; }
#mobileMenu.open .mobile-link:nth-child(4) { transition-delay: 0.25s; }
#mobileMenu.open .mobile-link:nth-child(5) { transition-delay: 0.3s; }

/* --- Hero Animations --- */
.hero-tag {
    opacity: 0;
    transform: translateX(-12px);
    animation: slideInLeft 0.8s ease forwards;
    animation-delay: 0.2s;
}

h1 {
    opacity: 0;
    transform: translateY(24px);
    animation: slideUp 0.9s ease forwards;
    animation-delay: 0.4s;
}

h1 p, h1 span {
    display: block;
}

.hero-sub {
    opacity: 0;
    transform: translateY(20px);
    animation: slideUp 0.8s ease forwards;
    animation-delay: 0.6s;
}

.hero-cta {
    opacity: 0;
    transform: translateY(20px);
    animation: slideUp 0.8s ease forwards;
    animation-delay: 0.75s;
}

.hero-stats {
    opacity: 0;
    transform: translateY(20px);
    animation: slideUp 0.8s ease forwards;
    animation-delay: 0.9s;
}

.hero-images {
    opacity: 0;
    animation: fadeIn 1s ease forwards;
    animation-delay: 0.5s;
}

@keyframes slideInLeft {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

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

.service-card:hover {
    box-shadow: 0 20px 60px rgba(58, 45, 36, 0.1);
    transform: translateY(-4px);
}

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

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

/* Prefers reduced motion: disable all custom animations */
@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 !important;
        transform: none !important;
    }
}

/* --- Image hover effects --- */
.relative.overflow-hidden img {
    transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- Form focus states --- */
input:focus,
select:focus,
textarea:focus {
    outline: none;
}

/* --- Button hover --- */
button[type="submit"],
a[href="tel:"] {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- Responsive adjustments --- */
@media (max-width: 767px) {
    h1 {
        font-size: 2.75rem;
        line-height: 1.05;
    }

    #hero {
        padding-top: 80px;
    }

    .service-card:hover {
        transform: none;
    }
}

@media (min-width: 768px) and (max-width: 1023px) {
    h1 {
        font-size: 4rem;
    }
}

@media (min-width: 1024px) {
    h1 {
        font-size: 5.5rem;
    }
}

/* --- Selection color --- */
::selection {
    background: #e8c0b0;
    color: #3a2d24;
}

/* --- Focus visible for accessibility --- */
:focus-visible {
    outline: 2px solid #c45f3f;
    outline-offset: 2px;
}

/* --- Loading state for images --- */
img {
    background-color: #f0ebe5;
}
