/* =====================================================================
   ABPP Ltd — Motor Trade Business Consultancy
   styles.css  ·  Light, eye-friendly theme (soft neutrals + calm teal)
   ===================================================================== */

:root {
  /* Palette — soft on the eyes, low glare */
  --ink:        #eef2f0;   /* page background — soft off-white */
  --ink-2:      #ffffff;   /* cards / panels / alt sections */
  --ink-3:      #f5f8f6;   /* subtle raised tint for gradients */
  --line:       rgba(24, 48, 44, 0.10);
  --line-soft:  rgba(24, 48, 44, 0.055);
  --text:       #35454b;   /* primary text — soft slate, not harsh black */
  --muted:      #647981;   /* secondary text */
  --white:      #1d2a30;   /* headings — deep ink (repurposed) */
  --gold:       #2a8c7d;   /* accent — calm teal */
  --gold-soft:  #2f9586;   /* accent, legible on light backgrounds */
  --gold-dim:   rgba(42, 140, 125, 0.12);
  --radius:     16px;
  --radius-sm:  10px;
  --shadow:     0 20px 48px -22px rgba(31, 54, 50, 0.22);
  --maxw:       1180px;
  --ease:       cubic-bezier(0.22, 1, 0.36, 1);

  --font-head:  "Manrope", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --font-body:  "Inter", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 86px; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  background: var(--ink);
  color: var(--text);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; padding: 0; }
button { font-family: inherit; cursor: pointer; }

/* ---------- Layout helpers ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 22px; }
.section { padding: clamp(68px, 9vw, 120px) 0; position: relative; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--font-head);
  font-size: 13px; font-weight: 700; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--gold-soft);
  margin-bottom: 18px;
}
.eyebrow::before { content: ""; width: 26px; height: 1px; background: var(--gold); opacity: 0.8; }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.12; font-weight: 800; letter-spacing: -0.02em; }
h2.title { font-size: clamp(28px, 4vw, 44px); color: var(--white); max-width: 18ch; margin-bottom: 18px; }
.lead { color: var(--muted); font-size: clamp(16px, 1.6vw, 19px); max-width: 60ch; }
.center { text-align: center; }
.center .title, .center .lead { margin-inline: auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--font-head); font-weight: 700; font-size: 15px;
  padding: 14px 24px; border-radius: 999px; border: 1px solid transparent;
  transition: transform .25s var(--ease), background .25s var(--ease), box-shadow .25s var(--ease), border-color .25s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn-gold { background: var(--gold); color: #ffffff; box-shadow: 0 14px 28px -14px rgba(42,140,125,.55); }
.btn-gold:hover { background: var(--gold-soft); }
.btn-ghost { border-color: var(--line); color: var(--text); background: #ffffff; }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold); }
.btn-wa { background: #25d366; color: #06310f; }
.btn-wa:hover { background: #38e879; }
.btn svg { width: 18px; height: 18px; }

/* ---------- Header ---------- */
.header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  transition: background .3s var(--ease), box-shadow .3s var(--ease), border-color .3s;
  border-bottom: 1px solid transparent;
}
.header.scrolled {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
  box-shadow: 0 6px 24px -18px rgba(31,54,50,.4);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 76px; gap: 20px; }
.brand { display: inline-flex; align-items: center; gap: 11px; font-family: var(--font-head); font-size: 22px; font-weight: 800; letter-spacing: -0.01em; color: var(--white); white-space: nowrap; }
.brand .word { letter-spacing: 0.01em; }
.brand .word b { color: var(--gold); font-weight: 800; }
.brand .mark {
  width: 40px; height: 40px; border-radius: 11px; flex: none;
  display: grid; place-items: center;
  background: linear-gradient(145deg, var(--gold), #1f6e62);
  color: #ffffff; font-weight: 900; font-size: 17px; letter-spacing: 0.02em;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.3);
}
.brand b { color: var(--gold-soft); font-weight: 800; }
.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a { font-size: 15px; color: var(--muted); font-weight: 500; transition: color .2s; position: relative; }
.nav-links a:hover { color: var(--gold); }
.nav-actions { display: flex; align-items: center; gap: 12px; }
.nav-cta { padding: 11px 20px; font-size: 14px; }

.burger { display: none; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 11px; background: #ffffff; position: relative; }
.burger span { position: absolute; left: 11px; right: 11px; height: 2px; background: var(--text); border-radius: 2px; transition: transform .3s var(--ease), opacity .2s; }
.burger span:nth-child(1) { top: 15px; }
.burger span:nth-child(2) { top: 21px; }
.burger span:nth-child(3) { top: 27px; }
.burger.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 158px 0 90px; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -2;
  background:
    radial-gradient(900px 500px at 78% -5%, rgba(42,140,125,.12), transparent 60%),
    radial-gradient(760px 620px at 8% 12%, rgba(96,150,170,.12), transparent 62%),
    linear-gradient(180deg, #f3f7f5, var(--ink));
}
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: .7;
  background-image: linear-gradient(var(--line-soft) 1px, transparent 1px), linear-gradient(90deg, var(--line-soft) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: radial-gradient(70% 70% at 50% 30%, #000 40%, transparent 100%);
  -webkit-mask-image: radial-gradient(70% 70% at 50% 30%, #000 40%, transparent 100%);
}
.hero h1 { font-size: clamp(34px, 5.6vw, 66px); color: var(--white); max-width: 16ch; margin-bottom: 22px; }
.hero h1 .hl { color: var(--gold); }
.hero .lead { font-size: clamp(17px, 1.8vw, 21px); max-width: 56ch; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.chips { display: flex; flex-wrap: wrap; gap: 10px 26px; margin-top: 42px; padding-top: 30px; border-top: 1px solid var(--line); }
.chips li { display: inline-flex; align-items: center; gap: 9px; color: var(--muted); font-size: 14.5px; font-weight: 500; }
.chips li::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 4px var(--gold-dim); }

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.about-copy p { color: var(--muted); margin-bottom: 18px; }
.about-copy .btn { margin-top: 8px; }
.values { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.value {
  background: linear-gradient(180deg, #ffffff, var(--ink-3));
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px 22px; transition: transform .3s var(--ease), border-color .3s, box-shadow .3s;
}
.value:hover { transform: translateY(-4px); border-color: rgba(42,140,125,.4); box-shadow: var(--shadow); }
.value .vi { width: 42px; height: 42px; border-radius: 11px; background: var(--gold-dim); color: var(--gold); display: grid; place-items: center; margin-bottom: 14px; }
.value .vi svg { width: 22px; height: 22px; }
.value h3 { font-size: 18px; color: var(--white); margin-bottom: 6px; }
.value p { color: var(--muted); font-size: 14.5px; }

/* ---------- Sectors / Services ---------- */
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 48px; }
.card {
  position: relative; background: var(--ink-2); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 26px 22px 24px; overflow: hidden;
  transition: transform .3s var(--ease), border-color .3s, box-shadow .3s;
}
.card::after { content: ""; position: absolute; left: 0; top: 0; height: 3px; width: 0; background: linear-gradient(90deg, var(--gold), transparent); transition: width .4s var(--ease); }
.card:hover { transform: translateY(-6px); border-color: rgba(42,140,125,.35); box-shadow: var(--shadow); }
.card:hover::after { width: 100%; }
.card .ci { font-size: 28px; margin-bottom: 14px; line-height: 1; }
.card h3 { font-size: 17.5px; color: var(--white); margin-bottom: 8px; }
.card p { color: var(--muted); font-size: 14px; margin-bottom: 16px; }
.card .more { font-family: var(--font-head); font-weight: 700; font-size: 13.5px; color: var(--gold); display: inline-flex; align-items: center; gap: 6px; transition: gap .25s; }
.card:hover .more { gap: 11px; }

/* ---------- Process ---------- */
.process { background: var(--ink-2); border-block: 1px solid var(--line); }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 50px; counter-reset: step; }
.step { position: relative; padding-top: 30px; }
.step .num { font-family: var(--font-head); font-size: 15px; font-weight: 800; color: #ffffff; background: var(--gold); width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; margin-bottom: 18px; }
.step::before { content: ""; position: absolute; top: 50px; left: 52px; right: -20px; height: 1px; background: linear-gradient(90deg, var(--line), transparent); }
.step:last-child::before { display: none; }
.step h3 { font-size: 18px; color: var(--white); margin-bottom: 8px; }
.step p { color: var(--muted); font-size: 14.5px; }

/* ---------- Buyers (CTA band) ---------- */
.band {
  background: linear-gradient(135deg, #e4efec 0%, #edf4f1 60%);
  border: 1px solid var(--line); border-radius: 22px;
  padding: clamp(36px, 5vw, 64px); text-align: center; position: relative; overflow: hidden;
  box-shadow: var(--shadow);
}
.band::before { content: ""; position: absolute; inset: 0; z-index: 0; background: radial-gradient(600px 300px at 50% -20%, rgba(42,140,125,.16), transparent 70%); }
.band > * { position: relative; z-index: 1; }
.band h2 { font-size: clamp(26px, 3.6vw, 40px); color: var(--white); max-width: 22ch; margin: 0 auto 16px; }
.band p { color: var(--muted); max-width: 52ch; margin: 0 auto 28px; }

/* ---------- FAQ ---------- */
.faq-list { max-width: 820px; margin: 44px auto 0; display: grid; gap: 12px; }
.faq {
  background: var(--ink-2); border: 1px solid var(--line); border-radius: var(--radius-sm);
  overflow: hidden; transition: border-color .3s, box-shadow .3s;
}
.faq.open { border-color: rgba(42,140,125,.4); box-shadow: var(--shadow); }
.faq-q {
  width: 100%; text-align: left; background: none; border: none; color: var(--white);
  font-family: var(--font-head); font-weight: 700; font-size: 17px;
  padding: 22px 24px; display: flex; align-items: center; justify-content: space-between; gap: 18px;
}
.faq-q .ic { flex: none; width: 24px; height: 24px; position: relative; transition: transform .3s var(--ease); color: var(--gold); }
.faq-q .ic::before, .faq-q .ic::after { content: ""; position: absolute; background: currentColor; border-radius: 2px; }
.faq-q .ic::before { left: 11px; top: 4px; width: 2px; height: 16px; }
.faq-q .ic::after  { top: 11px; left: 4px; height: 2px; width: 16px; }
.faq.open .faq-q .ic { transform: rotate(135deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .35s var(--ease); }
.faq-a p { color: var(--muted); font-size: 15.5px; padding: 0 24px 22px; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(28px, 4vw, 56px); align-items: start; }
.contact-info .lead { margin-bottom: 30px; }
.cinfo { display: grid; gap: 14px; }
.cinfo a {
  display: flex; align-items: center; gap: 16px; padding: 18px 20px;
  background: var(--ink-2); border: 1px solid var(--line); border-radius: var(--radius-sm);
  transition: transform .25s var(--ease), border-color .25s, box-shadow .25s;
}
.cinfo a:hover { transform: translateX(4px); border-color: rgba(42,140,125,.4); box-shadow: var(--shadow); }
.cinfo .ci-ic { flex: none; width: 46px; height: 46px; border-radius: 12px; background: var(--gold-dim); color: var(--gold); display: grid; place-items: center; }
.cinfo .ci-ic svg { width: 22px; height: 22px; }
.cinfo .ci-label { font-size: 12.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.cinfo .ci-val { font-family: var(--font-head); font-weight: 700; color: var(--white); font-size: 16px; }

/* Form */
.form { background: #ffffff; border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(24px, 3vw, 34px); box-shadow: var(--shadow); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 13.5px; font-weight: 600; color: var(--muted); margin-bottom: 7px; font-family: var(--font-head); }
.field label .req { color: var(--gold); }
.field input, .field select, .field textarea {
  width: 100%; background: #f6f9f8; border: 1px solid var(--line);
  border-radius: 10px; color: var(--text); font-family: inherit; font-size: 15.5px;
  padding: 13px 15px; transition: border-color .2s, box-shadow .2s, background .2s;
}
.field textarea { min-height: 128px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--gold); background: #ffffff; box-shadow: 0 0 0 3px var(--gold-dim);
}
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' fill='none' stroke='%23647981' stroke-width='2'%3E%3Cpath d='M3 5l4 4 4-4'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 15px center; padding-right: 40px; }
.consent { display: flex; align-items: flex-start; gap: 11px; margin: 4px 0 20px; }
.consent input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--gold); flex: none; }
.consent label { font-size: 13.5px; color: var(--muted); }
.consent a { color: var(--gold); text-decoration: underline; }
.form .btn { width: 100%; }
.form-note { font-size: 13px; color: var(--muted); margin-top: 14px; text-align: center; }
.form-feedback { display: none; margin-top: 16px; padding: 14px 16px; border-radius: 10px; font-size: 14.5px; }
.form-feedback.show { display: block; }
.form-feedback.ok { background: rgba(37,170,110,.12); border: 1px solid rgba(37,170,110,.4); color: #1f7a52; }
.err-msg { color: #c0392b; font-size: 12.5px; margin-top: 6px; display: none; }
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: #d9736a; }
.field.invalid .err-msg { display: block; }

/* ---------- Footer ---------- */
.footer { background: #e7ecea; border-top: 1px solid var(--line); padding: 64px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 40px; padding-bottom: 40px; border-bottom: 1px solid var(--line); }
.footer .brand { margin-bottom: 16px; }
.footer-about { color: var(--muted); font-size: 15px; max-width: 42ch; }
.footer h4 { font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--gold); margin-bottom: 16px; font-weight: 700; }
.footer-col a, .footer-col p { color: var(--muted); font-size: 15px; display: block; margin-bottom: 10px; transition: color .2s; }
.footer-col a:hover { color: var(--gold); }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 24px; flex-wrap: wrap; }
.footer-bottom p { color: var(--muted); font-size: 13.5px; }
.footer-bottom .legal a { color: var(--muted); font-size: 13.5px; margin-left: 20px; transition: color .2s; }
.footer-bottom .legal a:hover { color: var(--gold); }

/* ---------- Floating WhatsApp + top ---------- */
.fab { position: fixed; right: 20px; bottom: 22px; z-index: 90; display: flex; flex-direction: column; gap: 12px; }
.fab a {
  width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center;
  box-shadow: 0 10px 26px -8px rgba(31,54,50,.35); transition: transform .25s var(--ease);
}
.fab a:hover { transform: scale(1.08); }
.fab .wa { background: #25d366; color: #fff; }
.fab .wa svg { width: 28px; height: 28px; }
.fab .top { background: #ffffff; border: 1px solid var(--line); color: var(--text); opacity: 0; pointer-events: none; transform: translateY(10px); }
.fab .top.show { opacity: 1; pointer-events: auto; transform: translateY(0); }
.fab .top svg { width: 20px; height: 20px; }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.visible { opacity: 1; transform: none; }

/* ---------- Legal page ---------- */
.legal-page { padding: 150px 0 80px; }
.legal-page .wrap { max-width: 860px; }
.legal-page h1 { font-size: clamp(30px, 5vw, 46px); color: var(--white); margin-bottom: 10px; }
.legal-page .updated { color: var(--muted); font-size: 14px; margin-bottom: 40px; }
.legal-page h2 { font-size: 21px; color: var(--white); margin: 38px 0 12px; }
.legal-page p, .legal-page li { color: var(--text); font-size: 16px; margin-bottom: 12px; }
.legal-page ul { list-style: disc; padding-left: 22px; margin-bottom: 16px; }
.legal-page li { margin-bottom: 8px; }
.legal-page a { color: var(--gold); text-decoration: underline; }
.back-link { display: inline-flex; align-items: center; gap: 8px; color: var(--gold); font-family: var(--font-head); font-weight: 700; font-size: 14.5px; margin-top: 30px; }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .step:nth-child(2)::before { display: none; }
}
@media (max-width: 1024px) {
  .nav-links, .nav-cta { display: none; }
  .burger { display: block; }
  .nav-menu {
    position: fixed; inset: 76px 0 auto 0; background: rgba(255,255,255,.97);
    backdrop-filter: blur(16px); border-bottom: 1px solid var(--line);
    flex-direction: column; align-items: stretch; gap: 0; padding: 12px 22px 24px;
    display: none;
  }
  .nav-menu.open { display: flex; }
  .nav-menu a { padding: 15px 4px; font-size: 17px; border-bottom: 1px solid var(--line-soft); color: var(--text); }
  .nav-menu .btn { margin-top: 16px; }
  .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .cards, .values, .steps, .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .footer-bottom .legal a { margin-left: 0; margin-right: 20px; }
  .hero-cta .btn { flex: 1 1 auto; }
}
@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; }
  .reveal { opacity: 1 !important; transform: none !important; }
}
