/* Halal Auto Financing: shared styles */

@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("../fonts/manrope-latin.woff2") format("woff2");
}
@font-face {
  font-family: "Amiri";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/amiri-italic-latin.woff2") format("woff2");
}

:root {
  --green: #0F4D3A;
  --green-dark: #0B3B2D;
  --green-hover: #0A3A2C;
  --mint: #E6F0EB;
  --mint-text: #D7E6DF;
  --sand: #F6F4EE;
  --ink: #17211C;
  --text: #3D4A43;
  --muted: #56635C;
  --line: #E6EAE7;
  --field: #D5DDD8;
  --gold: #8A6A20;
  --gold-light: #D4AF5A;
  --error: #B42318;
  --radius: 20px;
  --wrap: 1180px;
  --pad: clamp(20px, 5vw, 32px);
  --section: clamp(64px, 10vw, 104px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0;
  font-family: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: #FFFFFF;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--green); }
a:hover { color: var(--green-hover); }
h1, h2, h3, p { margin: 0; }
button { font: inherit; }
:focus-visible { outline: 3px solid var(--gold-light); outline-offset: 3px; border-radius: 6px; }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--green); color: #fff; padding: 10px 16px; border-radius: 10px; text-decoration: none; font-weight: 700; }
.skip:focus { top: 12px; color: #fff; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding-left: var(--pad); padding-right: var(--pad); }
.section { padding-top: var(--section); padding-bottom: var(--section); }
.bg-sand { background: var(--sand); }
.bg-green { background: var(--green); color: #fff; }

.ico { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.ico-sm { width: 16px; height: 16px; }
.ico-md { width: 18px; height: 18px; }

.eyebrow { font-size: 13px; font-weight: 800; letter-spacing: 1.6px; text-transform: uppercase; color: var(--gold); }
.bg-green .eyebrow { color: var(--gold-light); }
.h1 { font-size: clamp(38px, 7.2vw, 64px); line-height: 1.04; font-weight: 800; letter-spacing: -0.035em; color: var(--green); text-wrap: balance; }
.h2 { font-size: clamp(30px, 5vw, 44px); line-height: 1.1; font-weight: 800; letter-spacing: -0.03em; color: var(--green); text-wrap: balance; }
.bg-green .h2 { color: #fff; }
.lede { font-size: clamp(17px, 2.2vw, 20px); line-height: 1.55; color: var(--text); }
.body-lg { font-size: clamp(16px, 2vw, 18px); line-height: 1.6; color: var(--text); }
.section-head { display: flex; flex-direction: column; gap: 14px; max-width: 760px; margin-bottom: clamp(32px, 5vw, 44px); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 56px; padding: 16px 28px; border-radius: 999px; border: 0;
  font-size: 17px; font-weight: 700; text-decoration: none; cursor: pointer;
  transition: background-color .15s ease, transform .15s ease, box-shadow .15s ease;
}
.btn:active { transform: scale(.98); }
.btn-primary { background: var(--green); color: #fff; }
.btn-primary:hover { background: var(--green-hover); color: #fff; }
.btn-light { background: #fff; color: var(--green); }
.btn-light:hover { background: var(--mint); color: var(--green); }
.btn-outline { background: #fff; color: var(--green); border: 1px solid var(--field); }
.btn-outline:hover { border-color: var(--green); color: var(--green); }
.btn-lg { min-height: 60px; font-size: 18px; padding: 18px 32px; }
.btn-block { width: 100%; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 40; background: rgba(255,255,255,.96); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; min-width: 0; }
.brand img { width: 28px; height: 35px; }
.brand span { font-size: 18px; font-weight: 700; color: var(--green); letter-spacing: -0.02em; white-space: nowrap; }
.nav { display: flex; align-items: center; gap: 26px; font-size: 15px; font-weight: 600; }
.nav a { text-decoration: none; color: var(--text); }
.nav a:hover { color: var(--green); }
.nav .nav-phone { display: inline-flex; align-items: center; gap: 8px; color: var(--green); }
.nav .btn { min-height: 46px; padding: 12px 20px; font-size: 15px; color: #fff; }
.header-mobile { display: none; align-items: center; gap: 8px; }
.icon-btn { width: 46px; height: 46px; display: inline-flex; align-items: center; justify-content: center; border-radius: 999px; border: 1px solid var(--field); background: #fff; color: var(--green); text-decoration: none; }
.header-mobile .btn { min-height: 46px; padding: 10px 18px; font-size: 15px; }
@media (max-width: 920px) {
  .nav { display: none; }
  .header-mobile { display: flex; }
}
@media (max-width: 400px) {
  .brand span { font-size: 16px; }
  .header-mobile .btn { padding: 10px 14px; }
}

/* Hero */
.hero { background: var(--sand); padding-top: clamp(36px, 7vw, 80px); padding-bottom: clamp(48px, 7vw, 64px); }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(32px, 5vw, 64px); align-items: center; }
.hero-copy { display: flex; flex-direction: column; gap: 22px; min-width: 0; }
.hero-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 18px; }
.hero-meta { font-size: 15px; color: var(--muted); }
.hero-media { position: relative; min-width: 0; }
.hero-photo { border-radius: 24px; overflow: hidden; box-shadow: 0 24px 60px -24px rgba(15,77,58,.35); aspect-ratio: 4 / 3; }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; }
.verse {
  position: relative; margin: -56px 48px 0 -28px;
  background: var(--green); color: #fff; border-radius: 20px; padding: 22px 24px;
  display: flex; flex-direction: column; gap: 10px; box-shadow: 0 18px 40px -18px rgba(11,59,45,.6);
}
.verse-text { margin: 0; font-family: "Amiri", Georgia, serif; font-style: italic; font-size: clamp(22px, 2.6vw, 26px); line-height: 1.3; }
.verse-src { display: inline; color: var(--mint-text); font-size: 14px; font-weight: 600; line-height: 1.5; }
.verse-src .ico { display: inline-block; vertical-align: -3px; margin-left: 4px; }
.verse-src:hover { color: #fff; }
.verse-note { font-size: 15px; line-height: 1.55; color: var(--mint-text); border-top: 1px solid rgba(255,255,255,.18); padding-top: 10px; }
.trust { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-top: clamp(36px, 5vw, 52px); padding-top: 28px; border-top: 1px solid #E3E0D6; }
.trust div { display: flex; align-items: center; gap: 12px; font-size: 15px; font-weight: 700; color: var(--ink); line-height: 1.35; }
.trust .ico { color: var(--green); }
@media (max-width: 920px) {
  .hero-grid { grid-template-columns: 1fr; }
  .verse { margin: -40px 16px 0; }
  .trust { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 520px) {
  .hero-cta .btn { width: 100%; }
  .hero-meta { width: 100%; text-align: center; }
  .verse { margin: -32px 10px 0; padding: 20px; }
  .trust { grid-template-columns: 1fr; gap: 14px; }
}

/* Cards */
.grid { display: grid; gap: 20px; }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1000px) { .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .grid-3, .grid-4 { grid-template-columns: 1fr; } .grid { gap: 14px; } }
.card { border-radius: var(--radius); padding: clamp(24px, 3vw, 30px); display: flex; flex-direction: column; gap: 12px; }
.card-line { border: 1px solid var(--line); background: #fff; }
.card-white { background: #fff; }
.card-sand { background: var(--sand); }
.card-green { background: var(--green); color: #fff; }
.card h3 { font-size: clamp(19px, 2.2vw, 22px); line-height: 1.25; font-weight: 800; letter-spacing: -0.01em; }
.card p { font-size: 16px; line-height: 1.6; color: var(--text); }
.card-green p { color: var(--mint-text); }
.card-icon { width: 48px; height: 48px; border-radius: 14px; background: var(--mint); color: var(--green); display: flex; align-items: center; justify-content: center; }
.card-num { font-size: 13px; font-weight: 800; color: var(--gold); letter-spacing: 1px; }
.card-green .card-num { color: var(--gold-light); }
.card-white h3 { color: var(--green); }
.card .source { margin-top: auto; padding-top: 6px; display: block; font-size: 15px; font-weight: 700; }
.card .source .ico { display: inline-block; vertical-align: -3px; margin-left: 4px; }
.card-green .btn { margin-top: auto; align-self: flex-start; }
.step-icon { color: var(--green); }

/* Person */
.person { display: grid; grid-template-columns: 300px 1fr; gap: clamp(28px, 5vw, 56px); align-items: center; }
.person-photo { border-radius: 24px; overflow: hidden; aspect-ratio: 4 / 5; background: #E3E8E4; }
.person-photo img { width: 100%; height: 100%; object-fit: cover; }
.person-copy { display: flex; flex-direction: column; gap: 16px; }
.person-links { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 6px; }
@media (max-width: 760px) {
  .person { grid-template-columns: 1fr; }
  .person-photo { max-width: 300px; }
}

/* FAQ */
.faq { max-width: 860px; margin: 0 auto; }
.faq-list { display: flex; flex-direction: column; gap: 12px; }
.faq details { background: #fff; border-radius: 16px; border: 1px solid transparent; }
.faq details[open] { border-color: var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 22px; font-size: clamp(17px, 2vw, 19px); font-weight: 700; line-height: 1.35; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .ico { color: var(--green); transition: transform .2s ease; }
.faq details[open] summary .ico { transform: rotate(180deg); }
.faq details p { padding: 0 22px 22px; font-size: 16px; line-height: 1.65; color: var(--text); }

/* Final CTA */
.final { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 64px); align-items: center; }
.final-copy { display: flex; flex-direction: column; gap: 20px; align-items: flex-start; }
.final-copy p { font-size: 18px; color: var(--mint-text); }
.final-photo { border-radius: 24px; overflow: hidden; aspect-ratio: 920 / 790; }
.final-photo img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 860px) {
  .final { grid-template-columns: 1fr; }
  .final-copy .btn { width: 100%; }
}

/* Footer */
.site-footer { background: var(--green-dark); color: #C9D8D0; font-size: 14px; line-height: 1.75; padding: 44px 0 calc(44px + env(safe-area-inset-bottom)); }
.site-footer a { color: #fff; }
.footer-grid { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 28px; }
.footer-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; color: #fff; font-weight: 700; font-size: 16px; }
.footer-brand img { width: 24px; height: 30px; }
.footer-small { margin-top: 26px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.12); font-size: 13px; color: #9FB5AA; }

/* WhatsApp + mobile bar */
.wa-float { position: fixed; right: 22px; bottom: 22px; z-index: 30; display: inline-flex; align-items: center; gap: 10px; background: #fff; color: var(--green); border: 1px solid var(--field); border-radius: 999px; padding: 12px 18px 12px 14px; font-weight: 700; font-size: 15px; text-decoration: none; box-shadow: 0 10px 30px -10px rgba(0,0,0,.25); }
.wa-float:hover { border-color: var(--green); }
.mobile-bar { display: none; }
@media (max-width: 760px) {
  .wa-float { display: none; }
  .mobile-bar {
    display: flex; gap: 10px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 35;
    padding: 10px 14px calc(10px + env(safe-area-inset-bottom)); background: rgba(255,255,255,.97);
    border-top: 1px solid var(--line); transform: translateY(110%); transition: transform .25s ease;
  }
  .mobile-bar.show { transform: none; }
  .mobile-bar .btn { min-height: 52px; font-size: 16px; padding: 12px 16px; }
  .mobile-bar .btn-primary { flex: 1; }
  body.has-bar .site-footer { padding-bottom: calc(110px + env(safe-area-inset-bottom)); }
}
[hidden] { display: none !important; }

/* Legal pages */
.legal { max-width: 760px; margin: 0 auto; }
.legal h1 { margin-bottom: 8px; }
.legal h2 { font-size: 22px; font-weight: 800; color: var(--green); margin: 36px 0 10px; }
.legal p, .legal li { font-size: 16px; line-height: 1.7; color: var(--text); }
.legal p + p { margin-top: 12px; }
.legal ul { padding-left: 22px; margin: 10px 0; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
