:root {
  --brand-cyan: #00d3f3;
  --brand-cyan-soft: #cefafe;
  --white-strong: rgba(255, 255, 255, 0.92);
  --white-muted: rgba(255, 255, 255, 0.72);
  --panel-bg: rgba(255, 255, 255, 0.1);
  --panel-border: rgba(255, 255, 255, 0.24);
  --overlay-top: rgba(29, 46, 52, 0.72);
  --overlay-mid: rgba(37, 55, 60, 0.48);
  --overlay-bottom: rgba(45, 36, 22, 0.72);
  --shadow-soft: 0 24px 48px rgba(0, 0, 0, 0.18);
}

* {
  box-sizing: border-box;
}

a {
  color: inherit;
}

a:focus,
a:hover {
  color: #fff;
  outline: none;
}

html,
body {
  min-height: 100%;
  margin: 0;
}

body {
  font-family: "Inter", sans-serif;
  background: #20343a;
  color: #fff;
}

/* Neutralise any Foundation resets on semantic elements */
section, article, header, footer, main {
  display: revert;
}

.construction-page {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-image: url("../images/hero_surf_rescue.jpg");
  background-position: center center;
  background-repeat: no-repeat;
  background-size: cover;
  overflow: hidden;
}

.page-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.2);
}

.site-header,
.site-footer {
  position: relative;
  z-index: 1;
  padding-left: clamp(1.5rem, 4vw, 4rem);
  padding-right: clamp(1.5rem, 4vw, 4rem);
}

.hero {
  position: relative;
  z-index: 1;
}

.site-header {
  padding-top: 2rem;
}

.brand-logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.brand-img {
  height: 2.75rem;
  width: auto;
  display: block;
}

.hero {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2rem;
  padding-top: 1rem;
  padding-bottom: 1rem;
}

.hero-copy {
  text-align: center;
}

.hero-copy h1 {
  margin: 0;
  max-width: 60rem;
  margin-left: auto;
  margin-right: auto;
  font-size: clamp(2.7rem, 4.4vw, 4rem);
  line-height: 1.08;
  font-weight: 800;
  color: #fff;
  text-wrap: balance;
}

.hero-copy .lead,
.hero-copy .sublead {
  margin: 0;
}

.hero-copy .lead {
  margin-top: 1.1rem;
  font-size: clamp(1.2rem, 2vw, 2rem);
  line-height: 1.35;
  color: #fff;
}

.hero-copy .sublead {
  margin-top: 0.6rem;
  font-size: clamp(1rem, 1.4vw, 1.5rem);
  line-height: 1.45;
  color: #fff;
}

.training-grid {
  width: 100%;
  max-width: 64rem;
  margin: 0 auto;
}

.training-grid .cell {
  display: flex;
}

.training-card {
  width: 100%;
  min-height: 8.875rem;
  padding: 1.55rem 1.5rem;
  border: 1px solid var(--panel-border);
  border-radius: 1rem;
  background: var(--panel-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.card-body {
  display: flex;
  flex-direction: column;
}

.event-desc {
  margin: 0 0 0.6rem;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #fff;
  line-height: 1;
}

.training-card h2 {
  margin: 0 0 0.45rem;
  font-size: clamp(1rem, 2vw, 2rem);
  line-height: 1;
  font-weight: 700;
  color: #fff;
}

.training-card > p {
  margin: 0;
  font-size: 1.125rem;
  line-height: 1.2;
  color: #fff;
}

.btn-inscricao {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  align-self: flex-start;
  margin-top: 0;
  padding: 0.5rem 1.25rem;
  border: 1.5px solid #E31E24;
  background: #E31E24;
  color: #fff;
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-decoration: none;
  transition: background 160ms ease, color 160ms ease;
}

.btn-inscricao:hover,
.btn-inscricao:focus-visible {
  background: #b8181d;
  border-color: #b8181d;
  color: #fff;
}

.site-footer {
  margin-top: auto;
  padding-bottom: 2rem;
}

.footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.footer-social {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.15rem;
  height: 3.15rem;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  transition: background-color 180ms ease, transform 180ms ease;
}

.social-link:hover,
.social-link:focus-visible {
  background: #5BB3A8;
  border-color: #5BB3A8;
  transform: translateY(-1px);
}

.social-link svg {
  display: block;
  flex: 0 0 auto;
  width: 1.35rem;
  height: 1.35rem;
  max-width: 1.35rem;
  max-height: 1.35rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}

.social-link:last-child svg {
  fill: currentColor;
  stroke: none;
}

.sponsors-wrap {
  display: flex;
  align-items: center;
}

.apoios-img {
  height: 3rem;
  width: auto;
  display: block;
  object-fit: contain;
}

@media screen and (max-width: 48em) {
  .hero {
    padding-top: 3rem;
    padding-bottom: 3rem;
  }

  .training-grid {
    max-width: 40rem;
  }

  .sponsors-wrap {
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .sponsors-list {
    justify-content: flex-start;
  }
}

@media screen and (max-width: 36em) {
  .site-header {
    padding-top: 1.5rem;
  }

  .hero {
    gap: 2rem;
  }

  .hero-copy h1 {
    font-size: 2.5rem;
  }

  .hero-copy .lead {
    font-size: 1.25rem;
  }

  .hero-copy .sublead {
    font-size: 1rem;
  }

  .training-card {
    min-height: auto;
  }

  .training-grid {
    max-width: 26rem;
  }

  .footer-social {
    justify-content: center;
  }

  .sponsors-wrap {
    justify-content: center;
    text-align: center;
  }

  .sponsors-list {
    justify-content: center;
    width: 100%;
  }

  .sponsor-pill {
    width: 100%;
  }
}