/* ============================================================
   IDC — Instituto Dermatologia e Cirurgia
   Identidade: navy profundo, teal, fios dourados
   ============================================================ */

:root {
  --navy-900: #081420;
  --navy-800: #0c1d30;
  --navy-700: #122942;
  --teal: #39c4b6;
  --teal-soft: #7fd9cf;
  --gold: #c8a668;
  --gold-dim: rgba(200, 166, 104, 0.45);
  --ivory: #f4f2ed;
  --slate: #9fb0c0;
  --white: #ffffff;
  --max-w: 1120px;
}

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

html { scroll-behavior: smooth; }

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

body {
  font-family: "Inter", -apple-system, "Segoe UI", sans-serif;
  background: var(--navy-900);
  color: var(--ivory);
  line-height: 1.65;
  font-size: 16.5px;
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; }

.display {
  font-family: "Marcellus", "Times New Roman", serif;
  font-weight: 400;
  letter-spacing: 0.01em;
}

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

/* ---- fio dourado (assinatura da marca) ---- */
.rule {
  height: 1px;
  width: 72px;
  background: linear-gradient(90deg, var(--gold), rgba(200,166,104,0));
  margin: 22px 0 0;
}
.rule.center { margin-left: auto; margin-right: auto; background: linear-gradient(90deg, rgba(200,166,104,0), var(--gold), rgba(200,166,104,0)); }

.eyebrow {
  font-size: 12px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 18px;
}

/* ---- header ---- */
header.site {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  background: rgba(8, 20, 32, 0.82);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(200,166,104,0.18);
}
header.site .bar {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.logo {
  text-decoration: none;
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}
.logo .mark {
  font-family: "Marcellus", serif;
  font-size: 26px;
  letter-spacing: 0.14em;
  color: var(--white);
}
.logo .sub {
  font-size: 9.5px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--slate);
}
nav.main { display: flex; align-items: center; gap: 28px; }
nav.main a {
  text-decoration: none;
  font-size: 13.5px;
  letter-spacing: 0.06em;
  color: var(--ivory);
  opacity: 0.85;
  transition: opacity .2s, color .2s;
}
nav.main a:hover, nav.main a:focus-visible { opacity: 1; color: var(--teal-soft); }
nav.main a:focus-visible { outline: 2px solid var(--teal); outline-offset: 4px; }

.btn-wa {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  background: var(--teal);
  color: var(--navy-900);
  font-weight: 600;
  font-size: 14px;
  padding: 11px 22px;
  border-radius: 3px;
  letter-spacing: 0.03em;
  transition: background .2s, transform .2s;
}
.btn-wa:hover { background: var(--teal-soft); transform: translateY(-1px); }
.btn-wa:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.btn-wa svg { width: 17px; height: 17px; fill: currentColor; }

.btn-ghost {
  display: inline-block;
  text-decoration: none;
  border: 1px solid var(--gold-dim);
  color: var(--ivory);
  font-size: 14px;
  letter-spacing: 0.05em;
  padding: 11px 24px;
  border-radius: 3px;
  transition: border-color .2s, color .2s;
}
.btn-ghost:hover { border-color: var(--gold); color: var(--gold); }
.btn-ghost:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; }

/* ---- hero ---- */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero .bg {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  filter: saturate(0.85);
}
.hero .veil {
  position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(8,20,32,0.96) 34%, rgba(8,20,32,0.72) 62%, rgba(8,20,32,0.45) 100%);
}
.hero .inner {
  position: relative;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 140px 24px 90px;
  width: 100%;
}
.hero h1 {
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.14;
  color: var(--white);
  max-width: 640px;
}
.hero h1 em {
  font-style: normal;
  color: var(--teal);
}
.hero p.lead {
  margin-top: 24px;
  max-width: 520px;
  color: var(--slate);
  font-size: 17px;
}
.hero .cta-row {
  margin-top: 38px;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
}

/* ---- seções ---- */
section.block { padding: 96px 0; }
section.block.alt { background: var(--navy-800); }

h2.title {
  font-size: clamp(26px, 3.4vw, 38px);
  color: var(--white);
  line-height: 1.2;
}

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.two-col .photo {
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid rgba(200,166,104,0.22);
}
.two-col .photo img { width: 100%; height: 100%; object-fit: cover; }
.two-col p { color: var(--slate); margin-top: 18px; }

/* ---- índice de procedimentos (assinatura) ---- */
.proc-list { margin-top: 48px; border-top: 1px solid var(--gold-dim); }
.proc-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: baseline;
  padding: 26px 6px;
  border-bottom: 1px solid rgba(200,166,104,0.2);
  transition: background .2s;
}
.proc-item:hover { background: rgba(57,196,182,0.045); }
.proc-item .name {
  font-family: "Marcellus", serif;
  font-size: clamp(20px, 2.4vw, 27px);
  color: var(--white);
}
.proc-item .desc {
  color: var(--slate);
  font-size: 14.5px;
  max-width: 440px;
  text-align: right;
}

/* ---- equipe / contato ---- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  margin-top: 48px;
  align-items: start;
}
.contact-card { display: grid; gap: 26px; }
.contact-card .item .label {
  font-size: 11.5px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 6px;
}
.contact-card .item .value { color: var(--ivory); font-size: 17px; }
.contact-card .item a { color: var(--ivory); text-decoration: none; border-bottom: 1px solid rgba(57,196,182,0.5); transition: color .2s, border-color .2s; }
.contact-card .item a:hover { color: var(--teal-soft); border-color: var(--teal-soft); }
.map-frame {
  border: 1px solid rgba(200,166,104,0.25);
  border-radius: 4px;
  overflow: hidden;
  min-height: 340px;
}
.map-frame iframe { width: 100%; height: 100%; min-height: 340px; border: 0; filter: grayscale(0.35) contrast(1.05); }

/* ---- página equipe ---- */
.doctor {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 64px;
  align-items: start;
}
.doctor .portrait {
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid rgba(200,166,104,0.25);
  position: sticky;
  top: 110px;
}
.doctor .crm {
  margin-top: 8px;
  color: var(--slate);
  font-size: 14px;
  letter-spacing: 0.08em;
}
.cred-list { margin-top: 36px; display: grid; gap: 0; border-top: 1px solid var(--gold-dim); }
.cred-item {
  padding: 20px 4px;
  border-bottom: 1px solid rgba(200,166,104,0.2);
  display: grid;
  gap: 4px;
}
.cred-item .what { color: var(--white); font-size: 17px; }
.cred-item .where { color: var(--slate); font-size: 14.5px; }

.team-photo {
  margin-top: 72px;
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid rgba(200,166,104,0.22);
}
.team-photo img { width: 100%; }
.caption { color: var(--slate); font-size: 14px; margin-top: 14px; }

/* ---- vídeos placeholder ---- */
.soon {
  margin-top: 40px;
  border: 1px dashed rgba(200,166,104,0.4);
  border-radius: 4px;
  padding: 42px 32px;
  text-align: center;
  color: var(--slate);
}

/* ---- footer ---- */
footer.site {
  border-top: 1px solid rgba(200,166,104,0.18);
  padding: 44px 0 52px;
  background: var(--navy-900);
}
footer.site .inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
  align-items: center;
  color: var(--slate);
  font-size: 13.5px;
}
footer.site a { color: var(--slate); text-decoration: none; }
footer.site a:hover { color: var(--teal-soft); }
.socials { display: flex; gap: 18px; align-items: center; }
.socials a { display: inline-flex; }
.socials svg { width: 20px; height: 20px; fill: var(--slate); transition: fill .2s; }
.socials a:hover svg { fill: var(--teal-soft); }

/* ---- WhatsApp flutuante ---- */
.wa-float {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 60;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25d366;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(0,0,0,0.4);
  transition: transform .2s;
}
.wa-float:hover { transform: scale(1.06); }
.wa-float svg { width: 28px; height: 28px; fill: #fff; }

/* ---- responsivo ---- */
@media (max-width: 860px) {
  nav.main a.link { display: none; }
  .two-col, .contact-grid, .doctor { grid-template-columns: 1fr; gap: 40px; }
  .doctor .portrait { position: static; max-width: 340px; }
  .proc-item { grid-template-columns: 1fr; gap: 6px; }
  .proc-item .desc { text-align: left; }
  section.block { padding: 68px 0; }
  .hero .inner { padding: 120px 24px 70px; }
}
