/* ==========================================================================
   Vita Care - Cuidados domiciliares
   Paleta da logo: creme, azul-marinho, verde-sálvia (acento) e dourado nos detalhes.
   Texto um pouco maior e bastante respiro: quem lê costuma ser a família de um idoso.
   ========================================================================== */

:root {
  --cream:    #f7f1e6;
  --cream-2:  #efe6d6;
  --white:    #fffdf9;
  --navy:     #14315c;
  --navy-2:   #1b3f73;
  --sage:     #5f8f7d;
  --sage-dk:  #3f6f5e;   /* verde para texto e botões (AA) */
  --sage-lt:  #e3efe9;
  --gold:     #c9a35a;
  --ink:      #1a2536;
  --muted:    #5a6475;
  --line:     rgba(20,49,92,.12);
  --line-2:   rgba(20,49,92,.2);

  --radius:   20px;
  --shadow-sm: 0 1px 2px rgba(20,49,92,.05), 0 10px 28px rgba(20,49,92,.07);
  --shadow-md: 0 26px 60px rgba(20,49,92,.16);
  --maxw:     1160px;

  --font-body: "Nunito Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-head: "Lora", Georgia, serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body { margin: 0; font-family: var(--font-body); font-size: 18px; line-height: 1.7; color: var(--ink); background: var(--white); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; }

h1, h2, h3 { font-family: var(--font-head); font-weight: 600; line-height: 1.15; letter-spacing: -.01em; margin: 0; color: var(--navy); text-wrap: balance; }
h1 em, h2 em { font-style: italic; color: var(--sage-dk); }

.wrap { width: min(100% - 40px, var(--maxw)); margin-inline: auto; }
section { padding: clamp(64px, 9vw, 112px) 0; }

.eyebrow { font-size: .8rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--sage-dk); margin: 0 0 14px; display: flex; align-items: center; gap: 12px; }
.eyebrow::before { content: ""; width: 28px; height: 2px; background: var(--gold); }
.section-head { max-width: 58ch; margin-bottom: 46px; }
.section-head h2 { font-size: clamp(2rem, 4.2vw, 3rem); }
.section-head p:not(.eyebrow) { color: var(--muted); margin: 16px 0 0; }

.skip { position: absolute; left: 12px; top: -60px; z-index: 200; background: var(--navy); color: #fff; padding: 10px 16px; border-radius: 8px; transition: top .2s; font-weight: 700; }
.skip:focus { top: 12px; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }

/* Botões (grandes, fáceis de tocar) */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .55em; font-family: var(--font-body); font-weight: 700; font-size: 1rem; padding: .9em 1.6em; border-radius: 99px; border: 2px solid transparent; cursor: pointer; text-decoration: none; transition: transform .15s ease, background .2s, border-color .2s, color .2s; white-space: nowrap; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--sage-dk); color: #fff; box-shadow: 0 10px 24px rgba(63,111,94,.28); }
.btn-primary:hover { background: #335c4e; }
.btn-outline { color: var(--navy); border-color: var(--line-2); background: transparent; }
.btn-outline:hover { border-color: var(--navy); }
.btn-lg { font-size: 1.06rem; padding: 1em 1.8em; }
.btn .ph { font-size: 1.3em; }

/* Marca */
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.brand img { width: 50px; height: 50px; border-radius: 50%; }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-text b { font-family: var(--font-head); font-weight: 600; font-size: 1.45rem; color: var(--navy); }
.brand-text b span { color: var(--sage-dk); }
.brand-text small { font-size: .62rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin-top: 3px; }

/* Header */
.site-header { position: fixed; inset: 0 0 auto 0; z-index: 100; height: 80px; display: flex; align-items: center; }
.site-header::before { content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(255,253,249,.93); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; gap: 24px; width: min(100% - 40px, 1240px); }
.site-header .brand { margin-right: auto; }
.nav { display: flex; align-items: center; gap: 24px; }
.nav a { font-weight: 600; font-size: .98rem; color: var(--ink); text-decoration: none; padding: 6px 0; position: relative; }
.nav a:not(.btn)::after { content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: 0; background: var(--gold); transition: width .22s; }
.nav a:hover::after, .nav a:focus-visible::after { width: 100%; }
.nav .btn { padding: .62em 1.3em; color: #fff; }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; width: 48px; height: 48px; color: var(--navy); }
.nav-toggle .ph { font-size: 2rem; }

/* Hero */
.hero { position: relative; padding: 0; background: var(--cream); overflow: hidden; isolation: isolate; }
.hero::before { content: ""; position: absolute; right: -12%; bottom: -40%; width: 70%; aspect-ratio: 1; border-radius: 50%; z-index: -1; background: radial-gradient(circle, rgba(95,143,125,.22), transparent 65%); }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(30px, 5vw, 70px); align-items: center; padding-top: 150px; padding-bottom: clamp(70px, 9vw, 110px); }
.hero-tag { display: inline-flex; align-items: center; gap: .5em; font-weight: 700; font-size: .9rem; color: var(--sage-dk); background: var(--white); border: 1px solid var(--line); padding: .5em 1.1em; border-radius: 99px; margin: 0 0 22px; }
.hero-tag .ph { font-size: 1.2em; }
.hero h1 { font-size: clamp(2.4rem, 5.2vw, 4rem); }
.hero-lead { font-size: 1.16rem; color: var(--muted); max-width: 46ch; margin: 22px 0 32px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-logo { position: relative; justify-self: center; width: min(100%, 380px); aspect-ratio: 1; display: grid; place-items: center; }
.hero-logo img { width: 86%; height: auto; border-radius: 50%; box-shadow: var(--shadow-md), 0 0 0 12px var(--white), 0 0 0 13px var(--line); }
.hero-note { position: absolute; display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: .95rem; color: var(--navy); background: var(--white); border: 1px solid var(--line); border-radius: 99px; padding: 10px 16px; box-shadow: var(--shadow-sm); }
.hero-note .ph { color: var(--sage-dk); font-size: 1.3rem; }
.hero-note-a { left: -6%; top: 10%; }
.hero-note-b { right: -2%; bottom: 10%; }

/* Cuidados */
.care { background: var(--white); }
.care-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.care-card { background: var(--cream); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 26px; }
.care-card .ph { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: var(--sage-lt); color: var(--sage-dk); font-size: 1.8rem; }
.care-card h3 { font-size: 1.35rem; margin-top: 18px; }
.care-card p { color: var(--muted); margin: 8px 0 0; font-size: 1rem; }
.care-note { margin: 28px 0 0; display: flex; align-items: flex-start; gap: 10px; color: var(--muted); font-size: 1rem; }
.care-note .ph { color: var(--gold); font-size: 1.4rem; flex: none; margin-top: 3px; }

/* Formatos */
.formats { background: var(--cream); }
.format-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.format { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 28px; text-align: center; }
.format-icon { width: 68px; height: 68px; border-radius: 50%; display: grid; place-items: center; margin: 0 auto 18px; background: var(--cream); color: var(--gold); border: 1px solid var(--line); }
.format-icon .ph { font-size: 2.1rem; }
.format h3 { font-size: 1.5rem; }
.format p { color: var(--muted); margin: 10px 0 0; font-size: 1rem; }
.format-featured { background: var(--navy); border-color: transparent; }
.format-featured h3 { color: #fff; }
.format-featured p { color: rgba(255,255,255,.8); }
.format-featured .format-icon { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.16); }
.formats-cta { margin-top: 30px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 28px; }
.formats-cta p { margin: 0; font-family: var(--font-head); font-size: 1.2rem; color: var(--navy); }

/* Por que */
.why { background: var(--white); }
.why-grid { display: grid; grid-template-columns: .95fr 1.05fr; gap: clamp(30px, 5vw, 70px); align-items: center; }
.why h2 { font-size: clamp(2rem, 4.2vw, 3rem); }
.why-grid > div > p:not(.eyebrow) { color: var(--muted); margin: 16px 0 0; }
.why-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.why-list li { display: flex; gap: 16px; align-items: flex-start; background: var(--cream); border: 1px solid var(--line); border-radius: 16px; padding: 18px 20px; }
.why-list .ph { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: var(--white); color: var(--sage-dk); font-size: 1.5rem; flex: none; }
.why-list b { display: block; font-family: var(--font-head); font-size: 1.15rem; font-weight: 600; color: var(--navy); }
.why-list span { color: var(--muted); font-size: .98rem; }

/* Como funciona */
.steps { background: var(--navy); }
.steps .eyebrow { color: #a9d0c0; }
.steps h2 { color: #fff; }
.steps h2 em { color: #a9d0c0; }
.steps-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; counter-reset: none; }
.steps-grid li { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.13); border-radius: var(--radius); padding: 26px 22px; }
.steps-n { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: var(--gold); color: var(--navy); font-family: var(--font-head); font-weight: 700; font-size: 1.2rem; margin-bottom: 16px; }
.steps-grid h3 { color: #fff; font-size: 1.22rem; }
.steps-grid p { color: rgba(255,255,255,.78); font-size: .98rem; margin: 8px 0 0; }

/* Contato */
.contact { background: var(--cream); }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: start; }
.contact-grid > * { min-width: 0; }
.contact-info h2 { font-size: clamp(2rem, 4.2vw, 3rem); }
.contact-info > p:not(.eyebrow) { color: var(--muted); margin: 16px 0 26px; }
.contact-cards { display: grid; gap: 12px; }
.ccard { display: flex; gap: 14px; align-items: center; text-decoration: none; background: var(--white); border: 1px solid var(--line); border-radius: 16px; padding: 16px 20px; transition: transform .15s, border-color .2s; }
.ccard:hover { transform: translateY(-3px); border-color: var(--sage); }
.ccard .ic { width: 48px; height: 48px; border-radius: 50%; background: var(--sage-dk); color: #fff; display: grid; place-items: center; flex: none; }
.ccard .ic .ph { font-size: 1.5rem; }
.ccard b { display: block; color: var(--navy); line-height: 1.2; }
.ccard span span { color: var(--muted); font-size: 1rem; }
.form { background: var(--white); border: 1px solid var(--line); border-radius: 24px; padding: clamp(22px, 3vw, 34px); box-shadow: var(--shadow-sm); }
.form h3 { font-size: 1.5rem; margin-bottom: 6px; }
.form .lead { color: var(--muted); font-size: 1rem; margin: 0 0 20px; }
.field { display: grid; gap: 6px; margin-bottom: 16px; }
.field label { font-weight: 700; font-size: .95rem; color: var(--navy); }
.field input, .field select, .field textarea { width: 100%; min-width: 0; font-family: var(--font-body); font-size: 1.05rem; color: var(--ink); padding: 13px 15px; border: 1.5px solid var(--line-2); border-radius: 12px; background: var(--white); transition: border-color .18s, box-shadow .18s; }
.field input::placeholder, .field textarea::placeholder { color: #8a93a2; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--sage-dk); box-shadow: 0 0 0 3px rgba(95,143,125,.22); }
.field textarea { resize: vertical; min-height: 120px; }
.form .btn { width: 100%; }

/* FAQ */
.faq { background: var(--white); }
.faq-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(28px, 5vw, 64px); align-items: start; }
.faq .section-head { margin-bottom: 0; }
.faq-list { display: grid; gap: 12px; }
.faq details { background: var(--cream); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.faq summary { list-style: none; cursor: pointer; padding: 20px 24px; font-family: var(--font-head); font-weight: 600; font-size: 1.2rem; color: var(--navy); display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "\002B"; font-family: var(--font-body); font-size: 1.6rem; color: var(--sage-dk); transition: transform .2s; flex: none; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0; padding: 0 24px 22px; color: var(--muted); }

/* Footer */
.site-footer { background: #0e2445; color: rgba(255,255,255,.72); padding: 60px 0 104px; border-top: 4px solid var(--gold); }
.site-footer .brand-text b { color: #fff; }
.site-footer .brand-text b span { color: #a9d0c0; }
.site-footer .brand-text small { color: rgba(255,255,255,.6); }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.footer-brand p { margin: 16px 0 0; max-width: 38ch; font-size: 1rem; }
.footer-col h4 { font-size: .82rem; letter-spacing: .14em; text-transform: uppercase; color: #fff; margin: 0 0 14px; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; font-size: 1rem; }
.footer-col a { color: rgba(255,255,255,.78); text-decoration: none; }
.footer-col a:hover { color: #fff; }
.footer-col .ph { color: var(--gold); margin-right: 8px; }
.footer-bottom { margin-top: 40px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.13); display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: .88rem; color: rgba(255,255,255,.55); }
.footer-bottom a { color: #fff; text-decoration: none; font-weight: 700; }
.footer-bottom a:hover { color: var(--gold); }

/* WhatsApp flutuante */
.wa-float { position: fixed; right: 20px; bottom: 20px; z-index: 90; width: 64px; height: 64px; border-radius: 50%; background: #25d366; color: #fff; display: grid; place-items: center; box-shadow: 0 10px 30px rgba(37,211,102,.4); text-decoration: none; transition: transform .18s; }
.wa-float:hover { transform: scale(1.08); }
.wa-float .ph { font-size: 2.1rem; }

/* Reveal */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1 !important; transform: none !important; transition: none; } .ccard { transition: none !important; } }

/* Responsivo */
@media (max-width: 1024px) {
  .care-grid { grid-template-columns: repeat(2, 1fr); }
  .steps-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; padding-top: 124px; }
  .hero-logo { width: min(78%, 300px); order: -1; }
  .format-grid, .why-grid, .contact-grid, .faq-grid { grid-template-columns: 1fr; }
  .nav { position: fixed; inset: 80px 0 auto 0; flex-direction: column; align-items: stretch; gap: 0; background: var(--white); border-bottom: 1px solid var(--line); padding: 8px 20px 20px; box-shadow: var(--shadow-md); transform: translateY(-140%); transition: transform .28s ease; visibility: hidden; }
  .nav.open { transform: none; visibility: visible; }
  .nav a { padding: 16px 0; border-bottom: 1px solid var(--line); }
  .nav a::after { display: none; }
  .nav .btn { margin: 14px 0 0; padding: .9em 1.6em; border-bottom: 0; }
  .nav-toggle { display: grid; place-items: center; }
}
@media (max-width: 560px) {
  body { font-size: 17px; }
  .wrap { width: min(100% - 32px, var(--maxw)); }
  .care-grid, .steps-grid { grid-template-columns: 1fr; }
  .hero-cta .btn, .formats-cta .btn { flex: 1 1 100%; white-space: normal; }
  .hero-note { font-size: .85rem; padding: 8px 12px; }
  .hero-note-a { left: -8%; }
  .hero-note-b { right: -8%; }
  .footer-top { grid-template-columns: 1fr; }
}
