/* ============================================
   King Kustomizing Designz — Custom Styles
   ============================================ */

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

body {
    background-color: #faf9f6;
    color: #1c1c1a;
}

::selection {
    background-color: #0d3b1e;
    color: #faf9f6;
}

/* --- Section Labels --- */
.section-label {
    font-size: 11px;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: #6b6860;
    font-weight: 400;
}

.section-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(2.25rem, 4vw, 3.75rem);
    font-weight: 300;
    line-height: 1.1;
    color: #0d3b1e;
}

/* --- Navigation --- */
.nav-link {
    position: relative;
}

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

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

/* Navbar scroll state */
.nav-scrolled {
    background-color: rgba(250, 249, 246, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(13, 59, 30, 0.08);
}

.nav-scrolled .nav-link {
    color: #0d3b1e;
}

.nav-scrolled .menu-line {
    background-color: #0d3b1e;
}

/* --- Mobile Menu --- */
.menu-line {
    transition: all 0.3s ease;
}

.menu-open .menu-line:nth-child(1) {
    transform: rotate(45deg) translate(3px, 3px);
}

.menu-open .menu-line:nth-child(2) {
    opacity: 0;
    width: 0;
}

.menu-open .menu-line:nth-child(3) {
    transform: rotate(-45deg) translate(3px, -3px);
}

.mobile-link {
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
}

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

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

/* --- Hero Animations --- */
.hero-subtitle {
    animation: slideUp 0.8s ease forwards;
    animation-delay: 0.2s;
}

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

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

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

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

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.97);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* --- Buttons --- */
.btn-primary, .btn-secondary, .btn-cta, .btn-cta-outline, .btn-submit {
    position: relative;
    overflow: hidden;
}

.btn-primary::before, .btn-submit::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
    transition: left 0.5s ease;
}

.btn-primary:hover::before, .btn-submit:hover::before {
    left: 100%;
}

/* --- Service Cards --- */
.service-card {
    position: relative;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, #0d3b1e, transparent);
    transform: scaleX(0);
    transition: transform 0.5s ease;
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-title {
    transition: all 0.3s ease;
}

/* --- Gallery --- */
.gallery-item {
    position: relative;
    overflow: hidden;
}

/* --- Contact Form --- */
.form-input {
    display: block;
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(13, 59, 30, 0.2);
    padding: 12px 0;
    color: #1c1c1a;
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    font-weight: 300;
    outline: none;
    transition: border-color 0.3s ease;
}

.form-input::placeholder {
    color: rgba(13, 59, 30, 0.3);
}

.form-input:focus {
    border-bottom-color: #0d3b1e;
}

.form-input select {
    cursor: pointer;
}

.form-input select option {
    background: #f0ede6;
    color: #1c1c1a;
}

/* --- Contact Info Items --- */
.contact-info-item {
    position: relative;
    padding-left: 20px;
}

.contact-info-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 6px;
    width: 8px;
    height: 1px;
    background-color: #0d3b1e;
}

/* --- 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; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }

/* --- Utility --- */
.writing-mode-vertical {
    writing-mode: vertical-rl;
    text-orientation: mixed;
}

/* --- Responsive --- */
@media (max-width: 768px) {
    .section-title {
        font-size: clamp(2rem, 8vw, 2.75rem);
    }

    .hero-title {
        font-size: clamp(3rem, 12vw, 5rem);
    }

    .contact-info-item {
        padding-left: 0;
    }

    .contact-info-item::before {
        display: none;
    }
}

@media (max-width: 640px) {
    .service-card {
        padding: 2rem 1.5rem;
    }

    .lg\:col-start-8 {
        grid-column-start: 1;
    }
}
