/* ============================================================
   Vilma Aires · Podologia em domicílio — style.css
   ============================================================ */

/* Atkinson Hyperlegible Next (fonte variável, SIL OFL 1.1, ver fonts/OFL.txt) */
@font-face {
  font-family: 'Atkinson Hyperlegible Next';
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url('fonts/atkinson-hyperlegible-next-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

:root {
  --white:      #FFFFFF;
  --mint:       #EEF6F5;
  --mint-deep:  #DCEDEB;
  --line:       #CFE2E0;
  --teal:       #0B6E6D;
  --teal-hover: #085958;
  --teal-soft:  #2A9C9A;
  --leaf:       #3E9B6A;
  --ink:        #12302F;
  --ink-soft:   #3D5958;
  --wa:         #0F7A37;
  --wa-hover:   #0B6430;
  --focus:      #12302F;
  --control:    #6B8E8B;

  --radius:     8px;
  --radius-lg:  20px;
  --shadow:     0 1px 2px rgba(18, 48, 47, 0.06), 0 8px 24px rgba(18, 48, 47, 0.08);
  --shadow-lg:  0 2px 4px rgba(18, 48, 47, 0.05), 0 18px 48px rgba(18, 48, 47, 0.12);

  --font: 'Atkinson Hyperlegible Next', 'Atkinson Hyperlegible', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --gutter: clamp(20px, 4vw, 40px);
  --section: clamp(64px, 9vw, 120px);
}

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: var(--font);
  font-size: 1.125rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

::selection { background: #BFE3E0; color: var(--ink); }

img { display: block; max-width: 100%; height: auto; }
svg { flex-shrink: 0; }

a { color: var(--teal); text-underline-offset: 0.2em; text-decoration-thickness: 1.5px; }
a:hover { color: var(--teal-hover); }

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 6px;
  box-shadow: 0 0 0 3px var(--white);
}

h1, h2, h3 { line-height: 1.12; letter-spacing: -0.02em; text-wrap: balance; }
h2 { font-size: clamp(1.9rem, 3.4vw, 2.75rem); font-weight: 800; }
h3 { font-size: 1.3rem; font-weight: 700; letter-spacing: -0.01em; }
p { text-wrap: pretty; }

.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 var(--gutter); }

.skip {
  position: absolute; left: 16px; top: -60px; z-index: 200;
  background: var(--ink); color: var(--white); padding: 10px 16px; border-radius: var(--radius);
}
.skip:focus, .skip:hover { top: 12px; color: var(--white); }

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 56px; padding: 0 28px;
  font: inherit; font-weight: 700; font-size: 1.125rem;
  color: var(--white); background: var(--teal);
  border: 0; border-radius: var(--radius);
  text-decoration: none; cursor: pointer;
  transition: background-color .2s ease, transform .2s cubic-bezier(.16, 1, .3, 1), box-shadow .2s ease;
}
.btn:hover { background: var(--teal-hover); color: var(--white); }
.btn:active { transform: translateY(1px); }
.btn svg { width: 24px; height: 24px; }
.btn-small { min-height: 46px; padding: 0 20px; font-size: 1rem; }
.btn-block { width: 100%; }
.btn-whatsapp { background: var(--wa); box-shadow: 0 6px 18px rgba(15, 122, 55, 0.25); }
.btn-whatsapp:hover { background: var(--wa-hover); }

/* ── Header ── */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--white);
  border-bottom: 1px solid transparent;
  transition: border-color .25s ease, box-shadow .25s ease;
}
.site-header.scrolled { border-color: var(--line); box-shadow: 0 4px 16px rgba(18, 48, 47, 0.05); }
.header-inner { display: flex; align-items: center; gap: 24px; min-height: 76px; }

.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); margin-right: auto; }
.brand-mark { width: 42px; height: 62px; overflow: hidden; flex-shrink: 0; }
.brand-mark img { width: 124px; height: 124px; max-width: none; margin: -29px 0 0 -12px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text strong { font-size: 1.2rem; font-weight: 800; letter-spacing: 0.01em; color: var(--teal); }
.brand-text span { font-size: 0.9rem; color: var(--ink-soft); }

.main-nav { display: flex; gap: 8px; }
.main-nav a {
  padding: 10px 14px; border-radius: 8px;
  color: var(--ink); text-decoration: none; font-weight: 500;
  transition: background-color .2s ease;
}
.main-nav a:hover { background: var(--mint); color: var(--ink); }

/* ── Hero ── */
.hero { padding: clamp(24px, 3.5vw, 48px) 0 var(--section); }
.hero-grid {
  display: grid; column-gap: clamp(40px, 6vw, 88px); row-gap: 40px;
  grid-template-columns: minmax(0, 1fr) minmax(0, 520px);
  grid-template-rows: auto 1fr;
  grid-template-areas: "copy form" "facts form";
  align-items: start;
}
.hero-copy { grid-area: copy; padding-top: clamp(0px, 2.5vw, 40px); }
.hero h1 {
  font-size: clamp(2.5rem, 5.2vw, 4.25rem);
  font-weight: 800; letter-spacing: -0.035em; line-height: 1.02;
  max-width: 17ch;
}
.lede-short { display: none; }
.lede { margin-top: 20px; font-size: clamp(1.15rem, 1.6vw, 1.3rem); color: var(--ink-soft); max-width: 36em; }

.booking {
  grid-area: form;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: clamp(20px, 3vw, 32px);
  display: grid; gap: 22px;
  max-width: 600px;
}
.booking-title { font-size: 1.75rem; letter-spacing: -0.015em; }

fieldset { border: 0; padding: 0; min-width: 0; }
legend, .field label { font-weight: 700; font-size: 1rem; margin-bottom: 10px; padding: 0; color: var(--ink); }
.optional { font-weight: 400; color: var(--ink-soft); }

.options { display: grid; gap: 8px; }
.options.two { grid-template-columns: 1fr 1fr; }
.options.stack { grid-template-columns: 1fr 1fr; }

.opt { position: relative; display: block; cursor: pointer; }
.opt input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.opt span {
  display: flex; align-items: center; gap: 10px;
  min-height: 52px; height: 100%; padding: 10px 14px;
  border: 1.5px solid var(--control); border-radius: var(--radius);
  background: var(--white); font-weight: 500; line-height: 1.25;
  transition: border-color .18s ease, background-color .18s ease;
}
.opt span svg {
  width: 22px; height: 22px; padding: 3px;
  border: 1.5px solid var(--control); border-radius: 50%;
  color: transparent;
  transition: background-color .18s ease, border-color .18s ease, color .18s ease;
}
.opt:hover span { border-color: var(--teal-soft); }
.opt input:checked + span { border-color: var(--teal); background: var(--mint); box-shadow: inset 0 0 0 1px var(--teal); font-weight: 700; }
.opt input:checked + span svg { background: var(--teal); border-color: var(--teal); color: var(--white); }
.opt input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: 2px; }

.row-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: end; }
.field { display: grid; }
.field input {
  min-height: 52px; padding: 0 14px;
  font: inherit; color: var(--ink);
  border: 1.5px solid var(--control); border-radius: var(--radius); background: var(--white);
  caret-color: var(--teal);
  transition: border-color .18s ease;
}
.field input::placeholder { color: #5F7A78; }
.field input:hover { border-color: var(--teal-soft); }
.field input:focus { border-color: var(--teal); outline: 3px solid var(--focus); outline-offset: 2px; }

.preview { background: #E7F1EE; border-radius: var(--radius); padding: 14px 14px 16px; }
.preview-label { display: block; font-size: 0.85rem; font-weight: 700; color: var(--ink-soft); margin-bottom: 8px; }
.bubble {
  position: relative;
  background: #D9FDD3; color: #11241A;
  padding: 10px 14px; border-radius: 12px 12px 4px 12px;
  margin-left: 12%;
  font-size: 1rem; line-height: 1.45;
  white-space: pre-line;
  box-shadow: 0 1px 1px rgba(17, 36, 26, 0.12);
}
.bubble.changed { animation: bubble-in .45s cubic-bezier(.16, 1, .3, 1); }
@keyframes bubble-in {
  from { opacity: .35; filter: blur(2px); transform: translateY(4px); }
  to   { opacity: 1; filter: blur(0); transform: none; }
}
.booking-note { font-size: 0.95rem; color: var(--ink-soft); margin-top: -8px; }


/* ── Quem é a Vilma ── */
.split-head p + p { margin-top: 12px; }
.training-title { font-size: 1rem; font-weight: 700; letter-spacing: 0; color: var(--ink-soft); margin-bottom: 10px; }
.courses + .training-title { margin-top: 40px; }
.courses { list-style: none; padding: 0; border-top: 1px solid var(--line); }
.course {
  display: grid; grid-template-columns: 4.5rem minmax(0, 1fr); gap: 16px;
  padding: 18px 0; border-bottom: 1px solid var(--line);
}
.course-year {
  font-weight: 700; color: var(--teal);
  font-variant-numeric: tabular-nums; line-height: 1.5;
}
.course-name { font-weight: 700; font-size: clamp(1.1rem, 1.5vw, 1.2rem); line-height: 1.3; }
.course-meta { margin-top: 4px; font-size: 1rem; color: var(--ink-soft); }
.course-main { padding: 22px 0; }
.course-main .course-name { font-size: clamp(1.3rem, 2.2vw, 1.6rem); letter-spacing: -0.01em; color: var(--teal); }

/* ── Facts ── */
.facts {
  grid-area: facts;
  list-style: none; padding: 28px 0 0;
  border-top: 1px solid var(--line);
  display: grid; gap: 22px;
  max-width: 36em;
}
.fact { display: flex; gap: 16px; align-items: flex-start; }
.fact svg { width: 36px; height: 36px; color: var(--teal); margin-top: 2px; }
.fact strong { display: block; font-size: 1.15rem; margin-bottom: 2px; }
.fact p { color: var(--ink-soft); font-size: 1.02rem; }
.fact p strong { color: var(--ink); }

/* ── Sections ── */
.section { padding: var(--section) 0; }
.section-tint { background: var(--mint); }

.split { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.split-head { position: sticky; top: 112px; }
.split-head p { margin-top: 16px; color: var(--ink-soft); max-width: 30em; }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; margin-top: 24px; font-weight: 700; text-decoration: none; }
.link-arrow svg { width: 20px; height: 20px; transition: transform .25s cubic-bezier(.16, 1, .3, 1); }
.link-arrow:hover svg { transform: translateX(4px); }

.services { list-style: none; padding: 0; border-top: 1px solid var(--line); }
.service { padding: 32px 0; border-bottom: 1px solid var(--line); display: grid; gap: 10px; }
.service h3 { font-size: clamp(1.4rem, 2.2vw, 1.75rem); color: var(--teal); }
.service p { max-width: 62ch; }
.service .for {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 1rem; color: var(--ink-soft); font-weight: 500;
}
.service .for::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--leaf); }

.center-head { text-align: center; }
.steps {
  list-style: none; padding: 0;
  margin-top: clamp(40px, 5vw, 64px);
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px;
  position: relative;
}
.steps::before {
  content: ""; position: absolute; top: 27px; left: calc(16.66% + 28px); right: calc(16.66% + 28px);
  border-top: 2px dashed var(--teal-soft);
}
.step { text-align: center; display: grid; justify-items: center; gap: 12px; position: relative; }
.step-dot {
  width: 56px; height: 56px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--teal); color: var(--white);
  font-weight: 800; font-size: 1.35rem;
  box-shadow: 0 0 0 8px var(--mint);
}
.step h3 { margin-top: 8px; }
.step p { color: var(--ink-soft); max-width: 30ch; }

.checks { list-style: none; padding: 0; border-top: 1px solid var(--line); }
.checks li { display: flex; gap: 14px; align-items: center; padding: 22px 0; border-bottom: 1px solid var(--line); font-size: clamp(1.15rem, 1.6vw, 1.3rem); font-weight: 500; }
.checks svg { width: 32px; height: 32px; padding: 5px; border-radius: 50%; background: var(--mint-deep); color: var(--teal); }

.family { padding: 0; }
.family-panel {
  background: var(--mint);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(28px, 5vw, 56px);
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  grid-template-rows: auto 1fr;
  grid-template-areas: "copy info" "action info";
  column-gap: clamp(28px, 5vw, 72px); row-gap: 28px;
}
.family-copy { grid-area: copy; }
.family-info { grid-area: info; align-self: center; }
.family-action { grid-area: action; justify-self: start; align-self: start; }
.family-copy p { margin-top: 16px; color: var(--ink-soft); max-width: 34em; }
.family-action svg { width: 20px; height: 20px; transition: transform .25s cubic-bezier(.16, 1, .3, 1); }
.family-action:hover svg { transform: translateX(4px); }
.family-info-title { font-weight: 700; font-size: 1rem; color: var(--ink-soft); margin-bottom: 10px; }
.family-items { list-style: none; padding: 0; border-top: 1px solid var(--line); }
.family-items li {
  display: flex; align-items: center; gap: 16px;
  padding: 16px 0; border-bottom: 1px solid var(--line);
  font-weight: 700; font-size: clamp(1.1rem, 1.5vw, 1.2rem); line-height: 1.3;
}
.family-items svg {
  width: 44px; height: 44px; padding: 10px;
  border-radius: 50%; background: var(--white); color: var(--teal);
}

.faq-wrap { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 22px 0; font-weight: 700; font-size: 1.2rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary svg { width: 24px; height: 24px; color: var(--teal); transition: transform .3s cubic-bezier(.16, 1, .3, 1); }
.faq details[open] summary svg { transform: rotate(180deg); }
.faq summary:hover { color: var(--teal); }
.faq details p { padding: 0 0 24px; color: var(--ink-soft); max-width: 60ch; }

.closing { background: var(--mint); padding: clamp(56px, 8vw, 104px) 0; }
.closing-inner { display: flex; flex-direction: column; align-items: center; gap: 28px; text-align: center; }
.closing h2 { max-width: 18ch; }

/* ── Footer ── */
.site-footer { padding: 48px 0 32px; background: var(--white); }
.footer-inner { display: flex; align-items: center; gap: 32px; flex-wrap: wrap; }
.footer-brand img { width: 150px; }
.footer-info { display: grid; gap: 10px; color: var(--ink-soft); }
.footer-info strong { color: var(--ink); }
.footer-info a { font-weight: 700; }
.footer-contact { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.footer-contact a { display: inline-flex; align-items: center; min-height: 44px; }
.footer-bottom { margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 0.95rem; color: var(--ink-soft); }

/* ── Floating WhatsApp ── */
.wa-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 90;
  width: 60px; height: 60px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--wa); color: var(--white);
  box-shadow: 0 6px 20px rgba(17, 36, 26, 0.25);
  opacity: 0; transform: translateY(16px) scale(.9); pointer-events: none;
  transition: opacity .3s ease, transform .35s cubic-bezier(.16, 1, .3, 1), background-color .2s ease;
}
.wa-float.show { opacity: 1; transform: none; pointer-events: auto; }
.wa-float:hover { background: var(--wa-hover); color: var(--white); }
.wa-float svg { width: 30px; height: 30px; }
@media (prefers-reduced-motion: reduce) {
  .wa-float { transform: none; transition: opacity .2s linear; }
}

/* ── Responsive ── */
@media (max-width: 960px) {
  .main-nav { display: none; }
  .hero-grid { grid-template-columns: 1fr; grid-template-rows: none; grid-template-areas: "copy" "form" "facts"; row-gap: 28px; }
  .hero-copy { padding-top: 0; }
  .facts { max-width: none; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
  .hero h1 { max-width: 14ch; }
  .booking { max-width: none; }
  .split, .faq-wrap { grid-template-columns: 1fr; }
  .split-head { position: static; }
  .steps { grid-template-columns: 1fr; gap: 0; max-width: 520px; margin-inline: auto; }
  .steps::before { top: 28px; bottom: 28px; left: 27px; right: auto; width: 0; border-top: 0; border-left: 2px dashed var(--teal-soft); }
  .step { text-align: left; grid-template-columns: 56px 1fr; justify-items: start; column-gap: 20px; row-gap: 4px; padding-bottom: 36px; }
  .step:last-child { padding-bottom: 0; }
  .step-dot { grid-row: span 2; }
  .step h3 { margin-top: 12px; }
  .center-head { text-align: left; max-width: 520px; margin-inline: auto; }
  .family-panel { grid-template-columns: 1fr; grid-template-rows: none; grid-template-areas: "copy" "info" "action"; row-gap: 24px; }
}

@media (max-width: 560px) {
  body { font-size: 1.0625rem; }
  .header-inner { min-height: 68px; gap: 12px; }
  .brand-text span { display: none; }
  .lede-long { display: none; }
  .lede-short { display: inline; }
  .lede { margin-top: 12px; }
  .booking { gap: 18px; padding: 18px; }
  .hero-grid { row-gap: 20px; }
  .booking-title { font-size: 1.625rem; }
  .opt span { min-height: 48px; padding: 8px 10px; gap: 8px; font-size: 1rem; }
  .course { grid-template-columns: 3.5rem minmax(0, 1fr); gap: 12px; }
  .row-fields { grid-template-columns: 1fr; }
  .bubble { margin-left: 6%; }
  .family-panel { padding: 28px 20px; }
  .family-action { justify-self: stretch; }
  .closing .btn { width: 100%; }
  .wa-float { right: 16px; bottom: 16px; }
}
