/* EcomGuru design system — premium, lightweight, no builder dependencies. */
.eg {
  --eg-ink: #0e1116;
  --eg-ink-2: #1b2430;
  --eg-muted: #4b5563;
  --eg-line: #e5e7eb;
  --eg-soft: #f7f8fa;
  --eg-brand: #ffa300;
  --eg-brand-hover: #ffb733;
  color: #111827;
  font-size: 17px;
  line-height: 1.65;
}
.eg * { box-sizing: border-box; }
.eg img { max-width: 100%; height: auto; }
.eg p { margin: 0 0 16px; }
.eg a { color: #b26a00; }

.eg-container { max-width: 1140px; margin: 0 auto; padding: 0 20px; }
.eg-section { padding: 60px 0; }
.eg-section--tight { padding: 40px 0; }
.eg-soft { background: var(--eg-soft); }

.eg-crumbs { font-size: 13px; color: #9ca3af; margin: 0 0 18px; }
.eg-crumbs a { color: #94a3b8; text-decoration: none; }
.eg-crumbs a:hover { color: #fff; }

.eg-hero { background: linear-gradient(135deg, var(--eg-ink) 0%, var(--eg-ink-2) 100%); color: #fff; padding: 84px 0 72px; }
.eg-hero .eg-crumbs { color: #94a3b8; }
.eg-eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: 12px; font-weight: 700; color: var(--eg-brand); margin: 0 0 14px; }
.eg-hero h1 { font-size: clamp(30px, 4.1vw, 52px); line-height: 1.08; margin: 0 0 18px; font-weight: 700; letter-spacing: -.02em; color: #fff; }
.eg-lead { font-size: clamp(16px, 1.9vw, 20px); color: #cbd5e1; max-width: 780px; margin: 0; }
.eg-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 28px; }
.eg-badges { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.eg-badge { border: 1px solid rgba(255,255,255,.22); border-radius: 999px; padding: 8px 15px; font-size: 14px; color: #e2e8f0; }

.eg-btn { display: inline-block; padding: 14px 24px; border-radius: 10px; font-weight: 600; font-size: 16px; text-decoration: none; line-height: 1; transition: .15s; }
.eg-btn--primary { background: var(--eg-brand); color: var(--eg-ink) !important; }
.eg-btn--primary:hover { background: var(--eg-brand-hover); }
.eg-btn--ghost { border: 1px solid rgba(255,255,255,.45); color: #fff !important; }
.eg-btn--ghost:hover { background: rgba(255,255,255,.1); }
.eg-btn--dark { background: var(--eg-ink); color: #fff !important; }
.eg-btn--dark:hover { background: #22303f; }

.eg-h2 { font-size: clamp(23px, 3vw, 33px); line-height: 1.15; margin: 0 0 14px; letter-spacing: -.01em; font-weight: 700; }
.eg-h3 { font-size: 20px; margin: 0 0 8px; font-weight: 700; }
.eg-muted { color: var(--eg-muted); }
.eg-sub { max-width: 720px; color: var(--eg-muted); margin: 0 0 34px; }

.eg-grid { display: grid; gap: 20px; grid-template-columns: repeat(3, 1fr); }
.eg-grid--2 { grid-template-columns: repeat(2, 1fr); }
.eg-grid--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 980px) { .eg-grid, .eg-grid--4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .eg-grid, .eg-grid--2, .eg-grid--4 { grid-template-columns: 1fr; } }

.eg-card { background: #fff; border: 1px solid var(--eg-line); border-radius: 14px; padding: 24px; }
.eg-card p { margin: 0; color: var(--eg-muted); font-size: 16px; }
.eg-card a { display: block; text-decoration: none; color: inherit; }
.eg-card a:hover .eg-h3 { color: #b26a00; }
.eg-card--soft { background: var(--eg-soft); border-color: transparent; }

.eg-list { list-style: none; padding: 0; margin: 0; }
.eg-list li { position: relative; padding-left: 28px; margin-bottom: 12px; }
.eg-list li:before { content: ""; position: absolute; left: 0; top: 8px; width: 10px; height: 10px; border-radius: 3px; background: var(--eg-brand); }

.eg-steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; }
@media (max-width: 980px) { .eg-steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .eg-steps { grid-template-columns: 1fr; } }
.eg-step { border-top: 3px solid var(--eg-brand); padding-top: 14px; }
.eg-step b { display: block; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: #b26a00; margin-bottom: 6px; }
.eg-step span { font-weight: 700; display: block; margin-bottom: 6px; }
.eg-step p { margin: 0; color: var(--eg-muted); font-size: 15px; }

.eg-split { display: grid; grid-template-columns: 1.05fr .95fr; gap: 44px; align-items: start; }
@media (max-width: 860px) { .eg-split { grid-template-columns: 1fr; gap: 28px; } }

.eg-faq details { border: 1px solid var(--eg-line); border-radius: 12px; padding: 16px 18px; margin-bottom: 12px; background: #fff; }
.eg-faq summary { font-weight: 600; cursor: pointer; }
.eg-faq summary::marker { color: var(--eg-brand); }
.eg-faq p { margin: 12px 0 0; color: #374151; }

.eg-cta { background: var(--eg-ink); color: #fff; border-radius: 18px; padding: 42px; }
.eg-cta h2 { margin: 0 0 10px; font-size: clamp(22px, 3vw, 30px); color: #fff; }
.eg-cta p { color: #cbd5e1; margin: 0 0 22px; max-width: 640px; }

.eg-note { font-size: 13px; color: #6b7280; margin-top: 16px; }

/* Keep native pages clean even if the theme injects default styles. */
.eg .wp-block-group, .eg .entry-content > *:first-child { margin-top: 0; }

/* ---- Global mobile horizontal-overflow fix (2026-10-03) -------------------
   Elementor's footer template (post 792) renders its social-icons wrapper with
   negative horizontal margins (margin-inline: -10px) at the mobile breakpoint,
   so the wrapper becomes ~20px wider than its column and forces a 10px sideways
   scroll on every page. Neutralise the negative margins at the source; the
   icons remain centred by the widget's own justify-content. */
.elementor-social-icons-wrapper.elementor-grid,
#colophon .elementor-social-icons-wrapper.elementor-grid {
  margin-left: 0 !important;
  margin-right: 0 !important;
}

/* ---- Article components (resource content cluster) ------------------------ */
.eg-article .eg-container { max-width: 860px; }
.eg-meta { color: #6b7280; font-size: 14px; margin: 0 0 18px; }

.eg-toc { background: var(--eg-soft); border: 1px solid var(--eg-line); border-radius: 12px; padding: 18px 22px; }
.eg-toc h2 { font-size: 16px; margin: 0 0 10px; }
.eg-toc ol { margin: 0; padding-left: 20px; }
.eg-toc li { margin: 4px 0; }
.eg-toc a { color: #b26a00; text-decoration: none; }
.eg-toc a:hover { text-decoration: underline; }

.eg-callout { border-left: 4px solid var(--eg-brand); background: var(--eg-soft); border-radius: 10px; padding: 16px 18px; margin: 22px 0; }
.eg-callout b { display: block; margin-bottom: 6px; }
.eg-callout p { margin: 0; color: var(--eg-muted); }

.eg-table-wrap { overflow-x: auto; margin: 22px 0; -webkit-overflow-scrolling: touch; }
.eg-table { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 480px; }
.eg-table th, .eg-table td { border: 1px solid var(--eg-line); padding: 10px 12px; text-align: left; vertical-align: top; }
.eg-table th { background: var(--eg-soft); font-weight: 700; }

.eg-checklist { list-style: none; padding: 0; margin: 0 0 8px; }
.eg-checklist li { position: relative; padding-left: 30px; margin-bottom: 10px; }
.eg-checklist li:before { content: "\2713"; position: absolute; left: 0; top: 0; color: #1a7f37; font-weight: 700; }

.eg-article .eg-h3 { margin-top: 26px; }

/* Prevent long unbreakable strings (URLs, handles, emails) forcing horizontal
   overflow inside cards/tables on small screens. */
.eg { overflow-wrap: break-word; }
.eg-card, .eg-card p, .eg-card a, .eg-table td { overflow-wrap: anywhere; word-break: break-word; }

/* ---- Pricing / engagement tiers ------------------------------------------ */
.eg-tiers { align-items: stretch; }
.eg-tier { background: #fff; border: 1px solid var(--eg-line); border-radius: 16px; padding: 26px; display: flex; flex-direction: column; }
.eg-tier--featured { border: 2px solid var(--eg-brand); box-shadow: 0 10px 30px rgba(14,17,22,.08); }
.eg-tier-badge { align-self: flex-start; background: var(--eg-brand); color: var(--eg-ink); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; border-radius: 999px; padding: 4px 12px; margin-bottom: 12px; }
.eg-tier-for { color: var(--eg-muted); font-size: 14px; margin: 0 0 14px; }
.eg-tier .eg-list { margin-bottom: 16px; }
.eg-tier .eg-note { margin-top: auto; }
.eg-list--tight li { margin-bottom: 8px; font-size: 15px; }
.eg-list--tight li:before { top: 7px; width: 8px; height: 8px; }

/* ---- Offices -------------------------------------------------------------- */
.eg-office { background: #fff; border: 1px solid var(--eg-line); border-radius: 14px; padding: 22px; }
.eg-office h3 { margin: 0 0 6px; }
.eg-office p { margin: 0 0 8px; color: var(--eg-muted); }
.eg-office .eg-office-label { display: block; font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #b26a00; margin-bottom: 8px; }

/* ---- Testimonials --------------------------------------------------------
   Populate ONLY with genuine, verifiable client reviews. Never invent quotes,
   names, companies, ratings or results. */
.eg-testimonials { display: grid; gap: 20px; grid-template-columns: repeat(3, 1fr); }
@media (max-width: 980px) { .eg-testimonials { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .eg-testimonials { grid-template-columns: 1fr; } }
.eg-testimonial { background: #fff; border: 1px solid var(--eg-line); border-radius: 14px; padding: 24px; }
.eg-testimonial blockquote { margin: 0 0 14px; font-size: 16px; color: #111827; }
.eg-testimonial cite { font-style: normal; font-weight: 600; display: block; }
.eg-testimonial .eg-testimonial-meta { color: var(--eg-muted); font-size: 14px; }
