/* ====================================================
   Hard Money Loans Guy — Typography & Spacing v4
   Mobile-first. CSS clamp(). 360px → 1440px+
   Loaded after style-v3.css on every page.
   Brand: #111111 / #2A2A2A / #B5B5B5 / #FFF / #F7FF00
   Fonts: Anton (headings), Inter (body)
   ==================================================== */

/* ─────────────────────────────────────────────────────
   1. ROOT
   ───────────────────────────────────────────────────── */
html { font-size: 18px; }

body {
  font-size: clamp(18px, 2vw, 20px);
  line-height: 1.72;
  letter-spacing: 0.01em;
}

/* Prevent background scroll when mobile nav is open */
body:has(.nav-drawer.open) {
  overflow: hidden;
}

/* ─────────────────────────────────────────────────────
   2. PARAGRAPHS
   ───────────────────────────────────────────────────── */
p {
  font-size: clamp(18px, 2vw, 20px);
  line-height: 1.75;
}

/* ─────────────────────────────────────────────────────
   3. HEADINGS
   ───────────────────────────────────────────────────── */
h1 {
  font-size: clamp(40px, 7vw, 80px);
  line-height: 1.02;
}

/* +10% bump on all section h2s */
h2 {
  font-size: clamp(37px, 4.4vw, 57px);
  line-height: 1.04;
}

h3 {
  font-size: clamp(22px, 2.2vw, 28px);
  line-height: 1.1;
}

/* Hero pages without inline h1 override */
.hero h1,
.hero-bg h1,
.page-hero h1 {
  font-size: clamp(48px, 9vw, 96px);
  line-height: 1.0;
}

/* ─────────────────────────────────────────────────────
   4. HERO — SCANNABLE CLAIMS BLOCK
   ───────────────────────────────────────────────────── */
.hero-claims {
  margin: 26px auto 0;
  max-width: 500px;
  text-align: center;
}

.hero-claims p {
  font-size: clamp(18px, 2vw, 20px);
  line-height: 1.6;
  color: #FFFFFF;
  margin: 0 0 8px;
  font-weight: 400;
}

.hero-claims p:last-child { margin-bottom: 0; }

/* ─────────────────────────────────────────────────────
   5. LEAD / HERO SUB-PARAGRAPH (non-claims pages)
   ───────────────────────────────────────────────────── */
.lead {
  font-size: clamp(19px, 2.2vw, 23px);
  line-height: 1.68;
}

.hero-bg__content p.lead {
  font-size: clamp(19px, 2.2vw, 23px);
  line-height: 1.68;
}

.hero-bg__content > p:not(.lead):not(.hero-claims p) {
  font-size: clamp(16px, 1.4vw, 18px);
  line-height: 1.72;
  color: #B5B5B5;
}

/* ─────────────────────────────────────────────────────
   6. HERO ACTIONS — buttons below hero copy
   ───────────────────────────────────────────────────── */
.hero-actions {
  margin-top: 32px;
}

/* ─────────────────────────────────────────────────────
   7. NAVIGATION — DESKTOP
   ───────────────────────────────────────────────────── */
.nav-links {
  margin-left: 36px;
}

.nav-links a {
  font-size: clamp(14px, 1.2vw, 16px);
}

.nav-cta {
  font-size: clamp(14px, 1.2vw, 16px) !important;
}

/* ─────────────────────────────────────────────────────
   8. NAVIGATION — MOBILE (≤ 767px)
      Logo left │ Apply Now + ☰ right
      Full-screen overlay drawer
   ───────────────────────────────────────────────────── */
@media (max-width: 767px) {

  /* ── Top bar ── */
  .nav-hamburger {
    display: flex !important;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 6px;
    width: 44px;
    height: 44px;
    padding: 0;
    background: none;
    border: none;
    cursor: pointer;
    flex-shrink: 0;
    /* Sit above the full-screen drawer */
    position: relative;
    z-index: 1001;
  }

  /* Span transition for ☰ → ✕ */
  .nav-hamburger span {
    display: block;
    width: 22px;
    height: 2px;
    background: #FFFFFF;
    border-radius: 1px;
    transition: transform 0.25s ease, opacity 0.2s ease;
    transform-origin: center;
  }

  .nav-hamburger[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }
  .nav-hamburger[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
  }
  .nav-hamburger[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }

  /* Show nav-links flex row but only the CTA button */
  .nav-links {
    display: flex !important;
    flex-direction: row;
    align-items: center;
    margin-left: auto;
    margin-right: 6px;
  }

  .nav-links a:not(.nav-cta) {
    display: none !important;
  }

  .nav-cta {
    display: inline-flex !important;
    font-size: 13px !important;
    padding: 9px 14px !important;
    white-space: nowrap;
  }

  /* Nav bar sits above drawer */
  .site-nav {
    position: relative;
    z-index: 1000;
  }

  /* ── Full-screen overlay drawer ── */
  .nav-drawer {
    display: none !important;
    position: fixed !important;
    inset: 0 !important;
    background: #111111 !important;
    z-index: 998 !important;
    flex-direction: column !important;
    justify-content: center !important;
    padding: 80px 36px 60px !important;
    overflow-y: auto !important;
    /* Remove any border/shadow style-v3 may have set */
    border: none !important;
    box-shadow: none !important;
  }

  .nav-drawer.open {
    display: flex !important;
  }

  /* Large Anton links — easy thumb targets */
  .nav-drawer a {
    font-family: 'Anton', sans-serif !important;
    font-size: 38px !important;
    text-transform: uppercase !important;
    letter-spacing: 0.04em !important;
    color: #FFFFFF !important;
    text-decoration: none !important;
    display: block !important;
    padding: 18px 0 !important;
    border-bottom: 1px solid #2A2A2A !important;
    line-height: 1.0 !important;
    transition: color 0.15s !important;
  }

  .nav-drawer a:active,
  .nav-drawer a:hover {
    color: #F7FF00 !important;
  }

  /* Apply Now button inside drawer */
  .nav-drawer .btn.btn-primary {
    display: block !important;
    margin-top: 36px !important;
    padding: 20px 32px !important;
    font-size: 20px !important;
    text-align: center !important;
    border-bottom: none !important;
    border-radius: 2px !important;
    letter-spacing: 0.08em !important;
  }
}

/* ─────────────────────────────────────────────────────
   9. NAV DROPDOWN (desktop only)
   ───────────────────────────────────────────────────── */
.nav-dropdown {
  position: relative;
  display: inline-block;
}

.nav-dropdown > a::after {
  content: ' ▾';
  font-size: 0.72em;
  opacity: 0.7;
}

.nav-dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  background: #111111;
  border: 1px solid #2A2A2A;
  border-radius: 4px;
  min-width: 152px;
  padding: 6px 0;
  z-index: 200;
  white-space: nowrap;
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu {
  display: block;
}

.nav-dropdown-menu a {
  display: block;
  padding: 9px 18px;
  font-size: clamp(14px, 1.1vw, 16px) !important;
  color: #B5B5B5;
  text-decoration: none;
  transition: color 0.15s;
}

.nav-dropdown-menu a:hover { color: #F7FF00; }
.nav-dropdown-menu a::after { display: none !important; }

/* ─────────────────────────────────────────────────────
   10. BUTTONS
   ───────────────────────────────────────────────────── */
.btn {
  font-size: clamp(16px, 1.2vw, 18px);
}

.btn-lg {
  font-size: clamp(17px, 1.3vw, 19px);
  padding: clamp(14px, 1.4vw, 20px) clamp(28px, 3vw, 44px);
}

.btn-sm {
  font-size: clamp(14px, 1vw, 16px);
  padding: 10px 22px;
}

/* ─────────────────────────────────────────────────────
   11. LOAN PROGRAMME CARDS
   Card grid layout handled by index.html inline style.
   ───────────────────────────────────────────────────── */
.loan-card p,
.lp-desc {
  font-size: clamp(18px, 1.8vw, 20px) !important;
  line-height: 1.75 !important;
}

.loan-card h3,
.lp-title {
  font-size: clamp(26px, 2.2vw, 30px);
  line-height: 1.1;
}

.loan-meta-label { font-size: 0.78rem; }
.loan-meta-value { font-size: 0.9rem; }

/* ─────────────────────────────────────────────────────
   12. WHY / FEATURE CARDS
   ───────────────────────────────────────────────────── */
.why-card p,
.why-item p {
  font-size: clamp(18px, 1.8vw, 20px) !important;
  line-height: 1.75 !important;
}

.why-card h3,
.why-item h3 {
  font-size: clamp(20px, 2vw, 26px);
}

/* ─────────────────────────────────────────────────────
   13. FAQ / ACCORDION
   ───────────────────────────────────────────────────── */
.faq-section-title {
  font-size: clamp(18px, 1.6vw, 20px);
}

.faq-question,
.accordion-trigger {
  font-size: clamp(18px, 1.8vw, 21px);
  line-height: 1.45;
  padding: 22px 0;
}

.faq-answer,
.accordion-body {
  font-size: clamp(18px, 1.6vw, 20px) !important;
  line-height: 1.78 !important;
  padding-bottom: 24px;
}

.faq-answer p,
.accordion-body p {
  font-size: clamp(18px, 1.6vw, 20px);
  line-height: 1.78;
  margin-bottom: 0.6rem;
}

.faq-answer li,
.accordion-body li {
  font-size: clamp(18px, 1.6vw, 20px);
  line-height: 1.75;
}

/* ─────────────────────────────────────────────────────
   14. HOW-IT-WORKS / GET FUNDED STEPS
   ───────────────────────────────────────────────────── */
.step-list li,
.hiw-detail li {
  font-size: clamp(18px, 1.6vw, 20px) !important;
  line-height: 1.75 !important;
  padding: 6px 0 6px 18px;
}

.step-item {
  padding: 48px 0;
  gap: 32px;
}

.step-item h3 { font-size: clamp(20px, 2vw, 26px); }

.step-item p,
.hiw-content p,
.hiw-detail p {
  font-size: clamp(18px, 1.6vw, 20px);
  line-height: 1.75;
}

/* ─────────────────────────────────────────────────────
   15. CTA BLOCK
   ───────────────────────────────────────────────────── */
.cta-section h2 {
  font-size: clamp(32px, 4vw, 52px);
}

.cta-section p {
  font-size: clamp(18px, 2vw, 21px);
  line-height: 1.72;
}

/* ─────────────────────────────────────────────────────
   16. ABOUT PAGE
   ───────────────────────────────────────────────────── */
.about-body p {
  font-size: clamp(18px, 2vw, 21px);
  line-height: 1.82;
}

.credential-item .cred-value {
  font-size: clamp(18px, 1.6vw, 20px);
}

/* ─────────────────────────────────────────────────────
   17. FORMS
   ───────────────────────────────────────────────────── */
label {
  font-size: clamp(14px, 1vw, 16px);
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="number"],
select,
textarea {
  font-size: clamp(17px, 1.2vw, 18px);
  padding: 13px 16px;
}

/* ─────────────────────────────────────────────────────
   18. FOOTER
   ───────────────────────────────────────────────────── */
.footer-links a,
.footer-nav a {
  font-size: clamp(14px, 1vw, 15px);
}

.footer-brand p {
  font-size: clamp(13px, 1vw, 14px);
}

/* ─────────────────────────────────────────────────────
   19. SECTION SUBHEADS
   ───────────────────────────────────────────────────── */
.section-heading p {
  font-size: clamp(18px, 1.8vw, 20px);
}

/* ─────────────────────────────────────────────────────
   20. MOBILE ≤ 767px — GLOBAL FLOORS
   ───────────────────────────────────────────────────── */
@media (max-width: 767px) {
  html { font-size: 18px; }

  /* Body floor */
  body, p {
    font-size: 18px;
    line-height: 1.75;
  }

  /* Hero claims: 19px, generous line height */
  .hero-claims {
    margin: 20px auto 0;
    padding: 0 4px;
    max-width: 100%;
  }

  .hero-claims p {
    font-size: 19px;
    line-height: 1.65;
    margin-bottom: 6px;
  }

  /* Hero actions: full-width stacked, thumb-friendly */
  .hero-actions {
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important;
    align-items: stretch !important;
    margin-top: 28px !important;
    padding: 0 !important;
  }

  .hero-actions .btn {
    width: 100% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    padding: 18px 24px !important;
    font-size: 17px !important;
    min-height: 56px !important;
    box-sizing: border-box !important;
  }

  /* Section headings — +10%, 36-44px range on mobile */
  h2 {
    font-size: clamp(34px, 8.5vw, 44px);
    line-height: 1.05;
  }

  h3 {
    font-size: clamp(22px, 5.5vw, 27px);
    line-height: 1.1;
  }

  /* CTA sections */
  .cta-section h2 { font-size: clamp(28px, 7.5vw, 36px); }
  .cta-section p  { font-size: 18px; }

  /* Lead paragraphs */
  .hero-bg__content .lead,
  .hero-bg__content p.lead,
  .hero .lead,
  .lead {
    font-size: 19px;
    line-height: 1.72;
  }

  /* Global: no body text below 18px */
  .why-card p,
  .why-item p,
  .faq-answer,
  .accordion-body,
  .step-list li,
  .hiw-detail li,
  .about-body p {
    font-size: 18px !important;
    line-height: 1.75 !important;
  }

  /* Global: no CTA text below 16px */
  .btn       { font-size: 16px; }
  .btn-lg    { font-size: 17px; padding: 18px 28px; }
  .btn-sm    { font-size: 16px; padding: 12px 20px; }

  /* Section spacing — breathe on mobile */
  .section {
    padding-top: 56px !important;
    padding-bottom: 56px !important;
  }

  /* Feature/why card grids */
  .why-grid,
  .feature-grid {
    gap: 16px !important;
  }

  .why-card,
  .feature-card {
    padding: 24px 20px !important;
  }

  /* FAQ accordion touch targets */
  .faq-question,
  .accordion-trigger {
    font-size: 18px !important;
    padding: 20px 0 !important;
    min-height: 60px;
  }

  /* Inline CTAs within FAQ */
  .faq-cat-cta a,
  .faq-inline-cta a {
    font-size: 16px !important;
    padding: 14px 20px !important;
    min-height: 52px;
    display: inline-flex;
    align-items: center;
  }

  /* Process section mobile steps */
  .process-label { font-size: 1.15rem !important; }
  .process-sub   { font-size: 1rem !important; line-height: 1.7 !important; }
}

/* ─────────────────────────────────────────────────────
   21. SMALL PHONES ≤ 430px
   ───────────────────────────────────────────────────── */
@media (max-width: 430px) {
  .hero h1,
  .hero-bg h1,
  .page-hero h1 {
    font-size: clamp(38px, 9.5vw, 48px);
    line-height: 1.0;
  }

  h2 { font-size: clamp(30px, 8vw, 36px); }
  h3 { font-size: clamp(20px, 5.5vw, 24px); }

  .hero-claims p {
    font-size: 18px;
    line-height: 1.65;
  }
}

/* ─────────────────────────────────────────────────────
   22. TABLET 768px – 1023px
   ───────────────────────────────────────────────────── */
@media (min-width: 768px) and (max-width: 1023px) {
  body, p { font-size: clamp(18px, 2.2vw, 19px); }

  .lead { font-size: clamp(19px, 2.5vw, 21px); }

  h2 { font-size: clamp(32px, 4.5vw, 44px); }

  .btn-lg { padding: 17px 36px; }
}

/* ─────────────────────────────────────────────────────
   23. LARGE DESKTOP ≥ 1440px
   ───────────────────────────────────────────────────── */
@media (min-width: 1440px) {
  body, p { font-size: 20px; line-height: 1.72; }
  .lead   { font-size: 23px; line-height: 1.65; }

  .lp-desc,
  .loan-card p,
  .why-card p,
  .why-item p { font-size: 20px !important; line-height: 1.72 !important; }
}
