/*
Theme Name: Farmafórmula Marabá
Theme URI: https://farmaformula.com.br
Author: Farmafórmula Marabá
Author URI: https://farmaformula.com.br
Description: Tema landing page da Farmafórmula — unidade Marabá/PA. Farmácia de manipulação com atendimento pelo WhatsApp.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: farmaformula
Tags: one-page, landing-page, pharmacy, whatsapp
*/

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --green-dark: #1a5c2a;
  --green-main: #2e8b45;
  --green-mid: #3aab57;
  --green-light: #d4edda;
  --green-pale: #f0faf3;
  --white: #ffffff;
  --gray-100: #f5f5f5;
  --gray-200: #e8e8e8;
  --gray-500: #777;
  --gray-800: #222;
  --whatsapp: #25d366;
  --whatsapp-dark: #1da851;
  --gold: #c8952a;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  color: var(--gray-800);
  background: var(--white);
  line-height: 1.6;
}

/* ───── TOPBAR ───── */
.topbar {
  background: var(--green-dark);
  color: white;
  text-align: center;
  font-size: 13px;
  padding: 8px 20px;
  letter-spacing: 0.3px;
}
.topbar strong { color: #a8f0bc; }

/* ───── NAV ───── */
nav {
  background: white;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 40px;
  border-bottom: 1px solid var(--gray-200);
  position: sticky;
  top: 0;
  z-index: 100;
}
.nav-logo { display: flex; align-items: center; gap: 12px; }
.logo-icon {
  width: 40px; height: 40px;
  background: var(--green-main);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
}
.logo-icon svg { width: 24px; height: 24px; }
.logo-text { font-size: 20px; font-weight: 700; color: var(--green-dark); letter-spacing: -0.5px; }
.logo-text span { color: var(--green-mid); }
.nav-cta {
  background: var(--whatsapp);
  color: white;
  padding: 10px 22px;
  border-radius: 50px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  display: flex; align-items: center; gap: 8px;
  transition: background 0.2s;
}
.nav-cta:hover { background: var(--whatsapp-dark); }
.nav-cta svg { width: 18px; height: 18px; }

/* ───── HERO ───── */
.hero {
  background: linear-gradient(135deg, var(--green-dark) 0%, var(--green-main) 60%, #4aba68 100%);
  color: white;
  padding: 80px 40px 90px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -60px; right: -60px;
  width: 300px; height: 300px;
  border-radius: 50%;
  background: rgba(255,255,255,0.05);
}
.hero::after {
  content: '';
  position: absolute;
  bottom: -80px; left: -40px;
  width: 250px; height: 250px;
  border-radius: 50%;
  background: rgba(255,255,255,0.04);
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 50px;
  padding: 6px 16px;
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 24px;
  backdrop-filter: blur(4px);
}
.hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(32px, 5vw, 54px);
  line-height: 1.2;
  margin-bottom: 16px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}
.hero h1 em { font-style: normal; color: #a8f0bc; }
.hero p {
  font-size: 18px;
  opacity: 0.9;
  max-width: 560px;
  margin: 0 auto 36px;
}
.hero-btns {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}
.btn-primary {
  background: var(--whatsapp);
  color: white;
  padding: 16px 32px;
  border-radius: 50px;
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
  display: inline-flex; align-items: center; gap: 10px;
  transition: transform 0.15s, background 0.2s;
  box-shadow: 0 4px 20px rgba(37,211,102,0.35);
}
.btn-primary:hover { background: var(--whatsapp-dark); transform: translateY(-1px); }
.btn-secondary {
  background: rgba(255,255,255,0.15);
  border: 2px solid rgba(255,255,255,0.5);
  color: white;
  padding: 14px 28px;
  border-radius: 50px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  backdrop-filter: blur(4px);
  transition: background 0.2s;
}
.btn-secondary:hover { background: rgba(255,255,255,0.25); }

/* ───── STATS ───── */
.stats {
  background: var(--white);
  padding: 0 40px;
  margin-top: -28px;
  position: relative;
  z-index: 10;
}
.stats-inner {
  max-width: 900px;
  margin: 0 auto;
  background: white;
  border-radius: 16px;
  box-shadow: 0 8px 40px rgba(0,0,0,0.1);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  overflow: hidden;
  border: 1px solid var(--gray-200);
}
.stat-item {
  padding: 28px 24px;
  text-align: center;
  border-right: 1px solid var(--gray-200);
}
.stat-item:last-child { border-right: none; }
.stat-num {
  font-size: 36px;
  font-weight: 700;
  color: var(--green-main);
  line-height: 1;
  margin-bottom: 6px;
}
.stat-label { font-size: 13px; color: var(--gray-500); font-weight: 500; }

/* ───── UNIDADE DESTAQUE ───── */
.unidade-section {
  background: var(--green-pale);
  border-top: 4px solid var(--green-main);
  padding: 72px 40px;
  text-align: center;
}
.section-eyebrow {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--green-light);
  color: var(--green-dark);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 6px 14px;
  border-radius: 50px;
  margin-bottom: 20px;
}
.unidade-section h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(28px, 4vw, 44px);
  color: var(--green-dark);
  margin-bottom: 12px;
}
.unidade-section h2 em { font-style: normal; color: var(--green-mid); }
.unidade-section > p {
  font-size: 16px;
  color: var(--gray-500);
  max-width: 520px;
  margin: 0 auto 48px;
}

.unidade-card {
  max-width: 600px;
  margin: 0 auto;
  background: white;
  border-radius: 20px;
  border: 2px solid var(--green-mid);
  padding: 40px 36px;
  box-shadow: 0 12px 48px rgba(46,139,69,0.12);
}
.unidade-card-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 28px;
}
.unidade-avatar {
  width: 60px; height: 60px;
  background: var(--green-dark);
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.unidade-avatar svg { width: 32px; height: 32px; }
.unidade-title { text-align: left; }
.unidade-title h3 { font-size: 22px; font-weight: 700; color: var(--green-dark); line-height: 1.2; }
.unidade-title p { font-size: 14px; color: var(--gray-500); margin-top: 3px; }

.unidade-infos {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 28px;
  text-align: left;
}
.unidade-info-item {
  background: var(--green-pale);
  border-radius: 12px;
  padding: 16px;
  display: flex; align-items: flex-start; gap: 10px;
}
.unidade-info-item svg { width: 20px; height: 20px; color: var(--green-mid); flex-shrink: 0; margin-top: 1px; }
.unidade-info-item .info-label { font-size: 11px; color: var(--gray-500); font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 3px; }
.unidade-info-item .info-val { font-size: 14px; font-weight: 600; color: var(--green-dark); }

.btn-whatsapp-grande {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--whatsapp);
  color: white;
  width: 100%;
  padding: 18px;
  border-radius: 12px;
  font-size: 17px;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.2s, transform 0.15s;
}
.btn-whatsapp-grande:hover { background: var(--whatsapp-dark); transform: translateY(-1px); }
.btn-whatsapp-grande svg { width: 22px; height: 22px; }
.btn-whatsapp-grande .btn-sub { font-size: 12px; font-weight: 400; opacity: 0.85; display: block; margin-top: 2px; }

/* ───── ESPECIALIDADES ───── */
.especialidades {
  padding: 80px 40px;
  background: white;
}
.section-header { text-align: center; margin-bottom: 52px; }
.section-header h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(26px, 3.5vw, 40px);
  color: var(--green-dark);
  margin-bottom: 10px;
}
.section-header p { font-size: 16px; color: var(--gray-500); max-width: 480px; margin: 0 auto; }

.grid-4 {
  max-width: 1000px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
}
.card-esp {
  background: var(--gray-100);
  border-radius: 16px;
  padding: 28px 20px;
  text-align: center;
  transition: transform 0.2s, box-shadow 0.2s;
  border: 1px solid transparent;
}
.card-esp:hover { transform: translateY(-4px); box-shadow: 0 8px 28px rgba(46,139,69,0.12); border-color: var(--green-light); }
.esp-icon {
  width: 52px; height: 52px;
  background: var(--green-light);
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 14px;
}
.esp-icon svg { width: 26px; height: 26px; }
.card-esp h3 { font-size: 15px; font-weight: 700; color: var(--green-dark); margin-bottom: 6px; }
.card-esp p { font-size: 13px; color: var(--gray-500); line-height: 1.5; }

/* ───── PORQUE FARMAFORMULA ───── */
.porque {
  background: var(--green-dark);
  color: white;
  padding: 80px 40px;
}
.porque .section-header h2 { color: white; }
.porque .section-header p { color: rgba(255,255,255,0.65); }
.grid-3 {
  max-width: 860px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
}
.card-porque {
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 16px;
  padding: 28px 22px;
  text-align: center;
}
.porque-num {
  font-size: 40px;
  font-weight: 800;
  color: #a8f0bc;
  font-family: 'Playfair Display', serif;
  line-height: 1;
  margin-bottom: 10px;
}
.card-porque h3 { font-size: 15px; font-weight: 700; margin-bottom: 8px; color: white; }
.card-porque p { font-size: 13px; color: rgba(255,255,255,0.65); line-height: 1.55; }

/* ───── RECEITA ───── */
.receita {
  background: white;
  padding: 80px 40px;
  text-align: center;
}
.receita h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(24px, 3.5vw, 38px);
  color: var(--green-dark);
  margin-bottom: 12px;
}
.receita > p { font-size: 16px; color: var(--gray-500); max-width: 500px; margin: 0 auto 40px; }
.steps {
  max-width: 760px;
  margin: 0 auto 44px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 0;
  position: relative;
}
.steps::before {
  content: '';
  position: absolute;
  top: 28px; left: 15%; right: 15%;
  height: 2px;
  background: var(--green-light);
  z-index: 0;
}
.step { text-align: center; position: relative; z-index: 1; padding: 0 12px; }
.step-num {
  width: 56px; height: 56px;
  background: var(--green-main);
  color: white;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px;
  font-weight: 700;
  margin: 0 auto 12px;
  border: 3px solid white;
  box-shadow: 0 0 0 2px var(--green-light);
}
.step h4 { font-size: 14px; font-weight: 700; color: var(--green-dark); margin-bottom: 5px; }
.step p { font-size: 12px; color: var(--gray-500); line-height: 1.5; }

/* ───── CTA FINAL ───── */
.cta-final {
  background: linear-gradient(135deg, #1a5c2a, #2e8b45);
  color: white;
  padding: 72px 40px;
  text-align: center;
}
.cta-final h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(26px, 4vw, 44px);
  margin-bottom: 14px;
}
.cta-final h2 em { font-style: normal; color: #a8f0bc; }
.cta-final p { font-size: 17px; opacity: 0.85; max-width: 500px; margin: 0 auto 36px; }
.cta-final .btn-primary { font-size: 18px; padding: 18px 40px; }

/* ───── FOOTER ───── */
footer {
  background: #111;
  color: rgba(255,255,255,0.5);
  padding: 32px 40px;
  text-align: center;
  font-size: 13px;
}
footer strong { color: rgba(255,255,255,0.8); }

/* ───── FLOATING WHATSAPP ───── */
.float-wa {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 999;
  background: var(--whatsapp);
  color: white;
  width: 60px; height: 60px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 24px rgba(37,211,102,0.45);
  text-decoration: none;
  transition: transform 0.2s, background 0.2s;
}
.float-wa:hover { transform: scale(1.08); background: var(--whatsapp-dark); }
.float-wa svg { width: 30px; height: 30px; }

.float-wa::before {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid var(--whatsapp);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0% { opacity: 0.8; transform: scale(1); }
  70% { opacity: 0; transform: scale(1.4); }
  100% { opacity: 0; }
}

/* ───── SEÇÃO RECEITA WHATSAPP ───── */
.section-receita-wa {
  background: #fff;
  padding: 72px 40px;
  text-align: center;
  border-bottom: 1px solid var(--gray-200);
}
.receita-wa-steps {
  max-width: 820px;
  margin: 0 auto 52px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}
.receita-wa-step {
  background: var(--green-pale);
  border: 1.5px solid var(--green-light);
  border-radius: 16px;
  padding: 28px 24px;
  text-align: center;
}
.receita-wa-step-icon {
  width: 56px; height: 56px;
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 16px;
}
.receita-wa-step-num {
  font-size: 12px;
  font-weight: 700;
  color: var(--green-dark);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
}
.receita-wa-step h3 {
  font-size: 17px;
  font-weight: 700;
  color: var(--green-dark);
  margin-bottom: 8px;
}
.receita-wa-step p {
  font-size: 14px;
  color: var(--gray-500);
  line-height: 1.55;
}
.receita-wa-cta-box {
  background: linear-gradient(135deg, #1a5c2a, #2e8b45);
  border-radius: 20px;
  padding: 44px 40px;
  max-width: 620px;
  margin: 0 auto;
  color: white;
}
.receita-wa-cta-box .cta-label {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #a8f0bc;
  margin-bottom: 12px;
}
.receita-wa-cta-box h3 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(22px, 3vw, 32px);
  margin-bottom: 10px;
  line-height: 1.25;
}
.receita-wa-cta-box .cta-sub {
  font-size: 15px;
  opacity: 0.8;
  margin-bottom: 28px;
}
.receita-wa-cta-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: var(--whatsapp);
  color: white;
  padding: 18px 36px;
  border-radius: 50px;
  font-size: 18px;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 6px 24px rgba(37,211,102,0.4);
  transition: background 0.2s, transform 0.15s;
}
.receita-wa-cta-link:hover { background: var(--whatsapp-dark); transform: translateY(-1px); }
.receita-wa-cta-tel {
  font-size: 12px;
  opacity: 0.6;
  margin-top: 14px;
}

/* ───── RESPONSIVE TABLET ───── */
@media (max-width: 768px) {
  nav { padding: 14px 24px; }
  .hero { padding: 60px 24px 72px; }
  .stats { padding: 0 24px; }
  .section-receita-wa { padding: 56px 24px; }
  .receita-wa-cta-box { padding: 36px 28px; }
  .unidade-section, .especialidades, .porque, .receita, .cta-final { padding: 64px 24px; }
  .unidade-card { padding: 32px 24px; }
}

/* ───── RESPONSIVE MOBILE ───── */
@media (max-width: 600px) {
  nav { padding: 12px 16px; }
  .nav-badge { display: none; }
  .nav-cta { padding: 10px 14px; }
  .nav-cta-label { display: none; }
  .topbar { font-size: 12px; padding: 8px 16px; }
  .hero { padding: 52px 20px 64px; }
  .hero p { font-size: 16px; }
  .stats { padding: 0 16px; }
  .stats-inner { grid-template-columns: 1fr; }
  .stat-item { border-right: none; border-bottom: 1px solid var(--gray-200); }
  .stat-item:last-child { border-bottom: none; }
  .section-receita-wa { padding: 48px 16px; }
  .receita-wa-cta-box { padding: 28px 20px; }
  .receita-wa-cta-link {
    padding: 16px 20px;
    font-size: 15px;
    display: flex;
    width: 100%;
    justify-content: center;
    box-sizing: border-box;
  }
  .unidade-section, .especialidades, .porque, .receita, .cta-final { padding: 56px 20px; }
  .unidade-card { padding: 28px 20px; }
  .unidade-infos { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; gap: 24px; }
  .steps::before { display: none; }
  footer { padding: 24px 20px; }
}
