/* ==========================================================================
   Maiara Praça — Psicologia, Neuropsicologia e Psicopedagogia
   Site estático, sem dependências. Sem fontes externas (RGPD e velocidade).
   ========================================================================== */

@font-face {
  font-family: "Montserrat";
  src: url("../fonts/montserrat-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  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;
}

/* Amaranth Bold: a fonte do nome «Maiara Praça» na logo, usada nos títulos */
@font-face {
  font-family: "Amaranth";
  src: url("../fonts/amaranth-latin-700-normal.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
  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;
}

@font-face {
  font-family: "Amaranth";
  src: url("../fonts/amaranth-latin-700-italic.woff2") format("woff2");
  font-weight: 700;
  font-style: italic;
  font-display: swap;
  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;
}

/* Paleta derivada da logo: marrom #6d5d51 e creme #f6eee8 */
:root {
  --bg: #faf6f1;
  --surface: #ffffff;
  --tint: #f2e9e0;
  --ink: #2e2620;
  --muted: #66594f;
  --line: #e7dcd0;

  --primary: #6d5d51;
  --primary-dark: #54463c;
  --primary-soft: #ebe1d7;
  --accent: #d2a77c;
  --accent-strong: #9c6a3c;
  --accent-soft: #f3e3d3;
  --cream: #f6eee8;
  --dark: #4a3f36;

  --radius: 20px;
  --radius-sm: 12px;
  --shadow: 0 1px 2px rgb(46 38 32 / 6%), 0 12px 32px -12px rgb(46 38 32 / 20%);

  --font-body: "Montserrat", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-head: "Amaranth", Georgia, "Times New Roman", serif;

  --header-h: 72px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary-dark); text-underline-offset: 3px; }
a:hover { color: var(--primary); }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, p, figure { margin: 0; }

h1, h2, h3 { font-family: var(--font-head); line-height: 1.15; letter-spacing: 0; font-weight: 700; }
h1 { font-size: clamp(2.3rem, 5.4vw, 3.9rem); }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); }
h3 { font-size: 1.3rem; }

:focus-visible { outline: 3px solid var(--accent-strong); outline-offset: 3px; border-radius: 6px; }
.section-dark :focus-visible, .site-footer :focus-visible { outline-color: var(--accent); }

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

.skip-link {
  position: absolute; left: 1rem; top: -4rem; z-index: 100;
  background: var(--ink); color: #fff; padding: .6rem 1rem; border-radius: var(--radius-sm);
}
.skip-link:focus { top: 1rem; }

/* ---------- Botões ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .85rem 1.5rem; border-radius: 999px; border: 2px solid var(--primary);
  background: var(--primary); color: #fff; font-weight: 600; font-size: 1rem; line-height: 1.2;
  text-decoration: none; cursor: pointer;
  transition: background .2s, color .2s, transform .2s, box-shadow .2s;
}
.btn:hover { background: var(--primary-dark); border-color: var(--primary-dark); color: #fff; transform: translateY(-1px); box-shadow: 0 8px 20px -10px rgb(84 70 60 / 65%); }
.btn-ghost { background: transparent; color: var(--primary-dark); }
.btn-ghost:hover { background: var(--primary-soft); color: var(--primary-dark); box-shadow: none; }
.btn-light { background: #fff; border-color: #fff; color: var(--dark); }
.btn-light:hover { background: var(--accent-soft); border-color: var(--accent-soft); color: var(--dark); }
.btn-small { padding: .55rem 1.1rem; font-size: .95rem; }

/* ---------- Cabeçalho ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50; height: var(--header-h);
  background: rgb(250 246 241 / 88%); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent; transition: border-color .2s, box-shadow .2s;
}
.site-header.is-scrolled { border-color: var(--line); box-shadow: 0 6px 24px -18px rgb(46 38 32 / 40%); }
.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }

.brand { display: inline-flex; align-items: center; gap: .7rem; text-decoration: none; color: var(--primary); }
.brand:hover { color: var(--primary-dark); }
.brand-icon { height: 40px; width: auto; flex: none; }
.brand-word { height: 25px; width: auto; flex: none; }

.nav ul { display: flex; align-items: center; gap: 1.6rem; }
.nav a:not(.btn) { color: var(--ink); text-decoration: none; font-weight: 500; font-size: .98rem; padding: .3rem 0; border-bottom: 2px solid transparent; }
.nav a:not(.btn):hover { color: var(--primary); border-color: var(--accent); }

.nav-toggle { display: none; width: 44px; height: 44px; border: 0; background: transparent; border-radius: 12px; cursor: pointer; }
.nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after {
  display: block; width: 22px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .25s, opacity .25s;
}
.nav-toggle-bars { position: relative; margin: auto; }
.nav-toggle-bars::before, .nav-toggle-bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle-bars::before { top: -7px; }
.nav-toggle-bars::after { top: 7px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { top: 0; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { top: 0; transform: rotate(-45deg); }

/* ---------- Seções ---------- */
.section { padding-block: clamp(4rem, 9vw, 7rem); }
.section-tint { background: var(--tint); }
.section-head { max-width: 46rem; margin-bottom: clamp(2rem, 4vw, 3.25rem); }
.section-lead { color: var(--muted); font-size: 1.15rem; margin-top: 1rem; }
.eyebrow { font-size: .82rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--primary); margin-bottom: .9rem; }
.eyebrow-light { color: var(--accent); }
.section-head h2 + .section-lead { margin-top: 1rem; }

/* ---------- Hero ---------- */
.hero {
  padding-block: clamp(2.5rem, 6vw, 5rem) clamp(1.5rem, 4vw, 3rem);
  background:
    radial-gradient(60rem 30rem at 85% -10%, var(--accent-soft), transparent 60%),
    radial-gradient(45rem 28rem at -10% 10%, var(--primary-soft), transparent 55%),
    var(--bg);
}
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.hero h1 em { font-style: italic; color: var(--accent-strong); }
.lead { font-size: 1.1rem; color: var(--muted); margin-top: 1.4rem; max-width: 34rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: 2rem; }
.chips { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 2rem; }
.chips li { background: var(--surface); border: 1px solid var(--line); padding: .4rem .9rem; border-radius: 999px; font-size: .9rem; color: var(--muted); }

.hero-figure { position: relative; }
.hero-figure img { width: 100%; aspect-ratio: 4 / 3.4; object-fit: cover; border-radius: 32px 32px 32px 120px; box-shadow: var(--shadow); }
.float-card {
  position: absolute; left: -1.25rem; bottom: 1.75rem; max-width: 15.5rem;
  background: var(--surface); padding: 1rem 1.2rem; border-radius: var(--radius); box-shadow: var(--shadow);
  display: flex; flex-direction: column; font-size: .92rem; color: var(--muted); line-height: 1.4;
}
.float-card strong { color: var(--ink); font-family: var(--font-head); font-size: 1.05rem; margin-bottom: .15rem; }

.hero + .section { padding-top: clamp(2.5rem, 5vw, 4rem); }

/* ---------- Cartões ---------- */
.cards { display: grid; gap: 1.5rem; }
.cards.three { grid-template-columns: repeat(3, 1fr); }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 2rem 1.75rem; display: flex; flex-direction: column; gap: .9rem;
  transition: transform .25s, box-shadow .25s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card p { color: var(--muted); }
.icon { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 18px; background: var(--primary-soft); color: var(--primary-dark); margin-bottom: .3rem; }
.icon svg { width: 28px; height: 28px; }
.card-price { margin-top: auto; padding-top: 1rem; border-top: 1px dashed var(--line); font-size: .95rem; display: grid; gap: .35rem; }
.card-price li { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; color: var(--muted); }
.card-price strong { color: var(--primary-dark); font-family: var(--font-head); font-size: 1.1rem; white-space: nowrap; }

/* ---------- Quem somos ---------- */
.about-grid { display: grid; grid-template-columns: .95fr 1.05fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.about-figure img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; object-position: 62% 50%; border-radius: 120px 32px 32px 32px; box-shadow: var(--shadow); }
.about-copy h2 { margin-bottom: 1.2rem; }
.about-copy > p { color: var(--muted); }
.two-lists { display: grid; grid-template-columns: 1fr 1fr; gap: 1.75rem; margin-top: 2rem; }
.two-lists h3 { font-size: 1.1rem; margin-bottom: .8rem; color: var(--primary-dark); }

.ticks { display: grid; gap: .65rem; }
.ticks li { position: relative; padding-left: 1.9rem; color: var(--muted); font-size: 1rem; }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: .32em; width: 1.15rem; height: 1.15rem; border-radius: 50%;
  background: var(--primary-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2354463c' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12.5 4 4 8-9'/%3E%3C/svg%3E") center / 70% no-repeat;
}

/* ---------- Como funciona ---------- */
.steps { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; counter-reset: step; }
.step { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 2.25rem 2rem 2rem; }
.step-label { font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--primary); margin-top: .3rem; }
.step h3 { margin: .25rem 0 1.1rem; }
.step-num {
  position: absolute; top: -1.4rem; left: 1.75rem; display: grid; place-items: center;
  width: 2.8rem; height: 2.8rem; border-radius: 50%; background: var(--accent); color: var(--dark);
  font-family: var(--font-head); font-weight: 700; font-size: 1.3rem; box-shadow: 0 6px 16px -8px rgb(210 167 124 / 90%);
}

/* ---------- Orientação parental ---------- */
.section-dark { background: var(--dark); color: var(--cream); position: relative; overflow: hidden; }
.section-dark::before {
  content: ""; position: absolute; width: 34rem; height: 34rem; right: -10rem; top: -14rem; border-radius: 50%;
  background: radial-gradient(circle, rgb(210 167 124 / 24%), transparent 65%);
}
.section-dark h2 { color: #fff; }
.parental { position: relative; display: grid; grid-template-columns: 1.4fr .9fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.parental-copy p { color: #e3d8cc; margin-top: 1.1rem; max-width: 38rem; }
.parental-copy .parental-quote { font-family: var(--font-head); font-style: italic; font-weight: 700; font-size: clamp(1.5rem, 3vw, 2.1rem); color: var(--accent); margin-top: 1.2rem; line-height: 1.25; }
.parental-card { background: rgb(255 255 255 / 8%); border: 1px solid rgb(255 255 255 / 16%); border-radius: var(--radius); padding: 2rem; display: flex; flex-direction: column; gap: 1.2rem; align-items: flex-start; }
.parental-card p { color: var(--cream); font-size: 1.05rem; }
.parental-card strong { color: #fff; }
.badge { background: var(--accent); color: var(--dark); font-weight: 700; font-size: .8rem; letter-spacing: .04em; padding: .35rem .8rem; border-radius: 999px; }

/* ---------- Preços ---------- */
.price-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; align-items: start; }
.price-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 2rem 1.9rem; }
.price-card.featured { border: 2px solid var(--primary); box-shadow: var(--shadow); position: relative; }
.price-card h3 { margin-bottom: 1.2rem; }
.price-list { display: grid; }
.price-list li { display: flex; justify-content: space-between; align-items: baseline; gap: 1.25rem; padding: .95rem 0; border-top: 1px dashed var(--line); }
.price-list li:first-child { border-top: 0; padding-top: .2rem; }
.price-list small { display: block; color: var(--muted); font-size: .85rem; }
.price-list strong { font-family: var(--font-head); font-size: 1.3rem; color: var(--primary-dark); white-space: nowrap; }
.note { margin-top: 1.1rem; font-size: .9rem; color: var(--muted); }
.payments { display: flex; align-items: center; justify-content: center; gap: 1rem; margin-top: 2.5rem; color: var(--muted); flex-wrap: wrap; }
.payments img { height: 64px; width: auto; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: .4rem .7rem; }

/* ---------- Contactos ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.contact-actions { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: 2rem; }
.contact-list { display: grid; gap: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: .5rem 1.75rem; box-shadow: var(--shadow); }
.contact-list li { display: flex; flex-direction: column; gap: .15rem; padding: 1.1rem 0; border-top: 1px solid var(--line); }
.contact-list li:first-child { border-top: 0; }
.contact-label { font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.contact-list a { font-weight: 500; overflow-wrap: anywhere; }
.contact-list address { font-style: normal; }

/* ---------- Rodapé ---------- */
.site-footer { background: var(--dark); color: #d8cbbd; padding-top: 3.25rem; }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 2rem; }
.footer-brand { display: flex; flex-direction: column; gap: .55rem; font-size: .95rem; }
.footer-logo { display: flex; align-items: center; gap: .9rem; color: var(--cream); margin-bottom: .5rem; }
.footer-logo .brand-icon { height: 54px; }
.footer-logo .brand-word { height: 34px; }
.footer-areas { font-weight: 500; letter-spacing: .14em; text-transform: uppercase; font-size: .78rem; color: var(--cream); }
.footer-legal { display: flex; align-items: center; gap: 1rem; }
.footer-legal a { display: block; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: .4rem .7rem; }
.footer-legal img { height: 52px; width: auto; }
.footer-bottom { padding-block: 2rem 2.25rem; color: #d8cbbd; font-size: .9rem; }

/* ---------- Animações (só com JS; sem JS o conteúdo fica visível) ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .card { transition: none; }
}

/* ---------- Responsivo ---------- */
@media (max-width: 960px) {
  .hero-grid, .about-grid, .parental, .contact-grid { grid-template-columns: 1fr; }
  .cards.three { grid-template-columns: 1fr; }
  .steps, .price-grid { grid-template-columns: 1fr; }
  .hero-figure { order: -1; }
  .hero-figure img { aspect-ratio: 16 / 11; border-radius: 28px 28px 28px 80px; }
  .float-card { left: 1rem; bottom: 1rem; }
  .about-figure img { border-radius: 80px 28px 28px 28px; aspect-ratio: 4 / 3; }
  .step { margin-top: 1.4rem; }
}

@media (max-width: 860px) {
  .nav-toggle { display: inline-block; }
  .nav {
    position: absolute; inset: var(--header-h) 0 auto 0; background: var(--bg);
    border-bottom: 1px solid var(--line); box-shadow: 0 24px 40px -24px rgb(46 38 32 / 35%);
    max-height: 0; overflow: hidden; visibility: hidden; transition: max-height .3s ease, visibility .3s;
  }
  .nav.is-open { max-height: 28rem; visibility: visible; }
  .nav ul { flex-direction: column; align-items: stretch; gap: 0; padding: .75rem 1.25rem 1.5rem; }
  .nav li { border-bottom: 1px solid var(--line); }
  .nav li:last-child { border: 0; padding-top: 1rem; }
  .nav a:not(.btn) { display: block; padding: .9rem 0; border: 0; font-size: 1.05rem; }
  .nav .btn { width: 100%; }
}

@media (max-width: 560px) {
  body { font-size: 1rem; }
  .container { width: min(1140px, 100% - 2rem); }
  .two-lists { grid-template-columns: 1fr; }
  .hero-actions .btn, .contact-actions .btn { width: 100%; }
  .brand-icon { height: 34px; }
  .brand-word { height: 21px; }
  .footer-logo .brand-icon { height: 46px; }
  .footer-logo .brand-word { height: 28px; }
  .float-card { position: static; margin-top: -2rem; margin-left: 1rem; max-width: 18rem; position: relative; }
  .price-list li { flex-direction: column; align-items: flex-start; gap: .25rem; }
  .footer-legal { flex-wrap: wrap; }
}
