/* =====================================================================
   Explicações da Diana · folha de estilos
   Público: pais de Guimarães com filhos do 1.º ao 6.º ano.
   Ideia visual: caderno quadriculado e marcador amarelo. Mais sereno
   do que o site das aulas online: confiança, clareza, proximidade.
   ===================================================================== */
/* Fontes servidas pelo próprio site (sem pedidos à Google): só o conjunto latino, que chega
   para o português. Licença SIL OFL 1.1, em fonts/OFL-*.txt. */
@font-face { font-family: "Fraunces"; font-style: normal; font-weight: 500 700; font-display: swap;
  src: url("fonts/fraunces.woff2") format("woff2"); }
@font-face { font-family: "Nunito Sans"; font-style: normal; font-weight: 400 800; font-display: swap;
  src: url("fonts/nunito-sans.woff2") format("woff2"); }
@font-face { font-family: "Nunito Sans"; font-style: italic; font-weight: 400; font-display: swap;
  src: url("fonts/nunito-sans-italico.woff2") format("woff2"); }
:root {
  --ink:        #1F2A44;   /* texto principal */
  --ink-soft:   #4C5672;   /* texto secundário (7,2:1 sobre o papel) */
  --paper:      #FBFAF6;   /* fundo da página */
  --white:      #FFFFFF;
  --grid:       #E4E9F1;   /* linhas do quadriculado */
  --teal:       #17695F;   /* cor principal (botões: 6,4:1 com branco) */
  --teal-dark:  #0F4F47;
  --teal-soft:  #E2F0EC;
  --marker:     #FFE066;   /* marcador amarelo */
  --marker-soft:#FFF6CC;
  --orange:     #F08A4B;
  --lilac:      #C9B8F0;
  --mint:       #9FD6C6;
  --coral:      #F6A99B;
  --line:       #E2DED3;

  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body:    "Nunito Sans", "Segoe UI", system-ui, -apple-system, sans-serif;

  --radius: 14px;
  --wrap: 1100px;
  --gutter: clamp(16px, 4vw, 40px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
[id] { scroll-margin-top: 84px; }  /* o cabeçalho fixo não tapa o título ao saltar do menu */
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 600; line-height: 1.12; margin: 0; text-wrap: balance; font-optical-sizing: auto; }
h1 { font-size: clamp(2.3rem, 5.2vw, 3.8rem); letter-spacing: -0.01em; }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.5rem); letter-spacing: -0.005em; }
h3 { font-size: 1.3rem; }
p { margin: 0; }
:where(ul.plain, ul.ticks, ul.chips, ul.hero-facts, ul.creds) { list-style: none; margin: 0; padding: 0; }

.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
section { padding-block: clamp(56px, 9vw, 104px); }

/* fundo de caderno quadriculado */
.squared {
  background-color: var(--white);
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 26px 26px;
}

/* palavra sublinhada a marcador */
.hl { background: linear-gradient(transparent 58%, var(--marker) 58%, var(--marker) 92%, transparent 92%); padding-inline: .08em; }

/* Marcadores de rascunho (apagar quando o texto estiver confirmado) */
.draft-bar { background: #FFE1E7; color: #8A2A45; text-align: center; font-size: 0.9rem; padding: 8px var(--gutter); }
mark.todo { background: #FFE1E7; color: #8A2A45; border-radius: 4px; padding: 0 3px; outline: 1px dashed #F08BA6; }

/* ---------- Cabeçalho ---------- */
.site-header { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; background: rgba(251,250,246,.94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-mark { width: 38px; height: 38px; flex: none; }
.brand-name { font-family: var(--font-display); font-size: 1.25rem; font-weight: 500; line-height: 1.1; }
.brand-name strong { font-weight: 700; color: var(--teal); }
.nav { display: flex; align-items: center; gap: 2px; }
.nav a { text-decoration: none; font-weight: 700; padding: 8px 12px; border-radius: 10px; }
.nav a:hover { background: var(--teal-soft); }
.nav a[aria-current="page"] { background: var(--marker-soft); }
.nav a.nav-cta { background: var(--teal); color: var(--white); margin-left: 8px; }
.nav a.nav-cta:hover { background: var(--teal-dark); }
.nav-toggle { display: none; width: 44px; height: 44px; border: 0; background: transparent; padding: 10px; cursor: pointer; flex-direction: column; justify-content: center; gap: 5px; border-radius: 10px; }
.nav-toggle span { display: block; height: 2.5px; background: var(--ink); border-radius: 3px; }

@media (max-width: 800px) {
  .nav-toggle { display: flex; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--paper); border-bottom: 1px solid var(--line); flex-direction: column; align-items: stretch; padding: 10px var(--gutter) 16px; gap: 2px; }
  .nav a { padding: 12px 14px; }
  .nav a.nav-cta { margin: 8px 0 0; text-align: center; }
  body.nav-open .nav { display: flex; }
}

/* ---------- Botões ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 13px 22px; border-radius: 12px; font-weight: 800; text-decoration: none; border: 2px solid transparent; transition: transform .15s ease, background .15s ease; }
.btn:hover { transform: translateY(-1px); }
.btn:focus-visible, a:focus-visible, button:focus-visible, summary:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
.site-footer a:focus-visible { outline-color: var(--marker); }
.btn-primary { background: var(--teal); color: var(--white); }
.btn-primary:hover { background: var(--teal-dark); }
.btn-ghost { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-ghost:hover { background: var(--white); }
.btn-dark { background: var(--ink); color: var(--white); }
.btn-whatsapp { background: #1B7F4E; color: #fff; }

/* ---------- Títulos de secção ---------- */
.eyebrow { font-size: 0.82rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--teal); margin-bottom: 14px; }
.section-title { text-align: center; }
.section-title.left { text-align: left; }
.section-intro { text-align: center; max-width: 60ch; margin: 16px auto 0; color: var(--ink-soft); font-size: 1.1rem; }
.section-intro.left { text-align: left; margin-inline: 0; }

/* ---------- Hero ---------- */
.hero { padding-block: clamp(40px, 7vw, 88px); }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.hero-copy { min-width: 0; }
.hero h1 { max-width: 15ch; }
.lead { font-size: 1.2rem; margin-top: 20px; max-width: 50ch; color: var(--ink-soft); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
ul.hero-facts { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.hero-facts li { font-weight: 700; font-size: .92rem; padding: 6px 12px; border-radius: 999px; background: var(--white); border: 1px solid var(--line); }
.hero-art { min-width: 0; }
.hero-art svg { width: 100%; height: auto; display: block; filter: drop-shadow(0 18px 30px rgba(31,42,68,.12)); }

@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-art { max-width: 420px; margin-inline: auto; }
}

/* ---------- Quando ajuda ---------- */
.signs { background: var(--white); border-block: 1px solid var(--line); }
.sign-grid { list-style: none; margin: 40px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.sign { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 22px 24px; min-width: 0; }
.sign-icon { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: var(--teal-soft); color: var(--teal); font-family: var(--font-display); font-weight: 700; font-size: 1.1rem; margin-bottom: 12px; }
.sign h3 { font-size: 1.12rem; }
.sign p { margin-top: 6px; color: var(--ink-soft); font-size: .98rem; }
.signs-note { text-align: center; margin-top: 28px; color: var(--ink-soft); max-width: 62ch; margin-inline: auto; }
@media (max-width: 860px) { .sign-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .sign-grid { grid-template-columns: 1fr; } }

/* ---------- Disciplinas ---------- */
.subjects-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; margin-top: 40px; }
.subject { border-radius: var(--radius); padding: 30px 30px 32px; min-width: 0; border: 1px solid var(--line); }
.subject-pt { background: var(--marker-soft); }
.subject-mat { background: var(--teal-soft); }
.subject-kicker { font-size: .8rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-soft); }
.subject h3 { font-size: 1.7rem; margin-top: 4px; }
ul.ticks { margin-top: 18px; display: grid; gap: 9px; }
.ticks li { padding-left: 30px; position: relative; font-weight: 600; }
.ticks li::before { content: ""; position: absolute; left: 0; top: .3em; width: 18px; height: 18px; border-radius: 5px; background: var(--white); border: 2px solid var(--ink); }
.ticks li::after { content: ""; position: absolute; left: 5px; top: calc(.3em + 3px); width: 6px; height: 10px; border: solid var(--teal); border-width: 0 3px 3px 0; transform: rotate(45deg); }
@media (max-width: 760px) { .subjects-grid { grid-template-columns: 1fr; } .subject { padding: 24px 22px; } }

/* ---------- Como são ---------- */
.format { background: var(--white); border-block: 1px solid var(--line); }
.format-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; margin: 40px 0 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--line); gap: 1px; }
.format-item { background: var(--paper); padding: 22px 24px; min-width: 0; }
.format-item dt { font-size: .8rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--teal); }
.format-item dd { margin: 6px 0 0; font-weight: 700; font-size: 1.08rem; }
.format-item dd span { display: block; font-weight: 600; font-size: .95rem; color: var(--ink-soft); margin-top: 2px; }
@media (max-width: 860px) { .format-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .format-grid { grid-template-columns: 1fr; } }

/* ---------- Passos ---------- */
.steps { list-style: none; margin: 44px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; counter-reset: passo; }
.step { min-width: 0; padding-top: 18px; border-top: 3px solid var(--ink); }
.step-num { font-family: var(--font-display); font-weight: 700; font-size: 2.2rem; color: var(--teal); line-height: 1; }
.step h3 { font-size: 1.15rem; margin-top: 10px; }
.step p { margin-top: 6px; color: var(--ink-soft); font-size: .98rem; }
@media (max-width: 860px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }

/* ---------- Sobre ---------- */
.about { background: var(--teal-soft); }
.about-grid { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: clamp(28px, 5vw, 56px); align-items: center; }
.about-photo { min-width: 0; }
.photo-placeholder { aspect-ratio: 4 / 5; border-radius: var(--radius); background: var(--white); border: 2px dashed #A9C9C1; display: grid; place-items: center; align-content: center; gap: 8px; color: var(--ink-soft); font-weight: 700; }
.photo-placeholder svg { width: 96px; }
.about-photo img { width: 100%; height: auto; border-radius: var(--radius); display: block; object-fit: cover; aspect-ratio: 4 / 5; }
.about-copy p:not(.eyebrow) { margin-top: 14px; color: var(--ink-soft); max-width: 60ch; }
ul.creds { margin-top: 20px; display: grid; gap: 10px; }
.creds li { display: flex; gap: 12px; align-items: baseline; }
.creds strong { min-width: 9.5em; font-weight: 800; }
@media (max-width: 760px) {
  .about-grid { grid-template-columns: 1fr; }
  .about-photo { max-width: 240px; }
}
@media (max-width: 560px) { .creds li { display: block; } .creds strong { display: block; min-width: 0; } }

/* ---------- Chips e artigos ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-block; padding: 5px 12px; border-radius: 999px; font-weight: 800; font-size: .85rem; }
.c-orange { background: #FFD9C2; } .c-lilac { background: #E6DDFA; } .c-mint { background: var(--teal-soft); }
.c-yellow { background: var(--marker-soft); } .c-coral { background: #FDDDD6; } .c-leaf { background: #E4F0D0; }

.blog-teaser { background: var(--paper); }
.post-cards { list-style: none; margin: 36px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 20px; }
.post-card a { display: flex; flex-direction: column; gap: 10px; height: 100%; padding: 24px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; transition: transform .15s ease, border-color .15s ease; }
.post-card a:hover { transform: translateY(-2px); border-color: var(--teal); }
.post-card .chip { align-self: flex-start; font-size: .78rem; padding: 4px 11px; }
.post-card h2, .post-card h3 { font-size: 1.22rem; }
.post-card p { color: var(--ink-soft); font-size: .97rem; }
.post-card-meta { margin-top: auto; font-size: .85rem; font-weight: 700; color: var(--ink-soft); }
.blog-teaser-more { text-align: center; margin-top: 32px; }

.blog-head { padding-block: clamp(44px, 7vw, 80px) 0; }
.blog-filter { justify-content: center; margin-top: 24px; }
.blog-list { padding-top: 8px; }

.post-head { position: relative; overflow: hidden; padding-block: clamp(40px, 7vw, 80px) clamp(48px, 7vw, 72px); border-bottom: 1px solid var(--line); }
.post-head.cat-orange, .post-head.cat-lilac, .post-head.cat-mint, .post-head.cat-yellow, .post-head.cat-coral { background-color: var(--white); }
.post-head-inner { max-width: 820px; }
.post-crumbs { font-weight: 800; font-size: .88rem; letter-spacing: .04em; color: var(--teal); }
.post-crumbs a { text-decoration: underline; text-underline-offset: 3px; }
.post-head h1 { margin-top: 14px; font-size: clamp(2rem, 4.4vw, 3rem); }
.post-lead { margin-top: 16px; font-size: 1.2rem; max-width: 56ch; color: var(--ink-soft); }
.post-meta { margin-top: 18px; font-size: .92rem; font-weight: 700; color: var(--ink-soft); }
.post-head-blob { display: none; }

.prose { max-width: 720px; padding-block: clamp(32px, 5vw, 56px) 0; font-size: 1.12rem; line-height: 1.75; }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { font-size: clamp(1.45rem, 2.6vw, 1.8rem); margin-top: 1.9em; }
.prose h3 { font-size: 1.25rem; margin-top: 1.5em; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: .45em; }
.prose li::marker { color: var(--teal); font-weight: 800; }
.prose blockquote { margin-inline: 0; padding: 14px 20px; background: var(--marker-soft); border-left: 5px solid var(--marker); border-radius: 0 12px 12px 0; font-weight: 600; }
.prose a { color: var(--teal-dark); font-weight: 700; text-underline-offset: 3px; }
.prose strong { font-weight: 800; }

/* partilha no fim de cada artigo (ferramentas/modelos/_partilhar.html) */
.post-share { max-width: 720px; padding-block: 40px 0; }
.post-share-title { margin: 0 0 12px; font-weight: 800; }
.post-share-buttons { display: flex; flex-wrap: wrap; gap: 10px; }
.share-btn { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 16px; border: 2px solid var(--ink); border-radius: 999px; background: transparent; color: var(--ink); font: inherit; font-weight: 700; font-size: .95rem; text-decoration: none; cursor: pointer; }
.share-btn:hover { background: var(--teal-soft); }
.share-btn[hidden] { display: none; }
.post-cta { max-width: 720px; padding-block: 48px 0; }
.post-cta-box { background: var(--teal-soft); border-radius: var(--radius); padding: 28px; display: grid; gap: 12px; justify-items: start; }
.post-cta-box h2 { font-size: 1.4rem; }
.post-cta-box p { color: var(--ink-soft); }
.related { padding-block: 56px 80px; }
.related h2 { font-size: 1.55rem; }
.related .post-cards { margin-top: 20px; }

.review-notes { max-width: 720px; margin-top: 32px; }
.review-notes > div { background: #FFF1F4; border: 2px dashed #F08BA6; border-radius: 14px; padding: 20px 22px; color: #6E2238; }
.review-notes h2, .review-notes h3 { font-family: var(--font-body); font-weight: 800; font-size: 1rem; }
.review-notes h3 { font-size: .92rem; margin-top: 14px; }
.review-notes ul { margin: 8px 0 0; padding-left: 1.2em; font-size: .95rem; }
.review-notes p { font-size: .95rem; margin-top: 6px; }
.review-notes a { color: inherit; word-break: break-word; }
.review-meta { font-size: .82rem !important; opacity: .8; margin-top: 12px !important; }

/* ---------- FAQ ---------- */
.faq { background: var(--white); border-top: 1px solid var(--line); }
.faq-inner { max-width: 760px; }
.faq details { border-bottom: 1px solid var(--line); padding: 4px 0; }
.faq details:first-of-type { margin-top: 36px; border-top: 1px solid var(--line); }
.faq summary { cursor: pointer; font-weight: 800; font-size: 1.06rem; padding: 14px 40px 14px 0; position: relative; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%); width: 28px; height: 28px; border-radius: 8px; background: var(--teal-soft); color: var(--teal); display: grid; place-items: center; font-weight: 800; font-size: 1.2rem; }
.faq details[open] summary::after { content: "–"; background: var(--marker); color: var(--ink); }
.faq details p { padding: 0 0 18px; color: var(--ink-soft); max-width: 65ch; }

/* ---------- Contacto ---------- */
.contact-inner { text-align: center; max-width: 820px; }
.contact-form { margin-top: 36px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 20px; text-align: left; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(20px, 4vw, 36px); box-shadow: 0 14px 30px rgba(31,42,68,.06); }
.field { display: grid; gap: 6px; min-width: 0; margin: 0; padding: 0; border: 0; }
.field-wide { grid-column: 1 / -1; }
.field label, .field legend { font-weight: 800; font-size: .95rem; padding: 0; }
.opt { font-weight: 600; color: var(--ink-soft); }
.contact-form input[type="text"], .contact-form input[type="email"], .contact-form input[type="tel"], .contact-form select, .contact-form textarea {
  width: 100%; font: inherit; color: var(--ink); background: var(--paper); border: 1.5px solid #CFCBC0; border-radius: 10px; padding: 11px 14px;
}
.contact-form textarea { resize: vertical; min-height: 120px; }
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px var(--teal-soft); }
.contact-form ::placeholder { color: #8E95A8; }
.choice-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 4px; }
.choice { display: inline-flex; align-items: center; gap: 10px; padding: 9px 15px; border: 1.5px solid #CFCBC0; border-radius: 10px; font-weight: 700; cursor: pointer; background: var(--paper); }
.choice:has(input:checked) { border-color: var(--teal); background: var(--teal-soft); }
.choice input { accent-color: var(--teal); width: 18px; height: 18px; margin: 0; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: .92rem; color: var(--ink-soft); }
.consent input { accent-color: var(--teal); width: 18px; height: 18px; margin-top: 3px; flex: none; }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.form-actions .btn { cursor: pointer; font: inherit; font-weight: 800; }
.form-alt { font-size: .92rem; color: var(--ink-soft); }
.hp { position: absolute; left: -9999px; }
.wa-box { margin-top: 28px; display: grid; justify-items: center; gap: 12px; }
.wa-box p { color: var(--ink-soft); font-weight: 700; }
@media (max-width: 620px) { .contact-form { grid-template-columns: 1fr; } }

/* ---------- Rodapé ---------- */
.site-footer { background: var(--ink); color: var(--paper); padding-block: 36px; font-size: .95rem; }
.footer-inner { display: grid; gap: 8px; text-align: center; }
.footer-links a, .footer-small a { color: var(--paper); }
.footer-small { opacity: .75; font-size: .86rem; }
