/* All Things Flooring
   Type system follows ascanielectric.com: Inter Tight (600–800) for headings with
   tight tracking, Inter for body, small uppercase labels with wide tracking, and
   bold uppercase buttons. Colors are sampled from the All Things Flooring logo. */

:root {
  --navy: #03203a;
  --navy-deep: #001629;
  --navy-soft: #0d3557;
  --gold: #f8b858;
  --gold-deep: #eea63a;
  --tan: #e8b878;
  --cream: #f8ecd4;
  --wash: #faf5ec;
  --text: #22344a;
  --muted: #5b6678;
  --line: #e9e1d2;
  --line-soft: #efeae0;

  --display: "Inter Tight", "Inter", system-ui, -apple-system, sans-serif;
  --body: "Inter", system-ui, -apple-system, sans-serif;
  --radius: 6px;
  --radius-lg: 14px;
  --header-h: 72px;

  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 8px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font: 400 1rem/1.6 var(--body);
  color: var(--text);
  background: #fff;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
h1, h2, h3, h4, p, ul, ol, dl, dd, figure { margin: 0; }
h1, h2, h3, h4 { font-family: var(--display); color: var(--navy); letter-spacing: -0.02em; }
ul, ol { padding: 0; list-style: none; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
:focus-visible { outline: 3px solid var(--gold-deep); outline-offset: 3px; }
html.quiz-open { overflow: hidden; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.i {
  width: 1.25em; height: 1.25em; flex: none;
  fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}
.skip { position: fixed; z-index: 100; top: 8px; left: 8px; padding: .75rem 1rem; background: #fff; border-radius: var(--radius); transform: translateY(-200%); }
.skip:focus { transform: none; }
.container { width: min(100% - 2.5rem, 76rem); margin-inline: auto; }

/* ---------- type helpers ---------- */
.eyebrow {
  font: 600 .75rem/1 var(--body);
  text-transform: uppercase;
  letter-spacing: .15em;
  color: var(--gold-deep);
}
.accent-bar { display: block; width: 48px; height: 2px; background: var(--gold-deep); margin: 0 auto 1.25rem; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  min-height: 3rem; padding: .5rem 2rem;
  border: 1px solid transparent; border-radius: var(--radius);
  font: 700 .9375rem/1.1 var(--body);
  letter-spacing: .005em;
  transition: background-color .18s, border-color .18s, color .18s, transform .18s, box-shadow .18s;
  white-space: nowrap;
}
.btn .i { width: 1.1em; height: 1.1em; stroke-width: 2.4; transition: transform .18s; }
.btn:hover .i { transform: translateX(3px); }
.btn-gold { background: var(--gold); color: var(--navy); box-shadow: 0 8px 20px -10px rgba(238, 166, 58, .9); }
.btn-gold:hover { background: var(--gold-deep); }
.btn-gold:active { transform: translateY(1px); }
.btn-ghost-light { color: rgba(255, 255, 255, .88); border-color: rgba(255, 255, 255, .3); }
.btn-ghost-light:hover { color: #fff; border-color: rgba(255, 255, 255, .55); background: rgba(255, 255, 255, .08); }
.btn-sm { min-height: 2.75rem; padding: .5rem 1.2rem; font-size: .78rem; }
.btn-lg { min-height: 3.5rem; padding: .5rem 2.25rem; font-size: 1rem; }
.btn[disabled] { opacity: .55; cursor: not-allowed; box-shadow: none; }

/* =========================================================
   Header + hero, from Claude Design. Two directions, picked by the class
   on <html>: .hero-a = "navy wash", .hero-c = "left gradient".
   Shared rules first, then each direction. Once one is chosen, delete the
   other direction's rules and the review tools (review.js).
   ========================================================= */
.atf {
  --atf-navy: #03203a;
  --atf-navy-deep: #001629;
  --atf-gold: #f8b858;
  --atf-gold-dark: #eea63a;
  --atf-tan: #e8b878;
  --atf-cream: #f8ecd4;
  --atf-head: var(--display);
  --atf-body: var(--body);
  --atf-gutter: clamp(24px, 5.6vw, 80px);
  font-family: var(--atf-body);
  color: #fff;
}
.atf-container { width: 100%; max-width: calc(1280px + 2 * var(--atf-gutter)); margin-inline: auto; padding-inline: var(--atf-gutter); }
@media (min-width: 768px) { :root { --header-h: 92px; } }

/* Header: transparent over the hero; turns solid navy once you scroll so
   "Get Estimate" stays reachable. */
.atf-header { position: fixed; inset: 0 0 auto 0; z-index: 30; transition: background-color .25s ease, box-shadow .25s ease; }
.atf-header.is-scrolled { background: var(--atf-navy-deep); box-shadow: 0 10px 30px -18px rgba(0, 0, 0, .7); }
.atf-header__inner { height: var(--header-h); display: flex; align-items: center; gap: 40px; }
.atf-logo { display: block; flex: none; line-height: 0; border-radius: 4px; }
.atf-logo img { display: block; width: auto; height: 64px; }
.atf-nav { display: flex; align-items: center; gap: 36px; margin-left: auto; }
.atf-nav a { padding: 10px 0; color: rgba(255, 255, 255, .86); font: 600 13px/1 var(--atf-body); letter-spacing: .14em; text-transform: uppercase; white-space: nowrap; transition: color .15s ease; }
.atf-nav a:hover { color: #fff; }

.atf-btn { display: inline-flex; align-items: center; justify-content: center; gap: 12px; height: 56px; padding: 0 28px; border: 1.5px solid transparent; border-radius: 6px; font: 700 16px/1 var(--atf-body); letter-spacing: .005em; white-space: nowrap; cursor: pointer; transition: background-color .15s ease, border-color .15s ease, color .15s ease; }
.atf-btn svg { flex: none; width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .15s ease; }
.atf-btn--gold { background: var(--atf-gold); color: var(--atf-navy); }
.atf-btn--gold:hover { background: var(--atf-gold-dark); }
.atf-btn--gold:hover .atf-arrow { transform: translateX(3px); }
.atf-btn--line { border-color: rgba(255, 255, 255, .55); color: #fff; }
.atf-btn--line:hover { border-color: #fff; background: rgba(255, 255, 255, .08); }
.atf-btn--sm { height: 46px; padding: 0 22px; font-size: 14px; }
.atf-btn:focus-visible, .atf-nav a:focus-visible, .atf-logo:focus-visible { outline: 3px solid var(--atf-cream); outline-offset: 3px; }

.atf-eyebrow { margin: 0; color: var(--atf-tan); font: 600 13px/1.2 var(--atf-body); letter-spacing: .14em; text-transform: uppercase; }
.atf-headline { margin: 0; color: #fff; font-family: var(--atf-head); font-weight: 700; letter-spacing: -.025em; line-height: 1.05; filter: drop-shadow(0 10px 8px rgb(0 0 0 / .04)) drop-shadow(0 4px 3px rgb(0 0 0 / .1)); }
.atf-headline span { display: block; }
.atf-accent { color: var(--atf-gold); }
.atf-subline { margin: 0; color: rgba(255, 255, 255, .92); font: 400 21px/1.5 var(--atf-body); }
.atf-trust { display: flex; align-items: center; gap: 12px; margin: 0; color: rgba(255, 255, 255, .8); font: 600 12px/1 var(--atf-body); letter-spacing: .14em; text-transform: uppercase; }
.atf-stars { display: block; flex: none; width: 92px; height: 16px; fill: var(--atf-gold); }

.atf-hero { position: relative; isolation: isolate; overflow: hidden; display: flex; flex-direction: column; min-height: 100vh; min-height: 100svh; background: var(--atf-navy); }
.atf-hero__photo { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
.atf-hero__shade { position: absolute; inset: 0; z-index: -1; }
.atf-hero__content { flex: 1; display: flex; flex-direction: column; justify-content: center; padding-top: calc(var(--header-h) + 40px); }
.atf-hero .atf-subline { margin-top: 26px; }
.atf-actions { display: flex; flex-wrap: wrap; }

/* ---------- Direction A: one even navy wash, centered copy ---------- */
.hero-a .atf-hero__photo { object-position: 50% 60%; filter: brightness(.76) saturate(1.65) sepia(.06); }
.hero-a .atf-hero__shade { background: linear-gradient(180deg, rgba(3, 32, 58, .92) 0, rgba(3, 32, 58, .8) var(--header-h), rgba(3, 32, 58, 0) 280px), rgba(3, 32, 58, .52); }
.hero-a .atf-hero__content { align-items: center; text-align: center; padding-bottom: 80px; }
.hero-a .atf-hero .atf-eyebrow { padding: 9px 18px; border: 1px solid rgba(232, 184, 120, .5); border-radius: 999px; }
.hero-a .atf-hero .atf-headline { margin-top: 30px; font-size: clamp(58px, 8.6vw, 128px); }
.hero-a .atf-hero .atf-subline { max-width: 34ch; }
.hero-a .atf-actions { justify-content: center; gap: 16px; margin-top: 44px; }
.hero-a .atf-hero .atf-trust { margin-top: 30px; }

/* ---------- Direction C: navy from the left, photo clear on the right ---------- */
.hero-c .atf-header__inner { gap: 56px; }
.hero-c .atf-nav { margin-left: 0; }
.hero-c .atf-header .atf-btn--sm { margin-left: auto; }
.hero-c .atf-hero { background: var(--atf-navy-deep); }
.hero-c .atf-hero__photo { object-position: 72% 55%; }
.hero-c .atf-hero__shade { background: linear-gradient(90deg, rgba(0, 22, 41, .96) 0%, rgba(0, 22, 41, .93) 26%, rgba(1, 25, 46, .8) 38%, rgba(2, 28, 51, .5) 50%, rgba(3, 32, 58, .2) 60%, rgba(3, 32, 58, 0) 70%); }
.hero-c .atf-hero__content { align-items: flex-start; padding-bottom: 88px; }
.hero-c .atf-accent { color: inherit; }
.hero-c .atf-hero .atf-headline { margin-top: 26px; font-size: clamp(56px, 8.2vw, 120px); }
.hero-c .atf-hero .atf-subline { max-width: 21em; color: rgba(255, 255, 255, .9); }
.hero-c .atf-actions { gap: 14px; margin-top: 40px; }
.hero-c .atf-hero .atf-trust { margin-top: 32px; }
@media (min-width: 900px) and (max-width: 1199px) {
  .hero-c .atf-hero__shade { background: linear-gradient(90deg, rgba(0, 22, 41, .96) 0%, rgba(0, 22, 41, .93) 40%, rgba(1, 25, 46, .82) 54%, rgba(2, 28, 51, .5) 66%, rgba(3, 32, 58, .18) 76%, rgba(3, 32, 58, 0) 86%); }
}

/* ---------- Tablet and phone ---------- */
@media (max-width: 899px) {
  .atf-nav { display: none; }
  .atf-header .atf-btn--sm { margin-left: auto; }
  /* C: photo on top, navy rises from the bottom. The photo band is sized by
     the *visible* screen (svh, which counts Safari's toolbars), so the copy
     and both buttons fit above the fold on iPhones. */
  .hero-c .atf-hero { --atf-photo-h: clamp(240px, 46vh, 520px); --atf-photo-h: clamp(240px, 46svh, 520px); }
  .hero-c .atf-hero__photo { height: var(--atf-photo-h); object-position: 62% 100%; }
  .hero-c .atf-hero__shade { background:
      linear-gradient(180deg, rgba(0, 22, 41, .55) 0, rgba(0, 22, 41, 0) 120px),
      linear-gradient(180deg, rgba(0, 22, 41, 0) calc(var(--atf-photo-h) - 250px), rgba(0, 22, 41, .6) calc(var(--atf-photo-h) - 160px), rgba(0, 22, 41, .9) calc(var(--atf-photo-h) - 80px), var(--atf-navy-deep) var(--atf-photo-h)); }
  .hero-c .atf-hero__content { justify-content: flex-start; padding-top: calc(var(--atf-photo-h) - 90px); padding-bottom: 40px; }
}
@media (max-width: 767px) {
  /* Kept from earlier feedback: smaller logo and a compact header button on phones. */
  .atf-logo img { height: 42px; }
  .atf-header__inner { justify-content: space-between; }
  .atf-btn--sm { height: 36px; padding: 0 14px; font-size: 13px; letter-spacing: .005em; }
  .atf-hide-sm { display: none; }
  .atf-actions { flex-direction: column; align-self: stretch; gap: 12px; }
  .atf-actions .atf-btn { width: 100%; }
  .atf-hero .atf-trust { margin-top: 24px; }

  .hero-a .atf-hero__photo { object-position: 64% 50%; }
  .hero-a .atf-hero__content { padding-top: calc(var(--header-h) + 28px); padding-bottom: 48px; }
  .hero-a .atf-hero .atf-eyebrow { padding: 8px 14px; font-size: 12px; letter-spacing: .12em; }
  .hero-a .atf-hero .atf-headline { margin-top: 24px; font-size: clamp(50px, 17vw, 66px); }
  .hero-a .atf-hero .atf-subline { margin-top: 18px; font-size: 18px; }
  .hero-a .atf-actions { margin-top: 32px; }

  .hero-c .atf-hero__content { padding-bottom: 36px; }
  .hero-c .atf-hero .atf-eyebrow { font-size: 12px; letter-spacing: .12em; }
  .hero-c .atf-hero .atf-headline { margin-top: 14px; font-size: clamp(48px, 16vw, 64px); }
  .hero-c .atf-hero .atf-subline { margin-top: 14px; font-size: 18px; }
  .hero-c .atf-actions { margin-top: 24px; gap: 10px; }
  .hero-c .atf-hero .atf-trust { margin-top: 20px; }
}


/* ---------- sections ---------- */
.section { padding: 3.5rem 0; }
.section-wash { background: var(--wash); }
.section-head { max-width: 40rem; margin: 0 auto 2.75rem; text-align: center; }
.section-head h2, .cta-band h2 {
  font-size: clamp(2rem, 4.2vw, 3rem);
  font-weight: 700; line-height: 1.1; letter-spacing: -0.025em;
}
.section-head p { margin-top: .9rem; font-size: 1.0625rem; color: var(--muted); }
@media (min-width: 960px) {
  .section { padding: 6.5rem 0; }
  .section-head { margin-bottom: 3.5rem; }
}

/* ---------- services ---------- */
.service-grid { display: grid; gap: 1rem; grid-template-columns: 1fr; }
.service-card {
  position: relative; isolation: isolate; overflow: hidden;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-lg);
  background: var(--navy);
  color: #fff;
  box-shadow: 0 18px 40px -26px rgba(3, 32, 58, .6);
}
.service-card img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2, .7, .2, 1); }
.service-card::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(0, 22, 41, 0) 30%, rgba(0, 22, 41, .55) 62%, rgba(0, 22, 41, .92) 100%);
}
.service-card:hover img { transform: scale(1.05); }
.service-body { position: absolute; left: 0; right: 0; bottom: 0; padding: 1.35rem 1.35rem 1.25rem; }
.service-body h3 { color: #fff; font-size: 1.375rem; font-weight: 700; line-height: 1.1; }
.service-body p { margin-top: .4rem; font-size: .9rem; line-height: 1.45; color: rgba(255, 255, 255, .78); }
/* The whole card opens the estimate quiz with that flooring type picked. */
.service-link { position: absolute; inset: 0; z-index: 1; border-radius: inherit; }
.service-link:focus-visible { outline: none; }
.service-card:has(.service-link:focus-visible) { outline: 3px solid var(--gold-deep); outline-offset: 3px; }
@media (min-width: 560px) { .service-grid { grid-template-columns: 1fr 1fr; } .service-card { aspect-ratio: 4 / 4.4; } }
@media (min-width: 1000px) { .service-grid { grid-template-columns: repeat(4, 1fr); gap: 1.25rem; } .service-card { aspect-ratio: 3 / 4; } }

/* ---------- plank texture (echoes the planks in the logo) ---------- */
.planks { position: relative; isolation: isolate; overflow: hidden; }
.planks::before {
  content: ""; position: absolute; inset: -50%; z-index: -1;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='320' height='80'%3E%3Cg stroke='%23ffffff' stroke-opacity='.06' fill='none'%3E%3Cpath d='M0 .5h320M0 40.5h320M.5 0v40M160.5 40v40'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 320px 80px;
  transform: rotate(-12deg);
  -webkit-mask-image: radial-gradient(ellipse 60% 70% at 70% 50%, #000 0%, transparent 75%);
  mask-image: radial-gradient(ellipse 60% 70% at 70% 50%, #000 0%, transparent 75%);
  pointer-events: none;
}

/* ---------- process (compact, after Ascani's: flat circles, one solid line) ---------- */
.section-compact { padding: 3.5rem 0; }
.section-compact .section-head { margin-bottom: 2.25rem; }
.section-compact .section-head h2 { font-size: clamp(1.625rem, 2.6vw, 1.875rem); }
.section-compact .section-head p { margin-top: .5rem; font-size: .875rem; }
.process { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 1.75rem 1rem; max-width: 64rem; margin: 0 auto; }
.process li { display: flex; flex-direction: column; align-items: center; text-align: center; }
.process li:last-child:nth-child(odd) { grid-column: 1 / -1; } /* lone 5th step sits centered */
.step-icon {
  position: relative; z-index: 1; display: grid; place-items: center;
  width: 56px; height: 56px; margin-bottom: 1rem; border-radius: 50%;
  background: #fff; color: var(--navy); border: 1px solid var(--line);
}
.step-icon .i { width: 20px; height: 20px; }
.step-num {
  position: absolute; top: -6px; right: -6px;
  display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%;
  background: var(--gold); color: var(--navy); font: 700 .75rem/1 var(--body);
}
.process h3 { font-size: .875rem; font-weight: 600; }
.process p { max-width: 11rem; margin-top: .25rem; font-size: .75rem; line-height: 1.6; color: var(--muted); }
@media (min-width: 760px) {
  .section-compact { padding: 3.5rem 0 3.75rem; }
  .process { grid-template-columns: repeat(5, 1fr); gap: 1rem; }
  .process::before { content: ""; position: absolute; left: 10%; right: 10%; top: 27px; height: 2px; background: var(--line); }
  .process li:last-child:nth-child(odd) { grid-column: auto; }
  .process p { max-width: none; }
}

/* ---------- FAQ ---------- */
.faq-list { max-width: 48rem; margin: 0 auto; border-top: 1px solid var(--line); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1.15rem 0; cursor: pointer; list-style: none;
  font: 600 1rem/1.35 var(--display); color: var(--navy); letter-spacing: -.01em;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary .i { color: var(--gold-deep); transition: transform .2s; }
.faq-list details[open] summary .i { transform: rotate(180deg); }
.faq-list details p { padding: 0 2.5rem 1.25rem 0; font-size: .9375rem; color: var(--muted); line-height: 1.7; }
@media (min-width: 960px) { .faq-list summary { padding: 1.35rem 0; font-size: 1.0625rem; } .faq-list details p { font-size: 1rem; } }

/* ---------- CTA band ---------- */
.cta-band { background: var(--navy); color: rgba(255, 255, 255, .78); padding: 4rem 0; text-align: center; scroll-margin-top: var(--header-h); }
.cta-band.planks::before { -webkit-mask-image: radial-gradient(ellipse 70% 80% at 50% 50%, #000 0%, transparent 80%); mask-image: radial-gradient(ellipse 70% 80% at 50% 50%, #000 0%, transparent 80%); }
.cta-inner { display: flex; flex-direction: column; align-items: center; }
.cta-band h2 { color: #fff; }
.cta-band p { max-width: 34rem; margin-top: 1rem; font-size: 1.0625rem; }
.cta-actions { display: flex; flex-direction: column; gap: .75rem; width: 100%; max-width: 22rem; margin-top: 2rem; }
.cta-actions .i { width: 1.1em; height: 1.1em; }
.btn-call .i { stroke-width: 2; }
.btn-call:hover .i { transform: none; }
@media (min-width: 560px) { .cta-actions { flex-direction: row; justify-content: center; max-width: none; width: auto; } }
@media (min-width: 960px) { .cta-band { padding: 5rem 0; } }

/* ---------- footer ---------- */
.site-footer { background: var(--navy-deep); color: rgba(255, 255, 255, .6); font-size: .9375rem; }
.footer-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem 1.5rem; padding: 3rem 0 2.25rem; }
.footer-brand { grid-column: 1 / -1; }
.footer-brand img { width: 112px; }
.footer-brand p { margin-top: 1rem; max-width: 22rem; line-height: 1.6; }
.site-footer h4 {
  margin-bottom: 1.1rem;
  font: 600 .75rem/1 var(--display); text-transform: uppercase; letter-spacing: .12em;
  color: rgba(255, 255, 255, .72);
}
.site-footer li + li { margin-top: .55rem; }
.site-footer a:hover { color: #fff; }
.footer-bottom {
  display: flex; flex-wrap: wrap; justify-content: center; text-align: center; gap: .35rem 1.5rem;
  padding: 1.5rem 0;
  border-top: 1px solid rgba(255, 255, 255, .1);
  font-size: .8125rem; color: rgba(255, 255, 255, .45);
}
@media (min-width: 800px) {
  .footer-grid { grid-template-columns: 1.6fr 1fr 1fr; gap: 2.5rem; padding: 4rem 0 3rem; }
  .footer-brand { grid-column: auto; }
  .footer-brand img { width: 150px; }
  .footer-bottom { justify-content: space-between; text-align: left; padding-bottom: 1.5rem; }
}


/* =========================================================
   Estimate quiz (popup)
   ========================================================= */
.quiz {
  width: 100%; height: 100%; max-width: 100vw; max-height: 100dvh;
  margin: 0; padding: 0; border: 0;
  background: transparent;
  overflow: hidden;
}
.quiz[open] { display: grid; place-items: center; animation: quiz-fade .2s ease; }
.quiz::backdrop { background: rgba(0, 22, 41, .62); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
@keyframes quiz-fade { from { opacity: 0; } }
.quiz-card {
  position: relative;
  width: 100%; height: 100%;
  overflow-y: auto; overscroll-behavior: contain;
  background: #fff; color: var(--text);
  display: flex; flex-direction: column;
}
.quiz-top {
  position: sticky; top: 0; z-index: 2;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  min-height: 60px; padding: .5rem .75rem .5rem 1rem;
  background: #fff;
}
.quiz-back {
  justify-self: start; display: inline-flex; align-items: center; gap: .35rem;
  padding: .55rem .6rem .55rem .35rem; border-radius: var(--radius);
  font: 600 .875rem var(--body); color: var(--muted);
}
.quiz-back .i { width: 18px; height: 18px; }
.quiz-back:hover { color: var(--navy); background: var(--wash); }
.quiz-back[hidden] { display: inline-flex; visibility: hidden; }
.quiz-count { font: 600 .72rem/1 var(--body); text-transform: uppercase; letter-spacing: .14em; color: var(--muted); }
.quiz-close {
  justify-self: end; display: grid; place-items: center;
  width: 42px; height: 42px; border-radius: 50%;
  color: var(--navy); background: var(--wash);
  transition: background-color .15s;
}
.quiz-close:hover { background: var(--cream); }
.quiz-close .i { width: 20px; height: 20px; }
.quiz-progress { height: 4px; background: var(--line-soft); }
.quiz-progress span { display: block; height: 100%; width: 0; background: var(--gold-deep); border-radius: 0 4px 4px 0; transition: width .35s ease; }
.quiz-body { padding: 1.75rem 1.25rem 2rem; flex: 1; }
@media (min-width: 640px) {
  /* Pinned near the top so the card only grows downward between steps. */
  .quiz { padding: max(1.5rem, 7vh) 1.5rem 1.5rem; }
  .quiz[open] { align-items: start; }
  .quiz-card {
    width: min(100%, 620px); height: auto; max-height: calc(100dvh - max(1.5rem, 7vh) - 1.5rem);
    border-radius: 18px;
    box-shadow: 0 40px 90px -30px rgba(0, 0, 0, .55);
  }
  .quiz-top { border-radius: 18px 18px 0 0; padding-inline: 1.25rem 1rem; }
  .quiz-body { padding: 2rem 2.25rem 2.25rem; }
}

.q-eyebrow { display: block; margin-bottom: .7rem; }
.q-title {
  font: 700 clamp(1.5rem, 4.6vw, 1.875rem)/1.15 var(--display);
  letter-spacing: -.025em; color: var(--navy);
}
.q-title:focus { outline: none; }
.q-sub { margin-top: .55rem; color: var(--muted); font-size: .975rem; }
.q-options { margin-top: 1.5rem; }

/* step 1: icon cards, like simplyfloorz.com's quiz */
.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; }
.tile {
  position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: .55rem;
  padding: 1rem; border: 2px solid var(--line); border-radius: 12px; background: #fff; text-align: left;
  transition: border-color .15s, background-color .15s;
}
.tile:hover { border-color: var(--tan); background: #fffdf8; }
.tile .tile-icon { width: 24px; height: 24px; color: var(--gold-deep); }
.tile .t { font: 500 1rem/1.25 var(--body); color: var(--navy); }
.tile .tick {
  position: absolute; top: .65rem; right: .65rem;
  display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%;
  background: var(--navy); color: #fff; opacity: 0; transform: scale(.6); transition: opacity .15s, transform .15s;
}
.tile .tick .i { width: 12px; height: 12px; stroke-width: 3; }
.tile[aria-pressed="true"] { border-color: var(--navy); background: var(--wash); }
.tile[aria-pressed="true"] .tick { opacity: 1; transform: none; }

/* list choices */
.opts { display: grid; gap: .65rem; }
.opt {
  display: flex; align-items: center; gap: .9rem; width: 100%;
  padding: .85rem 1rem; min-height: 64px;
  border: 1.5px solid var(--line); border-radius: 12px; background: #fff;
  text-align: left; font: 600 1.0625rem/1.25 var(--display); color: var(--navy); letter-spacing: -.01em;
  transition: border-color .15s, background-color .15s, box-shadow .15s;
}
.opt:hover { border-color: var(--tan); background: #fffdf8; }
.opt .dot { display: grid; place-items: center; flex: none; width: 40px; height: 40px; border-radius: 50%; background: var(--wash); color: var(--navy); transition: background-color .15s, color .15s; }
.opt .dot .i { width: 19px; height: 19px; }
.opt .chev { margin-left: auto; width: 18px; height: 18px; color: var(--muted); }
.opt[aria-pressed="true"] { border-color: var(--navy); background: var(--wash); box-shadow: 0 0 0 1.5px var(--navy); }
.opt[aria-pressed="true"] .dot { background: var(--navy); color: var(--gold); }

/* contact form */
.q-form { margin-top: 1.5rem; }
.fields { display: grid; gap: .75rem; }
.field-row { display: grid; grid-template-columns: 1fr 7.5rem; gap: .75rem; }
.field { position: relative; display: block; }
.field .fi { position: absolute; left: 1rem; top: 1.6rem; transform: translateY(-50%); width: 18px; height: 18px; color: var(--muted); pointer-events: none; }
.field input {
  width: 100%; height: 3.2rem; padding: 0 1rem 0 2.8rem;
  border: 1.5px solid var(--line); border-radius: 10px; background: #fff;
  font: 500 1rem var(--body); color: var(--navy);
  transition: border-color .15s, box-shadow .15s;
}
.field-zip input { padding-left: 1rem; }
.field input::placeholder { color: #8b94a3; font-weight: 400; }
.field input:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(248, 184, 88, .45); }
.field input[aria-invalid="true"] { border-color: #c2410c; }
.field .err { display: block; margin-top: .3rem; font-size: .8125rem; color: #b4380a; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.q-submit { width: 100%; margin-top: 1.25rem; min-height: 3.5rem; font-size: 1rem; }
.reassure { display: flex; align-items: center; justify-content: center; gap: .4rem; margin-top: .9rem; font-size: .8125rem; color: var(--muted); }
.reassure .i { width: 14px; height: 14px; }

/* result screens */
.result { text-align: center; }
.crest {
  display: grid; place-items: center; width: 64px; height: 64px; margin: 0 auto 1.1rem;
  border-radius: 50%; background: var(--wash); color: var(--navy); border: 1.5px solid var(--tan);
}
.crest .i { width: 30px; height: 30px; stroke-width: 2.4; }
.result.warn .crest { color: var(--gold-deep); }
.result .q-sub { max-width: 30rem; margin-inline: auto; }
.booking { position: relative; min-height: 720px; margin: 1.5rem -.5rem 0; }
.booking iframe { width: 100%; min-height: 720px; border: 0; overflow: hidden; opacity: 0; transition: opacity .2s; }
.booking.loaded iframe { opacity: 1; }
.booking-skeleton { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: flex-start; gap: .8rem; padding-top: 6rem; color: var(--muted); font-size: .9375rem; }
.booking.loaded .booking-skeleton { display: none; }
.spinner { width: 30px; height: 30px; border-radius: 50%; border: 3px solid var(--line); border-top-color: var(--gold-deep); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.recap { margin: 1.25rem 0 0; border: 1px solid var(--line); border-radius: 12px; text-align: left; overflow: hidden; }
.recap div { display: flex; justify-content: space-between; gap: 1rem; padding: .7rem 1rem; font-size: .9rem; }
.recap div + div { border-top: 1px solid var(--line-soft); }
.recap dt { color: var(--muted); }
.recap dd { font-weight: 600; color: var(--navy); text-align: right; }
.result-actions { display: flex; flex-direction: column; align-items: center; gap: .5rem; margin-top: 1.5rem; }
.link-btn { padding: .6rem 1rem; font: 600 .875rem var(--body); color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }
.link-btn:hover { color: var(--navy); }

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

/* Even out short centered lines so no word is left alone on the last line. */
.atf-subline, .section-head p, .process p, .cta-band p, .service-body p { text-wrap: balance; }

/* =========================================================
   Review tools (temporary; see review.js): hero A/C switch + font picker
   ========================================================= */
/* Picked fonts: their own headline tracking, and never a faked bold. */
html[data-font] { font-synthesis-weight: none; }
html[data-font] :is(h1, h2, h3, h4, .atf-headline, .q-title) { letter-spacing: var(--head-track); }
html[data-font="dmserif"] :is(h1, h2, h3, h4, .atf-headline, .q-title) { font-weight: 400; }

.review-bar {
  position: fixed; right: 16px; bottom: 16px; z-index: 40;
  display: flex; flex-direction: column; align-items: flex-end; gap: 8px;
  font: 700 12px/1 system-ui, -apple-system, "Segoe UI", sans-serif;
}
.rv-pill {
  display: inline-flex; align-items: center; gap: .5rem;
  border-radius: 999px; background: #001629; color: #fff; border: 1.5px solid #f8b858;
  box-shadow: 0 12px 30px -12px rgba(0, 0, 0, .55);
  letter-spacing: .04em; white-space: nowrap;
}
.rv-hero { padding: 11px 16px; text-transform: uppercase; font: inherit; letter-spacing: .06em; }
.rv-font { padding: 4px; gap: 2px; }
.rv-font-name { padding: 0 8px; }
.rv-step { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: #f8b858; color: #03203a; font: 800 20px/1 system-ui, sans-serif; padding-bottom: 2px; }
.rv-step:hover { background: #eea63a; }
.review-bar b { color: #f8b858; }
.rv-short { display: none; }
@media (max-width: 767px) {
  /* One compact row on phones, short font names. */
  .review-bar { right: 10px; bottom: 10px; flex-direction: row; align-items: center; gap: 6px; font-size: 11px; }
  .rv-hero { padding: 10px 12px; }
  .rv-long { display: none; }
  .rv-short { display: inline; }
  .rv-step { width: 28px; height: 28px; }
}

