:root {
  --blue: #0057d9;
  --blue-dark: #003b95;
  --yellow: #ffd400;
  --white: #ffffff;
  --soft: #f5f7fa;
  --text: #172033;
  --muted: #5b6680;
  --line: rgba(23, 32, 51, 0.12);
  --shadow: 0 18px 46px rgba(0, 59, 149, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--soft);
  color: var(--text);
  font-family: Arial, "Helvetica Neue", Helvetica, sans-serif;
}

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

button,
input,
audio {
  font: inherit;
}

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

img {
  display: block;
  max-width: 100%;
}

main {
  min-height: 100vh;
  overflow-x: hidden;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  align-items: center;
  padding: 10px 14px;
  border-bottom: 3px solid var(--blue-dark);
  background: var(--yellow);
  color: var(--blue-dark);
  box-shadow: 0 10px 30px rgba(0, 59, 149, 0.14);
}

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

.brand-mark {
  display: grid;
  width: 50px;
  height: 44px;
  flex: 0 0 auto;
  place-items: center;
  overflow: hidden;
  border-radius: 12px;
  background: var(--white);
  box-shadow: 0 5px 14px rgba(0, 59, 149, 0.14);
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.brand strong,
.brand small {
  display: block;
  max-width: 42vw;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.brand strong {
  font-size: 0.95rem;
  line-height: 1.1;
}

.brand small {
  color: rgba(0, 59, 149, 0.78);
  font-size: 0.72rem;
  font-weight: 700;
}

.number-pill,
.eyebrow,
.section-heading span,
.contact-copy span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--yellow);
  color: var(--blue-dark);
  font-weight: 900;
}

.number-pill {
  min-width: 70px;
  min-height: 40px;
  background: var(--blue-dark);
  color: var(--yellow);
  font-size: 1.08rem;
}

.hero {
  position: relative;
  display: grid;
  gap: 24px;
  min-height: calc(100svh - 60px);
  padding: 30px 16px 24px;
  background:
    linear-gradient(115deg, rgba(0, 87, 217, 0.66), rgba(0, 59, 149, 0.5)),
    url("/materials/previews/bandeira-rr.webp") 28% center / cover no-repeat;
  color: var(--white);
}

.hero-copy {
  position: relative;
  z-index: 1;
  align-self: end;
}

.eyebrow,
.section-heading span,
.contact-copy span {
  font-size: 0.78rem;
  line-height: 1;
  padding: 9px 12px;
}

h1,
h2,
p {
  margin: 0;
}

h1 {
  max-width: 780px;
  margin-top: 14px;
  color: var(--white);
  font-size: clamp(2.45rem, 13vw, 5.9rem);
  font-weight: 900;
  line-height: 0.95;
}

.hero-tagline {
  display: grid;
  gap: 4px;
  margin-top: 16px;
}

.hero-tagline strong {
  color: var(--yellow);
  font-size: clamp(1.35rem, 7vw, 2.15rem);
  font-weight: 900;
  line-height: 1;
}

.hero-tagline span {
  color: rgba(255, 255, 255, 0.92);
  font-size: 1rem;
  font-weight: 800;
}

.hero-visual {
  position: relative;
  z-index: 1;
  align-self: end;
  overflow: hidden;
  border: 3px solid var(--yellow);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.12);
  box-shadow: var(--shadow);
}

.hero-visual img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center top;
}

.contact-section,
.content-section,
.stats-section,
.site-footer {
  padding: 34px 16px;
}

.contact-section {
  display: grid;
  gap: 22px;
  background: var(--blue-dark);
  color: var(--white);
}

.contact-copy,
.section-heading {
  display: grid;
  gap: 12px;
}

.contact-copy h2,
.section-heading h2 {
  color: inherit;
  font-size: clamp(2rem, 10vw, 3.5rem);
  font-weight: 900;
  line-height: 0.98;
  text-transform: uppercase;
}

.contact-copy p {
  max-width: 620px;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 800;
  line-height: 1.45;
}

.contact-form {
  display: grid;
  gap: 12px;
}

.contact-form label {
  display: grid;
  gap: 7px;
  font-size: 0.88rem;
  font-weight: 900;
}

.contact-form input,
.admin-login input {
  min-height: 56px;
  border: 2px solid transparent;
  border-radius: 18px;
  padding: 0 14px;
  color: var(--text);
  font-weight: 800;
}

.contact-form input:focus,
.admin-login input:focus {
  border-color: var(--yellow);
  outline: none;
  box-shadow: 0 0 0 4px rgba(255, 212, 0, 0.22);
}

.contact-form button,
.contact-whatsapp,
.download-button,
.share-button,
.soon-button,
.sticker-close,
.admin-login button,
.admin-header-actions button,
.admin-panel-heading button {
  min-height: 50px;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 900;
  padding: 0 18px;
  text-align: center;
}

.contact-form button,
.download-button,
.admin-login button,
.admin-header-actions button,
.admin-panel-heading button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--yellow);
  color: var(--blue-dark);
}

.contact-whatsapp,
.share-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.32);
  background: rgba(255, 255, 255, 0.13);
  color: var(--white);
}

.form-note,
.form-feedback,
.music-help {
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.88rem;
  font-weight: 700;
  line-height: 1.4;
}

.form-feedback {
  border-radius: 14px;
  padding: 12px;
}

.form-feedback.success {
  background: rgba(255, 212, 0, 0.18);
}

.form-feedback.error {
  background: rgba(255, 255, 255, 0.16);
}

.content-section {
  display: grid;
  gap: 20px;
}

.materials-section {
  background: var(--white);
}

.music-section {
  background:
    linear-gradient(115deg, rgba(0, 59, 149, 0.92), rgba(0, 87, 217, 0.76)),
    url("/materials/previews/papel-de-parede-musicas.webp") center / cover
      no-repeat;
  color: var(--white);
}

.materials-grid,
.music-list,
.stickers-grid {
  display: grid;
  gap: 14px;
}

.material-card,
.music-card,
.sticker-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--white);
  box-shadow: 0 12px 28px rgba(0, 59, 149, 0.09);
}

.material-card img {
  width: 100%;
  aspect-ratio: 4 / 4.6;
  object-fit: cover;
  object-position: center;
  background: var(--soft);
}

.material-card.is-soon {
  border-color: rgba(255, 212, 0, 0.85);
}

.material-body,
.music-card {
  display: grid;
  gap: 14px;
  padding: 16px;
}

.material-body strong,
.music-card strong {
  display: block;
  color: var(--text);
  font-size: 1rem;
  font-weight: 900;
  line-height: 1.2;
}

.material-body small,
.music-card small {
  display: block;
  margin-top: 7px;
  color: var(--muted);
  font-weight: 900;
}

.soon-button {
  background: var(--soft);
  color: var(--muted);
  cursor: default;
}

.music-card audio {
  width: 100%;
}

.music-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.music-card .share-button {
  border-color: rgba(0, 87, 217, 0.18);
  background: var(--blue);
}

.share-feedback {
  color: var(--blue-dark);
  font-size: 0.85rem;
  font-weight: 900;
}

.stats-section {
  display: grid;
  justify-items: center;
  gap: 6px;
  background: var(--yellow);
  color: var(--blue-dark);
  text-align: center;
}

.stats-section strong {
  font-size: clamp(2.2rem, 13vw, 4.4rem);
  font-weight: 900;
  line-height: 1;
}

.stats-section span {
  font-weight: 900;
}

.site-footer {
  display: grid;
  gap: 12px;
  background: var(--blue-dark);
  color: var(--white);
}

.site-footer > strong {
  color: var(--yellow);
  font-size: 1.35rem;
  font-weight: 900;
}

.site-footer > span {
  color: rgba(255, 255, 255, 0.84);
  font-weight: 700;
}

.footer-socials {
  display: grid;
  gap: 10px;
  margin: 8px 0;
}

.footer-social-link {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 10px;
  align-items: center;
  min-height: 64px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
  padding: 10px;
  text-align: left;
}

button.footer-social-link {
  cursor: pointer;
  width: 100%;
}

.footer-social-link img {
  width: 42px;
  height: 42px;
  object-fit: contain;
}

.footer-social-link strong,
.footer-social-link small {
  display: block;
}

.footer-social-link strong {
  font-weight: 900;
}

.footer-social-link small {
  color: rgba(255, 255, 255, 0.78);
  font-weight: 700;
}

.footer-support {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 212, 0, 0.46);
  border-radius: 999px;
  background: rgba(255, 212, 0, 0.12);
  color: var(--yellow);
  font-size: 0.9rem;
  font-weight: 900;
  line-height: 1.2;
  padding: 12px 15px;
}

.floating-whatsapp {
  position: fixed;
  right: 14px;
  bottom: 14px;
  z-index: 11;
  display: grid;
  width: 66px;
  height: 66px;
  place-items: center;
  border: 4px solid var(--white);
  border-radius: 999px;
  overflow: hidden;
  background: #22c55e;
  box-shadow: 0 10px 24px rgba(23, 32, 51, 0.22);
}

.floating-whatsapp img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sticker-modal[hidden] {
  display: none;
}

.sticker-modal {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  align-items: end;
}

.sticker-modal-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(0, 0, 0, 0.54);
}

.sticker-modal-panel {
  position: relative;
  display: grid;
  gap: 16px;
  max-height: 88svh;
  overflow: auto;
  border-radius: 28px 28px 0 0;
  background: var(--soft);
  padding: 18px 14px 24px;
}

.sticker-modal-header {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: start;
}

.sticker-modal-header span {
  display: inline-flex;
  border-radius: 999px;
  background: var(--yellow);
  color: var(--blue-dark);
  font-weight: 900;
  padding: 8px 12px;
}

.sticker-modal-header h2 {
  margin-top: 10px;
  color: var(--blue-dark);
  font-size: clamp(1.5rem, 9vw, 2.4rem);
  font-weight: 900;
  line-height: 1;
}

.sticker-modal-header p {
  margin-top: 8px;
  color: var(--muted);
  font-weight: 800;
}

.sticker-close {
  min-height: 42px;
  background: var(--blue);
  color: var(--white);
}

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

.sticker-card {
  display: grid;
  gap: 10px;
  padding: 10px;
}

.sticker-card img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: contain;
}

.admin-page {
  display: grid;
  gap: 18px;
  min-height: 100vh;
  background: var(--soft);
  color: var(--text);
  padding: 18px 14px 34px;
}

.admin-login {
  display: grid;
  gap: 14px;
  width: min(100%, 420px);
  margin: auto;
  border-radius: 24px;
  background: var(--blue-dark);
  color: var(--white);
  padding: 22px;
  box-shadow: var(--shadow);
}

.admin-login span,
.admin-header span {
  display: inline-flex;
  width: fit-content;
  border-radius: 999px;
  background: var(--yellow);
  color: var(--blue-dark);
  font-weight: 900;
  padding: 8px 12px;
}

.admin-login h1,
.admin-header h1 {
  margin: 0;
  color: inherit;
  font-size: clamp(2rem, 10vw, 3.1rem);
  font-weight: 900;
  line-height: 1;
}

.admin-login p,
.admin-header p {
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  font-weight: 800;
  line-height: 1.4;
}

.admin-login form {
  display: grid;
  gap: 12px;
}

.admin-login label {
  display: grid;
  gap: 7px;
  font-size: 0.9rem;
  font-weight: 900;
}

.admin-error {
  border-radius: 14px;
  background: rgba(255, 212, 0, 0.18);
  color: var(--white);
  font-weight: 900;
  padding: 12px;
}

#dashboard {
  display: grid;
  gap: 18px;
}

#dashboard[hidden] {
  display: none;
}

.admin-header {
  display: grid;
  gap: 16px;
  max-width: 1180px;
  width: 100%;
  margin: 0 auto;
  border-radius: 24px;
  background: var(--blue-dark);
  color: var(--white);
  padding: 18px;
}

.admin-header > div:first-child {
  display: grid;
  gap: 10px;
}

.admin-header-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.admin-stat-grid,
.download-summary-grid {
  display: grid;
  gap: 12px;
  max-width: 1180px;
  width: 100%;
  margin: 0 auto;
}

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

.admin-stat-grid article,
.download-summary-grid article,
.admin-panel {
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--white);
  box-shadow: 0 12px 28px rgba(0, 59, 149, 0.08);
}

.admin-stat-grid article,
.download-summary-grid article {
  display: grid;
  gap: 7px;
  padding: 16px;
}

.admin-stat-grid span,
.download-summary-grid span {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 900;
}

.admin-stat-grid strong,
.download-summary-grid strong {
  color: var(--blue-dark);
  font-size: clamp(1.7rem, 9vw, 2.6rem);
  font-weight: 900;
  line-height: 1;
}

.admin-panel {
  display: grid;
  gap: 12px;
  max-width: 1180px;
  width: 100%;
  margin: 0 auto;
  overflow: hidden;
  padding: 14px;
}

.admin-panel-heading {
  display: grid;
  gap: 10px;
}

.admin-panel-heading h2 {
  color: var(--blue-dark);
  font-size: clamp(1.2rem, 7vw, 1.8rem);
  font-weight: 900;
}

.admin-table-wrap {
  overflow-x: auto;
}

.admin-panel table {
  width: 100%;
  min-width: 620px;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.admin-panel th,
.admin-panel td {
  border-bottom: 1px solid var(--line);
  padding: 12px 10px;
  text-align: left;
  vertical-align: top;
}

.admin-panel th {
  color: var(--blue-dark);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.admin-panel td {
  color: var(--text);
  font-weight: 700;
}

@media (min-width: 760px) {
  .site-header,
  .hero,
  .contact-section,
  .content-section,
  .stats-section,
  .site-footer {
    padding-left: max(40px, calc((100vw - 1180px) / 2));
    padding-right: max(40px, calc((100vw - 1180px) / 2));
  }

  .hero {
    grid-template-columns: minmax(0, 1fr) minmax(300px, 490px);
    align-items: center;
    min-height: 760px;
    background-position: center;
  }

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

  .hero-visual {
    align-self: center;
  }

  .contact-section {
    grid-template-columns: minmax(0, 0.9fr) minmax(360px, 0.8fr);
    align-items: start;
  }

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

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

  .music-actions {
    grid-template-columns: 1fr 1fr;
  }

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

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

  .sticker-modal {
    align-items: center;
    padding: 30px;
  }

  .sticker-modal-panel {
    width: min(100%, 980px);
    max-height: 84vh;
    margin: 0 auto;
    border-radius: 28px;
    padding: 24px;
  }

  .admin-page {
    padding: 28px 22px 42px;
  }

  .admin-header {
    grid-template-columns: 1fr auto;
    align-items: center;
  }

  .admin-stat-grid,
  .download-summary-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .admin-panel-heading {
    grid-template-columns: 1fr auto;
    align-items: center;
  }
}
