/* ===================================
   KAWAI FARM - Custom Styles
   Charcoal + Coral | Minimalist
   =================================== */

:root {
    --charcoal-dark: #1a1a1a;
    --charcoal-muted: #4a4a4a;
    --charcoal-light: #6b6b6b;
    --coral: #e8675b;
    --coral-light: #f0807a;
    --coral-dark: #c95247;
    --stone-50: #fafaf9;
    --stone-100: #f5f5f4;
    --stone-200: #e7e5e4;
    --stone-400: #a8a29e;
    --stone-500: #78716c;
    --stone-600: #57534e;
    --stone-700: #44403c;
    --stone-800: #292524;
    --stone-900: #1c1917;
}

/* Base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: 'Manrope', sans-serif;
    font-weight: 300;
    color: var(--charcoal-dark);
    background-color: var(--stone-50);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Typography */
.font-serif {
    font-family: 'Cormorant Garamond', serif;
}

.font-sans {
    font-family: 'Manrope', sans-serif;
}

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

::-webkit-scrollbar-track {
    background: var(--stone-100);
}

::-webkit-scrollbar-thumb {
    background: var(--charcoal-muted);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--charcoal-dark);
}

/* Selection */
::selection {
    background: var(--coral);
    color: white;
}

/* ===================================
   NAVIGATION
   =================================== */
#navbar {
    transition: all 0.3s ease;
}

#navbar.scrolled #nav-bg {
    opacity: 1;
}

.nav-link {
    position: relative;
}

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

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

/* Mobile menu */
#mobile-menu {
    z-index: 50;
}

#mobile-menu.active {
    opacity: 1;
    pointer-events: all;
}

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

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

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

/* Menu button animation */
#menu-btn.active #line-1 {
    transform: rotate(45deg) translate(4px, 4px);
}

#menu-btn.active #line-2 {
    opacity: 0;
}

#menu-btn.active #line-3 {
    transform: rotate(-45deg) translate(4px, -4px);
    width: 24px;
}

/* ===================================
   HERO SECTION
   =================================== */
.hero-anim {
    will-change: transform;
}

.hero-image-wrapper {
    will-change: transform, opacity;
}

/* ===================================
   REVEAL ANIMATIONS
   =================================== */
.reveal-up,
.reveal-left,
.reveal-right {
    will-change: transform, opacity;
}

.reveal-up {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal-left {
    opacity: 1;
    transform: translateX(0);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal-right {
    opacity: 1;
    transform: translateX(0);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .reveal-up,
    .reveal-left,
    .reveal-right,
    .hero-anim,
    .hero-image-wrapper {
        opacity: 1;
        transform: none;
        transition: none;
    }
    
    html {
        scroll-behavior: auto;
    }
}

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

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

.service-card:hover .w-14 {
    transform: scale(1.1);
}

/* ===================================
   FORM STYLES
   =================================== */
input:focus,
select:focus,
textarea:focus {
    border-color: var(--coral) !important;
    box-shadow: 0 0 0 3px rgba(232, 103, 91, 0.1);
}

input::placeholder,
textarea::placeholder {
    color: var(--stone-400);
}

/* ===================================
   BUTTONS
   =================================== */
button,
a[href^="tel:"] {
    cursor: pointer;
}

/* ===================================
   RESPONSIVE
   =================================== */
@media (max-width: 768px) {
    .font-serif {
        font-size: clamp(2rem, 8vw, 3.5rem);
    }
    
    section {
        padding-left: 1.25rem;
        padding-right: 1.25rem;
    }
}

/* ===================================
   UTILITY
   =================================== */
.text-charcoal-dark {
    color: var(--charcoal-dark);
}

.text-charcoal-muted {
    color: var(--charcoal-muted);
}

.text-coral {
    color: var(--coral);
}

.bg-charcoal-dark {
    background-color: var(--charcoal-dark);
}

.bg-coral {
    background-color: var(--coral);
}

.hover\:text-coral:hover {
    color: var(--coral);
}

.hover\:bg-coral:hover {
    background-color: var(--coral);
}

.hover\:border-coral:hover {
    border-color: var(--coral);
}
