/* ===== LoanSure — Home page styles ===== */
:root {
  --green-900: #0a6b2f;
  --green-700: #12a04a;
  --green-500: #34c759;
  --green-400: #57d465;
  --lime: #a6e05a;
  --gold: #ffc93c;
  --gold-deep: #f5a623;
  --ink: #14321f;
  --ink-soft: #4a6152;
  --bg: #f4faf4;
  --card: #ffffff;
  --line: #e4efe6;
  --shadow: 0 18px 45px rgba(18, 122, 58, .12);
  --grad: linear-gradient(135deg, #8fe04a 0%, #21b34a 55%, #0a8c3e 100%);
  --grad-soft: linear-gradient(135deg, #eafbe6 0%, #d6f5d3 100%);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Prompt', 'Kanit', system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 { font-family: 'Kanit', sans-serif; line-height: 1.25; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
.wrap { width: min(1160px, 92%); margin: 0 auto; }

/* ---- Buttons ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 14px 30px; border-radius: 999px; font-family: 'Kanit', sans-serif;
  font-weight: 600; font-size: 1rem; cursor: pointer; border: none;
  transition: transform .18s ease, box-shadow .18s ease; white-space: nowrap;
}
.btn-sm { padding: 10px 22px; font-size: .95rem; }
.btn-primary { background: var(--grad); color: #fff; box-shadow: 0 12px 26px rgba(18, 160, 74, .38); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 32px rgba(18, 160, 74, .48); }
.btn-ghost { background: #fff; color: var(--green-900); border: 2px solid var(--line); }
.btn-ghost:hover { border-color: var(--green-500); transform: translateY(-2px); }
.btn-light { background: #fff; color: var(--green-900); }
.btn-light:hover { transform: translateY(-2px); }
.btn-ghost-light { background: rgba(255,255,255,.14); color: #fff; border: 2px solid rgba(255,255,255,.55); }
.btn-ghost-light:hover { background: rgba(255,255,255,.24); }

/* ---- Header ---- */
.site-header {
  position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.9);
  backdrop-filter: blur(12px); border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 24px; height: 72px; }
.brand { display: flex; align-items: center; gap: 10px; }
.brand-logo { width: 38px; height: 38px; border-radius: 10px; }
.brand-name { font-family: 'Kanit', sans-serif; font-weight: 700; font-size: 1.35rem; color: var(--green-900); }
.nav { display: flex; gap: 6px; margin-left: auto; }
.nav a { padding: 8px 14px; border-radius: 999px; font-weight: 500; font-size: .98rem; color: var(--ink-soft); transition: .15s; }
.nav a:hover { color: var(--green-900); background: var(--grad-soft); }
.nav a.active { color: var(--green-900); font-weight: 600; }
.nav-cta { }
.menu-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 8px; }
.menu-toggle span { width: 24px; height: 2.5px; background: var(--green-900); border-radius: 2px; }
.mobile-nav { display: none; flex-direction: column; padding: 8px 4% 16px; gap: 4px; background: #fff; border-bottom: 1px solid var(--line); }
.mobile-nav a { padding: 12px 14px; border-radius: 12px; font-weight: 500; color: var(--ink-soft); }
.mobile-nav a:hover { background: var(--grad-soft); color: var(--green-900); }
body.nav-open .mobile-nav { display: flex; }

/* ---- Hero ---- */
.hero { position: relative; overflow: hidden; background: var(--grad-soft); padding: 70px 0 90px; }
.hero-bg-blob {
  position: absolute; top: -180px; right: -160px; width: 620px; height: 620px;
  background: radial-gradient(circle at 30% 30%, rgba(87,212,101,.55), rgba(87,212,101,0) 70%);
  border-radius: 50%; z-index: 0;
}
.hero-inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: center; }
.badge {
  display: inline-block; background: #fff; color: var(--green-900); font-weight: 600;
  font-size: .86rem; padding: 8px 16px; border-radius: 999px; box-shadow: var(--shadow);
  margin-bottom: 22px;
}
.hero h1 { font-size: clamp(2.6rem, 6vw, 4.2rem); font-weight: 800; color: var(--green-900); letter-spacing: -.5px; }
.hero h1 .hl {
  background: linear-gradient(120deg, #12a04a, #0a6b2f);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-sub { font-size: 1.12rem; color: var(--ink-soft); margin: 20px 0 26px; max-width: 30em; }
.hero-stats { display: flex; gap: 28px; flex-wrap: wrap; margin-bottom: 30px; }
.hero-stats div { display: flex; flex-direction: column; }
.hero-stats strong { font-family: 'Kanit', sans-serif; font-size: 1.3rem; color: var(--green-900); }
.hero-stats span { font-size: .85rem; color: var(--ink-soft); }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-visual { display: flex; justify-content: center; }
.hero-phone {
  width: min(340px, 82%); border-radius: 36px;
  filter: drop-shadow(0 30px 55px rgba(10, 107, 47, .28));
}

/* ---- Trust bar ---- */
.trustbar { background: var(--green-900); color: #fff; }
.trust-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 14px; padding: 20px 0; }
.trust-item { display: flex; align-items: center; gap: 9px; font-size: .95rem; font-weight: 500; }
.ti-ico { font-size: 1.2rem; }

/* ---- Sections ---- */
.section { padding: 80px 0; }
.section-alt { background: var(--card); }
.section-head { text-align: center; max-width: 46em; margin: 0 auto 52px; }
.eyebrow {
  display: inline-block; font-family: 'Kanit', sans-serif; font-weight: 600; letter-spacing: .5px;
  color: var(--green-700); background: var(--grad-soft); padding: 6px 16px; border-radius: 999px;
  font-size: .85rem; margin-bottom: 16px;
}
.section-head h2 { font-size: clamp(1.9rem, 4vw, 2.7rem); font-weight: 700; color: var(--ink); }
.section-head p { color: var(--ink-soft); margin-top: 12px; font-size: 1.05rem; }

/* ---- Steps ---- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.step-card {
  background: var(--card); border: 1px solid var(--line); border-radius: 24px; padding: 34px 28px;
  box-shadow: var(--shadow); position: relative; transition: transform .2s;
}
.step-card:hover { transform: translateY(-6px); }
.step-num {
  width: 52px; height: 52px; border-radius: 16px; background: var(--grad); color: #fff;
  font-family: 'Kanit', sans-serif; font-weight: 700; font-size: 1.5rem;
  display: grid; place-items: center; margin-bottom: 18px; box-shadow: 0 10px 22px rgba(18,160,74,.35);
}
.step-card h3 { font-size: 1.25rem; color: var(--green-900); margin-bottom: 10px; }
.step-card p { color: var(--ink-soft); font-size: .98rem; }

/* ---- Features ---- */
.feature-grid { display: flex; flex-direction: column; gap: 48px; }
.feature {
  display: grid; grid-template-columns: 300px 1fr; gap: 44px; align-items: center;
  background: var(--grad-soft); border-radius: 30px; padding: 30px 40px 30px 30px;
}
.feature.reverse { grid-template-columns: 1fr 300px; }
.feature.reverse img { order: 2; }
.feature img {
  width: 100%; border-radius: 22px;
  filter: drop-shadow(0 20px 40px rgba(10,107,47,.22));
}
.feature-text h3 { font-size: 1.5rem; color: var(--green-900); margin-bottom: 12px; }
.feature-text p { color: var(--ink-soft); font-size: 1.05rem; }

/* ---- Product ---- */
.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.product-card {
  background: var(--card); border: 1px solid var(--line); border-radius: 22px; padding: 30px 24px;
  text-align: center; box-shadow: var(--shadow); transition: transform .2s;
}
.product-card:hover { transform: translateY(-6px); }
.pc-ico {
  width: 62px; height: 62px; border-radius: 18px; background: var(--grad-soft);
  display: grid; place-items: center; font-size: 1.8rem; margin: 0 auto 16px;
}
.product-card h3 { font-size: 1.05rem; color: var(--ink-soft); font-weight: 500; }
.pc-value { font-family: 'Kanit', sans-serif; font-weight: 700; font-size: 1.5rem; color: var(--green-900); margin: 6px 0 10px; }
.pc-desc { font-size: .9rem; color: var(--ink-soft); }

/* ---- Calc ---- */
.calc-wrap { display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; }
.calc-copy h2 { font-size: clamp(1.8rem, 3.5vw, 2.5rem); color: var(--ink); margin: 14px 0 16px; }
.calc-copy > p { color: var(--ink-soft); font-size: 1.05rem; }
.calc-notes { list-style: none; margin: 20px 0; }
.calc-notes li { padding: 10px 0 10px 30px; position: relative; color: var(--ink-soft); border-bottom: 1px dashed var(--line); }
.calc-notes li::before { content: "✓"; position: absolute; left: 0; color: var(--green-500); font-weight: 700; }
.calc-disclaimer { font-size: .88rem; color: var(--ink-soft); background: #fff8e6; border-left: 4px solid var(--gold); padding: 12px 16px; border-radius: 0 12px 12px 0; }
.calc-card {
  background: var(--grad); color: #fff; border-radius: 28px; padding: 34px 32px;
  box-shadow: 0 22px 50px rgba(10,107,47,.35);
}
.calc-card h3 { font-size: 1.3rem; margin-bottom: 20px; }
.calc-row { display: flex; justify-content: space-between; align-items: center; padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,.22); }
.calc-row span { opacity: .9; }
.calc-row b { font-family: 'Kanit', sans-serif; font-size: 1.15rem; }
.calc-row.total { border-bottom: none; margin-top: 8px; padding-top: 18px; }
.calc-row.total span { font-weight: 600; opacity: 1; }
.calc-row.total b { font-size: 1.7rem; color: var(--gold); }

/* ---- Security ---- */
.sec-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.sec-card { background: var(--card); border: 1px solid var(--line); border-radius: 24px; padding: 34px 28px; box-shadow: var(--shadow); }
.sec-ico { font-size: 2.2rem; margin-bottom: 14px; }
.sec-card h3 { font-size: 1.2rem; color: var(--green-900); margin-bottom: 10px; }
.sec-card p { color: var(--ink-soft); font-size: .98rem; }

/* ---- Apply CTA ---- */
.apply { background: var(--grad); color: #fff; padding: 76px 0; text-align: center; position: relative; overflow: hidden; }
.apply::before, .apply::after {
  content: ""; position: absolute; border-radius: 50%; background: rgba(255,255,255,.12);
}
.apply::before { width: 320px; height: 320px; top: -140px; left: -80px; }
.apply::after { width: 260px; height: 260px; bottom: -130px; right: -60px; }
.apply-inner { position: relative; z-index: 1; }
.apply h2 { font-size: clamp(1.9rem, 4vw, 2.8rem); font-weight: 700; }
.apply p { max-width: 40em; margin: 14px auto 28px; font-size: 1.08rem; opacity: .95; }
.apply-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ---- Warning ---- */
.warning { background: #fff8e6; }
.warning-inner { display: flex; gap: 16px; align-items: flex-start; padding: 26px 0; }
.warn-ico { font-size: 1.6rem; flex-shrink: 0; }
.warning-inner p { font-size: .92rem; color: #7a5a12; }
.warning-inner strong { color: #6b4e0a; }

/* ---- Footer ---- */
.site-footer { background: #0c2c18; color: #cfe6d6; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1.4fr 1.4fr; gap: 36px; padding: 60px 0 40px; }
.footer-brand .brand-name { color: #fff; }
.footer-brand p { margin-top: 14px; font-size: .92rem; color: #9dbfa8; max-width: 26em; }
.footer-col h4 { color: #fff; font-size: 1.05rem; margin-bottom: 16px; }
.footer-col a, .footer-col p { display: block; color: #9dbfa8; font-size: .92rem; margin-bottom: 9px; transition: color .15s; }
.footer-col a:hover { color: var(--green-400); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 20px 0; font-size: .85rem; color: #7fa189; text-align: center; }

/* ---- Responsive ---- */
@media (max-width: 900px) {
  .nav, .nav-cta { display: none; }
  .menu-toggle { display: flex; margin-left: auto; }
  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .hero-copy { order: 2; }
  .hero-stats, .hero-actions { justify-content: center; }
  .hero-bg-blob { display: none; }
  .steps, .product-grid, .sec-grid { grid-template-columns: 1fr; }
  .feature, .feature.reverse { grid-template-columns: 1fr; text-align: center; }
  .feature.reverse img { order: 0; }
  .feature img { max-width: 260px; margin: 0 auto; }
  .calc-wrap { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .product-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .trust-inner { justify-content: center; }
}
