/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { min-height: 100vh; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
ul { list-style: none; }

/* ===== NAVBAR ===== */
.nav {
    background: rgba(255, 248, 240, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(5, 150, 105, 0.08);
    transition: box-shadow 0.3s ease, background 0.3s ease;
}
.nav.scrolled {
    background: rgba(255, 248, 240, 0.97);
    box-shadow: 0 4px 30px rgba(6, 78, 59, 0.08);
}
.nav-link { position: relative; }
.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: #059669;
    border-radius: 2px;
    transition: width 0.25s ease;
}
.nav-link:hover::after { width: 100%; }

.btn-nav {
    background: #059669;
    color: #fff !important;
    padding: 10px 24px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.95rem;
    transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 4px 14px rgba(5, 150, 105, 0.3);
}
.btn-nav:hover {
    background: #047857;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(5, 150, 105, 0.4);
}

/* ===== HERO ===== */
.hero {
    background: linear-gradient(135deg, #064e3b 0%, #059669 35%, #34d399 65%, #f59e0b 100%);
}
.hero-gradient {
    background:
        radial-gradient(ellipse 80% 60% at 20% 80%, rgba(245, 158, 11, 0.3) 0%, transparent 60%),
        radial-gradient(ellipse 60% 50% at 80% 20%, rgba(52, 211, 153, 0.4) 0%, transparent 60%),
        radial-gradient(ellipse 50% 40% at 50% 50%, rgba(5, 150, 105, 0.5) 0%, transparent 70%);
}
.hero-dots {
    background-image: radial-gradient(rgba(255,255,255,0.06) 1px, transparent 1px);
    background-size: 32px 32px;
}
.hero-badge {
    animation: fadeInDown 0.8s ease both;
}
.hero-content h1 {
    animation: fadeInUp 0.8s ease 0.15s both;
}
.hero-content p {
    animation: fadeInUp 0.8s ease 0.3s both;
}
.hero-content .flex {
    animation: fadeInUp 0.8s ease 0.45s both;
}
.hero-scroll-indicator {
    animation: fadeInUp 0.8s ease 0.7s both;
}

@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(24px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ===== BUTTONS ===== */
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #fff;
    color: #059669;
    padding: 16px 32px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.05rem;
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
    transition: transform 0.25s, box-shadow 0.25s, background 0.2s;
}
.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.2);
    background: #fff;
}
.btn-primary-arrow { transition: transform 0.25s; }
.btn-primary:hover .btn-primary-arrow { transform: translateX(4px); }

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(8px);
    border: 2px solid rgba(255,255,255,0.35);
    color: #fff;
    padding: 14px 32px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.05rem;
    transition: background 0.2s, border-color 0.2s, transform 0.25s;
}
.btn-secondary:hover {
    background: rgba(255,255,255,0.25);
    border-color: rgba(255,255,255,0.6);
    transform: translateY(-3px);
}

/* ===== SECTIONS ===== */
.section { position: relative; }

/* ===== SERVICE CARDS ===== */
.service-card {
    background: #fff;
    border-radius: 24px;
    padding: 8px;
    box-shadow: 0 4px 24px rgba(6, 78, 59, 0.06);
    border: 1px solid rgba(6, 120, 87, 0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.service-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 48px rgba(6, 78, 59, 0.12);
}
.service-card-img-wrap {
    border-radius: 18px;
    overflow: hidden;
}
.service-card-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.service-card:hover .service-card-img {
    transform: scale(1.06);
}
.service-card h3 {
    padding: 14px 16px 4px;
}
.service-card p {
    padding: 0 16px 16px;
    font-size: 0.95rem;
}

/* ===== ABOUT ===== */
.about-img-main {
    box-shadow: 0 24px 64px rgba(2, 44, 34, 0.3);
}
.about-img-float {
    box-shadow: 0 12px 32px rgba(2, 44, 34, 0.25);
}

/* ===== GALLERY ===== */
.gallery-item {
    border-radius: 20px;
    overflow: hidden;
    cursor: pointer;
    position: relative;
}
.gallery-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(6, 78, 59, 0.4) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 20px;
}
.gallery-item:hover::after { opacity: 1; }
.gallery-item:hover .gallery-img { transform: scale(1.07); }
.gallery-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
    min-height: 200px;
}
.gallery-item:nth-child(1) { grid-row: span 2; }
.gallery-item:nth-child(1) .gallery-img { height: 100%; }

/* ===== REVIEW CARDS ===== */
.review-card {
    background: #fff;
    border-radius: 24px;
    padding: 28px;
    box-shadow: 0 4px 24px rgba(6, 78, 59, 0.06);
    border: 1px solid rgba(6, 120, 87, 0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}
.review-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(6, 78, 59, 0.1);
}
.review-stars { display: flex; gap: 4px; }
.review-card p { flex: 1; font-style: italic; }

/* ===== CONTACT ===== */
.contact-info-card { transition: transform 0.2s, background 0.2s; }
.contact-info-card:hover { transform: translateX(6px); }

.input-emerald {
    border: 1.5px solid #d1fae5;
    background: #f0fdf4;
    font-size: 0.95rem;
    transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}
.input-emerald:focus {
    border-color: #34d399;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(52, 211, 153, 0.15);
}
.input-emerald option { color: #064e3b; }

.btn-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    color: #fff;
    padding: 16px 32px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.05rem;
    box-shadow: 0 8px 24px rgba(5, 150, 105, 0.35);
    transition: transform 0.25s, box-shadow 0.25s, background 0.2s;
}
.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(5, 150, 105, 0.45);
}
.btn-submit-arrow { transition: transform 0.25s; }
.btn-submit:hover .btn-submit-arrow { transform: translateX(4px); }

/* ===== SCROLL REVEAL ===== */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Mobile menu */
.mobile-menu-open #mobile-menu {
    opacity: 1 !important;
    pointer-events: auto !important;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .hero-content h1 { font-size: 2.5rem; }
    .hero-content p { font-size: 1.05rem; }
    .about-img-float { display: none; }
    .about-badge { display: none !important; }
    .gallery-item:nth-child(1) { grid-row: span 1; }
    .gallery-item:nth-child(1) .gallery-img { height: 200px; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    html { scroll-behavior: auto; }
    .reveal { opacity: 1; transform: none; }
}
