:root {
  --navy: #0b3a5f;
  --navy-dark: #061f35;
  --navy-soft: #15547f;
  --cream: #fff7df;
  --white: #ffffff;
  --ink: #102232;
  --muted: #596878;
  --line: rgba(16, 34, 50, 0.16);
  --cyan: #8bdcf4;
  --yellow: #ffc928;
  --green: #00b871;
  --orange: #ff4b14;
  --blue: #1e57a8;
  --shadow: 14px 14px 0 rgba(0, 184, 113, 0.95);
  --content: 1180px;
  --narrow: 780px;
}

* {
  box-sizing: border-box;
}

html {
  color-scheme: light;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.55;
}

img,
svg {
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
}

a:focus-visible,
button:focus-visible {
  outline: 4px solid var(--yellow);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: 12px;
  z-index: 30;
  transform: translateY(-140%);
  background: var(--yellow);
  color: var(--navy-dark);
  padding: 8px 12px;
  border-radius: 0;
  font-weight: 900;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px clamp(18px, 4vw, 48px);
  background: var(--navy);
  color: var(--white);
}

.site-header::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 6px;
  background: linear-gradient(90deg, var(--orange), var(--yellow), var(--green), var(--cyan));
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: inherit;
  text-decoration: none;
}

.brand img,
.footer-brand img {
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--white);
}

.brand strong,
.footer-brand span {
  display: block;
  line-height: 1.05;
  font-weight: 950;
}

.brand small {
  display: block;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.78rem;
  line-height: 1.1;
}

.main-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.main-nav a {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  padding: 7px 13px;
  color: var(--white);
  font-size: 0.94rem;
  font-weight: 950;
  text-decoration: none;
}

.main-nav a:hover,
.main-nav a[aria-current="page"] {
  background: var(--yellow);
  color: var(--navy-dark);
  box-shadow: 5px 5px 0 var(--green);
}

.hero {
  position: relative;
  overflow: hidden;
  min-height: clamp(650px, 82svh, 850px);
  padding: clamp(64px, 8vw, 108px) clamp(20px, 5vw, 64px) clamp(76px, 8vw, 112px);
  background:
    linear-gradient(90deg, rgba(6, 31, 53, 0.94), rgba(11, 58, 95, 0.86)),
    url("/assets/img/hero-rio-map.jpg") center / cover no-repeat;
  color: var(--white);
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: min(44vw, 560px);
  height: min(42vw, 510px);
  background: var(--yellow);
  clip-path: polygon(24% 0, 100% 0, 100% 100%);
}

.hero::after {
  content: "";
  position: absolute;
  right: 7vw;
  bottom: 42px;
  width: 160px;
  height: 160px;
  border: 20px solid rgba(0, 184, 113, 0.38);
  transform: rotate(10deg);
}

.hero__inner {
  position: relative;
  z-index: 1;
  width: min(var(--content), 100%);
  margin-inline: auto;
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(340px, 0.84fr);
  gap: clamp(28px, 6vw, 78px);
  align-items: center;
}

.hero__content {
  min-width: 0;
}

.hero h1,
.page-hero h1 {
  max-width: 900px;
  margin: 0;
  font-size: clamp(3.1rem, 7vw, 6.5rem);
  line-height: 0.98;
  letter-spacing: 0;
}

.hero h1 span {
  display: table;
  margin-bottom: 10px;
  padding: 0 10px 5px;
  background: var(--cyan);
  color: var(--navy);
}

.hero h1 span:nth-child(2) {
  background: var(--yellow);
  color: var(--navy-dark);
}

.hero p:not(.eyebrow),
.page-hero p:not(.eyebrow) {
  max-width: 610px;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(1.06rem, 2vw, 1.34rem);
  font-weight: 650;
}

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

.hero__media {
  position: relative;
  margin: 0;
  transform: rotate(-1.5deg);
}

.hero__media::before {
  content: "";
  position: absolute;
  inset: 18px -18px -18px 18px;
  background: var(--green);
}

.hero__media img {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border: 12px solid var(--cyan);
  box-shadow: 18px 18px 0 var(--yellow);
}

.hero__media figcaption {
  position: absolute;
  left: -14px;
  bottom: -24px;
  padding: 7px 12px;
  background: var(--orange);
  color: var(--white);
  font-size: clamp(1.1rem, 2vw, 1.7rem);
  font-weight: 950;
}

.button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 17px;
  border: 2px solid transparent;
  border-radius: 0;
  font-weight: 950;
  line-height: 1.2;
  text-decoration: none;
  transition: transform 120ms ease, box-shadow 120ms ease;
}

.button:hover {
  transform: translate(-2px, -2px);
}

.button--primary {
  background: var(--orange);
  color: var(--white);
  box-shadow: 6px 6px 0 var(--yellow);
}

.button--blue {
  background: var(--blue);
  color: var(--white);
  box-shadow: 6px 6px 0 var(--cyan);
}

.button--green {
  background: var(--green);
  color: var(--navy-dark);
  box-shadow: 6px 6px 0 var(--yellow);
}

.button--secondary {
  border-color: currentColor;
  background: transparent;
  color: currentColor;
}

.text-link {
  display: inline-flex;
  margin-top: 12px;
  color: var(--navy);
  font-weight: 950;
  text-decoration-color: var(--green);
  text-decoration-thickness: 4px;
  text-underline-offset: 5px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--orange);
  font-size: 0.78rem;
  font-weight: 950;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero .eyebrow,
.page-hero .eyebrow {
  color: var(--yellow);
}

.section,
.social-band,
.page-hero {
  padding: clamp(54px, 8vw, 96px) clamp(20px, 5vw, 64px);
}

.section__inner {
  width: min(var(--content), 100%);
  margin-inline: auto;
}

.narrow {
  width: min(var(--narrow), 100%);
}

.section-heading {
  max-width: 820px;
  margin-bottom: 30px;
}

.section-heading--compact {
  margin-bottom: 24px;
}

.section-heading h2,
.resource-group h2,
.tip-card h2,
.sponsor-card h2,
.institution-card h3 {
  margin: 0;
  color: var(--navy-dark);
  font-size: clamp(1.8rem, 3.4vw, 3.3rem);
  line-height: 1.04;
  letter-spacing: 0;
}

.section-heading p:not(.eyebrow),
.association-card p,
.tip-card p,
.resource-group li,
.directory-item p,
.sponsor-card li {
  color: var(--muted);
}

.social-band {
  background:
    linear-gradient(135deg, transparent 0 74%, var(--yellow) 74%),
    var(--cream);
}

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

.social-button {
  min-height: 112px;
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px;
  border: 3px solid var(--navy);
  background: var(--white);
  color: var(--ink);
  text-decoration: none;
  box-shadow: 8px 8px 0 var(--green);
  transition: transform 120ms ease, box-shadow 120ms ease;
}

.social-button:hover {
  transform: translate(-2px, -2px);
  box-shadow: 12px 12px 0 var(--green);
}

.social-button--instagram {
  box-shadow: 8px 8px 0 var(--orange);
}

.social-button--facebook {
  box-shadow: 8px 8px 0 var(--cyan);
}

.social-button__mark {
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: var(--white);
  font-size: 0.82rem;
  font-weight: 950;
}

.social-button--instagram .social-button__mark {
  background: var(--orange);
}

.social-button--facebook .social-button__mark {
  background: var(--blue);
}

.social-button--whatsapp .social-button__mark {
  background: var(--green);
  color: var(--navy-dark);
}

.social-button strong,
.social-button span span {
  display: block;
}

.social-button span span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.93rem;
  line-height: 1.35;
}

.section--map {
  background:
    linear-gradient(160deg, var(--navy) 0 58%, var(--cream) 58%);
  color: var(--white);
}

.section--map .section-heading h2,
.section--map .section-heading p:not(.eyebrow) {
  color: var(--white);
}

.map-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.94fr) minmax(300px, 0.72fr);
  gap: clamp(22px, 5vw, 54px);
  align-items: center;
}

.map-layout .section-heading {
  grid-column: 1 / -1;
  margin-bottom: 0;
}

.map-panel {
  border: 10px solid var(--cyan);
  background: var(--cream);
  box-shadow: var(--shadow);
}

.map-stage {
  position: relative;
  width: min(620px, 100%);
  margin: 0 auto;
  padding: clamp(18px, 3vw, 30px);
}

.brazil-map {
  display: block;
  width: 100%;
}

.map-marker {
  position: absolute;
  display: inline-flex;
  align-items: center;
  transform: translate(-50%, -50%);
  text-decoration: none;
  z-index: 2;
}

.map-marker__dot {
  width: 20px;
  height: 20px;
  border: 4px solid var(--white);
  border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 0 8px rgba(255, 75, 20, 0.25), 0 10px 18px rgba(16, 34, 50, 0.28);
}

.map-marker--sp .map-marker__dot {
  background: var(--blue);
  box-shadow: 0 0 0 8px rgba(30, 87, 168, 0.24), 0 10px 18px rgba(16, 34, 50, 0.28);
}

.map-marker__label {
  position: absolute;
  top: -40px;
  left: 10px;
  white-space: nowrap;
  padding: 5px 8px;
  background: var(--yellow);
  color: var(--navy-dark);
  font-size: 0.76rem;
  font-weight: 950;
  box-shadow: 5px 5px 0 var(--green);
}

.map-marker--sp .map-marker__label {
  left: auto;
  right: 10px;
  background: var(--cyan);
}

.association-list {
  display: grid;
  gap: 14px;
}

.association-card,
.contact-card,
.tip-card,
.resource-group,
.directory-item,
.sponsor-card,
.vibe-card {
  border: 3px solid var(--navy);
  background: var(--white);
}

.association-card {
  padding: 18px;
  color: var(--ink);
  box-shadow: 7px 7px 0 var(--yellow);
}

.association-card__place {
  margin: 0 0 4px;
  color: var(--orange);
  font-size: 0.78rem;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.association-card h3 {
  margin: 0;
  color: var(--navy-dark);
  line-height: 1.2;
}

.association-card p {
  margin: 8px 0 0;
}

.association-card__links,
.inline-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}

.association-card__links a,
.inline-links a {
  color: var(--blue);
  font-weight: 950;
  text-decoration-color: var(--green);
  text-decoration-thickness: 3px;
  text-underline-offset: 4px;
}

.section--vibe {
  background:
    linear-gradient(135deg, var(--yellow) 0 20%, transparent 20%),
    var(--cream);
}

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

.vibe-card {
  min-height: 220px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 22px;
  color: var(--ink);
  text-decoration: none;
  box-shadow: 8px 8px 0 var(--green);
}

.vibe-card--orange {
  box-shadow: 8px 8px 0 var(--orange);
}

.vibe-card--green {
  box-shadow: 8px 8px 0 var(--green);
}

.vibe-card--blue {
  box-shadow: 8px 8px 0 var(--cyan);
}

.vibe-card span {
  color: var(--orange);
  font-size: 0.78rem;
  font-weight: 950;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.vibe-card h3 {
  margin: 28px 0 8px;
  color: var(--navy-dark);
  font-size: clamp(1.45rem, 2.4vw, 2.15rem);
  line-height: 1.05;
}

.vibe-card p {
  margin: 0;
  color: var(--muted);
}

.section--institutions {
  background:
    linear-gradient(160deg, var(--navy) 0 46%, var(--cream) 46%);
  color: var(--white);
}

.section--institutions .section-heading h2,
.section--institutions .section-heading p:not(.eyebrow) {
  color: var(--white);
}

.institutions-layout {
  display: grid;
  gap: 10px;
}

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

.institution-card {
  min-height: 260px;
  padding: 22px;
  border: 3px solid var(--navy);
  background: var(--white);
  color: var(--ink);
  box-shadow: 8px 8px 0 var(--green);
}

.institution-card--school {
  box-shadow: 8px 8px 0 var(--cyan);
}

.institution-card--consulate {
  box-shadow: 8px 8px 0 var(--yellow);
}

.institution-card span {
  display: inline-flex;
  margin-bottom: 22px;
  color: var(--orange);
  font-size: 0.78rem;
  font-weight: 950;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.institution-card h3 {
  color: var(--navy-dark);
}

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

.institution-card a {
  display: inline-flex;
  color: var(--blue);
  font-weight: 950;
  text-decoration-color: var(--green);
  text-decoration-thickness: 3px;
  text-underline-offset: 4px;
}

.page-hero {
  min-height: 300px;
  display: grid;
  align-items: end;
  background:
    linear-gradient(90deg, rgba(6, 31, 53, 0.94), rgba(11, 58, 95, 0.75)),
    url("/assets/img/hero-rio-map.jpg") center / cover no-repeat;
  color: var(--white);
}

.page-hero h1 {
  max-width: 840px;
  font-size: clamp(2.2rem, 4.6vw, 4.2rem);
  line-height: 1;
}

.page-hero p:not(.eyebrow) {
  font-size: clamp(1rem, 1.7vw, 1.2rem);
}

.page-hero .section__inner {
  display: grid;
  gap: 22px;
}

.page-hero .social-actions {
  margin-top: 8px;
}

.page-hero .social-button {
  color: var(--ink);
}

.page-hero--contact {
  min-height: 420px;
  background:
    linear-gradient(90deg, rgba(6, 31, 53, 0.92), rgba(255, 75, 20, 0.52)),
    url("/assets/img/nvr-bestuur.jpg") center 42% / cover no-repeat;
}

.contact-grid,
.tips-grid,
.sponsor-grid {
  display: grid;
  gap: 16px;
}

.contact-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.contact-card {
  min-height: 132px;
  padding: 18px;
  box-shadow: 7px 7px 0 var(--cyan);
}

.contact-card p {
  margin: 0 0 8px;
  color: var(--orange);
  font-size: 0.78rem;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.contact-card a {
  overflow-wrap: anywhere;
  color: var(--blue);
  font-size: clamp(0.92rem, 1.6vw, 1rem);
  font-weight: 950;
  text-decoration-color: var(--green);
  text-decoration-thickness: 3px;
  text-underline-offset: 4px;
}

.tips-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.tip-card {
  min-height: 244px;
  padding: 22px;
  box-shadow: 8px 8px 0 var(--green);
}

.tip-card--urgent {
  box-shadow: 8px 8px 0 var(--orange);
}

.number-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding: 0;
  margin: 18px 0 0;
  list-style: none;
}

.number-list li {
  display: grid;
  gap: 2px;
  padding: 12px;
  border: 2px solid var(--navy);
  background: var(--cream);
}

.number-list strong {
  color: var(--orange);
  font-size: 1.7rem;
  line-height: 1;
}

.section--quiet {
  background:
    linear-gradient(135deg, transparent 0 70%, var(--cyan) 70%),
    var(--white);
}

.resource-list,
.directory {
  display: grid;
  gap: 22px;
}

.resource-group {
  padding: 22px;
  box-shadow: 8px 8px 0 var(--yellow);
}

.resource-group ul,
.sponsor-card ul {
  padding-left: 20px;
  margin-bottom: 0;
}

.resource-group a,
.directory-item a {
  color: var(--blue);
  font-weight: 950;
  text-decoration-color: var(--green);
  text-decoration-thickness: 3px;
  text-underline-offset: 4px;
}

.link-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 0;
  margin: 18px 0 0;
  list-style: none;
}

.link-cloud li {
  margin: 0;
}

.link-cloud a {
  display: inline-flex;
  padding: 8px 10px;
  background: var(--cyan);
  color: var(--navy-dark);
  text-decoration: none;
}

.directory-group {
  display: grid;
  gap: 12px;
}

.directory-group h3 {
  display: table;
  margin: 0;
  padding: 2px 8px 5px;
  background: var(--cyan);
  color: var(--navy);
  font-size: clamp(1.35rem, 2.2vw, 2rem);
  line-height: 1.1;
}

.directory-list {
  display: grid;
  gap: 12px;
}

.directory-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(180px, 0.4fr);
  gap: 18px;
  align-items: start;
  padding: 16px 18px;
  box-shadow: 6px 6px 0 rgba(0, 184, 113, 0.42);
}

.directory-item h4 {
  margin: 0;
  font-size: 1rem;
}

.directory-item p {
  margin: 5px 0 0;
}

.directory-item__location {
  color: var(--muted);
  font-size: 0.92rem;
  text-align: right;
}

.sponsor-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.sponsor-card {
  min-height: 220px;
  padding: 22px;
  box-shadow: 8px 8px 0 var(--orange);
}

.site-footer {
  padding: 46px clamp(20px, 5vw, 64px) 28px;
  background: var(--navy-dark);
  color: var(--white);
}

.site-footer::before {
  content: "";
  display: block;
  height: 8px;
  margin: -46px clamp(-64px, -5vw, -20px) 38px;
  background: linear-gradient(90deg, var(--orange), var(--yellow), var(--green), var(--cyan));
}

.footer-grid {
  width: min(var(--content), 100%);
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(180px, 0.5fr) minmax(220px, 0.6fr);
  gap: 30px;
  margin-inline: auto;
}

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

.site-footer p,
.site-footer a {
  color: rgba(255, 255, 255, 0.8);
}

.site-footer h2 {
  margin: 0 0 10px;
  font-size: 1rem;
}

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

.footer-links a:hover {
  color: var(--yellow);
}

.copyright {
  width: min(var(--content), 100%);
  margin: 30px auto 0;
  font-size: 0.88rem;
}

.footer-credit {
  display: inline-block;
  margin-left: 8px;
  opacity: 0.68;
}

.footer-credit a {
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

@media (max-width: 980px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .main-nav {
    justify-content: flex-start;
  }

  .hero__inner,
  .map-layout,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero__media {
    width: min(620px, 100%);
  }

  .social-actions,
  .contact-grid,
  .sponsor-grid,
  .vibe-grid,
  .institution-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .site-header {
    gap: 12px;
  }

  .main-nav {
    width: 100%;
    flex-wrap: nowrap;
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 8px;
    scrollbar-width: thin;
  }

  .main-nav a {
    flex: 0 0 auto;
    white-space: nowrap;
  }

  .hero {
    min-height: auto;
    padding-top: 58px;
  }

  .hero::before {
    width: 78vw;
    height: 58vw;
    opacity: 0.94;
  }

  .hero::after {
    display: none;
  }

  .hero h1,
  .page-hero h1 {
    font-size: clamp(2.25rem, 12vw, 3.7rem);
  }

  .page-hero {
    min-height: 290px;
  }

  .page-hero--contact {
    min-height: 520px;
  }

  .hero__media {
    margin-top: 10px;
  }

  .hero__media img {
    border-width: 8px;
    box-shadow: 10px 10px 0 var(--yellow);
  }

  .hero__media figcaption {
    left: 0;
    bottom: -18px;
  }

  .hero__actions .button {
    flex: 1 1 140px;
  }

  .social-actions,
  .contact-grid,
  .tips-grid,
  .sponsor-grid,
  .vibe-grid,
  .institution-grid {
    grid-template-columns: 1fr;
  }

  .social-button {
    min-height: 88px;
  }

  .map-stage {
    padding: 14px;
  }

  .map-marker__label {
    top: -34px;
    font-size: 0.68rem;
  }

  .directory-item {
    grid-template-columns: 1fr;
  }

  .directory-item__location {
    text-align: left;
  }

  .number-list {
    grid-template-columns: 1fr;
  }
}
