/* ============ Orizon Agro — Custom Styles ============ */

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
}

/* Header states */
#site-header {
  background: transparent;
}
#site-header.scrolled {
  background: #12271a;
  box-shadow: 0 4px 20px rgba(0,0,0,0.25);
}

.nav-link {
  position: relative;
  transition: color 0.25s ease;
}
.nav-link::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0%;
  height: 2px;
  background: #c8a24d;
  transition: width 0.25s ease;
}
.nav-link:hover {
  color: #c8a24d;
}
.nav-link:hover::after {
  width: 100%;
}

.mobile-nav-link {
  display: block;
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(246,243,236,0.08);
}
.mobile-nav-link:hover {
  color: #c8a24d;
}

/* Service cards */
.service-card {
  background: #ffffff;
  border-radius: 1.5rem;
  padding: 2.25rem 2rem;
  box-shadow: 0 4px 20px rgba(18, 39, 26, 0.06);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(18, 39, 26, 0.12);
}
.service-card-featured {
  background: linear-gradient(160deg, #f6f3ec 0%, #ede7d9 100%);
  border: 2px solid #c8a24d;
}
.featured-badge {
  position: absolute;
  top: -14px;
  right: 24px;
  background: #c8a24d;
  color: #12271a;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
}
.service-icon {
  width: 56px;
  height: 56px;
  border-radius: 1rem;
  background: rgba(31, 61, 43, 0.08);
  color: #1f3d2b;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 1.25rem;
}

/* Diferenciais cards */
.diff-card {
  background: #ffffff;
  border-radius: 1.25rem;
  padding: 2rem 1.75rem;
  text-align: left;
  box-shadow: 0 4px 16px rgba(18, 39, 26, 0.05);
  transition: transform 0.3s ease;
}
.diff-card:hover {
  transform: translateY(-4px);
}

/* Process steps */
.process-step {
  background: #ffffff;
  border-radius: 1.25rem;
  padding: 2rem 1.75rem;
  position: relative;
}
.process-number {
  font-family: 'Playfair Display', serif;
  font-size: 2.5rem;
  font-weight: 700;
  color: #c8a24d;
  opacity: 0.5;
}

/* Testimonial cards */
.testimonial-card {
  background: #ffffff;
  border-radius: 1.25rem;
  padding: 2rem;
  box-shadow: 0 4px 16px rgba(18, 39, 26, 0.05);
}

/* Form */
.form-input {
  width: 100%;
  border: 1px solid #ded6c2;
  border-radius: 0.75rem;
  padding: 0.85rem 1rem;
  font-size: 0.95rem;
  background: #faf9f5;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.form-input:focus {
  outline: none;
  border-color: #1f3d2b;
  box-shadow: 0 0 0 3px rgba(31, 61, 43, 0.12);
}

/* Fade in on scroll */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: #f6f3ec;
}
::-webkit-scrollbar-thumb {
  background: #1f3d2b;
  border-radius: 10px;
}

/* Focus visível (acessibilidade) */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid #c8a24d;
  outline-offset: 2px;
}

/* Language switcher */
.lang-btn {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: rgba(246, 243, 236, 0.65);
  background: transparent;
  border: none;
  padding: 0.35rem 0.6rem;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
  line-height: 1;
}
.lang-btn:hover {
  color: #f6f3ec;
}
.lang-btn.active {
  background: #c8a24d;
  color: #12271a;
}
#lang-switcher-mobile .lang-btn {
  color: rgba(246, 243, 236, 0.65);
  font-size: 0.8rem;
  padding: 0.4rem 0.8rem;
  border: 1px solid rgba(246, 243, 236, 0.2);
}
#lang-switcher-mobile .lang-btn.active {
  background: #c8a24d;
  color: #12271a;
  border-color: #c8a24d;
}

/* Floating WhatsApp button */
#whatsapp-float {
  position: fixed;
  bottom: 26px;
  right: 24px;
  width: 58px;
  height: 58px;
  background: #25d366;
  color: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.7rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
  z-index: 60;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  animation: whatsapp-pulse 2.5s infinite;
}
#whatsapp-float:hover {
  transform: scale(1.08);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}
@keyframes whatsapp-pulse {
  0% { box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25), 0 0 0 0 rgba(37, 211, 102, 0.5); }
  70% { box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25), 0 0 0 14px rgba(37, 211, 102, 0); }
  100% { box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25), 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* Back to top button */
#back-to-top {
  position: fixed;
  bottom: 26px;
  right: 94px;
  width: 48px;
  height: 48px;
  background: #12271a;
  color: #f6f3ec;
  border: none;
  border-radius: 50%;
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
  z-index: 60;
  cursor: pointer;
  transition: transform 0.25s ease, opacity 0.25s ease;
  opacity: 0;
}
#back-to-top.visible {
  display: flex;
  opacity: 1;
}
#back-to-top:hover {
  transform: translateY(-3px);
}

@media (max-width: 640px) {
  #whatsapp-float {
    width: 52px;
    height: 52px;
    font-size: 1.5rem;
    bottom: 18px;
    right: 18px;
  }
  #back-to-top {
    width: 42px;
    height: 42px;
    font-size: 1rem;
    bottom: 18px;
    right: 78px;
  }
}
