:root {
  --ink: #13221f;
  --muted: #5f6f6a;
  --paper: #f7f8f4;
  --white: #ffffff;
  --green: #22c55e;
  --deep-green: #174c43;
  --river: #227c9d;
  --clay: #cf1f24;
  --gold: #e4b852;
  --logo-cyan: #25d4dc;
  --logo-cream: #fff8c9;
  --line: rgba(19, 34, 31, 0.12);
  --shadow: 0 24px 70px rgba(18, 31, 28, 0.16);
  color-scheme: light;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
}

body.menu-open {
  overflow: hidden;
}

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

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

button,
input,
textarea {
  font: inherit;
}

.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: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(18px, 5vw, 64px);
  color: var(--white);
  transition:
    background 180ms ease,
    box-shadow 180ms ease,
    padding 180ms ease;
}

.site-header.scrolled,
.site-header.menu-active {
  background: rgba(247, 248, 244, 0.96);
  color: var(--ink);
  box-shadow: 0 12px 36px rgba(17, 31, 28, 0.08);
  backdrop-filter: blur(14px);
}

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

.brand-mark {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border: 2px solid var(--logo-cyan);
  border-radius: 999px;
  background: var(--white);
  box-shadow: 0 10px 28px rgba(37, 212, 220, 0.28);
  overflow: hidden;
}

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

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

.brand strong {
  font-size: 0.98rem;
}

.brand small {
  color: currentColor;
  font-size: 0.78rem;
  opacity: 0.78;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2vw, 28px);
  font-size: 0.94rem;
  font-weight: 700;
}

.site-nav a {
  opacity: 0.86;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  opacity: 1;
  color: var(--clay);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid currentColor;
  border-radius: 8px;
  background: transparent;
  color: inherit;
  padding: 11px;
}

.menu-toggle span:not(.sr-only) {
  display: block;
  height: 2px;
  background: currentColor;
  margin: 5px 0;
}

.hero {
  position: relative;
  min-height: 92svh;
  display: grid;
  align-items: end;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 360px);
  gap: 28px;
  padding: 148px clamp(18px, 5vw, 64px) 70px;
  color: var(--white);
  overflow: hidden;
}

.hero-media,
.hero-overlay {
  position: absolute;
  inset: 0;
}

.hero-media {
  background-image: url("assets/alucra-hero.jpg");
  background-size: cover;
  background-position: center;
  transform: scale(1.02);
}

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(10, 24, 21, 0.78), rgba(10, 24, 21, 0.44) 52%, rgba(10, 24, 21, 0.16)),
    linear-gradient(0deg, rgba(10, 24, 21, 0.42), rgba(10, 24, 21, 0.1));
}

.hero-content,
.hero-panel {
  position: relative;
  z-index: 1;
}

.hero-content {
  max-width: 880px;
}

.partner-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 24px;
  padding: 8px 12px 8px 8px;
  border: 1px solid rgba(37, 212, 220, 0.62);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.13);
  backdrop-filter: blur(12px);
  font-weight: 800;
  font-size: 0.9rem;
}

.partner-pill img {
  width: 32px;
  height: 32px;
  border-radius: 999px;
}

.eyebrow,
.section-kicker {
  margin: 0 0 12px;
  color: var(--clay);
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 780px;
  margin: 0;
  font-size: clamp(3.1rem, 8vw, 6.7rem);
  line-height: 0.96;
  letter-spacing: 0;
}

.hero-copy {
  max-width: 680px;
  margin: 26px 0 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  line-height: 1.65;
}

.hero-actions,
.platform-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 30px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-weight: 900;
  white-space: normal;
}

.button.primary {
  background: var(--gold);
  color: #062616;
}

.button.secondary {
  border-color: rgba(255, 255, 255, 0.42);
  background: rgba(255, 255, 255, 0.13);
  color: var(--white);
  backdrop-filter: blur(12px);
}

.button.dark {
  background: var(--deep-green);
  color: var(--white);
}

.button:hover,
.button:focus-visible,
.text-link:hover,
.text-link:focus-visible {
  transform: translateY(-1px);
}

.hero-panel {
  align-self: end;
  padding: 24px;
  border: 1px solid rgba(37, 212, 220, 0.46);
  border-radius: 8px;
  background: rgba(255, 248, 201, 0.16);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.logo-panel {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  max-width: 430px;
}

.logo-panel img {
  width: 112px;
  height: 112px;
  border: 3px solid var(--logo-cyan);
  border-radius: 999px;
  background: var(--white);
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.24);
  object-fit: cover;
}

.hero-panel span,
.hero-panel strong,
.hero-panel a {
  display: block;
}

.hero-panel span {
  color: var(--logo-cream);
  font-weight: 900;
  font-size: 0.82rem;
  text-transform: uppercase;
}

.hero-panel strong {
  margin: 12px 0 18px;
  font-size: 1.18rem;
  line-height: 1.35;
}

.hero-panel a {
  color: var(--white);
  font-weight: 900;
  text-decoration: underline;
  text-underline-offset: 5px;
}

.intro-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border-bottom: 1px solid var(--line);
}

.intro-strip div {
  min-height: 130px;
  padding: 28px clamp(18px, 5vw, 64px);
  background: var(--white);
}

.intro-strip strong,
.intro-strip span {
  display: block;
}

.intro-strip strong {
  margin-bottom: 8px;
  font-size: 1.12rem;
  color: var(--clay);
}

.intro-strip span {
  color: var(--muted);
  line-height: 1.5;
}

.section,
.alucrali-band,
.contact-section {
  padding: 86px clamp(18px, 5vw, 64px);
}

.split {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(32px, 6vw, 76px);
  align-items: start;
}

.section-copy,
.support-copy,
.contact-copy {
  max-width: 680px;
}

h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.9rem);
  line-height: 1.04;
  letter-spacing: 0;
}

h3 {
  margin: 0;
  font-size: 1.16rem;
  line-height: 1.28;
}

p {
  line-height: 1.7;
}

.section-copy p:not(.section-kicker),
.support-copy p,
.contact-copy p,
.section-lead,
.alucrali-content p {
  color: var(--muted);
  font-size: 1.05rem;
}

.section-lead {
  max-width: 660px;
  margin: 14px 0 0;
}

.values-grid,
.platform-grid,
.news-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.values-grid article,
.platform-grid article,
.news-card {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  padding: 24px;
  box-shadow: 0 18px 44px rgba(18, 31, 28, 0.06);
}

.value-icon {
  display: inline-flex;
  margin-bottom: 28px;
  color: var(--clay);
  font-weight: 900;
}

.values-grid p,
.platform-grid p,
.news-card p {
  margin: 12px 0 0;
  color: var(--muted);
}

.alucrali-band {
  background: var(--deep-green);
  color: var(--white);
}

.alucrali-brand {
  display: grid;
  grid-template-columns: 132px minmax(0, 820px);
  gap: 28px;
  align-items: center;
  margin-bottom: 34px;
}

.alucrali-brand img {
  width: 132px;
  height: 132px;
  border-radius: 24px;
  background: var(--white);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.24);
}

.alucrali-band .section-kicker {
  color: var(--gold);
}

.alucrali-content {
  display: grid;
  grid-template-columns: minmax(0, 780px) auto;
  gap: 28px;
  align-items: end;
  margin-bottom: 34px;
}

.alucrali-content p {
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
}

.text-link {
  color: var(--white);
  font-weight: 900;
  text-decoration: underline;
  text-underline-offset: 6px;
}

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

.app-download-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin: 0 0 34px;
}

.app-download-card {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
  box-shadow: none;
}

.app-download-icon {
  display: grid;
  width: 64px;
  height: 64px;
  place-items: center;
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.78)),
    var(--green);
  color: var(--deep-green);
  font-size: 2rem;
  font-weight: 950;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.22);
}

.app-label {
  display: inline-flex;
  margin-bottom: 10px;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 950;
  letter-spacing: 0;
  text-transform: uppercase;
}

.app-download-card h3 {
  margin: 0;
  font-size: clamp(1.2rem, 2vw, 1.55rem);
  line-height: 1.18;
}

.app-download-card p {
  margin: 10px 0 18px;
  color: rgba(255, 255, 255, 0.76);
}

.app-store-button {
  min-height: 44px;
  background: var(--white);
  color: var(--deep-green);
}

.platform-grid article {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.16);
  box-shadow: none;
}

.platform-grid p {
  color: rgba(255, 255, 255, 0.74);
}

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

.filter-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter-tabs button {
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
  color: var(--muted);
  padding: 0 14px;
  font-weight: 900;
  cursor: pointer;
}

.filter-tabs button.active {
  background: var(--river);
  color: var(--white);
  border-color: var(--river);
}

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

.news-card {
  position: relative;
  min-height: 124px;
  overflow: hidden;
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  padding: 0;
}

.news-card[hidden] {
  display: none;
}

.news-card-media {
  display: grid;
  position: relative;
  min-height: 100%;
  padding: 10px;
  place-items: center;
  overflow: hidden;
  background: #e8f0ed;
}

.news-card-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(23, 76, 67, 0.08), rgba(34, 124, 157, 0.1));
}

.news-card-media img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 78px;
  border-radius: 8px;
  object-fit: cover;
  box-shadow: 0 10px 22px rgba(19, 34, 31, 0.14);
}

.news-card-fallback {
  display: grid;
  position: relative;
  z-index: 1;
  width: 100%;
  min-height: 78px;
  place-items: center;
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(23, 76, 67, 0.92), rgba(34, 124, 157, 0.7)),
    url("assets/alucra-hero.jpg") center / cover;
  color: var(--white);
}

.news-card-fallback img {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 3px solid rgba(255, 255, 255, 0.82);
  background: var(--white);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.24);
}

.news-card-fallback strong {
  margin-top: 6px;
  font-size: 0.82rem;
  font-weight: 950;
}

.news-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-width: 0;
  padding: 12px 14px;
}

.news-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}

.news-card span {
  border-radius: 999px;
  background: rgba(34, 124, 157, 0.12);
  color: var(--river);
  padding: 5px 9px;
  font-size: 0.74rem;
  font-weight: 900;
}

.news-card[data-category="event"] span {
  background: rgba(182, 84, 51, 0.12);
  color: var(--clay);
}

.news-card h3 {
  margin-bottom: 6px;
  margin-top: 0;
  font-size: 0.96rem;
  line-height: 1.22;
}

.news-card p {
  display: -webkit-box;
  margin-top: 0;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
}

.news-card.empty-card {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  min-height: 210px;
  padding: 24px;
  background:
    linear-gradient(135deg, rgba(34, 197, 94, 0.08), rgba(34, 124, 157, 0.08)),
    var(--white);
}

.news-card.empty-card a {
  display: inline-flex;
  margin-top: 18px;
  color: var(--deep-green);
  font-weight: 900;
  text-decoration: underline;
  text-underline-offset: 5px;
}

.loading-card {
  display: flex;
  flex-direction: column;
  padding: 24px;
  position: relative;
  overflow: hidden;
}

.loading-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.55), transparent);
  transform: translateX(-100%);
  animation: shimmer 1.4s infinite;
}

@keyframes shimmer {
  to {
    transform: translateX(100%);
  }
}

.news-card time {
  margin-top: auto;
  color: var(--clay);
  font-size: 0.8rem;
  font-weight: 900;
  white-space: nowrap;
}

.news-card-meta time {
  margin-top: 0;
}

.news-card-action {
  display: inline-flex;
  align-self: flex-start;
  margin-top: 4px;
  color: var(--deep-green);
  font-size: 0.84rem;
  font-weight: 950;
  text-decoration: underline;
  text-underline-offset: 5px;
}

.news-card-link {
  position: absolute;
  inset: 0;
  border-radius: 8px;
}

.support-section {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(280px, 0.8fr);
  gap: clamp(28px, 5vw, 64px);
  background: #eef5f0;
}

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

.support-list a {
  display: block;
  border-left: 5px solid var(--green);
  border-radius: 8px;
  background: var(--white);
  padding: 20px 22px;
  box-shadow: 0 18px 42px rgba(18, 31, 28, 0.06);
}

.support-list span,
.support-list strong {
  display: block;
}

.support-list span {
  color: var(--clay);
  font-size: 0.84rem;
  font-weight: 900;
  text-transform: uppercase;
}

.support-list strong {
  margin-top: 5px;
  font-size: 1.1rem;
}

.contact-section {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(320px, 520px);
  gap: clamp(28px, 5vw, 70px);
  align-items: start;
  background: var(--white);
}

.contact-form {
  display: grid;
  gap: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  padding: 22px;
}

.contact-form label {
  display: grid;
  gap: 8px;
  color: var(--ink);
  font-weight: 900;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  color: var(--ink);
  padding: 13px 14px;
  outline: none;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.12);
}

.form-note {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 34px clamp(18px, 5vw, 64px);
  background: #102c28;
  color: var(--white);
}

.site-footer strong,
.site-footer span {
  display: block;
}

.site-footer span {
  margin-top: 6px;
  color: rgba(255, 255, 255, 0.68);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  font-weight: 900;
}

.footer-links a {
  color: var(--green);
}

@media (max-width: 980px) {
  .menu-toggle {
    display: block;
  }

  .site-nav {
    position: fixed;
    left: 18px;
    right: 18px;
    top: 84px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--white);
    color: var(--ink);
    box-shadow: var(--shadow);
    overflow: hidden;
  }

  .site-nav.open {
    display: flex;
  }

  .site-nav a {
    padding: 17px 18px;
    border-bottom: 1px solid var(--line);
  }

  .site-nav a:last-child {
    border-bottom: 0;
  }

  .hero {
    min-height: auto;
    grid-template-columns: 1fr;
    padding-top: 132px;
  }

  .hero h1 {
    font-size: clamp(3rem, 13vw, 5.4rem);
  }

  .hero-panel {
    max-width: 520px;
  }

  .intro-strip,
  .split,
  .alucrali-content,
  .app-download-grid,
  .support-section,
  .contact-section {
    grid-template-columns: 1fr;
  }

  .platform-grid,
  .news-grid {
    grid-template-columns: 1fr;
  }

  .section-heading {
    align-items: start;
    flex-direction: column;
  }
}

@media (max-width: 680px) {
  .site-header {
    padding: 14px 16px;
  }

  .brand {
    min-width: 0;
  }

  .brand small {
    display: none;
  }

  .hero {
    padding: 112px 16px 46px;
  }

  .hero-actions,
  .platform-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .intro-strip,
  .values-grid {
    grid-template-columns: 1fr;
  }

  .section,
  .alucrali-band,
  .contact-section {
    padding: 64px 16px;
  }

  .alucrali-brand {
    grid-template-columns: 72px 1fr;
    gap: 16px;
  }

  .alucrali-brand img {
    width: 72px;
    height: 72px;
    border-radius: 14px;
  }

  .app-download-card {
    grid-template-columns: 52px minmax(0, 1fr);
    gap: 14px;
    padding: 18px;
  }

  .app-download-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    font-size: 1.55rem;
  }

  .news-card {
    grid-template-columns: 82px minmax(0, 1fr);
    min-height: 112px;
  }

  .news-card-media {
    padding: 8px;
  }

  .news-card-media img,
  .news-card-fallback {
    height: 64px;
    min-height: 64px;
  }

  .news-card-fallback img {
    width: 34px;
    height: 34px;
  }

  .news-card-fallback strong {
    font-size: 0.72rem;
  }

  .news-card-body {
    padding: 10px 12px;
  }

  .news-card-meta {
    align-items: flex-start;
    flex-direction: column;
    gap: 5px;
    margin-bottom: 7px;
  }

  .news-card h3 {
    font-size: 0.94rem;
  }

  .news-card p,
  .news-card-action {
    font-size: 0.82rem;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
    padding: 30px 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
