/* ============================================================
   EPPLEX — MAIN STYLESHEET
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700;800&family=Inter:wght@300;400;500;600;700&display=swap');

/* ── CSS VARIABLES ── */
:root {
  --bg: #ffffff;
  --fg: #1e3a8a;
  --primary: #3b82f6;
  --primary-dark: #2563eb;
  --primary-light: rgba(59, 130, 246, 0.1);
  --secondary: #7c3aed;
  --secondary-light: rgba(124, 58, 237, 0.1);
  --muted-bg: #f9fafb;
  --muted-text: #6b7280;
  --border: #e5e7eb;
  --white: #ffffff;
  --dark: #1e3a8a;
  --destructive: #ef4444;
  --radius-sm: 0.5rem;
  --radius: 0.75rem;
  --radius-lg: 1rem;
  --radius-xl: 1.5rem;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow: 0 4px 16px rgba(0,0,0,0.08);
  --shadow-lg: 0 12px 40px rgba(0,0,0,0.12);
  --shadow-primary: 0 8px 25px rgba(59,130,246,0.25);
  --transition: all 0.3s ease;
}

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--fg);
  overflow-x: hidden;
  line-height: 1.6;
}
h1, h2, h3, h4, h5, h6 {
  font-family: 'Poppins', sans-serif;
  line-height: 1.2;
  color: var(--fg);
}
img { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; }
button { font-family: 'Inter', sans-serif; }
ul { list-style: none; }

/* ── LAYOUT ── */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1rem;
}
@media (min-width: 640px)  { .container { padding: 0 1.5rem; } }
@media (min-width: 1024px) { .container { padding: 0 2rem; } }

/* ── TYPOGRAPHY HELPERS ── */
.text-primary   { color: var(--primary); }
.text-secondary { color: var(--secondary); }
.text-muted     { color: var(--muted-text); }
.text-white     { color: #fff; }
.text-center    { text-align: center; }
.font-bold      { font-weight: 700; }

/* ── BACKGROUND HELPERS ── */
.bg-white  { background: var(--white); }
.bg-muted  { background: var(--muted-bg); }
.bg-dark   { background: var(--dark); }

/* ── BUTTONS ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 2rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  border: none;
  transition: var(--transition);
  white-space: nowrap;
  text-decoration: none;
}
.btn:active { transform: scale(0.98); }

.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: var(--shadow-primary);
}
.btn-primary:hover { background: var(--primary-dark); }

.btn-outline {
  background: var(--white);
  color: var(--secondary);
  border: 2px solid var(--secondary);
}
.btn-outline:hover { background: var(--secondary-light); }

.btn-ghost {
  background: var(--white);
  color: var(--fg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}
.btn-ghost:hover { border-color: var(--primary); color: var(--primary); }

.btn-lg {
  padding: 1rem 2rem;
  font-size: 1.125rem;
  border-radius: var(--radius);
}

/* ── HEADER ── */
#site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: var(--white);
  padding: 1.25rem 0;
  transition: var(--transition);
}
#site-header.scrolled {
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 12px rgba(0,0,0,0.08);
  padding: 0.75rem 0;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.logo {
  font-family: 'Poppins', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--fg);
  letter-spacing: -0.02em;
  flex-shrink: 0;
}
.logo .dot { color: var(--primary); }

/* Desktop Nav */
.nav-desktop {
  display: none;
  align-items: center;
  gap: 2rem;
}
@media (min-width: 768px) { .nav-desktop { display: flex; } }
.nav-desktop a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--muted-text);
  transition: color 0.2s;
  position: relative;
  padding-bottom: 0.25rem;
}
.nav-desktop a:hover { color: var(--fg); }
.nav-desktop a.active { color: var(--primary); }
.nav-desktop a.active::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0; right: 0;
  height: 2px;
  background: var(--primary);
  border-radius: 1px;
}

/* Header CTA */
.header-cta { display: none; }
@media (min-width: 768px) { .header-cta { display: block; } }
.header-cta a {
  padding: 0.625rem 1.5rem;
  background: var(--primary);
  color: #fff;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 500;
  transition: background 0.2s;
}
.header-cta a:hover { background: var(--primary-dark); }

/* Hamburger */
.menu-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  color: var(--fg);
}
@media (min-width: 768px) { .menu-btn { display: none; } }

/* Mobile Menu */
.mobile-menu {
  display: none;
  position: absolute;
  top: 100%; left: 0; right: 0;
  background: var(--white);
  border-top: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  animation: slideDown 0.2s ease;
}
.mobile-menu.open { display: block; }
@keyframes slideDown {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}
.mobile-menu nav {
  display: flex;
  flex-direction: column;
  padding: 1rem;
  gap: 0.25rem;
}
.mobile-menu nav a {
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--muted-text);
  transition: var(--transition);
}
.mobile-menu nav a:hover  { background: var(--muted-bg); color: var(--fg); }
.mobile-menu nav a.active { background: var(--primary-light); color: var(--primary); }
.mobile-cta {
  padding: 0.75rem 1rem 1.25rem;
}
.mobile-cta a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 0.75rem;
  background: var(--primary);
  color: #fff;
  border-radius: var(--radius-sm);
  font-weight: 500;
  font-size: 0.875rem;
}

/* ── HERO ── */
.hero {
  padding: 8rem 0 5rem;
  position: relative;
  overflow: hidden;
  text-align: center;
}
@media (min-width: 1024px) { .hero { padding: 12rem 0 8rem; } }
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-bg img {
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0.03;
}
.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, var(--white), rgba(255,255,255,0.95) 70%, var(--muted-bg));
}
.hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin: 0 auto;
}
.hero-badge {
  display: inline-block;
  padding: 0.3rem 0.9rem;
  border-radius: 9999px;
  background: var(--primary-light);
  color: var(--primary);
  font-size: 0.875rem;
  font-weight: 600;
  border: 1px solid rgba(59,130,246,0.2);
  margin-bottom: 1.5rem;
}
.hero h1 {
  font-size: clamp(2.5rem, 7vw, 4.5rem);
  font-weight: 800;
  color: var(--fg);
  line-height: 1.1;
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
}
.hero h1 em {
  font-style: normal;
  color: var(--primary);
}
.hero-desc {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: var(--muted-text);
  max-width: 640px;
  margin: 0 auto 2.5rem;
  line-height: 1.7;
}
.hero-btns {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
}
@media (min-width: 640px) {
  .hero-btns { flex-direction: row; justify-content: center; }
  .hero-btns .btn { min-width: 200px; }
}

/* ── SECTION BASE ── */
.section { padding: 5rem 0; }
@media (min-width: 768px) { .section { padding: 6rem 0; } }
.section-header {
  text-align: center;
  max-width: 768px;
  margin: 0 auto 4rem;
}
.section-header h2 {
  font-size: clamp(1.875rem, 4vw, 2.5rem);
  font-weight: 700;
  margin-bottom: 1rem;
}
.section-header p {
  font-size: 1.125rem;
  color: var(--muted-text);
  line-height: 1.7;
}
.section-header.light h2 { color: #fff; }
.section-header.light p  { color: #94a3b8; }

/* ── VALUE PROPOSITIONS ── */
.values-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
@media (min-width: 640px)  { .values-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .values-grid { grid-template-columns: repeat(4, 1fr); } }

.value-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2rem;
  border: 1px solid var(--border);
  text-align: center;
  transition: var(--transition);
}
.value-card:hover {
  box-shadow: var(--shadow-lg);
  border-color: rgba(124,58,237,0.3);
  transform: translateY(-2px);
}
.value-icon {
  width: 4rem; height: 4rem;
  margin: 0 auto 1.5rem;
  background: var(--secondary-light);
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
}
.value-icon svg { width: 2rem; height: 2rem; color: var(--secondary); }
.value-card h3 { font-size: 1.125rem; font-weight: 700; margin-bottom: 0.75rem; }
.value-card p  { font-size: 0.875rem; color: var(--muted-text); line-height: 1.6; }

/* ── SERVICE CARDS (Home Grid) ── */
.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-bottom: 3rem;
}
@media (min-width: 640px)  { .services-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .services-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1280px) { .services-grid { grid-template-columns: repeat(4, 1fr); } }

.service-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2rem;
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  transition: var(--transition);
  cursor: default;
}
.service-card:hover {
  border-color: rgba(59,130,246,0.3);
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}
.service-icon {
  width: 3.5rem; height: 3.5rem;
  border-radius: var(--radius);
  background: var(--primary-light);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.5rem;
  transition: var(--transition);
}
.service-icon svg { width: 1.75rem; height: 1.75rem; color: var(--primary); transition: color 0.3s; }
.service-card:hover .service-icon { background: var(--primary); }
.service-card:hover .service-icon svg { color: #fff; }
.service-card h3 { font-size: 1.125rem; font-weight: 600; margin-bottom: 0.75rem; }
.service-card p  { font-size: 0.875rem; color: var(--muted-text); line-height: 1.6; flex: 1; margin-bottom: 1.5rem; }
.service-card-footer { border-top: 1px solid var(--border); padding-top: 1.25rem; }
.service-value { font-size: 0.875rem; font-weight: 500; color: var(--secondary); margin-bottom: 0.75rem; }
.learn-more {
  display: inline-flex; align-items: center; gap: 0.375rem;
  font-size: 0.875rem; font-weight: 600; color: var(--fg);
  transition: color 0.2s;
}
.learn-more:hover { color: var(--primary); }
.learn-more svg { width: 1rem; height: 1rem; transition: transform 0.2s; }
.learn-more:hover svg { transform: translateX(3px); }

.view-all-wrap { text-align: center; }

/* ── INDUSTRY CARDS (Home) ── */
.industries-split {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 4rem;
}
@media (min-width: 768px) {
  .industries-split {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
  }
}
.industries-split-text h2 {
  font-size: clamp(1.875rem, 4vw, 2.5rem);
  font-weight: 700;
  margin-bottom: 1rem;
}
.industries-split-text p { font-size: 1.125rem; color: var(--muted-text); }
.link-arrow {
  display: inline-flex; align-items: center; gap: 0.25rem;
  color: var(--primary); font-weight: 600; white-space: nowrap;
  transition: var(--transition);
}
.link-arrow:hover { text-decoration: underline; }
.link-arrow svg { width: 1rem; height: 1rem; }

.industries-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
@media (min-width: 640px)  { .industries-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .industries-grid { grid-template-columns: repeat(3, 1fr); } }

.industry-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2rem;
  border: 1px solid var(--border);
  position: relative;
  overflow: hidden;
  transition: var(--transition);
}
.industry-card::before {
  content: '';
  position: absolute;
  top: -4rem; right: -4rem;
  width: 8rem; height: 8rem;
  background: var(--primary-light);
  border-radius: 9999px;
  transition: transform 0.5s ease;
}
.industry-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.industry-card:hover::before { transform: scale(2); }
.industry-icon {
  position: relative; z-index: 1;
  width: 3rem; height: 3rem;
  border-radius: var(--radius-sm);
  background: var(--secondary-light);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.5rem;
}
.industry-icon svg { width: 1.5rem; height: 1.5rem; color: var(--secondary); }
.industry-card h3 { position: relative; z-index: 1; font-size: 1.125rem; font-weight: 600; margin-bottom: 0.75rem; }
.industry-card p  { position: relative; z-index: 1; font-size: 0.875rem; color: var(--muted-text); line-height: 1.6; margin-bottom: 1.25rem; }
.industry-link {
  position: relative; z-index: 1;
  display: inline-flex; align-items: center; gap: 0.25rem;
  font-size: 0.875rem; font-weight: 500; color: var(--primary);
  transition: color 0.2s;
}
.industry-link:hover { color: var(--fg); }
.industry-link svg { width: 1rem; height: 1rem; transition: transform 0.2s; }
.industry-card:hover .industry-link svg { transform: translateX(3px); }

/* ── TECH STACK ── */
.tech-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
@media (min-width: 640px)  { .tech-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .tech-grid { grid-template-columns: repeat(3, 1fr); } }

.tech-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  backdrop-filter: blur(8px);
  transition: var(--transition);
}
.tech-card:hover { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.2); }
.tech-card h3 { font-size: 1rem; font-weight: 600; color: #fff; margin-bottom: 1rem; }
.tech-tags { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.tech-tag {
  padding: 0.25rem 0.75rem;
  background: rgba(255,255,255,0.1);
  color: #cbd5e1;
  font-size: 0.8125rem;
  border-radius: 0.375rem;
}

/* ── CASE STUDY CARDS (Home) ── */
.case-studies-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}
@media (min-width: 1024px) { .case-studies-grid { grid-template-columns: repeat(2, 1fr); } }

.case-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  display: flex; flex-direction: column;
  transition: var(--transition);
}
.case-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); }
.case-img {
  height: 15rem;
  overflow: hidden;
  position: relative;
}
.case-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.7s ease;
}
.case-card:hover .case-img img { transform: scale(1.06); }
.case-badge {
  position: absolute; top: 1rem; left: 1rem;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(4px);
  padding: 0.2rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.75rem; font-weight: 600; color: var(--fg);
}
.case-body { padding: 2rem; flex: 1; display: flex; flex-direction: column; }
.case-body h3 {
  font-size: 1.375rem; font-weight: 700;
  margin-bottom: 1.5rem;
  transition: color 0.2s;
}
.case-card:hover .case-body h3 { color: var(--primary); }
.case-metrics { flex: 1; display: flex; flex-direction: column; gap: 0.75rem; margin-bottom: 2rem; }
.case-metric { display: flex; align-items: center; gap: 0.75rem; }
.case-metric-icon {
  width: 2rem; height: 2rem;
  border-radius: 9999px;
  background: var(--secondary-light);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.case-metric-icon svg { width: 1rem; height: 1rem; color: var(--secondary); }
.case-metric span { font-size: 0.875rem; font-weight: 500; }
.case-cta {
  display: flex; align-items: center; justify-content: center; gap: 0.5rem;
  padding: 0.75rem 1rem;
  background: var(--muted-bg);
  color: var(--fg);
  font-weight: 500;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}
.case-card:hover .case-cta { background: var(--primary); color: #fff; }
.case-cta svg { width: 1rem; height: 1rem; }

/* ── PROCESS ── */
.process-track {
  position: relative;
}
.process-line {
  display: none;
  position: absolute;
  top: 3rem; left: 0; right: 0;
  height: 1px;
  background: var(--border);
  z-index: 0;
}
@media (min-width: 768px) { .process-line { display: block; } }

.process-steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  position: relative;
  z-index: 1;
}
@media (min-width: 768px) { .process-steps { grid-template-columns: repeat(5, 1fr); } }

.process-step {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}
.process-step:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.process-num {
  width: 3rem; height: 3rem;
  background: var(--primary);
  color: #fff;
  border-radius: 9999px;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 1rem;
  margin: 0 auto 1rem;
  box-shadow: 0 4px 14px rgba(59,130,246,0.3);
}
@media (min-width: 768px) { .process-num { margin: 0 0 1rem; } }
.process-step h3 {
  font-size: 1rem; font-weight: 700;
  margin-bottom: 0.5rem;
  text-align: center;
}
.process-step p {
  font-size: 0.8125rem; color: var(--muted-text); line-height: 1.5;
  text-align: center;
}
@media (min-width: 768px) {
  .process-step h3, .process-step p { text-align: left; }
}

/* ── TESTIMONIALS ── */
.testimonials-masonry {
  columns: 1;
  gap: 1.5rem;
}
@media (min-width: 640px)  { .testimonials-masonry { columns: 2; } }
@media (min-width: 1024px) { .testimonials-masonry { columns: 3; } }

.testimonial-wrap { break-inside: avoid; margin-bottom: 1.5rem; }
.testimonial-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2rem;
  border: 1px solid var(--border);
  transition: var(--transition);
}
.testimonial-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.stars { display: flex; gap: 0.25rem; margin-bottom: 1.25rem; }
.stars svg { width: 1rem; height: 1rem; fill: #facc15; color: #facc15; }
.quote-icon { margin-bottom: 1rem; opacity: 0.2; }
.quote-icon svg { width: 2rem; height: 2rem; color: var(--primary); }
.testimonial-quote {
  font-size: 0.9375rem; color: var(--fg);
  line-height: 1.7; margin-bottom: 1.5rem;
}
.testimonial-author { display: flex; align-items: center; gap: 0.875rem; }
.author-avatar {
  width: 2.75rem; height: 2.75rem;
  border-radius: 9999px;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 0.875rem;
  flex-shrink: 0;
}
.avatar-0 { background: #dbeafe; color: #1d4ed8; }
.avatar-1 { background: #ede9fe; color: #6d28d9; }
.avatar-2 { background: #e0e7ff; color: #4338ca; }
.avatar-3 { background: #e0f2fe; color: #0369a1; }
.avatar-4 { background: #f3e8ff; color: #7e22ce; }
.author-name { font-weight: 600; font-size: 0.875rem; }
.author-role { font-size: 0.75rem; color: var(--muted-text); }

/* ── BLOG CARDS ── */
.blog-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}
@media (min-width: 768px) { .blog-grid { grid-template-columns: repeat(3, 1fr); } }

.blog-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  display: flex; flex-direction: column;
  transition: var(--transition);
}
.blog-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); }
.blog-img { height: 12rem; overflow: hidden; }
.blog-img img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.5s ease;
}
.blog-card:hover .blog-img img { transform: scale(1.06); }
.blog-body { padding: 1.5rem; flex: 1; display: flex; flex-direction: column; }
.blog-date {
  display: flex; align-items: center; gap: 0.375rem;
  font-size: 0.75rem; color: var(--muted-text); margin-bottom: 0.75rem;
}
.blog-date svg { width: 0.875rem; height: 0.875rem; }
.blog-body h3 {
  font-size: 1.125rem; font-weight: 700;
  margin-bottom: 0.75rem; line-height: 1.4;
  transition: color 0.2s;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.blog-card:hover .blog-body h3 { color: var(--primary); }
.blog-body p {
  font-size: 0.875rem; color: var(--muted-text); line-height: 1.6;
  flex: 1; margin-bottom: 1.25rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.blog-link {
  display: inline-flex; align-items: center; gap: 0.25rem;
  font-size: 0.875rem; font-weight: 600; color: var(--primary);
}
.blog-link svg { width: 1rem; height: 1rem; transition: transform 0.2s; }
.blog-card:hover .blog-link svg { transform: translateX(3px); }

/* ── CTA BANNER ── */
.cta-banner {
  background: var(--dark);
  border-radius: var(--radius-xl);
  padding: 3.5rem 2rem;
  text-align: center;
  color: #fff;
}
@media (min-width: 768px) { .cta-banner { padding: 4rem 3rem; } }
.cta-banner h2 { font-size: clamp(1.5rem, 3vw, 1.875rem); font-weight: 700; margin-bottom: 1rem; color: #fff; }
.cta-banner p { color: #cbd5e1; font-size: 1.125rem; margin-bottom: 2rem; max-width: 640px; margin-left: auto; margin-right: auto; }

/* ── FOOTER ── */
#site-footer {
  background: var(--dark);
  color: #fff;
  padding: 5rem 0 2rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  margin-bottom: 4rem;
}
@media (min-width: 640px)  { .footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr 1.5fr; } }

.footer-brand .logo { color: #fff; display: inline-block; margin-bottom: 1rem; }
.footer-brand p { color: #cbd5e1; font-size: 0.875rem; line-height: 1.6; max-width: 18rem; margin-bottom: 1.5rem; }
.social-links { display: flex; gap: 0.75rem; }
.social-link {
  width: 2.5rem; height: 2.5rem;
  border-radius: 9999px;
  background: rgba(255,255,255,0.1);
  display: flex; align-items: center; justify-content: center;
  color: #fff; transition: background 0.2s;
}
.social-link:hover { background: var(--primary); }
.social-link svg { width: 1rem; height: 1rem; }

.footer-col h3 { font-weight: 600; font-size: 1rem; margin-bottom: 1.5rem; color: #fff; }
.footer-col ul li { margin-bottom: 0.875rem; }
.footer-col ul li a { color: #cbd5e1; font-size: 0.875rem; transition: color 0.2s; }
.footer-col ul li a:hover { color: #fff; }

.footer-contact li { display: flex; align-items: flex-start; gap: 0.75rem; margin-bottom: 1rem; }
.footer-contact li svg { width: 1rem; height: 1rem; color: var(--primary); flex-shrink: 0; margin-top: 2px; }
.footer-contact li a,
.footer-contact li span { color: #cbd5e1; font-size: 0.875rem; transition: color 0.2s; line-height: 1.5; }
.footer-contact li a:hover { color: #fff; }

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
}
@media (min-width: 640px) {
  .footer-bottom { flex-direction: row; justify-content: space-between; }
}
.footer-bottom p { color: #9ca3af; font-size: 0.875rem; }
.footer-legal { display: flex; gap: 1.5rem; }
.footer-legal a { color: #9ca3af; font-size: 0.875rem; transition: color 0.2s; }
.footer-legal a:hover { color: #fff; }

/* ── BREADCRUMB ── */
.breadcrumb {
  display: flex; align-items: center; gap: 0.5rem;
  font-size: 0.875rem; color: var(--muted-text);
  margin-bottom: 2rem;
}
.breadcrumb a { color: var(--muted-text); transition: color 0.2s; }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb svg { width: 0.875rem; height: 0.875rem; }
.breadcrumb span { font-weight: 500; color: var(--fg); }

/* ── PAGE INTRO ── */
.page-intro { max-width: 768px; margin-bottom: 4rem; }
.page-intro h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700; margin-bottom: 1.25rem;
}
.page-intro p {
  font-size: 1.25rem; color: var(--muted-text); line-height: 1.7;
}
.page-top { padding-top: 8rem; padding-bottom: 6rem; }

/* ── SERVICES PAGE ── */
.services-list { display: flex; flex-direction: column; gap: 2rem; }
.service-row {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}
.service-row:hover { box-shadow: var(--shadow); transform: translateY(-1px); }
@media (min-width: 768px) { .service-row { flex-direction: row; align-items: flex-start; gap: 2rem; } }
.service-row-icon {
  width: 4rem; height: 4rem;
  border-radius: var(--radius);
  background: var(--primary-light);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.service-row-icon svg { width: 2rem; height: 2rem; color: var(--primary); }
.service-row-body { flex: 1; }
.service-row-body h2 { font-size: 1.5rem; font-weight: 700; margin-bottom: 0.875rem; }
.service-row-body > p { font-size: 1.0625rem; color: var(--muted-text); line-height: 1.7; margin-bottom: 1.5rem; }
.service-checks {
  display: grid; grid-template-columns: 1fr;
  gap: 0.75rem; margin-bottom: 1.5rem;
}
@media (min-width: 640px) { .service-checks { grid-template-columns: repeat(2, 1fr); } }
.check-item { display: flex; align-items: center; gap: 0.625rem; }
.check-item svg { width: 1.25rem; height: 1.25rem; color: var(--secondary); flex-shrink: 0; }
.check-item span { font-weight: 500; font-size: 0.9375rem; }
.discuss-link {
  display: inline-flex; align-items: center; gap: 0.5rem;
  color: var(--primary); font-weight: 600;
  transition: color 0.2s;
}
.discuss-link:hover { color: var(--primary-dark); }
.discuss-link svg { width: 1rem; height: 1rem; transition: transform 0.2s; }
.discuss-link:hover svg { transform: translateX(3px); }

/* ── CASE STUDIES PAGE ── */
.case-studies-list { display: flex; flex-direction: column; gap: 6rem; }
.case-study-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
}
@media (min-width: 1024px) { .case-study-row { grid-template-columns: repeat(2, 1fr); } }
.case-study-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.case-study-image img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.case-tag {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background: var(--secondary-light);
  color: var(--secondary);
  font-size: 0.875rem; font-weight: 600;
  border-radius: 9999px;
  margin-bottom: 1.25rem;
}
.case-study-content h2 { font-size: clamp(1.5rem, 3vw, 1.875rem); font-weight: 700; margin-bottom: 1.5rem; }
.case-section { margin-bottom: 1.25rem; }
.case-section h3 { font-size: 1.0625rem; font-weight: 600; margin-bottom: 0.5rem; }
.case-section p  { color: var(--muted-text); line-height: 1.7; }
.metrics-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem; margin-bottom: 1.5rem;
}
.metric-box {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.875rem;
}
.metric-box svg { width: 1.125rem; height: 1.125rem; color: var(--primary); margin-bottom: 0.5rem; }
.metric-box p { font-size: 0.8125rem; font-weight: 600; }
.case-quote {
  background: var(--muted-bg);
  border-radius: var(--radius);
  padding: 1.5rem;
  border-left: 4px solid var(--secondary);
}
.case-quote svg { width: 1.5rem; height: 1.5rem; color: var(--secondary); opacity: 0.3; margin-bottom: 0.75rem; }
.case-quote blockquote { font-style: italic; color: var(--fg); line-height: 1.7; margin-bottom: 1rem; }
.case-quote cite { display: block; font-style: normal; }
.case-quote .cite-name { font-weight: 600; font-size: 0.875rem; }
.case-quote .cite-role { font-size: 0.75rem; color: var(--muted-text); }

/* ── INDUSTRIES PAGE ── */
.industries-list { display: flex; flex-direction: column; gap: 3rem; }
.industry-row {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: 2.5rem;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}
@media (min-width: 768px) { .industry-row { padding: 3rem; } }
.industry-row-inner {
  display: flex; flex-direction: column; gap: 2.5rem;
}
@media (min-width: 768px) { .industry-row-inner { flex-direction: row; gap: 3rem; } }
.industry-row-left { flex-shrink: 0; }
@media (min-width: 768px) { .industry-row-left { width: 33%; } }
.industry-row-icon {
  width: 4rem; height: 4rem;
  border-radius: var(--radius);
  background: var(--secondary-light);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.5rem;
}
.industry-row-icon svg { width: 2rem; height: 2rem; color: var(--secondary); }
.industry-row-left h2 { font-size: 1.875rem; font-weight: 700; margin-bottom: 1rem; }
.industry-row-left p  { color: var(--muted-text); line-height: 1.7; margin-bottom: 1.5rem; }
.industry-row-right {
  flex: 1; display: grid; grid-template-columns: 1fr; gap: 1.5rem;
}
@media (min-width: 640px) { .industry-row-right { grid-template-columns: repeat(2, 1fr); } }
.challenge-box, .solution-box {
  border-radius: var(--radius);
  padding: 1.5rem;
}
.challenge-box { background: var(--muted-bg); }
.solution-box  { background: var(--primary-light); border: 1px solid rgba(59,130,246,0.15); }
.challenge-box h3, .solution-box h3 { font-size: 1rem; font-weight: 600; margin-bottom: 0.75rem; }
.solution-box h3  { color: var(--primary); }
.challenge-box p, .solution-box p { font-size: 0.875rem; color: var(--muted-text); line-height: 1.6; }

/* ── ABOUT PAGE ── */
.about-hero-grid {
  display: grid; grid-template-columns: 1fr;
  gap: 3rem; align-items: center;
  margin-bottom: 6rem;
}
@media (min-width: 1024px) { .about-hero-grid { grid-template-columns: repeat(2, 1fr); gap: 5rem; } }
.about-hero-grid h1 { font-size: clamp(2rem, 4vw, 3rem); font-weight: 700; margin-bottom: 1.5rem; }
.about-hero-grid p  { font-size: 1.0625rem; color: var(--muted-text); line-height: 1.75; margin-bottom: 1.25rem; }
.about-img {
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.about-img img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }

.core-values-grid {
  display: grid; grid-template-columns: 1fr;
  gap: 1.5rem; margin-bottom: 6rem;
}
@media (min-width: 640px)  { .core-values-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .core-values-grid { grid-template-columns: repeat(4, 1fr); } }
.core-value-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2rem;
  border: 1px solid var(--border);
  text-align: center;
  transition: var(--transition);
}
.core-value-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.core-value-icon {
  width: 3.5rem; height: 3.5rem;
  margin: 0 auto 1.5rem;
  background: var(--primary-light);
  border-radius: 9999px;
  display: flex; align-items: center; justify-content: center;
}
.core-value-icon svg { width: 1.75rem; height: 1.75rem; color: var(--primary); }
.core-value-card h3 { font-size: 1.25rem; font-weight: 700; margin-bottom: 0.75rem; }
.core-value-card p  { font-size: 0.875rem; color: var(--muted-text); line-height: 1.6; }

.team-grid {
  display: grid; grid-template-columns: 1fr;
  gap: 2rem; margin-bottom: 6rem;
}
@media (min-width: 640px)  { .team-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .team-grid { grid-template-columns: repeat(4, 1fr); } }
.team-member { cursor: default; }
.team-photo {
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 1rem;
  aspect-ratio: 1;
}
.team-photo img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.5s ease;
}
.team-member:hover .team-photo img { transform: scale(1.06); }
.team-member h3 { font-size: 1.125rem; font-weight: 700; margin-bottom: 0.25rem; }
.team-member .team-role { color: var(--primary); font-weight: 500; font-size: 0.875rem; margin-bottom: 0.5rem; }
.team-member p  { font-size: 0.875rem; color: var(--muted-text); }

/* ── CONTACT PAGE ── */
.contact-grid {
  display: grid; grid-template-columns: 1fr;
  gap: 4rem;
}
@media (min-width: 1024px) { .contact-grid { grid-template-columns: 2fr 3fr; } }
.contact-info h1 { font-size: clamp(1.75rem, 4vw, 3rem); font-weight: 700; margin-bottom: 1.25rem; }
.contact-info > p { font-size: 1.0625rem; color: var(--muted-text); line-height: 1.7; margin-bottom: 3rem; }
.contact-item { display: flex; align-items: flex-start; gap: 1rem; margin-bottom: 1.5rem; }
.contact-item-icon {
  width: 3rem; height: 3rem;
  background: var(--primary-light);
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.contact-item-icon svg { width: 1.5rem; height: 1.5rem; color: var(--primary); }
.contact-item h3 { font-weight: 600; margin-bottom: 0.2rem; }
.contact-item a, .contact-item p { color: var(--muted-text); font-size: 0.9375rem; transition: color 0.2s; }
.contact-item a:hover { color: var(--primary); }
.contact-socials { margin-top: 2.5rem; }
.contact-socials h3 { font-weight: 600; margin-bottom: 1rem; }
.contact-social-links { display: flex; gap: 0.75rem; }
.contact-social-link {
  width: 2.5rem; height: 2.5rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 9999px;
  display: flex; align-items: center; justify-content: center;
  color: var(--muted-text); transition: var(--transition);
}
.contact-social-link:hover { color: var(--primary); border-color: var(--primary); }
.contact-social-link svg { width: 1rem; height: 1rem; }

/* Contact Form */
.contact-form-card {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: 2.5rem;
  border: 1px solid var(--border);
  box-shadow: 0 20px 60px rgba(0,0,0,0.06);
}
@media (min-width: 768px) { .contact-form-card { padding: 3rem; } }
.form-row {
  display: grid; grid-template-columns: 1fr;
  gap: 1.25rem; margin-bottom: 1.25rem;
}
@media (min-width: 640px) { .form-row { grid-template-columns: repeat(2, 1fr); } }
.form-group { margin-bottom: 1.25rem; }
.form-group label {
  display: block; font-size: 0.875rem; font-weight: 500;
  margin-bottom: 0.5rem; color: var(--fg);
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(249,250,251,0.6);
  color: var(--fg);
  font-size: 0.9375rem;
  font-family: 'Inter', sans-serif;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(59,130,246,0.12);
  background: var(--white);
}
.form-group input.has-error,
.form-group textarea.has-error {
  border-color: var(--destructive);
}
.form-group textarea { resize: none; }
.form-error { color: var(--destructive); font-size: 0.75rem; margin-top: 0.25rem; display: none; }
.form-error.show { display: block; }
.submit-btn {
  width: 100%; padding: 1rem;
  background: var(--primary); color: #fff;
  border: none; border-radius: var(--radius);
  font-size: 1.0625rem; font-weight: 600;
  cursor: pointer; font-family: 'Inter', sans-serif;
  display: flex; align-items: center; justify-content: center; gap: 0.5rem;
  transition: var(--transition);
}
.submit-btn:hover  { background: var(--primary-dark); }
.submit-btn:active { transform: scale(0.98); }
.submit-btn:disabled { opacity: 0.7; cursor: not-allowed; }
.submit-btn svg { width: 1.25rem; height: 1.25rem; }
.form-success-msg {
  margin-top: 1rem; padding: 1rem;
  background: #f0fdf4; color: #15803d;
  border-radius: var(--radius); font-size: 0.875rem; font-weight: 500;
  text-align: center; display: none;
}
.form-success-msg.show { display: block; }

/* ── ANIMATIONS ── */
.fade-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}
.fade-up-delay-1 { transition-delay: 0.05s; }
.fade-up-delay-2 { transition-delay: 0.10s; }
.fade-up-delay-3 { transition-delay: 0.15s; }
.fade-up-delay-4 { transition-delay: 0.20s; }
.fade-up-delay-5 { transition-delay: 0.25s; }
.fade-up-delay-6 { transition-delay: 0.30s; }
.fade-up-delay-7 { transition-delay: 0.35s; }
.fade-up-delay-8 { transition-delay: 0.40s; }

/* ── UTILITY SPACERS ── */
.mt-6  { margin-top: 1.5rem; }
.mt-16 { margin-top: 4rem; }
.mt-24 { margin-top: 6rem; }
.mb-16 { margin-bottom: 4rem; }
