/* ═══════════════════════════════════════════════════════════════
   AL Performance — Customer Website Stylesheet
   Design: Five9-inspired corporate, gradient hero, deep navy
   ═══════════════════════════════════════════════════════════════ */

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

:root {
  --brand:        #22327d;
  --brand-dark:   #19223d;
  --brand-light:  #7a84b1;
  --navy:         #1e1b4b;
  --dark:         #0f172a;
  --accent:       #f97316;
  --accent-light: #fff7ed;
  --lime:         #84cc16;
  --lime-light:   #ecfccb;
  --mint:         #ecfdf5;
  --mint-border:  #a7f3d0;
  --lavender:     #f5f3ff;
  --lavender-border: #c4b5fd;
  --rose:         #fff1f2;
  --rose-border:  #fda4af;
  --sky:          #f0f9ff;
  --sky-border:   #7dd3fc;
  --bg:           #ffffff;
  --bg-soft:      #f8fafc;
  --bg-section:   #f1f5f9;
  --text:         #1e293b;
  --text-body:    #475569;
  --text-muted:   #94a3b8;
  --border:       #e2e8f0;
  --border-light: #f1f5f9;
  --white:        #ffffff;
  --success:      #10b981;
  --warning:      #f59e0b;
  --danger:       #ef4444;
  --radius:       12px;
  --radius-lg:    20px;
  --radius-xl:    24px;
  --shadow-sm:    0 1px 3px rgba(0,0,0,.06);
  --shadow:       0 4px 16px rgba(0,0,0,.06);
  --shadow-lg:    0 8px 32px rgba(0,0,0,.08);
  --shadow-xl:    0 20px 60px rgba(0,0,0,.08);
  --transition:   .25s cubic-bezier(.4,0,.2,1);
  --font:         'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --max-width:    1200px;
  /* Five9-inspired gradient */
  --gradient-hero: linear-gradient(135deg, #0f172a 0%, #1e1b4b 40%, #312e81 70%, #4338ca 100%);
  --gradient-dark: linear-gradient(135deg, #0f172a 0%, #1e1b4b 60%, #312e81 100%);
  --gradient-cta:  linear-gradient(135deg, #312e81 0%, #4338ca 50%, #6366f1 100%);
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--brand-dark); }

.container { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }

/* ─── Typography ────────────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 { font-weight: 800; line-height: 1.15; letter-spacing: -.02em; color: var(--dark); }
h1 { font-size: clamp(2.4rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.4rem); }
p  { font-size: 1.05rem; color: var(--text-body); }

.section-tag {
  display: inline-block;
  font-size: .78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--brand);
  margin-bottom: 12px;
}

.section-heading { margin-bottom: 16px; }

.section-sub {
  max-width: 640px;
  font-size: 1.1rem;
  color: var(--text-body);
  line-height: 1.7;
}

.highlight {
  background: linear-gradient(120deg, #d9f99d 0%, #a3e635 100%);
  padding: 2px 8px;
  border-radius: 6px;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

/* ─── Buttons ───────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border: none;
  border-radius: 50px;
  font-family: var(--font);
  font-size: .95rem;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
}

.btn-primary {
  background: var(--brand);
  color: var(--white);
  box-shadow: 0 4px 16px rgba(79,70,229,.3);
}
.btn-primary:hover {
  background: var(--brand-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(79,70,229,.4);
  color: var(--white);
}

.btn-brand {
  background: var(--brand);
  color: var(--white);
}
.btn-brand:hover {
  background: var(--brand-dark);
  transform: translateY(-2px);
  color: var(--white);
}

.btn-white {
  background: var(--white);
  color: var(--dark);
  box-shadow: var(--shadow);
}
.btn-white:hover {
  background: #f8fafc;
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  color: var(--dark);
}

.btn-outline {
  background: transparent;
  color: var(--dark);
  border: 2px solid var(--border);
}
.btn-outline:hover {
  border-color: var(--dark);
  transform: translateY(-2px);
}

.btn-outline-light {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,.3);
}
.btn-outline-light:hover {
  border-color: var(--white);
  color: var(--white);
  transform: translateY(-2px);
}

.btn-sm {
  padding: 10px 24px;
  font-size: .85rem;
}

.btn-arrow::after {
  content: ' \2197';
  font-size: 1.1em;
}

/* ─── Navigation ────────────────────────────────────────────── */
.site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow var(--transition);
}

.site-nav.scrolled {
  box-shadow: var(--shadow-sm);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  height: 72px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--dark);
  letter-spacing: -.02em;
}

.nav-logo-img {
  height: var(--logo-height, 32px);
  width: auto;
}
.nav-logo-text {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--dark);
  letter-spacing: -.01em;
}
.footer-logo-text {
  font-size: 1rem;
  font-weight: 600;
  color: var(--white);
  opacity: .9;
  display: block;
  margin-bottom: 12px;
}

.nav-logo-icon {
  width: 36px; height: 36px;
  background: var(--brand);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  font-weight: 900;
  color: var(--white);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  font-size: .9rem;
  font-weight: 600;
  color: var(--text-body);
  transition: color var(--transition);
  position: relative;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--dark);
}

.nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0; right: 0;
  height: 2px;
  background: var(--brand);
  border-radius: 2px;
}

.nav-cta {
  padding: 10px 24px !important;
  background: var(--brand) !important;
  color: var(--white) !important;
  border-radius: 50px !important;
  font-weight: 700 !important;
  font-size: .85rem !important;
  border: none;
  box-shadow: 0 2px 8px rgba(79,70,229,.25);
  white-space: nowrap;
  flex-shrink: 0;
}
.nav-cta:hover {
  background: var(--brand-dark) !important;
  box-shadow: 0 4px 16px rgba(79,70,229,.35);
  transform: translateY(-1px);
}

.nav-cta.active::after { display: none; }

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--dark);
  border-radius: 2px;
  transition: all var(--transition);
}

/* ─── Region switcher ──────────────────────────────────────── */
.region-toggle {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 8px;
  font-size: .75rem;
  cursor: pointer;
}
.region-toggle-btn {
  padding: 4px 10px;
  border: none;
  border-radius: 6px;
  font-family: var(--font);
  font-size: .75rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  background: transparent;
  color: #94a3b8;
}
.region-toggle-btn.active {
  background: var(--brand);
  color: var(--white);
  box-shadow: 0 2px 6px rgba(79,70,229,.3);
}

/* ─── Hero — Five9-inspired gradient ───────────────────────── */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  background: var(--gradient-hero);
  overflow: hidden;
}

/* Subtle grid/mesh pattern overlay */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 70% 30%, rgba(99,102,241,.25) 0%, transparent 50%),
              radial-gradient(circle at 20% 80%, rgba(67,56,202,.2) 0%, transparent 40%);
  pointer-events: none;
}

/* Decorative glow orbs */
.hero::after {
  content: '';
  position: absolute;
  top: -20%;
  right: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(99,102,241,.15) 0%, transparent 60%);
  border-radius: 50%;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 720px;
  padding: 140px 0 80px;
}

.hero-full {
  min-height: 92vh;
}

.hero h1 {
  margin-bottom: 24px;
  color: var(--white);
}

.hero p {
  font-size: 1.15rem;
  margin-bottom: 36px;
  max-width: 560px;
  color: rgba(255,255,255,.75);
}

.hero .section-tag {
  color: var(--brand-light);
}

.hero .highlight {
  background: linear-gradient(120deg, rgba(132,204,22,.25) 0%, rgba(163,230,53,.35) 100%);
  color: #d9f99d;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 50px;
  font-size: .8rem;
  font-weight: 600;
  color: rgba(255,255,255,.9);
  margin-bottom: 24px;
  backdrop-filter: blur(10px);
}

.hero-badge-img {
  display: block;
  height: 110px;
  width: auto;
  margin-bottom: 24px;
  border-radius: 16px;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-stats {
  display: flex;
  gap: 48px;
  margin-top: 64px;
  padding-top: 32px;
  border-top: 1px solid rgba(255,255,255,.15);
}

.hero-stat h3 {
  font-size: 2rem;
  color: var(--white);
}

.hero-stat p {
  font-size: .85rem;
  color: rgba(255,255,255,.5);
  margin-top: 4px;
}

/* Light hero variant for inner pages */
.hero-light {
  background: var(--bg-soft);
}
.hero-light::before,
.hero-light::after { display: none; }
.hero-light h1 { color: var(--dark); }
.hero-light p { color: var(--text-body); }
.hero-light .section-tag { color: var(--brand); }
.hero-light .highlight {
  background: linear-gradient(120deg, #d9f99d 0%, #a3e635 100%);
  color: var(--dark);
}

/* ─── Hero Background Images ─────────────────────────────────
   Photos loaded from Unsplash CDN. To self-host, download and
   update the URLs below to point to site/img/ local files.
   ──────────────────────────────────────────────────────────── */
.hero-home {
  background: linear-gradient(135deg, rgba(15,23,42,.82) 0%, rgba(30,27,75,.78) 40%, rgba(49,46,129,.72) 70%, rgba(67,56,202,.68) 100%),
              url('https://images.unsplash.com/photo-1556745757-8d76bdb6984b?w=1600&q=80&auto=format&fit=crop') center/cover no-repeat;
}

.hero-services {
  background: linear-gradient(135deg, rgba(15,23,42,.84) 0%, rgba(30,27,75,.8) 40%, rgba(49,46,129,.75) 100%),
              url('https://images.unsplash.com/photo-1521737604893-d14cc237f11d?w=1600&q=80&auto=format&fit=crop') center/cover no-repeat;
}

.hero-about {
  background: linear-gradient(135deg, rgba(15,23,42,.84) 0%, rgba(30,27,75,.78) 50%, rgba(49,46,129,.72) 100%),
              url('https://images.unsplash.com/photo-1522071820081-009f0129c71c?w=1600&q=80&auto=format&fit=crop') center/cover no-repeat;
}

.hero-team {
  background: linear-gradient(135deg, rgba(15,23,42,.82) 0%, rgba(30,27,75,.78) 50%, rgba(49,46,129,.74) 100%),
              url('https://images.unsplash.com/photo-1497366216548-37526070297c?w=1600&q=80&auto=format&fit=crop') center/cover no-repeat;
}

.hero-industries {
  background: linear-gradient(135deg, rgba(15,23,42,.84) 0%, rgba(30,27,75,.8) 50%, rgba(49,46,129,.75) 100%),
              url('https://images.unsplash.com/photo-1553775927-a071d5a6a39a?w=1600&q=80&auto=format&fit=crop') center center/cover no-repeat;
}

.hero-contact {
  background: linear-gradient(135deg, rgba(15,23,42,.85) 0%, rgba(30,27,75,.8) 50%, rgba(49,46,129,.75) 100%),
              url('https://images.unsplash.com/photo-1486312338219-ce68d2c6f44d?w=1600&q=80&auto=format&fit=crop') center/cover no-repeat;
}

.hero-audit {
  background: linear-gradient(135deg, rgba(15,23,42,.83) 0%, rgba(30,27,75,.78) 50%, rgba(49,46,129,.72) 100%),
              url('https://images.unsplash.com/photo-1551434678-e076c223a692?w=1600&q=80&auto=format&fit=crop') center/cover no-repeat;
}

/* Override hero-light on inner pages when using hero images */
.hero-services, .hero-about, .hero-team, .hero-industries, .hero-contact, .hero-audit {
  color: var(--white);
}
.hero-services h1, .hero-about h1, .hero-team h1, .hero-industries h1, .hero-contact h1, .hero-audit h1 {
  color: var(--white);
}
.hero-services p, .hero-about p, .hero-team p, .hero-industries p, .hero-contact p, .hero-audit p {
  color: rgba(255,255,255,.75);
}
.hero-services .section-tag, .hero-about .section-tag, .hero-team .section-tag,
.hero-industries .section-tag, .hero-contact .section-tag, .hero-audit .section-tag {
  color: var(--brand-light);
}
.hero-services .highlight, .hero-about .highlight, .hero-team .highlight,
.hero-industries .highlight, .hero-contact .highlight, .hero-audit .highlight {
  background: linear-gradient(120deg, rgba(132,204,22,.25) 0%, rgba(163,230,53,.35) 100%);
  color: #d9f99d;
}

/* ─── Sections ──────────────────────────────────────────────── */
.section {
  padding: 100px 0;
}

.section-white {
  background: var(--bg);
}

.section-soft {
  background: var(--bg-soft);
}

.section-gray {
  background: var(--bg-section);
}

.section-dark {
  background: var(--gradient-dark);
  color: var(--white);
  position: relative;
  overflow: hidden;
}
.section-dark::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(99,102,241,.1) 0%, transparent 60%);
  border-radius: 50%;
  pointer-events: none;
}
.section-dark h2,
.section-dark h3 { color: var(--white); }
.section-dark p { color: #cbd5e1; }
.section-dark .section-tag { color: #a5b4fc; }

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-header .section-sub {
  margin: 0 auto;
}

/* ─── Cards ─────────────────────────────────────────────────── */
.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: all var(--transition);
}

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

.card-icon {
  width: 52px; height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 20px;
}

.card-icon svg { width: 24px; height: 24px; }

.card-icon-mint    { background: var(--mint); }
.card-icon-lavender { background: var(--lavender); }
.card-icon-rose    { background: var(--rose); }
.card-icon-sky     { background: var(--sky); }
.card-icon-accent  { background: var(--accent-light); }

.card h3 {
  font-size: 1.15rem;
  margin-bottom: 12px;
}

.card p {
  font-size: .95rem;
  line-height: 1.7;
  color: var(--text-body);
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
}

.card-grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

/* Pastel-tinted cards */
.card-mint    { background: var(--mint); border-color: var(--mint-border); }
.card-lavender { background: var(--lavender); border-color: var(--lavender-border); }
.card-rose    { background: var(--rose); border-color: var(--rose-border); }
.card-sky     { background: var(--sky); border-color: var(--sky-border); }

/* ─── Partner logo bar ─────────────────────────────────────── */
.partner-bar {
  padding: 40px 0;
  border-bottom: 1px solid var(--border);
  background: var(--white);
}
.partner-bar-label {
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--text-muted);
  font-weight: 700;
  margin-bottom: 20px;
  text-align: center;
}
.partner-logos {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
  opacity: .55;
}
.partner-logos span {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--dark);
  white-space: nowrap;
}
.partner-logos span.partner-featured {
  font-weight: 800;
  opacity: 1;
}

/* ─── Certification badges ─────────────────────────────────── */
.cert-badges {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}
.cert-badge {
  padding: 20px 32px;
  text-align: center;
  border-radius: var(--radius-lg);
  border: 2px solid;
}
.cert-badge-label {
  font-size: .7rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  font-weight: 700;
  margin-bottom: 6px;
}
.cert-badge-title {
  font-size: 1rem;
  font-weight: 800;
  color: var(--dark);
}

/* ─── Values ────────────────────────────────────────────────── */
.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.value-card {
  text-align: center;
  padding: 40px 28px;
}

.value-card .card-icon {
  margin: 0 auto 20px;
}

/* ─── Team ──────────────────────────────────────────────────── */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 28px;
}

.team-card {
  text-align: center;
  padding: 36px 24px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: all var(--transition);
}

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

.team-avatar {
  width: 100px; height: 100px;
  border-radius: 50%;
  margin: 0 auto 20px;
  overflow: hidden;
  border: 3px solid var(--border);
  transition: border-color var(--transition);
}

.team-card:hover .team-avatar {
  border-color: var(--brand);
}

.team-avatar img {
  width: 100%; height: 100%;
  object-fit: cover;
}

.team-avatar-placeholder {
  width: 100%; height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--white);
}

.team-card h3 {
  font-size: 1.1rem;
  margin-bottom: 6px;
}

.team-card .role {
  font-size: .85rem;
  color: var(--brand);
  font-weight: 600;
  margin-bottom: 12px;
}

.team-card .bio {
  font-size: .88rem;
  color: var(--text-body);
  line-height: 1.6;
}

/* ─── Industries / Sectors ──────────────────────────────────── */
.industry-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.industry-card {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 28px;
}

.industry-icon {
  width: 48px; height: 48px;
  flex-shrink: 0;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
}

.industry-icon svg { width: 22px; height: 22px; }

/* ─── Testimonials ──────────────────────────────────────────── */
.testimonial-card {
  padding: 36px;
  position: relative;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  border-top: 3px solid var(--brand);
}

.testimonial-card .quote {
  font-size: 1.05rem;
  color: var(--text-body);
  line-height: 1.8;
  margin-bottom: 20px;
  font-style: italic;
}

.testimonial-card .quote::before {
  content: '\201C';
  font-size: 4rem;
  color: var(--brand);
  opacity: .2;
  line-height: 0;
  vertical-align: -1.2rem;
  margin-right: 4px;
  font-style: normal;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.testimonial-author strong {
  display: block;
  font-size: .9rem;
  color: var(--dark);
}

.testimonial-author span {
  font-size: .8rem;
  color: var(--brand);
  font-weight: 600;
}

/* ─── Numbered Steps ────────────────────────────────────────── */
.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 56px; height: 56px;
  border-radius: 14px;
  font-size: 1.3rem;
  font-weight: 800;
  flex-shrink: 0;
}
.step-number-brand { background: var(--lavender); color: var(--brand); }
.step-number-accent { background: var(--accent-light); color: var(--accent); }

/* ─── Stats Bar ─────────────────────────────────────────────── */
.stats-bar {
  display: flex;
  justify-content: center;
  gap: 80px;
  padding: 60px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.stat-item { text-align: center; }
.stat-item h3 { font-size: 2.4rem; color: var(--brand); margin-bottom: 4px; }
.stat-item p { font-size: .85rem; color: var(--text-muted); }

/* ─── Package Cards ─────────────────────────────────────────── */
.pkg-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: stretch;
}

.pkg-card {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--radius-xl);
  padding: 40px;
  display: flex;
  flex-direction: column;
  transition: all var(--transition);
}
.pkg-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255,255,255,.2);
  box-shadow: 0 20px 60px rgba(0,0,0,.3);
}

.pkg-featured {
  background: rgba(79,70,229,.15);
  border: 2px solid var(--brand);
  position: relative;
}
.pkg-featured:hover {
  border-color: var(--brand-light);
}

.pkg-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--brand);
  color: var(--white);
  font-size: .7rem;
  font-weight: 700;
  padding: 4px 16px;
  border-radius: 50px;
  text-transform: uppercase;
  letter-spacing: .08em;
  white-space: nowrap;
}

.pkg-header {
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(255,255,255,.1);
}

.pkg-icon {
  display: inline-block;
  font-size: 1.2rem;
  color: var(--brand-light);
  margin-bottom: 8px;
}

.pkg-name {
  font-size: 1.6rem;
  color: var(--white);
  margin-bottom: 4px;
}

.pkg-tagline {
  font-size: .9rem;
  color: #a5b4fc;
  font-weight: 600;
}

.pkg-pitch {
  font-size: .9rem;
  line-height: 1.6;
  color: rgba(255,255,255,.7);
  margin-bottom: 24px;
}

.pkg-features {
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
  margin-bottom: 24px;
}

.pkg-feat {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: .85rem;
  color: rgba(255,255,255,.85);
  line-height: 1.4;
}

.pkg-check {
  color: var(--success);
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 1px;
}

.pkg-ideal {
  font-size: .8rem;
  color: rgba(255,255,255,.5);
  padding: 16px;
  background: rgba(255,255,255,.04);
  border-radius: var(--radius);
  margin-bottom: 24px;
  line-height: 1.5;
}
.pkg-ideal strong { color: rgba(255,255,255,.7); }

.pkg-cta {
  width: 100%;
  justify-content: center;
  margin-top: auto;
}

/* ─── CTA Section — Five9-inspired gradient ────────────────── */
.cta-section {
  text-align: center;
  padding: 120px 0;
  background: linear-gradient(135deg, rgba(49,46,129,.88) 0%, rgba(67,56,202,.84) 50%, rgba(99,102,241,.8) 100%),
              url('https://images.unsplash.com/photo-1560264280-88b68371db39?w=1600&q=80&auto=format&fit=crop') center/cover no-repeat;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(255,255,255,.06) 0%, transparent 60%);
  border-radius: 50%;
  pointer-events: none;
}

.cta-section h2 {
  color: var(--white);
  margin-bottom: 16px;
}

.cta-section p {
  margin-bottom: 36px;
  font-size: 1.15rem;
  color: rgba(255,255,255,.75);
}

.cta-section .btn-primary {
  background: var(--white);
  color: var(--brand-dark);
  box-shadow: 0 4px 16px rgba(0,0,0,.15);
}
.cta-section .btn-primary:hover {
  background: #f1f5f9;
  box-shadow: 0 8px 32px rgba(0,0,0,.2);
}
.cta-section .btn-outline {
  border-color: rgba(255,255,255,.3);
  color: var(--white);
}
.cta-section .btn-outline:hover {
  border-color: var(--white);
}

/* ─── Footer ────────────────────────────────────────────────── */
.site-footer {
  background: var(--dark);
  padding: 60px 0 30px;
  color: #cbd5e1;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand {
  max-width: 300px;
}

.footer-brand .nav-logo { color: var(--white); }
.footer-brand .nav-logo-icon { background: var(--brand); }

.footer-logo-img {
  height: 28px;
  width: auto;
  margin-bottom: 12px;
  opacity: .9;
}

.footer-brand p {
  font-size: .9rem;
  margin-top: 12px;
  color: #94a3b8;
}

.footer-col h4 {
  font-size: .85rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: #94a3b8;
  margin-bottom: 16px;
  font-weight: 700;
}

.footer-col a {
  display: block;
  font-size: .9rem;
  color: #cbd5e1;
  padding: 4px 0;
  transition: color var(--transition);
}
.footer-col a:hover { color: var(--white); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: .8rem;
  color: #64748b;
}

.footer-social {
  display: flex;
  gap: 16px;
}

.footer-social a {
  width: 36px; height: 36px;
  border-radius: 8px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .9rem;
  color: #94a3b8;
  transition: all var(--transition);
}
.footer-social a:hover {
  background: var(--brand);
  border-color: var(--brand);
  color: var(--white);
}

.footer-phone {
  display: inline-block;
  margin-top: 8px;
  font-size: .9rem;
  color: #cbd5e1;
}

/* ─── Contact Form ──────────────────────────────────────────── */
.contact-form {
  max-width: 600px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-size: .85rem;
  font-weight: 600;
  color: var(--text-body);
}

.form-group input,
.form-group textarea,
.form-group select {
  padding: 14px 16px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-family: var(--font);
  font-size: .95rem;
  transition: border-color var(--transition);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(79,70,229,.1);
}

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

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

/* ─── Service split layout ──────────────────────────────────── */
.service-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

/* ─── Pricing cards ────────────────────────────────────────── */
.pricing-card {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius-xl);
  padding: 40px 32px;
  position: relative;
  transition: all var(--transition);
}
.pricing-card:hover {
  border-color: rgba(255,255,255,.25);
  transform: translateY(-4px);
}
.pricing-featured {
  border-color: var(--brand-light);
  background: rgba(99,102,241,.08);
}
.pricing-featured::before {
  content: 'Most Popular';
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  padding: 4px 16px;
  background: var(--brand);
  color: var(--white);
  font-size: .75rem;
  font-weight: 700;
  border-radius: 50px;
  text-transform: uppercase;
  letter-spacing: .06em;
}

/* ─── Pill tags ─────────────────────────────────────────────── */
.pill {
  display: inline-block;
  padding: 5px 14px;
  background: var(--lavender);
  border: 1px solid var(--lavender-border);
  border-radius: 50px;
  font-size: .78rem;
  font-weight: 600;
  color: var(--brand);
}

/* ─── Check list ────────────────────────────────────────────── */
.check-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.check-item {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: .9rem;
  color: var(--text);
}
.check-icon {
  color: var(--success);
  font-size: 1.1rem;
  margin-top: 1px;
  flex-shrink: 0;
}

/* ─── Outcome cards (stats) ─────────────────────────────────── */
.outcome-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.outcome-box {
  padding: 20px;
  border-radius: 14px;
  text-align: center;
}
.outcome-box .num {
  font-size: 1.8rem;
  font-weight: 800;
  margin-bottom: 4px;
}
.outcome-box .label {
  font-size: .78rem;
  color: var(--text-muted);
}

/* ─── Region-specific content ──────────────────────────────── */
[data-region-uk] { display: inline; }
[data-region-us] { display: none; }
body.region-us [data-region-uk] { display: none; }
body.region-us [data-region-us] { display: inline; }
/* Block-level variants */
[data-region-uk-block] { display: block; }
[data-region-us-block] { display: none; }
body.region-us [data-region-uk-block] { display: none; }
body.region-us [data-region-us-block] { display: block; }

/* ─── Utility ───────────────────────────────────────────────── */
.text-center { text-align: center; }
.text-brand  { color: var(--brand); }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-40 { margin-top: 40px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }

.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .6s ease, transform .6s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ─── Responsive ────────────────────────────────────────────── */
@media (max-width: 960px) {
  .card-grid-3 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .hero-stats { gap: 32px; flex-wrap: wrap; }
  .stats-bar { gap: 40px; flex-wrap: wrap; }
  .service-split { grid-template-columns: 1fr; }
  .pkg-grid { grid-template-columns: 1fr; max-width: 480px; margin: 0 auto; }
  .cert-badges { flex-direction: column; align-items: stretch; }
}

/* Nav switches to the hamburger menu earlier than other layout
   breakpoints — 7 links + the pill CTA need more room than 768px
   before they start squeezing/wrapping, independent of when cards,
   hero, and footer reflow. */
@media (max-width: 1024px) {
  .nav-links { display: none; }
  .nav-toggle { display: flex; }

  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 72px; left: 0; right: 0;
    background: rgba(255,255,255,.98);
    backdrop-filter: blur(20px);
    padding: 24px;
    gap: 20px;
    border-bottom: 1px solid var(--border);
  }
}

@media (max-width: 768px) {
  .hero-full { min-height: auto; }
  .hero-content { padding: 100px 0 40px; }
  .hero h1 { font-size: 2rem; }
  .hero-stats { flex-direction: column; gap: 16px; }

  .card-grid, .card-grid-3 { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
  .form-row { grid-template-columns: 1fr; }

  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 16px; text-align: center; }

  .section { padding: 60px 0; }
  .cta-section { padding: 80px 0; }
  .stats-bar { flex-direction: column; gap: 24px; padding: 40px 0; }
  .partner-logos { gap: 24px; }
}

@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .hero-buttons { flex-direction: column; }
  .btn { width: 100%; justify-content: center; }
}
