:root {
    --primary: #1a7a3a;
    --primary-dark: #0f5c28;
    --primary-light: #2d9b4f;
    --accent: #f4a261;
    --bg: #f8faf7;
    --bg-card: #ffffff;
    --text: #1a2e1a;
    --text-muted: #5a6b5a;
    --border: #e0e8e0;
    --shadow: 0 4px 20px rgba(26, 122, 58, 0.08);
    --radius: 12px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-theme="dark"] {
    --bg: #0f1a0f;
    --bg-card: #1a2a1a;
    --text: #e8f0e8;
    --text-muted: #a0b0a0;
    --border: #2a3a2a;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    transition: var(--transition);
}
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* Header */
.site-header {
    position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
    background: rgba(255,255,255,0.92); backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border); transition: var(--transition);
}
[data-theme="dark"] .site-header { background: rgba(15,26,15,0.92); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--primary); font-weight: 700; font-size: 1.35rem; }
.logo-icon {
    width: 42px; height: 42px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    border-radius: 10px; display: flex; align-items: center; justify-content: center;
    color: white; font-size: 1.4rem;
}
.main-nav ul { display: flex; list-style: none; gap: 8px; }
.main-nav a {
    text-decoration: none; color: var(--text); font-weight: 500;
    padding: 8px 14px; border-radius: 8px; transition: var(--transition); font-size: 0.95rem;
}
.main-nav a:hover, .main-nav a.active { background: rgba(26,122,58,0.1); color: var(--primary); }
.header-actions { display: flex; align-items: center; gap: 12px; }
.theme-toggle {
    background: none; border: 1px solid var(--border); width: 40px; height: 40px;
    border-radius: 50%; cursor: pointer; font-size: 1.1rem;
    display: flex; align-items: center; justify-content: center;
    transition: var(--transition); color: var(--text);
}
.theme-toggle:hover { background: var(--primary); color: white; border-color: var(--primary); }
.btn {
    display: inline-flex; align-items: center; gap: 8px; padding: 11px 22px;
    border-radius: 10px; font-weight: 600; text-decoration: none; border: none;
    cursor: pointer; transition: var(--transition); font-size: 0.95rem;
}
.btn-primary { background: var(--primary); color: white; }
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(26,122,58,0.3); }
.btn-outline { background: transparent; border: 2px solid var(--primary); color: var(--primary); }
.btn-outline:hover { background: var(--primary); color: white; }
.btn-sm { padding: 8px 16px; font-size: 0.85rem; }
.btn-danger { background: #c0392b; color: white; }
.btn-danger:hover { background: #a93226; }
.mobile-menu-btn { display: none; background: none; border: none; font-size: 1.6rem; cursor: pointer; color: var(--text); }

/* Hero */
.hero {
    padding: 140px 0 80px;
    background: linear-gradient(135deg, rgba(26,122,58,0.08) 0%, rgba(244,162,97,0.06) 100%);
    position: relative; overflow: hidden;
}
.hero-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 60px; align-items: center; }
.hero-badge {
    display: inline-flex; align-items: center; gap: 8px;
    background: rgba(26,122,58,0.12); color: var(--primary);
    padding: 6px 14px; border-radius: 50px; font-size: 0.85rem; font-weight: 600; margin-bottom: 20px;
}
.hero h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); line-height: 1.15; margin-bottom: 20px; font-weight: 800; letter-spacing: -0.02em; }
.hero h1 span { color: var(--primary); }
.hero p { font-size: 1.15rem; color: var(--text-muted); margin-bottom: 32px; max-width: 520px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-card {
    background: var(--bg-card); border-radius: 20px; padding: 30px;
    box-shadow: var(--shadow); border: 1px solid var(--border);
}
.hero-card h3 { font-size: 1.3rem; margin-bottom: 16px; color: var(--primary); }
.hero-features { list-style: none; }
.hero-features li { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 14px; font-size: 0.95rem; }
.hero-features li::before {
    content: '✓'; background: var(--primary); color: white; width: 22px; height: 22px;
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    font-size: 0.75rem; flex-shrink: 0; margin-top: 2px;
}

/* Stats */
.stats { padding: 50px 0; background: var(--primary); color: white; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; text-align: center; }
.stat-item .number { font-size: 2.6rem; font-weight: 800; line-height: 1; margin-bottom: 6px; }
.stat-item .label { font-size: 0.95rem; opacity: 0.9; }

/* Sections */
section { padding: 90px 0; }
.section-header { text-align: center; max-width: 640px; margin: 0 auto 50px; }
.section-header .eyebrow { color: var(--primary); font-weight: 600; font-size: 0.9rem; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 10px; }
.section-header h2 { font-size: clamp(1.8rem, 4vw, 2.5rem); margin-bottom: 14px; font-weight: 700; }
.section-header p { color: var(--text-muted); font-size: 1.05rem; }

/* Cards */
.products-grid, .services-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 24px; }
.product-card, .service-card {
    background: var(--bg-card); border-radius: var(--radius); padding: 28px;
    border: 1px solid var(--border); transition: var(--transition);
}
.product-card:hover, .service-card:hover {
    transform: translateY(-6px); box-shadow: var(--shadow); border-color: var(--primary-light);
}
.product-icon, .service-card .icon { font-size: 2.4rem; margin-bottom: 16px; }
.service-card .icon {
    width: 60px; height: 60px; background: rgba(26,122,58,0.1); border-radius: 16px;
    display: flex; align-items: center; justify-content: center; font-size: 1.6rem;
    margin: 0 auto 18px; color: var(--primary);
}
.product-card .category { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.5px; color: var(--primary); font-weight: 600; margin-bottom: 8px; }
.product-card h3, .service-card h3 { font-size: 1.2rem; margin-bottom: 10px; }
.product-card p, .service-card p { color: var(--text-muted); font-size: 0.95rem; }
.service-card { text-align: center; }

/* About */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.about-content h2 { font-size: 2rem; margin-bottom: 18px; }
.about-content p { color: var(--text-muted); margin-bottom: 16px; }
.about-list { list-style: none; margin-top: 24px; }
.about-list li { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; font-weight: 500; }
.about-list li span {
    width: 28px; height: 28px; background: var(--primary); color: white;
    border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 0.8rem;
}
.about-image {
    background: linear-gradient(145deg, var(--primary), var(--primary-dark));
    border-radius: 20px; height: 400px; display: flex; align-items: center; justify-content: center;
    color: white; font-size: 5rem; position: relative; overflow: hidden;
}

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 50px; }
.contact-item { display: flex; gap: 16px; margin-bottom: 24px; }
.contact-item .icon {
    width: 48px; height: 48px; background: rgba(26,122,58,0.1); border-radius: 12px;
    display: flex; align-items: center; justify-content: center; font-size: 1.3rem;
    flex-shrink: 0; color: var(--primary);
}
.contact-item strong { display: block; margin-bottom: 2px; }
.contact-item span, .contact-item a { color: var(--text-muted); text-decoration: none; font-size: 0.95rem; }
.contact-item a:hover { color: var(--primary); }
.contact-form {
    background: var(--bg-card); padding: 36px; border-radius: var(--radius);
    border: 1px solid var(--border); box-shadow: var(--shadow);
}
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-weight: 500; margin-bottom: 6px; font-size: 0.9rem; }
.form-group input, .form-group select, .form-group textarea {
    width: 100%; padding: 12px 16px; border: 1px solid var(--border); border-radius: 10px;
    background: var(--bg); color: var(--text); font-size: 1rem; transition: var(--transition); font-family: inherit;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
    outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(26,122,58,0.15);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-message { padding: 14px 18px; border-radius: 10px; margin-bottom: 20px; font-weight: 500; }
.form-message.success { background: rgba(26,122,58,0.12); color: var(--primary); border: 1px solid rgba(26,122,58,0.3); }
.form-message.error { background: rgba(220,50,50,0.1); color: #c0392b; border: 1px solid rgba(220,50,50,0.3); }

/* Page header */
.page-header {
    padding: 140px 0 60px;
    background: linear-gradient(135deg, rgba(26,122,58,0.1) 0%, rgba(244,162,97,0.05) 100%);
    text-align: center;
}
.page-header h1 { font-size: clamp(2rem, 4vw, 2.8rem); margin-bottom: 12px; }
.page-header p { color: var(--text-muted); max-width: 600px; margin: 0 auto; }

/* Footer */
.site-footer { background: #0d1f0d; color: #c8d8c8; padding: 70px 0 30px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 50px; }
.footer-brand .logo { color: white; margin-bottom: 16px; }
.footer-brand p { font-size: 0.95rem; line-height: 1.7; margin-bottom: 20px; }
.footer-col h4 { color: white; font-size: 1.05rem; margin-bottom: 18px; }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 10px; }
.footer-col a { color: #a0b8a0; text-decoration: none; font-size: 0.95rem; transition: var(--transition); }
.footer-col a:hover { color: white; }
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1); padding-top: 25px;
    display: flex; justify-content: space-between; align-items: center;
    font-size: 0.9rem; flex-wrap: wrap; gap: 15px;
}
.socials { display: flex; gap: 12px; }
.socials a {
    width: 38px; height: 38px; border-radius: 50%; background: rgba(255,255,255,0.08);
    display: flex; align-items: center; justify-content: center; color: white;
    text-decoration: none; transition: var(--transition);
}
.socials a:hover { background: var(--primary); }

/* WhatsApp */
.whatsapp-float {
    position: fixed; bottom: 28px; right: 28px; width: 60px; height: 60px;
    background: #25d366; color: white; border-radius: 50%;
    display: flex; align-items: center; justify-content: center; font-size: 1.8rem;
    box-shadow: 0 4px 20px rgba(37,211,102,0.4); z-index: 999;
    text-decoration: none; transition: var(--transition);
}
.whatsapp-float:hover { transform: scale(1.1); }

/* Admin */
.admin-body { background: #f0f4f0; }
.admin-layout { display: flex; min-height: 100vh; }
.admin-sidebar {
    width: 260px; background: #0d1f0d; color: #c8d8c8; padding: 24px 0;
    position: fixed; top: 0; left: 0; bottom: 0; overflow-y: auto;
}
.admin-sidebar .logo { padding: 0 24px 24px; color: white; border-bottom: 1px solid rgba(255,255,255,0.1); margin-bottom: 16px; }
.admin-nav { list-style: none; }
.admin-nav a {
    display: flex; align-items: center; gap: 12px; padding: 12px 24px;
    color: #a0b8a0; text-decoration: none; transition: var(--transition); font-size: 0.95rem;
}
.admin-nav a:hover, .admin-nav a.active { background: rgba(26,122,58,0.3); color: white; }
.admin-content { margin-left: 260px; flex: 1; padding: 30px; }
.admin-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 30px; }
.admin-header h1 { font-size: 1.6rem; }
.admin-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; margin-bottom: 30px; }
.admin-card {
    background: white; border-radius: 12px; padding: 24px; border: 1px solid #e0e8e0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.admin-card .value { font-size: 2rem; font-weight: 700; color: var(--primary); }
.admin-card .label { color: #5a6b5a; font-size: 0.9rem; margin-top: 4px; }
.admin-table {
    width: 100%; background: white; border-radius: 12px; border: 1px solid #e0e8e0;
    border-collapse: collapse; overflow: hidden;
}
.admin-table th, .admin-table td { padding: 14px 18px; text-align: left; border-bottom: 1px solid #e0e8e0; }
.admin-table th { background: #f8faf7; font-weight: 600; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.5px; color: #5a6b5a; }
.admin-table tr:hover { background: #f8faf7; }
.badge { display: inline-block; padding: 4px 10px; border-radius: 50px; font-size: 0.75rem; font-weight: 600; }
.badge-new { background: #dbeafe; color: #1d4ed8; }
.badge-read { background: #d1fae5; color: #065f46; }
.badge-active { background: #d1fae5; color: #065f46; }
.badge-inactive { background: #fee2e2; color: #991b1b; }
.login-page {
    min-height: 100vh; display: flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, #0d1f0d 0%, #1a7a3a 100%);
}
.login-box {
    background: white; border-radius: 16px; padding: 40px; width: 100%; max-width: 400px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}
.login-box h1 { text-align: center; margin-bottom: 8px; color: #1a7a3a; }
.login-box p { text-align: center; color: #5a6b5a; margin-bottom: 30px; }
.alert { padding: 12px 16px; border-radius: 8px; margin-bottom: 20px; font-size: 0.9rem; }
.alert-error { background: #fee2e2; color: #991b1b; border: 1px solid #fecaca; }
.alert-success { background: #d1fae5; color: #065f46; border: 1px solid #a7f3d0; }

/* Responsive */
@media (max-width: 992px) {
    .hero-grid, .about-grid, .contact-grid { grid-template-columns: 1fr; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .admin-sidebar { width: 220px; }
    .admin-content { margin-left: 220px; }
}
@media (max-width: 768px) {
    .main-nav { display: none; position: absolute; top: 72px; left: 0; right: 0; background: var(--bg-card); border-bottom: 1px solid var(--border); padding: 20px; }
    .main-nav.active { display: block; }
    .main-nav ul { flex-direction: column; gap: 4px; }
    .mobile-menu-btn { display: block; }
    .hero { padding: 120px 0 60px; }
    .form-row { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .admin-layout { flex-direction: column; }
    .admin-sidebar { position: relative; width: 100%; }
    .admin-content { margin-left: 0; }
}
