/* ══════════════════════════════════════════════════
   VALOR MEDICAL REVIEWS — Layout
   Containers, sections, grids, cards, utilities
   ══════════════════════════════════════════════════ */

/* ── Containers ── */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-5);
}

.container--wide {
  max-width: var(--container-wide);
}

.container--narrow {
  max-width: var(--container-narrow);
}

/* ── Section System ── */
.section {
  padding: var(--section-pad);
}

.section--md {
  padding: var(--space-10) var(--space-5);
}

.section--flush {
  padding: 0;
}

.section--hero {
  min-height: 80vh;
  display: flex;
  align-items: center;
  padding: 120px var(--space-5) 100px;
  background-size: cover;
  background-position: center;
  position: relative;
}

.section--hero::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.55);
  z-index: 1;
}

.section--hero .container {
  position: relative;
  z-index: 2;
}

.section--hero h1 {
  color: var(--color-white);
  font-size: var(--text-hero);
  line-height: var(--leading-tight);
  margin-bottom: var(--space-5);
  max-width: 650px;
}

.hero-underline {
  width: 520px;
  max-width: 80%;
  height: 4px;
  background: var(--color-burgundy);
  margin: var(--space-5) 0 var(--space-8) 0;
  border-radius: 2px;
}

.hero-subtext {
  font-size: var(--text-xl);
  line-height: var(--leading-loose);
  color: rgba(255, 255, 255, 0.9);
  max-width: 620px;
  margin-bottom: var(--space-10);
}

/* ── Footer CTA (shared across all pages) ── */
.section--footer-cta {
  background: var(--color-navy) url('../images/Final+-+Home+Page+New.webp') center/cover no-repeat;
  position: relative;
  overflow: hidden;
  padding: 100px var(--space-5);
  text-align: center;
}

.section--footer-cta::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  pointer-events: none;
  z-index: 0;
}

.section--footer-cta .container {
  position: relative;
  z-index: 1;
  max-width: var(--container-narrow);
}

.section--footer-cta h2 {
  color: var(--color-white);
  font-size: var(--text-cta);
  line-height: var(--leading-heading);
  margin-bottom: var(--space-6);
}

.footer-cta-subtext {
  font-size: var(--text-lg);
  line-height: var(--leading-loose);
  color: rgba(255, 255, 255, 0.88);
  margin-bottom: var(--space-10);
}

.section--dark {
  background: #000;
  color: var(--color-white);
}

.section--navy {
  background: var(--color-navy);
  color: var(--color-white);
}

.section--surface {
  background: var(--color-surface);
}

.section--white {
  background: var(--color-white);
}

/* ── Section Header ── */
.section-header {
  text-align: center;
  margin-bottom: var(--space-12);
}

.section-header .section-title {
  margin-bottom: var(--space-4);
}

.section-subtitle {
  text-align: center;
  font-size: var(--text-base);
  color: var(--color-body);
  max-width: var(--container-narrow);
  margin: 0 auto;
  line-height: var(--leading-loose);
}

/* ── Grid System ── */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-8);
}

.grid-2--asymmetric {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: var(--space-8);
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-8);
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-8);
}

/* ── Card Component ── */
.card {
  background: var(--color-white);
  border: var(--border-default);
  padding: var(--space-8);
  border-radius: var(--radius-lg);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.card--accent {
  position: relative;
  overflow: hidden;
}

.card--accent::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--color-burgundy);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

/* ── Spacing Utilities ── */
.mt-0  { margin-top: 0; }
.mt-4  { margin-top: var(--space-4); }
.mt-8  { margin-top: var(--space-8); }
.mt-12 { margin-top: var(--space-12); }
.mb-0  { margin-bottom: 0; }
.mb-4  { margin-bottom: var(--space-4); }
.mb-8  { margin-bottom: var(--space-8); }
.mb-12 { margin-bottom: var(--space-12); }
.mx-auto { margin-left: auto; margin-right: auto; }

/* ── Responsive Grid Collapse ── */
@media (max-width: 900px) {
  .grid-3 {
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }

  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .grid-2,
  .grid-2--asymmetric {
    grid-template-columns: 1fr;
  }

  .grid-4 {
    grid-template-columns: 1fr;
  }

  .section--hero {
    min-height: auto;
    padding: var(--space-20) var(--space-5) var(--space-16);
  }

  .section--hero h1 {
    font-size: clamp(1.75rem, 5vw, 2.75rem);
  }

  .hero-underline {
    width: 300px;
  }

  .hero-subtext {
    font-size: var(--text-base);
  }

  .section {
    padding: var(--space-16) var(--space-5);
  }

  .section--footer-cta {
    padding: var(--space-16) var(--space-5);
  }

  .section--footer-cta h2 {
    font-size: clamp(1.75rem, 4vw, 2.875rem);
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 var(--space-4);
  }
}
