/* Quick Ashford audit landing page
   Palette: brand red, logo ink, white, one pale band, one hairline.
   Type: Poppins throughout, weight does the hierarchy. */

:root {
  --red: #780000;
  --red-deep: #5c0000;
  --ink: #161a1d;
  --ink-soft: #3d4247;
  --muted: #6b7076;
  --band: #f4f3f1;
  --rule: #d9d7d3;
  --white: #ffffff;
  --focus: #780000;

  --display: "Poppins", "Segoe UI", system-ui, sans-serif;
  --body: "Poppins", "Segoe UI", system-ui, sans-serif;

  --gutter: 20px;
  --max: 1160px;
  --radius: 4px;
}

*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  padding-bottom: 72px; /* room for the mobile action bar */
}

img, svg { display: block; max-width: 100%; }

a { color: inherit; }

h1, h2, h3 { font-family: var(--display); font-weight: 600; line-height: 1.15; margin: 0; letter-spacing: -0.015em; }
h1 { font-size: clamp(1.8rem, 4.2vw + 0.6rem, 2.9rem); }
h2 { font-size: clamp(1.5rem, 2.6vw + 0.6rem, 2.15rem); }
h3 { font-size: 1.15rem; letter-spacing: -0.01em; }

p { margin: 0; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }

.section { padding: 56px 0; }
.section + .section { border-top: 1px solid var(--rule); }
.section--band { background: var(--band); }

.eyebrow {
  font-size: 0.875rem;
  color: var(--red);
  font-weight: 600;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before { content: ""; width: 22px; height: 2px; background: var(--red); flex: none; }

.lede { font-size: 1.125rem; color: var(--ink-soft); max-width: 36em; }

.section-head { max-width: 40em; margin-bottom: 32px; }
.section-head p { margin-top: 12px; color: var(--ink-soft); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 22px;
  border-radius: var(--radius);
  border: 1.5px solid transparent;
  font: 600 1rem/1 var(--body);
  text-decoration: none;
  cursor: pointer;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease;
  white-space: nowrap;
}
.btn svg { width: 20px; height: 20px; flex: none; }
.btn--red { background: var(--red); color: var(--white); border-color: var(--red); }
.btn--red:hover { background: var(--red-deep); border-color: var(--red-deep); }
.btn--ink { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn--ink:hover { background: var(--ink); color: var(--white); }
.btn--white { background: var(--white); color: var(--red); border-color: var(--white); }
.btn--white:hover { background: #f1e8e8; border-color: #f1e8e8; }
.btn--ghost { background: transparent; color: var(--white); border-color: rgba(255,255,255,.7); }
.btn--ghost:hover { border-color: var(--white); background: rgba(255,255,255,.08); }
.btn--block { width: 100%; }
.btn[aria-disabled="true"], .btn:disabled { opacity: .6; cursor: progress; }

:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }

/* Header */
.header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(255,255,255,.96);
  backdrop-filter: saturate(160%) blur(6px);
  border-bottom: 1px solid var(--rule);
}
.header__inner { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.header__logo { display: block; }
.header__logo img { height: 30px; width: auto; }
.header__actions { display: flex; align-items: center; gap: 10px; }
.header__phone { display: none; font-weight: 600; text-decoration: none; font-variant-numeric: tabular-nums; margin-right: 6px; }
.header__phone:hover { color: var(--red); }
.header .btn { min-height: 42px; padding: 0 14px; font-size: .9375rem; }
.header .btn--icon-only .btn__label { display: none; }
.header .btn--icon-only { width: 42px; padding: 0; }

/* Hero */
.hero { padding: 36px 0 48px; }
.hero__grid { display: grid; gap: 32px; }
.hero__copy h1 { max-width: 13em; }
.hero__copy .lede { margin-top: 18px; }
.trust { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 10px; }
.trust li { display: flex; gap: 12px; align-items: flex-start; font-weight: 500; }
.trust li svg { flex: none; width: 18px; height: 18px; margin-top: 4px; color: var(--red); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero__actions .btn { flex: 1 1 200px; }
.hero__note { margin-top: 14px; font-size: .9375rem; color: var(--muted); }

/* Lead form */
.lead {
  background: var(--white);
  border: 1px solid var(--rule);
  border-top: 3px solid var(--red);
  border-radius: var(--radius);
  padding: 24px 20px 20px;
}
.lead__head h2 { font-size: 1.4rem; }
.lead__head p { margin-top: 6px; color: var(--muted); font-size: .9375rem; }
.lead form { margin-top: 18px; display: grid; gap: 14px; position: relative; }
.field { display: grid; gap: 6px; }
.field label { font-size: .875rem; font-weight: 600; }
.field label .opt { font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea {
  font: 400 1rem/1.3 var(--body);
  color: var(--ink);
  background: var(--white);
  border: 1px solid #b9b6b0;
  border-radius: var(--radius);
  padding: 13px 14px;
  width: 100%;
  min-height: 50px;
}
.field textarea { min-height: 96px; resize: vertical; }
.field select {
  appearance: none; -webkit-appearance: none;
  padding-right: 42px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'><path fill='none' stroke='%23161a1d' stroke-width='1.6' d='M5.5 7.5 10 12l4.5-4.5'/></svg>");
  background-repeat: no-repeat; background-position: right 14px center; background-size: 16px;
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--red); outline: 3px solid rgba(120,0,0,.18); outline-offset: 0; }
.field input[aria-invalid="true"], .field select[aria-invalid="true"] { border-color: var(--red); }
.field__error { font-size: .8125rem; color: var(--red); display: none; }
.field.is-invalid .field__error { display: block; }
.grid-2 { display: grid; gap: 14px; }
.lead__submit { margin-top: 4px; }
.lead__fine { font-size: .8125rem; color: var(--muted); text-align: center; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form-status { display: none; padding: 12px 14px; border-radius: var(--radius); font-size: .9375rem; line-height: 1.45; }
.form-status.is-error { display: block; background: #fbeeee; color: var(--red); border: 1px solid #e8c9c9; }
.form-status a { font-weight: 600; }

/* Stat bar: a ruled ledger line */
.stats { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; column-gap: 24px; }
.stats li { padding: 20px 0; border-top: 1px solid var(--rule); position: relative; }
.stats li::before { content: ""; position: absolute; top: -1px; left: 0; width: 28px; height: 2px; background: var(--red); }
.stats .num { font-family: var(--display); font-size: 2.2rem; line-height: 1; font-weight: 600; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.stats .num small { font-size: 1.05rem; font-family: var(--body); font-weight: 500; margin-left: 4px; }
.stats .lbl { display: block; margin-top: 8px; font-size: .9375rem; color: var(--ink-soft); }

/* Why: ruled list */
.why { list-style: none; margin: 0; padding: 0; display: grid; }
.why li { border-top: 1px solid var(--rule); padding: 22px 0; display: grid; gap: 8px; position: relative; }
.why li::before { content: ""; position: absolute; top: -1px; left: 0; width: 28px; height: 2px; background: var(--red); }
.why li:last-child { border-bottom: 1px solid var(--rule); }
.why p { color: var(--ink-soft); }

/* Process: numbered because the audit is a sequence */
.process { display: grid; gap: 32px; }
.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; position: relative; }
.steps::before { content: ""; position: absolute; left: 19px; top: 8px; bottom: 8px; width: 1px; background: var(--rule); }
.steps li { position: relative; padding: 0 0 28px 60px; counter-increment: step; }
.steps li:last-child { padding-bottom: 0; }
.steps li::before {
  content: counter(step);
  position: absolute; left: 0; top: -2px;
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--white);
  border: 1.5px solid var(--ink);
  font-family: var(--display); font-size: 1rem; font-weight: 600;
  display: grid; place-items: center;
}
.steps li:last-child::before { background: var(--red); border-color: var(--red); color: var(--white); }
.steps h3 { margin-bottom: 6px; }
.steps p { color: var(--ink-soft); }
.process__aside p { margin-top: 12px; color: var(--ink-soft); }
.process__aside .btn { margin-top: 20px; }

/* Emirates: a typographic roll call */
.emirates { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.emirates li {
  font-family: var(--display); font-size: clamp(1.2rem, 1.8vw + .5rem, 1.6rem); font-weight: 500; line-height: 1; letter-spacing: -0.01em;
  padding: 18px 22px 18px 0; margin-right: 22px; position: relative;
}
.emirates li:not(:last-child)::after { content: ""; position: absolute; right: 0; top: 22px; bottom: 22px; width: 1px; background: var(--rule); }
.emirates li em { font-style: normal; color: var(--red); font-weight: 600; }
.emirates__note { margin-top: 16px; color: var(--ink-soft); }

/* Testimonials */
.reviews { display: grid; }
.review { border-top: 1px solid var(--rule); padding: 26px 0; display: grid; gap: 14px; margin: 0; }
.review:last-child { border-bottom: 1px solid var(--rule); }
.review blockquote { margin: 0; font-size: 1.2rem; line-height: 1.45; color: var(--ink); }
.review blockquote::before { content: "\201C"; display: block; font-family: var(--display); font-size: 2.4rem; line-height: .6; color: var(--red); margin-bottom: 10px; }
.review figcaption { font-size: .9375rem; color: var(--ink-soft); display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.review figcaption strong { color: var(--ink); font-weight: 600; }
.review figcaption .src { color: var(--muted); }
.stars { display: inline-flex; gap: 2px; color: var(--red); }
.stars svg { width: 14px; height: 14px; }
.rating-line { display: inline-flex; align-items: center; gap: 10px; margin-top: 14px; font-weight: 500; }

/* Closing CTA band */
.cta { background: var(--red); color: var(--white); padding: 56px 0; }
.cta h2 { max-width: 16em; }
.cta p { margin-top: 12px; color: rgba(255,255,255,.85); max-width: 36em; }
.cta__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.cta__actions .btn { flex: 1 1 200px; }
.cta .phone { font-family: var(--display); font-weight: 600; letter-spacing: -0.01em; font-size: 1.5rem; margin-top: 22px; display: inline-block; text-decoration: none; }
.cta .phone:hover { text-decoration: underline; }

/* Footer */
.footer { padding: 40px 0 32px; border-top: 1px solid var(--rule); font-size: .9375rem; color: var(--ink-soft); }
.footer__grid { display: grid; gap: 22px; }
.footer__brand img { height: 26px; width: auto; }
.footer__brand p { margin-top: 12px; max-width: 28em; }
.footer dl { margin: 0; display: grid; gap: 14px; }
.footer dt { font-weight: 600; color: var(--ink); font-size: .875rem; }
.footer dd { margin: 2px 0 0; }
.footer a { text-decoration: none; }
.footer a:hover { color: var(--red); }
.footer__legal { margin-top: 28px; padding-top: 16px; border-top: 1px solid var(--rule); font-size: .8125rem; color: var(--muted); }

/* Mobile action bar */
.actionbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
  display: grid; grid-template-columns: 1fr 1fr; gap: 8px;
  padding: 8px var(--gutter) calc(8px + env(safe-area-inset-bottom));
  background: rgba(255,255,255,.97);
  border-top: 1px solid var(--rule);
}
.actionbar .btn { min-height: 48px; }

/* Thank-you page */
.thanks { padding: 56px 0 72px; }
.thanks__card { max-width: 620px; }
.thanks__mark { width: 56px; height: 56px; margin-bottom: 24px; }
.thanks h1 { font-size: clamp(1.8rem, 4vw + .5rem, 2.6rem); }
.thanks .lede { margin-top: 16px; }
.thanks ol { margin: 24px 0 0; padding-left: 1.3em; color: var(--ink-soft); display: grid; gap: 8px; }
.thanks__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.thanks__actions .btn { flex: 1 1 200px; }

/* Larger screens */
@media (min-width: 640px) {
  :root { --gutter: 28px; }
  .grid-2 { grid-template-columns: 1fr 1fr; }
  .stats { grid-template-columns: repeat(4, 1fr); }
  .why { grid-template-columns: 1fr 1fr; column-gap: 40px; }
  .why li:nth-last-child(2) { border-bottom: 1px solid var(--rule); }
  .reviews { grid-template-columns: repeat(3, 1fr); column-gap: 32px; }
  .review, .review:last-child { border-bottom: 1px solid var(--rule); }
  .footer__grid { grid-template-columns: 1.2fr 1fr; }
  .footer dl { grid-template-columns: 1fr 1fr; }
  .header .btn--icon-only .btn__label { display: inline; }
  .header .btn--icon-only { width: auto; padding: 0 14px; }
}

@media (min-width: 780px) {
  .header__phone { display: inline-block; white-space: nowrap; }
}

@media (min-width: 960px) {
  :root { --gutter: 32px; }
  body { padding-bottom: 0; }
  .actionbar { display: none; }
  .section { padding: 80px 0; }
  .hero { padding: 40px 0 72px; }
  .hero__grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 56px; align-items: start; }
  .hero__actions .btn { flex: 0 1 auto; min-width: 200px; }
  .lead { padding: 26px 28px 22px; }
  .lead form { gap: 12px; margin-top: 16px; }
  .field input, .field select { min-height: 46px; padding-top: 11px; padding-bottom: 11px; }
  .field textarea { min-height: 72px; }
  .process { grid-template-columns: .8fr 1.2fr; gap: 64px; }
  .process__aside { position: sticky; top: 96px; }
  .footer__grid { grid-template-columns: 1fr 1.4fr; }
  .footer dl { grid-template-columns: repeat(4, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
