/* ==========================================================================
   PATH: /css/components/cta.css
   TYPE: stylesheet
   STATUS: shared
   USES: shared call-to-action band system

   PURPOSE
   This file owns the reusable CTA band used across core pages, support pages,
   and city-page families.

   KEEP IN THIS FILE
   - .cta-band shell and layered background treatment
   - .cta-grid layout for CTA content and actions
   - .cta-label
   - CTA heading and supporting text inside the CTA band
   - .cta-actions layout
   - responsive behavior specific to the CTA band

   DO NOT PUT IN THIS FILE
   - generic .container or .section primitives
   - shared band-shell systems unrelated to CTA
   - button base styles for .solid-btn / .outline-btn / .text-link
   - page-only CTA overrides
   - footer or hero styling

   OWNERSHIP NOTES
   - If a selector styles the shared CTA band module, it belongs here.
   - Button primitives remain owned by the shared button/system layer.
   - CTA-specific heading/text rules stay scoped to .cta-grid to avoid
     leaking into unrelated sections.
   ========================================================================== */

/* CTA BAND
   Shared full-width CTA section with image + overlay treatment.
   -------------------------------------------------------------------------- */

.cta-band {
  position: relative;
  overflow: hidden;
  min-height: 320px;
  color: var(--text-light);
  background: var(--cta-bg);
}

.cta-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(135deg, var(--lightbox-close-bg), rgba(35, 29, 24, 0.62)),
    url("../assets/footer/Footer-2.jpg");
  background-size: cover;
  background-position: center center;
}

.cta-band::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    var(--glass-dark) 0%,
    var(--glass-dark-soft) 42%,
    var(--glass-dark-mid) 100%
  );
}

.cta-band .container {
  max-width: var(--content-wide);
}

/* CTA GRID
   Owns the CTA module’s internal content/action layout only.
   -------------------------------------------------------------------------- */

.cta-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) auto;
  align-items: center;
  gap: 2rem;
  padding: 3.25rem 0;
}

.cta-label {
  display: inline-block;
  margin-bottom: 0.9rem;
  color: var(--gold-light);
  font-family: var(--font-body);
  font-size: var(--type-label-size);
  font-weight: 600;
  letter-spacing: var(--type-label-tracking);
  line-height: 1;
  text-transform: uppercase;
}

.cta-grid h2 {
  margin: 0 0 0.85rem;
  max-width: 30ch;
  color: var(--text-light);
  font-family: var(--font-display);
  font-size: var(--type-heading-xl);
  font-weight: 500;
  line-height: 0.98;
}

.cta-grid p {
  max-width: var(--measure-copy-wide);
  color: var(--muted-light);
  font-size: var(--type-body-size);
  line-height: var(--type-body-line-loose);
}

/* CTA ACTIONS
   Layout wrapper for CTA buttons/links. Button styling itself is shared
   elsewhere and should not be duplicated here.
   -------------------------------------------------------------------------- */

.cta-actions {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 1rem;
}

.cta-actions .solid-btn,
.cta-actions .outline-btn,
.cta-actions .text-link {
  flex: 0 0 auto;
}

/* CTA SOCIAL
   Small inline social-link row used inside the shared CTA band.
   Keeps icon sizing, spacing, and link treatment scoped to the CTA module.
   -------------------------------------------------------------------------- */

.cta-social {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem 1rem;
  margin-top: 1.1rem;
}

.cta-social-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 32px;
  color: var(--text-light);
  font-family: var(--font-body);
  font-size: var(--type-link-size);
  font-weight: 600;
  letter-spacing: var(--type-link-tracking);
  line-height: 1;
  text-transform: uppercase;
}

.cta-social-link svg {
  width: 0.95rem;
  height: 0.95rem;
  flex: 0 0 0.95rem;
  color: var(--gold);
}

.cta-social-link:hover,
.cta-social-link:focus-visible {
  color: var(--gold-light);
}

/* RESPONSIVE
   Collapse CTA content to a single column on tablet and below.
   -------------------------------------------------------------------------- */

@media (max-width: 979px) {
  .cta-grid {
    grid-template-columns: 1fr;
    align-items: start;
    gap: 1.5rem;
    padding: 3rem 0;
  }

  .cta-grid h2 {
    max-width: 16ch;
  }
}

@media (max-width: 767px) {
  .cta-band {
    min-height: 0;
  }

  .cta-grid {
    gap: 1.25rem;
    padding: 2.5rem 0 3rem;
  }

  .cta-label {
    font-size: var(--type-label-size-sm);
  }

  .cta-grid h2 {
    font-size: var(--type-heading-lg);
    max-width: 100%;
  }

  .cta-grid p {
    font-size: var(--type-body-size-sm);
  }

  .cta-actions {
    flex-wrap: wrap;
  }
}