/* Instituto RA — Dermatologia e Especialidades
   Palmas, TO | institutora.com.br
   ------------------------------------------ */

:root {
  --bg: #f7f5f1;
  --surface: rgba(255,255,255,.82);
  --text: #171717;
  --muted: #66625b;
  --line: rgba(23,23,23,.08);
  --accent: #2a5a58;
  --accent-dark: #0F3D3E;
  --shadow: 0 12px 40px rgba(0,0,0,.06);
  --radius: 24px;
  --max: 1240px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(15,61,62,.07), transparent 28%),
    radial-gradient(circle at top right, rgba(0,0,0,.04), transparent 22%),
    var(--bg);
  color: var(--text);
  line-height: 1.55;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; height: auto; display: block; }

/* ── Layout ── */
.container { width: min(var(--max), calc(100% - 40px)); margin: 0 auto; }
.section { padding: 54px 0; }
.section-sm { padding: 34px 0; }

/* ── Nav ── */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(18px);
  background: rgba(247,245,241,.85);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 78px;
}
.brand { font-weight: 700; font-size: 1.15rem; letter-spacing: -.02em; color: var(--text); }
.brand img { height: 36px; width: auto; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
  color: var(--muted);
  font-size: 14px;
}
.nav-links a:hover { color: var(--text); }
.nav-links a.active { color: var(--accent-dark); font-weight: 600; }

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 24px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 600;
  font-size: .93rem;
  transition: .2s ease;
  cursor: pointer;
  white-space: nowrap;
}
.btn-primary {
  background: #0F3D3E;
  color: #fff;
  box-shadow: 0 4px 20px rgba(15,61,62,.25);
}
.btn-primary:hover { background: #2a5a58; }
.btn-secondary { border-color: var(--line); background: rgba(255,255,255,.68); color: var(--text); }
.btn-secondary:hover { background: rgba(255,255,255,.95); }
.btn-accent { background: #0F3D3E; color: #fff; }
.btn-accent:hover { background: #2a5a58; }

/* ── Cards / Panels ── */
.card, .panel, .feature, .faq, .footer-card {
  background: var(--surface);
  border: 1px solid rgba(255,255,255,.6);
  box-shadow: var(--shadow);
  border-radius: var(--radius);
  backdrop-filter: blur(12px);
}
.card { padding: 28px; display: flex; flex-direction: column; justify-content: space-between; min-height: 220px; }
.panel { padding: 22px; }
.feature { padding: 30px; position: relative; overflow: hidden; min-height: 300px; }
.faq { padding: 28px; min-height: 160px; }

/* ── Typography ── */
h1, h2, h3, h4 { letter-spacing: -.03em; line-height: 1.05; }
h1 { font-size: clamp(2.6rem, 5.5vw, 5rem); max-width: 12ch; }
h2 { font-size: clamp(1.9rem, 3.8vw, 3rem); max-width: 18ch; }
h3 { font-size: 1.3rem; }
h4 { font-size: 1.05rem; }
.lead { font-size: 1.1rem; color: #3d3934; max-width: 58ch; margin: 20px 0 28px; }
.muted { color: var(--muted); }
.small { font-size: .88rem; }

/* ── Eyebrow ── */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  color: var(--accent-dark);
  font-size: 11px;
  letter-spacing: .1em;
  text-transform: uppercase;
  font-weight: 600;
}
.eyebrow::before {
  content: "";
  width: 20px;
  height: 1px;
  background: currentColor;
  opacity: .6;
}

/* ── Tags / Chips ── */
.tag {
  display: inline-flex;
  padding: 5px 12px;
  border-radius: 999px;
  background: transparent;
  border: 1px solid rgba(15,61,62,.25);
  color: #0F3D3E;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  width: fit-content;
  margin-bottom: 12px;
}
.chip {
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(15,61,62,.2);
  background: transparent;
  font-size: 11px;
  color: #0F3D3E;
  font-weight: 500;
  letter-spacing: .02em;
}
.chip-list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }

/* ── Icon ── */
.icon {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -.04em;
  color: rgba(15,61,62,.18);
  line-height: 1;
  margin-bottom: 16px;
  width: auto;
  height: auto;
  border-radius: 0;
  background: none;
  border: none;
  display: block;
}

/* ── Lists ── */
.check-list { list-style: none; display: grid; gap: 10px; margin: 16px 0; }
.check-list li { display: flex; align-items: flex-start; gap: 10px; }
.check-list li::before { content: "•"; color: var(--accent-dark); font-weight: 800; flex-shrink: 0; }

/* ── Section head ── */
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  margin-bottom: 28px;
}
.section-copy { max-width: 52ch; color: var(--muted); font-size: 1rem; }

/* ── Grids ── */
.grid-2 { display: grid; grid-template-columns: repeat(2,1fr); gap: 18px; }
.grid-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; }
.grid-4 { display: grid; grid-template-columns: repeat(4,1fr); gap: 18px; }
.split { display: grid; grid-template-columns: 1.15fr .85fr; gap: 20px; align-items: stretch; }
.split-rev { display: grid; grid-template-columns: .85fr 1.15fr; gap: 20px; align-items: stretch; }

/* ── Hero (home) ── */
.hero { padding: 64px 0 40px; }
.hero-wrap { display: grid; grid-template-columns: 1.1fr .9fr; gap: 28px; align-items: stretch; }
.hero-card {
  padding: 56px;
  min-height: 480px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.hero-card::after, .feature::after {
  content: "";
  position: absolute;
  inset: auto -80px -120px auto;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(15,61,62,.08), transparent 65%);
  pointer-events: none;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 8px; }
.hero-side { display: grid; grid-template-rows: 1fr 1fr; gap: 20px; }

/* ── Image panel ── */
.image-panel {
  position: relative;
  overflow: hidden;
  min-height: 340px;
}
.image-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(255,255,255,.12), rgba(15,61,62,.08)),
    linear-gradient(135deg, #e8efef, #d0e0e0 42%, #9ec0be 100%);
}
.image-panel img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  z-index: 1;
}
.image-panel .mock-copy {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 2;
  padding: 28px 32px;
  background: linear-gradient(0deg, rgba(0,0,0,.55) 0%, transparent 100%);
  color: #fff;
}
.image-panel .mock-copy h3 { font-size: 1.15rem; margin-bottom: 8px; }
.image-panel .mock-copy p { font-size: .92rem; color: rgba(255,255,255,.85); }

.mini-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.mini-card { padding: 22px; min-height: 155px; }

/* ── Page Hero (landing pages) ── */
.page-hero {
  padding: 80px 0 50px;
}
.page-hero-inner {
  background: var(--surface);
  border: 1px solid rgba(255,255,255,.6);
  box-shadow: var(--shadow);
  border-radius: var(--radius);
  backdrop-filter: blur(12px);
  padding: 56px;
  position: relative;
  overflow: hidden;
}
.page-hero-inner::after {
  content: "";
  position: absolute;
  inset: auto -60px -100px auto;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(15,61,62,.08), transparent 65%);
  pointer-events: none;
}
.page-hero-inner h1 { max-width: 16ch; }
.page-hero-inner .lead { max-width: 62ch; }
.page-hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* ── Content sections (landing pages) ── */
.content-section { padding: 48px 0; }
.content-block {
  background: var(--surface);
  border: 1px solid rgba(255,255,255,.6);
  box-shadow: var(--shadow);
  border-radius: var(--radius);
  backdrop-filter: blur(12px);
  padding: 40px 48px;
}
.content-block p + p { margin-top: 16px; }
.content-block h2 { margin-bottom: 20px; font-size: clamp(1.6rem, 3vw, 2.4rem); }
.content-block h3 { margin: 24px 0 12px; }

/* ── CTA block ── */
.cta-block {
  background: #0F3D3E;
  border-radius: var(--radius);
  padding: 48px 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}
.cta-block h2 { color: #fff; max-width: 18ch; font-size: clamp(1.5rem, 2.8vw, 2.2rem); }
.cta-block p { color: rgba(255,255,255,.7); margin-top: 10px; }
.cta-block .btn-accent { font-size: 1rem; padding: 16px 28px; background: #fff; color: #0F3D3E; }
.cta-block .btn-accent:hover { background: rgba(255,255,255,.9); }

/* ── Team card ── */
.team-card { display: flex; flex-direction: column; gap: 0; }
.portrait {
  width: 72px;
  height: 72px;
  border-radius: 20px;
  background: linear-gradient(135deg,#e8eeee,#d0e0e0 55%,#9abfbe);
  border: 1px solid rgba(255,255,255,.55);
  overflow: hidden;
}
.portrait img { width: 100%; height: 100%; object-fit: cover; }
.team-meta { display: grid; gap: 4px; }
.team-role { color: var(--accent-dark); font-weight: 600; font-size: .93rem; }
.team-bio { color: var(--muted); font-size: .93rem; }

/* ── Avaliações ── */
.review-card { padding: 28px; }
.review-stars { color: #b8972a; font-size: 1.1rem; margin-bottom: 10px; }
.review-text { font-style: italic; color: #3d3934; margin-bottom: 14px; }
.review-name { font-weight: 600; font-size: .88rem; }
.review-source { color: var(--muted); font-size: .8rem; }

/* ── Instagram ── */
.instagram-shell { border-radius: var(--radius); overflow: hidden; }
.instagram-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 12px; }
.instagram-post {
  aspect-ratio: 1/1;
  border-radius: 16px;
  overflow: hidden;
  background: linear-gradient(135deg,#d0dede,#eef3f3);
  border: 1px solid var(--line);
}
.instagram-post img { width: 100%; height: 100%; object-fit: cover; }

/* ── Footer ── */
.footer { padding: 40px 0 60px; }
.footer-card { padding: 40px 48px; }
.footer-grid { display: grid; grid-template-columns: 1.3fr .7fr; gap: 32px; align-items: center; }
.footer-brand { font-weight: 700; font-size: 1.1rem; letter-spacing: -.02em; margin-bottom: 14px; }
.footer-desc { color: var(--muted); font-size: .9rem; max-width: 52ch; margin-bottom: 10px; }
.footer-addr { color: var(--muted); font-size: .85rem; }
.footer-actions { display: flex; flex-direction: column; align-items: flex-end; gap: 12px; }
.footer-bottom {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  color: var(--muted);
  font-size: .8rem;
}

/* ── WhatsApp float ── */
.whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 100;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25D366;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37,211,102,.4);
  transition: transform .2s ease;
}
.whatsapp-float:hover { transform: scale(1.08); }
.whatsapp-float svg { width: 28px; height: 28px; fill: #fff; }

/* ── Breadcrumb ── */
.breadcrumb {
  padding: 14px 0;
  font-size: .85rem;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 8px;
}
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--accent-dark); }
.breadcrumb span { opacity: .5; }

/* ── Article / Blog ── */
.article-hero { padding: 60px 0 40px; }
.article-body { max-width: 740px; margin: 0 auto; }
.article-body h2 { margin: 36px 0 14px; font-size: 1.7rem; }
.article-body h3 { margin: 28px 0 10px; }
.article-body p { margin-bottom: 16px; color: #2e2a25; line-height: 1.7; }
.article-body ul, .article-body ol { padding-left: 24px; margin-bottom: 16px; }
.article-body li { margin-bottom: 8px; line-height: 1.65; }
.article-meta { display: flex; align-items: center; gap: 16px; font-size: .85rem; color: var(--muted); margin: 16px 0 32px; }

/* ── Portal ── */
.portal-card {
  padding: 28px;
  display: block;
  transition: transform .2s ease, box-shadow .2s ease;
}
.portal-card:hover { transform: translateY(-3px); box-shadow: 0 20px 50px rgba(0,0,0,.09); }
.portal-card h3 { margin: 12px 0 8px; }

/* ── Convênios ── */
.convenio-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; }
.convenio-card {
  background: var(--surface);
  border: 1px solid rgba(255,255,255,.6);
  box-shadow: var(--shadow);
  border-radius: 18px;
  padding: 24px;
  text-align: center;
  font-weight: 600;
}

/* ── Team card com foto no topo ── */
.team-card {
  display: flex;
  flex-direction: column;
  padding: 0;
  background: transparent;
  border: none;
  box-shadow: none;
  border-radius: 0;
  min-height: unset;
}
.team-card .portrait {
  width: 100%;
  height: 200px;
  border-radius: 12px;
  overflow: hidden;
  background: linear-gradient(135deg, #e8e8e8, #d0d0d0);
  flex-shrink: 0;
  margin: 0;
}
.team-card .portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}
.team-card .team-meta,
.team-card .chip-list,
.team-card > div:not(.portrait) {
  padding: 0;
}
.team-card .team-meta { padding-top: 14px; }
.team-card .chip-list { padding-top: 8px; padding-bottom: 4px; }
.team-card > a.btn,
.team-card > div[style*="margin-top"] {
  padding: 0 0 4px;
}

/* ── Responsivo ── */
@media (max-width: 1100px) {
  .hero-wrap, .split, .split-rev, .grid-4, .grid-3, .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero-side { grid-template-rows: unset; }
}
@media (max-width: 860px) {
  .nav { min-height: 66px; }
  .nav-links { display: none; }
  .hero-wrap, .hero-side, .split, .split-rev, .grid-4, .grid-3, .grid-2, .footer-grid, .mini-grid, .instagram-grid, .convenio-grid { grid-template-columns: 1fr; }
  .hero-card { padding: 34px 24px; min-height: auto; }
  .page-hero-inner { padding: 36px 24px; }
  .cta-block { padding: 36px 28px; flex-direction: column; align-items: flex-start; }
  .content-block { padding: 28px 24px; }
  .footer-card { padding: 28px 24px; }
  .footer-actions { align-items: flex-start; }
  .section-head { flex-direction: column; align-items: flex-start; }
  .container { width: min(var(--max), calc(100% - 24px)); }
}
