/* ===== Reset & Variables ===== */
:root {
    --green-800: #2E7D32;
    --green-700: #388E3C;
    --green-600: #43A047;
    --green-100: #C8E6C9;
    --green-50: #E8F5E9;
    --dark: #111827;
    --text: #374151;
    --text-light: #6b7280;
    --border: #e5e7eb;
    --bg-alt: #f8faf8;
    --white: #ffffff;
    --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --radius: 14px;
    --shadow: 0 4px 20px rgba(0,0,0,0.06);
    --shadow-lg: 0 8px 30px rgba(0,0,0,0.1);
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { font-family: var(--font); color: var(--text); line-height: 1.7; background: var(--white); overflow-x: hidden; -webkit-text-size-adjust: 100%; }
a { text-decoration: none; color: inherit; transition: 0.3s; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

.container { max-width: 1100px; margin: 0 auto; padding: 0 24px; }

/* ===== Buttons ===== */
.btn {
    display: inline-block; padding: 14px 36px; border-radius: 50px;
    font-family: var(--font); font-size: 0.95rem; font-weight: 600;
    cursor: pointer; border: 2px solid transparent; transition: 0.3s; text-align: center;
}
.btn-primary { background: var(--green-800); color: var(--white); border-color: var(--green-800); }
.btn-primary:hover { background: var(--green-700); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(46,125,50,0.3); }
.btn-outline { background: rgba(255,255,255,0.1); color: var(--white); border-color: rgba(255,255,255,0.5); backdrop-filter: blur(4px); }
.btn-outline:hover { background: var(--white); color: var(--green-800); border-color: var(--white); }

/* ===== Navbar ===== */
.navbar {
    position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
    padding: 12px 0; transition: 0.4s;
}
.navbar.scrolled {
    background: rgba(255,255,255,0.97); backdrop-filter: blur(16px);
    box-shadow: 0 1px 12px rgba(0,0,0,0.06); padding: 6px 0;
}
.nav-container { display: flex; align-items: center; justify-content: space-between; }

.logo img { height: 150px; width: auto; transition: 0.3s; }
.navbar.scrolled .logo img { height: 150px; }

.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a {
    padding: 8px 18px; font-size: 0.88rem; font-weight: 500;
    color: rgba(255,255,255,0.9); border-radius: 50px; transition: 0.3s;
}
.nav-links a:hover,
.nav-links a.active-link { background: rgba(255,255,255,0.15); color: var(--white); }
.navbar.scrolled .nav-links a { color: var(--text-light); }
.navbar.scrolled .nav-links a:hover,
.navbar.scrolled .nav-links a.active-link { color: var(--green-800); background: var(--green-50); }
.nav-cta { background: var(--green-800) !important; color: var(--white) !important; }
.nav-cta:hover { background: var(--green-700) !important; }

.nav-toggle {
    display: none; flex-direction: column; gap: 5px; background: none;
    border: none; cursor: pointer; padding: 8px; -webkit-tap-highlight-color: transparent;
    z-index: 1001;
}
.nav-toggle span {
    width: 24px; height: 2px; background: var(--white); border-radius: 2px;
    transition: 0.3s; transform-origin: center;
}
.navbar.scrolled .nav-toggle span { background: var(--text); }
.nav-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.nav-toggle.active span { background: var(--text); }

/* Mobile menu overlay */
.nav-overlay {
    position: fixed; inset: 0; background: rgba(0,0,0,0.4);
    z-index: 999; opacity: 0; visibility: hidden; transition: 0.3s;
}
.nav-overlay.active { opacity: 1; visibility: visible; }

/* ===== Hero ===== */
.hero {
    position: relative; min-height: 100vh; display: flex; align-items: center; overflow: hidden;
    background-size: cover; background-position: center; background-repeat: no-repeat;
}

.hero-overlay {
    position: absolute; inset: 0; z-index: 1;
    background: linear-gradient(135deg, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0.35) 50%, rgba(0,0,0,0.5) 100%);
}

.hero-content {
    position: relative; z-index: 2; padding: 140px 0 100px; max-width: 660px;
}
.hero h1 {
    font-size: clamp(2.4rem, 5.5vw, 3.8rem); font-weight: 800;
    color: var(--white); line-height: 1.12; margin-bottom: 20px;
    text-shadow: 0 2px 20px rgba(0,0,0,0.3);
}
.hero h1 span { color: var(--green-100); }
.hero p {
    font-size: 1.1rem; color: rgba(255,255,255,0.85); margin-bottom: 36px;
    max-width: 520px; text-shadow: 0 1px 8px rgba(0,0,0,0.2);
}
.hero-buttons { display: flex; gap: 14px; flex-wrap: wrap; }

/* ===== Sections ===== */
.section { padding: 90px 0; }
.section-alt { background: var(--bg-alt); }

.section-header { text-align: center; margin-bottom: 52px; }
.tag {
    display: inline-block; background: var(--green-50); color: var(--green-800);
    padding: 5px 16px; border-radius: 50px; font-size: 0.78rem; font-weight: 600;
    text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 12px;
}
.section-header h2 {
    font-size: clamp(1.7rem, 3vw, 2.4rem); font-weight: 800; color: var(--dark); margin-bottom: 12px;
}
.section-line {
    width: 50px; height: 3px; background: var(--green-600);
    border-radius: 2px; margin: 0 auto;
}
.section-sub { color: var(--text-light); max-width: 520px; margin: 12px auto 0; }

/* ===== Cards ===== */
.card {
    position: relative; background: var(--white); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 36px 32px; transition: 0.3s; overflow: hidden;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--green-100); }
.card-accent {
    position: absolute; top: 0; left: 0; right: 0; height: 3px;
    background: linear-gradient(90deg, var(--green-800), var(--green-600)); opacity: 0; transition: 0.3s;
}
.card:hover .card-accent { opacity: 1; }
.card-icon { margin-bottom: 20px; }
.card h3 { font-size: 1.1rem; font-weight: 700; color: var(--dark); margin-bottom: 12px; }
.card p { color: var(--text-light); font-size: 0.95rem; }
.card ul { display: flex; flex-direction: column; gap: 10px; margin-top: 14px; }
.card li {
    color: var(--text); font-size: 0.92rem; padding-left: 20px; position: relative;
}
.card li::before {
    content: ''; position: absolute; left: 0; top: 9px;
    width: 8px; height: 8px; border-radius: 50%; background: var(--green-600);
}

/* ===== About ===== */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-bottom: 28px; }

.focus-bar {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px;
    background: var(--green-800); border-radius: var(--radius); overflow: hidden;
}
.focus-item {
    background: var(--green-800); color: rgba(255,255,255,0.9);
    font-size: 0.88rem; font-weight: 500; text-align: center; padding: 22px 16px;
    transition: 0.3s;
}
.focus-item:hover { background: var(--green-700); }

/* ===== Services ===== */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }

/* ===== Why Us ===== */
.why-grid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
    max-width: 900px; margin: 0 auto;
}
.why-card {
    position: relative; background: var(--white); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 32px 28px; transition: 0.3s;
    border-left: 4px solid var(--green-600);
}
.why-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.why-num {
    display: block; font-size: 2rem; font-weight: 800; color: var(--green-100);
    line-height: 1; margin-bottom: 12px;
}
.why-card strong { display: block; font-size: 1rem; color: var(--dark); margin-bottom: 6px; }
.why-card p { color: var(--text-light); font-size: 0.9rem; }

/* Center last row if it has fewer items */
.why-grid .why-card:nth-last-child(2):nth-child(odd) {
    grid-column: 1 / 2;
    margin-left: auto;
    margin-right: 0;
}

/* ===== Contact ===== */
.contact-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 48px; align-items: start; }

.contact-info { display: flex; flex-direction: column; gap: 24px; }
.contact-item { display: flex; align-items: center; gap: 16px; }
.contact-icon {
    width: 48px; height: 48px; min-width: 48px; border-radius: 12px;
    background: var(--green-800); display: flex; align-items: center; justify-content: center;
}
.contact-item strong { display: block; font-size: 0.8rem; color: var(--text-light); text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 2px; }
.contact-item a { font-size: 1.05rem; font-weight: 600; color: var(--dark); }
.contact-item a:hover { color: var(--green-800); }
.contact-item span { color: var(--text-light); font-size: 0.95rem; line-height: 1.5; }
.contact-map { margin-top: 8px; border-radius: 12px; overflow: hidden; }
.contact-map iframe { display: block; }

.contact-form {
    background: var(--white); border: 1px solid var(--border); border-radius: var(--radius);
    padding: 36px; display: flex; flex-direction: column; gap: 14px;
    box-shadow: var(--shadow);
}
.contact-form h3 { font-size: 1.15rem; font-weight: 700; color: var(--dark); margin-bottom: 4px; }
.contact-form input,
.contact-form select,
.contact-form textarea {
    width: 100%; padding: 13px 16px; border: 1.5px solid var(--border); border-radius: 10px;
    font-family: var(--font); font-size: 0.92rem; color: var(--text); background: var(--bg-alt);
    outline: none; transition: 0.3s;
}
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus { border-color: var(--green-600); background: var(--white); box-shadow: 0 0 0 3px rgba(46,125,50,0.08); }
.contact-form textarea { resize: vertical; min-height: 90px; }
.contact-form select {
    cursor: pointer; appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%236b7280' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right 14px center;
}
.contact-form .btn { width: 100%; border: none; padding: 15px; font-size: 1rem; }

.form-status { margin-top: 8px; font-size: 0.9rem; font-weight: 500; text-align: center; }
.form-status.success { color: var(--green-700); }
.form-status.error { color: #d32f2f; }

/* ===== Back to Top ===== */
.back-to-top {
    position: fixed; bottom: 28px; right: 28px; z-index: 900;
    width: 44px; height: 44px; border-radius: 50%;
    background: var(--green-800); color: var(--white); border: none;
    cursor: pointer; display: flex; align-items: center; justify-content: center;
    box-shadow: 0 4px 16px rgba(46,125,50,0.3);
    opacity: 0; visibility: hidden; transform: translateY(10px);
    transition: 0.3s; -webkit-tap-highlight-color: transparent;
}
.back-to-top.visible { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { background: var(--green-700); transform: translateY(-2px); }

/* ===== Footer ===== */
.footer { background: var(--dark); padding: 56px 0 0; }
.footer-top {
    display: grid; grid-template-columns: 2.2fr 1fr 1fr 1.3fr;
    gap: 40px; padding-bottom: 40px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer-brand .logo { margin-bottom: 16px; }
.footer-brand .logo img { height: 104px; }
.footer-brand p { color: rgba(255,255,255,0.5); font-size: 0.88rem; line-height: 1.7; max-width: 280px; }
.footer-col { display: flex; flex-direction: column; gap: 10px; }
.footer-col h4 {
    color: var(--white); font-size: 0.85rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 8px;
    position: relative; padding-bottom: 10px;
}
.footer-col h4::after {
    content: ''; position: absolute; bottom: 0; left: 0;
    width: 24px; height: 2px; background: var(--green-600); border-radius: 1px;
}
.footer-col a {
    color: rgba(255,255,255,0.45); font-size: 0.88rem;
    transition: color 0.3s, padding-left 0.3s;
}
.footer-col a:hover { color: var(--green-100); padding-left: 6px; }
.footer-contact-item {
    display: flex; align-items: center; gap: 10px;
    color: rgba(255,255,255,0.45); margin-bottom: 2px;
}
.footer-contact-item svg { min-width: 16px; color: var(--green-600); }
.footer-contact-item a { color: rgba(255,255,255,0.5); font-size: 0.88rem; }
.footer-contact-item a:hover { color: var(--green-100); }
.footer-contact-item span { color: rgba(255,255,255,0.5); font-size: 0.85rem; line-height: 1.5; }
.footer-bottom {
    display: flex; justify-content: space-between; align-items: center;
    padding: 20px 0;
}
.footer-bottom p { color: rgba(255,255,255,0.3); font-size: 0.82rem; }

/* ===== Animations ===== */
.fade-in { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s ease; }
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* ===== Responsive ===== */
@media (max-width: 900px) {
    .services-grid { grid-template-columns: 1fr 1fr; }
    .why-grid { grid-template-columns: 1fr 1fr; max-width: 100%; }
    .focus-bar { grid-template-columns: 1fr 1fr; }
    .footer-top { grid-template-columns: 1fr 1fr; }
    .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
}

@media (max-width: 768px) {
    .nav-toggle { display: flex; }
    .nav-links {
        position: fixed; top: 0; right: -100%; width: 270px; height: 100vh;
        background: var(--white); flex-direction: column; padding: 80px 24px 24px;
        gap: 4px; box-shadow: -4px 0 24px rgba(0,0,0,0.1); transition: right 0.3s;
        z-index: 1000;
    }
    .nav-links.active { right: 0; }
    .nav-links a { color: var(--text) !important; padding: 12px 16px !important; width: 100%; border-radius: 10px; }
    .nav-links a:hover { background: var(--green-50) !important; color: var(--green-800) !important; }
    .nav-cta { text-align: center; margin-top: 12px; }

    .about-grid, .contact-grid { grid-template-columns: 1fr; }
    .services-grid, .why-grid { grid-template-columns: 1fr; max-width: 480px; margin: 0 auto; }
    .focus-bar { grid-template-columns: 1fr; }
    .footer-top { grid-template-columns: 1fr; gap: 28px; }
    .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
    .hero-content { padding: 120px 0 80px; }
    .hero-buttons { flex-direction: column; }
    .hero-buttons .btn { text-align: center; }

    .section { padding: 64px 0; }
    .section-header { margin-bottom: 36px; }

    .contact-form { padding: 28px 20px; }
    .contact-grid { gap: 32px; }


    .back-to-top { bottom: 20px; right: 20px; width: 40px; height: 40px; }
}

/* Small phones */
@media (max-width: 400px) {
    .container { padding: 0 16px; }
    .hero h1 { font-size: 1.9rem; }
    .hero p { font-size: 0.95rem; }
    .card { padding: 28px 20px; }
    .why-card { padding: 24px 20px; }
    .contact-form { padding: 24px 16px; }
    .footer { padding: 40px 0 0; }
    .footer-top { gap: 24px; padding-bottom: 28px; }
}

/* Disable hover transforms on touch */
@media (hover: none) {
    .card:hover, .why-card:hover { transform: none; }
}
