/* ─────────────────────────────────────────────────────────
   SEM Services — /services/sem/
   ───────────────────────────────────────────────────────── */

body.ld-tpl-new-services-sem {
  --red: #FFC000;
}

/* ── Shared atoms ─────────────────────────────────── */
.sem-eyebrow { font-size: 12px; font-weight: 700; letter-spacing: 0.22em; text-transform: uppercase; color: var(--red); margin: 0 0 14px; display: inline-block; }
.sem-eyebrow--center { display: block; text-align: center; }
.sem-h2 { font-size: clamp(2rem, 3.6vw, 3rem); font-weight: 900; letter-spacing: -0.01em; line-height: 1.05; margin: 0 0 14px; color: var(--black); text-transform: uppercase; }
.sem-h2 em { font-style: normal; color: var(--red); font-weight: 900; }
.sem-h2--center { text-align: center; }
.sem-h2--white { color: var(--white); }
.sem-h2--white em { color: var(--red); }
.sem-section-inner { max-width: 1200px; margin: 0 auto; }
.sem-section-head { margin: 0 auto 56px; max-width: 880px; text-align: center; }
.sem-section-sub { font-size: 17px; line-height: 1.65; color: var(--muted); margin: 14px auto 0; max-width: 760px; }
.sem-section-sub--white { color: rgba(255,255,255,0.75); }
.sem-pillar-num { display: inline-block; font-size: 11px; font-weight: 800; letter-spacing: 0.28em; text-transform: uppercase; color: var(--red); margin: 0 0 14px; padding: 6px 14px; border: 1px solid currentColor; border-radius: 99px; }

.sem-btn { display: inline-flex; align-items: center; gap: 10px; padding: 17px 28px; font-size: 12px; font-weight: 800; letter-spacing: 0.18em; text-transform: uppercase; text-decoration: none; border-radius: 8px; transition: background 0.22s, color 0.22s, transform 0.22s, border-color 0.22s; white-space: nowrap; }
.sem-btn svg { width: 14px; height: 14px; transition: transform 0.22s; }
.sem-btn:hover svg:last-child { transform: translateX(4px); }
.sem-btn--primary { background: var(--red); color: var(--black); box-shadow: 0 12px 28px rgba(255, 192, 0, 0.32); }
.sem-btn--primary:hover { background: var(--black); color: var(--white); transform: translateY(-2px); }

/* ── HERO ──────────────────────────────────────────── */
.sem-hero { position: relative; padding: 80px 48px 96px; background: radial-gradient(circle at 88% 10%, rgba(255, 192, 0, 0.22) 0%, transparent 45%), radial-gradient(circle at 0% 100%, rgba(255, 192, 0, 0.08) 0%, transparent 50%), var(--black); color: var(--white); overflow: hidden; }
.sem-hero::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px); background-size: 64px 64px; pointer-events: none; mask-image: linear-gradient(180deg, rgba(0,0,0,0.5) 0%, transparent 80%); -webkit-mask-image: linear-gradient(180deg, rgba(0,0,0,0.5) 0%, transparent 80%); }
.sem-hero-watermark { position: absolute; bottom: -36px; right: -24px; font-size: clamp(6rem, 16vw, 14rem); font-weight: 900; letter-spacing: -0.04em; color: rgba(255,255,255,0.04); pointer-events: none; white-space: nowrap; line-height: 1; }
.sem-hero-inner { position: relative; z-index: 1; max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 64px; align-items: center; }
.sem-hero-text { min-width: 0; }
.sem-hero-h1 { font-size: clamp(2.4rem, 5vw, 3.8rem); font-weight: 900; letter-spacing: -0.02em; line-height: 1; margin: 0 0 18px; color: var(--white); text-transform: uppercase; }
.sem-hero-h1 em { font-style: normal; color: var(--red); font-weight: 900; }
.sem-hero-sub { font-size: 22px; font-weight: 700; line-height: 1.35; color: rgba(255,255,255,0.95); margin: 0 0 22px; max-width: 560px; }
.sem-hero-sub strong { color: var(--red); font-weight: 800; }
.sem-hero-body { font-size: 15.5px; line-height: 1.7; color: rgba(255,255,255,0.7); margin: 0 0 32px; max-width: 560px; }
.sem-hero-actions { display: inline-flex; gap: 14px; flex-wrap: wrap; }
.sem-hero-media { display: flex; justify-content: center; min-width: 0; }
.sem-hero-thumb { width: 100%; max-width: 480px; height: auto; display: block; border-radius: 12px; box-shadow: 0 28px 64px rgba(0,0,0,0.4); }

/* ── INTRO TWO CARDS ─────────────────────────────── */
.sem-intro { padding: 96px 48px; background: var(--white); }
.sem-intro-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }
.sem-intro-card { padding: 44px 40px; background: var(--bg); border: 1px solid var(--rule); border-left: 4px solid var(--red); border-radius: 14px; transition: transform 0.22s, border-color 0.22s, box-shadow 0.22s; }
.sem-intro-card:hover { transform: translateY(-3px); box-shadow: 0 18px 40px rgba(0,0,0,0.05); }
.sem-intro-eyebrow { font-size: 11px; font-weight: 800; letter-spacing: 0.22em; text-transform: uppercase; color: var(--red); margin: 0 0 14px; display: inline-block; }
.sem-intro-title { font-size: 24px; font-weight: 800; color: var(--black); margin: 0 0 14px; letter-spacing: -0.01em; line-height: 1.2; }
.sem-intro-desc { font-size: 15.5px; line-height: 1.7; color: var(--muted); margin: 0; }

/* ── PILLAR FRAMES ───────────────────────────────── */
.sem-pillar { padding: 96px 48px; }
.sem-pillar--01 { background: var(--bg); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.sem-pillar--02 { background: radial-gradient(circle at 80% 10%, rgba(255, 192, 0, 0.22) 0%, transparent 50%), radial-gradient(circle at 0% 100%, rgba(255, 192, 0, 0.08) 0%, transparent 55%), var(--black); color: var(--white); position: relative; overflow: hidden; }
.sem-pillar--02::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px); background-size: 48px 48px; pointer-events: none; mask-image: linear-gradient(180deg, rgba(0,0,0,0.45) 0%, transparent 80%); -webkit-mask-image: linear-gradient(180deg, rgba(0,0,0,0.45) 0%, transparent 80%); }
.sem-pillar--02 > * { position: relative; z-index: 1; }
.sem-pillar--02 .sem-pillar-num { color: var(--white); border-color: rgba(255,255,255,0.3); }
.sem-pillar--03 { background: var(--white); }

/* ── PILLAR 01: FOUNDATION GRID ──────────────────── */
.sem-foundation-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.sem-foundation-card { padding: 36px 32px; background: var(--white); border: 1px solid var(--rule); border-radius: 14px; transition: transform 0.22s, border-color 0.22s, box-shadow 0.22s; }
.sem-foundation-card:hover { transform: translateY(-2px); border-color: rgba(255, 192, 0, 0.4); box-shadow: 0 16px 36px rgba(0,0,0,0.05); }
.sem-foundation-title { font-size: 22px; font-weight: 800; color: var(--black); margin: 0 0 22px; letter-spacing: -0.01em; padding-bottom: 14px; border-bottom: 2px solid var(--red); display: inline-block; }
.sem-foundation-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 14px; }
.sem-foundation-list li { display: flex; flex-direction: column; gap: 4px; padding-left: 22px; position: relative; }
.sem-foundation-list li::before { content: ""; position: absolute; left: 0; top: 8px; width: 8px; height: 8px; border-radius: 50%; background: var(--red); }
.sem-foundation-name { font-size: 14.5px; font-weight: 800; color: var(--black); letter-spacing: -0.005em; }
.sem-foundation-desc { font-size: 14px; line-height: 1.6; color: var(--muted); }

/* ── PILLAR 02: FUNNEL STAGES ────────────────────── */
.sem-funnel-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; margin-bottom: 56px; }
.sem-funnel-card { padding: 36px 32px; background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.12); border-radius: 14px; transition: transform 0.22s, background 0.22s, border-color 0.22s; position: relative; overflow: hidden; }
.sem-funnel-card::before { content: ""; position: absolute; top: 0; left: 0; height: 100%; width: 3px; background: var(--red); transform: scaleY(0); transform-origin: top; transition: transform 0.3s; }
.sem-funnel-card:hover { transform: translateY(-3px); background: rgba(255, 192, 0, 0.07); border-color: rgba(255, 192, 0, 0.4); }
.sem-funnel-card:hover::before { transform: scaleY(1); }
.sem-funnel-step { display: inline-block; font-size: 11px; font-weight: 800; letter-spacing: 0.18em; text-transform: uppercase; color: var(--red); margin: 0 0 14px; }
.sem-funnel-title { font-size: 22px; font-weight: 800; color: var(--white); margin: 0 0 12px; letter-spacing: -0.01em; }
.sem-funnel-desc { font-size: 14.5px; line-height: 1.65; color: rgba(255,255,255,0.75); margin: 0; }
.sem-funnel-result { max-width: 880px; margin: 0 auto; text-align: center; padding: 40px 36px; background: rgba(255, 192, 0, 0.08); border: 1px solid rgba(255, 192, 0, 0.3); border-radius: 14px; }
.sem-funnel-result-text { font-size: 16px; line-height: 1.7; color: rgba(255,255,255,0.92); margin: 0 0 18px; }
.sem-funnel-result-tag { font-size: 15px; line-height: 1.7; color: rgba(255,255,255,0.85); margin: 0; }
.sem-funnel-result-tag strong { color: var(--red); font-weight: 800; }

/* ── PILLAR 03: ROAS DISCIPLINES ─────────────────── */
.sem-roas-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.sem-roas-card { padding: 36px 32px; background: var(--bg); border: 1px solid var(--rule); border-radius: 14px; transition: transform 0.22s, border-color 0.22s, box-shadow 0.22s; }
.sem-roas-card:hover { transform: translateY(-3px); border-color: rgba(255, 192, 0, 0.4); box-shadow: 0 16px 36px rgba(0,0,0,0.05); }
.sem-roas-num { display: inline-block; font-size: 32px; font-weight: 900; color: var(--red); letter-spacing: -0.02em; line-height: 1; margin: 0 0 14px; }
.sem-roas-title { font-size: 22px; font-weight: 800; color: var(--black); margin: 0 0 22px; letter-spacing: -0.01em; }
.sem-roas-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 12px; }
.sem-roas-list li { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; line-height: 1.6; color: var(--black); }
.sem-roas-list svg { width: 18px; height: 18px; color: var(--red); flex-shrink: 0; margin-top: 3px; }

/* ── CLAIMS ───────────────────────────────────────── */
.sem-claims { padding: 80px 48px; background: var(--bg); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.sem-claims-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.sem-claim-card { padding: 36px 32px; background: var(--white); border: 1px solid var(--rule); border-radius: 14px; text-align: left; transition: transform 0.22s, border-color 0.22s, box-shadow 0.22s; }
.sem-claim-card:hover { transform: translateY(-3px); border-color: rgba(255, 192, 0, 0.4); box-shadow: 0 16px 36px rgba(0,0,0,0.05); }
.sem-claim-icon { width: 36px; height: 36px; color: var(--red); margin: 0 0 18px; display: block; padding: 8px; background: rgba(255, 192, 0, 0.12); border-radius: 10px; }
.sem-claim-title { font-size: 20px; font-weight: 800; color: var(--black); margin: 0 0 12px; letter-spacing: -0.01em; }
.sem-claim-desc { font-size: 14.5px; line-height: 1.65; color: var(--muted); margin: 0; }

/* Case studies carousel lives in components.css (.ld-cases-*) and is
   rendered via template-parts/case-studies-carousel.php — accent inherits
   from this template's --red automatically. */

/* ── LEADERSHIP ───────────────────────────────────── */
.sem-leadership { padding: 96px 48px; background: var(--white); }
.sem-leaders-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; margin-bottom: 48px; }
.sem-leader-card { display: flex; gap: 24px; padding: 32px; background: var(--bg); border: 1px solid var(--rule); border-radius: 14px; transition: transform 0.22s, border-color 0.22s, box-shadow 0.22s; }
.sem-leader-card:hover { transform: translateY(-2px); border-color: rgba(255, 192, 0, 0.4); box-shadow: 0 16px 36px rgba(0,0,0,0.05); }
.sem-leader-photo { width: 96px; height: 96px; border-radius: 50%; overflow: hidden; flex-shrink: 0; background: rgba(255, 192, 0, 0.12); display: flex; align-items: center; justify-content: center; box-shadow: 0 12px 24px rgba(255, 192, 0, 0.18); }
.sem-leader-photo img { width: 100%; height: 100%; object-fit: cover; object-position: top center; display: block; }
.sem-leader-photo--initials { font-size: 32px; font-weight: 900; color: var(--red); letter-spacing: -0.02em; }
.sem-leader-name { font-size: 20px; font-weight: 800; color: var(--black); margin: 0 0 4px; letter-spacing: -0.01em; }
.sem-leader-role { display: block; font-size: 12px; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: var(--red); margin: 0 0 14px; }
.sem-leader-bio { font-size: 14.5px; line-height: 1.65; color: var(--muted); margin: 0; }
.sem-leadership-context { max-width: 960px; margin: 0 auto; padding: 40px 0 0; border-top: 1px solid var(--rule); }
.sem-leadership-context p { font-size: 15.5px; line-height: 1.75; color: var(--muted); margin: 0 0 16px; }
.sem-leadership-context p:last-child { margin: 0; }
.sem-leadership-context strong { color: var(--red); font-weight: 800; }

/* ── FINAL CTA ────────────────────────────────────── */
.sem-cta { padding: 96px 48px; background: radial-gradient(circle at 50% 0%, rgba(255, 192, 0, 0.22) 0%, transparent 55%), var(--black); color: var(--white); position: relative; overflow: hidden; }
.sem-cta::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px); background-size: 48px 48px; pointer-events: none; mask-image: linear-gradient(180deg, rgba(0,0,0,0.45) 0%, transparent 80%); -webkit-mask-image: linear-gradient(180deg, rgba(0,0,0,0.45) 0%, transparent 80%); }
.sem-cta-inner { position: relative; z-index: 1; text-align: center; max-width: 760px; margin: 0 auto; }
.sem-cta-title { font-size: clamp(2rem, 4vw, 3.2rem); font-weight: 900; letter-spacing: -0.02em; line-height: 1.1; margin: 0 0 18px; color: var(--white); text-transform: uppercase; }
.sem-cta-title em { font-style: normal; color: var(--red); font-weight: 900; }
.sem-cta-sub { font-size: 17px; line-height: 1.65; color: rgba(255,255,255,0.78); margin: 0 0 36px; }

/* ── RESPONSIVE ───────────────────────────────────── */
@media (max-width: 1024px) {
  .sem-hero { padding: 64px 28px 72px; }
  .sem-hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .sem-intro, .sem-pillar, .sem-claims, .sem-leadership, .sem-cta { padding: 72px 28px; }
  .sem-claims-grid { grid-template-columns: 1fr; }
  .sem-leaders-grid { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .sem-hero { padding: 56px 20px 64px; }
  .sem-intro, .sem-pillar, .sem-claims, .sem-leadership, .sem-cta { padding: 56px 20px; }
  .sem-intro-grid, .sem-foundation-grid, .sem-funnel-grid, .sem-roas-grid { grid-template-columns: 1fr; }
  .sem-hero-actions { flex-direction: column; width: 100%; }
  .sem-hero-actions .sem-btn { width: 100%; justify-content: center; }
  .sem-intro-card, .sem-foundation-card, .sem-funnel-card, .sem-roas-card, .sem-claim-card { padding: 28px 24px; }
  .sem-leader-card { flex-direction: column; align-items: flex-start; gap: 18px; padding: 28px 24px; }
  .sem-leader-photo { width: 72px; height: 72px; }
  .sem-funnel-result { padding: 32px 24px; }
}
