/* ==================== RESET & VARIABLES ==================== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --primary: #1a7a45;
    --primary-dark: #145e35;
    --primary-light: #e8f5ee;
    --accent: #d4a017;
    --accent-dark: #b8890f;
    --accent-light: #fdf6e3;
    --dark: #1a1a2e;
    --gray-900: #2d2d3f;
    --gray-700: #555;
    --gray-500: #888;
    --gray-300: #ddd;
    --gray-100: #f4f6f8;
    --white: #ffffff;
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.06);
    --shadow-md: 0 8px 30px rgba(0,0,0,0.1);
    --shadow-lg: 0 20px 60px rgba(0,0,0,0.15);
    --radius: 12px;
    --radius-lg: 20px;
}

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--dark);
    line-height: 1.7;
    background: var(--white);
    overflow-x: hidden;
}

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

/* ==================== HEADER ==================== */
.header {
    position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
    background: rgba(255,255,255,0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0,0,0,0.06);
    transition: all 0.3s ease;
}
.header.scrolled {
    background: rgba(255,255,255,0.95);
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}
.header-inner {
    display: flex; align-items: center; justify-content: space-between;
    padding: 16px 0;
}
.logo {
    font-size: 1.5rem; font-weight: 800; color: var(--primary);
    text-decoration: none; letter-spacing: -0.5px;
    display: flex; align-items: center; gap: 10px;
}
.logo-icon {
    width: 38px; height: 38px; background: var(--primary);
    border-radius: 10px; display: flex; align-items: center; justify-content: center;
    color: white; font-size: 1rem;
}
.nav { display: flex; align-items: center; gap: 8px; list-style: none; }
.nav a {
    text-decoration: none; color: var(--gray-700); font-weight: 500;
    font-size: 0.95rem; padding: 8px 18px; border-radius: 8px;
    transition: all 0.25s ease; position: relative;
}
.nav a:hover, .nav a.active { color: var(--primary); background: var(--primary-light); }
.nav-cta {
    background: var(--primary) !important; color: var(--white) !important;
    font-weight: 600 !important;
}
.nav-cta:hover { background: var(--primary-dark) !important; transform: translateY(-1px); }

.mobile-toggle {
    display: none; background: none; border: none; font-size: 1.5rem;
    color: var(--dark); cursor: pointer; padding: 8px;
}

/* ==================== PAGE BANNER ==================== */
.page-banner {
    padding: 140px 0 80px;
    background: linear-gradient(135deg, #0d3b1f 0%, #1a5e35 40%, #267349 70%, #1a4a2d 100%);
    text-align: center; position: relative; overflow: hidden;
}
.page-banner::before {
    content: ''; position: absolute; inset: 0;
    background-image:
        radial-gradient(circle at 20% 50%, rgba(212,160,23,0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255,255,255,0.05) 0%, transparent 40%);
}
.page-banner .container { position: relative; z-index: 2; }
.page-banner h1 {
    font-size: clamp(2.2rem, 5vw, 3.2rem); font-weight: 900;
    color: var(--white); margin-bottom: 16px; letter-spacing: -0.5px;
}
.page-banner p {
    font-size: 1.15rem; color: rgba(255,255,255,0.75); max-width: 560px; margin: 0 auto;
}
.breadcrumb {
    display: flex; align-items: center; justify-content: center; gap: 10px;
    margin-bottom: 20px; font-size: 0.9rem;
}
.breadcrumb a { color: rgba(255,255,255,0.6); text-decoration: none; transition: color 0.25s; }
.breadcrumb a:hover { color: var(--white); }
.breadcrumb span { color: var(--accent); }
.breadcrumb i { color: rgba(255,255,255,0.4); font-size: 0.7rem; }

/* ==================== HERO ==================== */
.hero {
    position: relative; min-height: 100vh; display: flex; align-items: center;
    overflow: hidden;
    background: linear-gradient(135deg, #0d3b1f 0%, #1a5e35 40%, #267349 70%, #1a4a2d 100%);
}
.hero-bg-pattern {
    position: absolute; inset: 0;
    background-image:
        radial-gradient(circle at 20% 50%, rgba(212,160,23,0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255,255,255,0.05) 0%, transparent 40%),
        radial-gradient(circle at 60% 80%, rgba(212,160,23,0.1) 0%, transparent 40%);
}
.hero-particles { position: absolute; inset: 0; overflow: hidden; }
.hero-particle {
    position: absolute; border-radius: 50%; background: rgba(255,255,255,0.06);
    animation: floatUp linear infinite;
}
@keyframes floatUp {
    0% { transform: translateY(100vh) scale(0); opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { transform: translateY(-10vh) scale(1); opacity: 0; }
}
.hero-content {
    position: relative; z-index: 2; text-align: center;
    width: 100%; padding: 120px 0 80px;
}
.hero-badge {
    display: inline-flex; align-items: center; gap: 8px;
    background: rgba(255,255,255,0.12); border: 1px solid rgba(255,255,255,0.2);
    padding: 8px 20px; border-radius: 50px; color: rgba(255,255,255,0.9);
    font-size: 0.85rem; font-weight: 500; margin-bottom: 28px;
    backdrop-filter: blur(10px);
}
.hero-badge i { color: var(--accent); }
.hero h1 {
    font-size: clamp(2.5rem, 6vw, 4.2rem); font-weight: 900;
    color: var(--white); line-height: 1.15; margin-bottom: 24px;
    letter-spacing: -1px;
}
.hero h1 span { color: var(--accent); }
.hero-desc {
    font-size: clamp(1.05rem, 2.5vw, 1.25rem); color: rgba(255,255,255,0.8);
    max-width: 620px; margin: 0 auto 40px; line-height: 1.8;
}
.hero-btns { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

.hero-stats {
    display: flex; justify-content: center; gap: 48px; margin-top: 64px;
    padding-top: 48px; border-top: 1px solid rgba(255,255,255,0.12);
}
.hero-stat { text-align: center; }
.hero-stat-num { font-size: 2.2rem; font-weight: 800; color: var(--accent); }
.hero-stat-label { font-size: 0.85rem; color: rgba(255,255,255,0.6); margin-top: 4px; }

/* ==================== BUTTONS ==================== */
.btn {
    display: inline-flex; align-items: center; gap: 10px;
    padding: 16px 36px; border-radius: 12px; font-weight: 700;
    font-size: 1rem; text-decoration: none; border: none; cursor: pointer;
    transition: all 0.3s ease; font-family: inherit;
}
.btn-accent {
    background: var(--accent); color: var(--white);
    box-shadow: 0 8px 30px rgba(212,160,23,0.4);
}
.btn-accent:hover { background: var(--accent-dark); transform: translateY(-3px); box-shadow: 0 12px 40px rgba(212,160,23,0.5); }
.btn-primary {
    background: var(--primary); color: var(--white);
    box-shadow: 0 8px 25px rgba(26,122,69,0.3);
}
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-3px); box-shadow: 0 12px 35px rgba(26,122,69,0.4); }
.btn-outline {
    background: rgba(255,255,255,0.1); color: var(--white);
    border: 2px solid rgba(255,255,255,0.3);
}
.btn-outline:hover { background: rgba(255,255,255,0.2); border-color: rgba(255,255,255,0.5); transform: translateY(-3px); }

/* ==================== SECTION COMMON ==================== */
.section { padding: 100px 0; }
.section-header { text-align: center; margin-bottom: 64px; }
.section-tag {
    display: inline-flex; align-items: center; gap: 8px;
    background: var(--primary-light); color: var(--primary);
    font-weight: 600; font-size: 0.85rem; padding: 6px 16px;
    border-radius: 50px; margin-bottom: 16px;
}
.section-title {
    font-size: clamp(2rem, 4vw, 2.8rem); font-weight: 800;
    color: var(--dark); line-height: 1.2; letter-spacing: -0.5px;
}
.section-desc {
    font-size: 1.1rem; color: var(--gray-500); margin-top: 16px;
    max-width: 560px; margin-left: auto; margin-right: auto;
}

/* ==================== PRODUCTS ==================== */
.products { background: var(--gray-100); }
.products-grid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px;
}
.product-card {
    background: var(--white); border-radius: var(--radius-lg);
    padding: 40px 32px; text-align: center;
    border: 1px solid rgba(0,0,0,0.06);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative; overflow: hidden;
}
.product-card::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    transform: scaleX(0); transition: transform 0.4s ease;
}
.product-card:hover::before { transform: scaleX(1); }
.product-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.product-icon {
    width: 72px; height: 72px; border-radius: 18px;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 24px; font-size: 1.8rem;
    background: var(--primary-light); color: var(--primary);
    transition: all 0.3s ease;
}
.product-card:hover .product-icon { background: var(--primary); color: var(--white); transform: scale(1.1); }
.product-card h3 { font-size: 1.3rem; font-weight: 700; margin-bottom: 12px; }
.product-card p { font-size: 0.95rem; color: var(--gray-500); margin-bottom: 24px; line-height: 1.7; }
.product-link {
    display: inline-flex; align-items: center; gap: 6px;
    color: var(--primary); font-weight: 600; text-decoration: none;
    font-size: 0.95rem; transition: gap 0.3s ease;
}
.product-link:hover { gap: 12px; }

/* ==================== FEATURES ==================== */
.features-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.feature-card {
    padding: 32px 24px; border-radius: var(--radius); text-align: center;
    border: 1px solid var(--gray-300); transition: all 0.3s ease;
    background: var(--white);
}
.feature-card:hover { border-color: var(--primary); box-shadow: var(--shadow-md); transform: translateY(-4px); }
.feature-icon {
    width: 56px; height: 56px; border-radius: 14px; margin: 0 auto 20px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.4rem; background: var(--primary-light); color: var(--primary);
}
.feature-card h4 { font-size: 1.05rem; font-weight: 700; margin-bottom: 8px; }
.feature-card p { font-size: 0.88rem; color: var(--gray-500); }

/* ==================== ABOUT ==================== */
.about { background: var(--gray-100); }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.about-img {
    position: relative; border-radius: var(--radius-lg); overflow: hidden;
    aspect-ratio: 4/3;
}
.about-img img {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform 0.6s ease;
}
.about-img:hover img { transform: scale(1.05); }
.about-img-badge {
    position: absolute; bottom: 24px; left: 24px;
    background: var(--primary); color: var(--white);
    padding: 12px 24px; border-radius: 12px;
    font-weight: 700; font-size: 1.1rem;
    box-shadow: 0 8px 30px rgba(0,0,0,0.2);
}
.about-img-badge span { font-size: 0.8rem; font-weight: 400; opacity: 0.8; display: block; }
.about-content h2 {
    font-size: 2.4rem; font-weight: 800; margin-bottom: 20px;
    line-height: 1.2; letter-spacing: -0.5px;
}
.about-content h2 span { color: var(--primary); }
.about-content > p { color: var(--gray-700); font-size: 1.05rem; margin-bottom: 32px; }
.about-list { list-style: none; display: grid; gap: 16px; margin-bottom: 36px; }
.about-list li {
    display: flex; align-items: flex-start; gap: 14px;
    font-size: 1rem; color: var(--gray-700);
}
.about-list li i {
    color: var(--primary); font-size: 1.1rem; margin-top: 4px;
    flex-shrink: 0;
}

/* ==================== CONTACT ==================== */
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 48px; align-items: start; }
.contact-info h3 { font-size: 1.5rem; font-weight: 700; margin-bottom: 20px; }
.contact-info > p { color: var(--gray-500); margin-bottom: 32px; font-size: 1rem; }
.contact-cards { display: grid; gap: 16px; }
.contact-card {
    display: flex; align-items: center; gap: 16px;
    padding: 20px; border-radius: var(--radius);
    border: 1px solid var(--gray-300); transition: all 0.3s ease;
}
.contact-card:hover { border-color: var(--primary); box-shadow: var(--shadow-sm); }
.contact-card-icon {
    width: 48px; height: 48px; border-radius: 12px; flex-shrink: 0;
    background: var(--primary-light); color: var(--primary);
    display: flex; align-items: center; justify-content: center; font-size: 1.1rem;
}
.contact-card-text strong { display: block; font-size: 0.85rem; color: var(--gray-500); font-weight: 500; }
.contact-card-text span { font-weight: 600; color: var(--dark); }

.form-wrapper {
    background: var(--white); border-radius: var(--radius-lg);
    padding: 40px; border: 1px solid var(--gray-300);
    box-shadow: var(--shadow-md);
}
.form-wrapper h3 { font-size: 1.4rem; font-weight: 700; margin-bottom: 8px; }
.form-wrapper > p { color: var(--gray-500); font-size: 0.95rem; margin-bottom: 28px; }
.form-group { margin-bottom: 18px; }
.form-group label {
    display: block; font-weight: 600; font-size: 0.88rem;
    margin-bottom: 6px; color: var(--gray-700);
}
.form-control {
    width: 100%; padding: 14px 18px; border: 2px solid var(--gray-300);
    border-radius: 10px; font-size: 1rem; font-family: inherit;
    transition: all 0.25s ease; background: var(--white);
    color: var(--dark); outline: none;
}
.form-control:focus { border-color: var(--primary); box-shadow: 0 0 0 4px rgba(26,122,69,0.1); }
.form-control::placeholder { color: #aaa; }
textarea.form-control { resize: vertical; min-height: 100px; }
.submit-btn {
    width: 100%; padding: 16px; background: var(--primary);
    color: var(--white); font-weight: 700; font-size: 1rem;
    border: none; border-radius: 10px; cursor: pointer;
    font-family: inherit; transition: all 0.3s ease;
    text-transform: uppercase; letter-spacing: 0.5px;
    display: flex; align-items: center; justify-content: center; gap: 10px;
}
.submit-btn:hover { background: var(--primary-dark); transform: translateY(-2px); box-shadow: 0 8px 25px rgba(26,122,69,0.3); }
.submit-btn:disabled { opacity: 0.7; cursor: not-allowed; transform: none; }

#formMesaj {
    display: none; max-width: 100%; margin-bottom: 20px;
    padding: 14px 20px; border-radius: 10px; text-align: center;
    font-weight: 600; font-size: 0.95rem;
}
#formMesaj.success { display: block; background: #e8f9ef; color: #1a7a45; border: 1px solid #b8e6cc; }
#formMesaj.error { display: block; background: #fef2f2; color: #c53030; border: 1px solid #fca5a5; }

/* ==================== FOOTER ==================== */
.footer {
    background: var(--dark); color: rgba(255,255,255,0.7);
    padding: 64px 0 0;
}
.footer-grid {
    display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 48px;
    padding-bottom: 48px; border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-brand .logo { color: var(--white); margin-bottom: 16px; }
.footer-brand .logo-icon { background: var(--primary); }
.footer-brand p { font-size: 0.95rem; line-height: 1.8; max-width: 360px; }
.footer h4 {
    color: var(--white); font-size: 1rem; font-weight: 700;
    margin-bottom: 20px; text-transform: uppercase; letter-spacing: 1px;
}
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 10px; }
.footer-links a {
    color: rgba(255,255,255,0.6); text-decoration: none;
    font-size: 0.95rem; transition: color 0.25s;
}
.footer-links a:hover { color: var(--accent); }
.footer-bottom {
    padding: 24px 0; text-align: center; font-size: 0.88rem;
    color: rgba(255,255,255,0.4);
}

/* ==================== ANIMATIONS ==================== */
.reveal {
    opacity: 0; transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.reveal.visible { 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; }

@keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }
.spin-anim { display: inline-block; animation: spin 1s linear infinite; }

/* ==================== BACK TO TOP ==================== */
.back-to-top {
    position: fixed; bottom: 32px; right: 32px; z-index: 999;
    width: 48px; height: 48px; border-radius: 14px;
    background: var(--primary); color: var(--white);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.1rem; border: none; cursor: pointer;
    box-shadow: var(--shadow-md); opacity: 0; transform: translateY(20px);
    transition: all 0.3s ease; pointer-events: none;
}
.back-to-top.visible { opacity: 1; transform: translateY(0); pointer-events: all; }
.back-to-top:hover { background: var(--primary-dark); transform: translateY(-3px); }

/* ==================== WHATSAPP BUTTON ==================== */
.whatsapp-float {
    position: fixed; bottom: 32px; right: 96px; z-index: 999;
    width: 64px; height: 64px; border-radius: 50%;
    background: #25d366; color: var(--white);
    display: flex; align-items: center; justify-content: center;
    font-size: 3.4rem; text-decoration: none;
    box-shadow: 0 6px 20px rgba(37,211,102,0.4);
    transition: all 0.3s ease;
    animation: whatsappPulse 2s infinite;
}
.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 30px rgba(37,211,102,0.55);
}
.whatsapp-tooltip {
    position: absolute; right: 68px; top: 50%; transform: translateY(-50%);
    background: var(--white); color: var(--dark);
    padding: 8px 16px; border-radius: 8px; font-size: 0.85rem;
    font-weight: 600; white-space: nowrap;
    box-shadow: 0 4px 15px rgba(0,0,0,0.12);
    opacity: 0; pointer-events: none;
    transition: opacity 0.3s ease;
}
.whatsapp-tooltip::after {
    content: ''; position: absolute; right: -6px; top: 50%; transform: translateY(-50%);
    border: 6px solid transparent; border-left-color: var(--white);
}
.whatsapp-float:hover .whatsapp-tooltip { opacity: 1; }
@keyframes whatsappPulse {
    0%, 100% { box-shadow: 0 6px 20px rgba(37,211,102,0.4); }
    50% { box-shadow: 0 6px 30px rgba(37,211,102,0.6); }
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 1024px) {
    .products-grid { grid-template-columns: repeat(2, 1fr); }
    .features-grid { grid-template-columns: repeat(2, 1fr); }
    .about-grid { grid-template-columns: 1fr; gap: 40px; }
    .contact-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
    .nav {
        display: none; position: absolute; top: 100%; left: 0; right: 0;
        background: var(--white); flex-direction: column; padding: 16px;
        box-shadow: var(--shadow-md); border-top: 1px solid var(--gray-300);
    }
    .nav.active { display: flex; }
    .nav a { padding: 12px 16px; width: 100%; }
    .mobile-toggle { display: block; }
    .products-grid { grid-template-columns: 1fr; }
    .features-grid { grid-template-columns: 1fr; }
    .hero-stats { flex-direction: column; gap: 24px; }
    .footer-grid { grid-template-columns: 1fr; gap: 32px; }
    .form-wrapper { padding: 28px 20px; }
    .page-banner { padding: 120px 0 60px; }
    .about-content h2 { font-size: 1.8rem; }
}
