/* ============================================================
   ETOUCH SOLUTIONS — digital-marketing.css
   Page-specific layer for digital-marketing.html only.
   Loaded AFTER css/style.css and built from the tokens declared
   in style.css section 01. No shared component is overridden.

   D1 Tokens · D2 Breadcrumb · D3 Hero · D4 Partners
   D5 Service cards · D6 Statistics · D7 Process
   D8 Success stories · D9 Final CTA · D10 Responsive
============================================================ */

/* ------------------------------------------------------------
   D1 · PAGE TOKENS
------------------------------------------------------------ */
:root {
  --dm-mist:  #F5FFF7;
  --dm-red:   #E5484D;                                   /* "cost down" metric */
}

/* ------------------------------------------------------------
   D2 · BREADCRUMB
------------------------------------------------------------ */
.dm-crumb { padding: .9rem 0 .2rem; }
.dm-crumb .breadcrumb { margin-bottom: 0; font-size: .74rem; font-weight: 500; }
.dm-crumb .breadcrumb-item a { color: var(--gray); }
.dm-crumb .breadcrumb-item a:hover { color: var(--green); }
.dm-crumb .breadcrumb-item.active { color: var(--text); font-weight: 600; }
.dm-crumb .breadcrumb-item + .breadcrumb-item::before { color: var(--gray); }

/* ------------------------------------------------------------
   D3 · HERO
------------------------------------------------------------ */
.dm-hero {
  position: relative;
  background: linear-gradient(150deg, #FFFFFF 0%, var(--dm-mist) 40%, #E8F8EE 100%);
  padding: 24px 0 56px;
  overflow: hidden;
}
.dm-hero::before {
  content: "";
  position: absolute; right: -120px; top: -160px;
  width: 480px; height: 480px; border-radius: 50%;
  background: radial-gradient(circle, rgba(10, 174, 96, .16), transparent 68%);
}
.dm-hero::after {
  content: "";
  position: absolute; left: -100px; bottom: -180px;
  width: 380px; height: 380px; border-radius: 50%;
  background: radial-gradient(circle, rgba(244, 180, 0, .12), transparent 70%);
}

.dm-title {
  font-size: clamp(1.9rem, 4vw, 2.85rem);
  line-height: 1.2;
  font-weight: 800;
  color: #0E1B14;
  margin-bottom: 1rem;
}
.dm-lead { font-size: .84rem; color: var(--gray); line-height: 1.9; max-width: 430px; margin-bottom: 1.5rem; }

.dm-facts { display: flex; flex-wrap: wrap; gap: 1rem 1.5rem; margin-bottom: 1.7rem; }
.dm-facts li { display: flex; align-items: center; gap: .5rem; font-size: .7rem; font-weight: 600; line-height: 1.4; max-width: 128px; }
.dm-facts .d-ico {
  flex: 0 0 auto;
  width: 28px; height: 28px; border-radius: 9px;
  display: grid; place-items: center;
  background: var(--green-light);
  color: var(--green-deep-2);
  font-size: .78rem;
  transition: transform .3s var(--ease), background-color .3s var(--ease), color .3s var(--ease);
}
.dm-facts li:hover .d-ico { background: var(--green); color: var(--white); transform: translateY(-3px); }

/* Hero dashboard collage ----------------------------------- */
.dm-visual { position: relative; min-height: 470px; }

.dm-person {
  position: absolute;
  right: 0; bottom: 0;
  width: 46%;
  max-width: 300px;
  z-index: 1;
  filter: drop-shadow(0 22px 38px rgba(8, 45, 28, .18));
}

.an-card {
  position: absolute;
  z-index: 3;
  background: var(--white);
  border-radius: var(--r-sm);
  box-shadow: var(--shadow-lg);
  padding: .7rem .85rem;
}
.an-label { font-size: .6rem; font-weight: 600; color: var(--gray); margin-bottom: .15rem; }
.an-value { font-size: 1.25rem; font-weight: 800; color: #0E1B14; line-height: 1.15; }
.an-delta { font-size: .58rem; font-weight: 600; color: var(--green); display: inline-flex; align-items: center; gap: .15rem; }
.an-delta.is-down { color: var(--dm-red); }

.an-visitors { top: 0;    left: 4%;  width: 40%; }
.an-channel  { top: 0;    left: 48%; width: 36%; }
.an-leads    { top: 27%;  left: 0;   width: 34%; }
.an-ads      { bottom: 8%; left: 8%; width: 66%; }
.an-seo      { bottom: 0; right: 0;  width: 30%; }

.an-search {
  position: absolute;
  top: 22%; left: -3%;
  z-index: 4;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--white);
  color: var(--green-deep-2);
  display: grid; place-items: center;
  box-shadow: var(--shadow-md);
}

/* Legend inside the channel card */
.an-legend { list-style: none; margin: 0; padding: 0; }
.an-legend li { display: flex; align-items: center; gap: .3rem; font-size: .52rem; color: var(--gray); line-height: 1.7; }
.an-legend .swatch { width: 7px; height: 7px; border-radius: 2px; flex: 0 0 auto; }
.an-legend .pc { margin-left: auto; font-weight: 600; color: var(--text); }
.an-legend .sw-organic { background: #0AAE60; }
.an-legend .sw-paid    { background: #2F6FE4; }
.an-legend .sw-social  { background: #F4B400; }
.an-legend .sw-direct  { background: #C9D3CE; }

/* Google Ads metric strip */
.an-metrics { display: flex; gap: .5rem; }
.an-metrics > div { flex: 1; }
.an-metrics .m-cap { font-size: .52rem; color: var(--gray); }
.an-metrics .m-val { font-size: .82rem; font-weight: 800; color: #0E1B14; line-height: 1.2; }

/* Dark promise pill */
.an-promise {
  position: absolute;
  right: 2%; top: 46%;
  z-index: 5;
  display: flex; align-items: center; gap: .6rem;
  background: linear-gradient(135deg, #0F3A26 0%, #06210F 100%);
  color: var(--white);
  border-radius: 16px;
  padding: .7rem .9rem;
  box-shadow: var(--shadow-lg);
}
.an-promise .p-ico {
  width: 30px; height: 30px; border-radius: 10px;
  background: rgba(244, 180, 0, .18);
  color: var(--yellow);
  display: grid; place-items: center;
  font-size: .85rem;
}
.an-promise p { font-size: .64rem; font-weight: 600; line-height: 1.55; }
.an-promise .p-go { color: var(--yellow); font-size: .8rem; }

/* .badge-accent, .t-grad, the partner bar and the dark CTA panel are
   shared components — see style.css sections 19, 21 and 22. */

/* ------------------------------------------------------------
   D5 · SERVICE CARDS
------------------------------------------------------------ */
/* .eyebrow-brand, .rule-accent, the illustrated service card and the
   numbered process rail now live in style.css section 21 — shared with
   the Services and Web Services pages rather than duplicated here. */

/* ------------------------------------------------------------
   D6 · STATISTICS
   Reuses .stats-panel / .stat-cell / .stat-icon from style.css;
   this modifier only darkens the surface.
------------------------------------------------------------ */
.stats-panel.is-dark {
  background: linear-gradient(120deg, #0C3020 0%, #06200F 60%, #0A2A1B 100%);
  border-color: transparent;
  box-shadow: var(--shadow-md);
}
.stats-panel.is-dark .stat-icon {
  background: rgba(255, 255, 255, .07);
  border: 1px solid rgba(244, 180, 0, .4);
  color: var(--yellow);
  box-shadow: none;
}
.stats-panel.is-dark .stat-number { color: var(--white); }
.stats-panel.is-dark .stat-label  { color: rgba(255, 255, 255, .62); }
.stats-panel.is-dark .stat-cell + .stat-cell::before { background: rgba(255, 255, 255, .14); }

/* ------------------------------------------------------------
   D8 · SUCCESS STORIES
------------------------------------------------------------ */
.story-wrap {
  background: linear-gradient(120deg, var(--dm-mist) 0%, #E6F7EE 100%);
  border-radius: var(--r-lg);
  padding: 1.8rem 1.6rem;
}
.story-eyebrow {
  font-size: .66rem; font-weight: 700;
  letter-spacing: .18em; text-transform: uppercase;
  color: var(--green-deep-2);
  margin-bottom: .3rem;
}
.story-heading { font-size: clamp(1.3rem, 2.6vw, 1.75rem); margin-bottom: 0; }

.story-card {
  background: var(--white);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-sm);
  padding: 1.1rem 1.2rem;
  height: 100%;
  display: flex;
  align-items: center;
  gap: .6rem;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.story-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-md); }
.story-card img { width: 42%; flex: 0 0 auto; transition: transform .55s var(--ease); }
.story-card:hover img { transform: scale(1.06); }

.story-title { font-size: .92rem; margin-bottom: .15rem; }
.story-tag   { font-size: .68rem; color: var(--gray); margin-bottom: .9rem; }

.story-metrics { display: flex; gap: 1rem; margin-bottom: .9rem; }
.metric-val {
  font-size: .92rem; font-weight: 800; color: var(--green);
  display: inline-flex; align-items: center; gap: .2rem; line-height: 1.2;
}
.metric-val.is-down { color: var(--dm-red); }
.metric-cap { font-size: .6rem; color: var(--gray); line-height: 1.5; }

/* ------------------------------------------------------------
   D10 · RESPONSIVE
------------------------------------------------------------ */
@media (max-width: 1399.98px) {
  .an-value { font-size: 1.1rem; }
}

@media (max-width: 1199.98px) {
  .dm-visual { min-height: 420px; }
  .an-card { padding: .55rem .65rem; }
  .an-value { font-size: .98rem; }
  .an-promise { padding: .55rem .7rem; }
  .an-promise p { font-size: .58rem; }
}

@media (max-width: 991.98px) {
  .dm-hero { text-align: center; }
  .dm-lead { margin-left: auto; margin-right: auto; }
  .dm-facts { justify-content: center; }
  .dm-visual { margin-top: 2.5rem; min-height: 460px; }
  .dm-person { width: 52%; right: 4%; }
  .an-search { display: none; }


  .story-card { flex-direction: column-reverse; text-align: center; align-items: stretch; }
  .story-card img { width: 62%; margin: 0 auto .6rem; }
  .story-metrics { justify-content: center; }

}

@media (max-width: 767.98px) {
  .dm-hero .btn { width: 100%; justify-content: center; }
  .dm-title { font-size: 1.8rem; }
  .dm-facts li { max-width: 118px; }
  .dm-visual { min-height: 400px; }
  .dm-person { width: 58%; }
  .an-card { padding: .45rem .55rem; }
  .an-label { font-size: .52rem; }
  .an-value { font-size: .84rem; }
  .an-delta { font-size: .5rem; }
  .an-legend li { font-size: .46rem; }
  .an-metrics .m-val { font-size: .68rem; }

  .story-wrap { padding: 1.3rem 1rem; }
}

@media (max-width: 575.98px) {
  .story-wrap { padding: 1.2rem .9rem; }
  .dm-visual { min-height: 340px; }
  .dm-person { width: 62%; right: 0; }
  .an-visitors { width: 46%; left: 0; }
  .an-channel  { width: 44%; left: 52%; }
  .an-leads    { width: 40%; top: 30%; }
  .an-ads      { width: 78%; left: 0; bottom: 4%; }
  .an-seo      { width: 34%; }
  .an-promise  { right: 0; top: 50%; padding: .45rem .55rem; }
  .an-promise .p-ico { width: 24px; height: 24px; font-size: .7rem; }

}
