:root {
  --bg: #f3f7fb;
  --surface: rgba(255, 255, 255, 0.8);
  --surface-strong: #ffffff;
  --text: #12315d;
  --muted: #5f7697;
  --border: rgba(18, 49, 93, 0.12);
  --shadow: 0 24px 60px rgba(19, 59, 92, 0.14);
  --bu: #bde0fe;
  --mo: #ffcfcf;
  --ca: #ffeb99;
  --bu-edge: #8fbce6;
  --mo-edge: #eeaeb5;
  --ca-edge: #e5cb71;
  --accent: #163b7a;
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 14px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Manrope", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(189, 224, 254, 0.95), transparent 24%),
    radial-gradient(circle at 85% 18%, rgba(255, 235, 153, 0.85), transparent 18%),
    radial-gradient(circle at 60% 88%, rgba(255, 207, 207, 0.9), transparent 22%),
    linear-gradient(180deg, #eef6fb 0%, #f9fbfd 100%);
}

button,
a {
  font: inherit;
}

.shell {
  width: min(1320px, calc(100% - 32px));
  margin: 0 auto;
  padding: 24px 0 48px;
}

.site-footer {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  margin-top: 16px;
  padding: 14px 18px 0;
  color: rgba(18, 49, 93, 0.78);
  font-size: 0.92rem;
}

.site-meta {
  margin: 16px 0 0;
  text-align: center;
  color: rgba(18, 49, 93, 0.58);
  font-size: 0.8rem;
  letter-spacing: 0.02em;
}

.site-meta:empty,
.site-meta[hidden] {
  display: none;
}

.site-footer p {
  margin: 0;
}

.site-footer a {
  color: var(--accent);
  font-weight: 700;
  text-decoration: none;
}

.desktop-page {
  min-height: calc(100vh - 48px);
  border-radius: 44px;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.34), rgba(255, 255, 255, 0.62)),
    rgba(255, 255, 255, 0.54);
  box-shadow: 0 34px 90px rgba(30, 75, 118, 0.18);
  backdrop-filter: blur(14px);
}

.hero {
  position: relative;
  overflow: hidden;
  min-height: calc(100vh - 48px);
  padding: 34px 34px 28px;
  background:
    linear-gradient(180deg, rgba(40, 120, 201, 0.18), rgba(6, 27, 50, 0.18)),
    url("https://images.unsplash.com/photo-1500375592092-40eb2168fd21?auto=format&fit=crop&w=1600&q=80")
      center / cover;
  isolation: isolate;
}

.hero__backdrop {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(0, 83, 157, 0.28), rgba(0, 0, 0, 0.08) 28%, rgba(0, 0, 0, 0.12) 62%, rgba(0, 0, 0, 0.18)),
    radial-gradient(circle at 20% 25%, rgba(189, 224, 254, 0.22), transparent 20%),
    radial-gradient(circle at 68% 70%, rgba(255, 235, 153, 0.12), transparent 18%),
    radial-gradient(circle at 82% 32%, rgba(255, 207, 207, 0.12), transparent 14%);
}

.hero__backdrop::before,
.hero__backdrop::after {
  content: "";
  position: absolute;
  inset: auto;
  border-radius: 50%;
  filter: blur(2px);
  opacity: 0.22;
}

.hero__backdrop::before {
  width: 420px;
  height: 420px;
  left: -90px;
  bottom: -110px;
  background: rgba(255, 255, 255, 0.08);
}

.hero__backdrop::after {
  width: 620px;
  height: 620px;
  right: -220px;
  top: -210px;
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 420px minmax(0, 1fr);
  grid-template-rows: auto minmax(0, 1fr);
  grid-template-areas:
    "left agenda"
    "collab agenda";
  gap: 22px 48px;
  min-height: 100%;
}

.hero__left-main {
  grid-area: left;
  display: grid;
  grid-template-rows: auto auto;
  align-content: start;
  gap: 18px;
  align-items: start;
  max-width: 420px;
  padding: 16px 0 0 4px;
}

.hero__brand {
  display: grid;
  gap: 18px;
}

.eyebrow {
  margin: 0 0 12px;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.72);
}

.hero h1,
.section-head h2,
.download-card h2,
.contact-card h2,
.event-modal__body h2 {
  margin: 0;
  font-family: "Sora", sans-serif;
  letter-spacing: -0.04em;
}

.logo {
  max-width: 100%;
  font-size: clamp(2.9rem, 4.9vw, 4.3rem);
  line-height: 0.92;
  text-shadow: 0 14px 34px rgba(18, 49, 93, 0.18);
}

.logo__bu {
  color: var(--bu);
  -webkit-text-stroke: 2px var(--bu-edge);
  paint-order: stroke fill;
}

.logo__mo {
  color: var(--mo);
  -webkit-text-stroke: 2px var(--mo-edge);
  paint-order: stroke fill;
}

.logo__ca {
  color: var(--ca);
  -webkit-text-stroke: 2px var(--ca-edge);
  paint-order: stroke fill;
}

.hero__subtitle {
  margin: 0;
  font-size: clamp(0.9rem, 1.35vw, 1.1rem);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: rgba(255, 255, 255, 0.76);
}

.weather-card,
.weather-strip,
.cta,
.status-card,
.banner-panel,
.download-card,
.contact-card,
.event-card,
.date-pill,
.ghost-button,
.filter-chip {
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.weather-card {
  padding: 16px 18px;
  min-width: 220px;
  border-color: rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(18px);
}

.weather-strip {
  position: static;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  width: min(320px, 100%);
  padding: 12px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(16px);
  box-shadow: none;
  border-color: rgba(255, 255, 255, 0.14);
}

.weather-town {
  padding: 12px 14px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.07);
}

.weather-town__name {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: rgba(255, 255, 255, 0.72);
}

.weather-town__value {
  margin: 7px 0 0;
  font-size: 1rem;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.96);
}

.weather-town__note {
  margin: 4px 0 0;
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.82);
}

.weather-card__label,
.weather-card__value {
  margin: 0;
}

.weather-card__label {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.64);
}

.weather-card__value {
  margin-top: 4px;
  font-weight: 800;
  color: white;
}

.cta,
.ghost-button,
.date-pill,
.store-links a,
.event-modal__close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  border-radius: 999px;
}

.agenda-panel {
  grid-area: agenda;
  position: relative;
  z-index: 1;
  min-height: 0;
  display: grid;
  grid-template-rows: auto auto auto minmax(0, 1fr);
  gap: 16px;
  height: 100%;
  padding: 28px;
  border-radius: 32px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(247, 251, 254, 0.15);
  backdrop-filter: blur(18px);
  box-shadow: 0 24px 60px rgba(18, 49, 93, 0.16);
}

.agenda-panel__head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
}

.agenda-panel .eyebrow,
.event-modal__body .eyebrow {
  color: rgba(255, 255, 255, 0.72);
}

.agenda-panel h2 {
  margin: 0;
  color: white;
  font-size: clamp(1.9rem, 2.2vw, 2.5rem);
}

.date-nav,
.filter-bar,
.store-links {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.filter-hint {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.82);
}

.banner-dots {
  display: none;
}

.ghost-button,
.date-pill,
.filter-chip {
  padding: 12px 18px;
  color: var(--accent);
  background: rgba(255, 255, 255, 0.92);
  border-radius: 999px;
}

.date-pill {
  min-width: 182px;
  font-weight: 800;
}

.filter-chip {
  min-width: 112px;
  font-weight: 800;
}

.filter-chip[data-town="bueu"].is-active {
  background: var(--bu);
}

.filter-chip[data-town="moana"].is-active {
  background: var(--mo);
}

.filter-chip[data-town="cangas"].is-active {
  background: var(--ca);
}

.status-card,
.download-card,
.contact-card {
  padding: 22px;
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(18px);
}

.status-card {
  min-height: 72px;
  display: grid;
  align-items: center;
  color: var(--muted);
}

.event-grid {
  display: grid;
  gap: 16px;
  align-content: start;
  min-height: 0;
  max-height: 100%;
  overflow: auto;
  padding-right: 8px;
}

.event-card {
  position: relative;
  overflow: hidden;
  padding: 22px;
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.86);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.event-card:hover {
  transform: translateY(-2px);
}

.event-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 8px;
  border-radius: 999px;
  background: var(--town-color, var(--accent));
}

.event-card__top {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
}

.event-card__town,
.event-card__category {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 800;
}

.event-card__town {
  background: var(--town-color-soft, rgba(18, 49, 93, 0.08));
}

.event-card__category {
  background: rgba(18, 49, 93, 0.06);
  color: var(--muted);
}

.event-card h3 {
  margin: 14px 0 10px;
  font-size: 1.26rem;
}

.event-card p {
  margin: 0;
  line-height: 1.6;
  color: var(--muted);
}

.event-card__footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  margin-top: 18px;
}

.event-card__action {
  padding: 10px 16px;
  border: 0;
  border-radius: 999px;
  background: var(--accent);
  color: white;
  font-weight: 800;
  cursor: pointer;
}

.collab-panel {
  grid-area: collab;
  position: relative;
  z-index: 1;
  width: min(320px, 100%);
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: 10px;
  padding: 14px;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(18px);
}

.collab-panel__title {
  margin: 0;
  text-align: center;
  font-family: "Sora", sans-serif;
  font-size: 1.1rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.9);
}

.banner-frame {
  position: relative;
  min-height: 160px;
  height: 180px;
  overflow: hidden;
  border-radius: 24px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.96);
}

.banner-frame__media {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

.banner-frame img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

.banner-frame__empty {
  min-height: 160px;
  display: grid;
  place-items: center;
  padding: 24px;
  color: rgba(255, 255, 255, 0.84);
  text-align: center;
}

.banner-dots button {
  width: 10px;
  height: 10px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(18, 49, 93, 0.2);
  cursor: pointer;
}

.banner-dots button.is-active {
  background: var(--accent);
}

.store-links a {
  min-width: 132px;
  padding: 12px 18px;
  background: white;
  color: var(--accent);
  font-weight: 800;
}

.store-links a[aria-disabled="true"] {
  pointer-events: none;
  opacity: 0.45;
}

.contact-card a {
  color: var(--accent);
  font-weight: 800;
  text-decoration: none;
}

.event-modal {
  width: min(760px, calc(100% - 24px));
  padding: 0;
  border: 0;
  border-radius: 30px;
  overflow: hidden;
  box-shadow: 0 36px 120px rgba(18, 49, 93, 0.34);
}

.event-modal::backdrop {
  background: rgba(8, 27, 47, 0.52);
  backdrop-filter: blur(6px);
}

.event-modal__sheet {
  position: relative;
  background: white;
}

.event-modal__close {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 2;
  padding: 10px 14px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: rgba(11, 31, 66, 0.28);
  color: white;
  cursor: pointer;
}

.event-modal__hero {
  min-height: 8px;
}

.event-modal__body {
  padding: 28px;
}

.event-modal__time,
.event-modal__content {
  color: var(--muted);
  line-height: 1.7;
}

.event-modal__content p {
  margin: 0 0 14px;
}

.event-modal__content p:last-child {
  margin-bottom: 0;
}

.event-modal__actions {
  margin-top: 16px;
}

.event-modal__text-link {
  color: var(--accent);
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 0.16em;
  word-break: break-word;
}

.event-modal__maps-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 16px;
  border-radius: 999px;
  background: var(--accent);
  color: white;
  font-weight: 800;
  text-decoration: none;
}

@media (max-width: 980px) {
  .desktop-page {
    border-radius: 32px;
  }

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

  .hero__inner {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto;
    grid-template-areas:
      "left"
      "agenda"
      "collab";
    gap: 24px;
    min-height: auto;
  }

  .hero__left-main {
    grid-template-rows: auto auto;
    max-width: none;
  }

  .agenda-panel__head {
    flex-direction: column;
    align-items: start;
  }

  .collab-panel {
    width: 100%;
  }
}

@media (max-width: 640px) {
  .shell {
    width: min(100% - 12px, 100%);
    padding: 6px 0 20px;
  }

  .hero {
    min-height: auto;
    padding: 18px 14px 16px;
  }

  .desktop-page {
    min-height: auto;
    border-radius: 30px;
  }

  .hero__inner {
    gap: 16px;
  }

  .hero__left-main {
    gap: 14px;
    padding: 4px 2px 0;
  }

  .hero__brand {
    width: 100%;
    justify-items: center;
    text-align: center;
    gap: 12px;
  }

  .logo {
    font-size: clamp(4rem, 20vw, 5.7rem);
    line-height: 0.88;
  }

  .hero__subtitle {
    font-size: 0.95rem;
    letter-spacing: 0.18em;
    color: rgba(255, 255, 255, 0.9);
  }

  .weather-strip {
    width: 100%;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    padding: 10px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.12);
  }

  .weather-town {
    padding: 10px 8px;
    text-align: center;
    border-radius: 16px;
  }

  .weather-town__name {
    font-size: 0.64rem;
    letter-spacing: 0.12em;
  }

  .weather-town__value {
    margin-top: 6px;
    font-size: 0.92rem;
  }

  .weather-town__note {
    font-size: 0.75rem;
  }

  .agenda-panel {
    gap: 14px;
    height: auto;
    padding: 18px 14px 16px;
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.88);
    border-color: rgba(255, 255, 255, 0.24);
  }

  .agenda-panel .eyebrow {
    color: rgba(18, 49, 93, 0.58);
    margin-bottom: 8px;
  }

  .filter-hint {
    font-size: 0.84rem;
    color: rgba(18, 49, 93, 0.72);
  }

  .agenda-panel h2 {
    color: var(--accent);
    font-size: 1.9rem;
    line-height: 1;
  }

  .event-card__top,
  .event-card__footer {
    flex-direction: column;
    align-items: start;
  }

  .agenda-panel__head {
    width: 100%;
  }

  .date-nav {
    width: 100%;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr) minmax(0, 1fr);
    gap: 8px;
  }

  .ghost-button,
  .date-pill {
    min-width: 0;
    width: 100%;
    padding: 13px 10px;
    font-size: 0.98rem;
  }

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

  .filter-chip {
    width: 100%;
    min-width: 0;
    padding: 14px 0;
    font-size: 0.95rem;
  }

  .status-card {
    min-height: 64px;
    padding: 18px;
    border-radius: 22px;
  }

  .event-grid {
    max-height: none;
    overflow: visible;
    padding-right: 0;
  }

  .event-card {
    padding: 18px;
    border-radius: 24px;
  }

  .event-card h3 {
    font-size: 1.14rem;
  }

  .event-card__action {
    width: 100%;
    justify-content: center;
  }

  .collab-panel {
    width: 100%;
    padding: 14px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.14);
  }

  .collab-panel__title {
    font-size: 0.92rem;
    letter-spacing: 0.14em;
  }

  .banner-frame {
    height: auto;
    min-height: 0;
    border-radius: 20px;
  }

  .banner-frame__media {
    min-height: 0;
  }

  .banner-frame img {
    height: auto;
    max-height: 220px;
  }

  .banner-frame__empty {
    min-height: 154px;
  }

  .event-modal__hero {
    min-height: 6px;
  }

  .site-footer {
    gap: 10px 14px;
    padding-top: 14px;
    font-size: 0.84rem;
  }

  .site-meta {
    margin-top: 14px;
    font-size: 0.74rem;
    padding: 0 12px;
  }
}
