/* ==========================================================================
   Tree Service 911 — TS911 Stylesheet
   ==========================================================================
   Contents
   1) Beaver Builder / UABB Shim (baseline)
   2) TS911 Design System (buttons, sections, hero, intro, cards, highlight)
   3) Gallery (grid + continuous marquee)
   4) Bottom CTA
   5) About + Video (legacy)
   6) Full-width Services Band (2-col + single-col variant)
   7) About / CTA (image left, text right)
   8) Utilities
   NOTE: Set your fixed header height via --ts911-header-h (default 80px).
   ========================================================================== */


/* ========== 1) BB / UABB SHIM (BASELINE) ================================= */

*, *::before, *::after { box-sizing: border-box; }

html {
  line-height: 1.15;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: var(--ts911-header-h);
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  color: #222;
}

img { border-style: none; max-width: 100%; height: auto; display: block; }

/* Container & grid approximation */
.container { width: 100%; margin-inline: auto; padding-inline: 16px; }
.row { display: flex; flex-wrap: wrap; margin-left: -16px; margin-right: -16px; }
.row > [class*="col-"] { padding-left: 16px; padding-right: 16px; }

/* Emulate md columns used by your markup */
.col-md-12 { width: 100%; }
.text-center { text-align: center; }
.clearfix::after { content: ""; display: table; clear: both; }

/* BB Row/Column skeleton */
.fl-row, .fl-row-content-wrap { position: relative; width: 100%; }
.fl-row-content { margin-inline: auto; max-width: 1140px; padding: 24px 16px; }
.fl-row-full-width .fl-row-content { max-width: 100%; }
.fl-row-fixed-width .fl-row-content { max-width: 1140px; }

/* Row background helpers */
.fl-row-bg-photo { background-position: center; background-repeat: no-repeat; background-size: cover; }
.fl-row-bg-overlay { position: relative; }
.fl-row-bg-overlay::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.35);
  pointer-events: none;
}
.fl-row-align-center .fl-row-content { display: flex; flex-direction: column; align-items: center; }

/* Column groups */
.fl-col-group { display: flex; flex-wrap: wrap; gap: 24px; }
.fl-col-group-align-center { align-items: center; }
.fl-col-group-equal-height > .fl-col { display: flex; }
.fl-col { flex: 1 1 0; min-width: 240px; }
.fl-col-small { flex: 1 1 320px; }
.fl-col-content { width: 100%; padding: 12px; }

/* Visibility helpers */
.fl-visible-desktop, .fl-visible-large, .fl-visible-medium { display: block; }
@media (max-width: 991.98px){ .fl-visible-desktop { display: none; } }

/* Heading Module */
.fl-module-heading .fl-heading { margin: 0 0 .5rem; }
.fl-module-heading .fl-heading .fl-heading-text { display: inline-block; font-weight: 700; }
.fl-module-heading h1 .fl-heading-text, h1.fl-heading .fl-heading-text, h1 { font-size: clamp(28px, 4vw, 40px); line-height: 1.2; }
.fl-module-heading h2 .fl-heading-text, h2 { font-size: clamp(22px, 3vw, 30px); line-height: 1.25; }
.fl-module-heading h3 .fl-heading-text, h3 { font-size: clamp(18px, 2.4vw, 22px); line-height: 1.3; }

/* Separator */
.fl-module-separator .fl-separator, .fl-separator {
  width: 64px;
  height: 3px;
  background: #145A32;
  margin: .75rem 0 1rem;
  border-radius: 2px;
}

/* Rich text */
.fl-rich-text p { margin: 0 0 1rem; }
.fl-rich-text ul, .fl-rich-text ol { margin: 0 0 1rem 1.25rem; }
.fl-post-content .clearfix::after { content: ""; display: table; clear: both; }

/* Button Module (baseline look) */
.fl-module-button .fl-button-wrap { display: inline-block; }
.fl-module-button .fl-button{
  display: inline-block;
  padding: .75rem 1.25rem;
  border-radius: .5rem;
  background: #145A32;
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  transition: transform .08s ease, opacity .2s ease;
}
.fl-module-button .fl-button:hover { opacity: .92; transform: translateY(-1px); }

/* Photo Module */
.fl-photo { width: 100%; }
.fl-photo-align-center { text-align: center; }
.fl-photo .fl-photo-content { display: inline-block; width: 100%; }
.fl-photo-img, .fl-photo-img img, .fl-photo img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

/* UABB Info Box */
.uabb-infobox { text-align: center; }
.uabb-infobox .uabb-infobox-content { padding: 12px; }
.uabb-infobox .uabb-infobox-title { margin: .25rem 0 .5rem; font-size: 18px; font-weight: 700; }
.uabb-infobox .uabb-infobox-text { color: #333; font-size: 15px; }
.uabb-imgicon-wrap .uabb-image { display: inline-block; margin-bottom: .5rem; }
.uabb-imgicon-wrap .uabb-image img { width: 80px; height: 80px; object-fit: contain; }

/* UABB image carousel (grid approx) */
.uabb-image-carousel.uabb-img-col-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.uabb-image-carousel .uabb-image-carousel-item { position: relative; overflow: hidden; border-radius: 10px; }
.uabb-image-carousel .uabb-image-carousel-item img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 3; }
.uabb-background-mask {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(0,0,0,0);
  transition: background .25s ease;
}
.uabb-image-carousel-item:hover .uabb-background-mask { background: rgba(0,0,0,.25); }
.uabb-caption { color: #fff; font-weight: 600; text-shadow: 0 1px 2px rgba(0,0,0,.3); }

/* Info list (Contact) */
.uabb-info-list-wrapper { list-style: none; padding: 0; margin: 0; }
.uabb-info-list-item { padding: .25rem 0; }
.uabb-info-list-title { margin: 0 0 .25rem; font-weight: 700; font-size: 16px; }
.uabb-info-list-description { margin: 0; color: #333; }

/* Footer text */
.fl-page-footer-text { font-size: 14px; color: #666; }

/* Responsive refinements */
@media (max-width: 1199.98px){ .fl-row-content { max-width: 1000px; } }
@media (max-width: 991.98px){
  .fl-row-content { max-width: 760px; }
  .uabb-image-carousel.uabb-img-col-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 575.98px){
  .fl-row-content { max-width: 100%; padding-inline: 12px; }
  .uabb-image-carousel.uabb-img-col-4 { grid-template-columns: 1fr; }
}


/* ========== 2) TS911 DESIGN SYSTEM & PAGES =============================== */

:root { --ts911-header-h: 80px; }

.ts911-container { max-width: 1180px; margin-inline: auto; padding-inline: 16px; }

/* Typography */
.ts911-section h1{
  font-size: clamp(32px, 4.2vw, 52px);
  line-height: 1.15;
  margin: 0 0 10px;
  font-weight: 800;
  letter-spacing: -0.01em;
}
.ts911-section h2{
  font-size: clamp(26px, 3vw, 36px);
  line-height: 1.2;
  font-weight: 800;
  margin: 0 0 8px;
  letter-spacing: -0.01em;
}
.ts911-section h3{
  font-size: clamp(20px, 2.2vw, 24px);
  font-weight: 700;
  margin: 0 0 8px;
}

/* Buttons */
.ts911-btn, .ts911-btn--ghost{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  border-radius: 999px;
  padding: 12px 22px;
  text-decoration: none;
  transition: transform .15s ease, box-shadow .15s ease, background-color .2s ease, opacity .2s ease;
}
.ts911-btn{
  background: #145A32;
  color: #fff;
  box-shadow: 0 10px 24px rgba(20,90,50,.22);
}
.ts911-btn:hover{ transform: translateY(-2px); }

/* Ghost (styled as solid) */
.ts911-btn--ghost{
  background: #145A32;
  color: #fff;
  border: none;
  box-shadow: 0 6px 18px rgba(20,90,50,.25);
}
.ts911-btn--ghost:hover{
  background: #B22222;
  color: #fff;
  transform: translateY(-2px);
}
.ts911-btn--ghost:focus-visible{ outline: 2px solid #fff; outline-offset: 2px; }

/* Bullets & separators */
.green-bullets{ list-style: disc; margin-left: .5rem; padding-left: 1.25rem; }
.green-bullets li::marker{ color: #145A32; }

/* Placeholder helper */
.placeholder{
  background:#e9ecef;
  width:100%;
  aspect-ratio:4/3;
  border-radius:10px;
  display:block;
}
.placeholder::after{
  content:"Image coming soon";
  display:grid;
  place-items:center;
  color:#666;
  font-size:14px;
  font-weight:600;
  height:100%;
}

/* Contact section spacing */
#contact .fl-row-content{ padding-top: 24px; padding-bottom: 24px; }

/* Comfort padding for BB containers on mobile */
@media (max-width: 768px){
  .container, .fl-row-content.fl-row-fixed-width, .fl-row-content-wrap { padding-inline: 1rem; }
}


/* ---------- FULL-BLEED HERO ---------- */

.ts911-hero{
  position: relative;
  display: block;
  padding: 0 !important;
  background: transparent !important;
  overflow: clip;
}

.ts911-hero::before{
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--hero-img);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 0;
}

.ts911-hero__overlay{
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.35);
  z-index: 1;
}

.ts911-hero__content{
  position: relative;
  z-index: 2;
  max-width: 1140px;
  margin-inline: auto;
  padding: 0 16px 56px;
}

.ts911-hero--edge .ts911-hero__content{
  padding-top: calc(var(--ts911-header-h) + 48px);
}

.ts911-hero-copy h1{
  color: #fff;
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1.1;
  margin: 0 0 12px;
  letter-spacing: -0.01em;
  font-weight: 800;
}
.ts911-hero-copy p{
  color: rgba(255,255,255,.92);
  font-size: clamp(16px, 1.6vw, 18px);
  line-height: 1.65;
  max-width: 700px;
  margin: 8px 0 20px;
}

.ts911-cta-group{ display:flex; flex-wrap:wrap; gap:12px; }

@media (max-width: 768px){
  :root{ --ts911-header-h: 64px; }
  .ts911-hero-copy h1{ font-size: clamp(30px, 7vw, 40px); }
}

/* Breadcrumb pill (matches your breadcrumbs.php output: <nav class="breadcrumbs ...">) */
.ts911-breadcrumbs{
  position: absolute;
  top: calc(var(--ts911-header-h, 88px) + 12px);
  left: 16px;
  z-index: 3;

  display: inline-flex;
  align-items: center;

  padding: 1px 8px;
  border-radius: 999px;
  background: rgba(0,0,0,.45);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.ts911-breadcrumbs nav.breadcrumbs{
  margin: 0 !important;
  padding: 0 !important;
  color: #fff !important;           /* affects separators too */
  font-weight: 800 !important;
  line-height: 1 !important;
  opacity: 1 !important;
  text-shadow: 0 1px 2px rgba(0,0,0,.65);
}

.ts911-breadcrumbs nav.breadcrumbs a,
.ts911-breadcrumbs nav.breadcrumbs span{
  color: inherit !important;
  font-weight: inherit !important;
  text-decoration: none;
}

.ts911-breadcrumbs nav.breadcrumbs a:hover{
  text-decoration: underline;
}

/* If you wrap separators: <span class="ts911-bc-sep" aria-hidden="true">›</span> */
.ts911-breadcrumbs .ts911-bc-sep{
  color: #fff !important;
  font-weight: 900 !important;
  padding: 0 .35rem;
  text-shadow: 0 1px 2px rgba(0,0,0,.65);
}


/* ------------------------ INTRO (two-column text) ------------------------ */

.ts911-intro{ padding: clamp(32px, 5vw, 56px) 0; background: #fff; }

/* Mobile-first: stack text then video */
.ts911-section.ts911-intro > .ts911-container.ts911-intro-grid{ display: block; }
.ts911-section.ts911-intro .ts911-intro-col{ width: 100%; max-width: none; margin: 0 0 16px; }
.ts911-section.ts911-intro .ts911-intro-col:last-child{ margin-bottom: 0; }
.ts911-section.ts911-intro .ts911-video-wrap{ width: 100%; max-width: none; margin: 0; }
.ts911-section.ts911-intro .ts911-video{ width: 100%; height: auto; aspect-ratio: 16 / 9; display: block; }
.ts911-section.ts911-intro .ts911-container{ padding-inline: clamp(10px, 4vw, 16px); }

/* >= 992px: two columns (text : video, video larger) */
@media (min-width: 992px){
  .ts911-section.ts911-intro > .ts911-container.ts911-intro-grid{
    display: grid;
    grid-template-columns: 1.25fr 1.75fr;
    gap: clamp(16px, 3vw, 32px);
  }
  .ts911-section.ts911-intro .ts911-intro-col{ margin: 0; }
}


/* ---------------------------- CARD GRID (3-up) --------------------------- */

.ts911-cards{ padding: clamp(32px, 5vw, 56px) 0; background: #f7f9fc; }
.ts911-center{ text-align: center; }
.ts911-max-600{ max-width: 600px; margin-inline: auto; }

.ts911-card-grid{
  margin-top: 16px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(14px, 2.5vw, 24px);
}

.ts911-card{
  background: #fff;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 12px 30px rgba(2,8,20,.10);
  transition: transform .18s ease, box-shadow .18s ease;
  display: flex;
  flex-direction: column;
}

.ts911-card:hover{ transform: translateY(-4px); box-shadow: 0 18px 40px rgba(2,8,20,.14); }
.ts911-card-media img{ width: 100%; aspect-ratio: 4/3; object-fit: cover; display: block; }
.ts911-card-body{ padding: 18px 18px 20px; }
.ts911-card-body h3{ font-size: clamp(20px, 2.4vw, 26px); }

@media (max-width: 992px){ .ts911-card-grid{ grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 768px){ .ts911-card-grid{ grid-template-columns: 1fr; } }


/* ---------------------------- HIGHLIGHT STRIP ---------------------------- */

.ts911-highlight{ padding: clamp(32px, 5vw, 56px) 0; background: #145A32; color: #fff; }
.ts911-highlight h2::after{ background: rgba(255,255,255,.95); opacity: 1; }
.ts911-highlight p{ color: rgba(255,255,255,.9); }


/* ========== 3) GALLERY (grid + continuous marquee) ======================= */

.ts911-gallery{ padding: clamp(32px, 5vw, 56px) 0; background: #fff; }

/* Optional Grid Gallery (if .ts911-gallery-grid is present) */
.ts911-gallery-grid{
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(6px, 1.2vw, 12px);
  align-items: stretch;
}
.ts911-gallery-grid img{
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  aspect-ratio: 4 / 3;
  border-radius: 14px;
  box-shadow: 0 8px 22px rgba(2,8,20,.07);
}
@media (max-width: 992px){ .ts911-gallery-grid{ grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 768px){ .ts911-gallery-grid{ grid-template-columns: 1fr; } }

/* Continuous Marquee Gallery (auto-scroll left) */
.ts911-gallery-marquee{
  --marquee-speed: 30s;
  position: relative;
  overflow: hidden;
  margin-top: 8px;
}
.ts911-gallery-marquee::before,
.ts911-gallery-marquee::after{
  content:"";
  position:absolute;
  top:0;
  bottom:0;
  width:60px;
  z-index:2;
  pointer-events:none;
}
.ts911-gallery-marquee::before{ left:0;  background: linear-gradient(to right, #fff, rgba(255,255,255,0)); }
.ts911-gallery-marquee::after{  right:0; background: linear-gradient(to left,  #fff, rgba(255,255,255,0)); }

.ts911-gallery-track{
  display: inline-flex;
  gap: clamp(10px, 1.6vw, 18px);
  align-items: center;
  will-change: transform;
  -webkit-animation: ts911-marquee var(--marquee-speed) linear infinite;
          animation: ts911-marquee var(--marquee-speed) linear infinite;
}

.ts911-gallery-item{
  flex: 0 0 auto;
  width: clamp(220px, 28vw, 360px);
  height: clamp(150px, 18vw, 220px);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 8px 22px rgba(2,8,20,.07);
  background: #f3f4f6;
}
.ts911-gallery-item img{
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

/* Force helper (optional) */
.ts911-gallery .ts911-gallery-marquee.ts911-gallery--force .ts911-gallery-track{
  display: inline-flex !important;
  -webkit-animation: ts911-marquee var(--marquee-speed) linear infinite !important;
          animation: ts911-marquee var(--marquee-speed) linear infinite !important;
}

/* Keyframes */
@-webkit-keyframes ts911-marquee{
  0%   { -webkit-transform: translateX(0); transform: translateX(0); }
  100% { -webkit-transform: translateX(-50%); transform: translateX(-50%); }
}
@keyframes ts911-marquee{
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce){
  .ts911-gallery .ts911-gallery-marquee:not(.ts911-gallery--force) .ts911-gallery-track{
    -webkit-animation: none;
            animation: none;
    transform: none;
  }
}

/* Sizing tweaks */
@media (max-width: 992px){
  .ts911-gallery-item{ width: clamp(200px, 44vw, 280px); height: clamp(130px, 24vw, 190px); }
}
@media (max-width: 600px){
  .ts911-gallery-item{ width: clamp(180px, 80vw, 320px); height: clamp(120px, 48vw, 200px); }
}


/* ========== 4) BOTTOM CTA =============================================== */

.ts911-cta{ padding: clamp(28px, 5vw, 56px) 0; background: #f7f9fc; }
.ts911-cta-grid{
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: clamp(12px, 4vw, 28px);
  align-items: center;
}
.ts911-cta-actions{ text-align: right; }
@media (max-width: 992px){
  .ts911-cta-grid{ grid-template-columns: 1fr; }
  .ts911-cta-actions{ text-align: left; }
}


/* ========== 5) ABOUT + VIDEO (legacy) =================================== */

.ts911-about{ padding: clamp(32px, 5vw, 64px) 0; background: #fff; }
.ts911-about-grid{
  display: grid;
  grid-template-columns: 1.5fr 2fr;
  gap: clamp(20px, 4vw, 48px);
  align-items: start;
}
@media (max-width: 1200px){ .ts911-about-grid{ grid-template-columns: 1fr 1.5fr; } }
@media (max-width: 992px){ .ts911-about-grid{ grid-template-columns: 1fr; } }

.ts911-about-copy{ max-width: 62ch; }
.ts911-about-copy p{ margin: 0 0 14px; line-height: 1.65; color: #374151; }

.ts911-underline{ position: relative; margin-bottom: 16px; }
.ts911-underline::after{
  content: "";
  display: block;
  width: 140px;
  height: 4px;
  background: #E02424;
  border-radius: 2px;
  margin-top: 10px;
}

.ts911-media{ width: 100%; }
.ts911-video{
  width: 100%;
  aspect-ratio: 16 / 9;
  display: block;
  background: #000;
  border-radius: 18px;
  box-shadow: 0 12px 30px rgba(2,8,20,.12);
  outline: 1px solid rgba(0,0,0,.06);
}


/* ========== 6) FULL-WIDTH “SERVICES” BAND ================================ */

.ts911-services{
  position: relative;
  padding: clamp(36px, 6vw, 84px) 0;
  color: #fff;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  background-image: var(--services-img);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* Keep ONLY the variable-driven overlay */
.ts911-services__overlay{
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,var(--services-overlay, .45));
  pointer-events: none;
}

.ts911-services__content{ position: relative; z-index: 1; text-align: center; }
.ts911-services h2{ color: #fff; font-weight: 800; margin: 0 0 18px; }

/* Lede */
.ts911-services__lede{
  color: #fff;
  font-size: clamp(18px, 1.8vw, 24px);
  line-height: 1.6;
  display: block;
  max-width: 80ch;
  margin: 0;
}

/* Default (2-column) grid baseline */
.ts911-services-grid{
  display: grid;
  grid-template-columns: repeat(2, minmax(300px, 1fr));
  gap: clamp(18px, 3vw, 48px);
  align-items: start;
  justify-content: center;
  max-width: 1100px;
  margin: 10px auto 0;
  text-align: left;
}

@media (max-width: 992px){
  .ts911-services-grid{ grid-template-columns: 1fr; max-width: 700px; }
  .ts911-services__lede{ max-width: 42ch; }
}

/* Bulleted lists */
.ts911-services .ts911-services-list,
.ts911-services .ts911-services-list li{
  font-size: clamp(18px, 3vw, 24px);
  line-height: 1.6;
  font-weight: 600;
}
.ts911-services-list{
  list-style: disc;
  list-style-position: outside;
  padding-left: 1.4rem;
  margin: 0;
  color: #fff;
}
.ts911-services-list li::marker{ color: #fff; }

/* --- Single-column variant --- */
.ts911-services-grid--single{
  display: grid;
  grid-template-columns: minmax(320px, 760px);
  justify-content: center;
  justify-items: stretch;
  gap: clamp(12px, 2.5vw, 20px);
  max-width: none;
  margin: 10px auto 0;
  text-align: left;
}
.ts911-services-grid--single > *{
  justify-self: center;
  padding-left: 0 !important;
}
.ts911-services-grid--single .ts911-services-list li{ margin: 4px 0; }

/* --- Two-column variant --- */
.ts911-services-grid--two{
  display: grid;
  grid-template-columns: repeat(2, minmax(280px, 1fr));
  gap: clamp(18px, 3vw, 48px);
  justify-content: center;
  align-items: start;
  max-width: 1100px;
  margin: 10px auto 0;
  text-align: left;
  --ts911-left-nudge: clamp(140px, 14vw, 260px);
}

@media (min-width: 992px){
  .ts911-services .ts911-services-grid.ts911-services-grid--two > :first-child{
    padding-left: var(--ts911-left-nudge) !important;
  }
}

@media (max-width: 992px){
  .ts911-services-grid--two{
    grid-template-columns: 1fr;
    max-width: 700px;
  }
}

/* Scrim panel */
.ts911-services__scrim{
  display: block;
  background: rgba(0,0,0,.42);
  backdrop-filter: blur(1.5px);
  -webkit-backdrop-filter: blur(1.5px);
  border-radius: 16px;
  padding: clamp(12px, 2vw, 20px);
  margin: 12px auto 0;
  max-width: 1100px;
}

.ts911-services__scrim p,
.ts911-services__scrim li{
  color: #fff;
  text-shadow: 0 1px 2px rgba(0,0,0,.35);
}

.ts911-services__scrim .ts911-services-list li::marker{ color: #fff; }

.ts911-services__scrim .ts911-services__lede{
  white-space: normal;
  margin: 0 0 clamp(8px, 1.6vw, 14px);
}

@media (min-width: 992px){
  .ts911-services__scrim .ts911-services-grid--two > :first-child{
    padding-left: var(--ts911-left-nudge, clamp(140px, 14vw, 260px)) !important;
  }
}

/* Services lede: perfect symmetry on wide screens */
@media (min-width: 1440px){
  .ts911-services__lede{
    white-space: nowrap;
    display: inline-block;
    width: fit-content;
    margin: 8px auto 18px;
    padding: 0;
    text-align: left;
    text-indent: 0;
    max-width: none;
  }
  .ts911-services__content{ padding-left: 0; padding-right: 0; }
}

/* Services: keep the lede on one line by letting the scrim/container go wider */
@media (min-width: 1400px){
  .ts911-services .ts911-services__content{
    max-width: 1500px;
    padding-left: 0;
    padding-right: 0;
  }
  .ts911-services .ts911-services__scrim{
    max-width: 1500px;
    margin-left: auto;
    margin-right: auto;
  }
  .ts911-services .ts911-services__scrim .ts911-services__lede{
    white-space: nowrap;
  }
}

/* safety: prevent horizontal scrollbars on slightly narrower viewports */
@media (min-width: 1400px) and (max-width: 1500px){
  .ts911-services .ts911-services__content,
  .ts911-services .ts911-services__scrim{
    max-width: 95vw;
  }
}


/* ========== 7) About / CTA (image left, text right) ===================== */

.ts911-about-cta{
  background: #fff;
  padding: clamp(32px, 5vw, 64px) 0;
}
.ts911-about-cta__grid{
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: clamp(20px, 4vw, 48px);
  align-items: center;
}
.ts911-about-cta__media img{
  width: 100%;
  height: auto;
  display: block;
  border-radius: 22px;
  box-shadow: 0 14px 36px rgba(2,8,20,.14);
  object-fit: cover;
}

.ts911-about-cta__title{ margin: 0 0 8px; font-weight: 800; }
.ts911-about-cta__rule{
  display: block;
  width: 160px;
  height: 4px;
  background: #B22222;
  border-radius: 2px;
  margin: 10px 0 16px;
}
.ts911-about-cta__copy p{ margin: 0 0 18px; line-height: 1.65; color: #374151; }

/* CTA: green by default, red on hover */
.ts911-btn--red{
  background: #145A32;
  color: #fff;
  box-shadow: 0 10px 24px rgba(20,90,50,.22);
}
.ts911-btn--red:hover{
  background: #B22222;
  transform: translateY(-2px);
}
.ts911-btn--red:focus-visible{ outline: 2px solid #fff; outline-offset: 2px; }

@media (max-width: 992px){
  .ts911-about-cta__grid{ grid-template-columns: 1fr; align-items: start; }
  .ts911-about-cta__media{ order: 1; }
  .ts911-about-cta__copy{ order: 2; }
}


/* ============================== 8) Utilities ============================= */

.sr-only{
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

.ts911-h1-break{ display:block; }
.ts911-hero-lede{ font-size: clamp(1.05rem, 1.6vw, 1.4rem); }
/* Page-only: show full services image with NO bars by matching section height to image ratio */
.ts911-services.ts911-services--fullimg{
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;

  padding: 0 !important;

  /* UPDATED image ratio: 1500x487 */
  aspect-ratio: 1500 / 487;

  position: relative;
}

/* Overlay stays full-height */
.ts911-services.ts911-services--fullimg .ts911-services__overlay{
  position: absolute;
  inset: 0;
}

/* Content overlays the image without increasing section height */
.ts911-services.ts911-services--fullimg .ts911-services__content{
  position: absolute;
  inset: 0;
  z-index: 1;

  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

/* Brush Removal page: force poster + video to fully fill container (no bars) */
.ts911-video.ts911-video--cover{
  width: 100%;
  height: 100%;
  aspect-ratio: auto;      /* stop forcing 16:9 on the element itself */
  object-fit: cover;       /* key: fills box, crops instead of bars */
  object-position: center;
  background: transparent; /* remove black behind poster/video */
  outline: 0;              /* removes the thin outline you set globally */
  border: 0;
  border-radius: 0;        /* remove any rounding if you consider it a “border” */
  display: block;
}

/* Ensure the parent actually clips the video cleanly */
.ts911-media{
  overflow: hidden;
  border-radius: 0;        /* if you want zero rounding */
}

/* Poster overlay above the video: eliminates pillarbox bars before play */
.ts911-media.ts911-media--video-cover .ts911-media--rounded-video{
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  aspect-ratio: 16 / 9;
}

/* Page-safe video wrapper: rounded corners + clipping */
.ts911-media--rounded-video{
  overflow: hidden;
  border-radius: 18px;
}

/* Force the PLAYING video to fill the box (no bars caused by sizing) */
.ts911-video.ts911-video--cover{
  width: 100%;
  height: 100%;
  aspect-ratio: 16 / 9;    /* keeps consistent box */
  object-fit: cover;       /* fill container (cropping allowed) */
  object-position: center;

  display: block;
  border: 0;
  outline: 0;
  border-radius: 0;        /* wrapper owns the rounding */
  background: #000;        /* poster bars (if any) use this color */
}
