/* Quick Ashford e-invoicing landing page
   Same design system as audit.quickashford.com.
   Palette: brand navy, gold accent, ink, white, one cool pale band, one hairline.
   Colours sampled from the Quick Ashford master logo (navy #05336d, gold #fdc611).
   Type: Poppins throughout, weight does the hierarchy. */

:root {
  --brand: #05336d;
  --brand-deep: #03254f;
  --accent: #fdc611;
  --accent-deep: #e6b100;
  --error: #b42318;
  --ink: #161a1d;
  --ink-soft: #3d4247;
  --muted: #6b7076;
  --band: #f3f5f8;
  --rule: #d8dde5;
  --white: #ffffff;
  --focus: #05336d;

  --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; color: var(--brand-deep); }
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); }

/* Clear the sticky header when a section is deep linked (sitelinks use these) */
#quote, #deadlines, #services, #process, #faq { scroll-margin-top: 88px; }

.eyebrow {
  font-size: 0.875rem;
  color: var(--brand);
  font-weight: 600;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before { content: ""; width: 22px; height: 3px; background: var(--accent); 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:not(.eyebrow) { 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--brand { background: var(--brand); color: var(--white); border-color: var(--brand); }
.btn--brand:hover { background: var(--brand-deep); border-color: var(--brand-deep); }
.btn--ink { background: transparent; color: var(--brand); border-color: var(--brand); }
.btn--ink:hover { background: var(--brand); color: var(--white); }
.btn--white { background: var(--white); color: var(--brand); border-color: var(--white); }
.btn--white:hover { background: #e6ecf5; border-color: #e6ecf5; }
.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--accent { background: var(--accent); color: var(--brand-deep); border-color: var(--accent); }
.btn--accent:hover { background: var(--accent-deep); border-color: var(--accent-deep); }
.btn--block { width: 100%; }
.btn[aria-disabled="true"], .btn:disabled { opacity: .6; cursor: progress; }

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

/* Call and WhatsApp pair repeated through the page */
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.actions .btn { flex: 1 1 200px; }

/* 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: 68px; gap: 12px; }
.header__logo { display: block; }
.header__logo img { height: 44px; 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(--brand); }
.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; }
.header__book { display: none; }

/* Hero
   On phones the form sits straight after the headline so it is in view
   without scrolling; the trust bullets and buttons follow it. On desktop
   the copy runs down the left and the form sits on the right. */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  padding: 24px 0 48px;
  background: var(--brand-deep); color: var(--white);
}
/* Dubai skyline photo under a navy overlay. On phones the photo only sits
   behind the headline and fades to solid navy behind the form. */
.hero__bg { position: absolute; top: 0; left: 0; right: 0; height: min(100%, 900px); z-index: -2; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(3,37,79,.62) 0%, rgba(3,37,79,.84) 380px, var(--brand-deep) 880px);
}
.hero__grid { display: grid; gap: 24px; grid-template-areas: "intro" "form" "more"; }
.hero__intro { grid-area: intro; }
.hero__more { grid-area: more; }
.hero .eyebrow { color: var(--white); }
.hero h1 { color: var(--white); max-width: 13em; }
.hero__intro .lede { margin-top: 12px; color: rgba(255,255,255,.9); }
.hero__rating { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 14px; font-size: .9375rem; font-weight: 500; }
.hero__rating .stars svg { width: 16px; height: 16px; }
.trust { list-style: none; margin: 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(--accent); }
.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: rgba(255,255,255,.72); }
.hero__more :focus-visible, .cta :focus-visible { outline-color: var(--accent); }

/* Lead form */
.lead {
  grid-area: form;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--rule);
  border-top: 3px solid var(--accent);
  box-shadow: 0 12px 32px rgba(0,0,0,.18);
  border-radius: var(--radius);
  padding: 20px 18px 18px;
}
.lead__head h2 { font-size: 1.3rem; }
.lead__head p { margin-top: 6px; color: var(--muted); font-size: .9375rem; }
.lead form { margin-top: 16px; 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: 84px; 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(--brand); outline: 3px solid rgba(5,51,109,.2); outline-offset: 0; }
.field input[aria-invalid="true"], .field select[aria-invalid="true"] { border-color: var(--error); }
.field__error { font-size: .8125rem; color: var(--error); 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: #fdf0ef; color: var(--error); border: 1px solid #f2c9c5; }
.form-status a { font-weight: 600; }

/* Photos (Unsplash License, no people) */
.media { margin: 0; border-radius: var(--radius); overflow: hidden; background: var(--rule); aspect-ratio: 16 / 10; }
.media img { width: 100%; height: 100%; object-fit: cover; }
.head-media { display: grid; gap: 24px; margin-bottom: 32px; }
.head-media .section-head { margin-bottom: 0; }
.split__aside .media { margin-top: 22px; }

/* Phase checker: one question, shows the visitor's dates, pre-fills the form */
.deadlines__top { display: grid; gap: 24px; margin-bottom: 32px; }
.deadlines__top .section-head { margin-bottom: 0; }
.phase { background: var(--white); border: 1px solid var(--rule); border-top: 3px solid var(--brand); border-radius: var(--radius); padding: 20px; }
.phase[hidden], .phase__result[hidden] { display: none; }
.phase h3 { font-size: 1.2rem; }
.phase > p { margin-top: 4px; color: var(--muted); font-size: .9375rem; }
.phase__options { display: grid; gap: 8px; margin-top: 14px; }
.phase__opt {
  font: 600 .9375rem/1.2 var(--body); min-height: 48px; padding: 10px 12px;
  border: 1.5px solid var(--brand); background: var(--white); color: var(--brand);
  border-radius: var(--radius); cursor: pointer;
  transition: background-color .15s ease, color .15s ease;
}
.phase__opt:hover { background: #e6ecf5; }
.phase__opt[aria-pressed="true"] { background: var(--brand); color: var(--white); }
.phase__result { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--rule); display: grid; gap: 14px; }
.phase__result p { color: var(--ink-soft); }
.phase__result strong { color: var(--brand-deep); font-weight: 600; }
.timeline li { transition: opacity .2s ease; }
.timeline.has-match li:not(.is-match) { opacity: .4; }

/* Deadline timeline: four dates in order, the next one set apart */
.countdown {
  display: inline-flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px;
  margin-top: 18px; padding: 12px 16px;
  background: var(--white); border: 1px solid var(--rule); border-left: 3px solid var(--accent);
  border-radius: var(--radius);
}
.countdown[hidden] { display: none; }
.countdown__unit { font-weight: 500; color: var(--ink-soft); }
.countdown__unit strong { font-family: var(--display); font-size: 1.5rem; font-weight: 600; color: var(--brand-deep); font-variant-numeric: tabular-nums; margin-right: 4px; }
.countdown__lbl { font-size: .9375rem; color: var(--ink-soft); }

.timeline { list-style: none; margin: 0; padding: 0; display: grid; }
.timeline li { border-top: 1px solid var(--rule); padding: 20px 0; display: grid; gap: 6px; align-content: start; position: relative; }
.timeline li:last-child { border-bottom: 1px solid var(--rule); }
.timeline time { font-family: var(--display); font-weight: 600; font-size: 1.45rem; line-height: 1.1; letter-spacing: -0.015em; color: var(--brand-deep); }
.timeline .who { font-size: .9375rem; font-weight: 600; }
.timeline p { color: var(--ink-soft); }
.timeline li.is-next { background: var(--white); border: 1px solid var(--rule); border-top: 3px solid var(--brand); border-radius: var(--radius); padding: 20px; margin-bottom: 8px; }
.timeline li.is-next::before { content: ""; position: absolute; top: -3px; left: 20px; width: 56px; height: 3px; background: var(--accent); }
.tag { justify-self: start; font-size: .8125rem; font-weight: 600; color: var(--brand-deep); background: #fff3c4; border-radius: 999px; padding: 3px 10px; }
.timeline__note { margin-top: 20px; font-size: .9375rem; color: var(--ink-soft); max-width: 48em; }

/* 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: -2px; left: 0; width: 28px; height: 3px; background: var(--accent); }
.why li:last-child { border-bottom: 1px solid var(--rule); }
.why p { color: var(--ink-soft); }

/* Two-column section: sticky aside on the left, content on the right */
.split { display: grid; gap: 32px; }
.split__aside p:not(.eyebrow) { margin-top: 12px; color: var(--ink-soft); }
.split__aside > .btn { margin-top: 20px; }

/* Independence note in "How we help" */
.callout { position: relative; margin-top: 24px; padding: 20px 0 0; border-top: 1px solid var(--brand); }
.callout::before { content: ""; position: absolute; top: -2px; left: 0; width: 56px; height: 3px; background: var(--accent); }
.callout h3 { font-size: 1.1rem; }
.split__aside .callout p { margin-top: 8px; }

/* Process: numbered because readiness is a sequence */
.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(--brand); color: var(--brand);
  font-family: var(--display); font-size: 1rem; font-weight: 600;
  display: grid; place-items: center;
}
.steps li:last-child::before { background: var(--brand); border-color: var(--brand); color: var(--white); }
.steps h3 { margin-bottom: 6px; }
.steps p { color: var(--ink-soft); }

/* FAQ */
.faq { border-top: 1px solid var(--rule); }
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary {
  list-style: none; cursor: pointer; position: relative;
  padding: 18px 40px 18px 0;
  font-family: var(--display); font-weight: 600; font-size: 1.05rem; line-height: 1.35; color: var(--brand-deep);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 6px; top: 50%; width: 10px; height: 10px; margin-top: -8px;
  border-right: 2px solid var(--brand); border-bottom: 2px solid var(--brand); transform: rotate(45deg);
  transition: transform .15s ease;
}
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq summary:hover { color: var(--brand); }
.faq__a { padding: 0 0 20px; color: var(--ink-soft); max-width: 44em; }

/* 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(--accent); 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(--accent); }
.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 { position: relative; isolation: isolate; overflow: hidden; background: var(--brand); color: var(--white); padding: 56px 0; }
.cta__bg { position: absolute; inset: 0; z-index: -2; }
.cta__bg img { width: 100%; height: 100%; object-fit: cover; object-position: center 60%; }
.cta::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(5,51,109,.94) 0%, rgba(5,51,109,.84) 55%, rgba(5,51,109,.6) 100%); }
.cta h2 { color: var(--white); }
.cta .btn--white { background: var(--accent); border-color: var(--accent); color: var(--brand-deep); }
.cta .btn--white:hover { background: var(--accent-deep); border-color: var(--accent-deep); }
.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: 44px; 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(--brand); }
.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: 84px; height: 84px; 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; }
  .why { grid-template-columns: 1fr 1fr; column-gap: 40px; }
  .why li:nth-last-child(2) { border-bottom: 1px solid var(--rule); }
  .why--single { grid-template-columns: 1fr; }
  .why--single li:nth-last-child(2) { border-bottom: 0; }
  .phase__options { grid-template-columns: repeat(3, 1fr); }
  .timeline { grid-template-columns: 1fr 1fr; column-gap: 24px; row-gap: 0; }
  .timeline li.is-next { grid-column: 1 / -1; }
  .timeline 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; }
  .lead { padding: 24px 20px 20px; }
  .lead__head h2 { font-size: 1.4rem; }
}

@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; }
  #quote, #deadlines, #services, #process, #faq { scroll-margin-top: 96px; }
  .header__inner { height: 76px; }
  .header__logo img { height: 54px; }
  .header__book { display: inline-flex; }
  .hero { padding: 48px 0 80px; }
  .hero__bg { height: 100%; }
  .hero::before { background: linear-gradient(90deg, rgba(3,37,79,.93) 0%, rgba(3,37,79,.84) 45%, rgba(3,37,79,.62) 100%); }
  .head-media { grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
  .deadlines__top { grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
  .hero__grid {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
    grid-template-rows: auto 1fr;
    grid-template-areas: "intro form" "more form";
    column-gap: 56px; row-gap: 24px; align-items: start;
  }
  .hero__intro .lede { margin-top: 18px; }
  .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; }
  .timeline { grid-template-columns: 1.25fr 1fr 1fr 1fr; column-gap: 0; }
  .timeline li { padding: 22px 24px 22px 0; border-bottom: 1px solid var(--rule); }
  .timeline li + li { padding-left: 24px; border-left: 1px solid var(--rule); }
  .timeline li.is-next { grid-column: auto; margin: 0 24px 0 0; padding: 22px; }
  .timeline li.is-next + li { border-left: 0; padding-left: 0; }
  .split { grid-template-columns: .8fr 1.2fr; gap: 64px; align-items: start; }
  .split__aside { position: sticky; top: 108px; }
  .actions .btn { flex: 0 1 auto; }
  .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; }
}

