/* Site junta-aberta.pt. Tokens: agora.css (copiado da plataforma). Noto Sans servida pelo site. */

@font-face {
  font-family: 'Noto Sans';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/noto-sans/noto-sans-latin-ext-400-normal.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Noto Sans';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/noto-sans/noto-sans-latin-400-normal.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;
}

@font-face {
  font-family: 'Noto Sans';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/fonts/noto-sans/noto-sans-latin-ext-600-normal.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Noto Sans';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/fonts/noto-sans/noto-sans-latin-600-normal.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;
}

@font-face {
  font-family: 'Noto Sans';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/fonts/noto-sans/noto-sans-latin-ext-700-normal.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Noto Sans';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/fonts/noto-sans/noto-sans-latin-700-normal.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;
}

/* Identidade da Junta Aberta (petróleo e verde-água) e as cores derivadas,
   todas com contraste AA verificado (bin/site.php contrast). */
:root {
  --brand-petrol: #0c302d;
  --brand-petrol-soft: #164541;
  --brand-teal: #1a8273;
  --brand-teal-dark: #136457;
  --brand-teal-on-dark: #8fdccd;
  --brand-tint: #eef6f4;
  --text: var(--color-neutral-900);
  --text-muted: #4d5a66;
  --wrap: 1200px;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  margin: 0;
  font-family: 'Noto Sans', system-ui, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--color-white);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

h1, h2, h3 {
  line-height: 1.25;
  margin: 0;
}

p, ul, ol, dl {
  margin: 0;
}

a {
  color: var(--brand-teal-dark);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.15em;
}

a:hover {
  text-decoration-thickness: 2px;
}

:focus-visible {
  outline: 3px solid var(--color-focus);
  outline-offset: 2px;
}

main:focus {
  outline: none;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -100px;
  z-index: 10;
  padding: 8px 16px;
  background: var(--color-white);
  color: var(--text);
  font-weight: 600;
}

.skip-link:focus {
  top: 16px;
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: 16px;
}

@media (min-width: 768px) {
  .wrap {
    padding-inline: 32px;
  }
}

/* Secções de texto: alinhadas à esquerda como as outras, com linhas curtas. */
.narrow > * {
  max-width: 820px;
}

.center {
  text-align: center;
}

.small {
  font-size: 0.9375rem;
  color: var(--text-muted);
}

/* As grelhas de uma coluna nunca crescem para a largura natural das capturas
   (sem isto, a 360 px a página teria scroll horizontal). */
.hero-grid,
.features,
.cards,
.steps,
.form-row,
.footer-columns {
  grid-template-columns: minmax(0, 1fr);
}

.feature > *,
.hero-grid > * {
  min-width: 0;
}

/* Cabeçalho. */
.site-header {
  background: var(--brand-petrol);
  color: var(--color-white);
  border-bottom: 1px solid var(--brand-petrol-soft);
}

.site-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 72px;
}

.brand img {
  width: 160px;
  height: auto;
}

@media (min-width: 768px) {
  .brand img {
    width: 198px;
  }
}

.header-links {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
  padding: 0;
}

.header-link {
  display: none;
  color: var(--color-white);
  font-weight: 600;
  padding: 10px 12px;
}

@media (min-width: 768px) {
  .header-link {
    display: inline-block;
  }
}

.header-button {
  display: inline-block;
  padding: 8px 14px;
  border: 2px solid var(--color-white);
  border-radius: var(--radius-8);
  color: var(--color-white);
  font-weight: 600;
  font-size: 0.9375rem;
  text-decoration: none;
  white-space: nowrap;
}

.header-button:hover {
  background: var(--color-white);
  color: var(--brand-petrol);
}

/* Botões. */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 10px 22px;
  border: 2px solid var(--brand-teal);
  border-radius: var(--radius-8);
  background: var(--brand-teal);
  color: var(--color-white);
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}

.button:hover {
  background: var(--brand-teal-dark);
  border-color: var(--brand-teal-dark);
}

.button-light {
  background: var(--color-white);
  border-color: var(--color-white);
  color: var(--brand-petrol);
}

.button-light:hover {
  background: var(--brand-tint);
  border-color: var(--brand-tint);
  color: var(--brand-petrol);
}

.button-outline-light {
  background: transparent;
  border-color: var(--color-white);
  color: var(--color-white);
}

.button-outline-light:hover {
  background: var(--brand-petrol-soft);
  border-color: var(--color-white);
}

/* Topo. */
.hero {
  background: var(--brand-petrol);
  color: var(--color-white);
  padding-block: 48px 56px;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  gap: 40px;
  align-items: center;
}

@media (min-width: 1024px) {
  .hero {
    padding-block: 72px 88px;
  }

  .hero-grid {
    grid-template-columns: 1fr 1.05fr;
    gap: 56px;
  }
}

.hero h1 {
  font-size: 2.125rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

@media (min-width: 768px) {
  .hero h1 {
    font-size: 3rem;
  }
}

.hero-lead {
  margin-top: 20px;
  font-size: 1.1875rem;
  color: #e3efec;
}

@media (min-width: 768px) {
  .hero-lead {
    font-size: 1.3125rem;
  }
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.hero-note {
  margin-top: 16px;
  font-size: 0.9375rem;
  color: var(--brand-teal-on-dark);
}

.hero-figure {
  margin: 0;
}

.hero-figure img,
.feature-figure img {
  border-radius: var(--radius-8);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.28);
  border: 1px solid var(--color-neutral-200);
}

/* Secções. */
.section {
  padding-block: 56px;
}

@media (min-width: 768px) {
  .section {
    padding-block: 80px;
  }
}

.section-tinted {
  background: var(--brand-tint);
}

.section-dark {
  background: var(--brand-petrol);
  color: var(--color-white);
}

.section-title {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--brand-petrol);
}

@media (min-width: 768px) {
  .section-title {
    font-size: 2.25rem;
  }
}

.section-dark .section-title {
  color: var(--color-white);
}

.section-lead {
  margin-top: 12px;
  font-size: 1.1875rem;
  max-width: 46rem;
}

.section-dark .section-lead {
  color: #e3efec;
}

/* Cartões. */
.cards {
  display: grid;
  gap: 16px;
  margin-top: 32px;
  padding: 0;
  list-style: none;
}

@media (min-width: 768px) {
  .cards-3 {
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
  }
}

.card {
  padding: 24px;
  border: 1px solid var(--color-neutral-200);
  border-top: 4px solid var(--brand-teal);
  border-radius: var(--radius-8);
  background: var(--color-white);
}

.card-title {
  font-size: 1.1875rem;
  font-weight: 700;
  color: var(--brand-petrol);
  margin-bottom: 8px;
}

/* O que inclui. */
.features {
  display: grid;
  gap: 48px;
  margin-top: 40px;
}

@media (min-width: 1024px) {
  .features {
    gap: 72px;
  }

  .feature {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 56px;
    align-items: center;
  }

  .feature-reverse {
    grid-template-columns: 1.4fr 1fr;
  }

  .feature-reverse .feature-text {
    order: 2;
  }
}

.feature-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--brand-petrol);
  margin-bottom: 12px;
}

.feature-figure {
  margin: 20px 0 0;
}

@media (min-width: 1024px) {
  .feature-figure {
    margin: 0;
  }
}

.features + .center {
  margin-top: 48px;
}

/* Como começar. */
.steps {
  display: grid;
  gap: 16px;
  margin-top: 32px;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

@media (min-width: 768px) {
  .steps {
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
  }
}

.step {
  position: relative;
  padding: 24px;
  padding-top: 64px;
  border-radius: var(--radius-8);
  background: var(--color-white);
  border: 1px solid var(--color-neutral-200);
  counter-increment: step;
}

.step::before {
  content: counter(step);
  position: absolute;
  top: 20px;
  left: 24px;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--brand-petrol);
  color: var(--color-white);
  font-weight: 700;
}

/* Preços. */
.price-value {
  font-size: 1.0625rem;
}

.price-value strong {
  display: block;
  font-size: 2rem;
  color: var(--brand-petrol);
}

.prices + .small {
  margin-top: 16px;
}

/* Quem está por trás. */
.contact-list {
  margin-top: 20px;
  padding: 0;
  list-style: none;
  font-size: 1.125rem;
}

/* Formulário. */
.form {
  margin-top: 32px;
  padding: 24px 16px;
  border-radius: var(--radius-8);
  background: var(--color-white);
  color: var(--text);
  scroll-margin-top: 16px;
}

@media (min-width: 768px) {
  .form {
    padding: 40px;
  }
}

.form > * + * {
  margin-top: 20px;
}

.form-row {
  display: grid;
  gap: 20px;
}

@media (min-width: 768px) {
  .form-row {
    grid-template-columns: 1fr 1fr;
  }
}

.field label {
  display: block;
  font-weight: 600;
  margin-bottom: 6px;
}

.field input,
.field textarea {
  display: block;
  width: 100%;
  min-height: 48px;
  padding: 10px 12px;
  border: 1px solid var(--color-neutral-700);
  border-radius: var(--radius-4);
  background: var(--color-white);
  color: var(--text);
  font: inherit;
}

.field input:focus-visible,
.field textarea:focus-visible {
  outline: 3px solid var(--color-focus);
  outline-offset: 1px;
}

.field [aria-invalid="true"] {
  border: 2px solid var(--color-danger-700);
}

.field-error {
  margin-top: 6px;
  color: var(--color-danger-700);
  font-weight: 600;
  font-size: 0.9375rem;
}

.required {
  color: var(--color-danger-700);
}

.optional {
  font-weight: 400;
  color: var(--text-muted);
}

.form-problems {
  padding: 16px 20px;
  border-left: 4px solid var(--color-danger-700);
  background: var(--color-danger-50);
}

.form-problems h3 {
  font-size: 1.125rem;
  margin-bottom: 8px;
}

.form-problems ul {
  margin-top: 8px;
  padding-left: 20px;
}

.form-problems a {
  color: var(--color-danger-800);
}

.form .button {
  width: 100%;
}

@media (min-width: 768px) {
  .form .button {
    width: auto;
  }
}

.form .button-light {
  background: var(--brand-teal);
  border-color: var(--brand-teal);
  color: var(--color-white);
}

.form .button-light:hover {
  background: var(--brand-teal-dark);
  border-color: var(--brand-teal-dark);
}

/* Campo-armadilha para robôs: fora do ecrã, fora do teclado e dos leitores de ecrã. */
.trap {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Páginas de texto. */
.prose h1 {
  font-size: 2rem;
  color: var(--brand-petrol);
}

.prose h2 {
  margin-top: 36px;
  font-size: 1.375rem;
  color: var(--brand-petrol);
}

.prose p,
.prose ul,
.prose dl,
.prose .mr-contacts {
  margin-top: 12px;
}

.prose ul {
  padding-left: 22px;
}

.prose dt {
  font-weight: 700;
  margin-top: 12px;
}

.prose dd {
  margin: 0;
}

/* Rodapé. */
.site-footer {
  background: var(--brand-petrol);
  color: var(--color-white);
  padding-top: 48px;
  margin-top: 0;
}

.site-footer a {
  color: var(--color-white);
}

.footer-columns {
  display: grid;
  gap: 32px;
}

@media (min-width: 768px) {
  .footer-columns {
    grid-template-columns: 1.4fr 1fr 1fr;
  }
}

.footer-logo {
  width: 176px;
}

.footer-tagline {
  margin-top: 16px;
  color: #d5e4e1;
  max-width: 24rem;
}

.footer-title {
  font-size: 1.0625rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.footer-list {
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}

.footer-note {
  color: #d5e4e1;
  font-size: 0.9375rem;
}

.footer-bottom {
  margin-top: 40px;
  padding-block: 20px;
  border-top: 1px solid var(--brand-petrol-soft);
  color: #d5e4e1;
  font-size: 0.9375rem;
}
