/* ============================================================
   AfterMoving — design tokens + base styles
   Navy / amber, Archivo + Hanken Grotesk
   ============================================================ */

:root {
  /* Color  — AfterMoving brand board: charcoal #101922 / blue #016FEF / off-white #F1F2F4 */
  --bg:        #FEFEFE;   /* clean white canvas */
  --bg-tint:   #F1F2F4;   /* off-white section band */
  --surface:   #FFFFFF;
  --ink:       #101922;   /* charcoal text */
  --navy:      #101922;   /* charcoal (dark surfaces + headings) */
  --navy-600:  #1B2733;   /* elevated charcoal */
  --navy-400:  #51606F;
  --navy-tint: #E4EDF8;   /* light blue surface tint */
  --navy-line: #D5DCE5;
  --accent:    #016FEF;   /* vibrant brand blue CTA */
  --accent-700:#0156C4;
  --accent-tint:#E2EDFD;
  --muted:     #59636F;   /* neutral slate body-muted */
  --muted-2:   #8893A0;
  --line:      #E4E7EC;   /* cool hairline on bg */
  --gold:      #E5A93B;   /* star rating */
  --ok:        #016FEF;   /* brand-blue confirm ticks */

  --shadow-sm: 0 1px 2px rgba(16,25,34,.06), 0 1px 1px rgba(16,25,34,.04);
  --shadow-md: 0 10px 24px -8px rgba(16,25,34,.16), 0 4px 8px -4px rgba(16,25,34,.09);
  --shadow-lg: 0 30px 60px -18px rgba(16,25,34,.26), 0 10px 24px -12px rgba(16,25,34,.16);
  --shadow-accent: 0 14px 30px -10px rgba(1,111,239,.42);

  --r-sm: 8px;
  --r:    14px;
  --r-lg: 22px;
  --r-xl: 30px;

  --maxw: 1200px;
  --gut: clamp(20px, 5vw, 64px);

  --ff-display: "Archivo", system-ui, sans-serif;
  --ff-body: "Hanken Grotesk", system-ui, sans-serif;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--ff-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: var(--ff-display);
  margin: 0;
  line-height: 1.04;
  letter-spacing: -0.022em;
  color: var(--navy);
  font-weight: 800;
  text-wrap: balance;
}

p { margin: 0; text-wrap: pretty; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

/* ---------- layout helpers ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gut); }
.section { padding-block: clamp(64px, 9vw, 128px); position: relative; }
.section--tint { background: var(--bg-tint); }
.section--navy { background: var(--navy); color: #EAF1F8; }
.section--navy h1, .section--navy h2, .section--navy h3 { color: #fff; }

.eyebrow {
  font-family: var(--ff-body);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-700);
  display: inline-flex;
  align-items: center;
  gap: 9px;
}
.eyebrow::before {
  content: "";
  width: 22px; height: 2px;
  background: var(--accent);
  border-radius: 2px;
}
.section--navy .eyebrow { color: #5FA3FF; }

.h-sec { font-size: clamp(32px, 4.4vw, 54px); }
.lead { font-size: clamp(17px, 1.7vw, 20px); color: var(--muted); line-height: 1.55; }
.section--navy .lead { color: #B7C8DA; }

/* ---------- buttons ---------- */
.btn {
  --bg: var(--accent);
  font-family: var(--ff-display);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: -0.01em;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 26px;
  border-radius: 999px;
  border: 0;
  cursor: pointer;
  background: var(--bg);
  color: #fff;
  box-shadow: var(--shadow-accent);
  transition: transform .18s cubic-bezier(.2,.8,.2,1), box-shadow .18s, background .18s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 18px 36px -10px rgba(1,111,239,.5); }
.btn:active { transform: translateY(0); }
.btn svg { width: 18px; height: 18px; }

.btn--navy { background: var(--navy-600); box-shadow: 0 14px 30px -12px rgba(16,64,111,.5); }
.btn--navy:hover { box-shadow: 0 18px 36px -12px rgba(16,64,111,.6); }

.btn--ghost {
  background: transparent; color: var(--navy);
  box-shadow: inset 0 0 0 1.6px var(--navy-line);
}
.btn--ghost:hover { background: #fff; box-shadow: inset 0 0 0 1.6px var(--navy-400); }

.btn--white { background:#fff; color: var(--navy); box-shadow: var(--shadow-md); }
.btn--lg { padding: 18px 32px; font-size: 17px; }
.btn--block { width: 100%; }

/* phone link styled inline */
.tel {
  font-family: var(--ff-display);
  font-weight: 700;
  display: inline-flex; align-items: center; gap: 9px;
  color: var(--navy);
}
.tel svg { width: 17px; height: 17px; color: var(--accent); }

/* ---------- chips / pills ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 14px; font-weight: 600;
  padding: 8px 14px;
  border-radius: 999px;
  background: #fff;
  color: var(--navy);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--line);
}
.chip svg { width: 15px; height: 15px; color: var(--ok); }
.section--navy .chip { background: rgba(255,255,255,.07); color:#EAF1F8; border-color: rgba(255,255,255,.14); }
.section--navy .chip svg { color: #5FA3FF; }

/* star row */
.stars { display: inline-flex; gap: 2px; color: var(--gold); }
.stars svg { width: 17px; height: 17px; }

/* ---------- card ---------- */
.card {
  background: var(--surface);
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}

/* ---------- striped image placeholder ---------- */
.ph {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  background:
    repeating-linear-gradient(135deg, #E6E9EE 0 14px, #F2F4F7 14px 28px);
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  color: var(--muted-2);
  isolation: isolate;
}
.ph::after {
  content: attr(data-label);
  font-family: "Hanken Grotesk", monospace;
  font-family: ui-monospace, "SFMono-Regular", Menlo, monospace;
  font-size: 12px;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: #8893A0;
  background: rgba(255,255,255,.72);
  padding: 6px 12px;
  border-radius: 999px;
  box-shadow: var(--shadow-sm);
}
.ph--navy {
  background: repeating-linear-gradient(135deg, #161E27 0 14px, #1C2731 14px 28px);
  border-color: rgba(255,255,255,.1);
}
.ph--navy::after { background: rgba(11,17,24,.6); color:#9AA7B5; }

/* real cover image dropped into a placeholder slot */
.ph__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; z-index: 1; }

/* ---------- reveal animation ---------- */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1);
  will-change: opacity, transform;
}
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; }
.reveal.d2 { transition-delay: .16s; }
.reveal.d3 { transition-delay: .24s; }
.reveal.d4 { transition-delay: .32s; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* utility */
.grid { display: grid; }
.flex { display: flex; }
.center { align-items: center; }
.between { justify-content: space-between; }
.gap-s { gap: 12px; }
.gap-m { gap: 20px; }
.gap-l { gap: 32px; }
.mono { font-family: ui-monospace, Menlo, monospace; }

/* screen-reader-only (SEO/accessibility — visually hidden, still in DOM) */
.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
