/* =========================================================
   landing.css - Group gateway ("preview") overrides
   Matches the Advanced Cleaning website: Instrument Sans
   typography + the Advanced red accent (already in main.css).
   Loaded only on landing/ pages. Logo unchanged.
   ========================================================= */

/* Font to match Advanced Cleaning (Instrument Sans throughout) */
:root {
  --font-sans: "Instrument Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* Condense the primary nav to fit the 10 group tabs */
.site-header .primary-nav { gap: var(--space-4); }
.site-header .primary-nav__link { font-size: 0.94rem; }

/* Header "Get a quote" CTA (red pill) shown on desktop */
.header-quote-btn {
  display: none;
  align-items: center;
  gap: 6px;
  background: var(--color-brand-red);
  color: #fff;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 10px 18px;
  border-radius: 999px;
  white-space: nowrap;
}
.header-quote-btn:hover { background: var(--color-brand-red-dark); color: #fff; }
@media (min-width: 1025px) { .header-quote-btn { display: inline-flex; } }

/* Client logo / trusted-by strip */
.logo-strip {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-4);
}
@media (min-width: 620px) { .logo-strip { grid-template-columns: repeat(3, 1fr); } }
.logo-chip {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--space-5);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-ink-secondary);
  font-size: 0.9rem;
  min-height: 82px;
}

/* Timeline chip for About */
.year-badge {
  display: inline-block;
  background: #1d1d1f;
  color: #fff;
  font-weight: 800;
  letter-spacing: 0.02em;
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 0.95rem;
  margin-bottom: var(--space-4);
}

/* Coverage list on About */
.coverage-list { columns: 3; column-gap: var(--space-6); }
@media (max-width: 720px) { .coverage-list { columns: 2; } }
.coverage-list li { break-inside: avoid; padding: var(--space-2) 0; display: flex; align-items: center; gap: var(--space-2); color: var(--color-ink-secondary); }
.coverage-list li::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--color-brand-red); flex: 0 0 7px; }

/* In-row lists render single column */
.alt-row__text .suburbs-list { columns: 1; }

/* About: timeline */
.timeline { position: relative; max-width: 760px; margin: var(--space-6) auto 0; }
.timeline::before { content: ""; position: absolute; left: 9px; top: 6px; bottom: 6px; width: 2px; background: var(--color-border); }
.timeline__item { position: relative; padding: 0 0 var(--space-6) var(--space-7); }
.timeline__item:last-child { padding-bottom: 0; }
.timeline__item::before { content: ""; position: absolute; left: 0; top: 4px; width: 20px; height: 20px; border-radius: 50%; background: var(--color-brand-red); box-shadow: 0 0 0 4px var(--color-brand-red-soft); }
.timeline__year { font-weight: 800; color: var(--color-brand-red-dark); font-size: 1.05rem; margin-bottom: 2px; }
.timeline__body { color: var(--color-ink-secondary); line-height: 1.6; }

/* About: coverage map embed */
.map-embed { width: 100%; min-height: 360px; height: 100%; border: 0; border-radius: var(--radius-lg); display: block; }

/* About: horizontal interactive timeline (matches live layout) */
.htl { max-width: 980px; margin: var(--space-6) auto 0; }
.htl__radio { position: absolute; width: 0; height: 0; opacity: 0; pointer-events: none; }
.htl__track { display: flex; overflow-x: auto; position: relative; padding: 6px 0 24px; margin-bottom: var(--space-5); border-bottom: 2px solid var(--color-border); }
.htl__year { flex: 0 0 auto; min-width: 86px; text-align: center; cursor: pointer; font-weight: 700; color: var(--color-ink-secondary); position: relative; padding-bottom: 18px; transition: color .2s; }
.htl__year::after { content: ""; position: absolute; left: 50%; bottom: -9px; transform: translateX(-50%); width: 15px; height: 15px; border-radius: 50%; background: #fff; border: 3px solid var(--color-border); transition: all .2s; }
.htl__year:hover { color: var(--color-ink-primary); }
.htl__panels { max-width: 640px; margin: 0 auto; text-align: center; min-height: 84px; }
.htl__panel { display: none; color: var(--color-ink-secondary); font-size: 1.08rem; line-height: 1.65; }
.htl__panel strong { color: var(--color-brand-red-dark); }

/* About: store-locator style coverage (map + service-location list) */
.locator { display: grid; grid-template-columns: 1fr; gap: var(--space-5); margin-top: var(--space-5); }
@media (min-width: 900px) { .locator { grid-template-columns: 330px 1fr; } }
.locator__list { border: 1px solid var(--color-border); border-radius: var(--radius-lg); background: #fff; max-height: 480px; overflow: hidden; }
.locator__list h4 { margin: 0; padding: var(--space-4) var(--space-5); border-bottom: 1px solid var(--color-border); position: sticky; top: 0; background: #fff; }
.locator__list ul { list-style: none; margin: 0; padding: var(--space-2) 0; }
.locator__list li { padding: 5px var(--space-5); color: var(--color-ink-secondary); font-size: 0.88rem; }
.locator__map .map-embed { min-height: 480px; height: 100%; }
.locator__chips { display: flex; flex-wrap: wrap; gap: 8px; }
.locator__chips span { background: var(--color-brand-red-soft); color: var(--color-brand-red-dark); font-weight: 700; font-size: 0.85rem; padding: 5px 13px; border-radius: 999px; }

/* About: interactive Mapbox store-locator */
.locator__panel { border: 1px solid var(--color-border); border-radius: var(--radius-lg); background: #fff; display: flex; flex-direction: column; max-height: 520px; overflow: hidden; }
.locator__panel > h4 { margin: 0; padding: var(--space-4) var(--space-5); border-bottom: 1px solid var(--color-border); }
.locator__filters { display: flex; flex-wrap: wrap; gap: 6px; padding: var(--space-3) var(--space-4); border-bottom: 1px solid var(--color-border); }
.locator__chip { background: var(--color-surface); border: 1px solid var(--color-border); color: var(--color-ink-secondary); font-weight: 600; font-size: 0.78rem; padding: 4px 11px; border-radius: 999px; cursor: pointer; }
.locator__chip.is-active { background: var(--color-brand-red); border-color: var(--color-brand-red); color: #fff; }
.locator__list { list-style: none; margin: 0; padding: 0; overflow-x: hidden; overflow-y: auto; flex: 1; }
.locator__list li { display: flex; justify-content: space-between; align-items: center; gap: 8px; min-width: 0; padding: 9px var(--space-5); border-bottom: 1px solid var(--color-surface); cursor: pointer; font-size: 0.92rem; color: var(--color-ink-primary); }
.locator__list li:hover { background: var(--color-brand-red-soft); }
.locator__list li small { color: var(--color-ink-secondary); font-size: 0.75rem; font-weight: 700; white-space: nowrap; }
#ag-map { min-height: 520px; height: 100%; background: var(--color-surface); border-radius: var(--radius-lg); overflow: hidden; }
.ag-marker { width: 14px; height: 14px; border-radius: 50%; background: var(--color-brand-red); border: 2px solid #fff; box-shadow: 0 1px 4px rgba(0,0,0,.35); cursor: pointer; }
.ag-map--placeholder { display: flex; align-items: center; justify-content: center; text-align: center; padding: var(--space-6); }
.ag-map__note { max-width: 340px; color: var(--color-ink-secondary); }
.ag-map__note strong { display: block; color: var(--color-ink-primary); margin-bottom: 6px; }
.ag-map__note code { background: var(--color-surface-alt); padding: 1px 6px; border-radius: 4px; font-size: 0.85rem; }

/* Spacing between stacked paragraphs in alt-row text columns */
.alt-row__text p + p { margin-top: var(--space-4); }
.alt-row__text .btn--block { margin-top: var(--space-5); }
/* Full-width button (matches the reference "About us" CTA) */
.btn--block { display: flex; width: 100%; justify-content: center; }

/* ===== About page - match Advanced Cleaning layout ===== */
/* Hero: background image with dark overlay card */
.about-hero { position: relative; background-size: cover; background-position: center; border-radius: var(--radius-lg); overflow: hidden; min-height: 380px; display: flex; align-items: center; padding: var(--space-6); }
.about-hero__card { background: rgba(24,24,27,0.82); color: #fff; border-radius: var(--radius-lg); padding: var(--space-6) var(--space-6) var(--space-5); max-width: 380px; }
.about-hero__title { font-family: var(--font-sans); font-size: 2.4rem; font-weight: 700; margin: 0; color: #fff; }
.about-hero__sub { font-style: italic; color: #e7e7ea; margin: var(--space-2) 0 var(--space-5); font-size: 1.1rem; }
.about-hero__ctas { display: flex; flex-wrap: wrap; gap: var(--space-3); }

/* Horizontal timeline */
.tl { display: flex; align-items: center; gap: var(--space-3); margin-top: var(--space-4); }
.tl__nav { flex: 0 0 46px; width: 46px; height: 46px; border-radius: 50%; border: 2px solid var(--color-brand-red); background: #fff; color: var(--color-brand-red); font-size: 1.5rem; line-height: 1; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: all .2s; }
.tl__nav:hover:not(:disabled) { background: var(--color-brand-red); color: #fff; }
.tl__nav:disabled { opacity: .3; cursor: default; }
.tl__track { position: relative; flex: 1; display: flex; overflow-x: auto; padding: 8px 0 4px; scrollbar-width: thin; }
.tl__line { position: absolute; left: 0; right: 0; bottom: 15px; height: 2px; background: var(--color-border); }
.tl__progress { position: absolute; left: 0; top: 0; height: 100%; width: 0; background: var(--color-brand-red); transition: width .35s ease; }
.tl__year { position: relative; flex: 0 0 auto; min-width: 96px; text-align: center; padding: 0 0 26px; background: none; border: 0; font: inherit; font-weight: 700; color: var(--color-ink-secondary); cursor: pointer; z-index: 1; }
.tl__year::after { content: ""; position: absolute; left: 50%; bottom: 8px; transform: translateX(-50%); width: 14px; height: 14px; border-radius: 50%; background: #fff; border: 2px solid var(--color-border); transition: all .2s; }
.tl__year:hover { color: var(--color-ink-primary); }
.tl__year.is-active { color: var(--color-brand-red-dark); }
.tl__year.is-active::after { background: var(--color-brand-red); border-color: var(--color-brand-red); box-shadow: 0 0 0 4px var(--color-brand-red-soft); }
.tl__panel { margin-top: var(--space-5); }
.tl__panel h3 { margin: 0 0 4px; font-size: 1.5rem; color: var(--color-ink-primary); }
.tl__panel p { margin: 0; color: var(--color-ink-secondary); max-width: 60ch; line-height: 1.6; }

/* Profile card: team image + accordion */
.profile-card { display: grid; grid-template-columns: 1fr; background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius-lg); overflow: hidden; }
@media (min-width: 900px) { .profile-card { grid-template-columns: 1fr 1fr; } }
.profile-card__media { min-height: 280px; }
.profile-card__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.profile-card__body { padding: var(--space-6); display: flex; flex-direction: column; gap: var(--space-5); }

/* Leadership cards */
.leader-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-4); }
@media (min-width: 900px) { .leader-grid { grid-template-columns: repeat(4, 1fr); } }
.leader-card { background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius-lg); overflow: hidden; }
.leader-card__photo { aspect-ratio: 1 / 1; background: var(--color-surface-alt); }
.leader-card__photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.leader-card__body { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); padding: var(--space-4) var(--space-5); }
.leader-card__body h4 { margin: 0; font-size: 1rem; }
.leader-card__body > div > span { display: block; color: var(--color-brand-red); font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; margin-top: 2px; }
.leader-card__arrow { flex: 0 0 34px; width: 34px; height: 34px; border-radius: 50%; background: var(--color-brand-red); color: #fff; display: flex; align-items: center; justify-content: center; }
.leader-card__arrow svg { width: 16px; height: 16px; }

/* Image CTA band */
.cta-image { position: relative; background-size: cover; background-position: center; border-radius: var(--radius-lg); overflow: hidden; margin: var(--space-7) auto; max-width: 1240px; }
.cta-image::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,0,0,.6), rgba(0,0,0,.35)); }
.cta-image__inner { position: relative; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: var(--space-5); padding: var(--space-8) var(--space-6); }
.cta-image__text { color: #fff; font-weight: 700; font-size: clamp(1.2rem, 2.4vw, 1.75rem); line-height: 1.3; max-width: 60ch; margin: 0; }

/* Timeline refinements to match the reference (chevron arrows, wider spacing, dot-aligned progress) */
.tl__nav { border: 0; background: none; width: auto; height: auto; flex: 0 0 auto; font-size: 2.4rem; line-height: 1; color: var(--color-brand-red); padding: 0 8px; }
.tl__nav:hover:not(:disabled) { background: none; color: var(--color-brand-red-dark); }
.tl__track { padding: 22px 0 4px; scrollbar-width: none; }
.tl__track::-webkit-scrollbar { display: none; }
.tl__year { min-width: 200px; }
.tl__year::after { width: 16px; height: 16px; background: var(--color-border); border: 0; }
.tl__year.is-active { color: var(--color-brand-red); }
.tl__year.is-active::after { width: 18px; height: 18px; background: var(--color-brand-red); border: 0; box-shadow: none; }

/* Centre the timeline nav arrows on the same axis as the line and dots */
.tl { position: relative; padding: 0 52px; }
.tl__track { flex: 1 1 auto; }
.tl__nav { position: absolute; bottom: 16px; transform: translateY(50%); z-index: 2; padding: 0; }
.tl__prev { left: 6px; }
.tl__next { right: 6px; }

/* Timeline arrows: SVG icon, flex-centred box on the line */
.tl__nav { display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; font-size: 0; }
.tl__nav svg { width: 26px; height: 26px; display: block; }

/* Timeline: deterministic alignment - labels above, dots + line + arrows on one axis */
.tl__year::after { display: none; }
.tl__track { align-items: flex-end; padding: 8px 0 0; }
.tl__year { min-width: 200px; height: auto; display: flex; flex-direction: column; align-items: center; gap: 0; padding: 0; }
.tl__lbl { margin-bottom: 14px; line-height: 1; }
.tl__dot { width: 16px; height: 16px; border-radius: 50%; background: var(--color-border); display: block; position: relative; z-index: 1; }
.tl__year.is-active .tl__lbl { color: var(--color-brand-red); }
.tl__year.is-active .tl__dot { background: var(--color-brand-red); transform: scale(1.15); }
.tl__line { top: auto; bottom: 7px; transform: none; }
.tl__progress { top: 0; bottom: auto; transform: none; }
.tl__nav { bottom: 8px; transform: translateY(50%); }

/* Give the dots room so the horizontal-scroll container doesn't clip them */
.tl__track { padding-bottom: 10px; }
.tl__line { bottom: 17px; }
.tl__nav { bottom: 18px; }

/* About hero: show the full 'advanced group' signage (wide image) without cropping */
.hero-split-dark__media--fit img { object-fit: contain; object-position: center; background: transparent; }
