/* TSS Redesign — About Us (08) v2
 * Bespoke 7-section marketing page. Deps: tss-foundation, tss-chrome.
 * No !important; var(--tss-*, #fallback) colour pattern.
 * .tss-serif-i (italic Instrument Serif) comes from tss-foundation.css.
 */

.tss-about-page { background: #fff; }
.tss-about-wrap { max-width: 1440px; margin: 0 auto; padding: 0 48px; }

/* ---- shared ---- */
.tss-about-eyebrow {
  font-size: 11px; font-weight: 700; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--tss-teal-darker, #115E59);
}
.tss-about-eyebrow-center { text-align: center; }
.tss-about-h2 {
  margin: 14px 0 0; font-size: 34px; line-height: 1.15;
  letter-spacing: -0.025em; font-weight: 700; color: var(--tss-ink, #0E2A47);
}
.tss-about-h2-center { text-align: center; }

/* Serif-italic accent words ("road.", "Every service.", "we've got you.",
 * the mission tail). The parent theme sets a more-specific font-family on
 * heading elements that defeats the plain .tss-serif-i class, so it must be
 * forced — same workaround the home slice uses (tss-home.css). */
.tss-about-page .tss-serif-i {
  font-family: var(--font-serif-i, "Instrument Serif", Georgia, serif) !important;
  font-style: italic !important;
  font-weight: 400 !important;
}

.tss-about-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 22px; border-radius: 10px; font-size: 14.5px;
  font-weight: 600; line-height: 1; border: 1.5px solid transparent;
  cursor: pointer; text-decoration: none;
  transition: background .15s, color .15s, border-color .15s;
}
.tss-about-btn svg { display: block; }
.tss-about-btn-orange { background: var(--tss-orange, #F26A3F); color: #fff; }
.tss-about-btn-orange:hover { background: #DD5A30; color: #fff; }
.tss-about-btn-ghost {
  background: #fff; color: var(--tss-teal-darker, #115E59);
  border-color: var(--tss-teal-darker, #115E59);
}
.tss-about-btn-ghost:hover { background: var(--tss-teal-soft, #ECFDF8); }
.tss-about-btn-dark {
  background: rgba(255,255,255,0.12); color: #fff;
  border-color: rgba(255,255,255,0.25);
}
.tss-about-btn-dark:hover { background: rgba(255,255,255,0.22); color: #fff; }

.tss-about-img { width: 100%; height: 100%; object-fit: cover; border-radius: 16px; display: block; }
.tss-about-imgph {
  width: 100%; min-height: 340px; border-radius: 16px;
  background-color: #EEF1F3;
  background-image: repeating-linear-gradient(135deg, rgba(14,42,71,0.05) 0 1px, transparent 1px 11px);
  display: flex; align-items: center; justify-content: center;
}
.tss-about-imgph span {
  font-size: 12px; font-weight: 700; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--tss-mute, #94A3B5);
}

/* Breadcrumb — standalone row at the very top of the hero (matches the
 * Listings page placement: first element, full width, not buried in the
 * 2-column grid). */
.tss-about-crumb-row { padding-top: 64px; }
.tss-about-crumb {
  font-size: 12.5px; color: var(--tss-mute, #6B7280);
  display: flex; gap: 8px; align-items: center; margin: 0; flex-wrap: wrap;
}
.tss-about-crumb a { color: var(--tss-teal-darker, #115E59); text-decoration: none; }
.tss-about-crumb a:hover { text-decoration: underline; }
.tss-about-crumb .sep { color: var(--tss-mute-2, #9CA3AF); }

/* ---- 1. hero ---- */
.tss-about-hero { background: #fff; }
.tss-about-hero-grid {
  display: grid; grid-template-columns: 1.05fr 0.95fr;
  gap: 64px; align-items: start; padding: 14px 48px 80px;
}
.tss-about-hero-h1 {
  margin: 30px 0 0; font-size: 58px; line-height: 1.05;
  letter-spacing: -0.035em; font-weight: 800; color: var(--tss-ink, #0E2A47);
}
.tss-about-hero-h1 .tss-serif-i { font-weight: 400; letter-spacing: -0.01em; }
.tss-about-hero-sub {
  margin: 22px 0 0; font-size: 17px; line-height: 1.65;
  color: var(--tss-mute, #6B7A8C); max-width: 520px;
}
.tss-about-hero-btns { margin-top: 30px; display: flex; gap: 14px; flex-wrap: wrap; }
.tss-about-hero-media .tss-about-img { aspect-ratio: 4 / 3; }
.tss-about-hero-media .tss-about-imgph { min-height: 380px; }

/* ---- 2. stats ---- */
.tss-about-statband {
  background: var(--tss-paper, #F8FAFB);
  border-top: 1px solid var(--tss-line, #E8ECF1);
  border-bottom: 1px solid var(--tss-line, #E8ECF1);
}
.tss-about-statgrid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 32px; padding: 44px 48px;
}
.tss-about-stat-num {
  font-family: var(--font-display, "Inter", -apple-system, sans-serif);
  font-size: 50px; line-height: 1; font-weight: 800;
  letter-spacing: -0.03em; color: var(--tss-ink, #0E2A47);
}
.tss-about-stat-label {
  margin-top: 10px; font-size: 12px; font-weight: 600;
  letter-spacing: 0.04em; color: var(--tss-mute, #6B7A8C);
}

/* ---- 3. mission ---- */
.tss-about-mission { background: #fff; }
.tss-about-mission-grid {
  display: grid; grid-template-columns: 200px 1fr;
  gap: 48px; padding: 84px 48px;
}
.tss-about-mission-text {
  margin: 0; font-size: 29px; line-height: 1.42;
  letter-spacing: -0.015em; font-weight: 500; color: var(--tss-ink, #0E2A47);
}
.tss-about-mission-accent { color: var(--tss-teal-darker, #115E59); font-weight: 400; }

/* ---- 4. believe ---- */
.tss-about-believe { background: #fff; }
.tss-about-believe > .tss-about-wrap { padding-top: 24px; padding-bottom: 88px; }
.tss-about-believe-grid {
  margin-top: 36px; display: grid;
  grid-template-columns: repeat(4, 1fr); gap: 22px;
}
.tss-about-card {
  background: #fff; border: 1px solid var(--tss-line, #E8ECF1);
  border-radius: 14px; padding: 26px;
}
.tss-about-card-icon {
  width: 44px; height: 44px; border-radius: 10px;
  background: var(--tss-teal-soft, #ECFDF8);
  color: var(--tss-teal-darker, #115E59);
  display: flex; align-items: center; justify-content: center;
}
.tss-about-card-icon svg { display: block; }
.tss-about-card-title {
  margin: 18px 0 0; font-size: 17px; font-weight: 700;
  color: var(--tss-ink, #0E2A47);
}
.tss-about-card-text {
  margin: 8px 0 0; font-size: 14px; line-height: 1.6;
  color: var(--tss-mute, #6B7A8C);
}

/* ---- 5. offers ---- */
.tss-about-offers {
  background: var(--tss-paper, #F8FAFB);
  border-top: 1px solid var(--tss-line, #E8ECF1);
}
.tss-about-offers-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 56px; align-items: start; padding: 84px 48px;
}
.tss-about-lead {
  margin: 16px 0 0; font-size: 16px; line-height: 1.65;
  color: var(--tss-mute, #6B7A8C); max-width: 480px;
}
.tss-about-svc-list { margin-top: 26px; display: flex; flex-direction: column; gap: 12px; }
.tss-about-svc {
  display: flex; align-items: center; gap: 12px;
  background: #fff; border: 1px solid var(--tss-line, #E8ECF1);
  border-radius: 12px; padding: 16px 18px;
}
.tss-about-svc-check { color: var(--tss-teal, #14B8A6); display: flex; }
.tss-about-svc-check svg { display: block; }
.tss-about-svc-name { font-size: 15px; font-weight: 600; color: var(--tss-ink, #0E2A47); }
.tss-about-svc-count { margin-left: auto; font-size: 13px; color: var(--tss-mute, #6B7A8C); }
.tss-about-offers-media { position: sticky; top: 24px; }
.tss-about-offers-media .tss-about-img { aspect-ratio: 4 / 3.4; }
.tss-about-offers-media .tss-about-imgph { min-height: 420px; }

/* ---- 6. how ---- */
.tss-about-how { background: #fff; }
.tss-about-how > .tss-about-wrap { padding-top: 84px; padding-bottom: 88px; }
.tss-about-how-grid {
  margin-top: 40px; display: grid;
  grid-template-columns: 1fr 1fr; gap: 26px;
}
.tss-about-howcard {
  background: #fff; border: 1px solid var(--tss-line, #E8ECF1);
  border-radius: 16px; padding: 34px;
}
.tss-about-howcard-feature {
  background: var(--tss-teal-soft, #ECFDF8);
  border-color: var(--tss-teal, #14B8A6);
}
.tss-about-howcard .tss-about-eyebrow { margin-top: 16px; }
.tss-about-howcard-title {
  margin: 8px 0 0; font-size: 22px; font-weight: 700;
  letter-spacing: -0.02em; color: var(--tss-ink, #0E2A47);
}
.tss-about-howcard-text {
  margin: 12px 0 0; font-size: 15px; line-height: 1.6;
  color: var(--tss-mute, #6B7A8C);
}
.tss-about-checklist { margin: 20px 0 0; padding: 0; list-style: none; }
.tss-about-checklist li {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 14.5px; color: var(--tss-ink, #0E2A47); padding: 6px 0;
}
.tss-about-checklist li svg {
  color: var(--tss-teal, #14B8A6); flex-shrink: 0; margin-top: 2px; display: block;
}
.tss-about-howcard .tss-about-btn { margin-top: 22px; }

/* ---- 7. cta ---- */
.tss-about-ctawrap { background: #fff; padding: 24px 0 96px; }
.tss-about-cta {
  background: #0E2A47;
  background-image: linear-gradient(135deg, #0E2A47 0%, #0A1F35 100%);
  border-radius: 20px; padding: 56px;
  display: grid; grid-template-columns: 1.4fr 1fr;
  gap: 40px; align-items: center;
}
.tss-about-cta-h2 {
  margin: 0; font-size: 32px; line-height: 1.22;
  letter-spacing: -0.025em; font-weight: 700; color: #fff;
}
.tss-about-cta-h2 .tss-serif-i { color: #5EEAD4; font-weight: 400; }
.tss-about-cta-sub { margin: 16px 0 0; font-size: 15px; line-height: 1.6; color: #B8C5D4; }
.tss-about-cta-sub a { color: #fff; text-decoration: underline; }
.tss-about-cta-btns { display: flex; gap: 14px; justify-content: flex-end; flex-wrap: wrap; }

/* ---- responsive ---- */
@media (max-width: 1024px) {
  .tss-about-wrap { padding: 0 32px; }
  .tss-about-crumb-row { padding-top: 48px; }
  .tss-about-hero-grid { grid-template-columns: 1fr; gap: 40px; padding: 14px 32px 64px; }
  .tss-about-hero-h1 { font-size: 46px; }
  .tss-about-statgrid { grid-template-columns: repeat(2, 1fr); gap: 28px 32px; }
  .tss-about-mission-grid { grid-template-columns: 1fr; gap: 16px; padding: 64px 24px; }
  .tss-about-mission-text { font-size: 25px; }
  .tss-about-believe-grid { grid-template-columns: repeat(2, 1fr); }
  .tss-about-offers-grid { grid-template-columns: 1fr; gap: 40px; padding: 64px 24px; }
  .tss-about-offers-media { position: static; }
  .tss-about-how-grid { grid-template-columns: 1fr; }
  .tss-about-cta { grid-template-columns: 1fr; gap: 28px; padding: 40px; }
  .tss-about-cta-btns { justify-content: flex-start; }
}
@media (max-width: 600px) {
  .tss-about-wrap { padding: 0 20px; }
  .tss-about-crumb-row { padding-top: 36px; }
  .tss-about-hero-h1 { font-size: 36px; }
  .tss-about-h2 { font-size: 27px; }
  .tss-about-statgrid { padding: 32px 24px; }
  .tss-about-stat-num { font-size: 40px; }
  .tss-about-mission-text { font-size: 21px; }
  .tss-about-believe-grid { grid-template-columns: 1fr; }
  .tss-about-believe > .tss-about-wrap { padding-bottom: 64px; }
  .tss-about-cta-h2 { font-size: 25px; }
  .tss-about-howcard { padding: 26px; }
  .tss-about-btn { width: 100%; justify-content: center; }
  .tss-about-hero-btns, .tss-about-cta-btns { width: 100%; }
}

/* ---- location-permission pill (copied from tss-home.css; the geo flow
      is shared via js/tss-geo-search.js, but its CSS lives in tss-home.css
      which this slice does not load) ---- */
.tss-geo-pill {
  position: fixed;
  top: 20px;
  right: 20px;
  /* Max z-index — pill is hoisted to <body> by JS so this works against
   * any other stacking context on the page (header, dropdowns, modals). */
  z-index: 2147483647;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  /* High-contrast dark navy panel — pops against white page background. */
  background: var(--ink, #0E2A47);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 999px;
  padding: 10px 10px 10px 16px;
  /* Layered shadow: tight inner + diffuse outer for floating-card feel. */
  box-shadow: 0 4px 12px rgba(14,42,71,0.25), 0 16px 40px rgba(14,42,71,0.35);
  font-size: 14px;
  color: #fff;
  font-weight: 600;
  max-width: calc(100vw - 40px);
  /* Subtle slide-down + fade-in so the pill catches the eye on appear. */
  animation: tssGeoPillIn 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes tssGeoPillIn {
  from { opacity: 0; transform: translateY(-12px); }
  to   { opacity: 1; transform: translateY(0); }
}
.tss-geo-pill .tss-geo-pin {
  color: #FB923C; /* warm orange — accent against navy, signals call-to-action */
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
}
.tss-geo-pill .tss-geo-label {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: #fff;
  font-weight: 700;
}
/* Buttons must never wrap their own text (e.g. "Got it" splitting across two
 * lines) regardless of pill state, and never shrink below their content width. */
.tss-geo-pill .tss-geo-enable,
.tss-geo-pill .tss-geo-dismiss {
  white-space: nowrap;
  flex-shrink: 0;
}

/* Blocked + info states use a rounded card with wrapping label. flex-wrap
 * lets the label fill the row and pushes the dismiss button to its own row,
 * aligned right — so the label can wrap freely while the button stays on
 * a single line. */
.tss-geo-pill[data-tss-geo-blocked="1"],
.tss-geo-pill[data-tss-geo-info="1"] {
  border-radius: 12px;
  max-width: 360px;
  padding: 12px 14px;
  flex-wrap: wrap;
  row-gap: 8px;
}
.tss-geo-pill[data-tss-geo-blocked="1"] .tss-geo-label,
.tss-geo-pill[data-tss-geo-info="1"] .tss-geo-label {
  white-space: normal;
  line-height: 1.4;
  flex: 1 1 auto;
  min-width: 0;
}
.tss-geo-pill[data-tss-geo-blocked="1"] .tss-geo-dismiss,
.tss-geo-pill[data-tss-geo-info="1"] .tss-geo-dismiss {
  margin-left: auto;
}
.tss-geo-pill .tss-geo-enable {
  background: #5EEAD4; /* bright mint accent — pops on dark navy */
  color: var(--ink, #0E2A47);
  border: none;
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s, transform 0.15s;
}
.tss-geo-pill .tss-geo-enable:hover {
  background: #99F6E4;
  transform: translateY(-1px);
}
.tss-geo-pill .tss-geo-dismiss {
  background: transparent;
  border: none;
  color: #fff;
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  padding: 8px 12px;
  margin-right: 2px;
  transition: opacity 0.15s;
  opacity: 0.95;
}
.tss-geo-pill .tss-geo-dismiss:hover { opacity: 1; }

/* Override animation translateY on mobile (it'd interfere with translateX
 * for horizontal centering — keep the fade-in but not the slide). */
@media (max-width: 767px) {
  .tss-geo-pill {
    top: 14px;
    right: auto;
    left: 16px;
    right: 16px;
    transform: none;
    font-size: 13px;
    padding: 10px 10px 10px 14px;
    max-width: calc(100vw - 32px);
    animation: tssGeoPillInMobile 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  }
  .tss-geo-pill .tss-geo-enable {
    padding: 7px 12px;
    font-size: 12px;
  }
  .tss-geo-pill .tss-geo-dismiss {
    padding: 7px 10px;
    font-size: 12px;
  }
}
@keyframes tssGeoPillInMobile {
  from { opacity: 0; transform: translateY(-10px); }
  to   { opacity: 1; transform: translateY(0); }
}
