/* ===== Monstertek — Modern Redesign 2026 ===== */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');

/* --- Variables --- */
:root {
  --primary: #0EA5E9;
  --primary-dark: #0369A1;
  --primary-light: #38BDF8;
  --accent: #06B6D4;
  --dark: #0F172A;
  --dark-card: #1E293B;
  --dark-surface: #162032;
  --gray-50: #F8FAFC;
  --gray-100: #F1F5F9;
  --gray-200: #E2E8F0;
  --gray-300: #CBD5E1;
  --gray-400: #94A3B8;
  --gray-500: #64748B;
  --gray-600: #475569;
  --gray-700: #334155;
  --white: #FFFFFF;
  --font: 'Inter', -apple-system, system-ui, sans-serif;
  --radius-sm: 8px;
  --radius: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --max-width: 1200px;
  --gradient-brand: linear-gradient(135deg, var(--primary) 0%, var(--accent) 50%, #8B5CF6 100%);
  --gradient-dark: linear-gradient(180deg, #0F172A 0%, #1E293B 100%);
  --gradient-glow: radial-gradient(ellipse at 50% 0%, rgba(14,165,233,0.15) 0%, transparent 60%);
}

/* --- Reset --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.7;
  color: var(--gray-600);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-decoration: none; transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); }

/* --- Typography --- */
h1, h2, h3, h4 { color: var(--dark); font-weight: 800; letter-spacing: -0.02em; line-height: 1.1; }
h1 { font-size: clamp(36px, 5vw, 56px); font-weight: 900; }
h2 { font-size: clamp(28px, 3.5vw, 42px); }
h3 { font-size: clamp(20px, 2.5vw, 26px); }
h4 { font-size: 17px; font-weight: 700; }

/* --- Layout --- */
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }
.section { padding: 100px 0; position: relative; }

/* --- Gradient Mesh BG for dark sections --- */
.mesh-bg {
  background: var(--dark);
  position: relative;
  overflow: hidden;
}
.mesh-bg::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -20%;
  width: 60%;
  height: 200%;
  background: radial-gradient(ellipse, rgba(14,165,233,0.12) 0%, transparent 70%);
  pointer-events: none;
}
.mesh-bg::after {
  content: '';
  position: absolute;
  bottom: -30%;
  right: -10%;
  width: 50%;
  height: 150%;
  background: radial-gradient(ellipse, rgba(139,92,246,0.08) 0%, transparent 70%);
  pointer-events: none;
}

/* --- Dot Pattern --- */
.dot-bg {
  background-image: radial-gradient(circle, var(--gray-200) 1px, transparent 1px);
  background-size: 24px 24px;
}

/* --- Header / Nav --- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 0 24px;
  transition: all 0.3s ease;
}
.site-header.scrolled {
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid rgba(0,0,0,0.06);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 16px 0;
}
.nav-logo img { height: 32px; width: auto; transition: filter 0.3s ease; }
.site-header:not(.scrolled) .nav-logo img { filter: brightness(0) invert(1); }

/* Nav links */
.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--gray-500);
  letter-spacing: -0.01em;
  transition: color 0.2s ease;
}
.nav-links a:hover { color: var(--primary); }
.site-header:not(.scrolled) .nav-links a { color: rgba(255,255,255,0.7); }
.site-header:not(.scrolled) .nav-links a:hover { color: var(--white); }

/* Hamburger toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  z-index: 1001;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--dark);
  border-radius: 2px;
  transition: all 0.3s ease;
}
.site-header:not(.scrolled) .nav-toggle span { background: var(--white); }
.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); }

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--gradient-brand);
  color: var(--white);
  border-radius: 100px;
  padding: 10px 24px;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: -0.01em;
  box-shadow: 0 4px 15px rgba(14,165,233,0.3);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(14,165,233,0.4);
  color: var(--white);
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 100px;
  padding: 12px 28px;
  font-weight: 600;
  font-size: 15px;
  font-family: var(--font);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  border: none;
  letter-spacing: -0.01em;
}
.btn--primary {
  background: var(--gradient-brand);
  color: var(--white);
  box-shadow: 0 4px 15px rgba(14,165,233,0.3);
}
.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(14,165,233,0.4);
  color: var(--white);
}
.btn--outline {
  background: transparent;
  color: var(--dark);
  border: 2px solid var(--gray-200);
}
.btn--outline:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: rgba(14,165,233,0.05);
}
.btn--ghost {
  background: rgba(255,255,255,0.1);
  color: var(--white);
  border: 1px solid rgba(255,255,255,0.15);
  backdrop-filter: blur(10px);
}
.btn--ghost:hover {
  background: rgba(255,255,255,0.2);
  color: var(--white);
  border-color: rgba(255,255,255,0.3);
}
.btn--arrow::after { content: ' \2192'; }
.btn--sm { padding: 8px 18px; font-size: 13px; }

/* --- Tags --- */
.tag {
  display: inline-block;
  background: var(--gray-100);
  color: var(--gray-600);
  border-radius: 100px;
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 500;
  transition: all 0.2s ease;
  border: 1px solid transparent;
}
.tag:hover {
  background: rgba(14,165,233,0.08);
  color: var(--primary);
  border-color: rgba(14,165,233,0.2);
}
.tag--dark {
  background: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.7);
  border: 1px solid rgba(255,255,255,0.1);
}
.tag--dark:hover {
  background: rgba(255,255,255,0.15);
  color: var(--white);
}

/* --- Section Headers --- */
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--primary);
  margin-bottom: 16px;
}
.section-label::before {
  content: '';
  width: 20px;
  height: 2px;
  background: var(--gradient-brand);
  border-radius: 2px;
}
.section-desc {
  color: var(--gray-500);
  font-size: 17px;
  max-width: 560px;
  line-height: 1.7;
}
.section-desc--center { margin: 12px auto 0; text-align: center; }

/* ======================== */
/* ====== HERO ====== */
/* ======================== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: var(--dark);
  position: relative;
  overflow: hidden;
  padding: 120px 0 80px;
}
.hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(14,165,233,0.15) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 20%, rgba(139,92,246,0.1) 0%, transparent 50%),
    radial-gradient(ellipse at 60% 80%, rgba(6,182,212,0.08) 0%, transparent 50%);
  pointer-events: none;
}
/* grid lines overlay */
.hero::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  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-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: center;
  position: relative;
  z-index: 1;
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--primary-light);
  margin-bottom: 24px;
  padding: 6px 16px;
  background: rgba(14,165,233,0.1);
  border: 1px solid rgba(14,165,233,0.2);
  border-radius: 100px;
  width: fit-content;
}
.hero h1 {
  color: var(--white);
  margin-bottom: 24px;
  font-size: clamp(36px, 4.5vw, 52px);
}
.hero h1 span {
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-desc {
  font-size: 17px;
  color: var(--gray-400);
  margin-bottom: 32px;
  line-height: 1.8;
  max-width: 520px;
}
.hero-buttons { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 24px; }
.hero-note {
  font-size: 13px;
  color: var(--gray-500);
  display: flex;
  align-items: center;
  gap: 6px;
}
.hero-note::before {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
  animation: pulse-dot 2s ease infinite;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}
.hero-visual {
  position: relative;
}
.hero-img-wrap {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 40px 80px rgba(0,0,0,0.4);
  border: 1px solid rgba(255,255,255,0.08);
}
.hero-img-wrap img { width: 100%; display: block; }
/* floating glow behind image */
.hero-visual::before {
  content: '';
  position: absolute;
  top: 20%;
  left: -10%;
  width: 120%;
  height: 80%;
  background: radial-gradient(ellipse, rgba(14,165,233,0.2) 0%, transparent 70%);
  filter: blur(40px);
  pointer-events: none;
  z-index: -1;
}

/* ====== TRUST STRIP (partners + certs combined) ====== */
.trust-strip {
  padding: 56px 0;
  background: var(--gray-50);
  border-bottom: 1px solid var(--gray-100);
}
.trust-inner {
  display: flex;
  align-items: center;
  gap: 40px;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-xl);
  padding: 32px 40px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.04);
}
.trust-partners {
  display: flex;
  align-items: center;
  gap: 20px;
  min-width: fit-content;
}
.trust-label {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gray-400);
  min-width: fit-content;
  line-height: 1.3;
}
.trust-logos {
  display: flex;
  align-items: center;
  gap: 20px;
}
.trust-logos img {
  height: 44px;
  width: auto;
  filter: grayscale(100%) opacity(0.6);
  transition: all 0.3s ease;
}
.trust-logos img:hover {
  filter: grayscale(0%) opacity(1);
}
.trust-divider {
  width: 1px;
  height: 48px;
  background: var(--gray-200);
  flex-shrink: 0;
}
.trust-certs {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  flex: 1;
}
.cert-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: 100px;
  font-size: 13px;
  font-weight: 700;
  color: var(--dark);
  letter-spacing: -0.01em;
  transition: all 0.2s ease;
}
.cert-badge:hover {
  border-color: var(--primary);
  background: rgba(14,165,233,0.04);
}
.cert-badge svg { width: 16px; height: 16px; min-width: 16px; min-height: 16px; color: var(--primary); flex-shrink: 0; }

/* Global SVG safety */
svg { overflow: visible; }
.cert-badge svg, .value-icon svg, .sector-icon svg, .quality-card h3 svg { max-width: 100%; }

/* ====== PRODUCTS — BENTO GRID ====== */
.products { padding: 100px 0; }
.products-header { text-align: center; margin-bottom: 64px; }
.bento-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.bento-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 36px 28px 28px;
  display: flex;
  flex-direction: column;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}
.bento-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-brand);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.bento-card:hover {
  border-color: rgba(14,165,233,0.2);
  box-shadow: 0 20px 40px rgba(14,165,233,0.08);
  transform: translateY(-4px);
}
.bento-card:hover::before { opacity: 1; }
.bento-card h3 { margin-bottom: 8px; }
.bento-card > p { font-size: 14px; color: var(--gray-500); margin-bottom: 20px; }
.bento-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 24px; flex: 1; }
.bento-card .btn { align-self: flex-start; }

/* ====== VALUE PROPS ====== */
.values { padding: 100px 0; background: var(--gray-50); }
.values-header { text-align: center; margin-bottom: 64px; }
.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.value-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 32px 24px;
  transition: all 0.3s ease;
}
.value-card:hover {
  border-color: rgba(14,165,233,0.2);
  box-shadow: 0 12px 30px rgba(0,0,0,0.06);
}
.value-icon {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, rgba(14,165,233,0.1) 0%, rgba(6,182,212,0.1) 100%);
  border: 1px solid rgba(14,165,233,0.15);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: var(--primary);
}
.value-card h4 { margin-bottom: 8px; color: var(--dark); }
.value-card p { font-size: 14px; color: var(--gray-500); line-height: 1.7; }

/* ====== CASES ====== */
.cases { padding: 100px 0; }
.cases-header { text-align: center; margin-bottom: 64px; }
.case-block.reversed { direction: rtl; }
.case-block.reversed > * { direction: ltr; }
.case-img-wrap {
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  box-shadow: 0 24px 48px rgba(0,0,0,0.1);
  border: 1px solid var(--gray-100);
}
.case-img-wrap img { width: 100%; display: block; transition: transform 0.6s ease; }
.case-img-wrap:hover img { transform: scale(1.03); }
/* Case number label */
.case-number {
  font-size: clamp(48px, 5vw, 72px);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1;
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  opacity: 0.25;
  margin-bottom: 12px;
}
.case-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  margin-bottom: 32px;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-xl);
  padding: 40px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.case-block:last-child { margin-bottom: 0; }
.case-block:hover {
  border-color: rgba(14,165,233,0.15);
  box-shadow: 0 20px 50px rgba(0,0,0,0.06);
}
.case-content h3 { margin-bottom: 12px; }
.case-content > p { color: var(--gray-500); margin-bottom: 20px; line-height: 1.8; }
.case-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 24px; }

/* ====== QUALITY — DARK BENTO ====== */
.quality {
  padding: 100px 0;
  color: var(--white);
  background: var(--dark);
  position: relative;
  z-index: 1;
}
.quality-header { text-align: center; margin-bottom: 64px; }
.quality-header h2 { color: var(--white); }
.quality-header .section-desc { color: var(--gray-400); }
.quality-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.quality-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  transition: all 0.3s ease;
  position: relative;
  z-index: 1;
}
.quality-card:hover {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.15);
  transform: translateY(-4px);
}
.quality-card h3 {
  color: var(--white);
  font-size: 20px;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.quality-card h3 svg { color: var(--primary-light); flex-shrink: 0; }
.quality-card p { color: rgba(255,255,255,0.7); font-size: 14px; line-height: 1.8; }

/* ====== SECTORS ====== */
.sectors { padding: 100px 0; background: var(--gray-50); }
.sectors-header { text-align: center; margin-bottom: 64px; }
.sectors-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.sector-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 32px 24px;
  text-align: center;
  transition: all 0.3s ease;
}
.sector-card:hover {
  border-color: rgba(14,165,233,0.2);
  box-shadow: 0 12px 30px rgba(0,0,0,0.06);
  transform: translateY(-4px);
}
.sector-icon {
  width: 56px;
  height: 56px;
  background: var(--gradient-brand);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  color: var(--white);
}
.sector-card h4 { margin-bottom: 8px; }
.sector-card p { font-size: 14px; color: var(--gray-500); }

/* ====== GALLERY ====== */
.gallery { padding: 100px 0; }
.gallery-header { text-align: center; margin-bottom: 48px; }
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.gallery-item {
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4/3;
  cursor: pointer;
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  filter: grayscale(20%);
}
.gallery-item:hover img {
  transform: scale(1.08);
  filter: grayscale(0%);
}

/* ====== LIGHTBOX ====== */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0,0,0,0.92);
  backdrop-filter: blur(20px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.lightbox.active {
  opacity: 1;
  pointer-events: auto;
}
.lightbox-img-wrap {
  max-width: 90vw;
  max-height: 85vh;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lightbox-img-wrap img {
  max-width: 100%;
  max-height: 85vh;
  object-fit: contain;
  border-radius: var(--radius);
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
  transition: transform 0.3s ease;
}
.lightbox-close,
.lightbox-prev,
.lightbox-next {
  position: absolute;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.15);
  color: var(--white);
  cursor: pointer;
  border-radius: 50%;
  transition: all 0.2s ease;
  backdrop-filter: blur(8px);
}
.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
  background: rgba(255,255,255,0.2);
  border-color: rgba(255,255,255,0.3);
}
.lightbox-close {
  top: 24px;
  right: 24px;
  width: 48px;
  height: 48px;
  font-size: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
}
.lightbox-prev,
.lightbox-next {
  top: 50%;
  transform: translateY(-50%);
  width: 52px;
  height: 52px;
  font-size: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
}
.lightbox-prev { left: 24px; }
.lightbox-next { right: 24px; }
.lightbox-counter {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,0.6);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.05em;
}

/* ====== CTA BANNER ====== */
.cta-banner {
  padding: 80px 0;
}
.cta-box {
  background: var(--gradient-brand);
  border-radius: var(--radius-xl);
  padding: 64px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-box::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -20%;
  width: 140%;
  height: 200%;
  background: radial-gradient(ellipse at 30% 50%, rgba(255,255,255,0.15) 0%, transparent 50%);
  pointer-events: none;
}
.cta-box h2 { color: var(--white); margin-bottom: 16px; position: relative; z-index: 1; }
.cta-box p { color: rgba(255,255,255,0.85); font-size: 17px; margin-bottom: 32px; position: relative; z-index: 1; }
.cta-box .btn { position: relative; z-index: 1; background: var(--white); color: var(--dark); font-weight: 700; }
.cta-box .btn:hover { transform: translateY(-2px); box-shadow: 0 8px 25px rgba(0,0,0,0.2); }

/* ====== FOOTER ====== */
.site-footer {
  background: var(--dark);
  color: var(--gray-400);
  position: relative;
  overflow: hidden;
}
.site-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--gradient-brand);
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  padding: 72px 0 48px;
}
.footer-office h4 {
  color: var(--white);
  margin-bottom: 12px;
  font-size: 16px;
}
.footer-office p {
  color: var(--gray-500);
  font-size: 14px;
  line-height: 1.7;
  margin-bottom: 4px;
}
.footer-office a {
  color: var(--gray-400);
  font-size: 14px;
  transition: color 0.2s ease;
}
.footer-office a:hover { color: var(--primary-light); }
.footer-map-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  color: var(--primary-light);
  margin-top: 8px;
}
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 24px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  color: var(--gray-600);
}
.footer-bottom a { color: var(--gray-500); }

/* ====== CONTACT PAGE ====== */
.contact-section { padding: 120px 0 80px; }
.contact-inner { max-width: 600px; margin: 0 auto; }
.contact-inner h1 { text-align: center; margin-bottom: 16px; }
.contact-inner > p { text-align: center; margin-bottom: 48px; color: var(--gray-500); font-size: 17px; }
.contact-form { display: flex; flex-direction: column; gap: 16px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-field {
  width: 100%;
  padding: 14px 18px;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius);
  font-family: var(--font);
  font-size: 15px;
  color: var(--dark);
  transition: all 0.2s ease;
  background: var(--white);
}
.form-field:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(14,165,233,0.1);
}
.form-field::placeholder { color: var(--gray-400); }
textarea.form-field { min-height: 130px; resize: vertical; }
select.form-field { appearance: auto; }
.form-submit {
  background: var(--gradient-brand);
  color: var(--white);
  border: none;
  border-radius: 100px;
  padding: 16px 36px;
  font-size: 16px;
  font-weight: 700;
  font-family: var(--font);
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(14,165,233,0.3);
}
.form-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(14,165,233,0.4);
}
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 32px;
  text-align: center;
  width: 100%;
  justify-content: center;
  color: var(--gray-500);
  font-size: 14px;
}
.back-link:hover { color: var(--primary); }

/* --- Scroll Animations --- */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1), transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}
.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}
/* stagger children */
.stagger > .animate-on-scroll:nth-child(1) { transition-delay: 0s; }
.stagger > .animate-on-scroll:nth-child(2) { transition-delay: 0.1s; }
.stagger > .animate-on-scroll:nth-child(3) { transition-delay: 0.2s; }
.stagger > .animate-on-scroll:nth-child(4) { transition-delay: 0.3s; }
.stagger > .animate-on-scroll:nth-child(5) { transition-delay: 0.4s; }
.stagger > .animate-on-scroll:nth-child(6) { transition-delay: 0.5s; }

/* --- Responsive --- */
@media (max-width: 1024px) {
  /* Nav → hamburger */
  .nav-links {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(255,255,255,0.97);
    backdrop-filter: blur(20px);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 32px;
    z-index: 999;
  }
  .nav-links.open { display: flex; }
  .nav-links a { font-size: 20px; color: var(--dark) !important; font-weight: 600; }
  .nav-toggle { display: flex; }
  .nav-cta { display: none; }

  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .hero { min-height: auto; padding: 120px 0 60px; }
  .bento-grid { grid-template-columns: 1fr; }
  .case-block, .case-block.reversed { grid-template-columns: 1fr; direction: ltr; gap: 24px; padding: 28px; }
  .case-block.reversed > * { direction: ltr; }
  .quality-grid { grid-template-columns: 1fr; }
  .values-grid { grid-template-columns: 1fr 1fr; }
  .sectors-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .cta-box { padding: 48px 32px; }
  .trust-inner { flex-direction: column; gap: 24px; padding: 28px 24px; }
  .trust-divider { width: 80%; height: 1px; }
  .trust-certs { justify-content: center; }
  .trust-partners { flex-direction: column; gap: 12px; }

  .lightbox-prev { left: 12px; width: 44px; height: 44px; }
  .lightbox-next { right: 12px; width: 44px; height: 44px; }
}
@media (max-width: 640px) {
  .values-grid { grid-template-columns: 1fr; }
  .hero-buttons { flex-direction: column; }
  .hero-buttons .btn { justify-content: center; }
  .form-row { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
  .cert-badge { font-size: 12px; padding: 8px 14px; }
  .cta-box { border-radius: var(--radius); }
  .case-block { padding: 20px; }
}

/* ================================================ */
/* ====== BLOG STYLES ====== */
/* ================================================ */

.container--narrow { max-width: 760px; }

/* --- Language Toggle --- */
.nav-right {
  display: flex;
  align-items: center;
  gap: 16px;
}
.lang-toggle {
  display: flex;
  align-items: center;
  background: rgba(0,0,0,0.06);
  border-radius: 100px;
  padding: 2px;
  gap: 0;
}
.lang-toggle a {
  padding: 5px 12px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--gray-500);
  border-radius: 100px;
  transition: all 0.2s ease;
  text-decoration: none;
}
.lang-toggle a.lang-active {
  background: var(--white);
  color: var(--dark);
  box-shadow: 0 1px 4px rgba(0,0,0,0.1);
}
.lang-toggle a:not(.lang-active):hover { color: var(--dark); }
.site-header:not(.scrolled) .lang-toggle {
  background: rgba(255,255,255,0.1);
}
.site-header:not(.scrolled) .lang-toggle a {
  color: rgba(255,255,255,0.6);
}
.site-header:not(.scrolled) .lang-toggle a.lang-active {
  background: rgba(255,255,255,0.2);
  color: var(--white);
  box-shadow: none;
}

/* --- Blog Article --- */
.blog-article {
  padding-top: 80px;
}
.blog-breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--gray-400);
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.blog-breadcrumb a {
  color: var(--gray-500);
  text-decoration: none;
  transition: color 0.2s ease;
}
.blog-breadcrumb a:hover { color: var(--primary); }
.blog-breadcrumb .sep { margin: 0 4px; }

.blog-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.blog-category {
  display: inline-flex;
  align-items: center;
  padding: 4px 14px;
  background: rgba(14,165,233,0.1);
  color: var(--primary);
  border-radius: 100px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.blog-meta time,
.blog-meta .blog-reading-time {
  font-size: 13px;
  color: var(--gray-400);
}
.blog-meta .blog-reading-time::before {
  content: '';
  display: inline-block;
  width: 3px;
  height: 3px;
  background: var(--gray-300);
  border-radius: 50%;
  margin-right: 16px;
  vertical-align: middle;
}

.blog-article h1 {
  font-size: clamp(28px, 4vw, 44px);
  color: var(--dark);
  margin-bottom: 24px;
  max-width: 760px;
  line-height: 1.15;
}
.blog-article .blog-excerpt {
  font-size: 18px;
  color: var(--gray-500);
  line-height: 1.7;
  max-width: 680px;
  margin-bottom: 40px;
}

/* Blog Hero Image */
.blog-hero-img {
  margin-bottom: 48px;
}
.blog-hero-img img {
  width: 100%;
  max-height: 480px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: 0 16px 48px rgba(0,0,0,0.1);
}

/* --- Blog Content Typography --- */
.blog-content {
  padding-bottom: 48px;
}
.blog-content h2 {
  font-size: clamp(22px, 3vw, 30px);
  margin-top: 48px;
  margin-bottom: 16px;
  padding-top: 24px;
  border-top: 1px solid var(--gray-100);
  color: var(--dark);
}
.blog-content h2:first-child {
  border-top: none;
  padding-top: 0;
  margin-top: 0;
}
.blog-content h3 {
  font-size: clamp(17px, 2vw, 21px);
  margin-top: 32px;
  margin-bottom: 12px;
  color: var(--dark);
}
.blog-content h4 {
  font-size: 16px;
  font-weight: 700;
  margin-top: 24px;
  margin-bottom: 8px;
  color: var(--dark);
}
.blog-content p {
  margin-bottom: 20px;
  line-height: 1.8;
  color: var(--gray-600);
}
.blog-content strong {
  color: var(--dark);
  font-weight: 600;
}
.blog-content a {
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(14,165,233,0.3);
  transition: text-decoration-color 0.2s ease;
}
.blog-content a:hover {
  text-decoration-color: var(--primary);
}
.blog-content ul,
.blog-content ol {
  margin-bottom: 20px;
  padding-left: 24px;
}
.blog-content li {
  margin-bottom: 8px;
  line-height: 1.7;
  color: var(--gray-600);
}
.blog-content li strong {
  color: var(--dark);
}

/* Blog images inline */
.blog-content .blog-img {
  margin: 32px 0;
}
.blog-content .blog-img img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}
.blog-content .blog-img figcaption {
  font-size: 13px;
  color: var(--gray-400);
  text-align: center;
  margin-top: 10px;
}
/* Inline blog images - float beside text */
.blog-content .blog-img--inline {
  float: right;
  margin: 0 0 20px 24px;
  max-width: 260px;
}
.blog-content .blog-img--inline img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}
@media (max-width: 600px) {
  .blog-content .blog-img--inline {
    float: none;
    max-width: 100%;
    margin: 24px 0;
  }
}


/* Blog tables */
.blog-content .table-wrap {
  overflow-x: auto;
  margin: 24px 0;
  border-radius: var(--radius);
  border: 1px solid var(--gray-200);
}
.blog-content table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  min-width: 540px;
}
.blog-content thead {
  background: var(--gray-50);
}
.blog-content th {
  padding: 12px 16px;
  font-weight: 700;
  color: var(--dark);
  text-align: left;
  border-bottom: 2px solid var(--gray-200);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.blog-content td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--gray-100);
  color: var(--gray-600);
  line-height: 1.6;
}
.blog-content tbody tr:last-child td { border-bottom: none; }
.blog-content tbody tr:hover { background: var(--gray-50); }

/* Blog blockquotes */
.blog-content blockquote {
  margin: 24px 0;
  padding: 20px 24px;
  background: rgba(14,165,233,0.04);
  border-left: 4px solid var(--primary);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}
.blog-content blockquote p {
  margin-bottom: 0;
  font-size: 15px;
  color: var(--gray-600);
}
.blog-content blockquote strong {
  color: var(--primary-dark);
}

/* Blog hr */
.blog-content hr {
  border: none;
  height: 1px;
  background: var(--gray-100);
  margin: 40px 0;
}

/* --- Blog Tags --- */
.blog-tags-section {
  padding-bottom: 48px;
  border-bottom: 1px solid var(--gray-100);
}
.blog-tags-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

/* --- Blog CTA --- */
.blog-cta-section {
  padding: 64px 0;
}

/* --- Blog Related Posts --- */
.blog-related {
  padding: 80px 0;
  background: var(--gray-50);
}
.blog-related h2 {
  text-align: center;
  margin-bottom: 48px;
}

/* --- Blog Grid (feed + related) --- */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.blog-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
}
.blog-card:hover {
  border-color: rgba(14,165,233,0.2);
  box-shadow: 0 20px 40px rgba(14,165,233,0.08);
  transform: translateY(-4px);
}
.blog-card-img {
  aspect-ratio: 16/10;
  overflow: hidden;
}
.blog-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.blog-card:hover .blog-card-img img { transform: scale(1.05); }
.blog-card-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.blog-card-category {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--primary);
  margin-bottom: 8px;
}
.blog-card-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--dark);
  line-height: 1.3;
  margin-bottom: 10px;
}
.blog-card-excerpt {
  font-size: 14px;
  color: var(--gray-500);
  line-height: 1.6;
  margin-bottom: 16px;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.blog-card-date {
  font-size: 12px;
  color: var(--gray-400);
}

/* --- Blog Feed Page --- */
.blog-feed-hero {
  padding: 120px 0 60px;
  background: var(--dark);
  position: relative;
  overflow: hidden;
  text-align: center;
}
.blog-feed-hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background:
    radial-gradient(ellipse at 30% 50%, rgba(14,165,233,0.12) 0%, transparent 50%),
    radial-gradient(ellipse at 70% 30%, rgba(139,92,246,0.08) 0%, transparent 50%);
  pointer-events: none;
}
.blog-feed-hero h1 {
  color: var(--white);
  position: relative;
  z-index: 1;
  margin-bottom: 12px;
}
.blog-feed-hero p {
  color: var(--gray-400);
  font-size: 17px;
  position: relative;
  z-index: 1;
  max-width: 520px;
  margin: 0 auto;
}
.blog-feed-section {
  padding: 80px 0;
}

/* --- Homepage Blog Section --- */
.home-blog {
  padding: 100px 0;
  background: var(--gray-50);
}
.home-blog .section-header {
  text-align: center;
  margin-bottom: 48px;
}
.home-blog .blog-more {
  text-align: center;
  margin-top: 40px;
}

/* --- Blog Responsive --- */
@media (max-width: 1024px) {
  .blog-grid { grid-template-columns: 1fr 1fr; }
  .nav-right .nav-cta { display: none; }
  .lang-toggle { order: -1; }
}
@media (max-width: 640px) {
  .blog-grid { grid-template-columns: 1fr; }
  .blog-hero-img img { border-radius: var(--radius); max-height: 320px; }
  .blog-article h1 { font-size: 26px; }
  .blog-content h2 { font-size: 20px; }
  .blog-meta { gap: 10px; }
  .blog-feed-hero { padding: 100px 0 48px; }
  .nav-right { gap: 8px; }
}
