/* PHDA Portugal: protótipo ArqWeb (20/11/2026). Paleta medida no logótipo (docs/proposals/phda-portugal/paleta.json). */
@font-face { font-family: 'Lexend'; src: url('/assets/fonts/lexend-latin-wght-normal.woff2') format('woff2'); font-weight: 100 900; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2190-2199, U+2212; }
@font-face { font-family: 'Lexend'; src: url('/assets/fonts/lexend-latin-ext-wght-normal.woff2') format('woff2'); font-weight: 100 900; font-display: swap; unicode-range: U+0100-024F, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Atkinson Next'; src: url('/assets/fonts/atkinson-hyperlegible-next-latin-wght-normal.woff2') format('woff2'); font-weight: 200 800; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2190-2199, U+2212; }
@font-face { font-family: 'Atkinson Next'; src: url('/assets/fonts/atkinson-hyperlegible-next-latin-ext-wght-normal.woff2') format('woff2'); font-weight: 200 800; font-display: swap; unicode-range: U+0100-024F, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Atkinson Next'; src: url('/assets/fonts/atkinson-hyperlegible-next-latin-wght-italic.woff2') format('woff2'); font-weight: 200 800; font-style: italic; font-display: swap; }

:root {
  --yellow: #FCEF24;
  --yellow-deep: #F2DF00;
  --ink: #0B2A44;
  --ink-2: #133C5E;
  --ink-soft: #2E4A63;
  --sky: #3CA8F0;
  --sky-pale: #CFE9FB;
  --accent: #D21E4A;
  --accent-hover: #B5163E;
  --paper: #FFFFFF;
  --on-ink: #F4F8FB;
  --on-ink-2: #C9DCEB;
  --r-panel: 16px;
  --r-field: 10px;
  --wrap: 1200px;
  --gut: clamp(20px, 4vw, 48px);
  --ease: cubic-bezier(.16, 1, .3, 1);
  --display: 'Lexend', 'Atkinson Next', system-ui, sans-serif;
  --body: 'Atkinson Next', system-ui, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 16px; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body { margin: 0; font-family: var(--body); font-size: 1.125rem; line-height: 1.6; color: var(--ink); background: var(--yellow); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: .2em; text-decoration-thickness: 2px; }
::selection { background: var(--sky); color: var(--ink); }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 6px; }
.sec-ink :focus-visible, .foot :focus-visible { outline-color: var(--yellow); }
h1, h2, h3 { font-family: var(--display); line-height: 1.08; letter-spacing: -0.02em; margin: 0; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gut); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; background: var(--ink); color: var(--yellow); padding: 10px 16px; border-radius: 999px; z-index: 10; text-decoration: none; }
.skip:focus { top: 12px; }

/* buttons: pill everywhere */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 12px 24px; border-radius: 999px; font-family: var(--display); font-weight: 600; font-size: 1rem; letter-spacing: -0.005em; text-decoration: none; border: 0; cursor: pointer; white-space: nowrap; transition: transform .16s var(--ease), background-color .2s var(--ease), box-shadow .2s var(--ease); }
.btn:active { transform: scale(.96); }
.btn-accent { background: var(--accent); color: #fff; box-shadow: 0 6px 18px -8px rgba(150, 10, 45, .55); }
.btn-accent:hover { background: var(--accent-hover); }
.btn-ink { background: var(--ink); color: var(--yellow); }
.btn-ink:hover { background: var(--ink-2); }
.btn[disabled] { opacity: .6; cursor: progress; }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-family: var(--display); font-weight: 600; font-size: 1rem; text-decoration: none; padding: 10px 2px; min-height: 44px; border-bottom: 2px solid currentColor; line-height: 1.2; }
.link-arrow::after { content: '→'; transition: transform .2s var(--ease); }
.link-arrow:hover::after { transform: translateX(4px); }

/* header: in normal flow on the brand field */
.top { background: var(--yellow); position: relative; }
.top-in { display: flex; align-items: center; gap: 32px; min-height: 80px; }
.brand img { width: 56px; height: 56px; border-radius: 12px; box-shadow: 0 0 0 2px var(--ink); }
.nav { display: flex; gap: 28px; margin-left: auto; }
.nav a { font-family: var(--display); font-weight: 500; font-size: 1rem; text-decoration: none; padding: 12px 0; min-height: 44px; display: inline-flex; align-items: center; position: relative; }
.nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 8px; height: 2px; background: var(--ink); transform: scaleX(0); transform-origin: left; transition: transform .25s var(--ease); }
.nav a:hover::after { transform: scaleX(1); }

/* hero */
.hero { background: var(--yellow); }
.hero-in { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 48px; align-items: end; padding-top: 32px; padding-bottom: 44px; }
.hero h1 { font-size: clamp(2.6rem, 5.6vw, 5.1rem); font-weight: 700; letter-spacing: -0.035em; line-height: 1.02; }
.mark { position: relative; white-space: nowrap; z-index: 0; }
.mark::before { content: ''; position: absolute; left: -.08em; right: -.08em; bottom: .04em; height: .5em; background: var(--sky); border-radius: .12em .3em .18em .25em; z-index: -1; transform: rotate(-1deg); }
@media (prefers-reduced-motion: no-preference) {
  .mark::before { clip-path: inset(0 100% 0 0); animation: highlight .9s .35s var(--ease) forwards; }
  @keyframes highlight { to { clip-path: inset(0 0 0 0); } }
}
.hero-side { display: grid; gap: 24px; padding-bottom: 8px; }
.lede { font-size: 1.25rem; line-height: 1.5; max-width: 34ch; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; }
.hero-photo { margin: 0; position: relative; height: clamp(260px, 33vh, 300px); overflow: hidden; }
.hero-photo picture { display: block; height: 100%; }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; }
.illus { position: absolute; right: 16px; bottom: 14px; background: #0B2A44; color: #fff; font-size: .875rem; padding: 4px 10px; border-radius: 6px; }

/* sections */
.sec { padding: clamp(64px, 9vw, 112px) 0; }
.sec-ink { background: var(--ink); color: var(--on-ink); }
.hero + .sec { padding-top: 72px; }
.sec-sky { background: var(--sky-pale); }
.sec-paper { background: var(--paper); }
.sec-yellow { background: var(--yellow); }
.sec h2 { font-size: clamp(2rem, 3.6vw, 3.05rem); font-weight: 700; }
.sec-ink h2 { color: var(--yellow); }
.big { font-size: 1.25rem; line-height: 1.55; max-width: 60ch; color: var(--on-ink); }

/* what is ADHD + tabs */
.phda-head { display: grid; gap: 20px; margin-bottom: 48px; }
.tabs { display: grid; gap: 0; }
.tablist { display: flex; flex-wrap: wrap; gap: 8px; border-bottom: 2px solid rgba(207, 233, 251, .25); }
.tablist [role=tab] { font: 600 1.0625rem/1.2 var(--display); color: var(--on-ink-2); background: transparent; border: 0; padding: 14px 20px 16px; cursor: pointer; position: relative; border-radius: 10px 10px 0 0; transition: color .2s var(--ease), background-color .2s var(--ease); }
.tablist [role=tab]:hover { color: #fff; background: rgba(60, 168, 240, .12); }
.tablist [role=tab][aria-selected=true] { color: var(--ink); background: var(--sky); }
.panel { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 48px; padding: 40px 0 8px; }
.panel[hidden] { display: none; }
.panel-lead { font-size: 1.375rem; line-height: 1.45; font-family: var(--display); font-weight: 400; color: #fff; max-width: 32ch; }
.signs { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.signs li { padding: 14px 18px; border-radius: 12px; background: var(--ink-2); color: var(--on-ink); position: relative; padding-left: 46px; }
.signs li::before { content: ''; position: absolute; left: 18px; top: 22px; width: 14px; height: 8px; border-left: 3px solid var(--yellow); border-bottom: 3px solid var(--yellow); transform: rotate(-45deg); }
.note { margin-top: 32px; font-size: 1rem; color: var(--on-ink-2); max-width: 70ch; }

/* Rui */
.rui { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 56px; align-items: end; }
.quote { margin: 0; }
.quote p { font-family: var(--display); font-weight: 700; font-size: clamp(2.2rem, 4.6vw, 4rem); line-height: 1.05; letter-spacing: -0.03em; color: var(--ink); text-wrap: balance; }
.rui-text { display: grid; gap: 18px; color: var(--ink-soft); justify-items: start; }
.rui-text .link-arrow { color: var(--ink); margin-top: 6px; }

/* community */
.com { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.com-photo { margin: 0; }
.com-photo img { border-radius: var(--r-panel); aspect-ratio: 4 / 3; object-fit: cover; object-position: 50% 60%; width: 100%; }
.com-photo figcaption { font-size: .875rem; color: var(--ink-soft); margin-top: 10px; }
.com-text { display: grid; gap: 28px; }
.pillars { margin: 0; display: grid; gap: 22px; }
.pillars div { display: grid; gap: 4px; padding-top: 18px; border-top: 3px solid var(--yellow); }
.pillars div:first-child { border-top-color: var(--sky); }
.pillars div:last-child { border-top-color: var(--accent); }
.pillars dt { font: 700 1.375rem/1.2 var(--display); }
.pillars dd { margin: 0; color: var(--ink-soft); }
.sister { font-size: 1rem; color: var(--ink-soft); }
.sister a { color: var(--ink); font-weight: 700; }

/* FAQ carousel */
.faq-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 40px; }
.car-ctrl { display: flex; gap: 10px; }
.car-btn { width: 52px; height: 52px; border-radius: 999px; border: 2px solid var(--on-ink-2); background: transparent; color: var(--on-ink); display: grid; place-items: center; cursor: pointer; transition: background-color .2s var(--ease), color .2s var(--ease), transform .16s var(--ease), opacity .2s; }
.car-btn svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.car-btn:hover:not([disabled]) { background: var(--yellow); color: var(--ink); border-color: var(--yellow); }
.car-btn:active:not([disabled]) { transform: scale(.96); }
.car-btn[disabled] { opacity: .35; cursor: default; }
.car { list-style: none; margin: 0; display: grid; grid-auto-flow: column; grid-auto-columns: min(78vw, 400px); gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px max(var(--gut), calc((100vw - var(--wrap)) / 2 + var(--gut))) 24px; scroll-padding-inline: max(var(--gut), calc((100vw - var(--wrap)) / 2 + var(--gut))); scrollbar-width: thin; scrollbar-color: var(--sky) transparent; }
.car:focus-visible { outline-offset: -3px; }
.q { scroll-snap-align: start; border-radius: var(--r-panel); padding: 32px 28px 36px; display: grid; align-content: start; gap: 16px; min-height: 300px; }
.q h3 { font-size: 1.5rem; font-weight: 700; line-height: 1.2; }
.q p { font-size: 1.0625rem; }
.q-y { background: var(--yellow); color: var(--ink); }
.q-s { background: var(--sky); color: var(--ink); }
.q-w { background: var(--paper); color: var(--ink); }
.q-r { background: var(--accent); color: #fff; }

/* contact */
.ct { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 56px; align-items: start; }
.ct-text { display: grid; gap: 20px; }
.ct-text p { max-width: 44ch; }
.help { font-size: 1rem; background: rgba(11, 42, 68, .08); border-radius: 12px; padding: 14px 16px; }
.help a { font-weight: 700; }
.form { background: var(--paper); border-radius: var(--r-panel); padding: clamp(24px, 3vw, 40px); display: grid; gap: 20px; box-shadow: 0 18px 40px -24px rgba(11, 42, 68, .45); }
fieldset { border: 0; margin: 0; padding: 0; }
legend { font: 600 1rem/1.3 var(--display); margin-bottom: 10px; }
.radios { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.radio { position: relative; display: flex; }
.radio input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.radio span { flex: 1; padding: 12px 14px 12px 44px; border: 2px solid #9DB3C6; border-radius: var(--r-field); font-size: 1rem; position: relative; transition: border-color .2s var(--ease), background-color .2s var(--ease); }
.radio span::before { content: ''; position: absolute; left: 14px; top: 50%; width: 18px; height: 18px; margin-top: -9px; border-radius: 50%; border: 2px solid var(--ink-soft); background: #fff; }
.radio input:checked + span { border-color: var(--ink); background: var(--sky-pale); }
.radio input:checked + span::before { border: 6px solid var(--ink); }
.radio input:focus-visible + span { outline: 3px solid var(--ink); outline-offset: 2px; }
.radio:hover span { border-color: var(--ink-soft); }
.f-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: grid; gap: 6px; }
.field label { font: 600 1rem/1.3 var(--display); }
.opt { font-weight: 400; color: var(--ink-soft); font-family: var(--body); }
input, textarea { font: inherit; font-size: 1rem; color: var(--ink); background: #fff; border: 2px solid #7F98AE; border-radius: var(--r-field); padding: 12px 14px; width: 100%; transition: border-color .2s var(--ease), box-shadow .2s var(--ease); }
input:hover, textarea:hover { border-color: var(--ink-soft); }
input:focus, textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(60, 168, 240, .45); }
input[aria-invalid=true] { border-color: var(--accent); }
textarea { resize: vertical; min-height: 110px; }
::placeholder { color: #5B7389; opacity: 1; }
.hp { display: none; }
.form .btn { justify-self: start; }
.status { font-size: 1rem; min-height: 1.5em; }
.status.ok { color: #0E6B3A; font-weight: 600; }
.status.err { color: #A3122F; font-weight: 600; }
.privacy-note { font-size: .9375rem; color: var(--ink-soft); }

/* footer */
.foot { background: var(--ink); color: var(--on-ink-2); padding: 56px 0 40px; font-size: 1rem; }
.foot-grid { display: grid; grid-template-columns: 1.2fr 2fr; gap: 28px 48px; align-items: start; }
.foot-brand { display: flex; gap: 16px; align-items: center; }
.foot-brand img { border-radius: 10px; }
.foot-brand p { color: #fff; font: 600 1.125rem/1.35 var(--display); }
.foot-brand span { font: 400 .9375rem/1.4 var(--body); color: var(--on-ink-2); }
.foot-nav { display: flex; flex-wrap: wrap; gap: 10px 28px; justify-content: flex-end; }
.foot-nav a { text-decoration: none; padding: 6px 0; }
.foot-nav a:hover, .credit a:hover { color: var(--yellow); text-decoration: underline; }
.foot-legal { font-size: .9375rem; }
.credit { text-align: right; }
.credit a { color: #fff; text-decoration: none; font-weight: 600; }

/* inner pages */
.page { background: var(--paper); padding: 64px 0 96px; }
.page-head { background: var(--yellow); padding: 48px 0 56px; }
.page-head h1 { font-size: clamp(2.2rem, 4.5vw, 3.6rem); font-weight: 700; }
.prose { max-width: 70ch; display: grid; gap: 16px; }
.prose h2 { font-size: 1.5rem; margin-top: 24px; }
.prose ul { margin: 0; padding-left: 1.2em; display: grid; gap: 6px; }

/* responsive */
@media (max-width: 1080px) {
  .nav { gap: 20px; }
}
@media (max-width: 900px) {
  .nav { display: none; }
  .nav-cta { margin-left: auto; }
  .hero-in, .rui, .com, .ct, .panel { grid-template-columns: 1fr; gap: 28px; }
  .hero-in { padding-top: 24px; padding-bottom: 32px; }
  .foot-grid { grid-template-columns: 1fr; }
  .foot-nav { justify-content: flex-start; }
  .credit { text-align: left; }
}
@media (max-width: 560px) {
  body { font-size: 1.0625rem; }
  .top-in { min-height: 72px; gap: 16px; }
  .brand img { width: 48px; height: 48px; }
  .nav-cta { min-height: 44px; padding: 10px 18px; font-size: .9375rem; }
  .hero h1 { font-size: 2.55rem; }
  .lede { font-size: 1.125rem; }
  .hero-photo { height: 240px; }
  .hero-photo img { object-position: 50% 30%; }
  .f-row, .radios { grid-template-columns: 1fr; }
  .faq-head { flex-wrap: wrap; }
  .q { min-height: 0; padding: 26px 22px 28px; }
  .tablist [role=tab] { padding: 12px 14px; font-size: 1rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
.notfound { padding-top: 64px; padding-bottom: 96px; display: grid; gap: 24px; justify-items: start; }
/* polish (make-interfaces-feel-better): neutral image outline, tactile radio, steady digits */
.com-photo img { outline: 1px solid oklch(0 0 0 / .1); outline-offset: -1px; }
.radio:active span { transform: scale(.98); }
.radio span { transition-property: border-color, background-color, transform; }
.help, .foot-legal { font-variant-numeric: tabular-nums; }
/* rhythm: «O que é a PHDA» on the pale brand blue, the Rui quote on night blue */
.sec-learn .big { color: var(--ink); }
.sec-learn .tablist { border-bottom-color: rgba(11, 42, 68, .2); }
.sec-learn .tablist [role=tab] { color: var(--ink-soft); }
.sec-learn .tablist [role=tab]:hover { color: var(--ink); background: rgba(11, 42, 68, .07); }
.sec-learn .tablist [role=tab][aria-selected=true] { color: var(--yellow); background: var(--ink); }
.sec-learn .panel-lead { color: var(--ink); }
.sec-learn .signs li { background: #fff; color: var(--ink); box-shadow: 0 1px 2px rgba(11, 42, 68, .08), 0 6px 16px -10px rgba(11, 42, 68, .3); }
.sec-learn .signs li::before { border-color: var(--accent); }
.sec-learn .note { color: var(--ink-soft); }
.sec-ink .quote p { color: var(--yellow); }
.sec-ink .rui-text { color: var(--on-ink-2); }
.sec-ink .rui-text .link-arrow { color: #fff; }

.tablist [role=tab] { min-height: 46px; }
.foot-nav a, .credit a { display: inline-block; min-height: 44px; line-height: 44px; padding-top: 0; padding-bottom: 0; }
