/*
Theme Name: APASOA Simple
Theme URI: https://www.apasoa.ca/
Author: Christian Charette
Description: Minimal custom theme for the APASOA WIX to WordPress migration.
Version: 1.0.0
Text Domain: apasoa-simple
*/

:root {
  --apasoa-bg: #181913;
  --apasoa-bg-soft: #23251c;
  --apasoa-surface: #f3f1e7;
  --apasoa-surface-alt: #ece7d5;
  --apasoa-text: #201f18;
  --apasoa-text-soft: #56544c;
  --apasoa-border: rgba(176, 164, 87, 0.22);
  --apasoa-accent: #b19f3d;
  --apasoa-accent-strong: #d6bf4a;
  --apasoa-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
  --apasoa-radius: 22px;
  --apasoa-width: 1160px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--apasoa-bg);
  color: var(--apasoa-text);
  font-family: "Source Sans 3", sans-serif;
  font-size: 18px;
  line-height: 1.65;
}

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

figure {
  margin: 0;
}

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

p {
  margin: 0 0 1.15rem;
}

h1,
h2,
h3,
h4 {
  margin: 0 0 1rem;
  font-family: "Rubik", sans-serif;
  font-weight: 600;
  line-height: 1.08;
}

ul {
  margin: 0;
  padding: 0;
}

.site-shell {
  width: min(calc(100% - 2rem), var(--apasoa-width));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(18px);
  background: rgba(15, 16, 12, 0.84);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 80px;
}

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

.brand__mark {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  overflow: hidden;
  flex: 0 0 auto;
}

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

.brand__wordmark {
  display: grid;
  gap: 0.12rem;
}

.brand__title {
  color: #fff;
  font-family: "Rubik", sans-serif;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.brand__tag {
  color: rgba(255, 255, 255, 0.66);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.site-nav__list,
.footer-nav__list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.2rem;
}

.site-nav__list a,
.footer-nav__list a {
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.93rem;
  transition: color 0.2s ease;
}

.site-nav__list a:hover,
.footer-nav__list a:hover,
.text-link:hover {
  color: var(--apasoa-accent-strong);
}

.header-pass {
  flex: 0 0 auto;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  min-height: 52px;
  padding: 0.8rem 1.25rem;
  border: 1px solid transparent;
  border-radius: 999px;
  background: var(--apasoa-accent);
  color: #11120d;
  font-family: "Rubik", sans-serif;
  font-size: 0.95rem;
  font-weight: 500;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.wp-block-button .wp-block-button__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  min-height: 52px;
  padding: 0.8rem 1.25rem;
  border: 1px solid transparent;
  border-radius: 999px;
  background: var(--apasoa-accent);
  color: #11120d;
  font-family: "Rubik", sans-serif;
  font-size: 0.95rem;
  font-weight: 500;
  line-height: 1.2;
  text-decoration: none;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.button:hover {
  transform: translateY(-1px);
  background: var(--apasoa-accent-strong);
}

.wp-block-button .wp-block-button__link:hover {
  transform: translateY(-1px);
  background: var(--apasoa-accent-strong);
}

.button.button--ghost {
  background: transparent;
  color: var(--apasoa-accent-strong);
  border-color: rgba(214, 191, 74, 0.55);
}

.wp-block-button.button--ghost .wp-block-button__link {
  background: transparent;
  color: var(--apasoa-accent-strong);
  border-color: rgba(214, 191, 74, 0.55);
}

.button.button--ghost:hover {
  background: rgba(214, 191, 74, 0.08);
}

.wp-block-button.button--ghost .wp-block-button__link:hover {
  background: rgba(214, 191, 74, 0.08);
}

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

.wp-block-button.button--light .wp-block-button__link {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.16);
}

.button.button--light:hover {
  background: rgba(255, 255, 255, 0.16);
}

.wp-block-button.button--light .wp-block-button__link:hover {
  background: rgba(255, 255, 255, 0.16);
}

.text-link {
  color: var(--apasoa-accent);
  font-family: "Rubik", sans-serif;
  font-size: 0.95rem;
}

.text-link a {
  color: inherit;
}

.hero {
  position: relative;
  min-height: calc(100vh - 80px);
  color: #fff;
}

.hero.wp-block-cover {
  min-height: calc(100vh - 80px) !important;
  padding: 0;
}

.hero.wp-block-cover .wp-block-cover__background {
  background: linear-gradient(90deg, rgba(8, 10, 8, 0.82) 0%, rgba(20, 24, 17, 0.58) 45%, rgba(20, 24, 17, 0.78) 100%);
  opacity: 1;
}

.hero.wp-block-cover .wp-block-cover__inner-container {
  width: 100%;
}

.hero__inner {
  display: grid;
  align-items: end;
  min-height: calc(100vh - 80px);
  padding: clamp(4rem, 10vw, 8rem) 0 2rem;
}

.hero__content {
  max-width: 520px;
}

.hero__logo {
  width: clamp(150px, 20vw, 220px);
  margin-bottom: 1.2rem;
}

.hero__logo img {
  width: 100%;
}

.eyebrow {
  margin-bottom: 0.85rem;
  color: var(--apasoa-accent-strong);
  font-family: "Rubik", sans-serif;
  font-size: 0.88rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero__title {
  font-size: clamp(2.7rem, 6vw, 5.4rem);
  letter-spacing: -0.04em;
}

.hero__text {
  max-width: 36rem;
  color: rgba(255, 255, 255, 0.82);
  font-size: 1.06rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 1.65rem;
}

.hero__scroll {
  justify-self: start;
  margin-top: 2rem;
  color: var(--apasoa-accent-strong);
  font-family: "Rubik", sans-serif;
  font-size: 0.92rem;
}

.hero__scroll a {
  color: inherit;
}

.section {
  padding: clamp(4rem, 9vw, 6.5rem) 0;
}

.section--light {
  background: var(--apasoa-surface);
}

.section--dark {
  background:
    radial-gradient(circle at top right, rgba(177, 159, 61, 0.12), transparent 28%),
    var(--apasoa-bg-soft);
  color: rgba(255, 255, 255, 0.9);
}

.section--band {
  padding: 1.4rem 0;
  background: #11120d;
  color: #fff;
  border-top: 1px solid rgba(214, 191, 74, 0.18);
  border-bottom: 1px solid rgba(214, 191, 74, 0.18);
}

.section-heading {
  max-width: 720px;
  margin-bottom: 2rem;
}

.section-heading h2 {
  font-size: clamp(2rem, 4vw, 3.25rem);
  color: inherit;
}

.section-heading p:last-child {
  margin-bottom: 0;
}

.purpose__statement {
  max-width: 880px;
  margin-bottom: 2.75rem;
  color: var(--apasoa-text);
}

.purpose__statement p {
  margin-bottom: 0.55rem;
}

.purpose__statement strong {
  display: block;
  margin-bottom: 0.35rem;
  font-family: "Rubik", sans-serif;
  font-size: 1.15rem;
}

.purpose__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
}

.purpose__column {
  padding: 2rem;
  border: 1px solid rgba(32, 31, 24, 0.08);
  border-radius: var(--apasoa-radius);
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 14px 35px rgba(0, 0, 0, 0.04);
}

.purpose__column h3 {
  margin-bottom: 1rem;
  font-size: 1.2rem;
  color: var(--apasoa-text);
}

.purpose__column p {
  color: var(--apasoa-text-soft);
}

.purpose__mark {
  display: flex;
  justify-content: center;
  margin-top: 2rem;
}

.purpose__mark img {
  width: min(360px, 70vw);
  opacity: 0.94;
}

.band__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 2rem;
}

.band__text {
  font-family: "Rubik", sans-serif;
  font-size: 1.03rem;
}

.news-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 2rem;
  padding: 1.25rem 1.4rem;
  border: 1px solid var(--apasoa-border);
  border-radius: calc(var(--apasoa-radius) - 6px);
  background: rgba(255, 255, 255, 0.02);
}

.news-row p {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
}

.discover__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.95fr);
  gap: 1.4rem;
}

.card {
  overflow: hidden;
  border: 1px solid var(--apasoa-border);
  border-radius: var(--apasoa-radius);
  background: rgba(11, 12, 9, 0.24);
  box-shadow: var(--apasoa-shadow);
}

.card--light {
  background: rgba(255, 255, 255, 0.92);
  color: var(--apasoa-text);
}

.card__media {
  aspect-ratio: 16 / 10;
  overflow: hidden;
}

.card__media--map {
  aspect-ratio: 16 / 11;
  background: #ddd8c8;
}

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

.card__body {
  padding: 1.5rem;
}

.card__body h3 {
  font-size: 1.5rem;
}

.card__meta {
  color: rgba(255, 255, 255, 0.65);
}

.card--light .card__meta {
  color: var(--apasoa-text-soft);
}

.card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 1.1rem;
}

.hero__actions.wp-block-buttons,
.card__actions.wp-block-buttons {
  align-items: center;
}

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

.sponsor-card {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 170px;
  padding: 1.5rem;
  border: 1px solid var(--apasoa-border);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.04);
}

.sponsor-card img {
  max-height: 92px;
  width: auto;
  object-fit: contain;
}

.help__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: 1.75rem;
  align-items: stretch;
}

.help__panel,
.content-wrap {
  padding: clamp(1.5rem, 3vw, 2.4rem);
  border-radius: var(--apasoa-radius);
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid rgba(32, 31, 24, 0.08);
  box-shadow: 0 14px 38px rgba(0, 0, 0, 0.05);
}

.help__details {
  display: grid;
  gap: 1rem;
  margin: 1.5rem 0;
}

.help__details p {
  margin: 0;
}

.help__label {
  display: block;
  margin-bottom: 0.2rem;
  color: var(--apasoa-text-soft);
  font-size: 0.84rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.help__image {
  overflow: hidden;
  border-radius: var(--apasoa-radius);
  min-height: 100%;
  box-shadow: var(--apasoa-shadow);
}

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

.site-footer {
  padding: 2.5rem 0;
  background: #10110d;
  color: rgba(255, 255, 255, 0.82);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.site-footer__inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 1.5rem;
}

.site-footer h3,
.site-footer h4 {
  margin-bottom: 0.65rem;
  color: #fff;
  font-size: 1rem;
}

.site-footer p {
  margin-bottom: 0.5rem;
  color: rgba(255, 255, 255, 0.66);
}

.site-footer__legal {
  margin-top: 1rem;
  color: rgba(255, 255, 255, 0.48);
  font-size: 0.84rem;
}

.page-section {
  background: var(--apasoa-surface);
  padding: clamp(3rem, 8vw, 5rem) 0;
}

.front-page-entry > .wp-block-group,
.front-page-entry > .wp-block-cover {
  margin-block-start: 0;
  margin-block-end: 0;
}

.front-page-entry .alignwide {
  width: min(calc(100% - 2rem), var(--apasoa-width));
  margin-right: auto;
  margin-left: auto;
}

.front-page-entry .apasoa-card {
  overflow: hidden;
  box-shadow: var(--apasoa-shadow);
}

.front-page-entry .apasoa-card .wp-block-image {
  margin-bottom: 0;
}

.front-page-entry .apasoa-card .wp-block-image img {
  width: 100%;
  height: 100%;
}

.front-page-entry .sponsor-gallery {
  margin-top: 2rem;
}

.front-page-entry .sponsor-gallery .wp-block-image {
  display: flex;
  flex: 1 1 calc(33.333% - 0.75rem);
  align-items: center;
  justify-content: center;
  min-height: 170px;
  margin: 0;
  padding: 1.5rem;
  border: 1px solid var(--apasoa-border);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.04);
}

.front-page-entry .sponsor-gallery .wp-block-image img {
  max-height: 92px;
  width: auto;
  margin: 0 auto;
  object-fit: contain;
}

.page-header {
  margin-bottom: 1.5rem;
}

.page-header h1 {
  font-size: clamp(2rem, 4vw, 3.25rem);
  color: var(--apasoa-text);
}

.entry-content > *:last-child,
.content-wrap > *:last-child {
  margin-bottom: 0;
}

.post-list {
  display: grid;
  gap: 1rem;
}

.post-card {
  padding: 1.6rem;
  border: 1px solid rgba(32, 31, 24, 0.08);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.88);
}

.post-card h2 {
  margin-bottom: 0.55rem;
  font-size: 1.5rem;
}

.post-card p {
  color: var(--apasoa-text-soft);
}

@media (max-width: 980px) {
  .site-header__inner {
    flex-wrap: wrap;
    padding: 1rem 0;
    min-height: auto;
  }

  .site-nav {
    order: 3;
    width: 100%;
  }

  .purpose__grid,
  .discover__grid,
  .help__grid,
  .site-footer__inner {
    grid-template-columns: 1fr;
  }

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

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

  .front-page-entry .sponsor-gallery .wp-block-image {
    flex-basis: calc(50% - 0.5rem);
  }
}

@media (max-width: 720px) {
  body {
    font-size: 17px;
  }

  .site-shell {
    width: min(calc(100% - 1.25rem), var(--apasoa-width));
  }

  .front-page-entry .alignwide {
    width: min(calc(100% - 1.25rem), var(--apasoa-width));
  }

  .brand__tag {
    display: none;
  }

  .site-nav__list,
  .footer-nav__list,
  .hero__actions,
  .card__actions {
    gap: 0.7rem;
  }

  .button {
    width: 100%;
  }

  .hero__content {
    max-width: none;
  }

  .purpose__column,
  .help__panel,
  .content-wrap,
  .card__body {
    padding: 1.25rem;
  }

  .sponsors__grid {
    grid-template-columns: 1fr;
  }

  .front-page-entry .sponsor-gallery .wp-block-image {
    flex-basis: 100%;
  }
}
