*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  width: 100%;
  max-width: 100%;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--ink-700);
  background-color: var(--surface-0);
  background-image:
    radial-gradient(ellipse 80% 50% at 0% 0%, rgba(217, 169, 30, 0.08), transparent 55%),
    radial-gradient(ellipse 60% 40% at 100% 20%, rgba(74, 93, 35, 0.06), transparent 50%),
    linear-gradient(180deg, #fffdf2 0%, var(--surface-0) 40%, #fbf8e8 100%);
  background-attachment: fixed;
  min-height: 100vh;
  overflow-x: hidden;
  width: 100%;
  max-width: 100%;
  position: relative;
}

@media (max-width: 700px) {
  body {
    background-attachment: scroll;
  }
}

img { max-width: 100%; height: auto; display: block; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--ink-900);
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(2rem, 4.5vw, 3.25rem); margin: 0 0 0.75rem; }
h2 { font-size: clamp(1.55rem, 3vw, 2.25rem); margin: 0 0 0.75rem; }
h3 { font-size: 1.2rem; margin: 0 0 0.5rem; }

p { margin: 0 0 1rem; }

a {
  color: var(--green-900);
  text-underline-offset: 0.18em;
}

a:hover { color: var(--green-700); }

:focus-visible {
  outline: none;
  box-shadow: var(--focus);
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  background: var(--green-700);
  color: #fff;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  z-index: 1000;
  text-decoration: none;
  font-weight: 600;
}

.skip-link:focus {
  top: 1rem;
}

/* Top Reading / Scroll Progress Bar */
.scroll-progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 3px;
  background: linear-gradient(90deg, var(--green-700) 0%, var(--yellow-500) 50%, var(--green-600) 100%);
  z-index: 1001;
  transition: width 0.1s ease-out;
  pointer-events: none;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 1.25rem);
}

/* Floating Scroll-to-Top Button */
.scroll-top-btn {
  position: fixed;
  right: 1.5rem;
  bottom: 5.5rem;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background: var(--surface-1);
  border: 2px solid var(--green-700);
  color: var(--green-700);
  box-shadow: 0 8px 24px rgba(58, 58, 34, 0.14);
  display: grid;
  place-items: center;
  cursor: pointer;
  z-index: 92;
  opacity: 0;
  visibility: hidden;
  transform: translateY(14px) scale(0.92);
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1), transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.3s, background var(--transition), color var(--transition), box-shadow var(--transition);
}

.scroll-top-btn.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.scroll-top-btn:hover {
  background: var(--green-700);
  color: #ffffff;
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 12px 28px rgba(74, 93, 35, 0.32);
}

.scroll-top-btn:active {
  transform: translateY(-1px) scale(0.98);
}

.scroll-top-btn__icon {
  transition: transform 0.2s ease;
}

.scroll-top-btn:hover .scroll-top-btn__icon {
  transform: translateY(-2px);
}

.whatsapp-float {
  position: fixed;
  right: 1.5rem;
  bottom: 1.25rem;
  z-index: 95;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.15rem 0.75rem 0.95rem;
  border-radius: 999px;
  background: #25d366;
  color: #fff;
  text-decoration: none;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.95rem;
  box-shadow: 0 10px 28px rgba(37, 211, 102, 0.4);
  transition: transform var(--transition), box-shadow var(--transition);
}

.whatsapp-float:hover {
  color: #fff;
  transform: translateY(-3px);
  box-shadow: 0 14px 32px rgba(37, 211, 102, 0.5);
}

.whatsapp-float__icon {
  width: 1.45rem;
  height: 1.45rem;
  flex-shrink: 0;
  display: block;
  overflow: visible;
}

@media (max-width: 480px) {
  .whatsapp-float__label { display: none; }
  .whatsapp-float {
    right: 1rem;
    bottom: 1rem;
    width: 3.25rem;
    height: 3.25rem;
    padding: 0;
    justify-content: center;
    border-radius: 50%;
  }
  .scroll-top-btn {
    right: 1rem;
    bottom: 4.85rem;
    width: 2.75rem;
    height: 2.75rem;
  }
}

.container {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

.narrow { width: min(100% - 2rem, 42rem); margin-inline: auto; }

.eyebrow {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--green-700);
  margin: 0 0 0.65rem;
}

.muted { color: var(--ink-500); font-size: 0.95rem; }

.section {
  padding: clamp(3rem, 7vw, 5.5rem) 0;
  position: relative;
  z-index: 1;
  overflow: hidden;
}

.section-head {
  max-width: 40rem;
  margin-bottom: 2.25rem;
}

.section-head__lede { color: var(--ink-500); font-size: 1.1rem; }

.flash-wrap {
  width: min(100% - 2rem, var(--max));
  margin: 1rem auto 0;
}

.flash {
  background: var(--green-100);
  border-left: 4px solid var(--green-700);
  padding: 0.85rem 1rem;
  border-radius: var(--radius-sm);
  margin-bottom: 0.5rem;
}

.hp-wrap, .hp-field {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

.errorlist {
  list-style: none;
  padding: 0;
  margin: 0.35rem 0 0;
  color: #9b1c1c;
  font-size: 0.9rem;
}

.form-errors {
  background: #fde8e8;
  color: #9b1c1c;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  margin-bottom: 1rem;
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity 0.85s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.85s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
