/* ═══════════════════════════════════════════════════════════════════════════
   Email Marketing Service Page — em- prefix
   ═══════════════════════════════════════════════════════════════════════════ */

.email-marketing-page-hero {
  --em-theme-soft: rgba(var(--theme-color-rgb), 0.06);
  --em-theme-soft-2: rgba(var(--theme-color-rgb), 0.1);
  --em-theme-soft-3: rgba(var(--theme-color-rgb), 0.14);
  --em-theme-soft-4: rgba(var(--theme-color-rgb), 0.24);
  --em-accent-soft: rgba(var(--theme2-rgb), 0.18);
  --em-surface: var(--white);
  --em-surface-alt:
    linear-gradient(145deg, rgba(var(--theme-color-rgb), 0.08) 0%, var(--white) 100%);
  --em-surface-light:
    linear-gradient(180deg, rgba(var(--theme-color-rgb), 0.07) 0%, var(--white) 100%);
  --em-shadow: 0 14px 32px rgba(31, 23, 38, 0.08);
  --em-shadow-lg: 0 16px 34px rgba(31, 23, 38, 0.08);
  --em-dark-panel: linear-gradient(145deg, var(--brand-primary-dark) 0%, var(--theme) 100%);
}

.email-marketing-page-hero .page-heading .page-header-left {
  max-width: 860px;
}

.email-marketing-page-hero .page-heading h1 {
  max-width: 760px;
}

.email-marketing-page-hero .page-heading .breadcrumb-description {
  max-width: 720px;
  color: rgba(255, 255, 255, 0.92);
}

.email-marketing-page-hero .breadcrumb-cta-group {
  margin-top: 28px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.email-marketing-page-hero .breadcrumb-cta-group .breadcrumb-cta {
  margin-top: 0;
  border-radius: 10px;
  min-width: 0;
  padding: 16px 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.email-marketing-page-hero .breadcrumb-cta-group .breadcrumb-cta::before {
  background-color: var(--theme2);
}

.email-marketing-page-hero .breadcrumb-cta-secondary {
  border-radius: 10px;
  min-width: 0;
  padding: 16px 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.email-marketing-page-hero .breadcrumb-trust-line {
  margin: 16px 0 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: 16px;
  line-height: 1.6;
}

/* ── Section base ────────────────────────────────────────────────────────── */

.em-section {
  position: relative;
  padding: 96px 0;
}

.em-section--reality {
  background: var(--em-surface-light);
  padding-bottom: 0;
}

.em-section--handles {
  padding-top: 96px;
}

.em-section--fit {
  background: rgba(var(--theme-color-rgb), 0.04);
}

.em-section--process {
  background: var(--em-surface-light);
}

.em-section--results {
  background: rgba(var(--theme-color-rgb), 0.03);
}

.em-section--question {
  padding-top: 54px;
}

.em-section--faq {
  padding-top: 88px;
}

/* ── Shared typography ───────────────────────────────────────────────────── */

.em-eyebrow {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  border: 1px solid rgba(var(--theme-color-rgb), 0.22);
  background: rgba(var(--theme-color-rgb), 0.08);
  color: var(--theme);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1;
  padding: 8px 14px;
  margin-bottom: 16px;
}

.em-eyebrow--light {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.34);
  color: var(--white);
}

.em-heading {
  max-width: 820px;
  margin: 0 auto 46px;
}

.em-heading h2 {
  margin-bottom: 14px;
}

.em-heading p {
  margin: 0;
  color: var(--text);
  font-size: 18px;
  line-height: 1.75;
}

/* ── Reality section ─────────────────────────────────────────────────────── */

.em-reality-inner {
  max-width: 760px;
  margin: 0 auto;
  padding-bottom: 52px;
}

.em-reality-inner h2 {
  margin: 0 0 18px;
}

.em-reality-inner > p {
  font-size: 18px;
  color: var(--text);
  line-height: 1.75;
  margin-bottom: 36px;
}

.em-reality-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.em-reality-list li {
  font-size: 17px;
  color: var(--text);
  line-height: 1.65;
  padding: 14px 18px;
  border-radius: 12px;
  border: 1px solid rgba(var(--theme-color-rgb), 0.12);
  background: rgba(var(--theme-color-rgb), 0.03);
}

.em-reality-callout {
  background: rgba(var(--theme-color-rgb), 0.09);
  border-top: 1px solid rgba(var(--theme-color-rgb), 0.14);
  padding: 38px 0;
}

.em-reality-callout__inner {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  align-items: flex-start;
  gap: 20px;
}

.em-reality-callout__icon {
  color: var(--theme);
  font-size: 28px;
  flex-shrink: 0;
  margin-top: 4px;
  opacity: 0.6;
}

.em-reality-callout__quote {
  margin: 0;
  font-size: 19px;
  font-style: italic;
  color: var(--header);
  line-height: 1.65;
  font-weight: 500;
}

/* ── Handles / Included section ──────────────────────────────────────────── */

/* Capability cards grid */
.em-cap-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  margin-bottom: 48px;
}

.em-cap-card {
  background: var(--white);
  border: 1.5px solid rgba(var(--theme-color-rgb), 0.12);
  border-radius: 18px;
  padding: 30px 24px 24px;
  transition: border-color 0.25s, box-shadow 0.25s, transform 0.25s;
  display: flex;
  flex-direction: column;
}

.em-cap-card:hover {
  border-color: var(--theme);
  box-shadow: 0 14px 36px rgba(108, 52, 132, 0.10);
  transform: translateY(-4px);
}

.em-cap-card__icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(var(--theme-color-rgb), 0.10) 0%, rgba(var(--theme-color-rgb), 0.04) 100%);
  border: 1px solid rgba(var(--theme-color-rgb), 0.14);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  transition: background 0.25s;
}

.em-cap-card:hover .em-cap-card__icon {
  background: linear-gradient(135deg, rgba(var(--theme-color-rgb), 0.18) 0%, rgba(var(--theme-color-rgb), 0.08) 100%);
}

.em-cap-card__icon i {
  color: var(--theme);
  font-size: 21px;
}

.em-cap-card__title {
  font-size: 19px;
  font-weight: 700;
  color: var(--header);
  margin: 0 0 10px;
  line-height: 1.3;
}

.em-cap-card__desc {
  font-size: 15px;
  color: var(--text);
  line-height: 1.65;
  margin: 0 0 18px;
  flex: 1;
}

.em-cap-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.em-cap-tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  color: var(--theme);
  background: rgba(var(--theme-color-rgb), 0.07);
  border: 1px solid rgba(var(--theme-color-rgb), 0.14);
  border-radius: 6px;
  padding: 4px 10px;
  line-height: 1.3;
  letter-spacing: 0.01em;
}

/* Automation flow strip */
.em-flow-strip {
  border-radius: 20px;
  background: linear-gradient(145deg, #0f0d1d 0%, #1a1336 100%);
  padding: 36px 40px;
  position: relative;
  overflow: hidden;
}

.em-flow-strip::before {
  content: "";
  position: absolute;
  right: -80px;
  top: -80px;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: rgba(108, 52, 132, 0.18);
}

.em-flow-strip::after {
  content: "";
  position: absolute;
  left: -40px;
  bottom: -60px;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: rgba(244, 185, 66, 0.08);
}

.em-flow-strip__label {
  position: relative;
  z-index: 1;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.45);
  margin: 0 0 24px;
  text-align: center;
}

.em-flow-strip__steps {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 0;
}

.em-flow-strip__item {
  display: flex;
  align-items: flex-start;
  gap: 0;
}

.em-flow-strip__connector {
  display: flex;
  align-items: center;
  height: 52px;
  padding: 0 12px;
  color: rgba(255, 255, 255, 0.2);
  font-size: 12px;
}

.em-flow-strip__node {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  min-width: 110px;
  gap: 8px;
}

.em-flow-strip__icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.25s, border-color 0.25s;
}

.em-flow-strip__item:hover .em-flow-strip__icon {
  background: rgba(var(--theme-color-rgb), 0.35);
  border-color: rgba(255, 255, 255, 0.2);
}

.em-flow-strip__icon i {
  color: var(--white);
  font-size: 20px;
}

.em-flow-strip__node strong {
  font-size: 14px;
  font-weight: 700;
  color: var(--white);
  line-height: 1.2;
}

.em-flow-strip__node span {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.4;
}

/* ── Fit / Who section ───────────────────────────────────────────────────── */

.em-fit-row {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0;
}

.em-fit-item {
  flex: 0 0 240px;
  text-align: center;
  padding: 0 32px;
  position: relative;
}

.em-fit-item + .em-fit-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 27px;
  height: 60px;
  width: 1px;
  background: rgba(var(--theme-color-rgb), 0.25);
}

.em-fit-item__icon {
  width: 54px;
  height: 54px;
  border-radius: 14px;
  background: var(--theme);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 18px;
}

.em-fit-item__icon i {
  color: white;
  font-size: 22px;
}

.em-fit-item h3 {
  margin: 0 0 8px;
  font-size: 19px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--header);
}

.em-fit-item p {
  margin: 0;
  font-size: 15px;
  color: var(--text);
  line-height: 1.65;
}

/* ── Process / Timeline section ──────────────────────────────────────────── */

.em-timeline-wrap {
  max-width: 700px;
  margin: 0 auto;
}

.em-timeline {
  position: relative;
  padding-left: 52px;
}

.em-timeline::before {
  content: "";
  position: absolute;
  left: 17px;
  top: 18px;
  bottom: 18px;
  width: 2px;
  background: rgba(var(--theme-color-rgb), 0.2);
}

.em-timeline-step {
  position: relative;
  padding-bottom: 42px;
}

.em-timeline-step:last-child {
  padding-bottom: 0;
}

.em-timeline-dot {
  position: absolute;
  left: -52px;
  top: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--theme);
  color: white;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(108, 52, 132, 0.3);
}

.em-timeline-content h3 {
  margin: 0 0 8px;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.3;
  padding-top: 6px;
  color: var(--header);
}

.em-timeline-content p {
  margin: 0;
  font-size: 16px;
  color: var(--text);
  line-height: 1.65;
}

/* ── Results section ─────────────────────────────────────────────────────── */

.em-results-inner {
  max-width: 700px;
  margin: 0 auto;
}

.em-results-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid rgba(var(--theme-color-rgb), 0.12);
}

.em-results-item {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 17px;
  color: var(--header);
  line-height: 1.5;
  font-weight: 500;
  padding: 18px 0;
  border-bottom: 1px solid rgba(var(--theme-color-rgb), 0.12);
}

.em-results-item i {
  color: var(--theme);
  font-size: 20px;
  flex-shrink: 0;
}

/* ── Question form section ───────────────────────────────────────────────── */

.em-question-panel {
  border-radius: 22px;
  background: var(--em-dark-panel);
  padding: 52px 42px;
  position: relative;
  overflow: hidden;
}

.em-question-panel::before {
  content: "";
  position: absolute;
  right: -110px;
  top: -120px;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
}

.em-question-panel__header {
  position: relative;
  z-index: 1;
  margin-bottom: 24px;
}

.em-question-panel__header h2 {
  color: var(--white);
  margin: 0;
}

.em-question-form {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr) auto;
  align-items: end;
  gap: 14px;
}

.em-question-form__field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.em-question-form__field label {
  color: rgba(255, 255, 255, 0.9);
  font-size: 14px;
  font-weight: 500;
}

.em-question-form__field input,
.em-question-form__field select {
  width: 100%;
  min-height: 56px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.95);
  color: var(--header);
  font-size: 16px;
  line-height: 1.2;
  padding: 14px 16px;
}

.em-question-form__field input::placeholder {
  color: var(--text);
}

.em-question-form__field select {
  appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--text) 50%),
    linear-gradient(135deg, var(--text) 50%, transparent 50%);
  background-position:
    calc(100% - 20px) 50%,
    calc(100% - 15px) 50%;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  padding-right: 34px;
}

.em-question-form__button {
  border-radius: 10px;
  min-width: 0;
  height: 56px;
  padding: 0 24px;
}

.em-question-panel__help {
  position: relative;
  z-index: 1;
  margin: 14px 0 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 14px;
  line-height: 1.5;
}

/* ── FAQ accordion ───────────────────────────────────────────────────────── */

.em-faq-wrap {
  max-width: 920px;
  margin: 0 auto;
}

.em-faq-item {
  border: 1px solid rgba(var(--theme-color-rgb), 0.14) !important;
  border-radius: 14px !important;
  margin-bottom: 14px;
  overflow: hidden;
  background: var(--white) !important;
}

.em-faq-item:last-child {
  margin-bottom: 0;
}

.em-faq-button {
  font-size: 19px !important;
  font-weight: 600 !important;
  color: var(--header) !important;
  padding: 22px 24px !important;
  background: var(--white) !important;
  box-shadow: none !important;
  border-radius: 0 !important;
}

.em-faq-button:not(.collapsed) {
  color: var(--theme) !important;
  background: rgba(var(--theme-color-rgb), 0.04) !important;
}

.em-faq-button::after {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%236c3484'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e") !important;
}

.em-faq-body {
  padding: 4px 24px 24px !important;
}

.em-faq-body p {
  margin: 0;
  color: var(--text);
  font-size: 16px;
  line-height: 1.75;
}

/* ── Responsive ──────────────────────────────────────────────────────────── */

@media (max-width: 1199px) {
  .em-question-panel {
    padding: 42px 30px;
  }

  .em-question-form {
    grid-template-columns: 1fr 1fr;
  }

  .em-question-form__button {
    grid-column: span 2;
  }
}

@media (max-width: 1199px) {
  .em-cap-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .em-flow-strip {
    padding: 32px 28px;
  }

  .em-flow-strip__node {
    min-width: 90px;
  }
}

@media (max-width: 991px) {
  .em-section {
    padding: 82px 0;
  }

  .em-heading {
    margin-bottom: 38px;
  }

  .em-heading p {
    font-size: 17px;
  }

  .em-fit-row {
    gap: 32px 0;
    flex-wrap: wrap;
  }

  .em-fit-item {
    flex: 0 0 50%;
  }

  .em-fit-item + .em-fit-item::before {
    display: none;
  }

  .em-flow-strip__steps {
    flex-wrap: wrap;
    gap: 16px;
    justify-content: center;
  }

  .em-flow-strip__connector {
    display: none;
  }

  .em-flow-strip__node {
    min-width: 100px;
  }
}

@media (max-width: 767px) {
  .email-marketing-page-hero .breadcrumb-cta-group {
    margin-top: 22px;
  }

  .email-marketing-page-hero .breadcrumb-trust-line {
    font-size: 15px;
  }

  .email-marketing-page-hero .breadcrumb-cta-group .breadcrumb-cta,
  .email-marketing-page-hero .breadcrumb-cta-secondary {
    padding: 14px 22px;
  
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

  .em-cap-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .em-cap-card {
    padding: 24px 20px 20px;
  }

  .em-cap-card__title {
    font-size: 18px;
  }

  .em-flow-strip {
    border-radius: 16px;
    padding: 28px 20px;
  }

  .em-flow-strip__steps {
    gap: 20px;
  }

  .em-flow-strip__node {
    min-width: 80px;
  }

  .em-flow-strip__node strong {
    font-size: 13px;
  }

  .em-section--question {
    padding-top: 42px;
  }

  .em-reality-callout__quote {
    font-size: 17px;
  }

  .em-fit-item {
    flex: 0 0 100%;
    padding: 0 16px;
  }

  .em-results-item {
    font-size: 16px;
  }

  .em-faq-button {
    font-size: 17px !important;
    padding: 18px 20px !important;
  }

  .em-faq-body {
    padding: 4px 20px 20px !important;
  }

  .em-timeline-content h3 {
    font-size: 18px;
  }

  .em-question-panel {
    border-radius: 16px;
    padding: 32px 20px;
  }

  .em-question-form {
    grid-template-columns: 1fr;
  }

  .em-question-form__button {
    grid-column: auto;
  }
}

@media (max-width: 575px) {
  .em-heading p {
    font-size: 16px;
  }
}
