/* Rotary Club de Niterói
   Visual institucional. Cores puras do Brand Center.
   Ouro não é texto sobre branco. O emblema não é alterado. */

@font-face {
  font-family: "Source Sans 3";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/source-sans-3-400.woff2") format("woff2");
}

@font-face {
  font-family: "Source Sans 3";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/fonts/source-sans-3-600.woff2") format("woff2");
}

@font-face {
  font-family: "Source Sans 3";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/fonts/source-sans-3-700.woff2") format("woff2");
}

:root {
  --royal: #17458f;
  --gold: #f7a81b;
  --azure: #0067c8;
  --sky: #00a2e0;
  --turquoise: #00adbb;
  --ink: #1a1a1a;
  --charcoal: #54565a;
  --pewter: #898a8d;
  --silver: #d0cfcd;
  --line: #c5c3bf;
  --white: #ffffff;
  --measure: 65ch;
  color-scheme: light;
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: "Source Sans 3", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.55;
  font-weight: 400;
}

main {
  flex: 1 0 auto;
}

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

img {
  height: auto;
}

p {
  overflow-wrap: break-word;
  text-wrap: pretty;
}

h1,
h2,
h3 {
  text-wrap: balance;
  font-weight: 600;
}

a,
button {
  touch-action: manipulation;
}

:focus {
  outline: none;
}

:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}

::selection {
  background: var(--gold);
  color: var(--ink);
}

.skip {
  position: absolute;
  left: 1rem;
  top: 0;
  transform: translateY(-150%);
  z-index: 40;
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  background: var(--white);
  color: var(--royal);
  font-weight: 600;
  padding: 0.6rem 1rem;
}

.skip:focus {
  transform: none;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--white);
  border-bottom: 3px solid var(--royal);
  box-shadow: 0 2px 0 var(--gold);
}

.bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.25rem;
  width: min(100%, 72rem);
  margin-inline: auto;
  padding: 0.85rem max(1.25rem, env(safe-area-inset-right)) 0.85rem max(1.25rem, env(safe-area-inset-left));
}

.brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.55rem;
  flex: 1 1 auto;
  min-width: min(100%, 8rem);
  color: var(--royal);
  text-decoration: none;
}

.brand img {
  display: block;
  width: auto;
  height: auto;
  max-height: clamp(48px, 3.25rem, 72px);
  max-width: 100%;
  aspect-ratio: 392.26 / 147.83;
  object-fit: contain;
  object-position: left center;
}

.club-name {
  margin: 0;
  color: var(--royal);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  line-height: 1.25;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 2.75rem;
  padding: 0.5rem 1.15rem;
  border: 1px solid var(--royal);
  border-radius: 0;
  background: var(--royal);
  color: var(--white);
  font: inherit;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
  cursor: pointer;
}

.button:hover {
  background: var(--white);
  color: var(--royal);
}

.acesso {
  margin-left: auto;
}

.button.acesso[aria-current="page"] {
  background: var(--white);
  color: var(--royal);
  box-shadow: inset 0 -3px 0 var(--gold);
}

.button.acesso[aria-current="page"]:hover {
  background: var(--royal);
  color: var(--white);
}

.tape {
  max-width: 100%;
  background: repeating-linear-gradient(
    -45deg,
    #111111 0 0.55rem,
    var(--gold) 0 1.1rem
  );
  padding: 0.35rem max(1rem, env(safe-area-inset-right)) 0.35rem max(1rem, env(safe-area-inset-left));
  text-align: center;
}

.tape p {
  display: flex;
  justify-content: center;
  margin: 0;
  min-width: 0;
}

.tape span {
  display: inline-block;
  max-width: 100%;
  padding: 0.15rem 0.7rem;
  background: #111111;
  color: var(--gold);
  font-weight: 600;
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  line-height: 1.35;
  text-transform: uppercase;
  box-decoration-break: clone;
}

.cta-banner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  width: 100%;
  min-height: 5.5rem;
  padding: 1.35rem max(1.25rem, env(safe-area-inset-right)) 1.25rem max(1.25rem, env(safe-area-inset-left));
  border-top: 1px solid #0e2f66;
  border-bottom: 4px solid var(--gold);
  background: var(--royal);
  color: var(--white);
  text-align: center;
  text-decoration: none;
}

.cta-banner:hover {
  background: var(--white);
  color: var(--royal);
}

.cta-banner:hover .cta-kicker {
  color: var(--royal);
}

.cta-banner:focus-visible {
  outline-color: var(--gold);
}

.cta-kicker {
  color: var(--white);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  line-height: 1.2;
  text-transform: uppercase;
}

.cta-banner-text {
  max-width: 100%;
  min-width: 0;
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  line-height: 1.2;
  text-transform: uppercase;
}

.publicacoes,
.diferenca,
.simple {
  padding: 1.75rem max(1.25rem, env(safe-area-inset-right)) 2.25rem max(1.25rem, env(safe-area-inset-left));
}

.publicacoes-grid,
.panel,
.simple-inner,
.footer-inner {
  width: min(100%, 64rem);
  margin-inline: auto;
}

.panel {
  width: min(100%, 52rem);
}

.publicacoes-grid {
  display: grid;
  gap: 1.5rem;
  align-items: center;
}

.publicacoes-copy h2,
.diferenca h2,
.simple h1 {
  width: fit-content;
  max-width: 100%;
  margin: 0 0 0.85rem;
  padding-bottom: 0.35rem;
  border-bottom: 2px solid var(--gold);
  color: var(--royal);
  font-size: 1.375rem;
  line-height: 1.2;
}

.publicacoes-copy p,
.lead,
.role p,
.simple p {
  margin: 0 0 1rem;
  max-width: var(--measure);
}

.lead {
  color: var(--charcoal);
}

.text-link {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  color: var(--royal);
  font-weight: 600;
  letter-spacing: 0.02em;
  text-underline-offset: 0.18em;
}

.text-link:hover {
  color: var(--azure);
}

.ig-frame {
  width: min(100%, 30rem);
  justify-self: center;
  overflow: hidden;
  border: 1px solid var(--royal);
  border-radius: 0;
  background: var(--white);
}

.ig-frame iframe {
  display: block;
  width: 100%;
  height: 32rem;
  height: clamp(24rem, 54svh, 32rem);
  border: 0;
  background: var(--white);
}

.diagram {
  margin-top: 1.25rem;
}

.wheel {
  display: block;
  width: min(100%, 32rem);
  height: auto;
  margin-inline: auto;
}

.slice {
  color: var(--zone);
  cursor: pointer;
}

.slice path {
  fill: currentColor;
}

.slice text {
  fill: #1a1a1a;
  font-family: "Source Sans 3", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  font-size: 6.6px;
  font-weight: 600;
  text-anchor: middle;
  pointer-events: none;
}

.slice[data-zone="voz"] text,
.slice[data-zone="membro"] text {
  fill: #ffffff;
}

[data-zone="voz"] { --zone: var(--royal); }
[data-zone="membro"] { --zone: var(--azure); }
[data-zone="voluntario"] { --zone: var(--sky); }
[data-zone="apoiador"] { --zone: var(--turquoise); }
[data-zone="parceiro"] { --zone: var(--gold); }

.slice:focus-visible path {
  stroke: #1a1a1a;
  stroke-width: 1.5;
}

.roles {
  display: grid;
  gap: 0;
  margin-top: 2rem;
  border-top: 1px solid var(--line);
}

.role,
#fazer-a-diferenca {
  scroll-margin-top: var(--scroll-pad, 6.5rem);
}

.role {
  padding: 1.35rem 0 1.5rem;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-left: 4px solid var(--zone);
  border-radius: 0;
  background: transparent;
  padding-left: 1.1rem;
}

.role:target {
  background: #f4f7fb;
}

.role .role-index {
  margin: 0 0 0.15rem;
  max-width: none;
  color: var(--charcoal);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.16em;
}

.role h3 {
  margin: 0 0 0.45rem;
  color: var(--royal);
  font-size: 1.2rem;
  line-height: 1.25;
}

.role .button {
  width: 100%;
  margin-top: 0.25rem;
}

.reserve-note {
  margin: 0 0 0.65rem;
  color: var(--charcoal);
  font-size: 0.9375rem;
}

.reserve {
  margin: 0 0 1rem;
  padding: 0;
  list-style: none;
  border: 1px solid var(--line);
  border-radius: 0;
}

.reserve li {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.25rem 1rem;
  min-height: 2.75rem;
  padding: 0.7rem 0.9rem;
  border-bottom: 1px solid var(--line);
}

.reserve li:last-child {
  border-bottom: 0;
}

.reserve-kicker {
  color: var(--charcoal);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.reserve-name {
  font-weight: 600;
}

.simple h1 {
  font-size: 1.75rem;
}

.perfil-note {
  margin: 0 0 1rem;
  padding: 0.75rem 1rem;
  border-left: 3px solid var(--gold);
  border-radius: 0;
  background: var(--white);
  color: var(--ink);
}

.form-note {
  margin: 0 0 1.25rem;
  max-width: var(--measure);
  color: var(--charcoal);
}

.login-form {
  width: min(100%, 28rem);
  margin-top: 0.5rem;
}

.field {
  display: grid;
  gap: 0.35rem;
  margin: 0 0 1rem;
}

.field label {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.field input {
  width: 100%;
  min-height: 2.75rem;
  padding: 0.6rem 0.75rem;
  border: 1px solid var(--pewter);
  border-radius: 0;
  background: var(--white);
  color: var(--ink);
  font: inherit;
}

.field input:focus-visible {
  border-color: var(--royal);
}

.login-form .button {
  width: 100%;
}

.site-footer {
  border-top: 4px solid var(--gold);
  background: var(--royal);
  color: var(--white);
  padding: 2rem max(1.25rem, env(safe-area-inset-right)) max(2.5rem, env(safe-area-inset-bottom)) max(1.25rem, env(safe-area-inset-left));
}

.footer-inner {
  display: grid;
  gap: 0.85rem;
  justify-items: start;
}

.footer-inner .brand {
  flex: none;
  flex-direction: column;
  align-items: flex-start;
  padding: 0.55rem 0.7rem;
  background: var(--white);
}

.footer-inner .club-name {
  color: var(--royal);
}

.place {
  margin: 0;
  color: var(--white);
  font-size: 0.9375rem;
  font-style: normal;
  letter-spacing: 0.02em;
  line-height: 1.45;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-links a {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  color: var(--white);
  font-weight: 600;
  letter-spacing: 0.04em;
}

.footer-links a:hover {
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.legal {
  margin: 0.35rem 0 0;
  max-width: 46rem;
  color: #e7eef8;
  font-size: 0.875rem;
}

@media (min-width: 40rem) {
  .role .button {
    width: auto;
  }
}

@media (min-width: 45rem) {
  .brand {
    flex-direction: row;
    align-items: center;
    gap: 1.35rem;
  }

  .brand img {
    max-height: clamp(56px, 3.75rem, 84px);
  }

  .club-name {
    font-size: 1.05rem;
  }

  .cta-banner-text {
    font-size: 1.65rem;
  }

  .publicacoes,
  .diferenca,
  .simple {
    padding-block: 2.75rem 3.25rem;
  }

  .publicacoes-copy h2,
  .diferenca h2 {
    font-size: 1.75rem;
  }
}

@media (min-width: 52rem) {
  .wheel {
    width: min(100%, 34rem);
  }
}

@media (min-width: 60rem) {
  .publicacoes-grid {
    grid-template-columns: minmax(0, 1fr) minmax(16rem, 30rem);
    gap: 3rem;
  }

  .ig-frame {
    justify-self: end;
    width: 100%;
  }
}

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

@media (prefers-contrast: more) {
  .reserve,
  .ig-frame,
  .field input {
    border-width: 2px;
  }
}

@media print {
  .site-header,
  .tape,
  .cta-banner,
  .acesso {
    position: static;
  }

  .site-footer {
    background: var(--white);
    color: var(--ink);
  }

  .ig-frame {
    display: none;
  }
}
