/* ============================================================
   SYNOVY SOLUTIONS — MAIN STYLESHEET
   Design: Sticky Top-Bar / Split Hero
   Font: Quicksand
   Primary: Lavender palette
   ============================================================ */

/* ── DESIGN TOKENS ─────────────────────────────────────────── */
:root {
  /* Lavender Palette */
  --color-primary:        #7c6fd4;   /* Core lavender (buttons, accents) */
  --color-primary-dark:   #5c4fbf;   /* Hover / pressed */
  --color-primary-light:  #ede9fb;   /* Tinted backgrounds */
  --color-primary-mid:    #b5aaea;   /* Borders, dividers */
  --color-accent:         #d4b8ff;   /* Highlight accent */

  /* Neutrals */
  --color-bg:             #f9f8ff;   /* Page background */
  --color-surface:        #ffffff;
  --color-surface-alt:    #f3f1fc;
  --color-text:           #1e1a38;   /* Dark readable text */
  --color-text-muted:     #5a5478;
  --color-text-light:     #9590b0;
  --color-border:         #dbd7f0;

  /* Header */
  --color-header-bg:      #ffffff;
  --color-header-shadow:  rgba(124, 111, 212, 0.12);

  /* Footer */
  --color-footer-bg:      #1e1a38;
  --color-footer-text:    #cdc9e8;
  --color-footer-heading: #ffffff;
  --color-footer-link:    #b5aaea;

  /* Typography */
  --font-base:            'Quicksand', sans-serif;
  --font-size-base:       1rem;
  --line-height-base:     1.7;

  /* Spacing */
  --space-xs:   0.25rem;
  --space-sm:   0.5rem;
  --space-md:   1rem;
  --space-lg:   1.5rem;
  --space-xl:   2.5rem;
  --space-2xl:  4rem;
  --space-3xl:  6rem;

  /* Layout */
  --container-max:  1200px;
  --header-height:  70px;
  --radius-sm:      6px;
  --radius-md:      12px;
  --radius-lg:      20px;
  --radius-pill:    100px;

  /* Shadows */
  --shadow-sm:  0 2px 8px rgba(124, 111, 212, 0.10);
  --shadow-md:  0 6px 24px rgba(124, 111, 212, 0.14);
  --shadow-lg:  0 16px 48px rgba(124, 111, 212, 0.18);

  /* Transitions */
  --transition-fast:   150ms ease;
  --transition-base:   250ms ease;
  --transition-slow:   400ms ease;
}

/* ── RESET & BASE ───────────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-base);
  font-size: var(--font-size-base);
  line-height: var(--line-height-base);
  color: var(--color-text);
  background-color: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, svg {
  max-width: 100%;
  display: block;
}

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover { color: var(--color-primary-dark); }

ul { list-style: none; }

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.25;
  color: var(--color-text);
}

h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); }
h3 { font-size: clamp(1.1rem, 2vw, 1.4rem); }
h4 { font-size: 1.1rem; }

p { color: var(--color-text-muted); }

/* ── UTILITIES ──────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--space-xl);
}

.section {
  padding-block: var(--space-3xl);
}

.section--alt {
  background-color: var(--color-surface-alt);
}

.section--dark {
  background-color: var(--color-text);
  color: var(--color-footer-text);
}

.section--dark h2,
.section--dark h3 {
  color: #ffffff;
}

.section--primary {
  background-color: var(--color-primary);
  color: #ffffff;
}

.section--primary h2,
.section--primary p { color: #ffffff; }

.text-center  { text-align: center; }
.text-muted   { color: var(--color-text-muted); }
.mt-sm  { margin-top: var(--space-sm); }
.mt-md  { margin-top: var(--space-md); }
.mt-lg  { margin-top: var(--space-lg); }
.mt-xl  { margin-top: var(--space-xl); }
.mb-md  { margin-bottom: var(--space-md); }
.mb-lg  { margin-bottom: var(--space-lg); }
.mb-xl  { margin-bottom: var(--space-xl); }

.tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-primary);
  background: var(--color-primary-light);
  padding: 0.3em 0.85em;
  border-radius: var(--radius-pill);
  margin-bottom: var(--space-md);
}

.tag--white {
  color: var(--color-primary);
  background: rgba(255,255,255,0.9);
}

/* ── BUTTONS ────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  font-family: var(--font-base);
  font-size: 0.95rem;
  font-weight: 700;
  padding: 0.75em 1.8em;
  border-radius: var(--radius-pill);
  border: 2px solid transparent;
  cursor: pointer;
  transition: background var(--transition-base), color var(--transition-base),
              box-shadow var(--transition-base), transform var(--transition-fast);
  text-decoration: none;
  line-height: 1;
}

.btn:hover { transform: translateY(-2px); text-decoration: none; }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--color-primary);
  color: #ffffff;
  border-color: var(--color-primary);
  box-shadow: 0 4px 16px rgba(124, 111, 212, 0.35);
}

.btn-primary:hover {
  background: var(--color-primary-dark);
  border-color: var(--color-primary-dark);
  color: #ffffff;
  box-shadow: 0 6px 24px rgba(92, 79, 191, 0.45);
}

.btn-outline {
  background: transparent;
  color: var(--color-primary);
  border-color: var(--color-primary);
}

.btn-outline:hover {
  background: var(--color-primary);
  color: #ffffff;
}

.btn-outline-light {
  background: transparent;
  color: #ffffff;
  border-color: rgba(255,255,255,0.5);
}

.btn-outline-light:hover {
  background: rgba(255,255,255,0.12);
  border-color: #ffffff;
  color: #ffffff;
}

.btn-white {
  background: #ffffff;
  color: var(--color-primary);
  border-color: #ffffff;
}

.btn-white:hover {
  background: var(--color-primary-light);
  color: var(--color-primary-dark);
}

/* ── SECTION HEADERS ────────────────────────────────────────── */
.section-header {
  text-align: center;
  max-width: 640px;
  margin-inline: auto;
  margin-bottom: var(--space-2xl);
}

.section-header p {
  margin-top: var(--space-md);
  font-size: 1.05rem;
}

/* ── CARDS ──────────────────────────────────────────────────── */
.card {
  background: var(--color-surface);
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  padding: var(--space-xl);
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition-base), transform var(--transition-base);
}

.card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

.card-icon {
  width: 52px;
  height: 52px;
  background: var(--color-primary-light);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-lg);
  flex-shrink: 0;
}

.card-icon svg {
  width: 26px;
  height: 26px;
  color: var(--color-primary);
  stroke: var(--color-primary);
}

/* ── SITE HEADER ────────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--color-header-bg);
  height: var(--header-height);
  border-bottom: 1px solid var(--color-border);
  box-shadow: 0 2px 12px var(--color-header-shadow);
  transition: box-shadow var(--transition-base);
}

.site-header.scrolled {
  box-shadow: 0 4px 24px rgba(124, 111, 212, 0.18);
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-lg);
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  text-decoration: none;
  flex-shrink: 0;
}

.logo-text {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--color-text);
  letter-spacing: -0.01em;
}

.logo-text strong {
  color: var(--color-primary);
  font-weight: 700;
}

.logo:hover .logo-text { color: var(--color-primary); }

/* Primary Nav */
.primary-nav .nav-list {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
}

.nav-link {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--color-text-muted);
  padding: 0.45em 0.9em;
  border-radius: var(--radius-sm);
  transition: color var(--transition-fast), background var(--transition-fast);
  text-decoration: none;
}

.nav-link:hover,
.nav-link.active {
  color: var(--color-primary);
  background: var(--color-primary-light);
}

.nav-link.nav-cta {
  background: var(--color-primary);
  color: #ffffff;
  padding: 0.5em 1.3em;
  border-radius: var(--radius-pill);
  margin-left: var(--space-sm);
}

.nav-link.nav-cta:hover {
  background: var(--color-primary-dark);
  color: #ffffff;
}

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  border-radius: var(--radius-sm);
}

.hamburger-bar {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--color-text);
  border-radius: 2px;
  transition: transform var(--transition-base), opacity var(--transition-base);
}

.nav-toggle[aria-expanded="true"] .hamburger-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] .hamburger-bar:nth-child(2) {
  opacity: 0;
}
.nav-toggle[aria-expanded="true"] .hamburger-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ── FOOTER ─────────────────────────────────────────────────── */
.site-footer {
  background: var(--color-footer-bg);
  color: var(--color-footer-text);
  padding-top: var(--space-3xl);
}

.footer-inner { }

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: var(--space-xl);
  padding-bottom: var(--space-2xl);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer-logo .logo-text { color: #ffffff; }
.footer-logo .logo-text strong { color: var(--color-accent); }

.footer-tagline {
  margin-top: var(--space-lg);
  font-size: 0.9rem;
  color: var(--color-footer-text);
  line-height: 1.6;
}

.footer-heading {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-footer-heading);
  margin-bottom: var(--space-lg);
}

.footer-links li + li { margin-top: var(--space-sm); }

.footer-links a {
  font-size: 0.9rem;
  color: var(--color-footer-link);
  transition: color var(--transition-fast);
}

.footer-links a:hover { color: #ffffff; }

.footer-contact-text {
  font-size: 0.9rem;
  color: var(--color-footer-text);
  margin-bottom: var(--space-lg);
  line-height: 1.6;
}

.footer-contact-btn {
  font-size: 0.88rem;
  padding: 0.6em 1.4em;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: var(--space-lg);
  font-size: 0.82rem;
  color: var(--color-text-light);
  flex-wrap: wrap;
  gap: var(--space-sm);
}

.footer-legal a {
  color: var(--color-footer-link);
  font-size: 0.82rem;
}

.footer-legal a:hover { color: #ffffff; }

/* ── HERO — SPLIT LAYOUT ────────────────────────────────────── */
.hero {
  min-height: calc(100vh - var(--header-height));
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  overflow: hidden;
  position: relative;
}

.hero-content {
  padding: var(--space-3xl) var(--space-2xl) var(--space-3xl) max(var(--space-xl), calc((100vw - var(--container-max)) / 2 + var(--space-xl)));
}

.hero-headline {
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  font-weight: 700;
  line-height: 1.15;
  color: var(--color-text);
  margin-bottom: var(--space-lg);
}

.hero-headline em {
  font-style: normal;
  color: var(--color-primary);
}

.hero-subheading {
  font-size: 1.1rem;
  color: var(--color-text-muted);
  max-width: 480px;
  margin-bottom: var(--space-xl);
  line-height: 1.75;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
  align-items: center;
}

.hero-stats {
  margin-top: var(--space-2xl);
  display: flex;
  gap: var(--space-xl);
  flex-wrap: wrap;
}

.hero-stat-item {}

.hero-stat-value {
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-primary);
  line-height: 1;
}

.hero-stat-label {
  font-size: 0.82rem;
  color: var(--color-text-muted);
  margin-top: 0.25rem;
  font-weight: 600;
}

.hero-visual {
  background: linear-gradient(135deg, var(--color-primary-light) 0%, var(--color-primary-mid) 60%, var(--color-primary) 100%);
  min-height: calc(100vh - var(--header-height));
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.hero-visual::before {
  content: '';
  position: absolute;
  top: -80px;
  right: -80px;
  width: 340px;
  height: 340px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
}

.hero-visual::after {
  content: '';
  position: absolute;
  bottom: -60px;
  left: -60px;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
}

.hero-graphic {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 440px;
  padding: var(--space-2xl);
}

/* Floating card graphic within hero */
.hero-floating-card {
  background: rgba(255,255,255,0.95);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  box-shadow: var(--shadow-lg);
  margin-bottom: var(--space-md);
  backdrop-filter: blur(10px);
}

.hero-floating-card + .hero-floating-card {
  margin-left: var(--space-xl);
}

.hero-cards-row {
  display: flex;
  gap: var(--space-md);
}

.hero-card-icon {
  width: 40px;
  height: 40px;
  background: var(--color-primary-light);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-sm);
}

.hero-card-icon svg {
  width: 20px;
  height: 20px;
  stroke: var(--color-primary);
}

.hero-card-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-text-muted);
  margin-bottom: 0.15rem;
}

.hero-card-value {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-text);
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  background: rgba(255,255,255,0.95);
  border-radius: var(--radius-pill);
  padding: 0.5em 1em;
  box-shadow: var(--shadow-sm);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--color-text);
  margin-top: var(--space-md);
}

.hero-badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #4caf81;
  flex-shrink: 0;
  box-shadow: 0 0 0 3px rgba(76, 175, 129, 0.2);
}

/* ── SERVICES GRID ──────────────────────────────────────────── */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-lg);
}

.service-card {
  background: var(--color-surface);
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  padding: var(--space-xl);
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition-base), transform var(--transition-base);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
  opacity: 0;
  transition: opacity var(--transition-base);
}

.service-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

.service-card:hover::before { opacity: 1; }

.service-card h3 {
  margin-bottom: var(--space-sm);
  margin-top: var(--space-md);
}

.service-card p {
  font-size: 0.92rem;
  line-height: 1.65;
}

.service-card .learn-more {
  display: inline-flex;
  align-items: center;
  gap: 0.35em;
  margin-top: var(--space-lg);
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--color-primary);
}

.service-card .learn-more:hover { gap: 0.6em; }

/* ── TESTIMONIALS ───────────────────────────────────────────── */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-lg);
}

.testimonial-card {
  background: var(--color-surface);
  border-radius: var(--radius-md);
  padding: var(--space-xl);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
  position: relative;
}

.testimonial-quote {
  font-size: 3rem;
  line-height: 1;
  color: var(--color-primary-mid);
  font-family: Georgia, serif;
  margin-bottom: var(--space-md);
  display: block;
}

.testimonial-text {
  font-size: 0.97rem;
  line-height: 1.75;
  color: var(--color-text-muted);
  margin-bottom: var(--space-lg);
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding-top: var(--space-md);
  border-top: 1px solid var(--color-border);
}

.testimonial-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-primary-light), var(--color-primary-mid));
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1rem;
  color: var(--color-primary);
  flex-shrink: 0;
}

.testimonial-author-name {
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--color-text);
}

.testimonial-author-role {
  font-size: 0.8rem;
  color: var(--color-text-muted);
}

/* ── CASE STUDY CARDS ───────────────────────────────────────── */
.case-studies-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: var(--space-lg);
}

.case-study-card {
  background: var(--color-surface);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition-base), transform var(--transition-base);
  display: flex;
  flex-direction: column;
}

.case-study-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

.case-study-visual {
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  position: relative;
  overflow: hidden;
}

.case-study-body {
  padding: var(--space-xl);
  flex: 1;
  display: flex;
  flex-direction: column;
}

.case-study-body h3 { margin-bottom: var(--space-sm); }

.case-study-body p {
  font-size: 0.92rem;
  line-height: 1.65;
  flex: 1;
}

.case-study-meta {
  display: flex;
  gap: var(--space-sm);
  flex-wrap: wrap;
  margin-top: var(--space-lg);
}

.meta-tag {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-primary);
  background: var(--color-primary-light);
  padding: 0.3em 0.75em;
  border-radius: var(--radius-pill);
}

/* ── CTA BANNER ─────────────────────────────────────────────── */
.cta-banner {
  background: linear-gradient(135deg, var(--color-primary-dark) 0%, var(--color-primary) 100%);
  border-radius: var(--radius-lg);
  padding: var(--space-3xl) var(--space-2xl);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-banner::before {
  content: '';
  position: absolute;
  top: -100px;
  right: -100px;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
}

.cta-banner::after {
  content: '';
  position: absolute;
  bottom: -80px;
  left: -80px;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: rgba(255,255,255,0.04);
}

.cta-banner h2 { color: #ffffff; }
.cta-banner p  {
  color: rgba(255,255,255,0.85);
  max-width: 540px;
  margin-inline: auto;
  margin-top: var(--space-md);
  font-size: 1.05rem;
}

.cta-banner .cta-actions {
  display: flex;
  gap: var(--space-md);
  justify-content: center;
  flex-wrap: wrap;
  margin-top: var(--space-xl);
  position: relative;
  z-index: 1;
}

/* ── CLIENTS / TRUST STRIP ──────────────────────────────────── */
.clients-strip {
  padding-block: var(--space-xl);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.clients-strip-label {
  text-align: center;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-text-light);
  margin-bottom: var(--space-lg);
}

.clients-logos {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: var(--space-2xl);
}

.client-logo {
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-text-light);
  letter-spacing: -0.02em;
  opacity: 0.6;
  transition: opacity var(--transition-base);
}

.client-logo:hover { opacity: 1; }

/* ── PROCESS / STEPS ────────────────────────────────────────── */
.process-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-lg);
  counter-reset: step-counter;
}

.process-step {
  text-align: center;
  padding: var(--space-xl) var(--space-lg);
  position: relative;
}

.process-step-number {
  width: 56px;
  height: 56px;
  background: var(--color-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0 auto var(--space-lg);
  box-shadow: 0 4px 16px rgba(124, 111, 212, 0.35);
}

.process-step h4 {
  margin-bottom: var(--space-sm);
}

.process-step p {
  font-size: 0.9rem;
}

/* ── CONTACT PAGE ───────────────────────────────────────────── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: var(--space-3xl);
  align-items: start;
}

.contact-info h2 { margin-bottom: var(--space-md); }
.contact-info p  { margin-bottom: var(--space-xl); }

.contact-detail {
  display: flex;
  align-items: flex-start;
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
}

.contact-detail-icon {
  width: 44px;
  height: 44px;
  background: var(--color-primary-light);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-detail-icon svg {
  width: 20px;
  height: 20px;
  stroke: var(--color-primary);
}

.contact-detail-label {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-light);
  margin-bottom: 0.2rem;
}

.contact-detail-value {
  font-size: 0.95rem;
  color: var(--color-text);
  font-weight: 600;
}

/* Form */
.contact-form-wrapper {
  background: var(--color-surface);
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  padding: var(--space-2xl);
  box-shadow: var(--shadow-md);
}

.form-title {
  font-size: 1.4rem;
  margin-bottom: var(--space-xl);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
}

.form-group {
  margin-bottom: var(--space-lg);
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 0.4rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  font-family: var(--font-base);
  font-size: 0.95rem;
  color: var(--color-text);
  background: var(--color-bg);
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 0.7em 1em;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
  outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(124, 111, 212, 0.15);
}

.form-group textarea {
  resize: vertical;
  min-height: 130px;
}

.form-submit { width: 100%; }

.form-note {
  font-size: 0.8rem;
  color: var(--color-text-light);
  text-align: center;
  margin-top: var(--space-md);
}

/* ── SERVICES DETAIL PAGE ───────────────────────────────────── */
.service-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3xl);
  align-items: center;
  padding-block: var(--space-3xl);
}

.service-detail:nth-child(even) .service-detail-content {
  order: 2;
}

.service-detail:nth-child(even) .service-detail-visual {
  order: 1;
}

.service-detail-visual {
  border-radius: var(--radius-lg);
  overflow: hidden;
  min-height: 340px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 6rem;
  position: relative;
}

.service-detail-content h2 {
  margin-bottom: var(--space-md);
}

.service-detail-content p {
  margin-bottom: var(--space-lg);
  font-size: 1.02rem;
}

.service-features {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  margin-bottom: var(--space-xl);
}

.service-feature-item {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: 0.9rem;
  color: var(--color-text-muted);
  font-weight: 500;
}

.service-feature-item::before {
  content: '';
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--color-primary-light);
  border: 2px solid var(--color-primary);
  flex-shrink: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18' fill='none'%3E%3Cpath d='M4 9l3.5 3.5L14 6' stroke='%237c6fd4' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
}

/* ── PAGE HERO (inner pages) ────────────────────────────────── */
.page-hero {
  background: linear-gradient(135deg, var(--color-primary-light) 0%, #f0edfa 100%);
  padding: var(--space-3xl) 0;
  text-align: center;
  border-bottom: 1px solid var(--color-border);
}

.page-hero h1 { margin-bottom: var(--space-md); }

.page-hero p {
  font-size: 1.1rem;
  max-width: 580px;
  margin-inline: auto;
}

/* ── RESULTS BAND ───────────────────────────────────────────── */
.results-band {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.result-item {
  background: var(--color-surface);
  padding: var(--space-xl);
  text-align: center;
}

.result-value {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 700;
  color: var(--color-primary);
  line-height: 1;
  display: block;
}

.result-label {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin-top: 0.5rem;
  font-weight: 600;
}

/* ── ABOUT SUMMARY ──────────────────────────────────────────── */
.about-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3xl);
  align-items: center;
}

.about-visual {
  background: linear-gradient(135deg, var(--color-primary-light), var(--color-primary-mid));
  border-radius: var(--radius-lg);
  min-height: 380px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 7rem;
  position: relative;
  overflow: hidden;
}

.about-visual::after {
  content: '';
  position: absolute;
  bottom: -50px;
  right: -50px;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
}

/* ── CASE STUDY FULL ────────────────────────────────────────── */
.case-study-full {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-md);
  margin-bottom: var(--space-xl);
  background: var(--color-surface);
}

.case-study-full-header {
  padding: var(--space-2xl);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: var(--space-lg);
  align-items: start;
  border-bottom: 1px solid var(--color-border);
}

.case-study-full-body {
  padding: var(--space-2xl);
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: var(--space-xl);
}

.challenge-outcome h4 {
  color: var(--color-text);
  margin-bottom: var(--space-sm);
}

.challenge-outcome p {
  font-size: 0.92rem;
}

.case-result-box {
  background: var(--color-primary-light);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
}

.case-result-box h4 {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-primary);
  margin-bottom: var(--space-md);
}

.case-result-stat {
  margin-bottom: var(--space-md);
}

.case-result-stat-value {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--color-primary);
  line-height: 1;
}

.case-result-stat-label {
  font-size: 0.82rem;
  color: var(--color-text-muted);
  margin-top: 0.2rem;
}

/* ── FORM SUCCESS STATE ─────────────────────────────────────── */
.form-success {
  display: none;
  text-align: center;
  padding: var(--space-2xl);
}

.form-success.visible { display: block; }

.form-success-icon {
  width: 64px;
  height: 64px;
  background: var(--color-primary-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-lg);
}

.form-success-icon svg {
  width: 30px;
  height: 30px;
  stroke: var(--color-primary);
}

/* ── RESPONSIVE ─────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .hero-content {
    padding-left: var(--space-xl);
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-2xl);
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .results-band {
    grid-template-columns: repeat(2, 1fr);
  }

  .service-detail {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }

  .service-detail:nth-child(even) .service-detail-content,
  .service-detail:nth-child(even) .service-detail-visual {
    order: unset;
  }

  .case-study-full-body {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  :root {
    --space-3xl: 4rem;
  }

  .container {
    padding-inline: var(--space-lg);
  }

  /* Mobile nav */
  .nav-toggle {
    display: flex;
  }

  .primary-nav {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: var(--color-surface);
    border-bottom: 1px solid var(--color-border);
    box-shadow: var(--shadow-md);
    padding: var(--space-lg);
    transform: translateY(-110%);
    transition: transform var(--transition-base);
    z-index: 999;
  }

  .primary-nav.nav-open {
    transform: translateY(0);
  }

  .primary-nav .nav-list {
    flex-direction: column;
    gap: var(--space-xs);
  }

  .nav-link {
    display: block;
    padding: 0.65em 1em;
    border-radius: var(--radius-sm);
  }

  .nav-link.nav-cta {
    margin-left: 0;
    margin-top: var(--space-sm);
    text-align: center;
  }

  /* Hero stacked */
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .hero-content {
    padding: var(--space-2xl) var(--space-lg);
    max-width: none;
  }

  .hero-visual {
    min-height: 320px;
  }

  .hero-stats {
    gap: var(--space-lg);
  }

  /* Footer */
  .footer-grid {
    grid-template-columns: 1fr;
  }

  /* About / contact splits */
  .about-split { grid-template-columns: 1fr; }

  /* Form rows */
  .form-row { grid-template-columns: 1fr; }

  /* Results */
  .results-band {
    grid-template-columns: 1fr 1fr;
  }

  /* Case study header */
  .case-study-full-header {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .results-band {
    grid-template-columns: 1fr;
  }

  .hero-graphic {
    padding: var(--space-lg);
  }
}

/* ── ACCESSIBILITY ──────────────────────────────────────────── */
:focus-visible {
  outline: 3px solid var(--color-primary);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border-width: 0;
}

/* Skip link */
.skip-link {
  position: absolute;
  top: -100%;
  left: var(--space-md);
  background: var(--color-primary);
  color: #fff;
  padding: 0.5em 1em;
  border-radius: var(--radius-sm);
  font-weight: 700;
  z-index: 9999;
  transition: top var(--transition-fast);
}

.skip-link:focus { top: var(--space-md); }

/* ── ANIMATIONS ─────────────────────────────────────────────── */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-in {
  animation: fadeInUp 0.55s ease forwards;
}

.animate-delay-1 { animation-delay: 0.1s; }
.animate-delay-2 { animation-delay: 0.2s; }
.animate-delay-3 { animation-delay: 0.3s; }
.animate-delay-4 { animation-delay: 0.4s; }