/* ============================================
   Waving Me Crazy LLC — Custom Styles
   ============================================ */

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

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

body {
    background-color: #FAFAF5;
    color: #1c342a;
}

/* Selection */
::selection {
    background-color: #70a48a;
    color: #fff;
}

/* ============================================
   Navigation
   ============================================ */
#navbar {
    background: rgba(250, 250, 245, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(112, 164, 138, 0.15);
}

#navbar.scrolled {
    background: rgba(250, 250, 245, 0.95);
    box-shadow: 0 4px 30px rgba(28, 52, 42, 0.08);
}

.nav-link {
    position: relative;
}

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

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

/* Mobile Menu */
.mobile-link {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

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

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

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

.menu-line {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

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

/* ============================================
   Buttons
   ============================================ */
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    background: #1c342a;
    color: #fff;
    border-radius: 60px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 2px solid #1c342a;
}

.btn-primary:hover {
    background: #28503f;
    border-color: #28503f;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(28, 52, 42, 0.25);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    background: transparent;
    color: #1c342a;
    border-radius: 60px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 2px solid #9ec4b0;
}

.btn-secondary:hover {
    border-color: #1c342a;
    background: rgba(112, 164, 138, 0.1);
    transform: translateY(-2px);
}

.btn-white {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 16px 32px;
    background: #fff;
    color: #1c342a;
    border-radius: 60px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-white:hover {
    background: #f2f7f4;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.btn-outline-white {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 16px 32px;
    background: transparent;
    color: #fff;
    border-radius: 60px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.4);
}

.btn-outline-white:hover {
    border-color: #fff;
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

/* ============================================
   Service Cards
   ============================================ */
.service-card {
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #70a48a, #4d8369);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

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

/* ============================================
   Gallery Items
   ============================================ */
.gallery-item {
    position: relative;
    cursor: pointer;
}

.gallery-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(28, 52, 42, 0.3), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: inherit;
}

.gallery-item:hover::after {
    opacity: 1;
}

/* ============================================
   Form Styles
   ============================================ */
.input-field {
    padding: 14px 16px;
    border: 1.5px solid #e3efe7;
    border-radius: 12px;
    font-size: 15px;
    font-family: inherit;
    color: #1c342a;
    background: #fff;
    transition: all 0.3s ease;
    outline: none;
    width: 100%;
}

.input-field:hover {
    border-color: #9ec4b0;
}

.input-field:focus {
    border-color: #4d8369;
    box-shadow: 0 0 0 4px rgba(77, 131, 105, 0.1);
}

.input-field::placeholder {
    color: #9ec4b0;
}

/* ============================================
   Decorative Blobs
   ============================================ */
.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    animation: blobFloat 20s ease-in-out infinite;
}

.blob--green {
    background: #70a48a;
}

.blob--cream {
    background: #e3efe7;
}

@keyframes blobFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(30px, -30px) scale(1.05); }
    66% { transform: translate(-20px, 20px) scale(0.95); }
}

/* ============================================
   Geometric Shapes (Hero)
   ============================================ */
.geo-shape {
    position: absolute;
    pointer-events: none;
}

.geo--circle-1 {
    width: 500px;
    height: 500px;
    background: linear-gradient(135deg, #e3efe7, #c7dfd3);
    border-radius: 50%;
    top: -100px;
    right: -100px;
    opacity: 0.4;
}

.geo--rect-1 {
    width: 200px;
    height: 200px;
    background: #70a48a;
    opacity: 0.08;
    bottom: 20%;
    left: 5%;
    border-radius: 30px;
    transform: rotate(15deg);
}

.geo--triangle {
    width: 0;
    height: 0;
    border-left: 100px solid transparent;
    border-right: 100px solid transparent;
    border-bottom: 173px solid #4d8369;
    opacity: 0.06;
    top: 30%;
    right: 15%;
    transform: rotate(-20deg);
}

.geo--circle-2 {
    width: 120px;
    height: 120px;
    border: 4px solid #9ec4b0;
    border-radius: 50%;
    bottom: 15%;
    right: 5%;
    opacity: 0.3;
}

.geo--dot-grid {
    width: 100px;
    height: 100px;
    background-image: radial-gradient(circle, #70a48a 2px, transparent 2px);
    background-size: 15px 15px;
    top: 25%;
    left: 10%;
    opacity: 0.3;
}

/* ============================================
   Scroll Reveal (Progressive Enhancement)
   ============================================ */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
        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; }
}

/* Fallback: ensure content is visible without JS */
@media not all and (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 1;
        transform: none;
    }
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 768px) {
    .geo--circle-1 {
        width: 300px;
        height: 300px;
    }

    .geo--rect-1 {
        width: 120px;
        height: 120px;
    }

    .geo--triangle {
        display: none;
    }
}

/* ============================================
   Utility
   ============================================ */
.font-serif {
    font-family: 'Playfair Display', Georgia, serif;
}

.font-sans {
    font-family: 'Space Grotesk', system-ui, sans-serif;
}
