@import url("https://fonts.googleapis.com/css2?family=Manrope:wght@400;600;700;800;900&display=swap");

:root {
  color-scheme: light;
  --ink: #111817;
  --muted: #5c6966;
  --paper: #fbfaf5;
  --panel: #ffffff;
  --line: #d8ded8;
  --forest: #123b31;
  --green: #178b58;
  --lime: #d9f56d;
  --red: #b9232f;
  --gold: #d7a642;
  --sky: #dff5f2;
  --shadow: 0 24px 70px rgba(17, 24, 23, 0.13);
  font-family: Manrope, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(217, 245, 109, 0.18), transparent 34rem),
    linear-gradient(180deg, #fbfaf5 0%, #f1f7f0 48%, #fbfaf5 100%);
}

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

button,
input,
textarea {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 76px;
  padding: 12px clamp(18px, 4vw, 56px);
  background: rgba(251, 250, 245, 0.9);
  border-bottom: 1px solid rgba(216, 222, 216, 0.7);
  backdrop-filter: blur(18px);
}

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

.brand-logo {
  width: 50px;
  height: 50px;
  flex: 0 0 auto;
  object-fit: cover;
  border: 2px solid rgba(255, 255, 255, 0.76);
  border-radius: 50%;
  box-shadow: 0 10px 24px rgba(17, 24, 23, 0.14);
}

.brand-mark {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  color: #fff;
  font-weight: 900;
  background: linear-gradient(135deg, var(--red), var(--forest));
  border-radius: 50%;
}

.brand strong,
.brand small {
  display: block;
}

.brand small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.main-nav a,
.nav-admin {
  min-height: 40px;
  padding: 10px 12px;
  color: var(--muted);
  background: transparent;
  border: 0;
  border-radius: 6px;
  cursor: pointer;
  transition:
    color 180ms ease,
    background 180ms ease,
    transform 180ms ease;
}

.main-nav a:hover,
.nav-admin:hover {
  color: var(--ink);
  background: #e9eee8;
  transform: translateY(-1px);
}

.hero {
  position: relative;
  min-height: calc(100vh - 76px);
  display: grid;
  align-items: end;
  overflow: hidden;
  background: var(--forest);
}

.hero-media {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(18, 59, 49, 0.88), rgba(18, 59, 49, 0.5) 44%, rgba(18, 59, 49, 0.18)),
    url("https://img1.wsimg.com/isteam/ip/b50ffb49-e540-4902-987b-ecb4e2bb3e52/IMG_1917.jpeg/:/rs=w:1600,cg:true,m")
      center / cover;
  transform: scale(1.02);
  animation: heroDrift 18s ease-in-out infinite alternate;
}

.hero-content {
  position: relative;
  width: min(880px, calc(100% - 36px));
  padding: clamp(70px, 12vw, 140px) 0 clamp(62px, 10vw, 100px);
  margin: 0 auto;
  color: #fff;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--gold);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(46px, 9vw, 108px);
  line-height: 0.95;
  letter-spacing: 0;
}

.hero p:not(.eyebrow) {
  max-width: 650px;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 20px;
  line-height: 1.6;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 18px;
  font-weight: 800;
  border: 1px solid transparent;
  border-radius: 6px;
  cursor: pointer;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    background 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 26px rgba(17, 24, 23, 0.16);
}

.button.primary {
  color: #10251f;
  background: linear-gradient(135deg, var(--lime), #88e6b0);
}

.button.secondary {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.36);
  background: rgba(255, 255, 255, 0.08);
}

.button.ghost {
  color: var(--forest);
  background: #fff;
  border-color: var(--line);
}

.ticker {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 16px;
  align-items: center;
  padding: 18px clamp(18px, 4vw, 56px);
  color: #fff;
  background: linear-gradient(90deg, var(--red), #da7a35);
}

.ticker span {
  padding: 7px 10px;
  color: var(--red);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  background: #fff;
  border-radius: 4px;
}

.section {
  width: min(1120px, calc(100% - 36px));
  margin: 0 auto;
  padding: clamp(54px, 8vw, 92px) 0;
}

.intro-grid,
.split,
.contact-section {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(28px, 6vw, 70px);
}

h2 {
  margin: 0;
  font-size: clamp(30px, 5vw, 56px);
  line-height: 1.02;
  letter-spacing: 0;
}

h3 {
  margin: 0 0 14px;
}

p {
  line-height: 1.7;
}

.muted {
  color: var(--muted);
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 28px;
}

.text-link {
  color: var(--green);
  font-weight: 800;
}

.heading-link {
  text-decoration-thickness: 3px;
  text-decoration-line: underline;
  text-decoration-color: rgba(23, 139, 88, 0.24);
  text-underline-offset: 8px;
  transition:
    color 180ms ease,
    text-decoration-color 180ms ease;
}

.heading-link:hover {
  color: var(--green);
  text-decoration-color: var(--green);
}

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

.event-card,
.post-card,
.admin-item {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(17, 24, 23, 0.05);
}

.event-card {
  display: grid;
  grid-template-columns: 84px 1fr;
  gap: 18px;
  padding: 18px;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease;
}

.event-card:hover,
.post-card:hover,
.player-card:hover,
.gallery-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 42px rgba(17, 24, 23, 0.12);
}

.event-date {
  display: grid;
  min-height: 76px;
  place-items: center;
  color: #fff;
  font-weight: 900;
  text-align: center;
  background: var(--forest);
  border-radius: 6px;
}

.event-date strong,
.event-date span {
  display: block;
}

.event-date span {
  color: rgba(255, 255, 255, 0.74);
  font-size: 12px;
}

.event-time {
  margin: 0 0 4px;
  color: var(--green);
  font-weight: 900;
}

.event-card h3,
.post-card h3 {
  margin: 0 0 8px;
}

.map-link {
  display: inline-flex;
  margin-top: 8px;
  color: var(--green);
  font-weight: 900;
}

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

.post-card {
  display: flex;
  min-height: 260px;
  flex-direction: column;
  padding: 22px;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease;
}

.post-card .category {
  margin-bottom: 18px;
  color: var(--red);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.post-card p {
  margin-top: auto;
  color: var(--muted);
}

.media-band {
  width: 100%;
  padding-right: clamp(18px, 4vw, 56px);
  padding-left: clamp(18px, 4vw, 56px);
  background:
    linear-gradient(135deg, rgba(223, 245, 242, 0.86), rgba(233, 238, 232, 0.94)),
    linear-gradient(90deg, transparent, rgba(217, 245, 109, 0.14));
}

.newsletter-band {
  display: grid;
  grid-template-columns: 1fr minmax(280px, 440px);
  gap: clamp(24px, 5vw, 60px);
  align-items: end;
  width: min(1120px, calc(100% - 36px));
  margin: clamp(20px, 5vw, 54px) auto;
  padding: clamp(28px, 5vw, 48px);
  color: #fff;
  background:
    linear-gradient(135deg, rgba(18, 59, 49, 0.98), rgba(17, 24, 23, 0.94)),
    radial-gradient(circle at right, rgba(217, 245, 109, 0.22), transparent 24rem);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.newsletter-band h2 {
  max-width: 700px;
}

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

.newsletter-form label {
  color: rgba(255, 255, 255, 0.82);
}

.media-band > * {
  max-width: 1120px;
  margin-right: auto;
  margin-left: auto;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.gallery-card {
  position: relative;
  min-height: 240px;
  overflow: hidden;
  background: #dce4dc;
  border-radius: 8px;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease;
}

.gallery-card img {
  width: 100%;
  height: 100%;
  min-height: 240px;
  object-fit: cover;
  transition: transform 260ms ease;
}

.gallery-card:hover img {
  transform: scale(1.04);
}

.gallery-card span {
  position: absolute;
  right: 10px;
  bottom: 10px;
  left: 10px;
  padding: 10px;
  color: #fff;
  font-weight: 800;
  background: rgba(17, 24, 23, 0.7);
  border-radius: 6px;
}

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

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

.player-card {
  position: relative;
  min-height: 360px;
  overflow: hidden;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(17, 24, 23, 0.05);
  transition:
    transform 180ms ease,
    box-shadow 180ms ease;
}

.player-card img {
  width: 100%;
  height: 100%;
  min-height: 360px;
  object-fit: cover;
  transition: transform 260ms ease;
}

.player-card:hover img {
  transform: scale(1.04);
}

.player-card div {
  position: absolute;
  right: 12px;
  bottom: 12px;
  left: 12px;
  display: grid;
  gap: 4px;
  padding: 14px;
  color: #fff;
  background: rgba(17, 24, 23, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  backdrop-filter: blur(10px);
}

.player-card strong {
  font-size: 20px;
}

.player-card span {
  color: rgba(255, 255, 255, 0.76);
}

.contact-section {
  align-items: start;
}

.contact-lines {
  display: grid;
  gap: 10px;
  margin: 24px 0;
  color: var(--forest);
  font-weight: 800;
}

.whatsapp {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  padding: 10px 14px;
  color: #fff;
  font-weight: 800;
  background: #1fa855;
  border-radius: 6px;
}

.message-form,
.login-box,
.admin-form {
  display: grid;
  gap: 14px;
  padding: 22px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 18px 46px rgba(17, 24, 23, 0.08);
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

input,
textarea {
  width: 100%;
  padding: 13px 14px;
  color: var(--ink);
  background: #f7f8f5;
  border: 1px solid var(--line);
  border-radius: 6px;
  outline: none;
}

input:focus,
textarea:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(31, 122, 77, 0.14);
}

.admin-panel {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: none;
  padding: 18px;
  background: rgba(17, 24, 23, 0.5);
}

.admin-panel.open {
  display: block;
}

.admin-shell {
  width: min(1160px, 100%);
  max-height: calc(100vh - 36px);
  margin: 0 auto;
  overflow: auto;
  background: var(--paper);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.admin-topbar {
  position: sticky;
  top: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 20px;
  background: rgba(247, 245, 239, 0.95);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.admin-topbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.icon-button {
  width: 42px;
  height: 42px;
  color: var(--ink);
  font-size: 28px;
  line-height: 1;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 50%;
  cursor: pointer;
}

.login-box,
.admin-workspace {
  margin: 20px;
}

.admin-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}

.admin-tabs button {
  min-height: 40px;
  padding: 10px 12px;
  font-weight: 800;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
  cursor: pointer;
}

.admin-tabs .active {
  color: #fff;
  background: var(--forest);
  border-color: var(--forest);
}

.admin-section {
  display: none;
  grid-template-columns: minmax(280px, 380px) 1fr;
  gap: 18px;
  align-items: start;
}

.admin-section.active {
  display: grid;
}

.admin-section > .admin-form {
  grid-column: 1;
  grid-row: 1 / span 2;
}

.check-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.check-row input {
  width: auto;
}

.admin-list {
  display: grid;
  grid-column: 2;
  grid-row: 2;
  gap: 12px;
}

.report-button {
  grid-column: 2;
  grid-row: 1;
  justify-self: start;
  min-height: 42px;
  margin-bottom: 12px;
  padding: 10px 12px;
  color: var(--forest);
  font-weight: 900;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
  cursor: pointer;
}

.admin-item {
  display: grid;
  gap: 8px;
  padding: 16px;
}

.admin-item strong {
  font-size: 18px;
}

.admin-item-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.admin-item button {
  min-height: 36px;
  padding: 8px 10px;
  color: #fff;
  font-weight: 800;
  border: 0;
  border-radius: 6px;
  cursor: pointer;
}

.admin-item button[data-edit] {
  background: var(--forest);
}

.admin-item button[data-delete] {
  background: var(--red);
}

.site-footer {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) auto minmax(220px, 1fr);
  align-items: center;
  gap: 18px;
  padding: 28px clamp(18px, 4vw, 56px);
  color: #fff;
  background:
    linear-gradient(135deg, rgba(18, 59, 49, 0.98), rgba(17, 24, 23, 0.98)),
    radial-gradient(circle at right, rgba(217, 245, 109, 0.22), transparent 24rem);
}

.page-hero {
  display: grid;
  min-height: 360px;
  align-content: end;
  padding: 80px clamp(18px, 8vw, 120px);
  color: #fff;
  background:
    linear-gradient(90deg, rgba(18, 59, 49, 0.92), rgba(18, 59, 49, 0.46)),
    url("https://img1.wsimg.com/isteam/ip/b50ffb49-e540-4902-987b-ecb4e2bb3e52/IMG_1917.jpeg/:/rs=w:1600,cg:true,m")
      center / cover;
}

.page-hero h1 {
  max-width: 900px;
  margin: 0;
  font-size: clamp(44px, 8vw, 92px);
  line-height: 0.98;
}

.site-footer div:first-child {
  display: grid;
  gap: 4px;
}

.footer-brand {
  display: flex !important;
  align-items: center;
  gap: 12px;
}

.footer-brand > span {
  display: grid;
  gap: 4px;
}

.footer-logo {
  width: 46px;
  height: 46px;
  flex: 0 0 auto;
  object-fit: cover;
  border: 2px solid rgba(255, 255, 255, 0.22);
  border-radius: 50%;
}

.site-footer span,
.footer-credit {
  color: rgba(255, 255, 255, 0.7);
}

.footer-socials {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

.footer-socials a {
  padding: 9px 11px;
  color: #fff;
  font-weight: 800;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 6px;
  transition:
    background 180ms ease,
    transform 180ms ease;
}

.footer-socials a:hover {
  background: rgba(255, 255, 255, 0.12);
  transform: translateY(-2px);
}

.footer-credit {
  justify-self: end;
  margin: 0;
  text-align: right;
}

.footer-credit a {
  color: var(--lime);
  font-weight: 900;
}

.toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 80;
  max-width: min(360px, calc(100vw - 36px));
  padding: 14px 16px;
  color: #fff;
  font-weight: 900;
  background: linear-gradient(135deg, var(--forest), var(--green));
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transform: translateY(16px);
  transition:
    opacity 180ms ease,
    transform 180ms ease;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

@keyframes heroDrift {
  from {
    transform: scale(1.02) translate3d(0, 0, 0);
  }

  to {
    transform: scale(1.07) translate3d(-1.5%, -1%, 0);
  }
}

@media (max-width: 900px) {
  .site-header,
  .main-nav,
  .section-heading,
  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .site-footer {
    grid-template-columns: 1fr;
  }

  .footer-socials {
    justify-content: flex-start;
  }

  .footer-credit {
    justify-self: start;
    text-align: left;
  }

  .main-nav {
    width: 100%;
    flex-direction: row;
    overflow-x: auto;
  }

  .hero {
    min-height: 720px;
  }

  .intro-grid,
  .split,
  .contact-section,
  .newsletter-band,
  .admin-section {
    grid-template-columns: 1fr;
  }

  .admin-section > .admin-form,
  .report-button,
  .admin-list {
    grid-column: 1;
    grid-row: auto;
  }

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

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

@media (max-width: 560px) {
  .ticker,
  .event-card {
    grid-template-columns: 1fr;
  }

  .card-grid,
  .gallery-grid,
  .team-grid {
    grid-template-columns: 1fr;
  }

  .hero h1 {
    font-size: 48px;
  }

  .newsletter-band {
    width: min(100% - 24px, 1120px);
    padding: 24px;
  }
}
