/*
 * VakilHub landing page styles.
 * A small, self-contained design system: tokens, layout primitives, then sections.
 */

:root {
  --navy: #0f2a4a;
  --navy-700: #163a63;
  --ink: #16202b;
  --muted: #5a6b7b;
  --gold: #c79a3a;
  --gold-soft: #f6edd6;
  --teal: #0e7c7b;
  --bg: #ffffff;
  --bg-alt: #f5f8fb;
  --line: #e4ecf3;
  --danger: #b3261e;
  --success: #1b7a43;
  --radius: 14px;
  --radius-sm: 9px;
  --shadow: 0 10px 30px rgba(15, 42, 74, 0.10);
  --shadow-lg: 0 24px 60px rgba(15, 42, 74, 0.18);
  --maxw: 1120px;
  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --serif: "Source Serif 4", Georgia, serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .5rem; color: var(--navy); }
h1 { font-family: var(--serif); font-size: clamp(2.1rem, 4.5vw, 3.4rem); font-weight: 700; }
h2 { font-family: var(--serif); font-size: clamp(1.6rem, 3vw, 2.3rem); font-weight: 600; }
p { margin: 0 0 1rem; }
a { color: var(--teal); text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.accent { color: var(--gold); }
.eyebrow {
  display: inline-block;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: .6rem;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  font: inherit;
  font-weight: 600;
  border: 0;
  cursor: pointer;
  padding: .85rem 1.5rem;
  border-radius: 999px;
  transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--gold); color: #2a1f00; box-shadow: 0 8px 20px rgba(199,154,58,.35); }
.btn-primary:hover { background: #d6a942; }
.btn-ghost { background: transparent; color: var(--navy); border: 1.5px solid var(--line); }
.btn-ghost:hover { border-color: var(--navy); }
.btn-light { background: #fff; color: var(--navy); }
.btn-sm { padding: .55rem 1.1rem; font-size: .9rem; }
.btn-lg { padding: 1rem 2rem; font-size: 1.05rem; }
.btn-block { width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,.9);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; gap: 1.5rem; height: 70px; }
.brand { display: inline-flex; align-items: center; gap: .5rem; font-size: 1.25rem; color: var(--navy); }
.brand-mark { font-size: 1.4rem; }
.brand-name { font-family: var(--serif); font-weight: 600; }
.brand-name strong { color: var(--gold); }
.brand-logo { display: block; height: 48px; width: auto; }
.brand-logo--footer { height: 56px; background: #fff; padding: 6px 10px; border-radius: 8px; }
.nav-links { display: flex; gap: 1.5rem; margin-left: auto; }
.nav-links a { color: var(--ink); font-weight: 500; font-size: .95rem; }
.nav-links a:hover { color: var(--teal); }
.nav .btn { margin-left: 0; }

/* ---------- Flash ---------- */
.flash { margin: 1rem auto; padding: .9rem 1.2rem; border-radius: var(--radius-sm); font-weight: 500; }
.flash-success { background: #e7f6ec; color: var(--success); border: 1px solid #b9e3c7; }
.flash-error { background: #fdecea; color: var(--danger); border: 1px solid #f5c6c2; }

/* ---------- Hero ---------- */
.hero {
  background:
    radial-gradient(1200px 500px at 80% -10%, rgba(199,154,58,.12), transparent 60%),
    linear-gradient(180deg, #f7fafd 0%, #ffffff 100%);
  padding: 56px 0 64px;
}
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: start; }
.hero-copy .lede { font-size: 1.15rem; color: var(--muted); max-width: 34ch; }
.hero-points { margin: 1.25rem 0 1.75rem; display: grid; gap: .4rem; }
.hero-points li { font-weight: 500; color: var(--ink); }
.hero-cta { display: flex; gap: .75rem; flex-wrap: wrap; }
.hero-trust { display: flex; gap: 2rem; margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid var(--line); }
.hero-trust div { display: flex; flex-direction: column; }
.hero-trust strong { font-size: 1.5rem; color: var(--navy); font-family: var(--serif); }
.hero-trust span { font-size: .85rem; color: var(--muted); }

/* ---------- Lead form ---------- */
.lead-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 28px;
  position: sticky;
  top: 90px;
}
.lead-card h2 { font-family: var(--font); font-size: 1.4rem; }
.lead-card-sub { color: var(--muted); font-size: .95rem; margin-bottom: 1.25rem; }
.hp-field { position: absolute; left: -9999px; top: -9999px; width: 1px; height: 1px; overflow: hidden; }
.lead-form .field { margin-bottom: .9rem; display: flex; flex-direction: column; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; }
.lead-form label { font-size: .85rem; font-weight: 600; color: var(--navy); margin-bottom: .3rem; }
.lead-form input, .lead-form select, .lead-form textarea {
  font: inherit;
  padding: .7rem .85rem;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  background: #fbfdff;
  color: var(--ink);
  transition: border-color .12s ease, box-shadow .12s ease;
}
.lead-form input:focus, .lead-form select:focus, .lead-form textarea:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(14,124,123,.15);
  background: #fff;
}
.lead-form textarea { resize: vertical; }
.form-fineprint { font-size: .8rem; color: var(--muted); text-align: center; margin: .9rem 0 0; }
.form-errors { background: #fdecea; border: 1px solid #f5c6c2; color: var(--danger); padding: .8rem 1rem; border-radius: var(--radius-sm); margin-bottom: 1rem; font-size: .9rem; }
.form-errors ul { margin: .4rem 0 0; padding-left: 1.1rem; list-style: disc; }

/* ---------- Sections ---------- */
.section { padding: 72px 0; }
.section-alt { background: var(--bg-alt); }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 2.5rem; }
.section-head p { color: var(--muted); font-size: 1.05rem; }

/* ---------- Services ---------- */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.service-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  display: flex;
  flex-direction: column;
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--gold); }
.service-icon { font-size: 2rem; width: 56px; height: 56px; display: grid; place-items: center; background: var(--gold-soft); border-radius: 12px; margin-bottom: 1rem; }
.service-card h3 { font-family: var(--font); font-size: 1.15rem; }
.service-card p { color: var(--muted); font-size: .95rem; flex: 1; }
.service-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.service-price { font-weight: 700; color: var(--navy); }
.service-link { font-weight: 600; }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.step { text-align: center; }
.step-num { display: grid; place-items: center; width: 48px; height: 48px; margin: 0 auto .9rem; border-radius: 50%; background: var(--navy); color: #fff; font-weight: 700; font-size: 1.2rem; }
.step h3 { font-family: var(--font); font-size: 1.1rem; }
.step p { color: var(--muted); font-size: .92rem; }

/* ---------- Trust ---------- */
.trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.trust-card { text-align: center; padding: 1rem; }
.trust-emoji { font-size: 2rem; }
.trust-card h3 { font-family: var(--font); font-size: 1.05rem; margin-top: .5rem; }
.trust-card p { color: var(--muted); font-size: .9rem; }

/* ---------- Testimonials ---------- */
.testimonials { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.testimonial { margin: 0; background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--gold); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.testimonial p { font-style: italic; color: var(--ink); }
.testimonial footer { font-weight: 600; color: var(--navy); font-style: normal; font-size: .9rem; }

/* ---------- Pricing band ---------- */
.pricing-band { display: flex; align-items: center; justify-content: space-between; gap: 2rem; background: linear-gradient(120deg, var(--navy), var(--navy-700)); color: #fff; border-radius: 20px; padding: 40px; }
.pricing-band h2 { color: #fff; }
.pricing-band p { color: #cdd9e6; margin: 0; max-width: 52ch; }

/* ---------- FAQ ---------- */
.faq-wrap { max-width: 760px; }
.faq { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 1rem 1.25rem; margin-bottom: .75rem; }
.faq summary { font-weight: 600; color: var(--navy); cursor: pointer; list-style: none; display: flex; justify-content: space-between; }
.faq summary::after { content: "+"; color: var(--gold); font-size: 1.3rem; line-height: 1; }
.faq[open] summary::after { content: "–"; }
.faq p { margin: .75rem 0 0; color: var(--muted); }

/* ---------- Final CTA ---------- */
.final-cta { background: linear-gradient(120deg, var(--navy), var(--teal)); color: #fff; text-align: center; padding: 72px 0; }
.final-cta h2 { color: #fff; }
.final-cta p { color: #d6e6e6; margin-bottom: 1.5rem; }

/* ---------- Footer ---------- */
.site-footer { background: #0b1f37; color: #aebfce; padding: 56px 0 24px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; }
.site-footer .brand-name { color: #fff; }
.footer-tag { max-width: 32ch; font-size: .92rem; }
.site-footer h4 { color: #fff; font-family: var(--font); font-size: .95rem; margin-bottom: .8rem; }
.site-footer ul li { margin-bottom: .45rem; }
.site-footer a { color: #aebfce; font-size: .92rem; }
.site-footer a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); margin-top: 32px; padding-top: 20px; font-size: .85rem; }
.footer-bottom p { margin: 0; }

/* ---------- Landing pages ---------- */
.breadcrumb { background: var(--bg-alt); border-bottom: 1px solid var(--line); font-size: .85rem; }
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: .35rem; padding: 10px 0; margin: 0; }
.breadcrumb li { display: inline-flex; align-items: center; gap: .35rem; }
.breadcrumb a { color: var(--teal); }
.breadcrumb .sep { color: #9fb0c0; margin: 0 .15rem; }
.breadcrumb [aria-current] { color: #5a6b7b; }

.narrow { max-width: 760px; }
.narrow h2 { margin-bottom: .75rem; }
.narrow p { margin-bottom: 1rem; color: var(--ink); }

.landing-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.landing-block h2 { margin-bottom: 1rem; }
.check-list { list-style: none; padding: 0; margin: 0; }
.check-list li { position: relative; padding-left: 1.9rem; margin-bottom: .7rem; line-height: 1.5; }
.check-list li::before { content: "✓"; position: absolute; left: 0; top: 0; color: var(--teal); font-weight: 700; }
.check-list--doc li::before { content: "📄"; font-size: .9rem; }

.timeline-note { margin-top: 1.5rem; padding: 14px 18px; background: #fff; border: 1px solid var(--line); border-radius: 10px; }

.city-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.city-chip { display: block; padding: 14px 18px; background: #fff; border: 1px solid var(--line); border-radius: 10px; color: var(--navy); font-weight: 500; transition: border-color .15s, transform .15s; }
.city-chip:hover { border-color: var(--teal); transform: translateY(-2px); }

/* ---------- Legal / policy pages ---------- */
.legal h1 { margin-bottom: .4rem; }
.legal-updated { color: var(--muted); font-size: .9rem; margin-bottom: 2rem; }
.legal h2 { font-size: 1.25rem; margin: 2rem 0 .6rem; }
.legal p, .legal li { line-height: 1.7; color: var(--ink); }
.legal ul { padding-left: 1.25rem; margin: 0 0 1rem; }
.legal li { margin-bottom: .5rem; }
.legal a { color: var(--teal); text-decoration: underline; }

.footer-legal { display: flex; flex-wrap: wrap; gap: 1rem; margin-bottom: .75rem; }
.footer-legal a { color: #aebfce; font-size: .85rem; }
.footer-legal a:hover { color: #fff; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .lead-card { position: static; }
  .services-grid, .testimonials { grid-template-columns: 1fr 1fr; }
  .steps, .trust-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .pricing-band { flex-direction: column; text-align: center; }
  .landing-cols { grid-template-columns: 1fr; gap: 28px; }
}
@media (max-width: 600px) {
  .nav-links { display: none; }
  .services-grid, .testimonials, .steps, .trust-grid, .footer-grid, .field-row { grid-template-columns: 1fr; }
  .hero-trust { gap: 1.25rem; }
  .section { padding: 52px 0; }
}
