/* ==========================================================================
   components.css — Page-specific layout and component styles
   Replicates joinhclnow.com visual design, full-width single column
   ========================================================================== */

/* --------------------------------------------------------------------------
   Main Section
   -------------------------------------------------------------------------- */
.section-main {
  padding: var(--section-pad-v) var(--section-pad-h);
  margin-top: 0;
  margin-bottom: 100px;
  background-color: var(--white);
}

/* Centered max-width wrapper */
.page-inner {
  max-width: var(--max-width);
  margin-inline: auto;
}

/* 90% width row, centered */
.content-row {
  width: var(--row-width);
  margin-inline: auto;
  padding: 15px 0;
}

/* Single full-width content column */
.content-col {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

/* --------------------------------------------------------------------------
   Text Blocks
   -------------------------------------------------------------------------- */

/* Shared base for all text blocks */
.text-block {
  margin-top: 0;
  margin-bottom: 0;
  padding: 0;
  font-family: var(--font-text);
  line-height: 1.3em;
}

.text-center { text-align: center; }
.text-left   { text-align: left; }

/* Override h1/h2 browser defaults — sizes are set by the block class */
.text-block h1,
.text-block h2 {
  font-family: var(--font-text);
  line-height: 1.3em;
  margin: 0;
  padding: 0;
}

/* --------------------------------------------------------------------------
   Heading block (program title + subtitle)
   Font: Open Sans, 27px, weight 500
   -------------------------------------------------------------------------- */
.text-block--heading h1,
.text-block--heading h2 {
  font-size: var(--size-heading);
  font-weight: 500;
}

/* --------------------------------------------------------------------------
   Sub-heading blocks
   Font: Open Sans, 23px, weight 400
   -------------------------------------------------------------------------- */
.text-block--sub h1,
.text-block--sub h2 {
  font-size: var(--size-sub-heading);
  font-weight: 400;
}

/* --------------------------------------------------------------------------
   Spacing between content blocks
   -------------------------------------------------------------------------- */
.text-block + .text-block,
.text-block + .images-block,
.images-block + .text-block,
.images-block + .cta-block,
.text-block + .cta-block {
  margin-top: 24px;
}

/* --------------------------------------------------------------------------
   Images Block
   -------------------------------------------------------------------------- */
.images-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  margin-top: 24px;
}

.image-wrap {
  padding: 10px;
  text-align: center;
}

.image-wrap img {
  max-width: 100%;
  height: auto;
  box-shadow: none;
  display: inline-block;
}

/* --------------------------------------------------------------------------
   CTA Button Block
   -------------------------------------------------------------------------- */
.cta-block {
  text-align: center;
  padding: 30px 0 10px;
}

.btn-cta {
  display: inline-block;
  padding: 18px 48px;
  background-color: var(--primary);
  color: var(--white);
  font-family: var(--font-text);
  font-size: 20px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  text-decoration: none;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transition: background-color 0.2s ease, transform 0.1s ease, box-shadow 0.2s ease;
}

.btn-cta:hover {
  background-color: #2aab2a;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
  text-decoration: none;
  color: var(--white);
}

.btn-cta:active {
  transform: translateY(1px);
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.footer-dark {
  background-color: var(--footer-bg);
  color: var(--white);
  padding: 20px 0;
  text-align: center;
}

.footer-inner {
  max-width: var(--max-width);
  margin-inline: auto;
  padding: 15px 10px;
}

.footer-dark p {
  font-family: var(--font-headline);
  font-size: var(--size-footer);
  line-height: 1.5em;
  color: var(--white);
  max-width: none;
}

.footer-dark p + p {
  margin-top: 20px;
}

.footer-links a {
  color: var(--white);
  text-decoration: none;
}

.footer-links a:hover {
  text-decoration: underline;
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media screen and (max-width: 480px) {
  .text-block--heading h1,
  .text-block--heading h2 {
    font-size: var(--size-heading); /* stays 27px per original */
  }

  .text-block--sub h1,
  .text-block--sub h2 {
    font-size: var(--size-sub-heading); /* stays 23px per original */
  }

  .footer-dark p {
    font-size: var(--size-footer-mobile);
  }

  .section-main {
    margin-bottom: 40px;
  }

  .btn-cta {
    width: 100%;
    padding: 16px 24px;
    font-size: 18px;
  }
}
