/*
Theme Name: Dr. Denis Aragão
Theme URI: https://drdenis-cardio-nutro.lovable.app
Author: Dr. Denis Aragão
Author URI: https://drdenis-cardio-nutro.lovable.app
Description: Tema institucional para o site do Dr. Denis Aragão — Cardiologista e Nutrólogo. Layout de landing page com hero, exames, autoridade, telemedicina, locais e CTAs para WhatsApp.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: drdenis
Tags: one-page, landing-page, health, custom-colors, custom-menu, featured-images, threaded-comments
*/

/* ---------- Tokens ---------- */
:root {
  --cream: #f6f1e7;
  --moss-deep: #2f4a3a;
  --moss-darker: #1f3327;
  --gold: #c9a84c;
  --foreground: #1a1a1a;
  --muted: #6b6b6b;
  --border: #e6e1d4;
  --wa: #25D366;
  --wa-hover: #1ebe5d;
  --font-serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--foreground);
  background: var(--cream);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--font-serif); font-weight: 600; line-height: 1.1; margin: 0; }
p { margin: 0; }
ul { list-style: none; padding: 0; margin: 0; }

/* ---------- Layout helpers ---------- */
.container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }
.container-md { max-width: 960px; margin: 0 auto; padding: 0 1.5rem; }
.container-sm { max-width: 720px; margin: 0 auto; padding: 0 1.5rem; }
.text-center { text-align: center; }

/* ---------- Urgency bar ---------- */
.urgency-bar {
  background: var(--gold);
  color: var(--moss-darker);
  text-align: center;
  font-size: 0.875rem;
  padding: 0.625rem 1rem;
  font-weight: 500;
}

/* ---------- Hero ---------- */
.hero .hero-grid,
.hero .hero-photo,
.hero .hero-copy {
  min-width: 0;
}
.hero {
  background: var(--moss-deep);
  color: var(--cream);
  position: relative;
  overflow: hidden;
}
@media (min-width: 1024px) {
  .hero { background: linear-gradient(135deg, var(--moss-deep), var(--moss-deep) 60%, var(--moss-darker)); }
}
.hero-inner { padding: 2rem 1.5rem 0; max-width: 1200px; margin: 0 auto; }
.hero-brand { display: flex; align-items: center; gap: 1rem; margin-bottom: 2rem; }
.hero-brand img { height: 5rem; width: auto; }
.hero-brand .brand-name { font-weight: 700; letter-spacing: 0.04em; font-size: 1.25rem; }
.hero-grid { display: grid; grid-template-columns: 1fr; gap: 2rem; align-items: end; }
@media (min-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr 1fr; gap: 4rem; }
}
.hero-photo { display: flex; justify-content: center; align-items: end; }
.hero-photo img { max-width: 27rem; filter: drop-shadow(0 25px 35px rgba(0,0,0,0.45)); }
.hero-content { padding-bottom: 3rem; }
.hero h1 {
  font-size: clamp(2.25rem, 5vw, 3.75rem);
  margin-bottom: 1.5rem;
  overflow-wrap: break-word;
  word-break: break-word;
}
.hero h1 .accent { color: var(--gold); font-style: italic; }
.hero .lead { font-size: 1.125rem; color: rgba(246,241,231,0.85); margin-bottom: 1.25rem; }
.hero .sub { color: rgba(246,241,231,0.7); margin-bottom: 2rem; }
.hero-cta { display: flex; flex-direction: column; gap: 0.75rem; margin-bottom: 2rem; }
@media (min-width: 640px) { .hero-cta { flex-direction: row; } }
.hero-meta { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; font-size: 0.875rem; color: rgba(246,241,231,0.8); }
.hero-meta span::before { content: "✓ "; color: var(--gold); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 1rem 1.75rem;
  font-size: 0.875rem; font-weight: 500;
  letter-spacing: 0.05em; text-transform: uppercase;
  border-radius: 2px;
  transition: all 0.3s ease;
  cursor: pointer;
  border: 0;
  will-change: transform;
}
.btn:hover { transform: scale(1.04); }
.btn-primary {
  background: var(--wa); color: #fff;
  box-shadow: 0 8px 24px -8px rgba(37,211,102,0.55);
}
.btn-primary:hover {
  background: var(--wa-hover);
  box-shadow: 0 0 0 4px rgba(37,211,102,0.18), 0 18px 44px -10px rgba(37,211,102,0.85);
}
.btn-outline {
  background: transparent; color: var(--cream);
  border: 1px solid rgba(246,241,231,0.4);
}
.btn-outline:hover {
  background: rgba(246,241,231,0.1);
  border-color: var(--wa); color: var(--wa);
  box-shadow: 0 0 0 4px rgba(37,211,102,0.15), 0 14px 36px -12px rgba(37,211,102,0.7);
}
.btn-block { display: flex; width: 100%; }
.btn-ghost {
  display: inline-flex; align-items: center; justify-content: center; width: 100%;
  padding: 0.75rem 1.25rem; font-size: 0.875rem;
  border: 1px solid var(--moss-deep); color: var(--moss-deep);
  border-radius: 2px; text-transform: uppercase; letter-spacing: 0.05em;
  transition: background 0.2s, color 0.2s;
}
.btn-ghost:hover { background: var(--moss-deep); color: var(--cream); }

/* ---------- Credentials bar ---------- */
.credentials {
  background: #fff; border-bottom: 1px solid var(--border);
}
.credentials-grid {
  display: grid; grid-template-columns: 1fr; max-width: 1100px; margin: 0 auto;
  padding: 2rem 1.5rem;
}
@media (min-width: 768px) { .credentials-grid { grid-template-columns: repeat(3, 1fr); } }
.credentials-item { text-align: center; padding: 1rem 1.5rem; border-top: 1px solid var(--border); }
.credentials-item:first-child { border-top: 0; }
@media (min-width: 768px) {
  .credentials-item { border-top: 0; border-left: 1px solid var(--border); }
  .credentials-item:first-child { border-left: 0; }
}
.credentials-item .label { font-family: var(--font-serif); font-size: 1.5rem; color: var(--gold); }
.credentials-item .text { font-size: 0.875rem; color: var(--muted); margin-top: 0.25rem; }

/* ---------- Sections ---------- */
.section { padding: 5rem 1.5rem; }
@media (min-width: 1024px) { .section { padding: 7rem 1.5rem; } }
.section-white { background: #fff; }
.section-moss { background: var(--moss-deep); color: var(--cream); }
.section-darker { background: var(--moss-darker); color: var(--cream); }

.section-title {
  font-family: var(--font-serif);
  font-size: clamp(1.875rem, 4vw, 3rem);
  color: var(--moss-darker);
  line-height: 1.15;
}
.section-title.light { color: var(--cream); }
.section-eyebrow {
  font-size: 0.75rem; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 0.75rem;
}

/* ---------- Pain list ---------- */
.pain-list { display: grid; gap: 1rem; margin-bottom: 2.5rem; }
.pain-list li {
  display: flex; gap: 1rem; align-items: flex-start;
  background: #fff; border: 1px solid var(--border);
  padding: 1.25rem; border-radius: 2px;
}
.pain-list li::before {
  content: "⚠"; color: var(--gold); font-size: 1.125rem; flex: 0 0 auto;
}
.pain-cta-text {
  text-align: center; font-family: var(--font-serif); font-style: italic;
  color: var(--moss-deep); font-size: 1.125rem; margin-bottom: 2rem;
}

/* ---------- Exams ---------- */
.exams-grid { display: grid; grid-template-columns: 1fr; gap: 1.25rem; margin-bottom: 1.5rem; }
@media (min-width: 640px) { .exams-grid { grid-template-columns: repeat(2, 1fr); } }
.exam-card {
  background: rgba(246,241,231,0.4); border: 1px solid var(--border);
  border-radius: 2px; overflow: hidden;
  transition: border-color 0.2s;
}
.exam-card:hover { border-color: rgba(201,168,76,0.6); }
.exam-card img { width: 100%; aspect-ratio: 16/10; object-fit: cover; }
.exam-card .body { padding: 1.5rem; }
.exam-card h3 { font-size: 1.25rem; color: var(--moss-darker); margin-bottom: 0.25rem; }
.exam-card p { font-size: 0.875rem; color: var(--muted); }

.featured-box {
  border: 2px solid var(--moss-deep);
  background: rgba(47,74,58,0.05);
  padding: 2rem; border-radius: 2px; margin-bottom: 2rem;
}
.featured-box h3 { font-size: 1.5rem; color: var(--moss-darker); margin: 0.5rem 0 0.75rem; }

/* ---------- Authority ---------- */
.authority-grid {
  display: grid; grid-template-columns: 1fr; gap: 3rem; align-items: center;
}
@media (min-width: 768px) { .authority-grid { grid-template-columns: 260px 1fr; } }
.doctor-avatar {
  width: 14rem; height: 14rem; border-radius: 50%;
  overflow: hidden; border: 2px solid var(--gold);
  box-shadow: 0 10px 25px rgba(0,0,0,0.15); margin: 0 auto;
}
.doctor-avatar img { width: 100%; height: 100%; object-fit: cover; }
.check-list li {
  display: flex; gap: 0.75rem; align-items: flex-start; margin-bottom: 0.75rem;
}
.check-list li::before { content: "✓"; color: var(--moss-deep); font-weight: 700; }

/* ---------- Telemedicine ---------- */
.tele-badge {
  display: inline-block; font-size: 0.75rem; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--gold);
  border: 1px solid rgba(201,168,76,0.4);
  padding: 0.25rem 0.75rem; border-radius: 999px; margin-bottom: 1.25rem;
}
.tele-list li {
  display: flex; gap: 0.75rem; align-items: flex-start;
  color: rgba(246,241,231,0.9); margin-bottom: 0.75rem;
}
.tele-list li::before { content: "✓"; color: var(--gold); font-weight: 700; }
.tele-quote {
  font-family: var(--font-serif); font-style: italic; font-size: 1.25rem;
  color: var(--gold); margin: 2rem 0;
}

/* ---------- Locations ---------- */
.locations-grid { display: grid; grid-template-columns: 1fr; gap: 1.5rem; margin-bottom: 2rem; }
@media (min-width: 768px) { .locations-grid { grid-template-columns: repeat(2, 1fr); } }
.location-card {
  background: #fff; border: 1px solid var(--border);
  border-radius: 2px; overflow: hidden;
}
.location-card img { width: 100%; aspect-ratio: 16/10; object-fit: cover; }
.location-card .body { padding: 1.75rem; }
.location-card .pin {
  display: flex; align-items: center; gap: 0.5rem;
  color: var(--gold); font-size: 0.75rem; letter-spacing: 0.2em;
  text-transform: uppercase; margin-bottom: 0.5rem;
}
.location-card h3 { font-size: 1.5rem; color: var(--moss-darker); margin-bottom: 0.25rem; }
.location-card .meta { font-size: 0.875rem; color: var(--muted); margin-bottom: 0.25rem; }

/* ---------- Final CTA ---------- */
.final-cta { text-align: center; }
.final-cta h2 {
  font-size: clamp(2.25rem, 5vw, 3.75rem); color: var(--gold); margin-bottom: 1.5rem;
}
.final-cta p.lead { color: rgba(246,241,231,0.8); font-size: 1.125rem; margin-bottom: 2.5rem; }
.final-cta .footnote { color: rgba(246,241,231,0.6); font-size: 0.875rem; margin-top: 1.25rem; letter-spacing: 0.04em; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--moss-darker); color: rgba(246,241,231,0.7);
  border-top: 1px solid rgba(246,241,231,0.1);
  padding: 3rem 1.5rem;
}
.footer-row {
  display: flex; flex-direction: column; gap: 2rem;
  justify-content: space-between; align-items: flex-start;
  max-width: 1200px; margin: 0 auto;
}
@media (min-width: 768px) { .footer-row { flex-direction: row; align-items: center; } }
.footer-brand { font-family: var(--font-serif); font-size: 1.5rem; color: var(--gold); margin-bottom: 0.25rem; }
.footer-social { display: flex; gap: 1rem; }
.footer-social a {
  width: 2.75rem; height: 2.75rem; border-radius: 50%;
  border: 1px solid rgba(246,241,231,0.2);
  display: inline-flex; align-items: center; justify-content: center;
  transition: color 0.2s, border-color 0.2s;
}
.footer-social a:hover { border-color: var(--gold); color: var(--gold); }
.footer-bottom {
  max-width: 1200px; margin: 2rem auto 0; padding-top: 1.5rem;
  border-top: 1px solid rgba(246,241,231,0.1);
  font-size: 0.75rem; color: rgba(246,241,231,0.5);
  display: flex; flex-direction: column; gap: 0.5rem; justify-content: space-between;
}
@media (min-width: 640px) { .footer-bottom { flex-direction: row; } }

/* ---------- WordPress required classes (for theme review) ---------- */
.alignleft   { float: left; margin: 0.5em 1em 0.5em 0; }
.alignright  { float: right; margin: 0.5em 0 0.5em 1em; }
.aligncenter { display: block; margin-left: auto; margin-right: auto; }
.screen-reader-text {
  position: absolute !important; clip: rect(1px,1px,1px,1px);
  width: 1px; height: 1px; overflow: hidden;
}
.sticky, .gallery-caption, .bypostauthor, .wp-caption, .wp-caption-text { /* required */ }
