/* ==========================================================================
   West Baltimore Help — westbaltimorehelp.org
   Static rebuild. No frameworks, no build step.
   ========================================================================== */

/* --- Fonts ---------------------------------------------------------------- */

@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('/assets/fonts/montserrat-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
                 U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF,
                 U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('/assets/fonts/montserrat-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
                 U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122,
                 U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* --- Tokens --------------------------------------------------------------- */

:root {
  --font: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto,
          'Helvetica Neue', Arial, sans-serif;

  --color-text: #000;
  --color-link: #046bd2;
  --color-link-hover: #045cb4;
  --color-bg: #fff;
  --color-btn-bg: #000;
  --color-btn-text: #fff;

  --container: 1140px;
  --gutter: 10px;
  --stack-gap: 20px;
  --para-space: 28px;

  --radius-img: 15px;
  --radius-btn: 3px;
}

/* --- Reset ---------------------------------------------------------------- */

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

html {
  font-size: 100%;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.65;
}

img {
  max-width: 100%;
  height: auto;
  display: inline-block;
  vertical-align: middle;
}

a {
  color: var(--color-link);
  text-decoration: none;
}

a:hover,
a:focus { color: var(--color-link-hover); }

p { margin: 0 0 var(--para-space); }

:focus-visible {
  outline: 3px solid var(--color-link);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  padding: 12px 20px;
  background: #000;
  color: #fff;
  z-index: 100;
}

.skip-link:focus {
  left: 0;
  color: #fff;
}

/* --- Layout --------------------------------------------------------------- */

.section {
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.section--links {
  padding: 0 30px;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding: var(--gutter) 0;
}

.stack {
  display: flex;
  flex-direction: column;
  gap: var(--stack-gap);
}

.section--links .container {
  padding: 30px 0;
}

/* --- Intro ---------------------------------------------------------------- */

.site-title {
  margin: 0;
  font-size: 62px;
  font-weight: 800;
  line-height: 1.3;
  text-align: center;
  color: #000;
}

.tagline {
  text-align: center;
  font-weight: 500;
}

.tagline strong { font-weight: 700; }

/* --- Gallery -------------------------------------------------------------- */

.gallery {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 0;
}

.gallery__col {
  display: flex;
  flex-direction: column;
  gap: var(--stack-gap);
  padding: var(--gutter);
  text-align: center;
}

.gallery__col--side {
  width: 30%;
  justify-content: center;
}

.gallery__col--main {
  width: 40%;
}

.gallery__col img { align-self: center; }

.img-half { width: 50%; }
.img-wide { width: 90%; }
.rounded  { border-radius: var(--radius-img); }

.caption {
  text-align: center;
  font-weight: 500;
  color: #000;
}

/* --- Buttons -------------------------------------------------------------- */

.links {
  display: flex;
  flex-direction: row;
  gap: 0;
}

.links__col {
  display: flex;
  flex-direction: column;
  gap: var(--stack-gap);
  padding: var(--gutter);
  width: 40%;
  text-align: center;
}

.links__col--sm { width: 30%; }

.btn {
  display: inline-block;
  align-self: center;
  padding: 12px 24px;
  background: var(--color-btn-bg);
  color: var(--color-btn-text);
  border: 1px solid var(--color-btn-bg);
  border-radius: var(--radius-btn);
  font-family: var(--font);
  font-size: 15px;
  font-weight: 700;
  line-height: 1;
  text-align: center;
  white-space: nowrap;
}

.btn:hover,
.btn:focus {
  background: #fff;
  color: #000;
  border-color: #000;
}

/* Elementor's "grow" hover animation, reproduced. */
.zoom {
  transition: transform .3s;
  will-change: transform;
}

.zoom:hover,
.zoom:focus {
  transform: scale(1.1);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .zoom { transition: none; }
  .zoom:hover,
  .zoom:focus { transform: none; }
}

/* --- Footer --------------------------------------------------------------- */

.site-footer {
  padding: 28px var(--gutter) 0;
}

.site-footer .container {
  padding: 0;
}

.site-footer p {
  text-align: center;
  font-weight: 400;
  color: #000;
}

/* --- Scroll to top -------------------------------------------------------- */

.to-top {
  position: fixed;
  right: 30px;
  bottom: 30px;
  width: 31.5px;
  height: 31.5px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #111;
  border: 0;
  border-radius: 2px;
  color: #fff;
  cursor: pointer;
  z-index: 50;
}

.to-top[hidden] { display: none; }

.to-top svg {
  width: 15px;
  height: 9px;
  fill: currentColor;
  transform: rotate(180deg);
}

/* --- Responsive ----------------------------------------------------------- */

/* Matches Astra's responsive root font size, so text scales as before. */
@media (max-width: 921px) {
  html { font-size: 91.2%; }
}

/* Six buttons no longer fit on one line below the desktop container width. */
@media (max-width: 1024px) {
  .links { flex-wrap: wrap; justify-content: center; }
  .links__col,
  .links__col--sm { width: 33.333%; }
}

@media (max-width: 767px) {
  .site-title { font-size: 29px; }

  .gallery__col,
  .gallery__col--side,
  .gallery__col--main { width: 100%; }

  .img-half { width: 50%; }
  .img-wide { width: 90%; }

  .links__col,
  .links__col--sm { width: 100%; }

  .section--links { padding: 0 30px; }
}
