/* @import rules MUST come before any style declarations — the spec
   ignores @import that appears after a rule. Per-site / catalog
   sections register their CSS up here. */

@import url('sections/homepage_hero.css');
@import url('sections/newsletter_signup.css');
@import url('sections/about_slideshow.css');
@import url('sections/latest_news.css');
@import url('sections/upcoming_events.css');

/* Built-in section styles. Each block is scoped under .section-<type>
   so adding or removing a section type is contained. */

/* ─── per-instance content width ────────────────────────────────────
   The admin's per-section "Content width" picker writes one of three
   modifier classes onto a section's outer element. Each constrains the
   inner content column via .section-inner. Sections that don't wrap
   content in a .section-inner (banner; any custom section that emits
   a different chrome) are unaffected — those should ship their own
   width handling if they need this knob. */
.section.width-full   > .section-inner { max-width: none;   }
.section.width-wide   > .section-inner { max-width: 1140px; }
.section.width-narrow > .section-inner { max-width:  760px; }


/* ─── heading ───────────────────────────────────────────────────── */

.section-heading h1,
.section-heading h2,
.section-heading h3 {
  margin: 0;
}

.section-heading.align-center { text-align: center; }
.section-heading.align-right  { text-align: right; }

/* ─── hero ──────────────────────────────────────────────────────── */

.section-hero {
  background: var(--color-surface);
  background-size: cover;
  background-position: center;
  text-align: center;
  /* padding intentionally unset — hero is a core section, so it picks
     up the default .section.section--core padding from base.css. */
}

.section-hero .hero-eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: var(--font-sm);
  color: var(--color-muted);
  margin: 0 0 var(--space-sm);
}

.section-hero h1 {
  margin: 0 0 var(--space-md);
}

.section-hero .hero-subtitle {
  font-size: var(--font-lg);
  color: var(--color-muted);
  margin: 0 0 var(--space-md);
}

.section-hero .hero-body {
  max-width: 60ch;
  margin: 0 auto var(--space-lg);
}

.section-hero .hero-cta {
  display: inline-block;
  background: var(--color-primary);
  color: var(--color-primary-fg);
  padding: var(--space-sm) var(--space-lg);
  border-radius: var(--radius);
  font-weight: 600;
  text-decoration: none;
}

/* ─── text ──────────────────────────────────────────────────────── */

.section-text .section-inner {
  max-width: 70ch;
  line-height: var(--line-loose);
}

.section-text p { margin: 0 0 var(--space-md); }

/* ─── image ─────────────────────────────────────────────────────── */

.section-image figure {
  margin: 0;
}

.section-image img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
}

.section-image figcaption {
  font-size: var(--font-sm);
  color: var(--color-muted);
  text-align: center;
  margin-top: var(--space-sm);
}

/* ─── article ───────────────────────────────────────────────────── */

.section-article .article-inner {
  display: grid;
  gap: var(--space-lg);
  align-items: center;
}

.section-article.layout-image-left  .article-inner { grid-template-columns: 1fr 1fr; }
.section-article.layout-image-right .article-inner { grid-template-columns: 1fr 1fr; }
.section-article.layout-image-right .article-image { order: 2; }
.section-article.layout-image-top   .article-inner { grid-template-columns: 1fr; }

.section-article img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
}

.section-article h2 { margin: 0 0 var(--space-md); }

@media (max-width: 720px) {
  .section-article .article-inner { grid-template-columns: 1fr !important; }
  .section-article .article-image { order: 0 !important; }
}

/* ─── banner ────────────────────────────────────────────────────── */

.section-banner {
  background: var(--color-primary);
  color: var(--color-primary-fg);
  padding: var(--space-md);
}

.section-banner .banner-inner {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.section-banner .banner-icon {
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
}

.section-banner .banner-text {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.section-banner .banner-text strong {
  font-size: var(--font-lg);
}

.section-banner .banner-text span {
  opacity: 0.85;
  font-size: var(--font-sm);
}

.section-banner .banner-cta {
  background: rgba(255, 255, 255, 0.18);
  color: var(--color-primary-fg);
  padding: var(--space-xs) var(--space-md);
  border-radius: var(--radius);
  text-decoration: none;
  font-weight: 600;
}

.section-banner .banner-cta:hover {
  background: rgba(255, 255, 255, 0.28);
}

/* ─── info_card ─────────────────────────────────────────────────── */

.section-info-card .card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  text-align: center;
}

.section-info-card .info-icon {
  display: inline-block;
  width: 32px;
  height: 32px;
  color: var(--color-primary);
  margin-bottom: var(--space-sm);
}

.section-info-card .info-eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: var(--font-xs);
  color: var(--color-muted);
  margin: 0 0 var(--space-xs);
}

.section-info-card h3 { margin: 0 0 var(--space-sm); }
.section-info-card p  { margin: 0; }

/* ─── cta ───────────────────────────────────────────────────────── */

.section-cta {
  background: var(--color-surface);
  text-align: center;
}

.section-cta h2 { margin: 0 0 var(--space-sm); }

.section-cta p {
  color: var(--color-muted);
  margin: 0 0 var(--space-lg);
}

.section-cta .cta-button {
  display: inline-block;
  background: var(--color-primary);
  color: var(--color-primary-fg);
  padding: var(--space-sm) var(--space-lg);
  border-radius: var(--radius);
  font-weight: 600;
  text-decoration: none;
}

/* Per-site section CSS is @imported at the top of this file (CSS spec
   requires @import before any style rule). See the top of this file. */
