/* ============================================================
   Dr. Francisco Carlos – Urologista · Landing Page
   Paleta: branco + azul-petróleo (confiança médica) + WhatsApp
   ============================================================ */

:root {
  --teal-900: #0A4F49;
  --teal-700: #0E6E66;
  --teal-600: #12857B;
  --teal-100: #DDEEEB;
  --teal-050: #F2F8F7;
  --ink: #1E2A32;
  --ink-soft: #51616C;
  --line: #E3EBE9;
  --white: #FFFFFF;
  --wa-green: #1EBE5D;
  --wa-green-dark: #17A34E;
  --radius: 18px;
  --shadow-sm: 0 1px 3px rgba(16, 42, 39, 0.08);
  --shadow-md: 0 10px 30px rgba(16, 42, 39, 0.10);
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-display: "Lora", Georgia, "Times New Roman", serif;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

body {
  font-family: var(--font-body);
  font-size: 1.125rem; /* 18px — público mais velho lê melhor */
  line-height: 1.7;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: var(--teal-700); }

:focus-visible {
  outline: 3px solid var(--teal-600);
  outline-offset: 3px;
  border-radius: 4px;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* ---------- Layout ---------- */

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 4vw, 2rem);
}

.container-narrow { max-width: 800px; }

.section { padding: clamp(3.5rem, 8vw, 5.5rem) 0; }

.section-alt { background: var(--teal-050); }

/* ---------- Tipografia ---------- */

h1, h2, h3 {
  font-family: var(--font-display);
  color: var(--ink);
  line-height: 1.2;
  text-wrap: balance;
}

h1 { font-size: clamp(2.1rem, 5vw, 3.1rem); margin: 0.5rem 0 1rem; }

h2 { font-size: clamp(1.7rem, 3.5vw, 2.3rem); margin: 0.5rem 0 1rem; }

h3 { font-size: 1.25rem; margin-bottom: 0.5rem; }

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--teal-600);
}

.lead {
  font-size: clamp(1.15rem, 2vw, 1.3rem);
  color: var(--ink-soft);
  max-width: 34em;
}

.section-intro {
  color: var(--ink-soft);
  max-width: 46em;
  margin-bottom: 2.5rem;
}

/* ---------- Botões ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.85rem 1.6rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 1.05rem;
  text-decoration: none;
  transition: background 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
}

.btn .icon { width: 1.35em; height: 1.35em; fill: currentColor; flex-shrink: 0; }

.btn-whatsapp {
  background: var(--wa-green);
  color: #fff;
  box-shadow: var(--shadow-sm);
}

.btn-whatsapp:hover {
  background: var(--wa-green-dark);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-ghost {
  background: transparent;
  color: var(--teal-700);
  border: 2px solid var(--teal-100);
}

.btn-ghost:hover { border-color: var(--teal-600); background: var(--teal-050); }

.btn-lg { padding: 1.05rem 2.2rem; font-size: 1.15rem; }

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  min-height: 76px;
}

.brand { text-decoration: none; line-height: 1.25; }

.brand-name {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--ink);
}

.brand-sub {
  display: block;
  font-size: 0.8rem;
  color: var(--ink-soft);
  letter-spacing: 0.02em;
}

.site-nav {
  display: flex;
  gap: 1.4rem;
  margin-left: auto;
}

.site-nav a {
  text-decoration: none;
  color: var(--ink-soft);
  font-weight: 600;
  font-size: 0.98rem;
}

.site-nav a:hover { color: var(--teal-700); }

.btn-header { padding: 0.6rem 1.2rem; font-size: 0.98rem; }

@media (max-width: 860px) {
  .site-nav { display: none; }
  .btn-header { margin-left: auto; }
}

/* ---------- Hero ---------- */

.hero {
  background: linear-gradient(180deg, var(--teal-050) 0%, var(--white) 100%);
  padding: clamp(3rem, 7vw, 5rem) 0 clamp(2.5rem, 6vw, 4.5rem);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin: 1.8rem 0;
}

.hero-badges {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.hero-badges li {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.35rem 0.95rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--teal-900);
  box-shadow: var(--shadow-sm);
}

.photo-card {
  background: linear-gradient(160deg, #E9F4F2 0%, #CDE5E0 100%);
  border-radius: 28px;
  padding: clamp(0.9rem, 2vw, 1.4rem);
  box-shadow: var(--shadow-md);
  transform: rotate(1.2deg);
}

.photo-card img {
  border-radius: 18px;
  transform: rotate(-1.2deg);
  height: auto;
}

@media (max-width: 820px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-photo { order: -1; max-width: 340px; margin: 0 auto; }
}

/* ---------- Cards (o exame) ---------- */

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.4rem;
}

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.8rem 1.6rem;
  box-shadow: var(--shadow-sm);
}

.card p { color: var(--ink-soft); font-size: 1rem; }

.card-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--teal-050);
  color: var(--teal-700);
  display: grid;
  place-items: center;
  margin-bottom: 1.1rem;
}

.card-icon svg { width: 28px; height: 28px; }

/* ---------- Sobre ---------- */

.about-grid {
  display: grid;
  grid-template-columns: 0.7fr 1.3fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.about-photo {
  max-width: 320px;
}

.about-photo img {
  border-radius: 22px;
  box-shadow: var(--shadow-md);
  height: auto;
}

.about-grid p { color: var(--ink-soft); margin-bottom: 1rem; }

.checklist {
  list-style: none;
  margin-top: 1.4rem;
  display: grid;
  gap: 0.55rem;
}

.checklist li {
  padding-left: 2rem;
  position: relative;
  font-weight: 600;
  color: var(--ink);
}

.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.32em;
  width: 1.15rem;
  height: 1.15rem;
  border-radius: 50%;
  background: var(--teal-700);
  -webkit-mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill="none" stroke="black" stroke-width="3" stroke-linecap="round" stroke-linejoin="round" d="M20 6L9 17l-5-5"/></svg>') center / contain no-repeat;
  mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill="none" stroke="black" stroke-width="3" stroke-linecap="round" stroke-linejoin="round" d="M20 6L9 17l-5-5"/></svg>') center / contain no-repeat;
}

@media (max-width: 720px) {
  .about-grid { grid-template-columns: 1fr; }
  .about-photo { margin: 0 auto; max-width: 260px; }
}

/* ---------- Horários ---------- */

.schedule-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.4rem;
  max-width: 760px;
}

.schedule-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.8rem 1.6rem;
  background: var(--white);
  box-shadow: var(--shadow-sm);
}

.schedule-highlight {
  border: 2px solid var(--teal-600);
  background: var(--teal-050);
}

.schedule-days {
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--teal-900);
}

.schedule-time { color: var(--ink-soft); }

.schedule-note {
  margin-top: 1.6rem;
  color: var(--ink-soft);
}

/* ---------- Localização ---------- */

.location-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: start;
}

address { font-style: normal; margin-bottom: 1rem; }

address p { margin-bottom: 0.15rem; }

.location-phones {
  margin-bottom: 1.4rem;
  font-weight: 600;
  line-height: 2;
}

.location-phones a { text-decoration: none; }

.location-map iframe {
  width: 100%;
  height: 340px;
  border: 0;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

@media (max-width: 720px) {
  .location-grid { grid-template-columns: 1fr; }
}

/* ---------- FAQ ---------- */

.faq-item {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--white);
  margin-top: 0.9rem;
  box-shadow: var(--shadow-sm);
}

.faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 1.15rem 3.2rem 1.15rem 1.4rem;
  font-weight: 600;
  position: relative;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 1.3rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--teal-600);
  transition: transform 0.2s ease;
}

.faq-item[open] summary::after { transform: translateY(-50%) rotate(45deg); }

.faq-item p {
  padding: 0 1.4rem 1.3rem;
  color: var(--ink-soft);
}

/* ---------- CTA final ---------- */

.cta-final {
  background: linear-gradient(160deg, var(--teal-900) 0%, var(--teal-700) 100%);
  text-align: center;
}

.cta-final h2 { color: #fff; }

.cta-final p { color: #D7EAE7; margin-bottom: 1.8rem; }

/* ---------- Footer ---------- */

.site-footer {
  background: #0B2E2B;
  color: #BFD9D5;
  font-size: 0.95rem;
  padding: 3rem 0 2rem;
}

.site-footer a { color: #fff; text-decoration: none; }

.site-footer strong { color: #fff; }

.footer-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  padding-bottom: 1.8rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  margin-bottom: 1.4rem;
}

.footer-legal {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: #8FB5B0;
}

@media (max-width: 640px) {
  .footer-inner { grid-template-columns: 1fr; }
  .footer-legal { flex-direction: column; }
}

/* ---------- WhatsApp flutuante ---------- */

.whatsapp-fab {
  position: fixed;
  right: 1.3rem;
  bottom: 1.3rem;
  z-index: 60;
  width: 62px;
  height: 62px;
  border-radius: 50%;
  background: var(--wa-green);
  display: grid;
  place-items: center;
  box-shadow: 0 8px 24px rgba(23, 163, 78, 0.45);
  transition: transform 0.15s ease, background 0.2s ease;
}

.whatsapp-fab:hover { transform: scale(1.07); background: var(--wa-green-dark); }

.whatsapp-fab svg { width: 34px; height: 34px; }
