/*
Theme Name: Prescrevendo Landing Page
Theme URI: https://prescrevendo.com.br
Author: Prescrevendo
Author URI: https://prescrevendo.com.br
Description: Tema WordPress de alta conversão para o Guia de Prescrição no Pronto Socorro.
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: prescrevendo
*/

/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --primary: #a31621;
  --primary-dark: #6b0f1a;
  --primary-foreground: #ffffff;
  --foreground: #1a1a1a;
  --background: #ffffff;
  --secondary: #f5f5f5;
  --muted: #737373;
  --success: #22a65a;
  --success-foreground: #ffffff;
  --dark-bg: #1a1a2e;
  --dark-fg: #f2f2f2;
  --border: #e5e5e5;
  --topbar: #7a111c;
  --radius: 0.5rem;
  --hero-gradient: linear-gradient(135deg, #8f1420 0%, #5c0d15 100%);
  --font-heading: 'Montserrat', sans-serif;
  --font-body: 'Open Sans', sans-serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--foreground);
  background: var(--background);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 { font-family: var(--font-heading); }

a { text-decoration: none; color: inherit; }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }

.container { max-width: 720px; margin: 0 auto; padding: 0 1rem; }
.container-lg { max-width: 900px; margin: 0 auto; padding: 0 1rem; }
.text-center { text-align: center; }

/* ===== ANIMATIONS ===== */
@keyframes pulse-btn {
  0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(34,166,90,0.7); }
  50% { transform: scale(1.03); box-shadow: 0 0 20px 5px rgba(34,166,90,0.3); }
}
.animate-pulse-btn { animation: pulse-btn 2s ease-in-out infinite; }

/* ===== BUTTONS ===== */
.btn-cta {
  display: inline-block;
  background: var(--success);
  color: var(--success-foreground);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.125rem;
  padding: 1rem 2.5rem;
  border-radius: var(--radius);
  transition: filter 0.2s;
  cursor: pointer;
  border: none;
}
.btn-cta:hover { filter: brightness(1.1); }
.btn-cta--full { width: 100%; }

/* ===== SECTION LABEL ===== */
.section-label {
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}
.section-label--light { color: var(--primary); }

/* ===== TOP BAR ===== */
.topbar {
  background: var(--topbar);
  color: var(--primary-foreground);
  text-align: center;
  padding: 0.625rem 1rem;
  font-size: 0.875rem;
  font-weight: 600;
  font-family: var(--font-body);
  letter-spacing: 0.03em;
}

/* ===== HERO ===== */
.hero {
  position: relative;
  background: var(--hero-gradient);
  color: var(--primary-foreground);
  padding: 4rem 1rem;
  overflow: hidden;
  text-align: center;
}
.hero__pattern {
  position: absolute; inset: 0; opacity: 0.1;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.15'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.hero__inner { position: relative; z-index: 1; max-width: 720px; margin: 0 auto; }
.hero__tag {
  display: inline-block;
  background: rgba(255,255,255,0.2);
  backdrop-filter: blur(4px);
  color: var(--primary-foreground);
  font-size: 0.875rem;
  font-weight: 600;
  font-family: var(--font-body);
  padding: 0.375rem 1rem;
  border-radius: 9999px;
  margin-bottom: 1.5rem;
  border: 1px solid rgba(255,255,255,0.3);
}
.hero h1 {
  font-weight: 900;
  font-size: 1.875rem;
  line-height: 1.2;
  margin-bottom: 1.5rem;
}
.hero__subtitle {
  font-size: 1.125rem;
  opacity: 0.9;
  margin-bottom: 2rem;
  max-width: 640px;
  margin-left: auto; margin-right: auto;
  line-height: 1.7;
}
.hero__trust { font-size: 0.875rem; opacity: 0.8; margin-top: 0.75rem; }
.hero__social { margin-top: 2rem; font-size: 1rem; font-weight: 600; }

/* ===== PAIN SECTION ===== */
.pain { background: var(--secondary); padding: 4rem 1rem; }
.pain h2 { font-weight: 900; font-size: 1.5rem; margin-bottom: 2.5rem; }
.pain__list { margin-bottom: 2.5rem; }
.pain__item {
  display: flex; align-items: flex-start; gap: 0.75rem;
  font-size: 1rem; margin-bottom: 1.25rem;
}
.pain__icon { color: var(--primary); font-weight: 700; font-size: 1.25rem; flex-shrink: 0; margin-top: 0.125rem; }
.pain__box {
  background: var(--primary);
  color: var(--primary-foreground);
  border-radius: var(--radius);
  padding: 1.5rem;
  font-size: 1rem;
  line-height: 1.7;
}

/* ===== PRODUCT ===== */
.product { background: var(--dark-bg); color: var(--dark-fg); padding: 4rem 1rem; text-align: center; }
.product__badge {
  display: inline-block;
  background: var(--primary);
  color: var(--primary-foreground);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.375rem 1rem;
  border-radius: 9999px;
  margin-bottom: 1.5rem;
}
.product h2 { font-weight: 900; font-size: 1.5rem; margin-bottom: 1rem; }
.product__sub { font-family: var(--font-heading); font-weight: 700; font-size: 1.125rem; color: var(--primary); margin-bottom: 1.5rem; }
.product__desc { opacity: 0.8; max-width: 640px; margin: 0 auto 2.5rem; line-height: 1.7; }
.product__mockup {
  background: rgba(242,242,242,0.1);
  border: 2px dashed rgba(242,242,242,0.3);
  border-radius: 0.75rem;
  padding: 3rem;
  max-width: 400px;
  margin: 0 auto;
  font-size: 0.875rem;
  opacity: 0.6;
}

/* ===== CONTENT CARDS ===== */
.content { background: var(--secondary); padding: 4rem 1rem; }
.content h2 { font-weight: 900; font-size: 1.5rem; margin-bottom: 0.5rem; }
.content__subtitle { color: var(--muted); margin-bottom: 2.5rem; }
.content__grid { display: grid; grid-template-columns: 1fr; gap: 1rem; margin-bottom: 2.5rem; }
.content__card {
  background: var(--background);
  border-radius: var(--radius);
  padding: 1.25rem;
  border: 1px solid var(--border);
  transition: box-shadow 0.2s;
}
.content__card:hover { box-shadow: 0 4px 12px rgba(0,0,0,0.08); }
.content__card-icon { font-size: 1.5rem; margin-bottom: 0.5rem; }
.content__card h3 { font-weight: 700; font-size: 0.875rem; margin-bottom: 0.25rem; }
.content__card p { font-size: 0.75rem; color: var(--muted); line-height: 1.5; }

/* ===== FOR WHO ===== */
.forwho { background: var(--background); padding: 4rem 1rem; }
.forwho h2 { font-weight: 900; font-size: 1.5rem; margin-bottom: 2.5rem; }
.forwho__item {
  display: flex; align-items: flex-start; gap: 0.75rem;
  font-size: 1rem; margin-bottom: 1.25rem;
}
.forwho__check {
  flex-shrink: 0;
  width: 1.75rem; height: 1.75rem;
  border-radius: 50%;
  background: var(--primary);
  color: var(--primary-foreground);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.875rem; font-weight: 700;
  margin-top: 0.125rem;
}
.forwho__box {
  background: var(--primary);
  color: var(--primary-foreground);
  border-radius: var(--radius);
  padding: 1.5rem;
  font-size: 1rem;
  line-height: 1.7;
  margin-top: 2.5rem;
}

/* ===== SOCIAL PROOF ===== */
.social { background: var(--dark-bg); color: var(--dark-fg); padding: 4rem 1rem; }
.social h2 { font-weight: 900; font-size: 1.5rem; margin-bottom: 0.5rem; }
.social__subtitle { opacity: 0.7; margin-bottom: 2.5rem; }
.social__stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-bottom: 3rem; text-align: center; }
.social__stat-value { font-family: var(--font-heading); font-weight: 900; font-size: 1.875rem; color: var(--primary); }
.social__stat-label { font-size: 0.875rem; opacity: 0.7; margin-top: 0.25rem; }
.social__testimonials { display: grid; grid-template-columns: 1fr; gap: 1rem; }
.social__card {
  background: rgba(242,242,242,0.1);
  border-radius: var(--radius);
  padding: 1.5rem;
  border: 1px solid rgba(242,242,242,0.1);
}
.social__card-img {
  background: rgba(242,242,242,0.1);
  border: 1px dashed rgba(242,242,242,0.2);
  border-radius: 0.375rem;
  height: 8rem;
  margin-bottom: 1rem;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.75rem; opacity: 0.4;
}
.social__card-text { font-size: 0.875rem; font-style: italic; opacity: 0.8; margin-bottom: 0.75rem; }
.social__card-name { font-family: var(--font-heading); font-weight: 700; font-size: 0.875rem; }
.social__card-role { font-size: 0.75rem; opacity: 0.6; }

/* ===== OFFER ===== */
.offer { background: var(--background); padding: 4rem 1rem; }
.offer h2 { font-weight: 900; font-size: 1.5rem; margin-bottom: 2.5rem; }
.offer__box { border: 2px solid var(--primary); border-radius: 0.75rem; padding: 1.5rem; }
.offer__item {
  display: flex; align-items: flex-start; gap: 0.75rem;
  font-size: 1rem; margin-bottom: 0.75rem;
}
.offer__item-icon { color: var(--success); font-weight: 700; font-size: 1.125rem; margin-top: 0.125rem; }
.offer__price { text-align: center; margin: 2rem 0 1.5rem; }
.offer__price-old { color: var(--muted); text-decoration: line-through; font-size: 1.125rem; }
.offer__price-main { font-family: var(--font-heading); font-weight: 900; font-size: 1.5rem; margin-top: 0.25rem; }
.offer__price-alt { font-family: var(--font-heading); font-weight: 700; font-size: 1.125rem; color: var(--primary); }
.offer__price-note { font-size: 0.875rem; color: var(--muted); margin-top: 0.25rem; }
.offer__instant {
  background: rgba(34,166,90,0.1);
  border: 1px solid var(--success);
  border-radius: var(--radius);
  padding: 0.75rem;
  text-align: center;
  margin-bottom: 1.5rem;
  font-weight: 600;
  color: var(--success);
}
.offer__cta-note { font-size: 0.875rem; color: var(--muted); margin-top: 0.75rem; text-align: center; }

/* ===== GUARANTEE ===== */
.guarantee { background: var(--secondary); padding: 4rem 1rem; }
.guarantee__box {
  border: 2px dashed var(--primary);
  border-radius: 0.75rem;
  padding: 1.5rem;
  text-align: center;
}
.guarantee__icon { font-size: 3rem; margin-bottom: 1rem; }
.guarantee h2 { font-weight: 900; font-size: 1.25rem; margin-bottom: 1rem; }
.guarantee p { line-height: 1.7; }

/* ===== FAQ ===== */
.faq { background: var(--background); padding: 4rem 1rem; }
.faq h2 { font-weight: 900; font-size: 1.5rem; margin-bottom: 2.5rem; }
.faq__item { border: 1px solid var(--border); border-radius: var(--radius); margin-bottom: 0.75rem; overflow: hidden; }
.faq__question {
  width: 100%;
  text-align: left;
  padding: 1rem 1.25rem;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1rem;
  display: flex; align-items: center; justify-content: space-between;
  background: var(--background);
  border: none; cursor: pointer;
  transition: background 0.2s;
}
.faq__question:hover { background: var(--secondary); }
.faq__toggle { color: var(--primary); font-size: 1.25rem; flex-shrink: 0; margin-left: 1rem; transition: transform 0.2s; }
.faq__question[aria-expanded="true"] .faq__toggle { transform: rotate(45deg); }
.faq__answer {
  display: none;
  padding: 1rem 1.25rem;
  font-size: 1rem;
  color: var(--muted);
  line-height: 1.7;
  border-top: 1px solid var(--border);
}
.faq__answer.active { display: block; }

/* ===== FINAL CTA ===== */
.final-cta { background: var(--hero-gradient); color: var(--primary-foreground); padding: 4rem 1rem; text-align: center; }
.final-cta h2 { font-weight: 900; font-size: 1.5rem; margin-bottom: 1rem; }
.final-cta__text { opacity: 0.9; max-width: 640px; margin: 0 auto 2rem; line-height: 1.7; }
.final-cta__trust { font-size: 0.875rem; opacity: 0.8; margin-top: 0.75rem; }

/* ===== FOOTER ===== */
.footer {
  background: var(--foreground);
  color: var(--dark-fg);
  padding: 2.5rem 1rem 6rem;
  text-align: center;
  font-size: 0.875rem;
}
.footer__brand { font-family: var(--font-heading); font-weight: 700; font-size: 1.125rem; margin-bottom: 0.75rem; }
.footer__copy { opacity: 0.6; margin-bottom: 0.5rem; }
.footer__legal { opacity: 0.5; font-size: 0.75rem; margin-bottom: 1rem; }
.footer__links { display: flex; justify-content: center; gap: 1rem; font-size: 0.75rem; opacity: 0.5; }
.footer__links a:hover { opacity: 0.8; }

/* ===== STICKY MOBILE CTA ===== */
.sticky-cta {
  display: none;
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 50;
  padding: 0.75rem;
  background: rgba(26,26,26,0.95);
  backdrop-filter: blur(4px);
  border-top: 1px solid rgba(255,255,255,0.1);
}
.sticky-cta .btn-cta { display: block; width: 100%; text-align: center; padding: 0.875rem; }

/* ===== RESPONSIVE ===== */
@media (max-width: 640px) {
  .sticky-cta { display: block; }
  .footer { padding-bottom: 6rem; }
}

@media (min-width: 641px) {
  .hero { padding: 6rem 1rem; }
  .hero h1 { font-size: 3rem; }
  .hero__subtitle { font-size: 1.25rem; }
  .btn-cta { font-size: 1.25rem; }

  .pain h2, .content h2, .forwho h2, .social h2, .offer h2, .faq h2, .final-cta h2 {
    font-size: 2.25rem;
  }
  .pain__item, .forwho__item, .offer__item { font-size: 1.125rem; }
  .pain__box, .forwho__box { padding: 2rem; font-size: 1.125rem; }

  .product h2 { font-size: 2.25rem; }
  .product__sub { font-size: 1.25rem; }

  .content__grid { grid-template-columns: repeat(3, 1fr); }

  .social__stat-value { font-size: 2.25rem; }
  .social__testimonials { grid-template-columns: repeat(3, 1fr); }

  .offer__box { padding: 2.5rem; }
  .offer__price-main { font-size: 1.875rem; }

  .guarantee__box { padding: 2.5rem; }
  .guarantee h2 { font-size: 1.5rem; }
}
