/* ============================================
   QY Innovation — Main Stylesheet 
   ============================================ */

/* --- CSS Custom Properties --- */
:root {
  /* Colors */
  --color-primary: #0f172a;
  --color-primary-light: #1e293b;
  --color-accent: #2563eb;
  --color-accent-hover: #1d4ed8;
  --color-accent-light: #dbeafe;
  --color-text: #334155;
  --color-text-light: #64748b;
  --color-text-inverse: #ffffff;
  --color-heading: #0f172a;
  --color-bg: #ffffff;
  --color-bg-alt: #f8fafc;
  --color-bg-dark: #0f172a;
  --color-border: #e2e8f0;
  --color-success: #10b981;

  /* Typography */
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-heading: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

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

  /* Layout */
  --max-width: 1200px;
  --nav-height: 72px;

  /* Effects */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.07), 0 2px 4px -2px rgba(0,0,0,0.05);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.08), 0 4px 6px -4px rgba(0,0,0,0.04);
  --shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.08), 0 8px 10px -6px rgba(0,0,0,0.04);
  --transition: 0.3s ease;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

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

img {
  max-width: 100%;
  height: auto;
  display: block;
}

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

a:hover {
  color: var(--color-accent-hover);
}

ul, ol {
  list-style: none;
}

button, input, textarea, select {
  font-family: inherit;
  font-size: inherit;
}

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--color-heading);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.25rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.75rem, 3.5vw, 2.5rem); }
h3 { font-size: clamp(1.25rem, 2.5vw, 1.5rem); }
h4 { font-size: 1.125rem; }

p {
  margin-bottom: var(--space-md);
  color: var(--color-text);
}

.text-light { color: var(--color-text-light); }
.text-accent { color: var(--color-accent); }
.text-center { text-align: center; }

/* --- Layout Utilities --- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-xl);
}

.section {
  padding: var(--space-5xl) 0;
}

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

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

.section-dark h2,
.section-dark h3,
.section-dark h4 {
  color: var(--color-text-inverse);
}

.section-dark p {
  color: #94a3b8;
}

.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto var(--space-3xl);
}

.section-header .label {
  display: inline-block;
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-accent);
  margin-bottom: var(--space-sm);
}

.section-header h2 {
  margin-bottom: var(--space-md);
}

.section-header p {
  color: var(--color-text-light);
  font-size: 1.125rem;
}

.grid {
  display: grid;
  gap: var(--space-xl);
}

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

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: 0.75rem 1.75rem;
  font-size: 0.9375rem;
  font-weight: 600;
  border: 2px solid transparent;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  line-height: 1.5;
  white-space: nowrap;
}

.btn-primary {
  background: var(--color-accent);
  color: var(--color-text-inverse);
  border-color: var(--color-accent);
}

.btn-primary:hover {
  background: var(--color-accent-hover);
  border-color: var(--color-accent-hover);
  color: var(--color-text-inverse);
  transform: translateY(-1px);
  box-shadow: var(--shadow-lg);
}

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

.btn-outline:hover {
  background: var(--color-accent);
  color: var(--color-text-inverse);
  transform: translateY(-1px);
}

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

.btn-white:hover {
  background: transparent;
  color: var(--color-text-inverse);
  border-color: var(--color-text-inverse);
}

.btn-lg {
  padding: 1rem 2.25rem;
  font-size: 1rem;
}

.btn-sm {
  padding: 0.5rem 1.25rem;
  font-size: 0.875rem;
}

.btn-group {
  display: flex;
  gap: var(--space-md);
  flex-wrap: wrap;
}

/* --- Navigation --- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--nav-height);
  z-index: 1000;
  transition: all var(--transition);
}

.navbar.scrolled {
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow-sm);
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-text-inverse);
  text-decoration: none;
  transition: color var(--transition);
}

.nav-logo .logo-icon {
  width: 36px;
  height: 36px;
}

.navbar.scrolled .nav-logo {
  color: var(--color-primary);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-2xl);
}

.nav-links a {
  font-size: 0.9375rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  transition: color var(--transition);
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-accent);
  transition: width var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
  color: #ffffff;
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.navbar.scrolled .nav-links a {
  color: var(--color-text);
}

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

.nav-cta {
  color: var(--color-text-inverse) !important;
  background: var(--color-accent);
  padding: 0.5rem 1.25rem;
  border-radius: var(--radius-md);
}

.nav-cta::after { display: none !important; }

.nav-cta:hover {
  background: var(--color-accent-hover) !important;
  color: var(--color-text-inverse) !important;
}

.navbar.scrolled .nav-cta {
  color: var(--color-text-inverse) !important;
}

/* Mobile Menu Toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--color-text-inverse);
  transition: all var(--transition);
  display: block;
}

.navbar.scrolled .nav-toggle span {
  background: var(--color-primary);
}

.nav-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* --- Hero Section --- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 50%, #0f172a 100%);
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(37, 99, 235, 0.15) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 20%, rgba(37, 99, 235, 0.1) 0%, transparent 50%);
  pointer-events: none;
}

.hero-grid {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}

.hero .container {
  position: relative;
  z-index: 2;
}

.hero-content {
  max-width: 720px;
}

.hero-label {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  background: rgba(37, 99, 235, 0.15);
  border: 1px solid rgba(37, 99, 235, 0.3);
  color: #93c5fd;
  padding: 0.375rem 1rem;
  border-radius: 100px;
  font-size: 0.8125rem;
  font-weight: 500;
  margin-bottom: var(--space-xl);
  letter-spacing: 0.02em;
}

.hero-label .dot {
  width: 6px;
  height: 6px;
  background: var(--color-accent);
  border-radius: 50%;
}

.hero h1 {
  color: var(--color-text-inverse);
  margin-bottom: var(--space-lg);
  font-weight: 800;
}

.hero h1 .highlight {
  background: linear-gradient(135deg, #60a5fa, #3b82f6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero p {
  font-size: 1.25rem;
  color: #94a3b8;
  margin-bottom: var(--space-2xl);
  line-height: 1.8;
  max-width: 600px;
}

.hero-stats {
  display: flex;
  gap: var(--space-3xl);
  margin-top: var(--space-3xl);
  padding-top: var(--space-2xl);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.hero-stat .number {
  font-size: 2rem;
  font-weight: 800;
  color: var(--color-text-inverse);
  line-height: 1;
  margin-bottom: var(--space-xs);
}

.hero-stat .label {
  font-size: 0.875rem;
  color: #64748b;
  font-weight: 500;
}

/* Page Hero (for inner pages) */
.page-hero {
  position: relative;
  padding: calc(var(--nav-height) + var(--space-4xl)) 0 var(--space-4xl);
  background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 100%);
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background:
    radial-gradient(ellipse at 30% 50%, rgba(37, 99, 235, 0.12) 0%, transparent 50%);
  pointer-events: none;
}

.page-hero .container {
  position: relative;
  z-index: 2;
}

.page-hero .breadcrumb {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-lg);
  font-size: 0.875rem;
}

.page-hero .breadcrumb a {
  color: #94a3b8;
}

.page-hero .breadcrumb a:hover {
  color: #ffffff;
}

.page-hero .breadcrumb .separator {
  color: #475569;
}

.page-hero .breadcrumb .current {
  color: #e2e8f0;
}

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

.page-hero p {
  font-size: 1.125rem;
  color: #94a3b8;
  max-width: 600px;
}

/* --- Service Cards --- */
.service-card {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-2xl);
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--color-accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition);
}

.service-card:hover {
  border-color: rgba(37, 99, 235, 0.2);
  box-shadow: var(--shadow-xl);
  transform: translateY(-4px);
}

.service-card:hover::before {
  transform: scaleX(1);
}

.service-card-thumb {
  border-radius: var(--radius-md);
  overflow: hidden;
  margin: calc(-1 * var(--space-2xl)) calc(-1 * var(--space-2xl)) var(--space-lg);
  background: var(--color-accent-light);
}

.service-card-thumb img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.4s ease;
}

.service-card:hover .service-card-thumb img {
  transform: scale(1.03);
}

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

.service-card p {
  color: var(--color-text-light);
  font-size: 0.9375rem;
  margin-bottom: var(--space-lg);
}

.service-card .card-link {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-accent);
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
}

.service-card .card-link svg {
  width: 16px;
  height: 16px;
  transition: transform var(--transition);
}

.service-card:hover .card-link svg {
  transform: translateX(4px);
}

/* Service Detail (Services Page) */
.service-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4xl);
  align-items: center;
  padding: var(--space-3xl) 0;
}

.service-detail:not(:last-child) {
  border-bottom: 1px solid var(--color-border);
}

.service-detail.reverse {
  direction: rtl;
}

.service-detail.reverse > * {
  direction: ltr;
}

.service-detail-content .label {
  display: inline-block;
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-accent);
  margin-bottom: var(--space-sm);
}

.service-detail-content h3 {
  font-size: 1.75rem;
  margin-bottom: var(--space-md);
}

.service-detail-content p {
  color: var(--color-text-light);
  margin-bottom: var(--space-lg);
}

.service-detail-content ul {
  margin-bottom: var(--space-xl);
}

.service-detail-content ul li {
  padding: var(--space-sm) 0;
  padding-left: var(--space-xl);
  position: relative;
  color: var(--color-text);
  font-size: 0.9375rem;
}

.service-detail-content ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  background: var(--color-accent-light);
  border-radius: 50%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%232563eb' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 11px;
}

.service-detail-visual {
  border-radius: var(--radius-xl);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 320px;
  overflow: hidden;
}

.service-detail-visual img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-xl);
  transition: transform 0.4s ease;
}

.service-detail:hover .service-detail-visual img {
  transform: scale(1.02);
}

/* --- About / Values --- */
.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-xl);
}

.value-card {
  text-align: center;
  padding: var(--space-2xl);
}

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

.value-icon svg {
  width: 28px;
  height: 28px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.5;
}

.value-card h4 {
  margin-bottom: var(--space-sm);
}

.value-card p {
  color: var(--color-text-light);
  font-size: 0.9375rem;
}

/* Timeline */
.timeline {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--color-border);
}

.timeline-item {
  padding-left: var(--space-2xl);
  padding-bottom: var(--space-2xl);
  position: relative;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -5px;
  top: 4px;
  width: 12px;
  height: 12px;
  background: var(--color-accent);
  border-radius: 50%;
  border: 2px solid var(--color-bg);
}

.timeline-item h4 {
  margin-bottom: var(--space-xs);
}

.timeline-item .year {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--color-accent);
  margin-bottom: var(--space-xs);
}

.timeline-item p {
  color: var(--color-text-light);
  font-size: 0.9375rem;
}

/* --- Industries --- */
.industry-card {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-2xl);
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

.industry-card::before {
  content: '';
  position: absolute;
  inset: 0 0 auto;
  height: 120px;
  background: linear-gradient(180deg, rgba(37, 99, 235, 0.08), rgba(37, 99, 235, 0));
  pointer-events: none;
}

.industry-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
  border-color: rgba(37, 99, 235, 0.16);
}

.industry-card .industry-icon {
  width: 78px;
  height: 78px;
  margin-bottom: var(--space-xl);
  border-radius: 22px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--industry-accent, var(--color-accent));
  background:
    radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.3) 38%, transparent 39%),
    linear-gradient(145deg, var(--industry-surface, rgba(37, 99, 235, 0.2)), rgba(255, 255, 255, 0.85));
  border: 1px solid rgba(148, 163, 184, 0.2);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 18px 28px rgba(15, 23, 42, 0.08);
}

.industry-card .industry-icon::before {
  content: '';
  position: absolute;
  inset: -10px;
  border-radius: 28px;
  background: radial-gradient(circle, var(--industry-glow, rgba(37, 99, 235, 0.18)), transparent 72%);
  z-index: 0;
}

.industry-card .industry-icon::after {
  content: '';
  position: absolute;
  inset: 8px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.65);
  opacity: 0.8;
}

.industry-card .industry-icon svg {
  width: 34px;
  height: 34px;
  position: relative;
  z-index: 1;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 4px 10px rgba(255, 255, 255, 0.25));
}

.industry-icon--pharma {
  --industry-accent: #0f766e;
  --industry-surface: rgba(20, 184, 166, 0.24);
  --industry-glow: rgba(45, 212, 191, 0.28);
}

.industry-icon--biotech {
  --industry-accent: #2563eb;
  --industry-surface: rgba(96, 165, 250, 0.24);
  --industry-glow: rgba(96, 165, 250, 0.3);
}

.industry-icon--devices {
  --industry-accent: #7c3aed;
  --industry-surface: rgba(167, 139, 250, 0.24);
  --industry-glow: rgba(196, 181, 253, 0.32);
}

.industry-icon--therapy {
  --industry-accent: #ea580c;
  --industry-surface: rgba(251, 146, 60, 0.24);
  --industry-glow: rgba(253, 186, 116, 0.32);
}

.industry-card h3 {
  margin-bottom: var(--space-md);
}

.industry-card p {
  color: var(--color-text-light);
  font-size: 0.9375rem;
}

.industry-highlight {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3xl);
  align-items: center;
}

.industry-visual {
  background: linear-gradient(135deg, #0f172a, #1e3a5f);
  border-radius: var(--radius-xl);
  padding: var(--space-3xl);
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.industry-visual-item {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  color: #e2e8f0;
  font-size: 0.9375rem;
}

.industry-visual-item .check {
  width: 24px;
  height: 24px;
  background: rgba(37, 99, 235, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #60a5fa;
}

.industry-visual-item .check svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
}

/* --- CTA Section --- */
.cta-section {
  background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 100%);
  padding: var(--space-4xl) 0;
  text-align: center;
}

.cta-section h2 {
  color: var(--color-text-inverse);
  margin-bottom: var(--space-md);
}

.cta-section p {
  color: #94a3b8;
  font-size: 1.125rem;
  max-width: 560px;
  margin: 0 auto var(--space-2xl);
}

/* --- Contact Form --- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: var(--space-3xl);
}

.contact-info h3 {
  margin-bottom: var(--space-md);
}

.contact-info > p {
  color: var(--color-text-light);
  margin-bottom: var(--space-2xl);
}

.contact-item {
  display: flex;
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
}

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

.contact-item-icon svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.5;
}

.contact-item-text h4 {
  font-size: 0.9375rem;
  margin-bottom: 2px;
}

.contact-item-text p {
  font-size: 0.875rem;
  color: var(--color-text-light);
  margin-bottom: 0;
}

.contact-form {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-2xl);
}

.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.875rem;
  font-weight: 600;
  color: var(--color-heading);
  margin-bottom: var(--space-sm);
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-bg);
  color: var(--color-text);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

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

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: #94a3b8;
}

/* --- Footer --- */
.footer {
  background: var(--color-bg-dark);
  color: #94a3b8;
  padding: var(--space-4xl) 0 0;
}

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

.footer-brand p {
  color: #64748b;
  font-size: 0.9375rem;
  margin-bottom: var(--space-lg);
}

.footer-social {
  display: flex;
  gap: var(--space-md);
}

.footer-social a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #94a3b8;
  transition: all var(--transition);
}

.footer-social a:hover {
  background: var(--color-accent);
  color: var(--color-text-inverse);
}

.footer-social a svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.5;
}

.footer-col h4 {
  color: var(--color-text-inverse);
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: var(--space-lg);
}

.footer-col a {
  display: block;
  color: #64748b;
  font-size: 0.9375rem;
  padding: var(--space-xs) 0;
  transition: color var(--transition);
}

.footer-col a:hover {
  color: var(--color-text-inverse);
}

.footer-bottom {
  text-align: center;
  padding: var(--space-xl) 0;
  font-size: 0.8125rem;
  color: #475569;
}

/* --- Animations --- */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-up.delay-1 { transition-delay: 0.1s; }
.fade-up.delay-2 { transition-delay: 0.2s; }
.fade-up.delay-3 { transition-delay: 0.3s; }
.fade-up.delay-4 { transition-delay: 0.4s; }
.fade-up.delay-5 { transition-delay: 0.5s; }

/* --- Counter Animation --- */
.counter {
  display: inline-block;
}

/* --- Responsive --- */
@media (max-width: 1024px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .service-detail { grid-template-columns: 1fr; gap: var(--space-xl); }
  .service-detail.reverse { direction: ltr; }
  .industry-highlight { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 2fr 1fr 1fr; }
  .hero-stats { gap: var(--space-2xl); }
}

@media (max-width: 768px) {
  .section { padding: var(--space-3xl) 0; }
  .container { padding: 0 var(--space-lg); }

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 300px;
    height: 100vh;
    background: var(--color-bg);
    flex-direction: column;
    align-items: flex-start;
    padding: calc(var(--nav-height) + var(--space-xl)) var(--space-xl) var(--space-xl);
    gap: 0;
    transition: right var(--transition);
    box-shadow: -4px 0 20px rgba(0,0,0,0.1);
  }

  .nav-links.open {
    right: 0;
  }

  .nav-links a {
    color: var(--color-text) !important;
    padding: var(--space-md) 0;
    width: 100%;
    font-size: 1rem;
    border-bottom: 1px solid var(--color-border);
  }

  .nav-links a::after { display: none; }

  .nav-cta {
    margin-top: var(--space-md);
    text-align: center;
    border-bottom: none !important;
  }

  .nav-toggle { display: flex; }

  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }

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

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

  .btn-group {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero p {
    font-size: 1.0625rem;
  }

  .page-hero {
    padding: calc(var(--nav-height) + var(--space-2xl)) 0 var(--space-2xl);
  }
}

@media (max-width: 480px) {
  h1 { font-size: 1.875rem; }
  h2 { font-size: 1.5rem; }

  .hero { min-height: auto; padding: calc(var(--nav-height) + var(--space-3xl)) 0 var(--space-3xl); }
}

/* --- Skip Link (Accessibility) --- */
.skip-link {
  position: absolute;
  top: -100%;
  left: var(--space-md);
  background: var(--color-accent);
  color: var(--color-text-inverse);
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-md);
  z-index: 10000;
  font-weight: 600;
  font-size: 0.875rem;
}

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

/* --- Focus Visible --- */
:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

/* --- Print --- */
@media print {
  .navbar, .footer, .cta-section { display: none; }
  .hero { min-height: auto; padding: var(--space-xl) 0; }
  .section { padding: var(--space-xl) 0; }
  body { color: #000; }
}
