/* ── Variables & Base ─────────────────────── */
:root {
  --green-900: #0f2d1a; --green-700: #085041; --green-500: #085041;
  --green-400: #5cd97a; --green-200: #b7f5c7; --green-50: #f0fff4;
  --text: #374151; --muted: #6B7280; --white: #FFFFFF; --bg-alt: #F8FAFC;
  --border: #E5E7EB; --radius: 12px;
  --shadow: 0 4px 20px rgba(0,0,0,0.08); --shadow-lg: 0 8px 40px rgba(0,0,0,0.12);
  --transition: 0.3s cubic-bezier(.4,0,.2,1);
}
body { color: var(--text); }
.svc-section, .svc-section * { font-family: 'Open Sans', sans-serif; }
.svc-section          { padding: 72px 0; }
.svc-section--light   { background: var(--white); }
/* .svc-section--dark-alt{ background: var(--bg-alt); } */

/* ── Shared Typography ── */
.svc-header { text-align: center; margin-bottom: 40px; }
.svc-badge {
  display: inline-block; background: var(--green-50); color: #085041;
  font-family: 'Jost', sans-serif; font-weight: 600; font-size: .78rem;
  letter-spacing: .12em; text-transform: uppercase; padding: 5px 16px;
  border-radius: 100px; border: 1px solid var(--green-200); margin-bottom: 14px;
}
.svc-title {
  font-family: 'Jost', sans-serif; font-size: 2.2rem; font-weight: 700;
  color: var(--green-900); margin-bottom: 16px; line-height: 1.25;
}
.svc-lead {
  font-size: 1.05rem; color: var(--muted); max-width: 700px;
  margin: 0 auto 32px; line-height: 1.75;
}
.sub-heading {
  font-family: 'Jost', sans-serif; font-size: 1.55rem; font-weight: 700;
  color: #28a745; margin-bottom: 28px; text-align: center;
}
.check-list { list-style: none; padding: 0; margin: 0; }
.check-list li {
  position: relative; padding-left: 24px;
  margin-bottom: 10px; font-size: .95rem; line-height: 1.65; color: var(--text);
}
.check-list li::before { content: '\2713'; position: absolute; left: 0; top: 1px; color: var(--green-500); font-weight: 700; }

/* ── EMS Stat Cards ── */
.ems-intro  { padding-bottom: 24px !important; }
.ems-stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px;
}
.ems-stat-card {
  display: flex; align-items: center; gap: 16px;
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 22px 20px;
  transition: transform var(--transition), border-color var(--transition);
}
.ems-stat-card:hover { transform: translateY(-4px); border-color: var(--green-400); }
.ems-stat-icon {
  width: 52px; height: 52px; flex-shrink: 0;
  background: linear-gradient(135deg, var(--green-700), var(--green-500));
  border-radius: 14px; display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem; color: #fff; box-shadow: 0 4px 14px rgba(45,106,79,.25);
}
.ems-stat-content { display: flex; flex-direction: column; }
.ems-stat-num {
  font-family: 'Jost', sans-serif; font-size: 1.6rem; font-weight: 800;
  color: var(--green-700); line-height: 1;
}
.ems-stat-lbl {
  font-size: .75rem; font-weight: 600; letter-spacing: .04em;
  color: var(--muted); margin-top: 5px; line-height: 1.4;
}

/* ── EMS Intro Card ── */
.ems-intro-card {
  background: linear-gradient(145deg, var(--green-900) 0%, var(--green-700) 100%);
  color: var(--white); border-radius: var(--radius); padding: 36px 28px; height: 100%;
}
.ems-intro-card h3 { font-family: 'Jost', sans-serif; font-size: 1.4rem; font-weight: 700; color: var(--white); margin-bottom: 16px; }
.ems-intro-card p  { font-size: .95rem; line-height: 1.75; color: rgba(255,255,255,.82); margin-bottom: 20px; }
.ems-intro-card .check-list li { color: rgba(255,255,255,.85); }
.ems-intro-card .check-list li::before { color: var(--green-400); }

/* ── Accordion ── */
.accordion-custom { display: flex; flex-direction: column; gap: 8px; }
.acc-item { border: 1px solid var(--border); border-radius: 10px; overflow: hidden; }
.acc-btn {
  width: 100%; display: flex; align-items: center; gap: 10px;
  padding: 14px 18px; background: var(--white); border: none;
  font-family: 'Jost', sans-serif; font-size: .95rem; font-weight: 600;
  color: var(--text); cursor: pointer; text-align: left;
  transition: background var(--transition), color var(--transition);
}
.acc-btn .acc-chevron { margin-left: auto; transition: transform var(--transition); font-size: 1rem; color: var(--green-500); }
.acc-btn.active { background: var(--green-50); color: var(--green-900); }
.acc-btn.active .acc-chevron { transform: rotate(180deg); }
.acc-btn:hover { background: var(--green-50); }
.acc-body { display: none; padding: 0 18px; background: var(--white); }
.acc-body.open { display: block; padding: 14px 18px 18px; }
.acc-body .check-list li { font-size: .9rem; }

/* ── Detail Tabs ── */
.detail-tabs {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden;
}
.detail-tab-nav { display: flex; border-bottom: 1px solid var(--border); background: var(--bg-alt); }
.dtab {
  flex: 1; padding: 14px 10px;
  font-family: 'Jost', sans-serif; font-weight: 600; font-size: .85rem;
  border: none; background: transparent; color: var(--muted);
  cursor: pointer; border-bottom: 3px solid transparent;
  transition: color var(--transition), border-color var(--transition), background var(--transition);
}
.dtab:hover { color: #085041; }
.dtab.active { color: #085041; background: var(--white); border-bottom-color: var(--green-500); }
.detail-tab-panels { padding: 32px; }
.dtab-panel { display: none; }
.dtab-panel.active { display: block; }

/* ── Checklist Grid with Numbers ── */
.checklist-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px;
  counter-reset: check-counter;
}
.check-item {
  display: flex; align-items: flex-start; gap: 14px;
  font-size: .95rem; line-height: 1.65; color: var(--text);
  padding: 6px 0; counter-increment: check-counter;
}
.check-item i { display: none; }
.check-item::before {
  content: counter(check-counter);
  min-width: 28px; height: 28px;
  background: var(--green-700); color: #fff; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: .78rem; font-weight: 700; flex-shrink: 0; margin-top: 2px;
}

/* ── Let's Talk CTA ── */
.ems-letstalk { padding: 32px 0 !important; background: #fff; border-top: 1px solid #e5ede8; }
.svc-cta-link {
  display: inline-flex; align-items: center; gap: 16px;
  text-decoration: none; cursor: pointer;
  border-bottom: 1.5px solid transparent;
  padding: 8px 0;
  transition: border-color .3s;
}
.svc-cta-link:hover { border-bottom-color: #28a745; }
.svc-cta-sub {
  font-family: 'Jost', sans-serif; font-size: .68rem; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase;
  color: #28a745; display: block; margin-bottom: 4px;
}
.svc-cta-main {
  font-family: 'Jost', sans-serif; font-size: 1.15rem; font-weight: 700;
  color: #0f2d1a; display: block; letter-spacing: .01em;
}
.svc-cta-icon {
  display: flex; align-items: center; justify-content: center;
  width: 46px; height: 46px; border-radius: 50%;
  border: 1.5px solid #28a745; color: #28a745; font-size: 1.25rem; line-height: 1;
  flex-shrink: 0;
  transition: background .3s ease, color .3s ease, transform .35s cubic-bezier(0.34,1.56,0.64,1), border-color .3s ease;
}
.svc-cta-link:hover .svc-cta-icon {
  background: #28a745; color: #fff; border-color: #28a745;
  transform: translateX(6px);
}
.svc-cta-icon span { display: block; animation: svc-arrow-bounce 1.6s ease-in-out infinite; }
.svc-cta-link:hover .svc-cta-icon span { animation: none; }
@keyframes svc-arrow-bounce {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(3px); }
}

/* ── WWD Coverflow Carousel ── */
.wwd-outer { padding: 30px 0 20px; }
.wwd-carousel-wrap { display: flex; align-items: center; gap: 0; }
.wwd-carousel-wrap .svc-side-arrow {
    background: none;
    border: none;
    outline: none;
    box-shadow: none;
    color: #2d6a4f;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 8px;
    line-height: 1;
    flex-shrink: 0;
    align-self: center;
    transition: color 0.2s, transform 0.2s;
}
.wwd-carousel-wrap .svc-side-arrow:hover,
.wwd-carousel-wrap .svc-side-arrow:focus {
    color: #1b4332;
    transform: scale(1.2);
    outline: none;
    box-shadow: none;
}
.wwd-carousel { flex: 1; min-width: 0; perspective: 1400px; height: 420px; position: relative; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.wwd-dots-row { display: flex; justify-content: center; margin-top: 28px; }
.wwd-slide { position: absolute; width: 300px; height: 380px; cursor: pointer; transition: transform 0.6s cubic-bezier(.4,0,.2,1), opacity 0.6s cubic-bezier(.4,0,.2,1); transform-style: preserve-3d; will-change: transform, opacity; }
.wwd-slide__inner { width: 100%; height: 100%; border-radius: 20px; background-size: cover; background-position: center; overflow: hidden; position: relative; }
.wwd-slide__overlay { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,30,20,0.45) 0%, rgba(10,30,20,0.88) 100%); transition: background 0.5s; }
.wwd-slide.is-active .wwd-slide__overlay { background: linear-gradient(180deg, rgba(10,30,20,0.25) 0%, rgba(10,30,20,0.78) 100%); }
.wwd-slide__content { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end; padding: 30px 28px; color: #fff; }
.wwd-slide__icon { display: none; }
.wwd-slide__content h4 { font-family: 'Jost', sans-serif; font-size: 1.15rem; font-weight: 700; margin: 0 0 8px; line-height: 1.3; color: #fff; }
.wwd-slide__content p { font-size: .83rem; line-height: 1.65; margin: 0; color: rgba(255,255,255,0.88); max-height: 0; overflow: hidden; opacity: 0; transition: max-height 0.4s ease, opacity 0.4s 0.1s ease; }
.wwd-slide.is-active .wwd-slide__content p { max-height: 100px; opacity: 1; }
.wwd-nav { display: flex; align-items: center; justify-content: center; gap: 20px; margin-top: 28px; }
.wwd-dots { display: flex; gap: 8px; align-items: center; }
.wwd-dot { width: 9px; height: 9px; border-radius: 50%; background: rgba(26,107,60,0.22); border: none; cursor: pointer; transition: background 0.3s, transform 0.3s; padding: 0; }
.wwd-dot.is-active { background: #1a6b3c; transform: scale(1.35); }

/* ── Responsive ── */
@media (max-width: 991px) {
  .svc-section  { padding: 56px 0; }
  .svc-title    { font-size: 1.8rem; }
  .sub-heading  { font-size: 1.35rem; }
  .ems-stats    { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 767px) {
  .svc-section        { padding: 40px 0; }
  .svc-title          { font-size: 1.55rem; }
  .svc-header         { margin-bottom: 28px; }
  .checklist-grid     { grid-template-columns: 1fr; }
  .detail-tab-panels  { padding: 20px; }
  .ems-stats          { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .ems-stats { grid-template-columns: 1fr; }
}
