/* Graylock site – base and layout (no Wix) */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; overflow-x: hidden; max-width: 100vw; }
body { font-family: 'Assistant', -apple-system, BlinkMacSystemFont, sans-serif; color: #12222e; line-height: 1.5; }

/* Page content wrapper (main + subpages) */
.page-content,
#main-content { max-width: 100%; margin: 0 auto; padding: 1.5rem 1rem; }
@media (min-width: 769px) { .page-content, #main-content { padding: 2rem; max-width: 980px; } }

/* Sections */
section { padding-top: clamp(1.25rem, 3vw, 2.5rem); padding-bottom: clamp(1.25rem, 3vw, 2.5rem); }
section:first-of-type { padding-top: 0; }

/* Typography */
h1, h2, h3, h4 { margin: 0 0 0.5em; font-weight: 600; color: #12222e; }
h1 { font-size: clamp(1.75rem, 4vw, 2.5rem); }
h2 { font-size: clamp(1.35rem, 3vw, 1.75rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }
a { color: #1a5f7a; text-decoration: none; }
a:hover { text-decoration: underline; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.35rem; padding: 0.5rem 1rem; border-radius: 6px; font-weight: 600; font-size: 1rem; text-decoration: none; border: none; cursor: pointer; white-space: nowrap; }
.btn-primary { background: #2B475C; color: #fff; }
.btn-primary:hover { background: #4743C5; color: #fff; text-decoration: none; }
.btn-secondary { background: #E9E6EB; color: #12222e; }
.btn-secondary:hover { background: #4743C5; color: #fff; text-decoration: none; }

/* Footer (matches footer-bar; can override if needed) */
.site-footer { margin: 0; padding: 0.25rem 1rem 0.5rem; text-align: center; font-size: 12px; }
.site-footer nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.5rem 1rem; margin-bottom: 0.2rem; }
.site-footer nav a { color: inherit; }
.site-footer .footer-phone { font-weight: bold; font-size: 18px; margin-top: 0.25rem; }

/* ========== Home page ========== */
.home .hero { text-align: center; padding-bottom: 2rem; position: relative; }
.home .hero h1 { margin-bottom: 0.5em; }
.home .hero .hero-subtext { font-size: 1.125rem; color: #12222e; margin-bottom: 1rem; }
.home .hero .btn { margin-top: 0.5rem; }

/* Hero with background video – full viewport width (break out of main max-width) */
.hero-with-video {
  min-height: 55vh;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 2rem 1rem;
  overflow: hidden;
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  position: relative;
}
@media (min-width: 769px) { .hero-with-video { min-height: 643px; padding: 3rem 2rem; } }
.hero-video-wrap { position: absolute; inset: 0; z-index: 0; width: 100%; }
.hero-video-wrap .hero-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  min-width: 100%;
  min-height: 100%;
}
/* Hero overlay: center-left (all text and button on the left side of the video) */
.hero-with-video .hero-content {
  position: relative;
  z-index: 1;
  max-width: 640px;
  margin: 0;
  margin-right: auto;
  text-align: left;
}
.hero-with-video .hero-content h1 { text-shadow: 0 2px 4px rgba(0,0,0,0.2); }
.hero-with-video .hero-content .hero-subtext { color: #12222e; }

/* Benefits strip (4 items: No Extra Fees, etc.) */
.benefits-strip { background: #f2f2f2; border-radius: 8px; padding: 1.25rem; margin: 2rem auto; max-width: min(980px, calc(100% - 2rem)); }
.benefits-strip .benefits-grid { display: grid; grid-template-columns: 1fr; gap: 0.75rem; align-items: center; max-width: 100%; }
@media (min-width: 769px) { .benefits-strip .benefits-grid { grid-template-columns: repeat(4, 1fr); gap: 1rem; } }
.benefit-item { display: flex; flex-direction: row; align-items: center; text-align: left; gap: 0.5rem; }
.benefit-item .benefit-icon { width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; color: #2B475C; }
.benefit-item .benefit-icon svg { width: 100%; height: 100%; }
.benefit-item .benefit-text { font-size: 1.1rem; font-weight: 500; color: #12222e; margin: 0; }
@media (min-width: 769px) { .benefit-item { flex-direction: column; text-align: center; } }

/* Steps (Apply Online / We Review / Get Funded) */
.steps { display: grid; grid-template-columns: 1fr; gap: 2rem; margin: 2rem 0; }
@media (min-width: 769px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.step { text-align: center; }
.step .step-icon { width: 48px; height: 48px; margin: 0 auto 0.5rem; display: flex; align-items: center; justify-content: center; color: #2B475C; }
.step .step-icon svg { width: 100%; height: 100%; }
.step h4 { margin-bottom: 0.35em; }
.step p { font-size: 0.95rem; margin-bottom: 0.5em; }

/* What we fund (intro + list) */
.what-we-fund-intro { margin-bottom: 1rem; }
.what-we-fund ul { margin: 0 0 1em 1.25em; padding: 0; }
.what-we-fund li { margin-bottom: 0.35em; }

/* Contact CTA */
.contact-cta { text-align: center; }
.contact-cta .btn { margin: 0.5rem; }
.contact-cta .footer-phone { margin-top: 0.5rem; }
.cta-section { text-align: center; }
.cta-section .btn { margin: 0.5rem 0; }
