/* Mountainview Mortgage — Base + Typography */
/* Note: Google Fonts loaded via <link> in head.html */

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

html { font-size: 16px; scroll-behavior: smooth; overflow-x: hidden; }

/* Respect users who ask for reduced motion: stop the auto-scrolling marquees,
   entrance animations, smooth-scroll, and any transitions/animations. WCAG
   2.3.3 / vestibular safety. Marquees also get a static, readable layout. */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  /* Let the marquee tracks sit still and wrap instead of scrolling off-screen. */
  .lenders__track, .team-marquee__track { animation: none !important; transform: none !important; }
  .team-marquee, .lenders__marquee { overflow-x: auto; }
}

body {
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--color-text-body);
  background: var(--color-white);
  line-height: 1.6;
}

img { max-width: 100%; height: auto; display: block; }
iframe { max-width: 100%; }
#ghl-embed-container iframe, #ghl-form-container iframe, #ghl-newsletter-container iframe, #ghl-reviews-container iframe { max-width: 100%; width: 100%; border: 0; }
a { color: var(--color-primary); text-decoration: none; }
a:hover { text-decoration: underline; }

/* Headings */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-headline);
  font-weight: 800;
  line-height: 1.15;
  color: var(--color-text-body);
}

/* On dark sections, headings + body text invert */
.section--dark h1,
.section--dark h2,
.section--dark h3,
.section--dark p,
.section--dark li { color: var(--color-white); }

/* Utility */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

/* Responsive vertical rhythm: scales 48px→80px with viewport so thin sections
   don't sit in a fixed 80px void on smaller screens. Use .section--compact for
   inherently short bands (stat strips, single-paragraph sections). */
.section { padding: clamp(48px, 6vw, 80px) 0; }
.section--compact { padding: clamp(32px, 4vw, 48px) 0; }
.section--dark { background: var(--gradient-hero); }
.section--navy { background: var(--color-navy-900); }
.section--off-white { background: var(--color-off-white); }

/* Buttons */
.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.9375rem;
  border-radius: var(--radius-sm);
  padding: var(--space-3) var(--space-6);
  border: 2px solid transparent;
  cursor: pointer;
  transition: var(--transition-base);
  text-decoration: none;
}

.btn--primary {
  background: var(--color-cta-primary);
  color: var(--color-white);
  border-color: var(--color-cta-primary);
}
.btn--primary:hover {
  background: transparent;
  color: var(--color-cta-primary);
  text-decoration: none;
}

.btn--secondary {
  background: var(--color-cta-secondary);
  color: var(--color-white);
  border-color: var(--color-cta-secondary);
}
.btn--secondary:hover {
  background: transparent;
  color: var(--color-cta-secondary);
  text-decoration: none;
}

.btn--outline-white {
  background: transparent;
  color: var(--color-white);
  border-color: var(--color-white);
}
.btn--outline-white:hover {
  background: var(--color-white);
  color: var(--color-navy-900);
  text-decoration: none;
}

.btn--outline-dark {
  background: transparent;
  color: var(--color-text-body);
  border-color: var(--color-text-body);
}
.btn--outline-dark:hover {
  background: var(--color-text-body);
  color: var(--color-white);
  text-decoration: none;
}

/* Eyebrow label */
.eyebrow {
  display: block;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.8125rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-brand-red);
  margin-bottom: var(--space-4);
}

/* Section headings */
.section-heading {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  margin-bottom: var(--space-4);
}

@media (max-width: 768px) {
  .section { padding: var(--space-12) 0; }
}

/* ── CTA action rows — booking CTAs are stripped when no calendar is
     configured, so every action row pairs the Book button with an
     always-available action (Apply / Get in touch). ── */
.cta-actions {
  display: flex;
  gap: var(--space-3);
  justify-content: center;
  flex-wrap: wrap;
}
.cta-actions--left { justify-content: flex-start; }
