/* ── Base ── */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Lato', system-ui, sans-serif;
  background-color: #fbf4e1;
  color: #1f2937;
}

/* ── Focus states (accessibility) ── */
:focus-visible {
  outline: 2px solid #7a7d62;
  outline-offset: 3px;
  border-radius: 4px;
}

/* ── Reduced motion ── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
  #whatsappFloat { animation: none; }
}

/* ── Gradients ── */
.hero-gradient {
  background: linear-gradient(135deg, #7a7d62 0%, #aaad8f 45%, #8e9175 100%);
}

.cta-gradient {
  background: linear-gradient(135deg, #767960 0%, #aaad8f 100%);
}

.footer-gradient {
  background: linear-gradient(135deg, #4a4c3a 0%, #767960 100%);
}

/* ── Navbar ── */
#navbar {
  background: transparent;
}

#navbar .nav-logo {
  /* logo branca visível sobre o hero verde */
  filter: brightness(0) invert(1);
  transition: filter .4s ease;
}

#navbar.scrolled {
  background: rgba(251, 244, 225, 0.97);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 rgba(0,0,0,.07), 0 4px 20px rgba(0,0,0,.05);
}

/* logo escura sobre fundo creme */
#navbar.scrolled .nav-logo {
  filter: brightness(0) saturate(100%) invert(42%) sepia(12%) saturate(520%) hue-rotate(36deg) brightness(92%) contrast(90%);
}

#navbar.scrolled .nav-link {
  color: #4a4c3a;
}

#navbar .nav-link {
  color: rgba(251,244,225,.9);
  transition: color .2s;
}

#navbar .nav-link:hover {
  color: #fff;
}

#navbar.scrolled .nav-link:hover {
  color: #7a7d62;
}

.mobile-nav-link {
  color: #4a4c3a;
  font-weight: 500;
  transition: color .2s;
}

.mobile-nav-link:hover {
  color: #7a7d62;
}

/* ── Buttons ── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .75rem 1.5rem;
  border-radius: 9999px;
  background: #7a7d62;
  color: #fff;
  font-weight: 600;
  font-size: .875rem;
  letter-spacing: .02em;
  transition: background .2s, transform .15s, box-shadow .2s;
  box-shadow: 0 4px 14px rgba(122,125,98,.35);
}

.btn-primary:hover {
  background: #676a52;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(122,125,98,.45);
}

.btn-primary:active { transform: translateY(0); }

.btn-light {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .75rem 1.5rem;
  border-radius: 9999px;
  background: #fbf4e1;
  color: #7a7d62;
  font-weight: 600;
  font-size: .875rem;
  transition: background .2s, transform .15s;
}

.btn-light:hover {
  background: #fff;
  transform: translateY(-1px);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .75rem 1.5rem;
  border-radius: 9999px;
  border: 2px solid rgba(255,255,255,.5);
  color: #fff;
  font-weight: 600;
  font-size: .875rem;
  transition: border-color .2s, background .2s, transform .15s;
}

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

/* ── Hamburger ── */
.hamburger-line {
  display: block;
  width: 22px;
  height: 2px;
  border-radius: 2px;
  background: #4a4c3a;
  transition: transform .25s, opacity .2s;
}

#navbar .hamburger-line {
  background: #fbf4e1;
}

#navbar.scrolled .hamburger-line {
  background: #4a4c3a;
}

/* ── Tags ── */
.tag {
  display: inline-block;
  padding: .3rem .85rem;
  border-radius: 9999px;
  background: rgba(170,173,143,.15);
  border: 1px solid rgba(170,173,143,.4);
  color: #7a7d62;
  font-size: .75rem;
  font-weight: 500;
  letter-spacing: .02em;
}

/* ── Service cards ── */
.service-card {
  background: #fff;
  border-radius: 1.25rem;
  padding: 1.75rem;
  border: 1px solid rgba(170,173,143,.2);
  transition: transform .25s, box-shadow .25s, border-color .25s;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(122,125,98,.15);
  border-color: rgba(170,173,143,.5);
}

.service-icon {
  width: 3rem;
  height: 3rem;
  border-radius: .875rem;
  background: rgba(170,173,143,.15);
  color: #7a7d62;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  transition: background .2s;
}

.service-card:hover .service-icon {
  background: rgba(170,173,143,.3);
}

/* ── Step numbers ── */
.step-number {
  display: block;
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 3rem;
  font-weight: 700;
  color: rgba(170,173,143,.4);
  line-height: 1;
  margin-bottom: .25rem;
}

/* ── Contact cards ── */
.contact-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  border-radius: 1rem;
  background: #fff;
  border: 1px solid rgba(170,173,143,.2);
  transition: box-shadow .2s, transform .2s;
}

.contact-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(122,125,98,.12);
}

.contact-icon {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: .75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background .2s;
}

/* ── Form ── */
.form-label {
  display: block;
  font-size: .8125rem;
  font-weight: 500;
  color: #4b5563;
  margin-bottom: .375rem;
}

.form-input {
  width: 100%;
  padding: .625rem .875rem;
  border-radius: .75rem;
  border: 1.5px solid #e5e7eb;
  background: #fafafa;
  font-size: .9375rem;
  color: #1f2937;
  outline: none;
  transition: border-color .2s, box-shadow .2s, background .2s;
}

.form-input:focus {
  border-color: #aaad8f;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(170,173,143,.2);
}

.form-input::placeholder { color: #9ca3af; }

/* ── Footer icons ── */
.footer-icon {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 9999px;
  border: 1px solid rgba(255,255,255,.25);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,.7);
  transition: border-color .2s, color .2s, background .2s;
}

.footer-icon:hover {
  border-color: rgba(255,255,255,.6);
  color: #fff;
  background: rgba(255,255,255,.1);
}

/* ── Scroll reveal ── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .65s ease, transform .65s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Delay utilities (supplement Tailwind) */
.delay-100 { transition-delay: 100ms; }
.delay-200 { transition-delay: 200ms; }
.delay-300 { transition-delay: 300ms; }
.delay-400 { transition-delay: 400ms; }

/* ── WhatsApp float ── */
#whatsappFloat {
  animation: waPulse 2.5s ease-in-out infinite;
}

@keyframes waPulse {
  0%, 100% { box-shadow: 0 4px 14px rgba(34,197,94,.45); }
  50%       { box-shadow: 0 4px 28px rgba(34,197,94,.7), 0 0 0 8px rgba(34,197,94,.1); }
}

/* ── Responsive tweaks ── */
@media (max-width: 767px) {
  .step-number { font-size: 2rem; }
}
