:root {
  --navy-950: #071a30;
  --navy-900: #0b2545;
  --navy-700: #1d3f6e;
  --accent: #0b7676;
  --accent-strong: #085e5e;
  --accent-bright: #45d0c1;
  --ink: #17212e;
  --muted: #566274;
  --bg: #f5f7fa;
  --surface: #ffffff;
  --line: #dde3ea;
  --danger: #b42318;
  --danger-bg: #fef3f2;
  --success: #067647;
  --success-bg: #ecfdf3;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(11, 37, 69, 0.06), 0 8px 24px rgba(11, 37, 69, 0.06);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --max: 1120px;
  color-scheme: light;
}

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

html {
  scroll-padding-top: 80px;
  -webkit-text-size-adjust: 100%;
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

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

h1,
h2,
h3 {
  line-height: 1.2;
  margin: 0 0 0.5em;
  letter-spacing: -0.01em;
}

p {
  margin: 0 0 1em;
}

a {
  color: var(--accent);
}

a:hover {
  color: var(--accent-strong);
}

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

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

@media (min-width: 640px) {
  .container {
    padding: 0 24px;
  }
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -48px;
  z-index: 100;
  padding: 8px 14px;
  border-radius: 8px;
  background: var(--navy-900);
  color: #fff;
}

.skip-link:focus {
  top: 12px;
  color: #fff;
}

/* Cabeçalho */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(160%) blur(10px);
  -webkit-backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  height: 64px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--navy-900);
  text-decoration: none;
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.brand:hover {
  color: var(--navy-900);
}

.brand-mark {
  width: 34px;
  height: 34px;
  flex: none;
}

.gauge-track,
.gauge-zone,
.gauge-needle {
  fill: none;
  stroke-width: 4;
  stroke-linecap: round;
}

.brand-mark .gauge-track {
  stroke: var(--navy-900);
}

.brand-mark .gauge-zone {
  stroke: var(--accent);
}

.brand-mark .gauge-needle {
  stroke: var(--accent);
  stroke-width: 3.5;
}

.brand-mark .gauge-hub {
  fill: var(--navy-900);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.site-nav a {
  padding: 8px 10px;
  border-radius: 8px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
}

.site-nav a:hover {
  background: var(--bg);
  color: var(--navy-900);
}

.lang-toggle {
  margin-left: 6px;
  min-width: 44px;
  height: 36px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--navy-900);
  font: inherit;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  cursor: pointer;
}

.lang-toggle:hover {
  border-color: var(--navy-700);
}

/* Em ecrãs estreitos o link "Atividades" sai do menu (o hero tem o botão "Ver atividades"). */
@media (max-width: 479px) {
  .nav-wide {
    display: none;
  }

  .brand-name {
    font-size: 0.95rem;
  }

  .site-nav a {
    padding: 8px 6px;
    font-size: 0.9rem;
  }
}

/* Hero */

.hero {
  position: relative;
  overflow: hidden;
  padding: 72px 0 80px;
  color: #fff;
  background:
    radial-gradient(900px 420px at 85% -10%, rgba(69, 208, 193, 0.2), transparent 60%),
    linear-gradient(160deg, var(--navy-900), var(--navy-950));
}

.hero-gauge {
  position: absolute;
  right: -80px;
  bottom: -120px;
  width: 460px;
  height: 460px;
  opacity: 0.14;
  pointer-events: none;
}

.hero-gauge .gauge-track {
  stroke: #fff;
  stroke-width: 2;
}

.hero-gauge .gauge-zone,
.hero-gauge .gauge-needle {
  stroke: var(--accent-bright);
  stroke-width: 2;
}

.hero-gauge .gauge-hub {
  fill: #fff;
}

.hero-inner {
  position: relative;
}

.eyebrow {
  margin-bottom: 14px;
  color: var(--accent-bright);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 16ch;
  font-size: clamp(2.1rem, 6vw, 3.6rem);
  font-weight: 750;
}

.lead {
  max-width: 58ch;
  margin-bottom: 32px;
  color: rgba(255, 255, 255, 0.82);
  font-size: clamp(1.05rem, 2.2vw, 1.2rem);
}

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

@media (min-width: 900px) {
  .hero {
    padding: 112px 0 120px;
  }

  .hero-gauge {
    right: 4%;
    bottom: -60px;
    width: 520px;
    height: 520px;
  }
}

/* Botões */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 10px;
  font: inherit;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s, border-color 0.15s, color 0.15s;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn-primary:hover {
  background: var(--accent-strong);
  color: #fff;
}

.btn-primary:disabled {
  opacity: 0.7;
  cursor: progress;
}

.btn-ghost {
  border-color: rgba(255, 255, 255, 0.35);
  color: #fff;
}

.btn-ghost:hover {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

/* Secções */

.section {
  padding: 72px 0;
}

.section-alt {
  background: var(--surface);
  border-top: 1px solid var(--line);
}

.section-head {
  max-width: 640px;
  margin-bottom: 40px;
}

.section-head h2 {
  color: var(--navy-900);
  font-size: clamp(1.7rem, 4vw, 2.3rem);
}

.section-head p {
  margin: 0;
  color: var(--muted);
  font-size: 1.05rem;
}

@media (min-width: 900px) {
  .section {
    padding: 96px 0;
  }
}

/* Atividades */

.cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

@media (min-width: 640px) {
  .cards {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1040px) {
  .cards {
    grid-template-columns: repeat(4, 1fr);
  }
}

.card {
  display: flex;
  flex-direction: column;
  padding: 28px 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.card-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-bottom: 20px;
  border-radius: 12px;
  background: rgba(11, 118, 118, 0.1);
  color: var(--accent);
}

.card-icon svg,
.contact-item svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.card h3 {
  color: var(--navy-900);
  font-size: 1.15rem;
}

.card p {
  flex: 1;
  color: var(--muted);
}

.card-link {
  margin-top: 4px;
  font-weight: 600;
  text-decoration: none;
}

.card-link:hover {
  text-decoration: underline;
}

/* Contacto */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  align-items: start;
}

@media (min-width: 900px) {
  .contact-grid {
    grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr);
    gap: 48px;
  }
}

.contact-form {
  display: grid;
  gap: 18px;
}

.field-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}

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

.field {
  display: grid;
  gap: 6px;
}

.field label {
  font-weight: 600;
  font-size: 0.95rem;
}

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

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.field select {
  appearance: none;
  padding-right: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23566274' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 18px;
}

.field textarea {
  min-height: 150px;
  resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(11, 118, 118, 0.18);
}

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

.field-check {
  grid-template-columns: auto 1fr;
  align-items: start;
  gap: 12px;
}

.field-check input {
  width: 20px;
  height: 20px;
  margin: 2px 0 0;
  padding: 0;
  accent-color: var(--accent);
}

.field-check label {
  font-weight: 400;
  color: var(--muted);
  font-size: 0.9rem;
}

.field-check input[aria-invalid="true"] {
  outline: 2px solid var(--danger);
  outline-offset: 2px;
}

/* Campo anti-spam: invisível para pessoas */
.hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-status {
  margin: 0;
  padding: 12px 16px;
  border-radius: 10px;
  font-weight: 500;
}

.form-status.is-ok {
  background: var(--success-bg);
  color: var(--success);
}

.form-status.is-error {
  background: var(--danger-bg);
  color: var(--danger);
}

.btn-submit {
  justify-self: start;
}

@media (max-width: 639px) {
  .btn-submit {
    justify-self: stretch;
  }
}

.contact-card {
  padding: 28px 24px;
  border-radius: var(--radius);
  background: var(--navy-900);
  color: rgba(255, 255, 255, 0.86);
}

.contact-card h3 {
  margin-bottom: 24px;
  color: #fff;
  font-size: 1.2rem;
}

.contact-item {
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 14px;
}

.contact-item + .contact-item {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.contact-item svg {
  margin-top: 2px;
  color: var(--accent-bright);
}

.contact-label {
  margin-bottom: 4px;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.contact-card address {
  font-style: normal;
  margin-bottom: 8px;
}

.contact-card a {
  color: var(--accent-bright);
  font-weight: 600;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.contact-card a:hover {
  color: #fff;
  text-decoration: underline;
}

.contact-map {
  font-size: 0.9rem;
}

/* Rodapé */

.site-footer {
  padding: 28px 0;
  background: var(--navy-950);
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.9rem;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 4px 24px;
}

.footer-inner p {
  margin: 0;
}

/* Página de resposta do formulário (sem JavaScript) */

.notice-page {
  display: grid;
  place-items: center;
  min-height: 100vh;
  padding: 16px;
}

.notice {
  max-width: 520px;
  padding: 36px 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
  text-align: center;
}

.notice h1 {
  color: var(--navy-900);
  font-size: 1.5rem;
}

.notice p {
  color: var(--muted);
}
