/* =========================================================================
   AO Luxor — single stylesheet. No build step, no framework.
   Mobile-first. Every rule here is also safe under a CSP without
   'unsafe-inline' — there are no inline styles anywhere in the HTML.
   ========================================================================= */

@font-face {
  font-family: 'Source Serif 4';
  src: url('/fonts/source-serif-4-latin.woff2') format('woff2');
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --navy-900: #0B1F3A;
  --navy-700: #16355C;
  --gold-500: #C9A227;
  --gold-400: #E0BE4E;
  --sand-50:  #FAF7F0;
  --ink-900:  #121820;
  --ink-500:  #4A5568;
  --white:    #FFFFFF;
  --radius:   14px;
  --shadow:   0 8px 30px rgba(11, 31, 58, 0.10);

  --line:     #E4E7EC;
  --danger:   #B3261E;
  --ok:       #1B6E3C;

  --serif: 'Source Serif 4', 'Iowan Old Style', 'Palatino Linotype', Palatino,
           'Book Antiqua', Georgia, 'Times New Roman', serif;
  --sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue',
          Arial, 'Noto Sans', sans-serif;

  --wrap: 1120px;
  --gutter: 20px;
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink-900);
  background: var(--white);
}

img { max-width: 100%; height: auto; }

h1, h2, h3, .wordmark {
  font-family: var(--serif);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0 0 0.5em;
}

h1 { font-size: clamp(1.95rem, 6.2vw, 3.25rem); }
h2 { font-size: clamp(1.5rem, 4.2vw, 2.25rem); }
h3 { font-size: 1.22rem; }

p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

a { color: var(--navy-700); text-decoration: underline; text-underline-offset: 2px; }
a:hover { color: var(--navy-900); }

/* Focus rings must be visible everywhere — this is an accessibility
   acceptance criterion, not a preference. */
:focus-visible {
  outline: 3px solid var(--gold-500);
  outline-offset: 2px;
  border-radius: 4px;
}

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

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--white);
  color: var(--navy-900);
  padding: 12px 18px;
  z-index: 100;
  border-radius: 0 0 var(--radius) 0;
}
.skip-link:focus { left: 0; }

/* ---------------------------- Buttons ----------------------------------- */

.btn {
  display: inline-block;
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  padding: 15px 26px;
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
  transition: background-color .15s ease, transform .1s ease;
}
.btn:active { transform: translateY(1px); }

/* Gold is reserved for primary calls to action. Nothing else. */
.btn--gold {
  background: var(--gold-500);
  color: var(--navy-900);
}
.btn--gold:hover { background: var(--gold-400); color: var(--navy-900); }

.btn--ghost {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.45);
}
.btn--ghost:hover { background: rgba(255, 255, 255, 0.10); color: var(--white); }

.btn--block { display: block; width: 100%; }
.btn[disabled] { opacity: .6; cursor: progress; }

/* ---------------------------- Header ------------------------------------ */

.masthead {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--navy-900);
  border-bottom: 1px solid rgba(255, 255, 255, 0.10);
}
.masthead__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 62px;
  padding: 8px var(--gutter);
  max-width: var(--wrap);
  margin: 0 auto;
}
.wordmark {
  font-size: 1.22rem;
  margin: 0;
  color: var(--white);
  text-decoration: none;
  letter-spacing: .01em;
  white-space: nowrap;
}
.wordmark:hover { color: var(--white); }
.wordmark span { color: var(--gold-500); }

.masthead__actions { display: flex; align-items: center; gap: 14px; }
.masthead__tel {
  color: var(--white);
  font-weight: 600;
  font-size: .95rem;
  text-decoration: none;
  white-space: nowrap;
}
.masthead__tel:hover { color: var(--gold-400); }
.masthead .btn { padding: 11px 18px; font-size: .95rem; }

/* Below 560px the header keeps the phone link and drops the button — the hero
   CTA is a few pixels away and the phone number is the higher-value action. */
@media (max-width: 559px) {
  .masthead .btn { display: none; }
}

/* ---------------------------- Hero -------------------------------------- */

.hero {
  background: var(--navy-900);
  color: var(--white);
  padding: 34px 0 30px;
}
.hero h1 { color: var(--white); margin-bottom: .45em; }
.hero__sub {
  color: rgba(255, 255, 255, 0.86);
  font-size: 1.04rem;
  max-width: 44ch;
  margin-bottom: 22px;
}
.hero__cta { display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.hero__cta .btn--gold { width: 100%; max-width: 340px; }
.hero__call { color: rgba(255, 255, 255, 0.9); font-size: .98rem; }
.hero__call a { color: var(--gold-400); font-weight: 600; }

.trust {
  list-style: none;
  margin: 26px 0 0;
  padding: 18px 0 0;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 16px;
  font-size: .93rem;
  color: rgba(255, 255, 255, 0.9);
}
.trust li { display: flex; align-items: flex-start; gap: 8px; }
.trust li::before {
  content: '';
  flex: 0 0 auto;
  width: 7px;
  height: 7px;
  margin-top: .55em;
  border-radius: 50%;
  background: var(--gold-500);
}

@media (min-width: 768px) {
  .hero { padding: 64px 0 56px; }
  .hero__sub { font-size: 1.12rem; }
  .hero__cta { flex-direction: row; align-items: center; gap: 22px; }
  .hero__cta .btn--gold { width: auto; }
  .trust { grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 40px; }
}

/* ---------------------------- Sections ---------------------------------- */

.section { padding: 48px 0; }
.section--sand { background: var(--sand-50); }
.section__head { max-width: 62ch; margin-bottom: 30px; }
.section__head p { color: var(--ink-500); }

@media (min-width: 768px) {
  .section { padding: 76px 0; }
}

.eyebrow {
  font-family: var(--sans);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--navy-700);
  margin: 0 0 10px;
}
.eyebrow::after {
  content: '';
  display: block;
  width: 34px;
  height: 3px;
  margin-top: 9px;
  background: var(--gold-500);
  border-radius: 2px;
}

/* ---------------------------- Cards ------------------------------------- */

.cards {
  display: grid;
  gap: 18px;
  grid-template-columns: 1fr;
}
@media (min-width: 768px) {
  .cards { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
}

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 26px 24px;
}
.card h3 { margin-bottom: .4em; }
.card p { color: var(--ink-500); margin: 0; }
.section--sand .card { border-color: #EDE6D6; }

/* ---------------------------- Steps ------------------------------------- */

.steps {
  list-style: none;
  counter-reset: step;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 22px;
  grid-template-columns: 1fr;
}
@media (min-width: 768px) {
  .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 30px; }
}
.steps li { counter-increment: step; padding-top: 4px; }
.steps li::before {
  content: counter(step);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  margin-bottom: 14px;
  font-family: var(--serif);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--navy-900);
  background: var(--gold-500);
  border-radius: 50%;
}
.steps h3 { margin-bottom: .35em; }
.steps p { color: var(--ink-500); margin: 0; }

/* ---------------------------- Why / bullets ----------------------------- */

.why { display: grid; gap: 28px; grid-template-columns: 1fr; }
@media (min-width: 900px) {
  .why { grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
}

.ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.ticks li {
  position: relative;
  padding-left: 32px;
  color: var(--ink-900);
}
.ticks li::before {
  content: '';
  position: absolute;
  left: 4px;
  top: .42em;
  width: 9px;
  height: 16px;
  border-right: 3px solid var(--gold-500);
  border-bottom: 3px solid var(--gold-500);
  transform: rotate(45deg);
}

/* ---------------------------- FAQ --------------------------------------- */

.faq { max-width: 74ch; }
.faq details {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin-bottom: 12px;
  overflow: hidden;
}
.faq summary {
  cursor: pointer;
  padding: 18px 46px 18px 20px;
  font-weight: 700;
  font-size: 1.02rem;
  position: relative;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '';
  position: absolute;
  right: 22px;
  top: 50%;
  width: 9px;
  height: 9px;
  margin-top: -6px;
  border-right: 2.5px solid var(--navy-700);
  border-bottom: 2.5px solid var(--navy-700);
  transform: rotate(45deg);
  transition: transform .15s ease;
}
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq .faq__body { padding: 0 20px 20px; color: var(--ink-500); }
.faq .faq__body p:last-child { margin-bottom: 0; }

/* ---------------------------- Form -------------------------------------- */

.quote { display: grid; gap: 28px; grid-template-columns: 1fr; }
@media (min-width: 980px) {
  .quote { grid-template-columns: 1fr minmax(0, 520px); gap: 56px; align-items: start; }
}

.form-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px 20px 26px;
  width: 100%;
  max-width: 520px;
}
@media (min-width: 560px) {
  .form-card { padding: 32px 30px 34px; }
}
.form-card h2 { font-size: 1.5rem; }
.form-card__intro { color: var(--ink-500); font-size: .98rem; margin-bottom: 22px; }

.field { margin-bottom: 16px; }
.field > label {
  display: block;
  font-size: .9rem;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--ink-900);
}
.field .req { color: var(--danger); }
.field .hint { font-weight: 400; color: var(--ink-500); }

.field input,
.field select {
  width: 100%;
  font-family: inherit;
  font-size: 1rem;
  color: var(--ink-900);
  background: var(--white);
  padding: 13px 14px;
  border: 1.5px solid #CBD2DC;
  border-radius: 10px;
  appearance: none;
}
.field select {
  /* Chevron drawn with a gradient pair so there is no external image and no
     inline style — keeps the CSP clean. */
  background-image:
    linear-gradient(45deg, transparent 50%, var(--ink-500) 50%),
    linear-gradient(135deg, var(--ink-500) 50%, transparent 50%);
  background-position: calc(100% - 20px) calc(50% + 2px), calc(100% - 14px) calc(50% + 2px);
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  padding-right: 40px;
}
.field input:focus, .field select:focus { border-color: var(--navy-700); }
.field input::placeholder { color: #98A2B3; }

.field.is-invalid input,
.field.is-invalid select { border-color: var(--danger); }
.field__error { display: none; color: var(--danger); font-size: .85rem; margin-top: 5px; font-weight: 600; }
.field.is-invalid .field__error { display: block; }

.field-row { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 480px) {
  .field-row { grid-template-columns: 1fr 1fr; }
}
.field-row .field { margin-bottom: 16px; }

/* Honeypot. Off-screen rather than display:none — some bots skip hidden
   inputs but happily fill a field that is merely positioned away. */
.hp {
  position: absolute !important;
  left: -9999px !important;
  top: auto !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

/* ---- Consent ---- */

.consents { margin: 22px 0 18px; display: grid; gap: 14px; }

.consent {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #FCFCFD;
}
.consent input[type="checkbox"] {
  width: 22px;
  height: 22px;
  margin: 1px 0 0;
  accent-color: var(--navy-700);
  flex: 0 0 auto;
}
.consent label {
  font-size: .9rem;
  line-height: 1.55;
  color: var(--ink-900);
  cursor: pointer;
}
.consent--sms { background: var(--sand-50); border-color: #EADFC7; }
.consent__tag {
  display: block;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink-500);
  margin-bottom: 5px;
}
/* The disclosure itself. Real selectable text at a legible size — never an
   image, never smaller than this. Carrier reviewers screenshot this block. */
.consent-copy { display: block; }
.consent.is-invalid { border-color: var(--danger); background: #FEF4F3; }
.consent .field__error { display: none; }
.consent.is-invalid .field__error { display: block; }

.form-status { margin: 0 0 14px; font-size: .93rem; font-weight: 600; min-height: 1px; }
.form-status.is-error { color: var(--danger); }
.form-status.is-busy  { color: var(--ink-500); }
.form-status.is-info  { color: var(--navy-700); }

.form-foot { margin: 12px 0 0; font-size: .84rem; color: var(--ink-500); text-align: center; }

.form-done {
  border: 1px solid #BFE0CB;
  background: #F2FAF5;
  border-radius: var(--radius);
  padding: 24px;
}
.form-done h3 { color: var(--ok); }
.form-done p:last-child { margin-bottom: 0; }

/* ---------------------------- Legal pages ------------------------------- */

.legal { padding: 36px 0 60px; }
.legal__inner { max-width: 74ch; }
.legal h1 { font-size: clamp(1.8rem, 5vw, 2.6rem); }
.legal .updated { color: var(--ink-500); font-size: .92rem; margin-bottom: 30px; }
.legal h2 {
  font-size: 1.32rem;
  margin-top: 2em;
  padding-top: .3em;
  scroll-margin-top: 80px;
}
.legal h3 { font-size: 1.05rem; margin-top: 1.6em; }
.legal ul, .legal ol { padding-left: 22px; margin: 0 0 1.1em; }
.legal li { margin-bottom: .5em; }
.legal .toc {
  background: var(--sand-50);
  border: 1px solid #EDE6D6;
  border-radius: var(--radius);
  padding: 20px 22px 20px 40px;
  margin-bottom: 8px;
}
.legal .toc li { margin-bottom: .35em; }
.callout {
  border-left: 4px solid var(--gold-500);
  background: var(--sand-50);
  padding: 18px 20px;
  border-radius: 0 var(--radius) var(--radius) 0;
  margin: 0 0 1.2em;
}
.carriers { font-size: .95rem; color: var(--ink-500); }

/* ---------------------------- Thank you --------------------------------- */

.ty { padding: 56px 0 72px; }
.ty__inner { max-width: 62ch; }
.ty__badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: var(--sand-50);
  border: 1px solid #EADFC7;
  color: var(--navy-900);
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 7px 14px;
  border-radius: 999px;
  margin-bottom: 18px;
}
.ty ol { padding-left: 22px; }
.ty ol li { margin-bottom: .6em; }
.ty__sms {
  border-left: 4px solid var(--gold-500);
  background: var(--sand-50);
  padding: 18px 20px;
  border-radius: 0 var(--radius) var(--radius) 0;
  margin: 26px 0;
}

/* ---------------------------- Footer ------------------------------------ */

.footer {
  background: var(--navy-900);
  color: rgba(255, 255, 255, 0.82);
  padding: 44px 0 34px;
  font-size: .93rem;
}
.footer a { color: var(--white); }
.footer a:hover { color: var(--gold-400); }
.footer__top {
  display: grid;
  gap: 26px;
  grid-template-columns: 1fr;
  padding-bottom: 26px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}
@media (min-width: 768px) {
  .footer__top { grid-template-columns: 1.2fr 1fr 1fr; gap: 40px; }
}
.footer .wordmark { font-size: 1.15rem; display: inline-block; margin-bottom: 10px; }
.footer h2 {
  font-family: var(--sans);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 12px;
}
.footer address { font-style: normal; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.footer__legal {
  margin-top: 24px;
  font-size: .8rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.66);
}
.footer__legal p { margin-bottom: .8em; }

/* A token that still needs a real value. Deliberately loud — a TKTK must
   never survive to production unnoticed. */
.tktk {
  background: #FFE8A3;
  color: #6B4E00;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: .9em;
  font-weight: 700;
  padding: 0 5px;
  border-radius: 3px;
  white-space: nowrap;
}
