/* ============================================
   RENNER GROUP — Custom Styles
   Clean Minimalist · Forest Green + Off-White
   ============================================ */

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

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

/* Selection Color */
::selection {
    background-color: #314f1c;
    color: #faf9f6;
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f5f4ef;
}

::-webkit-scrollbar-thumb {
    background: #9fbf72;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #55802d;
}

/* ============================================
   NAVBAR
   ============================================ */
#navbar {
    background: rgba(250, 249, 246, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid transparent;
    transition: all 0.4s ease;
}

#navbar.scrolled {
    border-bottom-color: #dcd9ce;
    box-shadow: 0 1px 0 rgba(49, 79, 28, 0.08);
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero-title {
    line-height: 0.95;
    letter-spacing: -0.02em;
}

.hero-subtitle {
    letter-spacing: 0.3em;
}

/* Scroll Indicator Animation */
@keyframes scrollIndicator {
    0% {
        transform: translateY(-100%);
    }
    100% {
        transform: translateY(100%);
    }
}

.animate-scroll-indicator {
    animation: scrollIndicator 1.5s ease-in-out infinite;
}

/* ============================================
   SERVICES SECTION
   ============================================ */
.service-card {
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 0;
    background: #314f1c;
    transition: height 0.4s ease;
}

.service-card:hover::before {
    height: 100%;
}

/* ============================================
   ABOUT SECTION
   ============================================ */
.about-label {
    letter-spacing: 0.3em;
}

/* ============================================
   GALLERY SECTION
   ============================================ */
.gallery-item {
    height: 200px;
    cursor: pointer;
}

.gallery-item.col-span-2 {
    grid-column: span 2;
}

.gallery-item.row-span-2 {
    grid-row: span 2;
}

@media (min-width: 1024px) {
    .gallery-item {
        height: 280px;
    }
    
    .gallery-item.col-span-2 {
        height: 568px;
    }
}

/* ============================================
   PROCESS SECTION
   ============================================ */
.process-step {
    position: relative;
}

/* ============================================
   TESTIMONIALS
   ============================================ */
.testimonial-card {
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(49, 79, 28, 0.08);
}

/* ============================================
   CONTACT FORM
   ============================================ */
#contact-form input,
#contact-form select,
#contact-form textarea {
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

#contact-form input:focus,
#contact-form select:focus,
#contact-form textarea:focus {
    border-color: #314f1c;
    box-shadow: 0 0 0 3px rgba(49, 79, 28, 0.1);
}

#contact-form input::placeholder,
#contact-form textarea::placeholder {
    color: rgba(42, 42, 42, 0.3);
}

/* ============================================
   MOBILE MENU
   ============================================ */
.mobile-nav-link {
    position: relative;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.mobile-nav-link.active {
    opacity: 1;
    transform: translateY(0);
}

/* Menu Lines Animation */
#mobile-menu-btn.active .menu-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

#mobile-menu-btn.active .menu-line:nth-child(2) {
    opacity: 0;
}

#mobile-menu-btn.active .menu-line:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ============================================
   BACK TO TOP
   ============================================ */
#back-to-top {
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease;
}

#back-to-top.visible {
    opacity: 1;
    transform: translateY(0);
}

#back-to-top:not(.visible) {
    transform: translateY(10px);
}

/* ============================================
   SCROLL REVEAL ANIMATIONS
   (Progressive Enhancement — content visible without JS)
   ============================================ */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 1;
        transform: translateY(0);
        transition: opacity 0.8s ease, transform 0.8s ease;
    }
    
    .reveal.reveal-hidden {
        opacity: 0;
        transform: translateY(30px);
    }
    
    .reveal-left {
        opacity: 1;
        transform: translateX(0);
        transition: opacity 0.8s ease, transform 0.8s ease;
    }
    
    .reveal-left.reveal-hidden {
        opacity: 0;
        transform: translateX(-30px);
    }
    
    .reveal-right {
        opacity: 1;
        transform: translateX(0);
        transition: opacity 0.8s ease, transform 0.8s ease;
    }
    
    .reveal-right.reveal-hidden {
        opacity: 0;
        transform: translateX(30px);
    }
}

/* Fallback for no-JS: ensure all content is visible */
.no-js .reveal-hidden,
.no-js .reveal-left,
.no-js .reveal-right {
    opacity: 1 !important;
    transform: none !important;
}

/* ============================================
   RESPONSIVE ADJUSTMENTS
   ============================================ */
@media (max-width: 767px) {
    .hero-title {
        font-size: 3rem;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .section-title {
        font-size: 2.25rem;
    }
    
    .gallery-item {
        height: 160px;
    }
    
    .gallery-item.col-span-2 {
        grid-column: span 1;
        grid-row: span 1;
        height: 200px;
    }
}

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

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

/* Focus Visible for Accessibility */
*:focus-visible {
    outline: 2px solid #314f1c;
    outline-offset: 2px;
}

button:focus-visible,
a:focus-visible {
    outline: 2px solid #314f1c;
    outline-offset: 4px;
}
