:root {
  --ink: #18231f;
  --muted: #617067;
  --paper: #f8f5ec;
  --surface: #ffffff;
  --line: rgba(24, 35, 31, 0.14);
  --green: #1d5b45;
  --green-2: #2f7b5f;
  --gold: #c99b47;
  --blue: #244e66;
  --shadow: 0 18px 50px rgba(17, 32, 28, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
}

a {
  color: inherit;
  text-decoration: none;
}

.site-header {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(20px, 5vw, 64px);
  color: #fff;
  transition: background 180ms ease, color 180ms ease, box-shadow 180ms ease;
}

.site-header.scrolled {
  color: var(--ink);
  background: rgba(248, 245, 236, 0.94);
  box-shadow: 0 10px 30px rgba(17, 32, 28, 0.1);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 180px;
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid currentColor;
  border-radius: 8px;
  font-weight: 900;
}

.brand strong,
.brand small {
  display: block;
}

.brand small {
  font-size: 12px;
  opacity: 0.78;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(14px, 3vw, 32px);
  font-size: 14px;
  font-weight: 700;
}

.header-cta,
.btn {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  border: 1px solid currentColor;
  border-radius: 8px;
  padding: 0 18px;
  font-weight: 800;
}

.header-cta {
  min-width: 148px;
}

.hero {
  position: relative;
  min-height: 720px;
  display: grid;
  align-items: end;
  overflow: hidden;
  color: #fff;
}

.hero-media,
.hero-overlay {
  position: absolute;
  inset: 0;
}

.hero-media {
  background-image: url("https://images.unsplash.com/photo-1500530855697-b586d89ba3ee?auto=format&fit=crop&w=2200&q=82");
  background-position: center;
  background-size: cover;
  transform: scale(1.02);
}

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(9, 25, 20, 0.86), rgba(9, 25, 20, 0.52) 48%, rgba(9, 25, 20, 0.2)),
    linear-gradient(0deg, rgba(9, 25, 20, 0.72), transparent 55%);
}

.hero-content {
  position: relative;
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  padding: 170px 0 54px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--gold);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  text-wrap: pretty;
}

h1 {
  max-width: 790px;
  margin: 0;
  font-size: clamp(52px, 9vw, 104px);
  line-height: 0.95;
}

h2 {
  margin: 0;
  font-size: clamp(32px, 5vw, 58px);
  line-height: 1.02;
}

h3 {
  margin: 0;
  font-size: 22px;
}

.hero-copy {
  max-width: 680px;
  margin: 26px 0 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 20px;
  line-height: 1.55;
}

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

.btn.primary {
  border-color: var(--gold);
  color: #172019;
  background: var(--gold);
}

.btn.secondary {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

.hero-facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  max-width: 960px;
  margin: 54px 0 0;
}

.hero-facts div {
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(14px);
}

.hero-facts dt {
  font-size: 28px;
  font-weight: 900;
}

.hero-facts dd {
  margin: 4px 0 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 13px;
  line-height: 1.35;
}

.section,
.metrics-band {
  width: min(1160px, calc(100% - 40px));
  margin: 0 auto;
  padding: 92px 0;
}

.intro,
.split,
.request-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.82fr);
  gap: clamp(32px, 7vw, 90px);
  align-items: start;
}

.intro p,
.split p,
.request-section p {
  margin: 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.7;
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(320px, 1fr);
  gap: 40px;
  align-items: end;
  margin-bottom: 32px;
}

.program-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.program-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 8px 24px rgba(17, 32, 28, 0.06);
}

.program-card img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.program-body {
  padding: 22px;
}

.program-body p {
  color: var(--muted);
  line-height: 1.55;
}

.tag-list,
.program-body ul,
.partner-panel ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.tag-list li,
.program-body li,
.partner-panel li {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 10px;
  color: var(--green);
  background: #f3f0e5;
  font-size: 12px;
  font-weight: 800;
}

.operation {
  padding-top: 40px;
}

.flow {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.flow-card {
  min-height: 220px;
  padding: 22px;
  border-radius: 8px;
  color: #fff;
  background: var(--green);
}

.flow-card:nth-child(even) {
  background: var(--blue);
}

.flow-card span {
  display: inline-grid;
  width: 36px;
  height: 36px;
  place-items: center;
  margin-bottom: 18px;
  border: 1px solid rgba(255, 255, 255, 0.38);
  border-radius: 50%;
  font-weight: 900;
}

.flow-card p {
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.55;
}

.metrics-band {
  width: 100%;
  padding: 86px clamp(20px, 5vw, 64px);
  color: #fff;
  background: #13261f;
}

.metrics-band > div {
  width: min(1160px, 100%);
  margin: 0 auto;
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 34px;
}

.metric-card {
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
}

.metric-card strong {
  display: block;
  margin-bottom: 16px;
  color: var(--gold);
  font-size: 14px;
  text-transform: uppercase;
}

.metric-card dl {
  display: grid;
  gap: 12px;
  margin: 0;
}

.metric-card div {
  display: flex;
  justify-content: space-between;
  gap: 20px;
}

.metric-card dt {
  color: rgba(255, 255, 255, 0.72);
}

.metric-card dd {
  margin: 0;
  font-weight: 900;
}

.partner-panel,
.request-form {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 28px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.timeline {
  display: grid;
  gap: 12px;
}

.timeline-item {
  display: grid;
  grid-template-columns: 80px 1fr 150px;
  gap: 18px;
  align-items: center;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.timeline-item strong {
  color: var(--green);
  font-size: 20px;
}

.timeline-item p {
  margin: 0;
  color: var(--muted);
}

.timeline-item span {
  justify-self: end;
  border-radius: 999px;
  padding: 8px 12px;
  color: var(--blue);
  background: #eef4f5;
  font-size: 12px;
  font-weight: 900;
}

.request-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

label {
  display: grid;
  gap: 8px;
  color: var(--green);
  font-size: 13px;
  font-weight: 900;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px 13px;
  color: var(--ink);
  background: #fbfaf6;
  font: inherit;
}

textarea {
  resize: vertical;
}

.wide {
  grid-column: 1 / -1;
}

.form-output {
  min-height: 56px;
  border-radius: 8px;
  padding: 14px;
  color: var(--green);
  background: #eef5ef;
  line-height: 1.45;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 34px clamp(20px, 5vw, 64px);
  color: #dce7e0;
  background: #0e1b16;
}

.site-footer div {
  display: grid;
  gap: 4px;
}

.site-footer span {
  color: rgba(220, 231, 224, 0.68);
}

.coming-soon-page {
  min-height: 100vh;
  overflow: hidden;
  background: #0e1b16;
}

.coming-soon-header {
  color: #fff;
}

.coming-soon-hero {
  min-height: 100vh;
  align-items: center;
}

.coming-soon-hero .hero-media {
  background-image: url("https://www.portodelisboa.pt/documents/20121/297337/Tejo+Live.jpg/fe304d3f-85ce-0e0c-6915-29bb23be2578?t=1619797634954");
  background-position: center;
}

.coming-soon-content {
  padding: 140px 0 70px;
}

.coming-soon-content h1 {
  max-width: 920px;
}

.coming-soon-note {
  display: inline-flex;
  margin: 32px 0 0;
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 8px;
  padding: 12px 16px;
  color: rgba(255, 255, 255, 0.82);
  background: rgba(255, 255, 255, 0.08);
  font-weight: 800;
  backdrop-filter: blur(14px);
}

@media (max-width: 980px) {
  .nav {
    display: none;
  }

  .hero-facts,
  .program-grid,
  .flow,
  .metrics-grid,
  .intro,
  .split,
  .request-section,
  .section-heading {
    grid-template-columns: 1fr;
  }

  .flow-card {
    min-height: 0;
  }
}

@media (max-width: 640px) {
  .site-header {
    padding: 14px 18px;
  }

  .header-cta {
    display: none;
  }

  .hero {
    min-height: 680px;
  }

  .hero-content {
    width: calc(100% - 32px);
    padding-bottom: 34px;
  }

  .request-form,
  .timeline-item {
    grid-template-columns: 1fr;
  }

  .timeline-item span {
    justify-self: start;
  }

  .site-footer {
    display: grid;
  }
}
