/* =====================================================================
   MB Digital Marketing Agency — Case Study / Method Guide stylesheet
   Used by every page in /case-studies/
   Brand tokens are at the top: change them here and all 7 pages follow.
   ===================================================================== */

:root {
  --navy:        #0F1B3D;
  --ink:         #4A5568;
  --ink-soft:    #6B7280;
  --pink:        #E5107E;
  --pink-dark:   #C20D6A;
  --purple:      #7040E0;
  --blue:        #3E63E8;
  --orange:      #F0761E;
  --line:        #E7E4F2;
  --soft:        #F7F6FC;
  --soft-2:      #FBF7FD;
  --white:       #FFFFFF;
  --radius:      18px;
  --shadow:      0 10px 30px rgba(15, 27, 61, .08);
  --shadow-lg:   0 20px 50px rgba(15, 27, 61, .12);
  --maxw:        1120px;
  --font:        'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.72;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

h1, h2, h3, h4 { color: var(--navy); line-height: 1.22; margin: 0 0 .6em; font-weight: 800; letter-spacing: -.02em; }
h1 { font-size: clamp(2rem, 4.4vw, 3.05rem); }
h2 { font-size: clamp(1.5rem, 2.9vw, 2.1rem); margin-top: 2.4em; }
h3 { font-size: clamp(1.15rem, 2vw, 1.35rem); margin-top: 1.9em; font-weight: 700; }
p  { margin: 0 0 1.15em; }

a { color: var(--pink); text-decoration: none; }
a:hover { color: var(--pink-dark); text-decoration: underline; }

strong { color: var(--navy); font-weight: 700; }

/* ---------- top bar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.topbar__inner { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 20px; }
.brand { font-weight: 800; color: var(--navy); font-size: 1.05rem; letter-spacing: -.02em; }
.brand:hover { text-decoration: none; color: var(--pink); }
.brand span { color: var(--pink); }
.topnav { display: flex; gap: 24px; align-items: center; }
.topnav a { color: var(--navy); font-weight: 600; font-size: .95rem; }
.topnav a:hover { color: var(--pink); text-decoration: none; }
.btn-sm {
  background: var(--pink); color: #fff !important; padding: 10px 20px;
  border-radius: 999px; font-weight: 700; font-size: .9rem;
}
.btn-sm:hover { background: var(--pink-dark); text-decoration: none; }
@media (max-width: 780px) { .topnav a:not(.btn-sm) { display: none; } }

/* ---------- breadcrumb ---------- */
.crumbs { font-size: .87rem; color: var(--ink-soft); padding: 22px 0 0; }
.crumbs a { color: var(--ink-soft); font-weight: 600; }
.crumbs a:hover { color: var(--pink); }
.crumbs span { margin: 0 8px; opacity: .55; }

/* ---------- hero ---------- */
/* NOTE: use padding-top/bottom only — .hero shares an element with .wrap,
   and a `padding` shorthand here would wipe out .wrap's side padding. */
.hero { padding-top: 26px; padding-bottom: 8px; }
.badge {
  display: inline-block; padding: 7px 16px; border-radius: 999px;
  font-size: .78rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase;
  color: #fff; margin-bottom: 20px;
}
.badge--seo   { background: linear-gradient(120deg,#8B5CF6,#5B2FD0); }
.badge--gads  { background: linear-gradient(120deg,#F7A61B,#E23B32); }
.badge--meta  { background: linear-gradient(120deg,#5A8CFF,#2E45CC); }
.badge--web   { background: linear-gradient(120deg,#D91FA8,#8B3FD9); }

.deck { font-size: clamp(1.05rem, 2vw, 1.24rem); color: var(--ink); max-width: 62ch; }

.hero__img {
  width: 100%; height: auto; display: block; border-radius: var(--radius);
  box-shadow: var(--shadow-lg); margin: 34px 0 8px;
}

/* ---------- fact strip ---------- */
.facts {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1px; background: var(--line); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden; margin: 34px 0 10px;
}
.facts div { background: var(--white); padding: 20px 22px; }
.facts dt { font-size: .74rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-soft); margin: 0 0 6px; }
.facts dd { margin: 0; font-weight: 700; color: var(--navy); font-size: 1rem; line-height: 1.45; }

/* ---------- article body ---------- */
.article { max-width: 760px; margin: 0 auto; padding: 10px 0 40px; }
.article ul, .article ol { margin: 0 0 1.3em; padding-left: 1.35em; }
.article li { margin-bottom: .55em; }
.article li::marker { color: var(--pink); font-weight: 700; }

.lead { font-size: 1.12rem; color: var(--navy); font-weight: 500; }

blockquote {
  margin: 2em 0; padding: 22px 26px; background: var(--soft-2);
  border-left: 4px solid var(--pink); border-radius: 0 14px 14px 0;
  color: var(--navy); font-size: 1.05rem;
}
blockquote p:last-child { margin-bottom: 0; }

.callout {
  background: var(--soft); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 24px 26px; margin: 2em 0;
}
.callout h3 { margin-top: 0; font-size: 1.08rem; }
.callout p:last-child, .callout ul:last-child { margin-bottom: 0; }

/* ---------- phase steps ---------- */
.phases { counter-reset: phase; list-style: none; padding: 0; margin: 1.6em 0; }
.phases > li {
  counter-increment: phase; position: relative;
  padding: 4px 0 26px 62px; border-left: 2px solid var(--line); margin-left: 20px;
}
.phases > li:last-child { border-left-color: transparent; padding-bottom: 0; }
.phases > li::before {
  content: counter(phase); position: absolute; left: -21px; top: 0;
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--pink); color: #fff; font-weight: 800; font-size: .95rem;
  display: grid; place-items: center; box-shadow: 0 0 0 6px #fff;
}
.phases h3 { margin: 6px 0 .5em; }

/* ---------- checklist ---------- */
.check { list-style: none; padding: 0; margin: 1.4em 0; }
.check li { position: relative; padding-left: 34px; margin-bottom: .7em; }
.check li::before {
  content: ""; position: absolute; left: 0; top: .48em;
  width: 20px; height: 20px; border-radius: 50%; background: var(--pink);
}
.check li::after {
  content: ""; position: absolute; left: 6px; top: .82em;
  width: 8px; height: 4px; border-left: 2px solid #fff; border-bottom: 2px solid #fff;
  transform: rotate(-45deg);
}

/* ---------- results placeholder block ---------- */
.results {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 18px; margin: 1.8em 0;
}
.stat {
  background: var(--soft); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px; text-align: center;
}
.stat b { display: block; font-size: 1.9rem; color: var(--pink); font-weight: 800; letter-spacing: -.03em; }
.stat span { font-size: .86rem; color: var(--ink-soft); font-weight: 600; }

/* ---------- FAQ ---------- */
.faq details {
  border: 1px solid var(--line); border-radius: 14px; padding: 0 22px; margin-bottom: 12px;
  background: var(--white);
}
.faq summary {
  cursor: pointer; font-weight: 700; color: var(--navy); padding: 18px 0; list-style: none;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--pink); font-size: 1.5rem; font-weight: 700; line-height: 1; }
.faq details[open] summary::after { content: "\2013"; }
.faq details > p { margin: 0 0 18px; }

/* ---------- related cards ---------- */
.related { background: var(--soft); padding: 62px 0; border-top: 1px solid var(--line); }
.related h2 { margin-top: 0; text-align: center; }
.related .sub { text-align: center; max-width: 60ch; margin: 0 auto 38px; color: var(--ink-soft); }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 26px; }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column;
  transition: transform .18s ease, box-shadow .18s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.card img { width: 100%; height: auto; aspect-ratio: 20 / 11; object-fit: cover; display: block; }
.card__body { padding: 22px 24px 26px; display: flex; flex-direction: column; flex: 1; }
.card__tag { font-size: .72rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--pink); margin-bottom: 10px; }
.card h3 { margin: 0 0 .5em; font-size: 1.14rem; }
.card p { font-size: .95rem; color: var(--ink); margin-bottom: 1.2em; }
.card a.more { margin-top: auto; font-weight: 800; font-size: .95rem; }

/* ---------- CTA ---------- */
.cta { background: linear-gradient(120deg, #7040E0, #C2189B 55%, #E5107E); color: #fff; padding: 72px 0; text-align: center; }
.cta h2 { color: #fff; margin-top: 0; }
.cta p { color: rgba(255,255,255,.92); max-width: 58ch; margin: 0 auto 30px; }
.btn {
  display: inline-block; background: #fff; color: var(--navy) !important;
  padding: 15px 34px; border-radius: 999px; font-weight: 800; font-size: 1rem;
  box-shadow: 0 10px 26px rgba(0,0,0,.16);
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn--ghost { background: transparent; color: #fff !important; border: 2px solid rgba(255,255,255,.65); box-shadow: none; margin-left: 12px; }
@media (max-width: 560px) { .btn--ghost { margin: 14px 0 0; display: block; } }

/* ---------- footer ---------- */
.site-footer { background: var(--navy); color: #B9C0D4; padding: 54px 0 34px; font-size: .95rem; }
.site-footer a { color: #DCE1EE; }
.site-footer a:hover { color: #fff; }
.foot-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 34px; margin-bottom: 34px; }
.foot-grid h4 { color: #fff; font-size: .82rem; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 16px; }
.foot-grid ul { list-style: none; padding: 0; margin: 0; }
.foot-grid li { margin-bottom: 10px; }
.foot-bottom { border-top: 1px solid rgba(255,255,255,.14); padding-top: 22px; font-size: .87rem; opacity: .8; }

/* ---------- footer social icons ---------- */
.foot-social { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.foot-social a {
  width: 36px; height: 36px; border-radius: 8px;
  background: rgba(255,255,255,.08); color: rgba(255,255,255,.62);
  display: grid; place-items: center; transition: background .2s ease, color .2s ease;
}
.foot-social a:hover { background: var(--pink); color: #fff; }
.foot-social a svg { width: 17px; height: 17px; display: block; }

/* ---------- index hub ---------- */
.hub-hero { padding-top: 46px; padding-bottom: 10px; text-align: center; }
.hub-hero p { max-width: 62ch; margin: 0 auto 1.2em; }
.hub-grid { padding-top: 34px; padding-bottom: 70px; }

@media (max-width: 640px) {
  body { font-size: 16px; }
  .phases > li { padding-left: 52px; }
}
