/* ============================================================
   services.css, Mixx Reality Services / Offerings page
   Loaded last, after styles.css + interactive.css.
   Reuses the shared brand tokens defined in styles.css :root
   (--color-primary #5163F5, ink #171A2E, lime #B8F975,
    orange #E97A58, --space-* 8px scale) and mirrors the visual
   language established in partners.css so the two pages read as
   siblings.
   ============================================================ */

/* ---- Page-local tokens (on-brand) ---- */
:root {
  --mixx-blue:   #5163F5;
  --mixx-orange: #E97A58;
  --mixx-lime:   #B8F975;
  --mixx-ink:    #171A2E;
  --mixx-ink-2:  #1c2350;
  --svc-radius:  24px;
}

/* ---- Extra reveal-on-scroll stagger delays (styles.css ships 200 & 400) ---- */
.reveal-on-scroll[data-reveal-delay="100"] { transition-delay: 0.1s; }
.reveal-on-scroll[data-reveal-delay="300"] { transition-delay: 0.3s; }
.reveal-on-scroll[data-reveal-delay="500"] { transition-delay: 0.5s; }
@media (prefers-reduced-motion: reduce) {
  .reveal-on-scroll[data-reveal-delay] { transition-delay: 0s; }
}

/* ============================================================
   PAGE SHELL, override shared `main` (max-width 1200px, centered
   padding) so sections run full-bleed and control their own width.
   ============================================================ */
.services-main {
  max-width: none;
  margin: 0;
  padding: 0;
}

/* Shared section shell, inner content 80% wide, capped 1600px;
   full-width below 900px. */
.services-section {
  width: 100%;
  padding: var(--space-8) 0;
}
.services-section > * {
  width: 80%;
  max-width: 1600px;
  margin-inline: auto;
}
.services-section--alt { background: #fff; }

.services-section__head {
  text-align: center;
  max-width: 880px;
  margin-bottom: var(--space-6);
}
.services-section__eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mixx-blue);
  margin-bottom: var(--space-2);
}
.services-section__head h2 {
  font-size: clamp(2rem, 4vw, 46px);
  font-weight: normal;
  line-height: 1.15;
  margin-bottom: var(--space-3);
  color: var(--mixx-ink);
}
.services-section__head p {
  font-size: 1.125rem;
  color: var(--color-muted);
  line-height: 1.7;
}

/* ============================================================
   HERO, dark gradient banner
   ============================================================ */
.services-hero {
  width: 96%;
  max-width: 1600px;
  margin: var(--space-3) auto var(--space-6);
  padding: clamp(32px, 4.5vw, 64px) clamp(24px, 6vw, 96px);
  border-radius: 40px;
  background:
    radial-gradient(120% 140% at 12% 0%, rgba(81, 99, 245, 0.55) 0%, rgba(81, 99, 245, 0) 55%),
    radial-gradient(120% 140% at 100% 100%, rgba(233, 122, 88, 0.45) 0%, rgba(233, 122, 88, 0) 50%),
    linear-gradient(135deg, #11142a 0%, #1c2350 55%, #11142a 100%);
  color: #fff;
  overflow: hidden;
}
.services-hero__inner { max-width: 880px; }
.services-hero__eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--mixx-lime);
  padding: 6px 16px;
  border: 1px solid rgba(184, 249, 117, 0.4);
  border-radius: 40px;
  margin-bottom: var(--space-4);
}
.services-hero h1 {
  font-size: clamp(1.9rem, 3.4vw, 3rem);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.01em;
  margin-bottom: var(--space-3);
}
.services-hero h1 .accent { color: var(--mixx-lime); }
.services-hero__sub {
  font-size: 1.15rem;
  font-weight: 600;
  line-height: 1.5;
  color: #fff;
  margin-bottom: var(--space-3);
  max-width: 720px;
}
.services-hero__intro p {
  font-size: 1.02rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.85);
  max-width: 680px;
  margin-bottom: 0;
}
.services-hero__intro strong { color: var(--mixx-lime); }
.services-hero .hero-cta-group { flex-wrap: wrap; }

/* ============================================================
   OFFERINGS OVERVIEW, featured platform card + two support cards
   ============================================================ */
.offerings-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-4);
  list-style: none;
  padding: 0;
}

.offering-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: var(--svc-radius);
  padding: clamp(24px, 3vw, 40px);
  box-shadow: 0 6px 24px rgba(23, 26, 46, 0.07);
  border: 1px solid rgba(23, 26, 46, 0.05);
  border-top: 4px solid var(--mixx-blue);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.services-section--alt .offering-card { background: var(--color-bg); }
.offering-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 34px rgba(23, 26, 46, 0.12);
}

/* Featured = the Mixx Platform: full width, two-column, dark, dominant */
.offering-card--featured {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(28px, 4vw, 56px);
  align-items: center;
  border-top: none;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    radial-gradient(120% 160% at 100% 0%, rgba(81, 99, 245, 0.45) 0%, rgba(81, 99, 245, 0) 55%),
    linear-gradient(135deg, #11142a 0%, #1c2350 100%);
  color: #fff;
}
.services-section--alt .offering-card--featured { background:
    radial-gradient(120% 160% at 100% 0%, rgba(81, 99, 245, 0.45) 0%, rgba(81, 99, 245, 0) 55%),
    linear-gradient(135deg, #11142a 0%, #1c2350 100%); }

.offering-card__badge {
  display: inline-block;
  align-self: flex-start;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: 40px;
  padding: 5px 14px;
  margin-bottom: var(--space-3);
  color: var(--mixx-blue);
  background: #eef0ff;
  border: 1px solid rgba(81, 99, 245, 0.18);
}
.offering-card--featured .offering-card__badge {
  color: var(--mixx-ink);
  background: var(--mixx-lime);
  border-color: transparent;
}

.offering-card h3 {
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 600;
  color: var(--mixx-ink);
  margin-bottom: var(--space-2);
  line-height: 1.15;
}
.offering-card--featured h3 { color: #fff; }

.offering-card__desc {
  color: #555;
  line-height: 1.65;
  margin-bottom: var(--space-3);
}
.offering-card--featured .offering-card__desc { color: rgba(255, 255, 255, 0.85); }

.offering-card__list {
  list-style: none;
  padding: 0;
  margin: 0 0 var(--space-4);
  display: grid;
  gap: var(--space-1);
}
.offering-card__list li {
  position: relative;
  padding-left: 26px;
  color: #444;
  line-height: 1.55;
}
.offering-card__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--mixx-blue);
}
.offering-card--featured .offering-card__list li { color: rgba(255, 255, 255, 0.9); }
.offering-card--featured .offering-card__list li::before { background: var(--mixx-lime); }

.offering-card__link {
  margin-top: auto;
  align-self: flex-start;
  font-weight: 600;
  text-decoration: none;
  color: var(--mixx-blue);
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s ease;
}
.offering-card__link:hover,
.offering-card__link:focus-visible { border-color: var(--mixx-blue); }
.offering-card--featured .offering-card__link { color: var(--mixx-lime); }
.offering-card--featured .offering-card__link:hover,
.offering-card--featured .offering-card__link:focus-visible { border-color: var(--mixx-lime); }

/* Featured visual */
.offering-card__media {
  border-radius: 18px;
  overflow: hidden;
  background: linear-gradient(135deg, #eef0ff 0%, #f7f9ff 100%);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
}
.offering-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ============================================================
   SERVICE DETAIL, alternating two-column blocks
   (Platform / Consulting / Integrations)
   ============================================================ */
.service-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
.service-block + .service-block { margin-top: var(--space-8); }
.service-block--reverse .service-block__media { order: 2; }

.service-block__eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--mixx-orange);
  margin-bottom: var(--space-2);
}
.service-block h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 600;
  line-height: 1.14;
  color: var(--mixx-ink);
  margin-bottom: var(--space-3);
}
.service-block__lead {
  font-size: 1.15rem;
  color: var(--mixx-ink);
  font-weight: 600;
  line-height: 1.55;
  margin-bottom: var(--space-3);
}
.service-block__body {
  color: #444;
  line-height: 1.7;
  margin-bottom: var(--space-3);
}
.service-block__body:last-of-type { margin-bottom: var(--space-4); }

/* Small uppercase label above a list inside a block */
.service-sublabel {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-muted);
  margin-bottom: var(--space-2);
}

/* Centered version, for use under a section head */
.service-sublabel--center {
  text-align: center;
  margin-bottom: var(--space-4);
}

/* Scope-clarification note (e.g. "not general bespoke software") */
.service-note {
  border-left: 3px solid var(--mixx-orange);
  background: #fff;
  border-radius: 12px;
  padding: var(--space-3);
  color: #333;
  line-height: 1.6;
  margin-bottom: var(--space-4);
  box-shadow: 0 3px 14px rgba(23, 26, 46, 0.05);
}
.services-section--alt .service-note { background: var(--color-bg); }
.service-note strong { color: var(--mixx-ink); }

.service-points {
  list-style: none;
  padding: 0;
  margin: 0 0 var(--space-4);
  display: grid;
  gap: var(--space-2);
}
.service-points li {
  position: relative;
  padding-left: 28px;
  color: #333;
  line-height: 1.55;
}
.service-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.5em;
  width: 12px;
  height: 12px;
  border-radius: 4px;
  background: var(--mixx-blue);
  transform: rotate(45deg);
}

.service-block__media {
  border-radius: var(--svc-radius);
  overflow: hidden;
  box-shadow: 0 10px 36px rgba(23, 26, 46, 0.12);
  background: linear-gradient(135deg, #eef0ff 0%, #f7f9ff 100%);
}
.service-block__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ============================================================
   HOW WE WORK, 4-step process
   ============================================================ */
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-4);
  list-style: none;
  padding: 0;
  counter-reset: step;
}
.process-step {
  background: #fff;
  border-radius: var(--svc-radius);
  padding: clamp(24px, 3vw, 36px);
  box-shadow: 0 6px 24px rgba(23, 26, 46, 0.07);
  border: 1px solid rgba(23, 26, 46, 0.05);
  counter-increment: step;
}
.services-section--alt .process-step { background: var(--color-bg); }
.process-step__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #eef0ff;
  color: var(--mixx-blue);
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: var(--space-3);
}
.process-step__num::before { content: counter(step, decimal-leading-zero); }
.process-step h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--mixx-ink);
  margin-bottom: var(--space-2);
}
.process-step p {
  color: #555;
  line-height: 1.6;
}

/* ============================================================
   "MORE THAN SAAS", dark centered band (philosophy)
   ============================================================ */
.svc-philosophy {
  width: 96%;
  max-width: 1600px;
  margin: var(--space-8) auto;
  padding: clamp(56px, 9vw, 130px) clamp(24px, 6vw, 80px);
  border-radius: 40px;
  text-align: center;
  background:
    radial-gradient(100% 120% at 50% 0%, rgba(233, 122, 88, 0.35) 0%, rgba(233, 122, 88, 0) 55%),
    linear-gradient(135deg, #11142a 0%, #1c2350 60%, #11142a 100%);
  color: #fff;
}
.svc-philosophy__inner { max-width: 860px; margin: 0 auto; }
.svc-philosophy__kicker {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--mixx-lime);
  margin-bottom: var(--space-3);
}
.svc-philosophy h2 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.01em;
  margin-bottom: var(--space-4);
}
.svc-philosophy p {
  font-size: 1.15rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: var(--space-3);
}
.svc-philosophy p:last-child { margin-bottom: 0; }
.svc-philosophy strong { color: #fff; }

/* ============================================================
   FINAL CTA
   ============================================================ */
.services-cta {
  width: 80%;
  max-width: 1100px;
  margin: var(--space-8) auto;
  text-align: center;
}
.services-cta__inner { max-width: 820px; margin: 0 auto; }
.services-cta h2 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 600;
  line-height: 1.15;
  color: var(--mixx-ink);
  margin: var(--space-2) 0 var(--space-3);
}
.services-cta p {
  font-size: 1.1rem;
  color: var(--color-muted);
  line-height: 1.65;
  margin-bottom: var(--space-5);
}
.hero-cta-group--centered {
  justify-content: center;
  flex-wrap: wrap;
}

/* Outline button variant (referenced on this page; not in styles.css) */
.cta-button--outline {
  background: #fff;
  color: var(--mixx-ink);
  border: 2px solid var(--mixx-ink);
}
.cta-button--outline:hover,
.cta-button--outline:focus {
  background: var(--mixx-ink);
  color: #fff;
  border-color: var(--mixx-ink);
}

/* ============================================================
   CONSENT CHECKBOX (demo modal), matches partners.css
   ============================================================ */
.consent-checkbox {
  display: flex !important;
  align-items: flex-start;
  gap: 8px;
  font-weight: 400 !important;
  font-size: 0.9rem;
  color: #555;
  margin: 4px 0 8px;
}
.consent-checkbox input { width: auto !important; margin: 3px 0 0 !important; flex-shrink: 0; }
.consent-checkbox a { color: var(--mixx-blue); }

/* ============================================================
   COOKIE CONSENT BANNER, matches partners.css
   ============================================================ */
.cookie-banner {
  position: fixed;
  left: 50%;
  bottom: 20px;
  transform: translateX(-50%);
  width: min(960px, calc(100% - 32px));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  background: var(--mixx-ink);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 18px;
  padding: var(--space-3) var(--space-4);
  box-shadow: 0 10px 36px rgba(0, 0, 0, 0.35);
  z-index: 9000;
}
.cookie-banner[hidden] { display: none; }
.cookie-banner__text {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.9);
}
.cookie-banner__text a { color: var(--mixx-lime); }
.cookie-banner__actions {
  display: flex;
  gap: var(--space-2);
  flex-shrink: 0;
}
.cookie-banner__btn {
  border: none;
  border-radius: 20px;
  padding: 8px 20px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s, background 0.15s;
}
.cookie-banner__btn--accept { background: var(--mixx-blue); color: #fff; }
.cookie-banner__btn--accept:hover { box-shadow: 0 0 0 3px rgba(81, 99, 245, 0.3); transform: translateY(-1px); }
.cookie-banner__btn--reject {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.4);
}
.cookie-banner__btn--reject:hover { background: rgba(255, 255, 255, 0.1); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1100px) {
  .services-section > *,
  .services-cta { width: 90%; }
  .process-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  .services-section > * { width: 100%; padding-left: 20px; padding-right: 20px; }
  .services-cta { width: 100%; padding: 0 20px; }
  .services-hero,
  .svc-philosophy { width: 100%; border-radius: 28px; }

  .offerings-grid { grid-template-columns: 1fr; }
  .offering-card--featured { grid-template-columns: 1fr; }
  .offering-card--featured .offering-card__media { order: -1; }

  .service-block { grid-template-columns: 1fr; }
  .service-block--reverse .service-block__media { order: -1; }
  .service-block__media { min-height: 220px; }
}

@media (max-width: 600px) {
  .services-hero { padding: 40px 22px; }
  .process-grid { grid-template-columns: 1fr; }
  .hero-cta-group--centered,
  .services-hero .hero-cta-group { flex-direction: column; }
  .hero-cta-group--centered .cta-button,
  .services-hero .hero-cta-group .cta-button { width: 100%; justify-content: center; }
  .cookie-banner { flex-direction: column; align-items: stretch; text-align: center; }
  .cookie-banner__actions { justify-content: center; }
}
