/* ============================================
   Dr. Mauro Costa Urologia — LP HoLEP
   ============================================ */

:root {
  --background: 210 30% 98%;
  --foreground: 208 32% 16%;
  --card: 0 0% 100%;
  --primary: 203 62% 27%;
  --primary-dark: 203 62% 20%;
  --primary-foreground: 210 40% 98%;
  --secondary: 205 22% 94%;
  --muted: 205 18% 95%;
  --muted-foreground: 210 8% 40%;
  --accent: 196 58% 40%;
  --border: 205 18% 88%;
  --radius: 0.9rem;

  --c-bg: hsl(var(--background));
  --c-fg: hsl(var(--foreground));
  --c-card: hsl(var(--card));
  --c-primary: hsl(var(--primary));
  --c-primary-dark: hsl(var(--primary-dark));
  --c-primary-fg: hsl(var(--primary-foreground));
  --c-secondary: hsl(var(--secondary));
  --c-muted: hsl(var(--muted));
  --c-muted-fg: hsl(var(--muted-foreground));
  --c-accent: hsl(var(--accent));
  --c-border: hsl(var(--border));

  --container-w: 1120px;
  --container-narrow-w: 760px;
  --shadow-sm: 0 1px 2px rgba(16, 35, 51, 0.06);
  --shadow-md: 0 8px 24px rgba(16, 35, 51, 0.08);
  --shadow-lg: 0 20px 45px rgba(16, 35, 51, 0.12);
  --shadow-btn: 0 1px 1px hsl(var(--accent) / 0.35), 0 10px 24px -6px hsl(var(--primary) / 0.45);
  --shadow-btn-hover: 0 1px 1px hsl(var(--accent) / 0.4), 0 16px 32px -6px hsl(var(--primary) / 0.55);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--c-fg);
  background: var(--c-bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

.container {
  max-width: var(--container-w);
  margin: 0 auto;
  padding: 0 24px;
}
.container-narrow {
  max-width: var(--container-narrow-w);
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--c-primary);
  color: var(--c-primary-fg);
  padding: 12px 20px;
  z-index: 200;
}
.skip-link:focus { left: 16px; top: 16px; }

h1, h2, h3 {
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--c-fg);
  margin: 0;
}

.icon { width: 18px; height: 18px; flex-shrink: 0; }

/* ---------- Buttons ---------- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 24px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px) scale(1.015); }
.btn:active { transform: translateY(0) scale(0.98); }

.btn-primary {
  background: var(--c-primary);
  color: var(--c-primary-fg);
  box-shadow: var(--shadow-btn);
  animation: btn-pulse 2.6s ease-in-out infinite;
}
.btn-primary:hover {
  background: var(--c-primary-dark);
  box-shadow: var(--shadow-btn-hover);
  animation-play-state: paused;
}

.btn-outline {
  background: transparent;
  color: var(--c-primary);
  border-color: var(--c-border);
}
.btn-outline:hover { background: var(--c-secondary); border-color: var(--c-primary); }

.btn-lg { padding: 16px 30px; font-size: 1rem; }

.btn-header { padding: 11px 20px; font-size: 0.9rem; animation-duration: 3.2s; }

.icon-arrow { transition: transform 0.15s ease; }
.btn:hover .icon-arrow { transform: translateX(3px); }

@keyframes btn-pulse {
  0%, 100% { box-shadow: var(--shadow-btn); }
  50% { box-shadow: 0 1px 1px hsl(var(--accent) / 0.35), 0 10px 30px -4px hsl(var(--primary) / 0.65), 0 0 0 6px hsl(var(--primary) / 0.08); }
}

@media (prefers-reduced-motion: reduce) {
  .btn-primary { animation: none; }
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--c-border);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  padding-bottom: 14px;
}
.logo img { height: 52px; width: auto; }

/* ---------- Hero ---------- */
.hero {
  padding: 64px 0 72px;
  background: linear-gradient(180deg, hsl(var(--secondary)) 0%, var(--c-bg) 60%);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 56px;
  align-items: center;
}
.badge {
  display: inline-block;
  background: var(--c-card);
  color: var(--c-primary);
  border: 1px solid var(--c-border);
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  margin-bottom: 14px;
}
.eyebrow-plain {
  color: var(--c-muted-fg);
  font-size: 0.95rem;
  margin: 0 0 14px;
}
.hero h1 {
  font-size: clamp(2.1rem, 4vw, 3rem);
  line-height: 1.12;
  margin-bottom: 22px;
}
.lead {
  font-size: 1.1rem;
  color: var(--c-fg);
  opacity: 0.85;
  margin: 0 0 20px;
  max-width: 60ch;
}
.hero-doctor-note {
  font-size: 0.98rem;
  color: var(--c-muted-fg);
  border-left: 3px solid var(--c-accent);
  padding-left: 16px;
  margin: 0 0 32px;
  max-width: 58ch;
}
.hero-subtext {
  margin: 14px 0 0;
  font-size: 0.85rem;
  color: var(--c-muted-fg);
}
.hero-image img {
  border-radius: 1.5rem;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 2 / 3;
  object-fit: cover;
  width: 100%;
}

/* ---------- Sections ---------- */
.section { padding: 88px 0; }
.section-alt { background: var(--c-secondary); }

.section-head { max-width: 720px; margin: 0 0 48px; }
.section-head-center { margin-left: auto; margin-right: auto; max-width: 100%; }
.eyebrow {
  display: block;
  color: var(--c-accent);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  margin-bottom: 12px;
}
.section-head h2 {
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  line-height: 1.2;
  margin-bottom: 16px;
}
.section-lead {
  font-size: 1.05rem;
  color: var(--c-muted-fg);
  margin: 0;
}

/* ---------- Symptoms ---------- */
.symptom-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 40px;
}
.symptom-card {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: var(--c-card);
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  padding: 22px;
  font-weight: 500;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}
.symptom-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
  border-color: hsl(var(--primary) / 0.25);
}
.symptom-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  background: var(--c-secondary);
  color: var(--c-primary);
  display: flex;
  align-items: center;
  justify-content: center;
}
.symptom-icon svg { width: 20px; height: 20px; }

.symptom-note {
  background: var(--c-card);
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  padding: 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.symptom-note p { margin: 0; max-width: 60ch; color: var(--c-fg); }

/* ---------- HoLEP explanation ---------- */
.text-block {
  max-width: 760px;
  margin-bottom: 48px;
}
.text-block p {
  margin: 0 0 18px;
  color: var(--c-fg);
  opacity: 0.9;
}

.steps-title {
  display: block;
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  color: var(--c-primary);
  text-transform: uppercase;
  margin-bottom: 20px;
}
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.step-card {
  background: var(--c-card);
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.step-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: var(--c-primary);
  color: var(--c-primary-fg);
  font-weight: 700;
  margin-bottom: 14px;
}
.step-card h3 { font-size: 1.05rem; margin-bottom: 8px; }
.step-card p { margin: 0; color: var(--c-muted-fg); font-size: 0.95rem; }

/* ---------- Benefits ---------- */
.benefit-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.benefit-card {
  background: var(--c-card);
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.15s ease, transform 0.15s ease;
}
.benefit-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.benefit-icon {
  width: 46px;
  height: 46px;
  border-radius: 999px;
  background: var(--c-secondary);
  color: var(--c-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}
.benefit-icon svg { width: 22px; height: 22px; }
.benefit-card h3 { font-size: 1.02rem; margin-bottom: 8px; }
.benefit-card p { margin: 0; color: var(--c-muted-fg); font-size: 0.93rem; }

/* ---------- Fears ---------- */
.fear-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-bottom: 48px;
}
.fear-card {
  background: var(--c-card);
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.fear-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.fear-card h3 { font-size: 1.2rem; margin-bottom: 14px; color: var(--c-primary); }
.fear-card p { margin: 0 0 14px; color: var(--c-fg); opacity: 0.9; }
.fear-card p:last-child { margin-bottom: 0; }

.tech-figure {
  margin: 0;
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
}
.tech-figure img {
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  margin-bottom: 20px;
}
.tech-figure figcaption {
  color: var(--c-muted-fg);
  font-size: 0.95rem;
  max-width: 50ch;
  margin: 0 auto;
}

/* ---------- Credentials ---------- */
.credential-list {
  display: grid;
  gap: 16px;
  max-width: 780px;
  margin-bottom: 32px;
}
.credential-list li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  font-size: 1.02rem;
}
.check-icon {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  border-radius: 999px;
  background: var(--c-accent);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
}
.check-icon svg { width: 15px; height: 15px; }
.closing-note {
  font-weight: 600;
  color: var(--c-primary);
  font-size: 1.05rem;
  max-width: 640px;
  margin: 0;
}

/* ---------- Testimonials ---------- */
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-bottom: 40px;
}
.testimonial-card {
  background: var(--c-card);
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  padding: 28px;
  margin: 0;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.testimonial-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.testimonial-card p {
  font-size: 1.05rem;
  margin: 0 0 14px;
  color: var(--c-fg);
}
.testimonial-card cite {
  font-style: normal;
  color: var(--c-muted-fg);
  font-size: 0.9rem;
}
.rating-block {
  text-align: center;
}
.stars { color: #f5b400; font-size: 1.4rem; letter-spacing: 4px; margin-bottom: 6px; }
.rating-text { font-weight: 600; margin: 0 0 18px; }

/* ---------- FAQ ---------- */
.accordion {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.accordion-item {
  background: var(--c-card);
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.accordion-item:has(.accordion-trigger[aria-expanded="true"]) {
  border-color: hsl(var(--primary) / 0.35);
  box-shadow: var(--shadow-sm);
}
.accordion-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: none;
  border: none;
  padding: 20px 22px;
  font-family: inherit;
  font-size: 1.02rem;
  font-weight: 600;
  color: var(--c-fg);
  cursor: pointer;
  text-align: left;
  transition: background 0.15s ease;
}
.accordion-trigger:hover { background: hsl(var(--secondary) / 0.6); }
.chevron { width: 20px; height: 20px; color: var(--c-primary); transition: transform 0.2s ease; flex-shrink: 0; }
.accordion-trigger[aria-expanded="true"] .chevron { transform: rotate(180deg); }
.accordion-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}
.accordion-panel p {
  margin: 0;
  padding: 0 22px 20px;
  color: var(--c-muted-fg);
}

/* ---------- Final CTA ---------- */
.cta-final {
  background: var(--c-primary);
  color: var(--c-primary-fg);
}
.cta-final-inner {
  text-align: center;
  max-width: 680px;
}
.cta-final h2 { color: #fff; font-size: clamp(1.7rem, 3vw, 2.2rem); margin-bottom: 16px; }
.cta-final p { color: hsl(210 30% 92%); margin: 0 0 32px; font-size: 1.05rem; }
.cta-final .btn-primary {
  background: #fff;
  color: var(--c-primary);
}
.cta-final .btn-primary:hover { background: hsl(210 30% 94%); }

/* ---------- Footer ---------- */
.site-footer {
  background: hsl(208 32% 12%);
  color: hsl(210 20% 85%);
  padding: 56px 0 24px;
  font-size: 0.92rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1.4fr;
  gap: 32px;
  padding-bottom: 32px;
  border-bottom: 1px solid hsl(208 20% 22%);
}
.footer-heading {
  display: block;
  color: #fff;
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  margin-bottom: 12px;
}
.footer-col p { margin: 0 0 6px; }
.footer-col a:hover { color: #fff; }
.footer-bottom { padding-top: 20px; opacity: 0.7; font-size: 0.85rem; }

/* ---------- WhatsApp float ---------- */
.whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 56px;
  height: 56px;
  background: #25D366;
  color: #fff;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-lg);
  z-index: 90;
  transition: transform 0.15s ease;
  animation: wa-pulse 2.4s ease-in-out infinite;
}
.whatsapp-float:hover { transform: scale(1.1); animation-play-state: paused; }
.whatsapp-float svg { width: 28px; height: 28px; }

@keyframes wa-pulse {
  0%, 100% { box-shadow: var(--shadow-lg), 0 0 0 0 rgba(37, 211, 102, 0.5); }
  50% { box-shadow: var(--shadow-lg), 0 0 0 10px rgba(37, 211, 102, 0); }
}

@media (prefers-reduced-motion: reduce) {
  .whatsapp-float { animation: none; }
}

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

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-image { max-width: 420px; margin: 0 auto; }
  .symptom-grid { grid-template-columns: repeat(2, 1fr); }
  .steps-grid { grid-template-columns: 1fr; }
  .benefit-grid { grid-template-columns: repeat(2, 1fr); }
  .fear-grid { grid-template-columns: 1fr; }
  .testimonial-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-col-wide { grid-column: span 2; }
}

@media (max-width: 640px) {
  .container { padding: 0 20px; }
  .hero { padding: 32px 0 44px; }
  .hero-grid { gap: 32px; }
  .hero h1 { font-size: 2rem; margin-bottom: 18px; }
  .lead { font-size: 1.02rem; }
  .hero-doctor-note { margin-bottom: 26px; }
  .hero-image { max-width: 100%; }
  .hero-cta { display: flex; flex-direction: column; align-items: flex-start; }
  .hero-cta .btn { width: 100%; justify-content: center; }
  .section { padding: 52px 0; }
  .section-head { margin-bottom: 32px; }
  .section-head h2 { font-size: 1.5rem; }
  .symptom-grid { grid-template-columns: 1fr; gap: 14px; }
  .benefit-grid { grid-template-columns: 1fr; gap: 14px; }
  .fear-card, .step-card, .testimonial-card, .symptom-note { padding: 22px; }
  .header-inner { padding-top: 12px; padding-bottom: 12px; }
  .btn-header { padding: 9px 14px; font-size: 0.8rem; gap: 6px; }
  .btn-header .icon { width: 15px; height: 15px; }
  .logo img { height: 38px; }
  .symptom-note { flex-direction: column; align-items: stretch; text-align: left; }
  .symptom-note .btn { justify-content: center; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-col-wide { grid-column: span 1; }
  .cta-final .btn { width: 100%; justify-content: center; }
  .whatsapp-float { width: 52px; height: 52px; bottom: 18px; right: 18px; }
}
