/*
Theme Name: MedEsport Regen
Theme URI: https://medesport.com.br
Author: MedEsport
Description: Tema exclusivo da clínica MedEsport Regen — Dr. Cláudio Lepéra. Medicina esportiva, regenerativa e ortopedia. Otimizado para SEO, GEO e campanhas de anúncios.
Version: 1.0.7
Requires PHP: 7.4
License: Proprietary
Text Domain: medesport
*/

/* =============================================
   MEDESPORT — Design System
   Premium clínico · Dark base + gold accent
   ============================================= */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;1,400&family=Manrope:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
  /* base */
  --ink: #0E0D0B;          /* near-black warm */
  --ink-2: #1A1814;        /* card on dark */
  --ink-3: #25221C;        /* border on dark */
  --cream: #F4EFE3;        /* off-white warm */
  --cream-2: #ECE5D2;
  --paper: #FAF6EC;        /* light page */
  --paper-2: #F1EBDB;

  /* gold (matches logo) */
  --gold: #C9A35C;
  --gold-hi: #E8CB8B;
  --gold-lo: #8C6B30;
  --gold-soft: oklch(78% 0.09 78);

  /* support */
  --muted: #6E665A;
  --muted-on-dark: #8C8478;
  --line: rgba(201, 163, 92, 0.18);
  --line-strong: rgba(201, 163, 92, 0.35);

  /* radii */
  --r-xs: 4px;
  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 22px;

  /* type */
  --font-display: 'Cormorant Garamond', 'Times New Roman', serif;
  --font-sans: 'Manrope', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;

  /* layout */
  --container: 1280px;
  --gutter: clamp(20px, 4vw, 56px);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  background: var(--ink);
  color: var(--cream);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; border: 0; background: transparent; color: inherit; cursor: pointer; }

/* containers */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding-inline: var(--gutter);
}

/* type utilities */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 500;
}
.eyebrow .dot {
  display: inline-block; width: 6px; height: 6px; border-radius: 50%;
  background: var(--gold); margin-right: 10px; vertical-align: middle;
  transform: translateY(-1px);
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.01em;
  text-wrap: balance;
}
h1 { font-size: clamp(44px, 6.2vw, 92px); }
h2 { font-size: clamp(34px, 4.5vw, 64px); }
h3 { font-size: clamp(24px, 2.6vw, 36px); }
h4 { font-size: clamp(18px, 1.6vw, 22px); }

.lead {
  font-size: clamp(17px, 1.4vw, 20px);
  line-height: 1.55;
  color: var(--cream);
  opacity: 0.85;
  text-wrap: pretty;
  max-width: 60ch;
}
.italic { font-style: italic; color: var(--gold-hi); }
.gold { color: var(--gold); }

/* ========== NAV ========== */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  background: rgba(14, 13, 11, 0.7);
  border-bottom: 1px solid var(--line);
}
.site-nav .row {
  display: flex; align-items: center; justify-content: space-between;
  height: 76px; gap: 32px;
}
.brand {
  display: flex; align-items: center; gap: 12px; flex-shrink: 0;
}
.brand img { height: 58px; width: auto; }
.brand-mark {
  font-family: var(--font-display);
  font-size: 22px; letter-spacing: 0.02em;
  display: flex; align-items: baseline; gap: 6px;
}
.brand-mark .gold { font-weight: 500; }
.brand-mark .sm { font-size: 11px; color: var(--muted-on-dark); letter-spacing: 0.2em; text-transform: uppercase; font-family: var(--font-mono); }

.nav-links {
  display: flex; align-items: center; gap: 36px;
  font-size: 14px; font-weight: 500;
}
.nav-links a {
  position: relative; padding: 8px 0;
  color: var(--cream); opacity: 0.85; transition: opacity .2s;
}
.nav-links a:hover, .nav-links a[aria-current="page"] { opacity: 1; }
.nav-links a[aria-current="page"]::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0;
  height: 1px; background: var(--gold);
}
.nav-links .has-menu { position: relative; }
.nav-links .has-menu > a::after { content: ' ⌄'; opacity: 0.5; font-size: 12px; }
.dropdown {
  position: absolute; top: calc(100% + 14px); left: -16px;
  min-width: 320px; padding: 16px;
  background: var(--ink-2); border: 1px solid var(--line);
  border-radius: var(--r-md);
  display: grid; gap: 4px;
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: all .18s ease;
}
.has-menu:hover .dropdown, .has-menu:focus-within .dropdown {
  opacity: 1; visibility: visible; transform: translateY(0);
}
.dropdown a {
  display: block; padding: 12px 14px; border-radius: var(--r-sm);
  font-size: 14px;
}
.dropdown a:hover { background: rgba(201, 163, 92, 0.08); }
.dropdown a .sub {
  display: block; font-size: 12px; color: var(--muted-on-dark); font-weight: 400;
  margin-top: 2px;
}

.nav-cta {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 18px; border-radius: 999px;
  background: var(--gold); color: var(--ink);
  font-weight: 600; font-size: 13px;
  transition: transform .2s, background .2s;
}
.nav-cta:hover { background: var(--gold-hi); transform: translateY(-1px); }
.nav-cta svg { width: 16px; height: 16px; }

.menu-toggle {
  display: none;
  flex-direction: column; justify-content: center; gap: 5px;
  width: 44px; height: 44px; padding: 10px;
  background: transparent; border: 1px solid var(--line-strong);
  border-radius: var(--r-sm); cursor: pointer; flex-shrink: 0;
}
.menu-toggle span {
  display: block; height: 2px; width: 100%;
  background: var(--gold); border-radius: 2px;
  transition: transform .2s ease, opacity .2s ease;
}
.menu-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle.is-open span:nth-child(2) { opacity: 0; }
.menu-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  display: none;
  border-top: 1px solid var(--line);
  background: rgba(14, 13, 11, 0.97);
  padding: 12px 24px 28px;
  max-height: calc(100vh - 64px); overflow-y: auto;
}
.mobile-menu a {
  display: block; padding: 14px 4px;
  color: var(--cream); font-size: 16px; font-weight: 500;
  border-bottom: 1px solid var(--line);
}
.mobile-menu a[aria-current="page"] { color: var(--gold-hi); }
.mobile-menu .mm-group {
  font-family: var(--font-mono); font-size: 11px;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--gold); padding: 18px 4px 6px;
}
.mobile-menu .mm-sub { padding-left: 18px; font-size: 15px; opacity: 0.9; }
.mobile-menu .mm-cta {
  margin-top: 20px; text-align: center;
  background: var(--gold); color: var(--ink);
  border-radius: 999px; padding: 14px 18px;
  border-bottom: none; font-weight: 600;
}

@media (max-width: 920px) {
  .nav-links { display: none; }
  .menu-toggle { display: inline-flex; }
  .mobile-menu:not([hidden]) { display: block; }
  .site-nav .row { height: 64px; }
  .brand img { height: 46px; }
  .site-nav .nav-cta { display: none; }
}

/* ========== BUTTONS ========== */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 22px; border-radius: 999px;
  font-weight: 600; font-size: 14px;
  transition: all .2s ease;
  cursor: pointer;
}
.btn svg { width: 16px; height: 16px; }
.btn-primary {
  background: var(--gold); color: var(--ink);
}
.btn-primary:hover { background: var(--gold-hi); transform: translateY(-1px); }
.btn-ghost {
  border: 1px solid var(--line-strong); color: var(--cream);
}
.btn-ghost:hover { border-color: var(--gold); background: rgba(201, 163, 92, 0.06); }
.btn-light {
  background: var(--ink); color: var(--cream);
}
.btn-light:hover { background: #2a2620; }

/* ========== SECTIONS ========== */
section { position: relative; }
.section { padding: clamp(80px, 10vw, 140px) 0; }
.section-sm { padding: clamp(60px, 7vw, 96px) 0; }

.section-paper { background: var(--paper); color: var(--ink); }
.section-paper h1, .section-paper h2, .section-paper h3, .section-paper h4 { color: var(--ink); }
.section-paper .lead { color: var(--muted); opacity: 1; }
.section-paper .eyebrow { color: var(--gold-lo); }
.section-paper .eyebrow .dot { background: var(--gold-lo); }

.section-cream { background: var(--cream); color: var(--ink); }
.section-cream h1, .section-cream h2, .section-cream h3, .section-cream h4 { color: var(--ink); }
.section-cream .lead { color: var(--muted); opacity: 1; }

/* ========== PLACEHOLDER (image slots) ========== */
.ph {
  position: relative;
  background:
    repeating-linear-gradient(135deg, rgba(201,163,92,0.06) 0 1px, transparent 1px 14px),
    linear-gradient(180deg, #1F1C16, #15130F);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  color: var(--muted-on-dark);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-align: center;
  padding: 24px;
  aspect-ratio: 4 / 3;
}
.ph.on-paper {
  background:
    repeating-linear-gradient(135deg, rgba(140,107,48,0.08) 0 1px, transparent 1px 14px),
    linear-gradient(180deg, #ECE5D2, #DBD2B8);
  border-color: rgba(140,107,48,0.18);
  color: rgba(46,40,28,0.55);
}
.ph::before {
  content: '';
  position: absolute; inset: 14px;
  border: 1px dashed rgba(201,163,92,0.2);
  border-radius: 8px;
  pointer-events: none;
}
.ph.on-paper::before { border-color: rgba(140,107,48,0.25); }
.ph-label {
  position: relative; z-index: 1;
  display: inline-block;
  padding: 8px 14px;
  background: rgba(14,13,11,0.7);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--gold-hi);
}
.ph.on-paper .ph-label {
  background: rgba(255,255,255,0.7);
  border-color: rgba(140,107,48,0.3);
  color: var(--gold-lo);
}
.ph.has-img { padding: 0; }
.ph.has-img::before { display: none; }
.ph.has-img img {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
  border-radius: inherit;
}

/* ========== FOOTER ========== */
.site-footer {
  background: #0A0908;
  color: var(--cream);
  padding-top: 96px;
  border-top: 1px solid var(--line);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 56px;
  padding-bottom: 64px;
}
.footer-grid h5 {
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 18px;
  font-weight: 500;
}
.footer-grid a, .footer-grid p {
  display: block;
  font-size: 14px;
  color: var(--cream);
  opacity: 0.75;
  margin-bottom: 10px;
  transition: opacity .2s;
}
.footer-grid a:hover { opacity: 1; color: var(--gold-hi); }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding: 24px 0; border-top: 1px solid var(--ink-3);
  font-size: 12px; color: var(--muted-on-dark);
  font-family: var(--font-mono); letter-spacing: 0.05em;
}
@media (max-width: 820px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
}

/* ========== HERO COMMON ========== */
.hero {
  position: relative;
  padding: clamp(60px, 8vw, 120px) 0 clamp(80px, 10vw, 140px);
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; top: -200px; right: -200px;
  width: 700px; height: 700px;
  background: radial-gradient(circle, rgba(201,163,92,0.13), transparent 60%);
  pointer-events: none;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 64px;
  align-items: center;
}
.hero-grid .hero-text { position: relative; z-index: 2; }
.hero h1 {
  margin: 22px 0 24px;
}
.hero h1 em { font-style: italic; color: var(--gold-hi); font-weight: 300; }
.hero-actions {
  display: flex; gap: 14px; flex-wrap: wrap; margin-top: 32px;
}
.hero-meta {
  display: flex; gap: 36px; margin-top: 56px; padding-top: 32px;
  border-top: 1px solid var(--line);
}
.hero-meta .m-num {
  font-family: var(--font-display);
  font-size: 36px; line-height: 1; color: var(--gold);
  font-weight: 500;
}
.hero-meta .m-label {
  font-size: 12px; color: var(--muted-on-dark);
  margin-top: 8px; max-width: 130px;
  text-wrap: pretty;
}
@media (max-width: 920px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-meta { gap: 24px; }
}

/* ========== BADGE / TAGS ========== */
.tag {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px; border-radius: 999px;
  background: rgba(201,163,92,0.08);
  border: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: 0.08em;
  color: var(--gold-hi);
  text-transform: uppercase;
}

/* ========== CARDS ========== */
.card {
  background: var(--ink-2);
  border: 1px solid var(--ink-3);
  border-radius: var(--r-md);
  padding: 32px;
  transition: border-color .2s, transform .2s;
}
.card:hover { border-color: var(--line-strong); transform: translateY(-2px); }
.card.on-paper { background: #fff; border-color: rgba(46,40,28,0.08); }

/* ========== UTILS ========== */
.divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line-strong), transparent);
  margin: 0 auto;
}
.kerning { letter-spacing: 0.18em; text-transform: uppercase; font-family: var(--font-mono); font-size: 11px; }

.fade-in {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) forwards;
}
.fade-in[data-delay="1"] { animation-delay: .08s; }
.fade-in[data-delay="2"] { animation-delay: .16s; }
.fade-in[data-delay="3"] { animation-delay: .24s; }
.fade-in[data-delay="4"] { animation-delay: .32s; }
@keyframes fadeUp {
  to { opacity: 1; transform: translateY(0); }
}

/* whatsapp floating */
.wa-float {
  position: fixed;
  bottom: 24px; right: 24px;
  z-index: 100;
  width: 56px; height: 56px;
  border-radius: 50%;
  background: #25D366;
  color: white;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 30px rgba(37, 211, 102, 0.4), 0 0 0 0 rgba(37, 211, 102, 0.5);
  animation: pulse 2.4s infinite;
  transition: transform .2s;
}
.wa-float:hover { transform: scale(1.06); }
.wa-float svg { width: 28px; height: 28px; }
@keyframes pulse {
  0% { box-shadow: 0 10px 30px rgba(37, 211, 102, 0.4), 0 0 0 0 rgba(37, 211, 102, 0.45); }
  70% { box-shadow: 0 10px 30px rgba(37, 211, 102, 0.4), 0 0 0 18px rgba(37, 211, 102, 0); }
  100% { box-shadow: 0 10px 30px rgba(37, 211, 102, 0.4), 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* Breadcrumb */
.crumbs {
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--muted-on-dark);
  display: flex; align-items: center; gap: 10px;
  flex-wrap: wrap;
}
.crumbs a { color: var(--muted-on-dark); }
.crumbs a:hover { color: var(--gold); }
.crumbs .sep { opacity: 0.5; }
.crumbs .current { color: var(--gold); }
