/* ==========================================================================
   Brazilcoms — Shared "Service Page" template
   (hero / accordion / strategy / about / cta-footer sections)
   Scoped under .ec-page — no Bootstrap/Tailwind dependencies
   Used by: ecommerce-solutions.php, business-strategy.php
   ========================================================================== */

.ec-page {
  --ec-green-dark: #004d3f;
  --ec-green: #079C4A;
  --ec-green-deepest: #0a2e1a;
  --ec-green-bright: #7CDDFE;
  --ec-teal: #4db6ac;
  --ec-text: #374151;
  --ec-text-muted: #6b7280;
  --ec-white: #ffffff;
  --ec-radius-sm: 8px;
  --ec-radius-lg: 24px;
  --ec-radius-pill: 999px;
  --ec-shadow-color: rgba(0, 77, 63, 0.08);
  --ec-shadow: 0 4px 24px var(--ec-shadow-color);
  --ec-shadow-card: 0 4px 20px rgba(0, 0, 0, 0.1);
  --ec-container: 1200px;

  font-family: "Plus Jakarta Sans", "Inter", system-ui, sans-serif;
  color: var(--ec-text);
  line-height: 1.6;
}

.ec-page *,
.ec-page *::before,
.ec-page *::after {
  box-sizing: border-box;
}

.ec-page img {
  max-width: 100%;
  height: auto;
  display: block;
}

.ec-accordion__icon .ec-page img {
  width: 30px;
}

.ec-page ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.ec-page .brz-container {
  max-width: var(--ec-container);
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */

.ec-hero {
  position: relative;
  padding: 120px 0 0;
  background: var(--ec-green-dark) url("../img/service/ecommerce-solutions/Rectangle 10 (1).jpg") center / cover no-repeat;
}

.ec-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,
      rgba(0, 60, 48, 0.9) 0%,
      rgba(0, 77, 63, 0.86) 50%,
      rgba(0, 77, 63, 0.92) 100%);
}

.ec-hero__inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Intro — centered stack: label → title → subtitle → body */
.ec-hero__intro {
  width: 100%;
}

.ec-hero__badge {
  display: inline-flex;
  margin-bottom: 32px;
  padding: 9px 22px;
  border-radius: var(--ec-radius-pill);
  background: var(--ec-white);
  color: var(--ec-green);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-color: transparent;
}

.ec-hero__title {
  margin: 0 0 20px;
  font-size: clamp(2.5rem, 6vw, 3.75rem);
  font-weight: 800;
  line-height: 1.1;
  color: var(--ec-white);
  letter-spacing: -0.02em;
}

.ec-hero__subtitle {
  margin: 0 0 32px;
  font-size: clamp(1.375rem, 3vw, 1.75rem);
  font-weight: 700;
  line-height: 1.35;
  color: var(--ec-green-bright);
}

.ec-hero__copy-lead {
  margin: 0 0 20px;
  max-width: 880px;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.96);
}

/* Divider — full-width line + center pill + status text */
.ec-hero__divider {
  width: 100%;
  margin-top: 56px;
  text-align: center;
}

.ec-hero__divider-line {
  display: flex;
  align-items: center;
  width: 100%;
  margin-bottom: 18px;
}

.ec-hero__divider-line::before,
.ec-hero__divider-line::after {
  content: "";
  flex: 1;
  height: 1px;
  background: rgba(255, 255, 255, 0.5);
}

.ec-hero__divider-badge {
  flex-shrink: 0;
  margin: 0 24px;
  padding: 11px 32px;
  border-radius: var(--ec-radius-pill);
  background: var(--ec-green);
  color: var(--ec-white);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  white-space: nowrap;
}

.ec-hero__status {
  display: inline-block;
  margin: 0;
  padding: 7px 20px;
  border-radius: var(--ec-radius-pill);
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: rgba(0, 0, 0, 0.15);
  color: rgba(255, 255, 255, 0.9);
  font-size: 13px;
  font-weight: 400;
  line-height: 1.4;
}

/* Two-column cards */
.ec-hero__cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  width: 100%;
  margin-top: 36px;
}

.ec-hero-card {
  background: #f7f8f8;
  border: none;
  border-radius: 16px;
  padding: 32px 36px;
  box-shadow: var(--ec-shadow-card);
  text-align: left;
}

.ec-hero-card.brz-card {
  background: #f7f8f8;
  border: none;
  box-shadow: var(--ec-shadow-card);
}

.ec-hero-card__title {
  margin: 0 0 16px;
  font-size: 15px;
  font-weight: 700;
  color: var(--ec-green);
}

.ec-hero-card__list {
  margin: 0;
  padding-left: 18px;
  list-style: disc;
}

.ec-hero-card__list li {
  margin-bottom: 6px;
  font-size: 14px;
  color: var(--ec-text);
  line-height: 1.6;
}

.ec-hero-card__list li::before {
  display: none;
}

/* Bottom centered CTA */
.ec-hero__cta-wrap {
  width: 100%;
  padding: 44px 0 72px;
  text-align: center;
}

.ec-hero__cta {
  display: block;
  padding: 18px 48px;
  color: var(--ec-white);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.4;
  text-decoration: none;
  transition: background 0.2s ease, transform 0.2s ease;
  background: linear-gradient(to right, #1A3A36, #52C6BE);
  border-radius: var(--ec-radius-lg);
}

/* --------------------------------------------------------------------------
   Services Accordion
   -------------------------------------------------------------------------- */

.ec-services .brz-badge {
  display: inline-flex;
  margin-bottom: 24px;
}

.ec-accordion {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ec-accordion__item {
  border-radius: var(--ec-radius-sm);
  overflow: hidden;
  background: var(--ec-white);
  border: 1px solid var(--ec-shadow-color);
  transition: box-shadow 0.2s ease;
}

.ec-accordion__item.is-open {
  box-shadow: var(--ec-shadow);
}

.ec-accordion__trigger {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 24px;
  border: none;
  background: white;
  font-family: inherit;
  text-align: left;
  cursor: pointer;
  transition: background 0.2s ease;
}

.ec-accordion__item.is-open .ec-accordion__trigger {
  background: var(--ec-green-deepest);
}

.ec-accordion__item.is-open .ec-accordion__title {
  color: white;
}

.ec-accordion__item.is-open .ec-accordion__icon {
  background: none;
}

.ec-accordion__icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 15%;
  background: var(--ec-teal);
  color: var(--ec-white);
}

.ec-accordion__icon svg {
  width: 20px;
  height: 20px;
}

.ec-accordion__title {
  flex: 1;
  font-size: 20px;
  font-weight: 700;
  color: var(--ec-green);
}

.ec-accordion__chevron {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  color: var(--ec-green);
  transition: transform 0.3s ease;
}

.ec-accordion__item.is-open .ec-accordion__chevron {
  transform: rotate(180deg);
}

.ec-accordion__panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}

.ec-accordion__content {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
  padding: 24px 24px 24px 84px;
}

.ec-accordion__text {
  margin: 0;
  font-size: 14px;
  line-height: 1.7;
  color: var(--ec-text-muted);
}

.ec-accordion__list li {
  position: relative;
  padding-left: 16px;
  margin-bottom: 8px;
  font-size: 14px;
  color: var(--ec-text);
}

.ec-accordion__list li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--ec-green);
  font-weight: 700;
}

.ec-accordion__item.is-open .ec-accordion__list li::before {
  color: var(--ec-green-deepest);
}

/* --------------------------------------------------------------------------
   Strategy Combined
   -------------------------------------------------------------------------- */

.ec-strategy {
  position: relative;
  /* padding from .brz-section; keep image BG over .brz-section--dark */
  background: var(--ec-green-dark) url("../img/service/ecommerce-solutions/Rectangle 21.png") center / cover no-repeat;
  text-align: center;
}

.ec-strategy__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 50, 40, 0.72);
}

.ec-strategy__inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.ec-strategy .brz-badge {
  margin-bottom: 20px;
}

.ec-strategy__title {
  margin: 0 0 12px;
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 800;
  line-height: 1.15;
  color: var(--ec-white);
}

.ec-strategy__subtitle {
  margin: 0 0 40px;
  max-width: 42ch;
  font-size: clamp(0.95rem, 2vw, 1.05rem);
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.9);
}

.ec-strategy__box {
  display: grid;
  grid-template-columns: minmax(100px, 160px) minmax(0, 1fr);
  align-items: center;
  gap: clamp(20px, 4vw, 40px);
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
  padding: clamp(24px, 4vw, 40px) clamp(24px, 4vw, 48px);
  border-radius: var(--ec-radius-lg);
  background: var(--ec-green-deepest);
  border: 1px solid rgba(255, 255, 255, 0.12);
  text-align: left;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
  transition: background-color 0.3s ease;
}


.ec-strategy__box-visual {
  display: flex;
  align-items: center;
  justify-content: center;
}

.ec-strategy__box-icon {
  width: 100%;
  max-width: 140px;
  height: auto;
  object-fit: contain;
  color: #52C8BF;
  transition: color 0.3s ease;
}


.ec-strategy__box-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.ec-strategy__box-list li {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: 0;
}

.ec-strategy__point-title,
.ec-strategy__point-desc {
  position: relative;
  display: block;
  color: var(--ec-white);
  line-height: 1.45;
}

.ec-strategy__point-title::before,
.ec-strategy__point-desc::before {
  content: ">";
  position: absolute;
  left: 0;
  top: 0;
  font-weight: 700;
  color: var(--ec-white);
  display: none;
}

.ec-strategy__point-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--ec-teal);
}

.ec-strategy__point-desc {
  font-size: clamp(0.85rem, 1.4vw, 0.95rem);
  font-weight: 400;
  color: rgba(255, 255, 255, 0.88);
}

/* --------------------------------------------------------------------------
   About / Capabilities
   -------------------------------------------------------------------------- */

.ec-about__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(32px, 5vw, 64px);
  align-items: start;
}

.ec-about__left,
.ec-about__right {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.ec-about__left .brz-badge,
.ec-about__right .brz-badge {
  margin-bottom: 20px;
}

.ec-about__lead {
  margin: 0 0 16px;
  font-size: clamp(1rem, 1.8vw, 1.125rem);
  font-weight: 500;
  line-height: 1.5;
  color: var(--ec-text);
}

.ec-about__title {
  margin: 0 0 20px;
  font-family: "Plus Jakarta Sans", "Inter", system-ui, sans-serif;
  font-size: clamp(1.5rem, 3vw, 2.125rem);
  font-weight: 800;
  line-height: 1.25;
  color: #111827;
  text-transform: none;
}

.ec-about__accent {
  display: inline;
  color: var(--ec-green);
}

.ec-about__text {
  margin: 0 0 24px;
  font-size: clamp(0.95rem, 1.5vw, 1.05rem);
  line-height: 1.7;
  color: var(--ec-text);
}

.ec-about__callout {
  margin: 0;
  padding: clamp(20px, 3vw, 28px) clamp(20px, 3vw, 28px);
  border-radius: 16px;
  background: #dceee3;
  border: none;
}

.ec-about__callout p {
  margin: 0;
  font-size: clamp(0.95rem, 1.5vw, 1.05rem);
  font-style: normal;
  font-weight: 500;
  line-height: 1.6;
  color: var(--ec-green-dark);
}

.ec-about__cards {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;
}

.ec-cap-card {
  width: 100%;
  background: var(--ec-white);
  border: none;
  border-radius: 20px;
  padding: clamp(22px, 3vw, 28px) clamp(24px, 3vw, 32px);
  box-shadow: 0 8px 28px var(--ec-shadow-color);
}

.ec-cap-card.brz-card {
  border: none;
  box-shadow: 0 8px 28px var(--ec-shadow-color);
}

.ec-cap-card__title {
  margin: 0 0 14px;
  font-family: "Plus Jakarta Sans", "Inter", system-ui, sans-serif;
  font-size: clamp(1.05rem, 1.8vw, 1.25rem);
  font-weight: 800;
  color: var(--ec-green);
  text-transform: none;
}

.ec-cap-card__list li {
  position: relative;
  padding-left: 18px;
  margin-bottom: 8px;
  font-size: 15px;
  line-height: 1.5;
  color: var(--ec-text);
}

.ec-cap-card__list li:last-child {
  margin-bottom: 0;
}

.ec-cap-card__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ec-green);
}

/* --------------------------------------------------------------------------
   Footer CTA
   -------------------------------------------------------------------------- */

.ec-cta-footer {
  --ec-cta-bg: #165a33;
  position: relative;
  /* keep custom CTA padding; override .brz-section default */
  padding: clamp(56px, 8vw, 88px) 0;
  background: var(--ec-cta-bg);
  overflow: hidden;
}

.ec-cta-footer__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  align-items: center;
  gap: clamp(24px, 4vw, 48px);
}

.ec-cta-footer__content {
  max-width: 560px;
}

.ec-cta-footer__title {
  margin: 0 0 16px;
  font-family: "Plus Jakarta Sans", "Inter", system-ui, sans-serif;
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 800;
  line-height: 1.2;
  color: var(--ec-white);
  text-transform: none;
}

.ec-cta-footer__rule {
  display: block;
  width: 96px;
  height: 5px;
  margin: 0 0 22px;
  border-radius: var(--ec-radius-pill);
  background: var(--ec-teal);
}

.ec-cta-footer__text {
  margin: 0 0 22px;
  font-size: clamp(0.95rem, 1.5vw, 1.05rem);
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.92);
}

.ec-cta-footer__tagline {
  display: inline-block;
  font-size: clamp(1rem, 1.8vw, 1.15rem);
  font-weight: 600;
  font-style: italic;
  color: var(--ec-teal);
  text-decoration: none;
  transition: color 0.2s ease, opacity 0.2s ease;
}

.ec-cta-footer__visual {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  pointer-events: none;
}

.ec-cta-footer__visual img {
  width: min(100%, 520px);
  height: auto;
  mix-blend-mode: screen;
  opacity: 0.72;
  transform: scale(1.05);
}


/* --------------------------------------------------------------------------
   Responsive — Tablet
   -------------------------------------------------------------------------- */

@media (max-width: 1024px) {
  .ec-accordion__content {
    grid-template-columns: 1fr;
    padding-left: 24px;
  }

  .ec-about__grid {
    gap: 40px;
  }
}

/* --------------------------------------------------------------------------
   Responsive — Mobile
   -------------------------------------------------------------------------- */

@media (max-width: 768px) {
  .ec-hero {
    padding-top: 100px;
  }

  .ec-hero__title {
    font-size: clamp(2rem, 8vw, 2.75rem);
  }

  .ec-hero__subtitle {
    font-size: clamp(1.125rem, 4vw, 1.375rem);
  }

  .ec-hero__copy-lead {
    font-size: 15px;
  }

  .ec-hero__divider-badge {
    margin: 0 12px;
    padding: 9px 16px;
    font-size: 9px;
    white-space: normal;
    text-align: center;
    max-width: 200px;
  }

  .ec-hero__cards {
    grid-template-columns: 1fr;
  }

  .ec-hero__cta {
    font-size: 14px;
    padding: 16px 28px;
  }

  .ec-accordion__trigger {
    padding: 16px;
    gap: 12px;
  }

  .ec-accordion__content {
    padding: 20px 16px;
  }

  .ec-strategy__box {
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 20px;
    padding: 28px 24px;
    text-align: center;
  }

  .ec-strategy__box-icon {
    max-width: 110px;
  }

  .ec-strategy__box-list {
    width: 100%;
    text-align: left;
  }

  .ec-about__grid {
    grid-template-columns: 1fr;
  }

  .ec-cta-footer__inner {
    grid-template-columns: 1fr;
  }

  .ec-cta-footer__visual {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: min(48vw, 220px);
    opacity: 0.35;
    z-index: 0;
    pointer-events: none;
  }

  .ec-cta-footer__visual img {
    width: 100%;
    opacity: 1;
  }

  .ec-cta-footer__content {
    position: relative;
    z-index: 1;
    max-width: none;
  }
}

@media (max-width: 480px) {
  .ec-hero-card {
    padding: 20px;
  }

  .ec-accordion__icon {
    width: 36px;
    height: 36px;
  }

  .ec-accordion__title {
    font-size: 14px;
  }
}
