/* Al-Adl Solutions — shared styles. Mobile-first, dependency-free.
   Front door (CHARTER §4 layer 1). No external fonts/frameworks — keep it fast. */

:root {
  /* Al-Adl brand palette */
  --brand:        #0C4A44;   /* teal */
  --brand-dark:   #08322D;   /* teal, hover/darker */
  --brand-tint:   #DCEAE6;   /* light teal wash */
  --ink:          #10201E;   /* ink — headings */
  --body:         #33453F;   /* softened ink — body text */
  --muted:        #6E7D77;
  --line:         #E4DCC9;   /* warm hairline on paper */
  --bg:           #F4EFE6;   /* paper — page background */
  --bg-soft:      #EBE3D4;   /* deeper paper — alt sections */
  --surface:      #ffffff;   /* cards */
  --gold:         #C69A2E;   /* gold — accent/highlights */
  --wa:           #25d366;   /* WhatsApp green */
  --radius:       14px;
  --shadow:       0 6px 24px rgba(16, 44, 37, .08);
  --shadow-lg:    0 14px 44px rgba(16, 44, 37, .14);
  --maxw:         1080px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* per-vertical accent — both on brand teal; gold used for small highlights */
.v-buildworks { --accent: #0C4A44; --accent-tint: #DCEAE6; }
.v-motors     { --accent: #0C4A44; --accent-tint: #DCEAE6; }

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--body);
  background: var(--bg);
  line-height: 1.6;
  font-size: 17px;
}

h1, h2, h3 { color: var(--ink); line-height: 1.2; margin: 0 0 .5em; font-weight: 700; }
h1 { font-size: clamp(1.9rem, 5vw, 3.1rem); letter-spacing: -.02em; }
h2 { font-size: clamp(1.4rem, 3.5vw, 2.1rem); letter-spacing: -.01em; }
h3 { font-size: 1.15rem; }
p  { margin: 0 0 1rem; }
a  { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.92);
  backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; color: var(--ink); font-size: 1.05rem; }
.brand:hover { text-decoration: none; }
.brand .mark {
  width: 34px; height: 34px; border-radius: 9px;
  background: var(--brand); color: #fff;
  display: grid; place-items: center; font-weight: 800; font-size: 1rem;
  box-shadow: var(--shadow);
}
.brand small { display: block; font-size: .68rem; font-weight: 600; color: var(--muted); letter-spacing: .04em; text-transform: uppercase; }
.nav-back { font-size: .92rem; font-weight: 600; color: var(--muted); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 14px 22px; border-radius: 999px; font-weight: 700; font-size: 1rem;
  border: 1px solid transparent; cursor: pointer; text-decoration: none;
  transition: transform .06s ease, box-shadow .15s ease, background .15s ease;
  line-height: 1;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-primary { background: var(--accent, var(--brand)); color: #fff; box-shadow: var(--shadow); }
.btn-primary:hover { background: var(--brand-dark); }
.v-buildworks .btn-primary:hover { background: #a8480f; }
.v-motors     .btn-primary:hover { background: #164a97; }
.btn-ghost { background: #fff; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--accent, var(--brand)); color: var(--accent, var(--brand)); }
.btn-wa { background: var(--wa); color: #fff; box-shadow: var(--shadow); }
.btn-wa:hover { background: #1eb958; }
.btn-lg { padding: 16px 28px; font-size: 1.05rem; }
.btn-block { width: 100%; }

/* ---------- hero ---------- */
.hero { padding: clamp(48px, 8vw, 96px) 0 clamp(40px, 6vw, 72px); background:
  radial-gradient(1200px 400px at 80% -10%, var(--accent-tint, var(--brand-tint)), transparent 70%); }
.hero .eyebrow {
  display: inline-block; font-weight: 700; font-size: .8rem; letter-spacing: .08em;
  text-transform: uppercase; color: var(--accent, var(--brand));
  background: var(--accent-tint, var(--brand-tint)); padding: 6px 13px; border-radius: 999px; margin-bottom: 18px;
}
.hero p.lead { font-size: 1.2rem; color: var(--body); max-width: 42ch; }
.hero .cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.trust-row { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 30px; color: var(--muted); font-size: .92rem; font-weight: 600; }
.trust-row span { display: inline-flex; align-items: center; gap: 7px; }
.trust-row .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent, var(--brand)); }

/* ---------- sections ---------- */
section { padding: clamp(44px, 7vw, 80px) 0; }
.section-soft { background: var(--bg-soft); }
.section-head { max-width: 60ch; margin-bottom: 34px; }
.section-head p { color: var(--muted); font-size: 1.08rem; }

/* ---------- front-door route cards ---------- */
.fronts { display: grid; gap: 22px; grid-template-columns: 1fr; }
.front-card {
  display: block; background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px; box-shadow: var(--shadow); transition: transform .12s ease, box-shadow .15s ease;
  color: inherit;
}
.front-card:hover { text-decoration: none; transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.front-card .tag { font-size: .78rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.front-card.bw .tag { color: var(--brand); }
.front-card.mo .tag { color: var(--gold); }
.front-card h3 { font-size: 1.5rem; margin-top: 8px; }
.front-card p { color: var(--body); }
.front-card .go { font-weight: 700; color: var(--accent, var(--brand)); display: inline-flex; align-items: center; gap: 6px; }
.front-card.bw .go { color: var(--brand); }
.front-card.mo .go { color: var(--gold); }

/* ---------- feature grid ---------- */
.grid { display: grid; gap: 18px; grid-template-columns: 1fr; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.card .ic { width: 42px; height: 42px; border-radius: 10px; background: var(--accent-tint, var(--brand-tint));
  display: grid; place-items: center; margin-bottom: 14px; font-size: 1.3rem; }
.card h3 { margin-bottom: 6px; }
.card p { color: var(--muted); margin: 0; font-size: .98rem; }

/* ---------- form ---------- */
.lead-section { background: var(--bg-soft); }
.lead-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-lg); padding: clamp(24px, 4vw, 40px); max-width: 560px;
}
.field { margin-bottom: 16px; }
.field label { display: block; font-weight: 600; color: var(--ink); margin-bottom: 6px; font-size: .95rem; }
.field .req { color: var(--accent, var(--brand)); }
.field input, .field select, .field textarea {
  width: 100%; padding: 13px 14px; border: 1px solid var(--line); border-radius: 10px;
  font: inherit; color: var(--ink); background: #fff; transition: border-color .12s ease, box-shadow .12s ease;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--accent, var(--brand));
  box-shadow: 0 0 0 3px var(--accent-tint, var(--brand-tint));
}
.field textarea { resize: vertical; min-height: 96px; }
.consent { display: flex; gap: 10px; align-items: flex-start; margin: 4px 0 18px; font-size: .85rem; color: var(--muted); }
.consent input { width: 18px; height: 18px; margin-top: 2px; flex: none; accent-color: var(--accent, var(--brand)); }
.form-note { font-size: .85rem; color: var(--muted); margin-top: 14px; text-align: center; }

/* ack panel (async auto-ack) */
.ack { display: none; text-align: center; padding: 18px 6px; }
.ack .tick {
  width: 62px; height: 62px; border-radius: 50%; margin: 0 auto 16px;
  background: var(--wa); color: #fff; display: grid; place-items: center; font-size: 2rem;
  animation: pop .35s ease;
}
@keyframes pop { from { transform: scale(.6); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.ack h3 { font-size: 1.4rem; }
.ack p { color: var(--muted); }
.is-submitted .lead-form { display: none; }
.is-submitted .ack { display: block; }

/* ---------- floating WhatsApp ---------- */
.wa-float {
  position: fixed; right: 18px; bottom: 18px; z-index: 60;
  width: 58px; height: 58px; border-radius: 50%; background: var(--wa); color: #fff;
  display: grid; place-items: center; box-shadow: var(--shadow-lg);
  transition: transform .12s ease;
}
.wa-float:hover { transform: scale(1.06); text-decoration: none; }
.wa-float svg { width: 30px; height: 30px; }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 34px 0; color: var(--muted); font-size: .9rem; background: #fff; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 8px 20px; justify-content: space-between; align-items: center; }
.site-footer a { color: var(--muted); }
.site-footer .fbrand { font-weight: 700; color: var(--ink); }

/* ---------- layout helpers ---------- */
.split { display: grid; gap: 40px; grid-template-columns: 1fr; align-items: start; }

@media (min-width: 720px) {
  .fronts { grid-template-columns: 1fr 1fr; }
  .grid { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 940px) {
  .grid-3 { grid-template-columns: 1fr 1fr 1fr; }
  .split.form-split { grid-template-columns: 1.05fr .95fr; gap: 56px; }
}
