/**
 * French Choir of Washington — Design enhancements (v1)
 * Drupal 11 / Bootstrap 5-compatible override layer.
 * Add after the parent theme styles. Review selectors in browser DevTools.
 * The .fcw-* classes are optional, purpose-built classes for newly arranged blocks.
 */

:root {
  --fcw-ink: #203047;
  --fcw-navy: #233d60;
  --fcw-navy-hover: #182d48;
  --fcw-accent: #a77e48;
  --fcw-paper: #fbfaf7;
  --fcw-surface: #ffffff;
  --fcw-subtle: #f1f3f5;
  --fcw-border: #e0e4e8;
  --fcw-muted: #5c6978;
  --fcw-radius: 12px;
  --fcw-shadow: 0 12px 30px rgba(27, 42, 62, .08);
  --fcw-content-width: 1160px;
}

/* Global typography and readability */
body {
  color: var(--fcw-ink);
  background: var(--fcw-paper);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  color: var(--fcw-ink);
  line-height: 1.2;
  letter-spacing: -.025em;
  font-weight: 650;
}
h1 { font-size: clamp(2.2rem, 4.5vw, 3.8rem); }
h2 { font-size: clamp(1.75rem, 3vw, 2.55rem); }
h3 { font-size: clamp(1.3rem, 2vw, 1.75rem); }
p { margin-bottom: 1.15rem; }
a { text-underline-offset: .2em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--fcw-accent); outline-offset: 3px; }

/* Constrain main content, but keep the site's existing Bootstrap grid intact. */
main .container, .region-content .container {
  max-width: var(--fcw-content-width);
}

/* Bootstrap buttons (only where those classes are used) */
.btn {
  border-radius: 7px;
  font-weight: 600;
  padding: .7rem 1.25rem;
  transition: background-color .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.btn-primary {
  --bs-btn-bg: var(--fcw-navy);
  --bs-btn-border-color: var(--fcw-navy);
  --bs-btn-hover-bg: var(--fcw-navy-hover);
  --bs-btn-hover-border-color: var(--fcw-navy-hover);
  --bs-btn-active-bg: var(--fcw-navy-hover);
  --bs-btn-active-border-color: var(--fcw-navy-hover);
  background-color: var(--fcw-navy);
  border-color: var(--fcw-navy);
}
.btn-primary:hover, .btn-primary:focus-visible {
  background-color: var(--fcw-navy-hover);
  border-color: var(--fcw-navy-hover);
}

/* Navigation: modest improvements, avoiding layout assumptions. */
.navbar .nav-link {
  font-weight: 600;
  letter-spacing: .01em;
  padding-block: .8rem;
}
.navbar .nav-link:hover,
.navbar .nav-link:focus-visible {
  color: var(--fcw-accent);
}

/* Homepage teasers, when rendered as Drupal's standard teaser view mode. */
.path-frontpage .node--view-mode-teaser {
  background: var(--fcw-surface);
  border: 1px solid var(--fcw-border);
  border-radius: var(--fcw-radius);
  box-shadow: var(--fcw-shadow);
  padding: clamp(1.1rem, 2.6vw, 2rem);
  margin-block: 1.5rem;
  overflow: hidden;
}
.path-frontpage .node--view-mode-teaser img {
  max-width: 100%;
  height: auto;
  border-radius: 9px;
}
.path-frontpage .node--view-mode-teaser h2 {
  margin-bottom: 1rem;
}
.path-frontpage .node--view-mode-teaser .node__links {
  margin-top: 1.25rem;
}

/* Optional: hero block wrapper you can add with Drupal block classes / Twig. */
.fcw-hero {
  position: relative;
  background: var(--fcw-navy);
  color: #fff;
  border-radius: 16px;
  padding: clamp(2rem, 6vw, 5rem);
  overflow: hidden;
  margin-block: 1.5rem 3rem;
}
.fcw-hero h1, .fcw-hero h2 { color: #fff; max-width: 16ch; }
.fcw-hero p { color: #f1f3f6; max-width: 62ch; font-size: clamp(1rem, 1.4vw, 1.2rem); }
.fcw-hero .btn-light { color: var(--fcw-navy); font-weight: 700; }
.fcw-hero .btn-outline-light { border-width: 2px; }

/* Optional: a two-card recruitment block. */
.fcw-join-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1rem, 2.5vw, 1.75rem);
  margin-block: 2rem 3rem;
}
.fcw-join-card {
  background: #fff;
  border: 1px solid var(--fcw-border);
  border-radius: var(--fcw-radius);
  padding: clamp(1.4rem, 3vw, 2.2rem);
  box-shadow: var(--fcw-shadow);
}
.fcw-join-card h3 { margin-bottom: .65rem; }
.fcw-join-card p { color: var(--fcw-muted); }

/* Optional: compact, consistent concert/news cards. */
.fcw-news-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
  margin-block: 1.5rem 3rem;
}
.fcw-news-card {
  background: #fff;
  border: 1px solid var(--fcw-border);
  border-radius: var(--fcw-radius);
  overflow: hidden;
}
.fcw-news-card img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}
.fcw-news-card__body { padding: 1.5rem; }
.fcw-news-card__meta { color: var(--fcw-muted); font-size: .875rem; }

/* Optional newsletter wrapper: add .fcw-newsletter to the block in Drupal. */
.fcw-newsletter {
  background: var(--fcw-subtle);
  border-radius: var(--fcw-radius);
  padding: clamp(1.5rem, 4vw, 3rem);
  margin-block: 3rem;
}
.fcw-newsletter input[type="email"],
.fcw-newsletter input[type="text"] {
  width: 100%;
  max-width: 100%;
  min-height: 44px;
  border: 1px solid #bfc8d2;
  border-radius: 6px;
  padding: .6rem .8rem;
  background: #fff;
}
.fcw-newsletter input[type="checkbox"] { accent-color: var(--fcw-navy); }

/* Mobile spacing and card stacking */
@media (max-width: 767.98px) {
  .fcw-join-grid, .fcw-news-grid { grid-template-columns: 1fr; }
  .fcw-hero { border-radius: 10px; padding: 2rem 1.5rem; }
  .path-frontpage .node--view-mode-teaser { padding: 1.25rem; }
  .navbar .nav-link { padding-block: .65rem; }
}

@media (min-width: 768px) and (max-width: 991.98px) {
  .fcw-news-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (prefers-reduced-motion: reduce) {
  .btn { transition: none; }
}
