/* Kheir Group – landing page styles */
/* Archivo (SIL Open Font License), self-hosted: no third-party requests */
@font-face { font-family: "Archivo"; font-style: normal; font-weight: 100 900; font-display: swap; src: url("../fonts/archivo-latin-wght-normal.woff2") format("woff2"); }
@font-face { font-family: "Archivo"; font-style: italic; font-weight: 100 900; font-display: swap; src: url("../fonts/archivo-latin-wght-italic.woff2") format("woff2"); }

:root {
  --orange: #F47721;
  --orange-dark: #B4500A;
  --orange-tint: #FFF6EF;
  --orange-line: #F3D9C4;
  --ink: #1C1C1E;
  --ink-2: #4A4A50;
  --ink-3: #6B6B72;
  --line: #ECE7E2;
  --chip: #F6F4F2;
  --field: #CFC8C1;
  --error: #B42318;
  --radius: 12px;
  --max: 1200px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  font-family: Archivo, "Segoe UI", system-ui, -apple-system, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: #fff;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--ink); }
a:hover { color: var(--orange-dark); }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; }
h1, h2, h3 { margin: 0; line-height: 1.1; }
p { margin: 0; }
ul, ol { list-style: none; margin: 0; padding: 0; }

.container { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 6px;
}
.skip-link:focus { top: 12px; color: #fff; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: inherit; font-weight: 700; text-decoration: none; border: 0; cursor: pointer;
  padding: 14px 24px; min-height: 48px; border-radius: 8px;
  transition: background-color .15s ease, transform .15s ease;
}
.btn:active { transform: translateY(1px); }
.btn-orange { background: var(--orange); color: var(--ink); }
.btn-orange:hover { background: #e2681a; color: var(--ink); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #000; color: #fff; }
.btn-white { background: #fff; color: var(--ink); }
.btn-white:hover { background: #f3f0ed; color: var(--ink); }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.97); border-bottom: 1px solid var(--line);
  backdrop-filter: saturate(1.4) blur(6px);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 12px 24px;
  padding-top: 10px; padding-bottom: 10px;
}
.brand img { height: 52px; width: auto; }
.header-actions { display: flex; align-items: center; gap: 10px 22px; }
.main-nav { display: flex; gap: 22px; font-weight: 500; font-size: 16px; }
.main-nav a { text-decoration: none; padding: 10px 0; }
.header-phone { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; font-weight: 700; padding: 10px 0; white-space: nowrap; }
.header-cta { padding: 12px 20px; min-height: 46px; border-radius: 6px; white-space: nowrap; }

/* Hero */
.hero { background: var(--orange-tint); border-bottom: 1px solid #F3E2D3; padding: 64px 0 72px; }
.hero-grid { display: flex; flex-wrap: wrap; gap: 48px 56px; align-items: flex-start; }
.hero-copy { flex: 1 1 500px; min-width: 0; padding-top: 12px; }
.badge {
  display: inline-flex; align-items: center; gap: 14px; max-width: 100%;
  background: #fff; border: 1px solid var(--orange-line); border-radius: 999px;
  padding: 8px 22px 8px 8px; font-size: 18px; font-weight: 600; line-height: 1.3; margin-bottom: 22px;
}
.badge strong {
  background: var(--orange); color: var(--ink); border-radius: 999px;
  padding: 6px 18px; font-weight: 900; font-size: 26px; line-height: 1.1; white-space: nowrap; flex: 0 0 auto;
}
.hero h1 { font-weight: 800; font-size: clamp(36px, 5vw, 60px); line-height: 1.04; letter-spacing: -1.2px; }
.hero-lead { margin-top: 22px; max-width: 560px; font-size: 20px; color: var(--ink-2); }
.checks { margin-top: 30px; display: flex; flex-direction: column; gap: 14px; }
.checks li { display: flex; gap: 12px; align-items: flex-start; }
.checks svg { flex: 0 0 auto; margin-top: 1px; }

/* Quote card */
.quote-card {
  flex: 1 1 400px; min-width: 0; max-width: 480px;
  background: #fff; border: 1px solid var(--line); border-radius: 14px;
  box-shadow: 0 18px 50px rgba(120, 60, 10, .14); overflow: hidden;
}
.quote-card::before { content: ""; display: block; height: 6px; background: var(--orange); }
.quote-form { padding: 30px 30px 28px; display: flex; flex-direction: column; gap: 16px; }
.quote-form h2 { font-weight: 800; font-size: 28px; line-height: 1.15; }
.form-sub { margin-top: 6px; color: var(--ink-2); font-size: 15.5px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-weight: 600; font-size: 15px; }
.field .hint { font-weight: 400; color: var(--ink-3); font-size: 14px; }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-weight: 400; color: var(--ink);
  padding: 13px 14px; border: 1.5px solid var(--field); border-radius: 6px;
  background: #fff; outline: none; transition: border-color .15s ease;
}
.field textarea { resize: vertical; min-height: 96px; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--ink); }
.field input[type="file"] { padding: 11px 12px; border-style: dashed; background: #FCFAF8; cursor: pointer; font-size: 15px; }
.field-note { font-size: 13.5px; color: var(--ink-2); }
.field-note.is-error { color: var(--error); font-weight: 600; font-size: 14px; }
.hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.submit-btn { font-size: 18px; font-weight: 800; min-height: 54px; width: 100%; }
.submit-btn[disabled] { opacity: .7; cursor: progress; }
.form-error {
  display: none; background: #FEF3F2; border: 1px solid #FECDCA; color: var(--error);
  border-radius: 8px; padding: 12px 14px; font-size: 15px; font-weight: 500;
}
.form-error.is-visible { display: block; }
.form-success { display: none; padding: 48px 32px; flex-direction: column; align-items: center; text-align: center; gap: 14px; }
.form-success.is-visible { display: flex; }
.success-icon { width: 64px; height: 64px; border-radius: 50%; background: #FFF0E4; display: flex; align-items: center; justify-content: center; }
.form-success h2 { font-weight: 800; font-size: 28px; }
.form-success p { color: var(--ink-2); max-width: 340px; }
.form-success .big-phone { margin-top: 6px; font-weight: 700; font-size: 20px; }
.link-btn { font: inherit; font-weight: 600; background: none; border: 0; color: var(--ink-2); text-decoration: underline; padding: 12px; min-height: 44px; cursor: pointer; }

/* Partners */
.partners { padding: 56px 0; border-bottom: 1px solid var(--line); }
.partners h2 { text-align: center; font-size: clamp(28px, 3.4vw, 36px); font-weight: 800; letter-spacing: -.5px; margin-bottom: 32px; }
.partner-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 16px; }
.partner-grid li { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 14px 10px; }
.partner-logo { height: 72px; display: flex; align-items: center; justify-content: center; }
.partner-logo img { max-height: 68px; max-width: 160px; width: auto; }
.partner-name { font-weight: 600; font-size: 15px; }

/* Sections */
.section { padding: 88px 0; }
.section-head { max-width: 680px; margin-bottom: 44px; }
.section-title { font-weight: 800; font-size: clamp(32px, 4vw, 44px); line-height: 1.08; letter-spacing: -.8px; }
.section-head p { margin-top: 12px; color: var(--ink-2); font-size: 18px; }

.service-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 18px; }
.service-grid li { border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; display: flex; gap: 18px; align-items: flex-start; }
.step-no { flex: 0 0 auto; width: 44px; height: 44px; border-radius: 50%; background: #FFF0E4; color: var(--orange-dark); display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 18px; }
.service-grid h3 { font-weight: 700; font-size: 20px; line-height: 1.25; margin-bottom: 4px; }
.service-grid p { color: var(--ink-2); font-size: 16px; }
.apps { margin-top: 44px; }
.apps h3 { font-weight: 700; font-size: 20px; margin-bottom: 16px; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chips li { background: var(--chip); border-radius: 999px; padding: 9px 18px; font-weight: 500; font-size: 16px; }

/* Proof */
.proof { background: var(--ink); color: #fff; padding: 80px 0; }
.proof .section-title { color: #fff; margin-bottom: 40px; font-size: clamp(30px, 3.6vw, 40px); }
.stats { margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 28px 36px; }
.stats div { border-top: 3px solid var(--orange); padding-top: 18px; }
.stats dt { font-weight: 800; font-style: italic; font-size: 54px; line-height: 1; color: var(--orange); }
.stats dd { margin: 10px 0 0; color: #E4E1DE; font-size: 16px; }
.proof-note { margin-top: 40px; color: #B9B5B1; font-size: 16px; max-width: 820px; }

/* History */
.history-grid { display: flex; flex-wrap: wrap; gap: 40px 72px; }
.history-copy { flex: 1 1 380px; }
.history-copy .section-title { margin-bottom: 16px; }
.history-copy > p { color: var(--ink-2); font-size: 18px; margin-bottom: 16px; }
.callout { display: flex; gap: 20px; align-items: center; background: var(--orange-tint); border: 1px solid var(--orange-line); border-radius: var(--radius); padding: 20px 24px; margin-top: 8px; }
.callout strong { flex: 0 0 auto; font-weight: 800; font-style: italic; font-size: 48px; line-height: 1; color: var(--orange-dark); }
.callout p { font-size: 18px; }
.timeline { flex: 1 1 460px; display: flex; flex-direction: column; }
.timeline li { display: flex; gap: 22px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.timeline .year { flex: 0 0 150px; font-weight: 800; font-style: italic; font-size: 26px; line-height: 1.2; color: var(--orange-dark); }
.timeline .text { font-size: 17px; padding-top: 3px; }

/* Contact */
.contact { padding: 0 0 88px; }
.contact-box { background: var(--orange); border-radius: 18px; padding: 52px; display: flex; flex-wrap: wrap; gap: 40px 56px; align-items: center; justify-content: space-between; }
.contact-copy { flex: 1 1 420px; }
.contact-copy h2 { font-weight: 800; font-size: clamp(30px, 3.6vw, 42px); line-height: 1.08; letter-spacing: -.6px; margin-bottom: 12px; }
.contact-copy p { font-size: 18px; max-width: 480px; margin-bottom: 26px; }
.contact-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.contact-card { flex: 0 1 380px; font-style: normal; background: #fff; border-radius: var(--radius); padding: 26px 28px; display: flex; flex-direction: column; gap: 14px; font-size: 16px; }
.contact-card .label { color: var(--ink-3); font-size: 14px; }
.contact-card a, .contact-card .value { font-weight: 600; }
.socials { display: flex; gap: 10px; margin-top: 8px; }
.social { width: 44px; height: 44px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; text-decoration: none; background: var(--ink); }
.social svg { fill: #fff; }
.social:hover { background: var(--orange-dark); }
.social.light { background: var(--chip); }
.social.light svg { fill: var(--ink); }
.social.light:hover { background: #ebe6e1; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 28px 0; font-size: 14.5px; color: var(--ink-2); }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.footer-inner img { height: 40px; width: auto; }
.footer-right { display: flex; align-items: center; gap: 16px; }

/* Floating WhatsApp (mobile) */
.wa-float {
  position: fixed; right: 16px; bottom: 16px; z-index: 60;
  width: 56px; height: 56px; border-radius: 50%; background: #25D366;
  display: none; align-items: center; justify-content: center;
  box-shadow: 0 8px 24px rgba(0,0,0,.2);
}
.wa-float svg { fill: #fff; }

/* Responsive */
@media (max-width: 900px) {
  .main-nav { display: none; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .brand img { height: 42px; }
  .header-phone span { display: none; }
  .header-cta { padding: 10px 14px; font-size: 15px; }
  .hero { padding: 36px 0 48px; }
  .badge { font-size: 14.5px; border-radius: 18px; padding: 8px 14px 8px 8px; }
  .badge strong { font-size: 21px; }
  .hero-lead { font-size: 18px; }
  .quote-form { padding: 24px 20px; }
  .section { padding: 64px 0; }
  .contact-box { padding: 32px 22px; }
  .timeline .year { flex-basis: 96px; font-size: 21px; }
  .callout { flex-direction: column; align-items: flex-start; }
  .wa-float { display: flex; }
}

/* Simple pages (thank you, 404) */
.footer-socials { margin-top: 0; }
.simple-page { max-width: 640px; text-align: center; }
.simple-page .success-icon { margin: 0 auto 18px; }
.simple-page p { margin: 16px 0 24px; color: var(--ink-2); font-size: 18px; }
