/* ============================================================
   Reformule — Farmácia de Manipulação
   Landing manipulacao.farmaciareformule.com.br
   ============================================================ */

:root {
  --green-primary: #22A06B;
  --green-primary-hover: #1B8A5B;
  --green-dark: #0F4D38;
  --green-dark-2: #0B3B2B;
  --green-soft: #E8F2EC;
  --green-softer: #F1F7F3;
  --bg-section: #F5F7F5;
  --bg-stats: #BFD8C7;
  --black: #0A0A0A;
  --text: #1A1A1A;
  --text-soft: #5F6B66;
  --text-muted: #8A958F;
  --border: #E5E7E5;
  --border-soft: #EEF0EE;
  --white: #FFFFFF;
  --star: #F5A524;

  --font-sans: "Outfit", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-body: "Work Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-serif: var(--font-sans);

  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 16px;
  --radius-pill: 999px;

  --shadow-sm: 0 1px 2px rgba(15, 77, 56, 0.04);
  --shadow-md: 0 4px 16px rgba(15, 77, 56, 0.06);
  --shadow-lg: 0 12px 32px rgba(15, 77, 56, 0.10);

  --container: 1200px;
  --pad-x: 24px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.55;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; }
ul { list-style: none; padding: 0; margin: 0; }
h1, h2, h3, h4 { margin: 0; font-weight: 600; }
p { margin: 0; font-family: var(--font-body); font-weight: 500; }

/* ---------- Layout primitives ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--pad-x);
}

.section-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 56px;
}
.section-title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.15;
  color: var(--text);
}
.section-sub {
  margin-top: 14px;
  color: var(--text-soft);
  font-size: 1rem;
}
.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  color: var(--green-dark);
  margin-bottom: 16px;
  text-transform: uppercase;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 22px;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1.2;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease, color 0.18s ease;
  white-space: nowrap;
}
.btn i { width: 18px; height: 18px; }
.btn:hover { transform: translateY(-1px); }
.btn--whatsapp {
  background: var(--green-primary);
  color: var(--white);
  box-shadow: 0 6px 16px rgba(34, 160, 107, 0.28);
}
.btn--whatsapp:hover { background: var(--green-primary-hover); }
.btn--outline {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}
.btn--outline:hover { border-color: var(--text); background: var(--white); }
.btn--white {
  background: var(--white);
  color: var(--green-dark);
}
.btn--white:hover { background: #F4F6F4; }
.btn--sm { padding: 11px 18px; font-size: 0.88rem; }

/* ---------- Topbar ---------- */
.topbar {
  background: var(--green-dark);
  color: var(--white);
  font-size: 0.85rem;
  padding: 10px 0;
}
.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.topbar__icon { width: 16px; height: 16px; }

/* ---------- Header ---------- */
.header {
  background: var(--white);
  border-bottom: 1px solid var(--border-soft);
  position: sticky;
  top: 0;
  z-index: 50;
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  padding-bottom: 14px;
}

/* Logo */
.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.logo__mark {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--green-soft);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.logo__mark svg { width: 22px; height: 22px; }
.logo__text { display: flex; flex-direction: column; line-height: 1; }
.logo__name {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--text);
}
.logo__tagline {
  font-size: 0.62rem;
  letter-spacing: 0.22em;
  color: var(--text-soft);
  margin-top: 4px;
  font-weight: 500;
}
.logo--light .logo__name,
.logo--light .logo__tagline { color: var(--white); }
.logo--light .logo__tagline { color: rgba(255,255,255,0.6); }

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(180deg, var(--green-soft) 0%, #EFF6F1 100%);
  padding: 72px 0 96px;
  position: relative;
  overflow: hidden;
}
.hero__grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 64px;
  align-items: center;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  background: var(--white);
  border: 1px solid var(--border-soft);
  font-size: 0.82rem;
  color: var(--text-soft);
  margin-bottom: 28px;
}
.badge__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green-primary);
}
.hero__title {
  font-family: var(--font-serif);
  font-size: clamp(2.5rem, 5.2vw, 3.8rem);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.01em;
  color: var(--text);
}
.hero__title-accent { color: var(--green-dark); }
.hero__subtitle {
  margin-top: 22px;
  font-size: 1.05rem;
  color: var(--text-soft);
  max-width: 460px;
}
.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}
.hero__features {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  margin-top: 36px;
}
.hero__features li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.88rem;
  color: var(--text);
  max-width: 180px;
}
.hero__feature-icon {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: rgba(34, 160, 107, 0.10);
  color: var(--green-dark);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.hero__feature-icon i { width: 16px; height: 16px; }

/* Hero media */
.hero__media {
  position: relative;
  justify-self: end;
  width: 100%;
  max-width: 520px;
}
.hero__image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--green-softer);
  aspect-ratio: 1/1;
  box-shadow: var(--shadow-lg);
}
.hero__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero__badge {
  position: absolute;
  bottom: -22px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--white);
  padding: 14px 22px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  text-align: center;
  border: 1px solid var(--border-soft);
}
.hero__badge strong {
  display: block;
  font-family: var(--font-serif);
  font-size: 1.5rem;
  color: var(--text);
  line-height: 1;
}
.hero__badge span {
  display: block;
  font-size: 0.72rem;
  color: var(--text-soft);
  margin-top: 4px;
}

/* ---------- Stats ---------- */
.stats {
  background: var(--bg-stats);
  padding: 40px 0;
}
.stats__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}
.stat {
  text-align: center;
  padding: 16px 24px;
  border-right: 1px solid rgba(15, 77, 56, 0.18);
}
.stat:last-child { border-right: none; }
.stat__value {
  display: block;
  font-family: var(--font-serif);
  font-size: 1.85rem;
  font-weight: 600;
  color: var(--text);
}
.stat__label {
  display: block;
  margin-top: 6px;
  font-size: 0.88rem;
  color: var(--text-soft);
}

/* ---------- About ---------- */
.about {
  padding: 100px 0;
  background: var(--white);
}
.about__grid {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 80px;
  align-items: center;
}
.about__text {
  margin-top: 8px;
  color: var(--text-soft);
  font-size: 1rem;
  max-width: 480px;
}
.about__quote {
  margin: 32px 0 0;
  padding: 6px 0 6px 18px;
  border-left: 3px solid var(--green-primary);
  font-family: var(--font-body);
  font-style: italic;
  font-weight: 500;
  font-size: 1.05rem;
  color: var(--text);
}
.about__media img {
  border-radius: var(--radius-lg);
  width: 100%;
  height: auto;
  aspect-ratio: 4/5;
  object-fit: cover;
  background: var(--green-softer);
  box-shadow: var(--shadow-md);
  border: 6px solid var(--green-soft);
}

/* ---------- Categories ---------- */
.categories {
  background: var(--bg-section);
  padding: 100px 0;
}
.categories__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.category {
  background: var(--white);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
  min-height: 200px;
}
.category:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--green-soft);
}
.category__icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: var(--green-soft);
  color: var(--green-dark);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.category__icon i { width: 20px; height: 20px; }
.category__title {
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  flex-grow: 1;
}
.category__cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--green-dark);
}
.category__cta i { width: 14px; height: 14px; transition: transform 0.18s ease; }
.category:hover .category__cta i { transform: translateX(3px); }

.categories__more {
  text-align: center;
  margin-top: 40px;
}
.link-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text);
}
.link-more i { width: 14px; height: 14px; }
.link-more:hover { color: var(--green-dark); }

/* ---------- How it works ---------- */
.how {
  padding: 100px 0;
  background: var(--white);
}
.how__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  position: relative;
  margin-bottom: 56px;
}
.how__grid::before {
  content: "";
  position: absolute;
  top: 36px;
  left: 16.66%;
  right: 16.66%;
  height: 1px;
  background: var(--border);
  z-index: 0;
}
.how__step {
  position: relative;
  text-align: center;
  padding: 0 12px;
  z-index: 1;
}
.how__icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--white);
  border: 1px solid var(--border);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--green-dark);
  margin-bottom: 22px;
  box-shadow: 0 0 0 8px var(--white);
}
.how__icon i { width: 26px; height: 26px; }
.how__num {
  display: block;
  font-family: var(--font-serif);
  font-size: 2.4rem;
  font-weight: 600;
  color: var(--green-dark);
  margin-bottom: 8px;
  line-height: 1;
}
.how__title {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 10px;
}
.how__step p {
  font-size: 0.9rem;
  color: var(--text-soft);
  max-width: 280px;
  margin: 0 auto;
}
.how__cta { text-align: center; }

/* ---------- Differentials ---------- */
.differentials {
  background: var(--bg-section);
  padding: 100px 0;
}
.differentials__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.differential {
  background: var(--white);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  padding: 24px 28px;
  display: flex;
  align-items: flex-start;
  gap: 16px;
}
.differential__icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--green-soft);
  color: var(--green-dark);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.differential__icon i { width: 18px; height: 18px; }
.differential h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 4px;
}
.differential p {
  font-size: 0.9rem;
  color: var(--text-soft);
}

/* ---------- Testimonials ---------- */
.testimonials {
  background: var(--white);
  padding: 100px 0;
}
.testimonials__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.testimonial {
  background: var(--white);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  padding: 26px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.testimonial__stars {
  display: flex;
  gap: 2px;
  color: var(--star);
}
.testimonial__stars i {
  width: 16px;
  height: 16px;
  fill: var(--star);
  stroke: var(--star);
}
.testimonial__text {
  font-size: 0.95rem;
  color: var(--text);
  line-height: 1.55;
  flex-grow: 1;
}
.testimonial__author {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 16px;
  border-top: 1px solid var(--border-soft);
}
.avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--green-soft);
  color: var(--green-dark);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}
.testimonial__author strong {
  display: block;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text);
}
.testimonial__author span {
  font-size: 0.8rem;
  color: var(--text-soft);
}

/* ---------- CTA Final ---------- */
.cta-final {
  background:
    radial-gradient(circle at 20% 20%, rgba(255,255,255,0.06) 0%, transparent 50%),
    linear-gradient(135deg, var(--green-dark) 0%, var(--green-dark-2) 100%);
  color: var(--white);
  padding: 96px 0;
  text-align: center;
}
.cta-final__inner { max-width: 640px; margin: 0 auto; }
.cta-final__title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.15;
  color: var(--white);
}
.cta-final__text {
  margin-top: 18px;
  color: rgba(255,255,255,0.82);
  font-size: 1.02rem;
}
.cta-final .btn { margin-top: 32px; }
.cta-final__note {
  display: block;
  margin-top: 18px;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.6);
}

/* ---------- Footer ---------- */
.footer {
  background: var(--black);
  color: rgba(255,255,255,0.72);
  padding: 64px 0 0;
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.2fr 1.3fr 0.8fr;
  gap: 48px;
  padding-bottom: 48px;
}
.footer__tagline {
  margin-top: 18px;
  font-size: 0.88rem;
  color: rgba(255,255,255,0.6);
  max-width: 320px;
}
.footer__contact {
  display: flex;
  flex-direction: column;
  gap: 14px;
  font-size: 0.88rem;
}
.footer__contact li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.footer__contact i {
  width: 18px;
  height: 18px;
  color: var(--green-primary);
  margin-top: 2px;
  flex-shrink: 0;
}
.footer__social-label {
  display: block;
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  color: rgba(255,255,255,0.5);
  margin-bottom: 16px;
}
.footer__social-icons {
  display: flex;
  gap: 10px;
}
.footer__social-icons a {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.18);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.85);
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}
.footer__social-icons a:hover {
  background: var(--green-primary);
  border-color: var(--green-primary);
  color: var(--white);
}
.footer__social-icons a svg,
.footer__social-icons a i {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  display: block;
}

.footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 22px 0;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.5);
}
.footer__bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.footer__bottom a:hover { color: rgba(255,255,255,0.85); }

/* ---------- Reveal animation ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Responsive ---------- */
@media (max-width: 1023px) {
  .hero { padding: 56px 0 80px; }
  .hero__grid { grid-template-columns: 1fr; gap: 48px; }
  .hero__media { justify-self: center; max-width: 460px; }
  .about__grid { grid-template-columns: 1fr; gap: 48px; }
  .categories__grid { grid-template-columns: repeat(2, 1fr); }
  .testimonials__grid { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 36px; }
  .footer__social { grid-column: 1 / -1; }
}

@media (max-width: 767px) {
  :root { --pad-x: 20px; }
  .header__inner .btn span { display: none; }
  .header__inner .btn { padding: 11px 13px; }
  .hero { padding: 44px 0 72px; }
  .hero__title { font-size: 2.4rem; }
  .hero__features { flex-direction: column; gap: 14px; }
  .hero__features li { max-width: none; }
  .hero__cta .btn { width: 100%; }
  .stats__grid { grid-template-columns: 1fr; }
  .stat {
    border-right: none;
    border-bottom: 1px solid rgba(15, 77, 56, 0.18);
    padding: 18px 0;
  }
  .stat:last-child { border-bottom: none; }
  .about, .categories, .how, .differentials, .testimonials { padding: 64px 0; }
  .section-head { margin-bottom: 40px; }
  .categories__grid { grid-template-columns: 1fr; }
  .how__grid { grid-template-columns: 1fr; gap: 36px; }
  .how__grid::before { display: none; }
  .differentials__grid { grid-template-columns: 1fr; }
  .cta-final { padding: 64px 0; }
  .footer__grid { grid-template-columns: 1fr; gap: 32px; padding-bottom: 36px; }
  .footer__bottom-inner { flex-direction: column; align-items: flex-start; gap: 10px; }
}

@media (max-width: 420px) {
  .hero__title { font-size: 2rem; }
  .section-title { font-size: 1.75rem; }
  .cta-final__title { font-size: 1.85rem; }
}
