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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  color: #1e1e1e;
  line-height: 1.6;
  overflow-x: hidden;
  background: #fcfcf9;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; transition: color 0.3s; }
ul { list-style: none; }
h1, h2, h3, h4 { line-height: 1.25; }

/* ========== PRELOADER ========== */
#preloader {
  position: fixed;
  inset: 0;
  background: #fcfcf9;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.5s, visibility 0.5s;
}

#preloader.hidden {
  opacity: 0;
  visibility: hidden;
}

.loader {
  width: 48px;
  height: 48px;
  border: 4px solid #e0e0e0;
  border-top-color: #2d6a4f;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

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

/* ========== HEADER ========== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 16px 0;
  transition: background 0.4s, box-shadow 0.4s, padding 0.4s;
}

.header.scrolled {
  background: rgba(252, 252, 249, 0.97);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 20px rgba(0,0,0,0.06);
  padding: 10px 0;
}

.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.3rem;
  letter-spacing: 0.5px;
}

.logo-icon {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, #2d6a4f, #40916c);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.1rem;
  transition: transform 0.3s;
}

.logo:hover .logo-icon { transform: rotate(-10deg) scale(1.05); }

.logo-text { color: #1e1e1e; }

.logo-highlight { color: #2d6a4f; }

/* ========== NAVIGATION ========== */
.nav-list {
  display: flex;
  gap: 32px;
}

.nav-link {
  font-size: 0.9rem;
  font-weight: 500;
  color: #555;
  position: relative;
  padding-bottom: 4px;
}

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

.nav-link:hover,
.nav-link.active { color: #2d6a4f; }

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

/* ========== HAMBURGER ========== */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.hamburger span {
  width: 28px;
  height: 3px;
  background: #1e1e1e;
  border-radius: 3px;
  transition: 0.3s;
}

.hamburger.active span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ========== BUTTONS ========== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  transition: all 0.3s;
  font-family: inherit;
}

.btn-primary {
  background: linear-gradient(135deg, #2d6a4f, #40916c);
  color: #fff;
  box-shadow: 0 4px 15px rgba(45, 106, 79, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(45, 106, 79, 0.4);
}

.btn-outline {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255,255,255,0.5);
}

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

.btn-submit {
  padding: 14px 36px;
  font-size: 1rem;
}

/* ========== SECTION HEADER ========== */
.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 56px;
}

.section-tag {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: #2d6a4f;
  background: rgba(45, 106, 79, 0.08);
  padding: 6px 18px;
  border-radius: 50px;
  margin-bottom: 16px;
}

.section-header h2 {
  font-size: 2.4rem;
  font-weight: 700;
  margin-bottom: 16px;
  color: #1e1e1e;
}

.section-header p {
  font-size: 1.05rem;
  color: #666;
  line-height: 1.7;
}

.highlight { color: #2d6a4f; }

/* ========== HERO ========== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-slides {
  position: absolute;
  inset: 0;
}

.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.2s ease;
  transform: scale(1.05);
}

.hero-slide.active {
  opacity: 1;
}

.hero-slide::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(26,58,42,0.85), rgba(45,106,79,0.75), rgba(27,67,50,0.85));
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 120px 0 80px;
}

.hero-badge {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: #95d5b2;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  padding: 8px 22px;
  border-radius: 50px;
  margin-bottom: 24px;
}

.hero h1 {
  font-size: 3.8rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 20px;
  letter-spacing: -0.5px;
}

.hero h1 .highlight { color: #95d5b2; }

.hero p {
  font-size: 1.15rem;
  color: rgba(255,255,255,0.8);
  max-width: 640px;
  margin: 0 auto 36px;
  line-height: 1.7;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 64px;
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 48px;
}

.stat {
  text-align: center;
}

.stat-number {
  display: block;
  font-size: 2.4rem;
  font-weight: 800;
  color: #fff;
  line-height: 1;
}

.stat-label {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.6);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 4px;
}

.hero-dots {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 12px;
  z-index: 2;
}

.hero-dots button {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.5);
  background: transparent;
  cursor: pointer;
  transition: all 0.3s;
  padding: 0;
}

.hero-dots button.active {
  background: #fff;
  border-color: #fff;
  transform: scale(1.2);
}

/* ========== ABOUT ========== */
.about {
  padding: 100px 0;
  background: #fcfcf9;
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.about-card {
  background: #fff;
  padding: 40px 32px;
  border-radius: 16px;
  border: 1px solid #eee;
  transition: all 0.4s;
  text-align: center;
}

.about-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.06);
  border-color: #2d6a4f;
}

.about-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 20px;
  background: rgba(45, 106, 79, 0.08);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  color: #2d6a4f;
  transition: background 0.3s;
}

.about-card:hover .about-icon { background: #2d6a4f; color: #fff; }

.about-card h3 {
  font-size: 1.3rem;
  margin-bottom: 10px;
  color: #1e1e1e;
}

.about-card p {
  color: #666;
  font-size: 0.95rem;
  line-height: 1.7;
}

/* ========== PRODUCTS ========== */
.products {
  padding: 100px 0;
  background: #f5f5f0;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 28px;
}

.product-card {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid #eee;
  transition: all 0.4s;
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.08);
}

.product-img {
  position: relative;
  height: 200px;
  background-size: cover;
  background-position: center;
  transition: transform 0.5s;
}

.product-card:hover .product-img { transform: scale(1.05); }

.product-img::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(transparent 60%, rgba(0,0,0,0.05));
  pointer-events: none;
}

.product-info {
  padding: 24px;
}

.product-info h3 {
  font-size: 1.15rem;
  margin-bottom: 8px;
  color: #1e1e1e;
}

.product-info p {
  color: #666;
  font-size: 0.9rem;
  line-height: 1.7;
}

/* ========== CONTACT ========== */
.contact {
  padding: 100px 0;
  background: #fcfcf9;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 48px;
  align-items: start;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.contact-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.contact-item i {
  width: 48px;
  height: 48px;
  min-width: 48px;
  background: rgba(45, 106, 79, 0.08);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #2d6a4f;
  font-size: 1.1rem;
}

.contact-item h4 {
  font-size: 0.95rem;
  margin-bottom: 4px;
  color: #1e1e1e;
}

.contact-item p,
.contact-item a {
  font-size: 0.9rem;
  color: #666;
  line-height: 1.6;
}

.contact-item a:hover { color: #2d6a4f; }

.contact-form {
  background: #fff;
  padding: 40px;
  border-radius: 16px;
  border: 1px solid #eee;
}

.form-row {
  margin-bottom: 16px;
}

.form-row input,
.form-row textarea {
  width: 100%;
  padding: 14px 18px;
  border: 1.5px solid #e0e0e0;
  border-radius: 10px;
  font-family: inherit;
  font-size: 0.95rem;
  color: #1e1e1e;
  background: #fafafa;
  transition: border-color 0.3s, background 0.3s;
  outline: none;
}

.form-row input:focus,
.form-row textarea:focus {
  border-color: #2d6a4f;
  background: #fff;
}

.form-row textarea { resize: vertical; }

/* ========== FOOTER ========== */
.footer {
  background: #1a1a1a;
  color: rgba(255,255,255,0.7);
  padding: 64px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer-brand .logo-text { color: #fff; }
.footer-brand .logo-icon { background: linear-gradient(135deg, #40916c, #2d6a4f); }

.footer-brand p {
  margin-top: 16px;
  font-size: 0.9rem;
  line-height: 1.7;
  max-width: 320px;
}

.footer-links h4 {
  font-size: 1rem;
  color: #fff;
  margin-bottom: 20px;
}

.footer-links ul li { margin-bottom: 12px; }

.footer-links ul li a {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.6);
  transition: color 0.3s;
}

.footer-links ul li a:hover { color: #95d5b2; }

.footer-bottom {
  text-align: center;
  padding: 24px 0;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.4);
}

/* ========== SCROLL TOP ========== */
.scroll-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 48px;
  height: 48px;
  background: #2d6a4f;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  box-shadow: 0 4px 15px rgba(45, 106, 79, 0.3);
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all 0.4s;
  z-index: 999;
}

.scroll-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.scroll-top:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 25px rgba(45, 106, 79, 0.4);
}

/* ========== RESPONSIVE ========== */
@media (max-width: 1024px) {
  .hero h1 { font-size: 2.8rem; }
  .section-header h2 { font-size: 2rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: #fcfcf9;
    box-shadow: -10px 0 30px rgba(0,0,0,0.1);
    padding: 80px 40px;
    transition: right 0.4s;
    z-index: 999;
  }

  .nav.open { right: 0; }

  .nav-list {
    flex-direction: column;
    gap: 24px;
  }

  .nav-link { font-size: 1.1rem; }

  .hamburger { display: flex; z-index: 1001; }

  .hero h1 { font-size: 2.2rem; }
  .hero p { font-size: 1rem; }
  .hero-stats { gap: 24px; }
  .stat-number { font-size: 1.8rem; }
  .hide-mobile { display: none; }

  .about-grid { grid-template-columns: 1fr; }
  .products-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }

  .section-header h2 { font-size: 1.7rem; }

  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 1.8rem; }
  .hero-buttons { flex-direction: column; align-items: center; }
  .btn { width: 100%; justify-content: center; }
  .contact-form { padding: 24px; }
  .container { padding: 0 16px; }
}

/* ========== ANIMATIONS ========== */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}
