/* =========================================================
   ATS EMERGENCY TREE WORKS PAGE CSS
   ---------------------------------------------------------
   PURPOSE:
   Page-specific styling for the Emergency Tree Works page.

   RESPONSIBILITIES:
   - Emergency intro strip
   - Audience / response area
   - Emergency service cards
   - Compliance / "How We Work"
   - Optional emergency CTA styles if used on this page

   DOES NOT INCLUDE:
   - Global tokens/base typography  -> ats-main.css
   - Shared hero system             -> ats-hero.css
   - Header/footer styling          -> ats-header.css / ats-footer.css

   NOTES:
   - Keep this file isolated to this page.
   - Avoid Elementor page-level custom CSS.
   - Avoid !important unless there is a proven Elementor conflict.
   - Move reusable patterns into ats-main.css or ats-services.css later.

   ========================================================= */


/* =========================================================
   1) EMERGENCY INTRO STRIP
   ========================================================= */

.ats-emergency-intro {
  background: #fff;
  padding: 24px 0 18px;
  text-align: center;
}

.ats-emergency-intro > .e-con-inner {
  max-width: 1040px;
  margin-inline: auto;
  padding-inline: 20px;
  box-sizing: border-box;
}

.ats-emergency-intro__title {
  margin: 0 0 10px;
}

.ats-emergency-intro__title .elementor-heading-title,
.ats-emergency-intro__title h1,
.ats-emergency-intro__title h2,
.ats-emergency-intro__title h3 {
  margin: 0;
  color: var(--ats-ink, #0F172A);
  font-size: clamp(26px, 3.6vw, 38px);
  line-height: 1.08;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

.ats-emergency-intro__lead {
  max-width: 62ch;
  margin-inline: auto;
}

.ats-emergency-intro__lead,
.ats-emergency-intro__lead p {
  color: var(--ats-muted, #64748B);
  font-size: clamp(17px, 1.1vw, 19px);
  line-height: 1.55;
}

.ats-emergency-intro__lead p {
  margin: 0;
}


/* =========================================================
   2) EMERGENCY AUDIENCE / RESPONSE AREA
   ========================================================= */

.ats-emergency-audience {
  background: #f7f8fa;
  border-top: 1px solid rgba(15, 23, 42, .05);
  border-bottom: 1px solid rgba(15, 23, 42, .05);
  padding: 28px 0 34px;
}

.ats-emergency-audience > .e-con-inner {
  max-width: 1120px;
  margin-inline: auto;
  padding-inline: 24px;
  box-sizing: border-box;
  display: grid;
  grid-template-columns: minmax(320px, 480px) minmax(0, 1fr);
  gap: 32px;
  align-items: center;
}

.ats-emergency-audience__media,
.ats-emergency-audience__content {
  min-width: 0;
}

.ats-emergency-audience__media {
  width: 100%;
  max-width: 480px;
}

.ats-emergency-audience__image .elementor-widget-container {
  overflow: hidden;
  background: #fff;
  border: 1px solid rgba(15, 23, 42, .08);
  border-radius: 24px;
  box-shadow: 0 14px 30px rgba(15, 23, 42, .08);
}

.ats-emergency-audience__image img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.ats-emergency-audience__content {
  max-width: 620px;
}

.ats-emergency-audience__list {
  margin: 0 0 18px;
}

.ats-emergency-audience__list .elementor-icon-list-items {
  margin: 0;
  padding: 0;
}

.ats-emergency-audience__list .elementor-icon-list-item {
  margin: 0;
  padding: 8px 0;
}

.ats-emergency-audience__list .elementor-icon-list-item + .elementor-icon-list-item {
  border-top: 1px solid rgba(15, 23, 42, .08);
}

.ats-emergency-audience__list .elementor-icon-list-icon {
  color: var(--ats-green, #0F4A35);
  margin-top: 0;
}

.ats-emergency-audience__list .elementor-icon-list-icon i,
.ats-emergency-audience__list .elementor-icon-list-icon svg {
  color: var(--ats-green, #0F4A35);
  fill: currentColor;
}

.ats-emergency-audience__list .elementor-icon-list-text {
  color: var(--ats-ink, #0F172A);
  font-size: clamp(16px, 1vw, 18px);
  line-height: 1.42;
  font-weight: 500;
}

.ats-emergency-audience__body,
.ats-emergency-audience__body p {
  color: var(--ats-muted, #64748B);
  font-size: clamp(16px, 1vw, 18px);
  line-height: 1.6;
}

.ats-emergency-audience__body p {
  margin: 0;
  max-width: 50ch;
}


/* =========================================================
   3) EMERGENCY TREE SERVICES
   ========================================================= */

.ats-emergency-services {
  background: #fff;
  padding: clamp(44px, 6vw, 72px) 0;
}

.ats-emergency-services > .e-con-inner {
  max-width: 1160px;
  margin-inline: auto;
  padding-inline: clamp(20px, 3vw, 36px);
  box-sizing: border-box;
}

.ats-emergency-services__title {
  margin: 0 0 12px;
}

.ats-emergency-services__title .elementor-heading-title,
.ats-emergency-services__title h2,
.ats-emergency-services__title h3 {
  margin: 0;
  color: var(--ats-ink, #0F172A);
  font-size: clamp(28px, 3vw, 38px);
  line-height: 1.08;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

.ats-emergency-services__lead {
  max-width: 58ch;
  margin: 0 0 28px;
}

.ats-emergency-services__lead,
.ats-emergency-services__lead p {
  color: var(--ats-muted, #64748B);
  font-size: clamp(17px, 1.08vw, 19px);
  line-height: 1.62;
}

.ats-emergency-services__lead p {
  margin: 0;
}

.ats-emergency-services__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.ats-emergency-services__card {
  min-width: 0;
  padding: 24px 26px;
  background: #fff;
  border: 1px solid rgba(15, 23, 42, .08);
  border-radius: 22px;
  box-shadow: 0 12px 28px rgba(15, 23, 42, .05);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.ats-emergency-services__card:hover {
  transform: translateY(-2px);
  border-color: rgba(15, 74, 53, .18);
  box-shadow: 0 18px 36px rgba(15, 23, 42, .08);
}

.ats-emergency-services__cardtitle {
  margin: 0 0 14px;
}

.ats-emergency-services__cardtitle .elementor-heading-title,
.ats-emergency-services__cardtitle h3,
.ats-emergency-services__cardtitle h4 {
  margin: 0;
  color: var(--ats-ink, #0F172A);
  font-size: clamp(18px, 1.3vw, 22px);
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.ats-emergency-services__cardbody,
.ats-emergency-services__cardbody p {
  color: var(--ats-muted, #64748B);
  font-size: clamp(15px, .96vw, 17px);
  line-height: 1.6;
}

.ats-emergency-services__cardbody p {
  margin: 0;
}


/* =========================================================
   4) HOW WE WORK / COMPLIANCE
   ========================================================= */

.ats-compliance {
  background: linear-gradient(180deg, #F7F8FA 0%, #F3F5F7 100%);
  border-top: 1px solid rgba(15, 23, 42, .05);
  border-bottom: 1px solid rgba(15, 23, 42, .05);
  padding: clamp(44px, 6vw, 72px) 0 clamp(56px, 7vw, 92px);
}

.ats-compliance > .e-con-inner {
  max-width: 1160px;
  margin-inline: auto;
  padding-inline: clamp(20px, 3vw, 36px);
  box-sizing: border-box;
}

.ats-compliance__left {
  padding: clamp(8px, 1vw, 14px) 0;
}

.ats-compliance__title {
  margin: 0 0 20px;
}

.ats-compliance__title .elementor-heading-title,
.ats-compliance__title h2,
.ats-compliance__title h3 {
  position: relative;
  margin: 0;
  padding-bottom: 14px;
  color: var(--ats-ink, #0F172A);
  font-size: clamp(30px, 3vw, 38px);
  line-height: 1.08;
  letter-spacing: -0.03em;
}

.ats-compliance__title .elementor-heading-title::after,
.ats-compliance__title h2::after,
.ats-compliance__title h3::after {
  content: "";
  display: block;
  width: 72px;
  height: 3px;
  margin-top: 16px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--ats-green, #0F4A35) 0%, #2BB673 100%);
}

.ats-compliance__body {
  max-width: 43ch;
  margin: 0 0 22px;
}

.ats-compliance__body,
.ats-compliance__body p {
  color: var(--ats-muted, #64748B);
  font-size: clamp(17px, 1.08vw, 19px);
  line-height: 1.62;
}

.ats-compliance__body p {
  margin: 0 0 14px;
}

.ats-compliance__body p:last-child {
  margin-bottom: 0;
}

.ats-compliance__points {
  max-width: 40ch;
}

.ats-compliance__points ul,
.ats-compliance__card ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.ats-compliance__points li {
  position: relative;
  margin: 0 0 12px;
  padding-left: 26px;
  color: var(--ats-ink, #0F172A);
  font-size: clamp(15px, .96vw, 17px);
  line-height: 1.45;
}

.ats-compliance__points li:last-child {
  margin-bottom: 0;
}

.ats-compliance__points li::before,
.ats-compliance__card li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--ats-green, #0F4A35);
  font-weight: 700;
}

.ats-compliance__points li::before {
  top: 0;
}

.ats-compliance__right {
  padding: 18px 20px;
  background: #fff;
  border: 1px solid rgba(15, 23, 42, .08);
  border-radius: 22px;
  box-shadow: 0 14px 30px rgba(15, 23, 42, .06);
  box-sizing: border-box;
}

.ats-compliance__card > .elementor-widget-container {
  background: transparent;
  border: 0;
  box-shadow: none;
  padding: 0;
  border-radius: 0;
}

.ats-compliance__card li {
  position: relative;
  margin: 0;
  padding: 11px 0 11px 26px;
  color: var(--ats-ink, #0F172A);
  font-size: clamp(15px, .96vw, 17px);
  line-height: 1.42;
  font-weight: 600;
}

.ats-compliance__card li + li {
  border-top: 1px solid rgba(15, 23, 42, .08);
}

.ats-compliance__card li::before {
  top: 11px;
}


/* =========================================================
   5) OPTIONAL EMERGENCY CTA
   ---------------------------------------------------------
   Retained for pages/sections using the old image + dark-card
   CTA pattern. If this section is no longer used, this block
   can be removed after confirming no markup references it.
   ========================================================= */

.ats-emergency-cta {
  background: transparent;
  padding: clamp(28px, 4vw, 40px) 0 48px;
}

.ats-emergency-cta__inner {
  max-width: 1280px;
  margin-inline: auto;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(360px, 520px);
  gap: clamp(24px, 4vw, 48px);
  align-items: stretch;
}

.ats-emergency-cta__media,
.ats-emergency-cta__panel {
  min-width: 0;
}

.ats-emergency-cta__media {
  padding: 12px;
  overflow: hidden;
  background: rgba(255, 255, 255, .96);
  border: 1px solid rgba(15, 23, 42, .08);
  border-radius: 24px;
  box-shadow: 0 16px 42px rgba(15, 23, 42, .10);
}

.ats-emergency-cta__media .elementor-widget-image,
.ats-emergency-cta__media .elementor-widget-container {
  height: 100%;
}

.ats-emergency-cta__media img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 320px;
  object-fit: cover;
  border-radius: 16px;
}

.ats-emergency-cta__panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(22px, 2.8vw, 32px);
  background: linear-gradient(180deg, #0f2c22 0%, #0b2019 100%);
  border: 1px solid rgba(255, 255, 255, .06);
  border-radius: 24px;
  box-shadow: 0 18px 46px rgba(6, 16, 13, .22);
  color: rgba(255, 255, 255, .92);
}

.ats-emergency-cta__eyebrow,
.ats-emergency-cta__title,
.ats-emergency-cta__lead,
.ats-emergency-cta__trust {
  margin-top: 0;
}

.ats-emergency-cta__eyebrow {
  margin-bottom: 8px;
  text-align: left;
}

.ats-emergency-cta__eyebrow .elementor-heading-title,
.ats-emergency-cta__eyebrow h2,
.ats-emergency-cta__eyebrow h3,
.ats-emergency-cta__eyebrow h4 {
  margin: 0;
  color: rgba(255, 255, 255, .68);
  font-size: 12px;
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.ats-emergency-cta__title {
  margin-bottom: 12px;
}

.ats-emergency-cta__title .elementor-heading-title,
.ats-emergency-cta__title h2,
.ats-emergency-cta__title h3 {
  margin: 0;
  color: #fff;
  font-size: clamp(30px, 3vw, 42px);
  line-height: 1.04;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

.ats-emergency-cta__lead {
  max-width: 31ch;
  margin-bottom: 16px;
}

.ats-emergency-cta__lead,
.ats-emergency-cta__lead p {
  color: rgba(255, 255, 255, .84);
  font-size: clamp(17px, 1.25vw, 19px);
  line-height: 1.55;
}

.ats-emergency-cta__lead p:last-child {
  margin-bottom: 0;
}

.ats-emergency-cta__trust {
  margin-bottom: 16px;
}

.ats-emergency-cta__trust .elementor-icon-list-items {
  margin: 0;
  padding: 0;
}

.ats-emergency-cta__trust .elementor-icon-list-item {
  margin: 0;
  padding: 7px 0;
}

.ats-emergency-cta__trust .elementor-icon-list-item + .elementor-icon-list-item {
  border-top: 1px solid rgba(255, 255, 255, .12);
}

.ats-emergency-cta__trust .elementor-icon-list-icon {
  color: rgba(255, 255, 255, .98);
  margin-top: 0;
}

.ats-emergency-cta__trust .elementor-icon-list-icon i,
.ats-emergency-cta__trust .elementor-icon-list-icon svg {
  color: rgba(255, 255, 255, .98);
  fill: currentColor;
  opacity: 1;
  transform: scale(1.04);
}

.ats-emergency-cta__trust .elementor-icon-list-text {
  color: rgba(255, 255, 255, .94);
}

.ats-emergency-cta__buttons {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin: 0;
}

.ats-emergency-cta__buttons .elementor-widget-button {
  width: auto;
  max-width: none;
  flex: 0 0 auto;
  margin: 0;
}

.ats-emergency-cta__buttons .elementor-widget-container,
.ats-emergency-cta__buttons .elementor-button-wrapper {
  width: auto;
  display: inline-flex;
  margin: 0;
}

.ats-emergency-cta__buttons .elementor-button {
  min-height: 48px;
  padding: 12px 22px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  font-weight: 700;
}

.ats-emergency-cta__buttons .elementor-button-content-wrapper {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  line-height: 1;
}

.ats-emergency-cta__buttons .elementor-button-text {
  line-height: 1;
}

.ats-emergency-cta__buttons .ats-btn--ghost {
  order: 1;
}

.ats-emergency-cta__buttons .ats-btn--primary {
  order: 2;
}

.ats-emergency-cta__buttons .ats-btn--primary .elementor-button {
  color: #fff;
  background: linear-gradient(180deg, var(--ats-green-2, #156B4E) 0%, var(--ats-green, #0F4A35) 100%);
  border: 1px solid rgba(15, 74, 53, .35);
}

.ats-emergency-cta__buttons .ats-btn--ghost .elementor-button {
  color: #fff;
  background: rgba(255, 255, 255, .12);
  border: 1px solid rgba(255, 255, 255, .52);
  box-shadow: 0 8px 20px rgba(15, 23, 42, .10);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.ats-emergency-cta__buttons .ats-btn--ghost .elementor-button:hover,
.ats-emergency-cta__buttons .ats-btn--ghost .elementor-button:focus-visible {
  color: #fff;
  background: rgba(255, 255, 255, .16);
  border-color: rgba(255, 255, 255, .66);
  box-shadow: 0 10px 24px rgba(15, 23, 42, .12);
}


/* =========================================================
   6) RESPONSIVE — TABLET / SMALL DESKTOP
   ========================================================= */

@media (max-width: 1024px) {

  .ats-emergency-audience > .e-con-inner {
    grid-template-columns: 1fr;
    gap: 24px;
    align-items: start;
  }

  .ats-emergency-audience__media,
  .ats-emergency-audience__content {
    max-width: 680px;
    margin-inline: auto;
  }

  .ats-emergency-audience__body p {
    max-width: none;
  }

  .ats-emergency-cta__inner {
    grid-template-columns: 1fr;
  }

  .ats-emergency-cta__media img {
    min-height: 280px;
  }

  .ats-emergency-cta__lead {
    max-width: none;
  }

}


/* =========================================================
   7) RESPONSIVE — MOBILE 767PX AND BELOW
   ========================================================= */

@media (max-width: 767px) {

  /* Intro strip */
  .ats-emergency-intro {
    padding: 20px 0 14px;
  }

  .ats-emergency-intro > .e-con-inner {
    padding-inline: 16px;
  }

  .ats-emergency-intro__title .elementor-heading-title,
  .ats-emergency-intro__title h1,
  .ats-emergency-intro__title h2,
  .ats-emergency-intro__title h3 {
    font-size: clamp(24px, 7vw, 32px);
  }

  .ats-emergency-intro__lead,
  .ats-emergency-intro__lead p {
    font-size: 16px;
  }

  /* Audience area */
  .ats-emergency-audience {
    padding: 24px 0 32px;
  }

  .ats-emergency-audience > .e-con-inner {
    padding-inline: 16px;
    gap: 18px;
  }

  .ats-emergency-audience__media,
  .ats-emergency-audience__content {
    width: 100%;
    max-width: none;
    margin-inline: 0;
  }

  .ats-emergency-audience__image .elementor-widget-container {
    border-radius: 18px;
    box-shadow: 0 10px 24px rgba(15, 23, 42, .06);
  }

  .ats-emergency-audience__image img {
    aspect-ratio: 16 / 9;
    max-height: 260px;
  }

  .ats-emergency-audience__list {
    margin-bottom: 16px;
  }

  .ats-emergency-audience__list .elementor-icon-list-item {
    padding: 7px 0;
  }

  .ats-emergency-audience__list .elementor-icon-list-text,
  .ats-emergency-audience__body,
  .ats-emergency-audience__body p {
    font-size: 16px;
    line-height: 1.5;
  }

  /* Service cards */
  .ats-emergency-services {
    padding: 34px 0 42px;
  }

  .ats-emergency-services > .e-con-inner {
    padding-inline: 16px;
  }

  .ats-emergency-services__title .elementor-heading-title,
  .ats-emergency-services__title h2,
  .ats-emergency-services__title h3 {
    font-size: clamp(28px, 7vw, 36px);
    line-height: 1.08;
    text-align: left;
  }

  .ats-emergency-services__lead {
    margin-bottom: 22px;
  }

  .ats-emergency-services__lead,
  .ats-emergency-services__lead p {
    font-size: 16px;
    line-height: 1.55;
    text-align: left;
  }

  .ats-emergency-services__grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .ats-emergency-services__card {
    padding: 22px 20px;
    border-radius: 18px;
  }

  .ats-emergency-services__cardtitle .elementor-heading-title,
  .ats-emergency-services__cardtitle h3,
  .ats-emergency-services__cardtitle h4 {
    font-size: clamp(22px, 5.8vw, 28px);
    line-height: 1.15;
  }

  .ats-emergency-services__cardbody,
  .ats-emergency-services__cardbody p {
    font-size: 16px;
    line-height: 1.55;
  }

  /* Compliance */
  .ats-compliance {
    padding: 36px 0 44px;
  }

  .ats-compliance > .e-con-inner {
    padding-inline: 16px;
  }

  .ats-compliance__title .elementor-heading-title,
  .ats-compliance__title h2,
  .ats-compliance__title h3 {
    font-size: clamp(30px, 7vw, 38px);
    line-height: 1.08;
  }

  .ats-compliance__title .elementor-heading-title::after,
  .ats-compliance__title h2::after,
  .ats-compliance__title h3::after {
    width: 58px;
    margin-top: 14px;
  }

  .ats-compliance__body,
  .ats-compliance__body p {
    font-size: 16px;
    line-height: 1.55;
  }

  .ats-compliance__points li,
  .ats-compliance__card li {
    font-size: 16px;
    line-height: 1.45;
  }

  .ats-compliance__right {
    padding: 16px;
    border-radius: 18px;
  }

  .ats-compliance__card li {
    padding: 10px 0 10px 24px;
  }

  .ats-compliance__card li::before {
    top: 10px;
  }

  /* Optional old emergency CTA */
  .ats-emergency-cta {
    padding-top: 20px;
    padding-bottom: 36px;
  }

  .ats-emergency-cta__inner {
    gap: 18px;
  }

  .ats-emergency-cta__media {
    padding: 10px;
    border-radius: 20px;
  }

  .ats-emergency-cta__media img {
    min-height: 220px;
    border-radius: 14px;
  }

  .ats-emergency-cta__panel {
    padding: 20px 18px;
    border-radius: 20px;
  }

  .ats-emergency-cta__eyebrow .elementor-heading-title,
  .ats-emergency-cta__eyebrow h2,
  .ats-emergency-cta__eyebrow h3,
  .ats-emergency-cta__eyebrow h4 {
    font-size: 11px;
  }

  .ats-emergency-cta__title .elementor-heading-title,
  .ats-emergency-cta__title h2,
  .ats-emergency-cta__title h3 {
    font-size: clamp(26px, 8vw, 34px);
  }

  .ats-emergency-cta__lead,
  .ats-emergency-cta__lead p {
    font-size: 16px;
  }

  .ats-emergency-cta__buttons {
    gap: 10px;
  }

  .ats-emergency-cta__buttons .elementor-button {
    min-height: 42px;
    padding: 10px 18px;
  }

}
