:root {
  --navy: #002349;
  --ink: #1f2933;
  --muted: #5f6b7a;
  --paper: #ffffff;
  --paper-deep: #f6f8fb;
  --gold: #d7a95d;
  --gold-soft: #f1d39b;
  --sea: #1b7f7a;
  --whatsapp: #128c7e;
  --sans:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI',
    sans-serif;
  --serif: Georgia, 'Times New Roman', serif;

  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  min-height: 100svh;
  margin: 0;
  background: var(--paper);
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  font: inherit;
}

img,
svg {
  display: block;
}

#root {
  min-height: 100svh;
}

.page-shell {
  min-height: 100svh;
  overflow: hidden;
}

.topbar {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  min-height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--navy);
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.brand-mark img {
  width: 44px;
  height: 44px;
  object-fit: contain;
}

.language-switcher {
  display: inline-grid;
  grid-template-columns: repeat(3, minmax(88px, 1fr));
  gap: 4px;
  padding: 4px;
  border: 1px solid rgba(0, 35, 73, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.76);
  box-shadow: 0 18px 55px rgba(0, 35, 73, 0.08);
}

.language-switcher a {
  min-height: 38px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 6px;
  padding: 0 12px;
  color: var(--muted);
  background: transparent;
  font: 700 14px/1 var(--sans);
  text-decoration: none;
}

.language-switcher a:hover {
  color: var(--navy);
  background: rgba(215, 169, 93, 0.12);
}

.language-switcher a:focus-visible,
.whatsapp-link:focus-visible,
.email-link:focus-visible,
.brand-mark:focus-visible {
  outline: 3px solid rgba(25, 135, 84, 0.32);
  outline-offset: 3px;
}

.language-switcher a.active {
  color: var(--navy);
  background: var(--gold-soft);
}

.hero-section {
  position: relative;
  width: min(1120px, calc(100% - 40px));
  min-height: calc(100svh - 88px);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 460px);
  align-items: center;
  gap: 72px;
  padding: 28px 0 80px;
}

.hero-copy {
  max-width: 660px;
}

h1,
h2,
p {
  margin: 0;
}

h1,
h2 {
  color: var(--navy);
  font-family: var(--serif);
  font-weight: 800;
  letter-spacing: 0;
}

h1 {
  max-width: 620px;
  font-size: 64px;
  line-height: 1.02;
}

.hero-title {
  max-width: 580px;
  margin-top: 24px;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 700;
  line-height: 1.22;
}

.hero-description {
  max-width: 620px;
  margin-top: 18px;
  color: var(--muted);
  font-size: 19px;
  line-height: 1.75;
}

.logo-stage {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 580px;
}

.logo-stage img {
  width: min(100%, 430px);
  aspect-ratio: 1;
  object-fit: contain;
  position: relative;
  z-index: 2;
}

.join-section {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto 56px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 28px;
  border-top: 1px solid rgba(0, 35, 73, 0.12);
  border-bottom: 1px solid rgba(0, 35, 73, 0.12);
  padding: 42px 0;
}

.join-section h2 {
  font-size: 38px;
  line-height: 1.1;
}

.join-section p:last-child {
  max-width: 720px;
  margin-top: 14px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.65;
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 12px;
}

.whatsapp-link,
.email-link {
  min-width: 190px;
  min-height: 56px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 11px;
  border-radius: 8px;
  font-size: 17px;
  font-weight: 800;
  text-decoration: none;
}

.whatsapp-link {
  color: #ffffff;
  background: var(--whatsapp);
  box-shadow: 0 18px 42px rgba(18, 140, 126, 0.24);
}

.whatsapp-link:hover {
  background: #0f766d;
}

.whatsapp-link svg {
  width: 25px;
  height: 25px;
  fill: currentColor;
  flex: 0 0 auto;
}

.email-link {
  border: 1px solid rgba(0, 35, 73, 0.2);
  color: var(--navy);
  background: rgba(255, 255, 255, 0.84);
  box-shadow: 0 18px 42px rgba(0, 35, 73, 0.1);
}

.email-link:hover {
  border-color: rgba(215, 169, 93, 0.7);
  background: var(--gold-soft);
}

.email-link svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
  flex: 0 0 auto;
}

@media (max-width: 1100px) {
  .topbar {
    min-height: auto;
    padding: 14px 0 6px;
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }

  .brand-mark {
    gap: 10px;
    font-size: 16px;
    white-space: normal;
  }

  .brand-mark img {
    width: 36px;
    height: 36px;
  }

  .language-switcher {
    width: 100%;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    box-shadow: none;
  }

  .language-switcher a {
    min-height: 36px;
    padding: 0 8px;
    font-size: 13px;
  }

  .hero-section {
    min-height: auto;
    grid-template-columns: 1fr;
    gap: 22px;
    padding: 34px 0 44px;
  }

  h1 {
    font-size: 38px;
    line-height: 1.08;
  }

  .hero-title {
    margin-top: 18px;
    font-size: 22px;
  }

  .hero-description {
    margin-top: 14px;
    font-size: 17px;
    line-height: 1.65;
  }

  .logo-stage {
    display: none;
  }

  .join-section {
    grid-template-columns: 1fr;
    justify-items: stretch;
    margin-bottom: 34px;
    padding: 34px 0;
  }

  .join-section h2 {
    font-size: 30px;
  }

  .contact-actions {
    display: grid;
    justify-content: stretch;
  }

  .whatsapp-link,
  .email-link {
    width: 100%;
  }
}

.error-page {
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 28px;
  text-align: center;
}

.error-page main {
  display: grid;
  justify-items: center;
  gap: 22px;
}

.error-code {
  color: var(--gold);
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 800;
}

@media (max-width: 520px) {
  .topbar,
  .hero-section,
  .join-section {
    width: min(100% - 28px, 1120px);
  }

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

  h1 {
    font-size: 32px;
  }

  .hero-title {
    font-size: 20px;
  }
}
