/* ==========================================================
   Clínica Fraternity – estilos
   Cores tiradas do logo: verde #5b9f75 e verde-limão #9bc93c
   ========================================================== */

:root {
  --green-900: #1d3b2b;
  --green-800: #25503a;
  --green-700: #2f6648;
  --green-600: #3f7f5a;
  --green-500: #5b9f75;
  --green-100: #e6f1ea;
  --green-50:  #f3f8f4;
  --lime:      #9bc93c;
  --ink:       #1f2a24;
  --muted:     #5b6b62;
  --line:      #dde7e0;
  --white:     #ffffff;
  --wa:        #25d366;

  --radius: 18px;
  --radius-sm: 10px;
  --shadow: 0 10px 30px rgba(29, 59, 43, .08);
  --shadow-lg: 0 20px 50px rgba(29, 59, 43, .14);
  --container: 1160px;
  --header-h: 72px;
}

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

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

body {
  margin: 0;
  font-family: "Nunito", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--green-600); }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; color: var(--green-900); }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 800; letter-spacing: -.02em; }
h2 { font-size: clamp(1.75rem, 3.4vw, 2.5rem); font-weight: 800; letter-spacing: -.01em; }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 1em; }

.container { width: min(100% - 2.5rem, var(--container)); margin-inline: auto; }

.skip-link {
  position: absolute; left: -999px; top: 8px; z-index: 100;
  background: var(--green-900); color: #fff; padding: .6rem 1rem; border-radius: 8px;
}
.skip-link:focus { left: 8px; }

:focus-visible { outline: 3px solid var(--lime); outline-offset: 3px; border-radius: 4px; }

.eyebrow {
  display: inline-block;
  font-size: .8rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase;
  color: var(--green-600); margin-bottom: .75rem;
}

/* ---------- Botões ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  padding: .9rem 1.5rem; border-radius: 999px; border: 2px solid transparent;
  font: inherit; font-weight: 700; font-size: 1rem; text-decoration: none; cursor: pointer;
  transition: transform .15s ease, background-color .2s ease, box-shadow .2s ease, color .2s ease;
}
.btn svg { width: 1.25em; height: 1.25em; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--green-600); color: #fff; box-shadow: 0 8px 20px rgba(63, 127, 90, .3); }
.btn-primary:hover { background: var(--green-700); }
.btn-ghost { border-color: var(--green-500); color: var(--green-700); background: transparent; }
.btn-ghost:hover { background: var(--green-50); }
.btn-light { background: #fff; color: var(--green-800); }
.btn-light:hover { background: var(--green-50); }
.btn-sm { padding: .55rem 1.1rem; font-size: .95rem; }
.btn-block { width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.site-header.is-scrolled { border-color: var(--line); box-shadow: 0 4px 18px rgba(29, 59, 43, .06); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); }

.brand { display: flex; align-items: center; gap: .7rem; text-decoration: none; }
.brand img { width: 52px; height: auto; }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-text strong { font-size: 1.35rem; font-weight: 800; color: var(--green-600); letter-spacing: .02em; }
.brand-text small { font-size: .78rem; font-weight: 700; color: var(--muted); letter-spacing: .12em; text-transform: uppercase; }

.site-nav { display: flex; align-items: center; gap: 1.75rem; }
.site-nav ul { display: flex; gap: 1.6rem; list-style: none; margin: 0; padding: 0; }
.site-nav ul a { color: var(--ink); text-decoration: none; font-weight: 600; position: relative; }
.site-nav ul a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 2px;
  background: var(--lime); transform: scaleX(0); transition: transform .2s ease;
}
.site-nav ul a:hover::after, .site-nav ul a.is-active::after { transform: scaleX(1); }

.nav-toggle { display: none; background: none; border: 0; padding: 10px; cursor: pointer; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--green-900); margin: 5px 0; transition: transform .2s ease, opacity .2s ease; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 880px) {
  .nav-toggle { display: block; }
  .site-nav {
    position: fixed; inset: var(--header-h) 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 1rem;
    padding: 1.25rem 1.25rem 1.75rem; background: #fff; border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow); transform: translateY(-8px); opacity: 0; visibility: hidden;
    transition: opacity .2s ease, transform .2s ease, visibility .2s;
  }
  .site-nav.is-open { opacity: 1; transform: none; visibility: visible; }
  .site-nav ul { flex-direction: column; gap: .25rem; }
  .site-nav ul a { display: block; padding: .7rem .25rem; font-size: 1.1rem; }
  .site-nav ul a::after { display: none; }
}

/* ---------- Hero ---------- */
.hero {
  background:
    radial-gradient(1200px 500px at 85% -10%, var(--green-100), transparent 60%),
    linear-gradient(180deg, #fff, var(--green-50));
  padding: clamp(3rem, 7vw, 6rem) 0 clamp(3.5rem, 7vw, 6rem);
  overflow: hidden;
}
.hero-inner > * { min-width: 0; }
.hero-inner { display: grid; grid-template-columns: 1.15fr .85fr; gap: 3rem; align-items: center; }
.hero h1 span { color: var(--green-600); }
.hero .lead { font-size: 1.2rem; color: var(--muted); max-width: 34rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .9rem; margin: 2rem 0 2.5rem; }

.hero-facts { display: flex; flex-wrap: wrap; gap: 1rem 2.25rem; list-style: none; margin: 0; padding: 0; }
.hero-facts li { display: flex; flex-direction: column; padding-left: 1rem; border-left: 3px solid var(--lime); }
.hero-facts strong { font-size: 1.15rem; color: var(--green-800); }
.hero-facts span { font-size: .92rem; color: var(--muted); }

.hero-art { position: relative; display: grid; place-items: center; }
.hero-blob {
  position: absolute; width: 112%; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fff 0 40%, var(--green-100) 70%);
  box-shadow: inset 0 0 0 1px var(--line);
}
.hero-art img { position: relative; width: min(100%, 420px); border-radius: 50%; mix-blend-mode: multiply; }

@media (max-width: 880px) {
  .hero-inner { grid-template-columns: 1fr; text-align: left; }
  .hero-art { order: -1; max-width: 230px; margin: 0 auto; }
}

/* ---------- Seções ---------- */
.section { padding: clamp(4rem, 8vw, 6.5rem) 0; }
.section-tint { background: var(--green-50); }

.section-head { max-width: 640px; margin: 0 auto 3rem; text-align: center; }
.section-head p:last-child { color: var(--muted); font-size: 1.1rem; }

/* ---------- Serviços ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
@media (max-width: 960px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .cards { grid-template-columns: 1fr; } }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 2rem 1.75rem; transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.card:hover { box-shadow: var(--shadow-lg); border-color: transparent; }
.card p { color: var(--muted); margin: 0; }
.card-icon {
  width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center;
  background: var(--green-100); color: var(--green-600); margin-bottom: 1.25rem;
}
.card-icon svg { width: 30px; height: 30px; }
.card-cta {
  background: linear-gradient(140deg, var(--green-600), var(--green-800)); color: #e7f2eb; border: 0;
  display: flex; flex-direction: column; align-items: flex-start;
}
.card-cta h3 { color: #fff; }
.card-cta p { color: #d4e6da; margin-bottom: 1.5rem; }
.card-cta .btn { margin-top: auto; }

/* ---------- Equipe ---------- */
.team { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.4rem; }
@media (max-width: 1040px) { .team { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .team { grid-template-columns: 1fr; } }
.member {
  background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow);
  display: flex; flex-direction: column;
}
.member-body { padding: 1.5rem 1.6rem 1.75rem; }
.member h3 { font-size: 1.15rem; margin-bottom: .15rem; }
.member .cro { font-size: .85rem; font-weight: 700; color: var(--green-600); letter-spacing: .04em; margin-bottom: .8rem; }
.member p { color: var(--muted); }
.tags { display: flex; flex-wrap: wrap; gap: .45rem; list-style: none; margin: 0; padding: 0; }
.tags li {
  font-size: .82rem; font-weight: 700; color: var(--green-700);
  background: var(--green-100); padding: .25rem .7rem; border-radius: 999px;
}

/* ---------- Sobre ---------- */
.about { display: grid; grid-template-columns: 1fr 1fr; gap: 3.5rem; align-items: center; }
.about-copy p { color: var(--muted); font-size: 1.12rem; }
.about-cards { display: grid; gap: 1.2rem; }
.value {
  display: flex; gap: 1.2rem; padding: 1.6rem; border-radius: var(--radius);
  background: var(--green-50); border: 1px solid var(--line);
}
.value svg { flex: none; width: 44px; height: 44px; padding: 10px; border-radius: 12px; background: #fff; color: var(--green-600); }
.value h3 { margin-bottom: .3rem; }
.value p { margin: 0; color: var(--muted); }
@media (max-width: 880px) { .about { grid-template-columns: 1fr; gap: 2rem; } }


/* ---------- Contato ---------- */
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: 3.5rem; align-items: start; }
.contact-info > p { color: var(--muted); }
.contact-list { list-style: none; margin: 2rem 0 0; padding: 0; display: grid; gap: 1.25rem; }
.contact-list li { display: flex; gap: 1rem; align-items: flex-start; }
.contact-list svg { flex: none; width: 46px; height: 46px; padding: 11px; border-radius: 12px; background: var(--green-100); color: var(--green-600); }
.contact-list span { display: block; font-size: .85rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.contact-list a { color: var(--ink); font-weight: 700; text-decoration: none; overflow-wrap: anywhere; }
.contact-list a:hover { color: var(--green-600); }
.contact-list .hours { margin: 0; font-weight: 700; color: var(--ink); }

.contact-form {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 2rem; box-shadow: var(--shadow);
}
.field { margin-bottom: 1.15rem; }
.field label { display: block; font-weight: 700; margin-bottom: .4rem; font-size: .95rem; }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; color: var(--ink);
  padding: .8rem 1rem; border: 1.5px solid var(--line); border-radius: var(--radius-sm); background: #fbfdfc;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.field textarea { resize: vertical; min-height: 130px; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--green-500); box-shadow: 0 0 0 4px rgba(91, 159, 117, .18); background: #fff;
}
.field [aria-invalid="true"] { border-color: #c0392b; }
.form-error { color: #b03a2e; font-weight: 600; font-size: .95rem; }

#contato { padding-bottom: 0; }
.map { margin-top: clamp(3rem, 6vw, 4.5rem); }
.map iframe { display: block; width: 100%; height: 380px; border: 0; filter: saturate(.85); }

@media (max-width: 880px) { .contact { grid-template-columns: 1fr; gap: 2.5rem; } }

/* ---------- Rodapé ---------- */
.site-footer { background: var(--green-900); color: #b9cec1; padding: 3rem 0 3.5rem; font-size: .95rem; }
.footer-inner { display: flex; gap: 2rem; align-items: center; }
.footer-inner img { width: 110px; height: auto; border-radius: 50%; flex: none; }
.site-footer p { margin: 0 0 .35rem; }
.site-footer strong { color: #fff; }
.site-footer a { color: #e2efe6; }
.site-footer .legal { font-size: .85rem; color: #8fab9a; margin-top: .6rem; }
@media (max-width: 600px) { .footer-inner { flex-direction: column; text-align: center; } }

/* ---------- WhatsApp flutuante ---------- */
.whatsapp-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 60;
  width: 60px; height: 60px; border-radius: 50%; display: grid; place-items: center;
  background: var(--wa); color: #fff; box-shadow: 0 10px 25px rgba(37, 211, 102, .45);
  transition: transform .2s ease;
}
.whatsapp-float svg { width: 32px; height: 32px; }
.whatsapp-float:hover { transform: scale(1.08); }

/* ---------- Animação de entrada ---------- */
.reveal { opacity: 0; translate: 0 22px; transition: opacity .7s ease var(--delay, 0s), translate .7s cubic-bezier(.2,.8,.2,1) var(--delay, 0s), transform .25s ease, box-shadow .25s ease, border-color .25s ease; }
.reveal.is-visible { opacity: 1; translate: 0 0; }
