/* ===== Clínica Petrônio Delgado — Design System ===== */
:root {
  --teal-50:  #effaf7;
  --teal-100: #d6f1ea;
  --teal-200: #abe3d4;
  --teal-300: #76d0bb;
  --teal-400: #3fb8a8; /* Logo turquoise */
  --teal-500: #2ea395;
  --teal-600: #248174;
  --teal-700: #1f655c;

  --navy-50:  #eef2f8;
  --navy-100: #d6e0ee;
  --navy-200: #aabbd6;
  --navy-300: #6f8bbb;
  --navy-400: #3f5e93;
  --navy-500: #25406a; /* Logo navy */
  --navy-600: #1c3253;
  --navy-700: #142340;
  --navy-800: #0d1830;

  --bg:       #fbfcfd;
  --surface:  #ffffff;
  --surface-2:#f4f7fa;
  --line:     #e6ecf2;
  --line-2:   #d7dfe8;

  --text:     #1a2236;
  --muted:    #5a6577;
  --soft:     #8a93a4;

  --warm-1:   #fff5ec;
  --gold:     #d99b3d;

  --shadow-sm: 0 1px 2px rgba(20,35,64,.04), 0 1px 1px rgba(20,35,64,.03);
  --shadow:    0 4px 14px -4px rgba(20,35,64,.08), 0 2px 4px -2px rgba(20,35,64,.05);
  --shadow-lg: 0 24px 48px -16px rgba(20,35,64,.18), 0 8px 16px -8px rgba(20,35,64,.08);

  --radius-xs: 8px;
  --radius-sm: 12px;
  --radius:    18px;
  --radius-lg: 28px;
  --radius-pill: 999px;

  --container: 1200px;
  --container-wide: 1320px;

  --ease: cubic-bezier(.22,.61,.36,1);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: "Manrope", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  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-family: inherit; cursor: pointer; border: 0; background: none; }

h1, h2, h3, h4 {
  font-family: "Manrope", sans-serif;
  color: var(--navy-500);
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin: 0;
  font-weight: 700;
  text-wrap: balance;
}
h1 { font-size: clamp(2.2rem, 4.6vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); }
h3 { font-size: 1.25rem; }
p { margin: 0; text-wrap: pretty; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.container-wide { width: 100%; max-width: var(--container-wide); margin: 0 auto; padding: 0 24px; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.78rem; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--teal-600);
}
.eyebrow::before {
  content: ""; width: 22px; height: 1.5px; background: var(--teal-400);
  display: inline-block; border-radius: 2px;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 22px;
  border-radius: var(--radius-pill);
  font-weight: 600; font-size: 0.96rem;
  transition: transform .25s var(--ease), background .25s var(--ease), box-shadow .25s var(--ease), color .25s var(--ease);
  white-space: nowrap;
}
.btn-primary {
  background: var(--teal-400); color: white;
  box-shadow: 0 8px 20px -8px rgba(63,184,168,.55);
}
.btn-primary:hover { background: var(--teal-500); transform: translateY(-1px); box-shadow: 0 12px 24px -8px rgba(63,184,168,.65); }
.btn-secondary {
  background: transparent; color: var(--navy-500);
  border: 1.5px solid var(--navy-200);
}
.btn-secondary:hover { border-color: var(--navy-500); background: var(--navy-50); }
.btn-ghost { color: var(--navy-500); padding: 12px 16px; }
.btn-ghost:hover { color: var(--teal-500); }
.btn-dark { background: var(--navy-500); color: white; }
.btn-dark:hover { background: var(--navy-600); transform: translateY(-1px); }

.btn .arrow { transition: transform .25s var(--ease); }
.btn:hover .arrow { transform: translateX(3px); }

/* ===== Header ===== */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.88);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid rgba(230,236,242,.6);
}
.site-header .bar {
  display: flex; align-items: center; justify-content: space-between;
  height: 76px;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark {
  width: 44px; height: 44px;
  display: inline-grid; place-items: center;
}
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-text .top {
  font-size: 0.62rem; font-weight: 700; color: var(--teal-500);
  letter-spacing: 0.16em; text-transform: uppercase;
}
.brand-text .name {
  font-size: 1.1rem; font-weight: 800; color: var(--navy-500);
  letter-spacing: -0.01em; margin-top: 2px;
}
.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  padding: 10px 14px; color: var(--text); font-weight: 500; font-size: 0.95rem;
  border-radius: var(--radius-pill); position: relative;
  transition: color .2s var(--ease), background .2s var(--ease);
}
.nav a:hover { color: var(--teal-600); background: var(--teal-50); }
.nav a.active { color: var(--teal-600); }
.header-cta { display: flex; align-items: center; gap: 12px; }
.mobile-toggle { display: none; }

@media (max-width: 920px) {
  .nav { display: none; }
  .nav.active {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 76px; left: 0; right: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    padding: 20px 24px;
    gap: 8px;
    box-shadow: var(--shadow-lg);
    z-index: 100;
  }
  .nav.active a {
    display: block;
    width: 100%;
    padding: 12px 18px;
    border-radius: var(--radius-pill);
  }
  .mobile-toggle { display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; border: 1px solid var(--line); }
  .header-cta .btn:not(.mobile-toggle) { display: none; }
}

/* ===== Footer ===== */
.site-footer {
  background: var(--navy-700); color: rgba(255,255,255,.78);
  padding: 64px 0 28px; margin-top: 80px;
}
.site-footer h4 {
  color: white; font-size: 0.78rem; letter-spacing: 0.14em;
  text-transform: uppercase; margin-bottom: 18px; font-weight: 700;
}
.footer-grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.1fr; gap: 48px;
}
.footer-grid a { display: block; padding: 6px 0; color: rgba(255,255,255,.72); font-size: 0.95rem; transition: color .2s; }
.footer-grid a:hover { color: var(--teal-300); }
.footer-brand .brand-text .name { color: white; }
.footer-brand .brand-text .top { color: var(--teal-300); }
.footer-brand p { margin-top: 18px; font-size: 0.94rem; color: rgba(255,255,255,.7); max-width: 320px; }
.socials { display: flex; gap: 10px; margin-top: 18px; }
.socials a {
  width: 40px; height: 40px; border-radius: 50%; padding: 0;
  display: inline-grid; place-items: center;
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.08);
  transition: background .25s, transform .25s;
}
.socials a:hover { background: var(--teal-500); transform: translateY(-2px); }
.footer-bottom {
  margin-top: 48px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.08);
  display: flex; justify-content: space-between; gap: 16px; font-size: 0.86rem; color: rgba(255,255,255,.55);
  flex-wrap: wrap;
}
@media (max-width: 820px){
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
}

/* ===== Section helpers ===== */
section { padding: 88px 0; }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 48px; }
.section-head h2 { margin-top: 14px; }
.section-head p { color: var(--muted); margin-top: 14px; font-size: 1.06rem; }

/* ===== Reveal on scroll ===== */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ===== Forms ===== */
input, textarea, select {
  font-family: inherit; font-size: 0.96rem; color: var(--text);
  background: var(--surface); border: 1px solid var(--line-2);
  border-radius: 12px; padding: 12px 14px; width: 100%; outline: none;
  transition: border-color .2s, box-shadow .2s;
}
input:focus, textarea:focus, select:focus {
  border-color: var(--teal-400);
  box-shadow: 0 0 0 4px rgba(63,184,168,.15);
}
label { display: block; font-size: 0.85rem; font-weight: 600; color: var(--navy-500); margin-bottom: 6px; }

/* placeholder image styling */
.ph-img {
  background:
    repeating-linear-gradient(135deg, rgba(63,184,168,.08) 0 12px, rgba(63,184,168,.16) 12px 14px),
    linear-gradient(180deg, var(--teal-50), #fff);
  border: 1px dashed var(--teal-200);
  display: grid; place-items: center;
  color: var(--teal-700); font-family: "JetBrains Mono", "Fira Code", ui-monospace, monospace;
  font-size: 0.78rem; letter-spacing: 0.06em;
  border-radius: var(--radius);
}
.ph-img.dark {
  background:
    repeating-linear-gradient(135deg, rgba(37,64,106,.08) 0 12px, rgba(37,64,106,.14) 12px 14px),
    linear-gradient(180deg, var(--navy-50), #fff);
  border-color: var(--navy-200); color: var(--navy-500);
}

/* Icon stroke */
.ico { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ico-lg { width: 28px; height: 28px; }

/* Toast Notification */
.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: var(--navy-500);
  color: white;
  padding: 14px 24px;
  border-radius: 12px;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  z-index: 9999;
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 500;
  font-size: 0.94rem;
  transform: translateY(100px);
  opacity: 0;
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.3s;
  pointer-events: none;
}
.toast.active {
  transform: translateY(0);
  opacity: 1;
}
.toast-success {
  border-left: 4px solid #3FB8A8;
}
.toast-error {
  border-left: 4px solid #f43f5e;
}
