/* ==========================================================================
   AllAuction home — UI/UX refinement layer
   Visual-only overrides for index.html. Loaded last so it wins the cascade.
   No selectors here change behaviour; they only restyle existing markup.

   Tokens
   --ux-navy     #082756  Pavilion navy   (one navy; replaces #00335e drift)
   --ux-night    #051a3b  Night session   (dark sections)
   --ux-amber    #f7aa21  Floodlight      (fills, accents on navy)
   --ux-amber-ink#9a5b00  Floodlight ink  (amber text on light: AA contrast)
   --ux-chalk    #f5f7fa  Outfield chalk  (alternate section ground)
   --ux-ink      #1b2a41  Body ink
   --ux-slate    #546378  Secondary text

   Signature: the "stumps" mark (three stumps + bails) set before every
   section eyebrow. It is the only decorative device on the page.
   ========================================================================== */

:root {
  --ux-navy: #082756;
  --ux-night: #051a3b;
  --ux-amber: #f7aa21;
  --ux-amber-ink: #9a5b00;
  --ux-chalk: #f5f7fa;
  --ux-ink: #1b2a41;
  --ux-slate: #546378;
  --ux-line: #dde4ee;

  --ux-h2: clamp(30px, 19px + 1.9vw, 42px);
  --ux-lead: clamp(16px, 15.4px + 0.2vw, 17px);
  --ux-sec-y: clamp(56px, 40px + 3.5vw, 96px);
  --ux-measure: 62ch;
}

/* ---------- Base ---------------------------------------------------------- */

html {
  scroll-behavior: smooth;
}

body.page-home {
  /* index-new.css ships a demo rule `body{display:grid;place-content:center}`.
     On phones the grid track grows to the widest section (≈524px on a 375px
     screen), pushing every section off both edges where it gets clipped. */
  display: block;
  color: var(--ux-ink);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.page-home ::selection {
  background: var(--ux-amber);
  color: var(--ux-night);
}

body.page-home section[id] {
  scroll-margin-top: 24px;
}

/* Visible, consistent keyboard focus everywhere */
body.page-home a:focus-visible,
body.page-home button:focus-visible,
body.page-home [role="button"]:focus-visible,
body.page-home [tabindex]:focus-visible,
body.page-home summary:focus-visible,
body.page-home .accordion-button:focus-visible {
  outline: 3px solid var(--ux-amber) !important;
  outline-offset: 3px !important;
  box-shadow: 0 0 0 6px rgba(8, 39, 86, 0.18) !important;
  border-radius: 8px;
}

body.page-home input:focus-visible,
body.page-home textarea:focus-visible,
body.page-home select:focus-visible {
  outline: 2px solid var(--ux-navy) !important;
  outline-offset: 1px !important;
}

/* ---------- Section rhythm ------------------------------------------------ */
/* One vertical rhythm for content sections (inline paddings ranged 20–80px). */

body.page-home .services-section,
body.page-home #about,
body.page-home .why-choose-section,
body.page-home .aa-how-works-sec,
body.page-home .auction-f,
body.page-home .pricing-new-section,
body.page-home #inquiry,
body.page-home .video-testimonials-section,
body.page-home .faq-auction,
body.page-home .top-slients-m {
  padding-top: var(--ux-sec-y) !important;
  padding-bottom: var(--ux-sec-y) !important;
}

/* Alternate grounds so neighbouring sections read as separate chapters */
body.page-home #about,
body.page-home .aa-how-works-sec,
body.page-home .pricing-new-section,
body.page-home .top-slients-m {
  background: #ffffff !important;
}

body.page-home .services-section,
body.page-home .why-choose-section,
body.page-home .auction-f,
body.page-home .faq-auction,
body.page-home #inquiry,
body.page-home .video-testimonials-section {
  background: var(--ux-chalk) !important;
}

body.page-home #about,
body.page-home .why-choose-section {
  border-color: var(--ux-line) !important;
}

/* ---------- Section headings: one scale, one voice ----------------------- */

body.page-home .main-t-day .auction-heading,
body.page-home .services-title,
body.page-home #about h2,
body.page-home .why-choose-section h2,
body.page-home .aa-how-works-sec .section-title,
body.page-home .LED-HEAD h2,
body.page-home .Af-head h2,
body.page-home .pricing-new-section .top-header h2,
body.page-home .inquiry-title,
body.page-home .vt-header h2,
body.page-home .faq-header-block h2,
body.page-home .clients-header-block h2 {
  font-family: 'Oswald', sans-serif !important;
  font-size: var(--ux-h2) !important;
  font-weight: 700 !important;
  line-height: 1.1 !important;
  letter-spacing: 0.01em !important;
  text-transform: uppercase !important;
  color: var(--ux-navy) !important;
  text-wrap: balance;
  margin-bottom: 0.45em !important;
}

/* Smaller strip heading: the live-auction rail is a utility, not a chapter */
body.page-home .main-t-day .auction-heading {
  font-size: clamp(22px, 18px + 0.8vw, 27px) !important;
  animation: none !important;
}

/* Keep headline colour single — no one-word accent colour */
body.page-home .services-title span,
body.page-home .inquiry-title span {
  color: inherit !important;
}

/* Dark-ground headings share the same family and scale, slightly larger */
body.page-home .auction-cta-section .cta-title,
body.page-home .Get-app-main .promo-title,
body.page-home .cta-host h2 {
  font-family: 'Oswald', sans-serif !important;
  font-size: clamp(32px, 20px + 2.3vw, 48px) !important;
  line-height: 1.08 !important;
  letter-spacing: 0.01em !important;
  text-wrap: balance;
}

/* ---------- Eyebrows with the stumps mark -------------------------------- */

body.page-home #about .about-text-content > span:first-child,
body.page-home .why-choose-section .badge,
body.page-home .aa-how-works-sec .section-header .badge,
body.page-home .pricing-new-section .top-header .label,
body.page-home .inquiry-badge,
body.page-home .promo-badge,
body.page-home .faq-header-block .badge,
body.page-home .clients-header-block .badge {
  display: inline-flex !important;
  align-items: flex-end !important;
  gap: 10px !important;
  background: none !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  padding: 0 !important;
  margin: 0 0 14px 0 !important;
  font-family: 'Poppins', sans-serif !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  letter-spacing: 0 !important;
  line-height: 1 !important;
  text-transform: none !important;
  color: var(--ux-amber-ink) !important;
}

body.page-home #about .about-text-content > span:first-child::before,
body.page-home .why-choose-section .badge::before,
body.page-home .aa-how-works-sec .section-header .badge::before,
body.page-home .pricing-new-section .top-header .label::before,
body.page-home .inquiry-badge::before,
body.page-home .promo-badge::before,
body.page-home .faq-header-block .badge::before,
body.page-home .clients-header-block .badge::before {
  content: "";
  flex: none;
  width: 14px;
  height: 16px;
  /* bails on top, three stumps below */
  background:
    linear-gradient(var(--ux-amber), var(--ux-amber)) 0 0 / 100% 2px no-repeat,
    linear-gradient(var(--ux-amber), var(--ux-amber)) 0 4px / 2.5px 12px no-repeat,
    linear-gradient(var(--ux-amber), var(--ux-amber)) 5.75px 4px / 2.5px 12px no-repeat,
    linear-gradient(var(--ux-amber), var(--ux-amber)) 11.5px 4px / 2.5px 12px no-repeat;
}

/* On the navy app section, the label sits on dark */
body.page-home .promo-badge {
  color: var(--ux-amber) !important;
}

/* ---------- Lead paragraphs: readable measure, sentence case ------------- */

body.page-home .services-desc,
body.page-home .why-choose-section .text-center > p:last-of-type,
body.page-home .aa-how-works-sec .section-subtitle,
body.page-home .Af-head > p:nth-of-type(2),
body.page-home .pricing-new-section .top-header > p,
body.page-home .vt-header p,
body.page-home .auction-cta-section .cta-subtitle,
body.page-home .cta-host p {
  font-family: 'Poppins', sans-serif !important;
  font-size: var(--ux-lead) !important;
  font-weight: 400 !important;
  line-height: 1.65 !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
  max-width: var(--ux-measure) !important;
  margin-left: auto !important;
  margin-right: auto !important;
  text-wrap: pretty;
}

body.page-home .services-desc,
body.page-home .why-choose-section .text-center > p:last-of-type,
body.page-home .aa-how-works-sec .section-subtitle,
body.page-home .Af-head > p:nth-of-type(2),
body.page-home .pricing-new-section .top-header > p,
body.page-home .vt-header p {
  color: var(--ux-slate) !important;
}

/* Sub-headlines that sat in amber caps on white (≈1.9:1 contrast) */
body.page-home .why-choose-section .text-center > p:first-of-type,
body.page-home .Af-head > p:first-of-type {
  font-family: 'Poppins', sans-serif !important;
  font-size: 17px !important;
  font-weight: 600 !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
  color: var(--ux-ink) !important;
  margin: 0 auto 10px !important;
  max-width: var(--ux-measure) !important;
}

/* About copy: left-aligned body text with a proper measure */
body.page-home #about .about-text-content p {
  max-width: 60ch;
  font-size: 16px !important;
  line-height: 1.7 !important;
  color: var(--ux-slate) !important;
  margin-bottom: 14px !important;
}

body.page-home #about .about-text-content p:first-of-type {
  font-size: var(--ux-lead) !important;
  color: var(--ux-ink) !important;
  font-weight: 400 !important;
}

body.page-home #about .about-text-content p:last-of-type {
  margin-bottom: 28px !important;
}

body.page-home .hero .hero-description {
  font-size: var(--ux-lead) !important;
  line-height: 1.65 !important;
  max-width: 56ch;
}

/* Inquiry intro */
body.page-home .inquiry-desc {
  font-size: 16px !important;
  line-height: 1.7 !important;
  color: var(--ux-slate) !important;
  max-width: 52ch;
  text-transform: none !important;
}

body.page-home .Get-app-main .promo-desc {
  font-size: 16px !important;
  line-height: 1.7 !important;
  max-width: 60ch;
  text-transform: none !important;
}

/* ---------- Hero: quick-start formats ------------------------------------ */

/* Fluid hero headline: 46px fixed wrapped to 4 lines on small laptops */
body.page-home .hero h1 {
  font-size: clamp(30px, 22px + 1.6vw, 46px) !important;
  line-height: 1.12 !important;
  letter-spacing: 0.005em;
  text-wrap: balance;
}

body.page-home .hero .cta-demo-btn {
  height: 48px !important;
  padding: 0 26px !important;
  font-size: 15px !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
}

body.page-home .hero-quick {
  margin-top: 28px;
  max-width: 560px;
  width: 100%;
}

/* Divider: hairline — label — hairline */
body.page-home .hero-quick-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  color: rgba(255, 255, 255, 0.6);
  font-family: 'Poppins', sans-serif;
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
}

body.page-home .hero-quick-divider::before,
body.page-home .hero-quick-divider::after {
  content: "";
  height: 1px;
  background: rgba(255, 255, 255, 0.16);
  flex: 1;
}

body.page-home .hero-quick-divider::before {
  flex: 0 0 0;
}

body.page-home .hero-quick-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

body.page-home .hero-quick-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.05);
  color: #e8eef7 !important;
  font-family: 'Poppins', sans-serif;
  font-size: 13.5px;
  font-weight: 500;
  line-height: 1.2;
  text-decoration: none !important;
  transition: background-color .2s ease, border-color .2s ease, color .2s ease;
}

body.page-home .hero-quick-btn i {
  color: var(--ux-amber);
  font-size: 13px;
  width: 14px;
  text-align: center;
}

body.page-home .hero-quick-btn:hover,
body.page-home .hero-quick-btn:focus-visible {
  background: rgba(247, 170, 33, 0.12);
  border-color: rgba(247, 170, 33, 0.55);
  color: #ffffff !important;
}

@media (max-width: 768px) {
  body.page-home .hero-quick {
    margin-left: auto;
    margin-right: auto;
  }

  body.page-home .hero-quick-divider::before {
    flex: 1;
  }

  body.page-home .hero-quick-links {
    justify-content: center;
  }
}

/* Phones: two-column grid of equal buttons is easier to tap than a ragged wrap */
@media (max-width: 480px) {
  /* Hero stacked 20px + container + column padding (≈88px total) on phones */
  body.page-home .hero {
    padding-left: 4px !important;
    padding-right: 4px !important;
  }

  body.page-home .hero-quick-links {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  body.page-home .hero-quick-btn {
    justify-content: flex-start;
    text-align: left;
    border-radius: 12px;
    font-size: 13px;
    padding: 10px 12px;
    min-height: 48px;
  }

  body.page-home .hero-quick-btn span {
    flex: 1;
    min-width: 0;
  }

  body.page-home .hero-quick-btn:first-child {
    grid-column: 1 / -1;
    justify-content: center;
  }
}

/* ---------- Primary buttons: consistent target size ---------------------- */

body.page-home #book_free_demo,
body.page-home .cta-host .cta-button {
  min-height: 48px;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px !important;
  font-size: 15px !important;
  border-radius: 8px !important;
}

/* ---------- Feature tiles: read as buttons that open details ------------- */

body.page-home .auction-f .livesore {
  position: relative;
  border: 1px solid var(--ux-line) !important;
  border-radius: 12px !important;
  background: #ffffff !important;
  box-shadow: 0 1px 0 rgba(8, 39, 86, 0.04) !important;
  padding: 18px 48px 18px 18px !important;
  min-height: 72px !important;
  transition: border-color .2s ease, background-color .2s ease, transform .2s ease !important;
}

/* "+" cue: each tile opens a detail panel */
body.page-home .auction-f .livesore::after {
  content: "\f067";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 11px;
  color: var(--ux-navy);
  background: var(--ux-chalk);
  transition: background-color .2s ease, color .2s ease;
}

body.page-home .auction-f .livesore:hover,
body.page-home .auction-f .livesore:focus-visible {
  border-color: var(--ux-amber) !important;
  background: #fffaf0 !important;
  transform: translateY(-2px) !important;
}

body.page-home .auction-f .livesore:hover::after,
body.page-home .auction-f .livesore:focus-visible::after {
  background: var(--ux-amber);
  color: var(--ux-night);
}

body.page-home .auction-f .lititle {
  justify-content: flex-start !important;
  font-size: 15px !important;
  line-height: 1.35 !important;
  color: var(--ux-navy) !important;
}

body.page-home .auction-f .lititle i {
  flex: none;
  width: 36px !important;
  height: 36px !important;
  border-radius: 10px;
  display: inline-grid !important;
  place-items: center;
  background: rgba(8, 39, 86, 0.06);
  font-size: 15px !important;
}

body.page-home .auction-f .livesore:hover .lititle i {
  transform: none !important;
  color: var(--ux-amber-ink) !important;
}

/* ---------- FAQ: larger hit areas, readable open state ------------------ */

body.page-home .faq-auction .accordion-item-header {
  font-size: 16px !important;
  line-height: 1.4 !important;
  min-height: 56px;
  cursor: pointer;
}

body.page-home .faq-auction .accordion-item-header.active {
  color: var(--ux-amber-ink) !important;
}

body.page-home .faq-auction .accordion-item-body-content {
  font-size: 15.5px !important;
  line-height: 1.7 !important;
  color: var(--ux-slate) !important;
  max-width: 75ch;
}

/* ---------- Clients disclaimer: legible small print --------------------- */

body.page-home .top-slients-m p {
  max-width: 80ch;
  margin-left: auto;
  margin-right: auto;
}

/* ---------- Legibility floor --------------------------------------------- */
/* Many supporting labels sat at 10–11.5px; lift them to 12.5–13px. */

body.page-home .service-card-text,
body.page-home .why-choose-section .col-12 p,
body.page-home .why-choose-section [class*="col"] p,
body.page-home .aa-wave-points li,
body.page-home .trust-sub,
body.page-home .vt-card p,
body.page-home .client-disclaimer {
  font-size: 13px !important;
  line-height: 1.6 !important;
}

body.page-home .why-choose-section .text-center > p:last-of-type {
  font-size: var(--ux-lead) !important;
}

body.page-home .btn-service-action,
body.page-home .counter-title,
body.page-home .vt-ig-badge,
body.page-home #inquiry .form-label,
body.page-home #inquiry .small-title,
body.page-home #inquiry .small-text,
body.page-home .video-testimonials-section span[style] {
  font-size: 12.5px !important;
}

body.page-home .Get-app-main .sub-text {
  font-size: 11px !important;
}

body.page-home .self-lang-btn {
  height: 30px !important;
  padding: 0 12px !important;
  font-size: 12px !important;
}

/* Slider dots: bigger tap area without changing the visual dot */
body.page-home .services-slider-dot {
  position: relative;
}

body.page-home .services-slider-dot::after {
  content: "";
  position: absolute;
  inset: -10px -6px;
}

/* ---------- Timeline on phones: step pill sits above the title ----------- */

@media (max-width: 991px) {
  body.page-home .aa-how-works-sec .aa-wave-title::before {
    display: table !important;
    font-size: 10px !important;
    padding: 3px 8px !important;
    margin-bottom: 8px !important;
    letter-spacing: 0.04em !important;
  }

  body.page-home .aa-how-works-sec .aa-wave-title {
    line-height: 1.2 !important;
  }
}

/* ---------- Enquiry form ------------------------------------------------- */
/* 16px inputs stop iOS Safari from zooming the page on focus. */

body.page-home #inquiry .custom-inquiry-input {
  font-size: 16px !important;
  min-height: 46px;
}

body.page-home #inquiry textarea.custom-inquiry-input {
  min-height: 96px;
}

/* ---------- Stats counters: columns never grow past the screen ----------- */

@media (max-width: 575px) {
  body.page-home .counter-section .row {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 12px !important;
  }

  body.page-home .counter-section .row > div {
    margin: 0 !important;
    padding: 0 !important;
  }

  /* Icon above the figure: side-by-side clipped "Upcoming auction" */
  body.page-home .counter-section .counter-box {
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
    gap: 8px !important;
    padding: 16px 10px !important;
    height: auto !important;
    min-height: 0 !important;
    margin: 0 !important;
  }

  body.page-home .counter-section .counter-info {
    width: 100%;
    height: auto !important;
    align-items: center !important;
    text-align: center !important;
  }

  body.page-home .counter-section .counter-title {
    white-space: normal !important;
    overflow: visible !important;
    text-overflow: clip !important;
  }
}

body.page-home .counter-section .counter-box,
body.page-home .counter-section .counter-info {
  min-width: 0;
}

body.page-home .counter-section .counter {
  overflow-wrap: anywhere;
}

/* ---------- Mobile ------------------------------------------------------- */

@media (max-width: 767px) {
  body.page-home .auction-f .livesore {
    margin-bottom: 10px !important;
  }

  body.page-home .services-desc,
  body.page-home .why-choose-section .text-center > p:last-of-type,
  body.page-home .aa-how-works-sec .section-subtitle,
  body.page-home .Af-head > p:nth-of-type(2),
  body.page-home .pricing-new-section .top-header > p,
  body.page-home .vt-header p {
    text-align: center;
  }
}

/* ---------- Reduced motion ---------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  body.page-home *,
  body.page-home *::before,
  body.page-home *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  body.page-home .animate-left,
  body.page-home .animate-right {
    transform: none !important;
    opacity: 1 !important;
  }
}
