/*
Theme Name: Dr. Guilherme Stiirmer — Fertilidade Masculina
Theme URI: https://drguilhermestiirmer.com.br
Author: Dr. Guilherme Stiirmer
Description: Tema landing page de alta conversao (CRO) para fertilidade masculina. Estetica High-End Medical, navy profundo #060e18 com detalhes dourados e tipografia serifada editorial.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
Text Domain: gstiirmer
*/

/* ============================================================
   TOKENS
   ============================================================ */
:root {
  --royal: #060e18;
  --royal-deep: #03080f;
  --royal-soft: #14202f;
  --steel: #6c7c93;
  --ash: #b3b3b3;
  --gold: #b08833;
  --gold-light: #d9b45c;

  --bg: #ffffff;
  --surface: #f7f8f9;
  --fg: #060e18;
  --muted: #5c6874;
  --border: #e4e7ea;
  --ink-invert: #f6f8fa;
  --ink-invert-muted: #b9c3cd;

  --sans: "Plus Jakarta Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --serif: "Cormorant Garamond", ui-serif, Georgia, "Times New Roman", serif;
  --maxw: 1152px;
}

/* ============================================================
   BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  background: var(--bg);
  color: var(--fg);
  -webkit-font-smoothing: antialiased;
  line-height: 1.55;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, blockquote { font-family: var(--serif); font-weight: 300; margin: 0; letter-spacing: -0.01em; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.section { padding: 96px 0; }
.section--tech { background: var(--surface); }
.section--line { border-bottom: 1px solid var(--border); }
.center { text-align: center; }
.eyebrow {
  font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase; font-weight: 600;
}
.t-gold { color: var(--gold); }
.t-steel { color: var(--steel); }
.t-ash { color: var(--ash); }
.t-muted { color: var(--muted); }
.h2 { font-size: clamp(1.9rem, 4vw, 2.75rem); line-height: 1.12; margin-top: 20px; }
.lead { margin-top: 16px; color: var(--muted); }
.rule-gold::before {
  content: ""; display: block; width: 48px; height: 1px;
  background: var(--gold-light); margin-bottom: 20px;
}

/* grade com linhas finas (gap-px) */
.grid { display: grid; gap: 1px; background: var(--border); margin-top: 56px; }
.grid > * {
  background: var(--bg);
  color: var(--fg);
  transition: background-color .5s ease, color .5s ease;
}
.grid > *:hover {
  background: var(--royal);
  color: var(--ink-invert);
}
.g-2 { grid-template-columns: repeat(2, 1fr); }
.g-3 { grid-template-columns: repeat(3, 1fr); }
.g-4 { grid-template-columns: repeat(4, 1fr); }
.g-5 { grid-template-columns: repeat(5, 1fr); }

/* superficies escuras */
.surface-royal {
  background-image: linear-gradient(165deg, var(--royal-deep), var(--royal) 58%, var(--royal-soft));
  color: var(--ink-invert);
}

/* botoes */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  height: 56px; padding: 0 40px; border: 0; cursor: pointer;
  background: var(--gold); color: var(--royal-deep);
  font-family: var(--sans); font-size: 14px; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase; border-radius: 2px;
  transition: background-color .45s ease, transform .45s ease;
}
.btn:hover { background: var(--gold-light); transform: translateY(-2px); }
.btn--ghost {
  height: 40px; padding: 0 20px; background: transparent; color: var(--ink-invert);
  border: 1px solid rgba(179,179,179,.35); font-size: 11px; letter-spacing: 0.16em;
}
.btn--ghost:hover { background: var(--gold); color: var(--royal-deep); border-color: var(--gold); }

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  background: rgba(3, 8, 15, .9); backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(179,179,179,.15);
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding-top: 16px; padding-bottom: 16px;
}
.brand-name { display: block; font-family: var(--serif); font-size: 18px; color: var(--ink-invert); letter-spacing: .06em; }
.brand-sub { display: block; font-size: 10px; letter-spacing: .28em; text-transform: uppercase; color: var(--ash); }

/* ============================================================
   HERO — retrato nitido com sobreposicao navy e linhas douradas
   ============================================================ */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  padding: 160px 0 96px;
  color: var(--ink-invert);
  background-color: var(--royal-deep);
}
.hero__photo {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: center 32%;
}
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(180deg, rgba(3,8,15,.8), rgba(3,8,15,.56) 42%, rgba(3,8,15,.94));
}
.hero__lines {
  position: absolute; inset: -20% -10%; z-index: 2; pointer-events: none; opacity: .3;
  background-image:
    linear-gradient(118deg, transparent calc(24% - 1px), rgba(217,180,92,.85) 24%, transparent calc(24% + 1px)),
    linear-gradient(118deg, transparent calc(38% - 1px), rgba(217,180,92,.45) 38%, transparent calc(38% + 1px)),
    linear-gradient(118deg, transparent calc(52% - 1px), rgba(217,180,92,.70) 52%, transparent calc(52% + 1px)),
    linear-gradient(118deg, transparent calc(66% - 1px), rgba(176,136,51,.55) 66%, transparent calc(66% + 1px)),
    linear-gradient(118deg, transparent calc(78% - 1px), rgba(217,180,92,.90) 78%, transparent calc(78% + 1px));
  filter: drop-shadow(0 0 6px rgba(217,180,92,.45));
}
.hero__inner { position: relative; z-index: 3; max-width: 768px; margin: 0 auto; text-align: center; }
.hero h1 {
  margin-top: 28px; font-size: clamp(2.6rem, 6vw, 4rem); line-height: 1.06; color: var(--ink-invert);
}
.hero h1 em { font-style: italic; color: var(--gold-light); }
.hero__sub { margin: 32px auto 0; max-width: 640px; font-size: 1.05rem; color: var(--ink-invert-muted); }
.hero .btn { margin-top: 44px; }
.hero__list { margin-top: 56px; border-top: 1px solid rgba(179,179,179,.15); text-align: left; }
.hero__list li {
  display: flex; align-items: center; gap: 20px; padding: 16px 0;
  border-bottom: 1px solid rgba(179,179,179,.15); color: var(--ink-invert);
}
.hero__list span { font-family: var(--serif); color: var(--gold-light); }

/* ============================================================
   BLOCOS
   ============================================================ */
.metric { padding: 32px 24px; text-align: center; }
.metric strong { display: block; font-family: var(--serif); font-weight: 300; font-size: 3rem; color: var(--royal); transition: color .5s ease; }
.metric span { display: block; margin: 12px auto 0; max-width: 16rem; font-size: 12px; color: var(--muted); transition: color .5s ease; }

.awareness { margin-top: 48px; padding: 48px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); text-align: left; }
.awareness p + p { margin-top: 28px; }
.awareness .quote {
  margin-top: 28px; padding-left: 24px; border-left: 1px solid var(--gold);
  font-family: var(--serif); font-style: italic; font-size: 1.4rem; color: var(--royal);
}

.card { padding: 32px; }
.card__icon { width: 26px; height: 26px; stroke: var(--gold); fill: none; stroke-width: 1.25; transition: stroke .5s ease; }
.card h3 { margin-top: 24px; font-size: 1.25rem; font-weight: 500; color: var(--royal); transition: color .5s ease; }
.card p { margin-top: 12px; font-size: .9rem; color: var(--muted); transition: color .5s ease; }

.step { padding: 28px; }
.step b { font-family: var(--serif); font-weight: 300; font-size: 1.9rem; color: var(--steel); transition: color .5s ease; }
.step h3 { margin-top: 16px; font-size: 1.1rem; font-weight: 500; color: var(--royal); transition: color .5s ease; }
.step p { margin-top: 8px; font-size: .875rem; color: var(--muted); transition: color .5s ease; }

.pillar { display: flex; align-items: baseline; gap: 20px; padding: 28px; }
.pillar span { font-family: var(--serif); font-size: .9rem; color: var(--gold); transition: color .5s ease; }
.pillar strong { font-family: var(--serif); font-weight: 400; font-size: 1.15rem; color: var(--royal); transition: color .5s ease; }

.quote-card { display: flex; flex-direction: column; justify-content: space-between; padding: 32px; }
.quote-card blockquote { font-size: 1.1rem; font-style: italic; color: var(--royal); transition: color .5s ease; }
.quote-card figcaption { margin-top: 32px; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--steel); transition: color .5s ease; }

/* hover azul nos cards */
.grid > *:hover .metric strong,
.grid > *:hover .card h3,
.grid > *:hover .step h3,
.grid > *:hover .pillar strong,
.grid > *:hover .quote-card blockquote { color: var(--ink-invert); }
.grid > *:hover .metric span,
.grid > *:hover .card p,
.grid > *:hover .step p,
.grid > *:hover .quote-card figcaption { color: var(--ink-invert-muted); }
.grid > *:hover .step b { color: var(--ash); }
.grid > *:hover .card__icon { stroke: var(--gold-light); }
.grid > *:hover .pillar span { color: var(--gold-light); }

/* SOBRE */
.about { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.about__photo { position: relative; }
.about__photo::before { content: ""; position: absolute; inset: -16px; border: 1px solid rgba(179,179,179,.2); }
.about__photo img { position: relative; width: 100%; aspect-ratio: 3/4; object-fit: cover; }
.about h2 { color: var(--ink-invert); }
.about p { color: var(--ink-invert-muted); margin-top: 20px; }
.seals { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.seals span {
  border: 1px solid rgba(179,179,179,.25); padding: 8px 16px;
  font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-invert);
}

/* FAQ (accordion nativo) */
.faq { max-width: 720px; margin: 48px auto 0; }
.faq details { border-bottom: 1px solid var(--border); background: var(--bg); margin-bottom: 8px; padding: 0 24px; transition: background-color .5s ease, color .5s ease; }
.faq details:hover { background: var(--royal); color: var(--ink-invert); }
.faq summary {
  cursor: pointer; list-style: none; padding: 20px 0;
  font-family: var(--serif); font-size: 1.15rem; font-weight: 500; color: var(--royal);
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  transition: color .5s ease;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--sans); color: var(--gold); font-size: 1.2rem; transition: color .5s ease; }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { padding: 0 0 20px; font-size: .9rem; color: var(--muted); transition: color .5s ease; }
.faq details:hover summary,
.faq details:hover summary::after,
.faq details:hover p { color: var(--ink-invert); }
.faq details:hover p { color: var(--ink-invert-muted); }

/* ============================================================
   FORMULARIO
   ============================================================ */
.form-card {
  background: rgba(3, 8, 15, .55);
  border: 1px solid rgba(179,179,179,.2);
  backdrop-filter: blur(14px) saturate(120%);
  box-shadow: 0 40px 90px -45px rgba(0,0,0,.9);
  border-radius: 2px; padding: 36px;
}
.form-card h2 { margin-top: 12px; font-size: 1.9rem; font-weight: 500; color: var(--ink-invert); }
.form-card .lead { color: var(--ink-invert-muted); font-size: .9rem; }
.field { margin-top: 20px; }
.field label {
  display: block; margin-bottom: 8px;
  font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-invert-muted);
}
.field input {
  width: 100%; height: 48px; padding: 0 14px; border-radius: 2px;
  background: rgba(3, 8, 15, .7); border: 1px solid rgba(179,179,179,.22);
  color: var(--ink-invert); font-family: var(--sans); font-size: .95rem;
}
.field input::placeholder { color: rgba(185,195,205,.6); }
.field input:focus { outline: none; border-color: var(--gold-light); }
.form-card .btn { width: 100%; margin-top: 24px; padding: 0; }
.form-note {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  margin-top: 16px; font-size: 12px; color: var(--ink-invert-muted);
}
.form-alert {
  margin-top: 20px; padding: 14px 16px; border-radius: 2px;
  border: 1px solid var(--gold-light); background: rgba(217,180,92,.12);
  color: var(--ink-invert); font-size: .9rem;
}
.hp { position: absolute; left: -9999px; }

/* FOOTER */
.site-footer { padding-top: 96px; }
.footer-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.offices { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: rgba(179,179,179,.15); margin-top: 40px; }
.office { padding: 24px; background-image: linear-gradient(165deg, var(--royal-deep), var(--royal) 58%, var(--royal-soft)); }
.office p:first-child { font-family: var(--serif); font-size: 1.1rem; color: var(--ink-invert); }
.office p:last-child { margin-top: 12px; font-size: 12px; color: var(--ink-invert-muted); }
.legal { margin-top: 80px; border-top: 1px solid rgba(179,179,179,.15); }
.legal .wrap {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px;
  padding-top: 32px; padding-bottom: 32px; font-size: 12px; color: var(--ink-invert-muted);
}

/* WhatsApp flutuante */
.wa-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 60;
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 20px; border-radius: 999px;
  background: var(--gold); color: var(--royal-deep);
  font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  box-shadow: 0 18px 40px -18px rgba(0,0,0,.7);
}
.wa-float:hover { background: var(--gold-light); }

/* animacao */
.fade-up { animation: fadeUp .7s cubic-bezier(.22,1,.36,1) both; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

/* ============================================================
   RESPONSIVO — mobile first ajustado
   ============================================================ */
@media (max-width: 1023px) {
  .g-3, .g-4, .g-5 { grid-template-columns: repeat(2, 1fr); }
  .about, .footer-grid { grid-template-columns: 1fr; }
}
@media (min-width: 1024px) {
  .hero__photo { left: auto; width: 62%; object-position: center 36%; }
  .hero::after { background: linear-gradient(90deg, var(--royal-deep) 4%, var(--royal-deep) 33%, rgba(3,8,15,.86) 50%, rgba(3,8,15,.05) 100%); }
  .hero__inner { max-width: 1152px; text-align: left; }
  .hero__inner > * { max-width: 640px; }
  .hero__sub { margin-left: 0; }
}
@media (max-width: 640px) {
  .section { padding: 64px 0; }
  .hero { padding: 128px 0 80px; }
  .g-2, .g-3, .g-4, .g-5, .offices { grid-template-columns: 1fr; }
  .brand-sub { display: none; }
  .form-card { padding: 24px; }
  .wa-float { padding: 12px 16px; font-size: 12px; }
}


/* CARROSSEL DE FOTOS — seção Sobre o especialista */
.about-carousel { min-width: 0; }
.about-carousel__track { position: relative; overflow: hidden; background: var(--royal-deep); }
.about-carousel__slide { margin: 0; }
.about-carousel__slide[hidden] { display: none !important; }
.about-carousel__slide img { display: block; position: relative; width: 100%; height: clamp(380px, 48vw, 620px); aspect-ratio: auto; object-fit: cover; object-position: center 30%; }
.about-carousel__slide figcaption { margin: 0; padding: 12px 16px; color: var(--ink-invert-muted); background: var(--royal-deep); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; }
.about-carousel__controls { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 18px; }
.about-carousel__arrow { width: 42px; height: 42px; border: 1px solid rgba(179,179,179,.4); border-radius: 50%; color: var(--ink-invert); background: transparent; cursor: pointer; font-size: 20px; line-height: 1; transition: background .2s ease, color .2s ease; }
.about-carousel__arrow:hover, .about-carousel__arrow:focus-visible { background: var(--gold); color: var(--royal-deep); outline: none; }
.about-carousel__dots { display: flex; justify-content: center; align-items: center; gap: 9px; }
.about-carousel__dot { width: 8px; height: 8px; padding: 0; border: 0; border-radius: 50%; background: rgba(179,179,179,.42); cursor: pointer; }
.about-carousel__dot.is-active { width: 23px; border-radius: 10px; background: var(--gold); }
.about-carousel__dot:focus-visible { outline: 2px solid var(--gold-light); outline-offset: 4px; }
@media (max-width: 640px) {
  .about-carousel__slide img { height: min(115vw, 520px); }
  .about-carousel__controls { padding-top: 14px; }
}
