/* Base */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { margin: 0; }
img { max-width: 100%; display: block; }
select { background-image: none; }

/* Navigation */
.nav-logo-text { transition: color 0.3s; }
.nav-link { position: relative; }
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: #059669;
  border-radius: 1px;
  transition: width 0.3s;
}
.nav-link:hover::after { width: 100%; }
#navbar.scrolled {
  background: rgba(254, 253, 248, 0.95);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 20px rgba(6, 78, 59, 0.08);
}

/* Buttons */
.btn-primary {
  background: #065f46;
  color: white;
  border-radius: 1rem;
  padding: 0.75rem 1.5rem;
  transition: all 0.3s;
  border: none;
  cursor: pointer;
  font-family: inherit;
}
.btn-primary:hover {
  background: #047857;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(6, 95, 70, 0.3);
}
.btn-secondary {
  background: white;
  color: #065f46;
  border-radius: 1rem;
  padding: 0.75rem 1.5rem;
  transition: all 0.3s;
  border: 2px solid #d1fae5;
  cursor: pointer;
  font-family: inherit;
}
.btn-secondary:hover {
  border-color: #059669;
  background: #ecfdf5;
  transform: translateY(-2px);
}

/* Inputs */
.input-field {
  background: #fefdf8;
  border: 2px solid #e8e8e8;
  border-radius: 0.75rem;
  padding: 0.75rem 1rem;
  font-size: 0.95rem;
  color: #064e3b;
  font-family: inherit;
  transition: border-color 0.3s, box-shadow 0.3s;
  outline: none;
  width: 100%;
}
.input-field:focus {
  border-color: #059669;
  box-shadow: 0 0 0 4px rgba(5, 150, 105, 0.1);
}
.input-field::placeholder { color: #9ca3af; }
.select-field {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23065f46' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 2.5rem;
}

/* Hero */
.hero-badge {
  animation: fadeInUp 0.8s ease both;
}
.hero-title {
  animation: fadeInUp 0.8s ease 0.1s both;
}
.hero-subtitle {
  animation: fadeInUp 0.8s ease 0.2s both;
}
.hero-ctas {
  animation: fadeInUp 0.8s ease 0.3s both;
}
.hero-trust {
  animation: fadeInUp 0.8s ease 0.4s both;
}
.hero-image-col {
  animation: fadeInRight 1s ease 0.2s both;
}

/* Floating cards */
.float-card {
  animation: float 4s ease-in-out infinite;
}
.float-card-delayed {
  animation: float 4s ease-in-out 1s infinite;
}

/* About */
.about-image {
  animation: fadeInLeft 0.8s ease both;
}
.about-content {
  animation: fadeInRight 0.8s ease 0.15s both;
}

/* Products */
.products-header {
  animation: fadeInUp 0.8s ease both;
}
.product-card {
  animation: fadeInUp 0.8s ease both;
}
.product-card:nth-child(1) { animation-delay: 0.05s; }
.product-card:nth-child(2) { animation-delay: 0.1s; }
.product-card:nth-child(3) { animation-delay: 0.15s; }
.product-card:nth-child(4) { animation-delay: 0.2s; }
.product-card:nth-child(5) { animation-delay: 0.25s; }
.product-card:nth-child(6) { animation-delay: 0.3s; }

/* Why Us */
.why-header {
  animation: fadeInUp 0.8s ease both;
}
.why-card {
  animation: fadeInUp 0.8s ease both;
}
.why-card:nth-child(1) { animation-delay: 0.05s; }
.why-card:nth-child(2) { animation-delay: 0.1s; }
.why-card:nth-child(3) { animation-delay: 0.15s; }
.why-card:nth-child(4) { animation-delay: 0.2s; }

/* Visit */
.visit-info {
  animation: fadeInLeft 0.8s ease both;
}
.visit-form {
  animation: fadeInRight 0.8s ease 0.15s both;
}

/* Animations */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInLeft {
  from { opacity: 0; transform: translateX(-30px); }
  to { opacity: 1; transform: translateX(0); }
}
@keyframes fadeInRight {
  from { opacity: 0; transform: translateX(30px); }
  to { opacity: 1; transform: translateX(0); }
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* Scroll animations */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

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

/* Back to top */
#back-to-top.show {
  opacity: 1;
  pointer-events: all;
}
#back-to-top:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(6, 78, 59, 0.4);
}

/* Responsive */
@media (max-width: 768px) {
  .hero-title { font-size: 2.75rem; }
  .float-card { display: none; }
  .float-card-delayed { display: none; }
}
@media (max-width: 640px) {
  .hero-title { font-size: 2.25rem; }
}
