/* ============================================
   AJAR AUTO BODY — Custom Styles
   ============================================ */

/* Base */
*, *::before, *::after {
    box-sizing: border-box;
}

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

body {
    overflow-x: hidden;
}

/* Selection */
::selection {
    background: #C06C4B;
    color: #F5F0E8;
}

/* ============================================
   NAVIGATION
   ============================================ */

#navbar {
    background: transparent;
    backdrop-filter: none;
}

#navbar.scrolled {
    background: rgba(250, 247, 242, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(232, 223, 209, 0.5);
}

.nav-link {
    position: relative;
}

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

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

/* Mobile menu */
.mobile-link {
    font-family: 'Cormorant Garamond', serif;
}

/* ============================================
   HERO ANIMATIONS
   ============================================ */

.hero-subtitle {
    animation: slideUp 0.8s ease forwards 0.2s;
}

.hero-title {
    animation: slideUp 0.8s ease forwards 0.4s;
}

.hero-desc {
    animation: slideUp 0.8s ease forwards 0.6s;
}

.hero-cta {
    animation: slideUp 0.8s ease forwards 0.8s;
}

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

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

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

/* ============================================
   SCROLL REVEAL
   ============================================ */

.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

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

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* Section labels */
.section-label {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.section-label.revealed {
    opacity: 1;
    transform: translateY(0);
}

.section-heading {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.section-heading.revealed {
    opacity: 1;
    transform: translateY(0);
}

.section-desc {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.section-desc.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================
   SERVICE CARDS
   ============================================ */

.service-card {
    transition: background-color 0.5s ease;
}

/* ============================================
   GALLERY
   ============================================ */

.gallery-item {
    cursor: pointer;
}

.gallery-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(192, 108, 75, 0);
    transition: background 0.4s ease;
}

.gallery-item:hover::after {
    background: rgba(192, 108, 75, 0.1);
}

.gallery-item {
    position: relative;
}

/* ============================================
   FORM STYLES
   ============================================ */

.form-input {
    font-family: 'Inter', sans-serif;
}

.form-input::placeholder {
    font-weight: 300;
}

.form-input:focus {
    border-color: #C06C4B !important;
}

select.form-input {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12' fill='none'%3E%3Cpath d='M3 5l3 3 3-3' stroke='%232C2C2C' stroke-width='1.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0 center;
    padding-right: 2rem;
}

/* ============================================
   MOBILE MENU ANIMATION
   ============================================ */

#mobile-menu {
    transition: transform 0.5s cubic-bezier(0.77, 0, 0.175, 1);
}

#mobile-menu.active {
    transform: translateX(0);
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 767px) {
    .hero-title {
        font-size: 3.5rem !important;
    }
}

@media (min-width: 768px) and (max-width: 1023px) {
    .hero-title {
        font-size: 5rem !important;
    }
}

/* ============================================
   REDUCED MOTION
   ============================================ */

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
}
