/* =============================================
   TEDM US Website — Main Stylesheet
   ============================================= */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --blue-900: #0f1f3d;
  --blue-800: #1e3a5f;
  --blue-700: #1d4ed8;
  --blue-600: #2563eb;
  --blue-500: #3b82f6;
  --blue-400: #60a5fa;
  --blue-100: #dbeafe;
  --blue-50:  #eff6ff;
  --gray-900: #111827;
  --gray-800: #1f2937;
  --gray-700: #374151;
  --gray-600: #4b5563;
  --gray-400: #9ca3af;
  --gray-200: #e5e7eb;
  --gray-100: #f3f4f6;
  --gray-50:  #f9fafb;
  --white:    #ffffff;
  --accent:   #f59e0b;
  --accent-light: #fef3c7;

  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
  --font-display: 'Barlow Condensed', 'Inter', sans-serif;

  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;

  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.10), 0 2px 6px rgba(0,0,0,0.06);
  --shadow-lg: 0 10px 40px rgba(0,0,0,0.14), 0 4px 12px rgba(0,0,0,0.08);

  --transition: 0.22s cubic-bezier(0.4,0,0.2,1);
}

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

body {
  font-family: var(--font-sans);
  color: var(--gray-800);
  background: var(--white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

/* ── Layout ── */
.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 100px 0;
}

/* ── Typography helpers ── */
.section-tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue-600);
  background: var(--blue-50);
  border: 1px solid var(--blue-100);
  padding: 4px 12px;
  border-radius: 100px;
  margin-bottom: 16px;
}

.tag-light {
  background: rgba(255,255,255,0.15);
  border-color: rgba(255,255,255,0.25);
  color: var(--blue-100);
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 700;
  line-height: 1.15;
  color: var(--gray-900);
  margin-bottom: 16px;
}

.section-header { text-align: center; margin-bottom: 60px; }
.section-header .section-title { margin-bottom: 16px; }
.section-subtitle {
  font-size: 17px;
  color: var(--gray-600);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.7;
}

.section-header.light .section-title { color: var(--white); }
.section-header.light .section-subtitle { color: rgba(255,255,255,0.75); }

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all var(--transition);
  letter-spacing: 0.01em;
}

.btn-primary {
  background: var(--blue-600);
  color: var(--white);
  border-color: var(--blue-600);
}
.btn-primary:hover {
  background: var(--blue-700);
  border-color: var(--blue-700);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(37,99,235,0.35);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.5);
}
.btn-outline:hover {
  background: rgba(255,255,255,0.12);
  border-color: var(--white);
}

.btn-full { width: 100%; justify-content: center; }

/* =============================================
   NAVIGATION
   ============================================= */

.nav-logo-img {
  height: 38px;
  width: auto;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

.nav-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 0;
  transition: background var(--transition), box-shadow var(--transition), padding var(--transition);
}

.nav-header.scrolled {
  background: rgba(15, 31, 61, 0.97);
  backdrop-filter: blur(12px);
  box-shadow: 0 2px 20px rgba(0,0,0,0.25);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.nav-logo {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  line-height: 1;
}
.logo-mark {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 800;
  color: var(--white);
  letter-spacing: 0.04em;
}
.logo-sub {
  font-size: 10px;
  color: var(--blue-400);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-top: 1px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
}
.nav-links a {
  color: rgba(255,255,255,0.82);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  transition: color var(--transition), background var(--transition);
}
.nav-links a:hover { color: var(--white); background: rgba(255,255,255,0.08); }

.nav-cta {
  background: var(--blue-600) !important;
  color: var(--white) !important;
  padding: 8px 18px !important;
}
.nav-cta:hover {
  background: var(--blue-700) !important;
}

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

/* =============================================
   HERO
   ============================================= */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--blue-900);
}

/* Video background */
.hero-video-wrap {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(10, 22, 40, 0.82) 0%,
    rgba(15, 31, 61, 0.70) 50%,
    rgba(10, 22, 40, 0.60) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: 140px 24px 100px;
  max-width: 800px;
}

.hero-badge {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue-400);
  background: rgba(96,165,250,0.1);
  border: 1px solid rgba(96,165,250,0.25);
  padding: 6px 16px;
  border-radius: 100px;
  margin-bottom: 24px;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(40px, 7vw, 76px);
  font-weight: 800;
  line-height: 1.05;
  color: var(--white);
  margin-bottom: 24px;
  letter-spacing: -0.01em;
}

.hero-title .accent {
  color: var(--blue-400);
}

.hero-subtitle {
  font-size: clamp(16px, 2vw, 19px);
  color: rgba(255,255,255,0.72);
  max-width: 640px;
  line-height: 1.7;
  margin-bottom: 40px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 64px;
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 0;
  flex-wrap: wrap;
  padding: 28px 0;
  border-top: 1px solid rgba(255,255,255,0.1);
}

.stat {
  display: flex;
  flex-direction: column;
  padding: 0 32px 0 0;
}
.stat:first-child { padding-left: 0; }

.stat-num {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 700;
  color: var(--white);
  line-height: 1;
}

.stat-label {
  font-size: 12px;
  color: var(--blue-400);
  margin-top: 4px;
  letter-spacing: 0.04em;
}

.stat-divider {
  width: 1px;
  height: 36px;
  background: rgba(255,255,255,0.15);
  margin: 0 32px 0 0;
}

.hero-scroll-hint {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: rgba(255,255,255,0.4);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  animation: fadeInUp 1.2s 1.5s both;
}

.scroll-arrow {
  width: 20px;
  height: 20px;
  border-right: 2px solid rgba(255,255,255,0.3);
  border-bottom: 2px solid rgba(255,255,255,0.3);
  transform: rotate(45deg);
  animation: bounce 1.8s infinite;
}

/* =============================================
   TRUST BAR
   ============================================= */
.trust-bar {
  background: var(--gray-900);
  padding: 24px 0;
  border-bottom: 1px solid var(--gray-800);
}

.trust-inner {
  display: flex;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
}

.trust-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gray-400);
  white-space: nowrap;
}

.trust-logos {
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
  flex: 1;
}

.trust-logo-img {
  height: 32px;
  width: auto;
  object-fit: contain;
  filter: brightness(0) invert(1);
  opacity: 0.55;
  transition: opacity var(--transition), filter var(--transition);
}
.trust-logo-img:hover { opacity: 1; }

/* =============================================
   ABOUT
   ============================================= */
.about {
  background: var(--white);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 80px;
  align-items: center;
}

.about-visual { position: relative; }

.about-img-frame {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: visible;
}

.about-img-back {
  width: 100%;
  height: 420px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  display: block;
  box-shadow: var(--shadow-lg);
}

.about-img-front {
  position: absolute;
  bottom: -32px;
  right: -28px;
  width: 52%;
  height: 200px;
  object-fit: cover;
  border-radius: var(--radius-md);
  border: 4px solid var(--white);
  box-shadow: var(--shadow-lg);
}

.about-accent-card {
  position: absolute;
  top: 20px;
  left: -16px;
  background: var(--blue-600);
  color: var(--white);
  padding: 14px 20px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.about-accent-card strong { font-size: 14px; font-weight: 700; }
.about-accent-card span { font-size: 11px; opacity: 0.85; }

.about-text { padding-left: 20px; }
.about-lead {
  font-size: 18px;
  color: var(--gray-700);
  line-height: 1.7;
  margin-bottom: 20px;
}
.about-text p {
  font-size: 15px;
  color: var(--gray-600);
  margin-bottom: 16px;
  line-height: 1.75;
}

.about-highlights {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 32px;
  padding-top: 32px;
  border-top: 1px solid var(--gray-200);
}

.highlight-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.highlight-icon {
  width: 22px;
  height: 22px;
  background: var(--blue-600);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  flex-shrink: 0;
  margin-top: 2px;
}

.highlight-item div {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.highlight-item strong {
  font-size: 14px;
  font-weight: 600;
  color: var(--gray-900);
}

.highlight-item span {
  font-size: 13px;
  color: var(--gray-500);
}

/* =============================================
   GALLERY STRIP
   ============================================= */
.gallery-strip {
  overflow: hidden;
  background: var(--gray-900);
  padding: 12px 0;
  border-top: 1px solid var(--gray-800);
  border-bottom: 1px solid var(--gray-800);
}

.gallery-track {
  display: flex;
  gap: 12px;
  width: max-content;
  animation: scroll-x 36s linear infinite;
}

.gallery-track img {
  height: 200px;
  width: auto;
  object-fit: cover;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
  filter: brightness(0.85) saturate(0.9);
  transition: filter var(--transition);
}

.gallery-track img:hover {
  filter: brightness(1) saturate(1.1);
}

@keyframes scroll-x {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* Pause on hover */
.gallery-strip:hover .gallery-track { animation-play-state: paused; }

/* =============================================
   SERVICES
   ============================================= */
.services-section {
  background: var(--gray-50);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 40px;
}

.service-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  padding: 32px;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--blue-600);
  transform: scaleX(0);
  transition: transform var(--transition);
  transform-origin: left;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--blue-100);
}

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

.service-card.featured {
  background: var(--blue-900);
  border-color: var(--blue-700);
  color: var(--white);
  grid-column: span 1;
  padding: 0;
  overflow: hidden;
}
.service-card.featured::before { background: var(--blue-400); }
.service-card.featured h3,
.service-card.featured p,
.service-card.featured .service-list li { padding-left: 28px; }
.service-card.featured h3 { color: var(--white); padding-right: 28px; }
.service-card.featured p { color: rgba(255,255,255,0.75); padding-right: 28px; }
.service-card.featured .service-list { padding-left: 28px; padding-bottom: 28px; }
.service-card.featured .service-list li { color: rgba(255,255,255,0.7); padding-left: 16px; }
.service-card.featured .service-list li::before { background: var(--blue-400); }

/* Service card images */
.service-img {
  width: 100%;
  height: 180px;
  overflow: hidden;
  margin-bottom: 20px;
  background: var(--gray-100);
}

.service-card:not(.featured) .service-img {
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
  margin: -32px -32px 20px -32px;
  width: calc(100% + 64px);
}

.service-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

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

/* Metrology 2×2 grid */
.service-img.metrology-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  height: 180px;
  gap: 2px;
}
.service-img.metrology-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0;
  transition: none;
}

.service-icon {
  width: 48px;
  height: 48px;
  color: var(--blue-600);
  margin-bottom: 20px;
}
.service-card.featured .service-icon { color: var(--blue-400); }

.service-card h3 {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 10px;
  line-height: 1.25;
}

.service-card p {
  font-size: 14px;
  color: var(--gray-600);
  line-height: 1.7;
  margin-bottom: 18px;
}

.service-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.service-list li {
  font-size: 13px;
  color: var(--gray-500);
  padding-left: 16px;
  position: relative;
}

.service-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--blue-500);
}

.materials-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  padding: 24px 28px;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
}

.materials-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--gray-600);
  margin-right: 4px;
}

.material-tag {
  font-size: 12px;
  font-weight: 500;
  color: var(--blue-700);
  background: var(--blue-50);
  border: 1px solid var(--blue-100);
  padding: 4px 12px;
  border-radius: 100px;
}

/* =============================================
   INDUSTRIES
   ============================================= */
.industries-section { background: var(--white); }

.industries-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 28px;
  margin-bottom: 48px;
}

.industry-card {
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 40px;
  transition: box-shadow var(--transition);
}

.industry-card:hover { box-shadow: var(--shadow-md); }

.industry-card.primary {
  background: linear-gradient(135deg, var(--blue-900) 0%, var(--blue-800) 100%);
  border-color: transparent;
  color: var(--white);
}

.industry-card.primary h3 { color: var(--white); }
.industry-card.primary p { color: rgba(255,255,255,0.78); }

.industry-icon {
  width: 60px;
  height: 60px;
  margin-bottom: 24px;
  color: var(--blue-600);
}
.industry-card.primary .industry-icon { color: var(--blue-400); }

.industry-card h3 {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 12px;
}

.industry-card p {
  font-size: 15px;
  color: var(--gray-600);
  line-height: 1.75;
  margin-bottom: 20px;
}

.industry-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.industry-tags span {
  font-size: 12px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 100px;
  background: rgba(37,99,235,0.1);
  color: var(--blue-700);
  border: 1px solid rgba(37,99,235,0.15);
}

.industry-card.primary .industry-tags span {
  background: rgba(255,255,255,0.12);
  color: var(--blue-200, #bfdbfe);
  border-color: rgba(255,255,255,0.2);
}

.industry-customers {
  font-size: 13px;
  color: var(--gray-500);
  padding-top: 16px;
  border-top: 1px solid rgba(0,0,0,0.08);
}

.industry-card.primary .industry-customers {
  color: rgba(255,255,255,0.55);
  border-top-color: rgba(255,255,255,0.12);
}

.industry-customers strong {
  color: var(--gray-700);
  display: block;
  margin-bottom: 2px;
}

.industry-card.primary .industry-customers strong { color: rgba(255,255,255,0.8); }

/* Standards */
.standards-banner {
  background: var(--gray-900);
  border-radius: var(--radius-lg);
  padding: 48px;
  color: var(--white);
}

.standards-banner h3 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 32px;
  text-align: center;
  letter-spacing: 0.01em;
}

.standards-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.standard-item {
  padding: 24px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-md);
  transition: background var(--transition);
}

.standard-item:hover { background: rgba(255,255,255,0.08); }

.standard-name {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 800;
  color: var(--blue-400);
  margin-bottom: 10px;
  letter-spacing: 0.04em;
}

.standard-desc {
  font-size: 13px;
  color: rgba(255,255,255,0.6);
  line-height: 1.65;
}

/* =============================================
   VALUES
   ============================================= */
.values-section {
  background: linear-gradient(135deg, var(--blue-900) 0%, #0d1e3d 100%);
  position: relative;
  overflow: hidden;
}

.values-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(96,165,250,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(96,165,250,0.04) 1px, transparent 1px);
  background-size: 50px 50px;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 48px;
  position: relative;
  z-index: 1;
}

.value-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-lg);
  padding: 40px 36px;
  position: relative;
  transition: background var(--transition), transform var(--transition);
}

.value-card:hover {
  background: rgba(255,255,255,0.08);
  transform: translateY(-4px);
}

.value-number {
  font-family: var(--font-display);
  font-size: 48px;
  font-weight: 800;
  color: rgba(96,165,250,0.15);
  line-height: 1;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.value-icon {
  width: 44px;
  height: 44px;
  color: var(--blue-400);
  margin-bottom: 20px;
}

.value-card h3 {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 12px;
}

.value-card p {
  font-size: 14px;
  color: rgba(255,255,255,0.68);
  line-height: 1.75;
  margin-bottom: 20px;
}

.value-card blockquote {
  font-size: 13px;
  font-style: italic;
  color: var(--blue-400);
  border-left: 2px solid var(--blue-600);
  padding-left: 14px;
  line-height: 1.65;
}

.philosophy-banner {
  position: relative;
  z-index: 1;
  background: rgba(37,99,235,0.15);
  border: 1px solid rgba(96,165,250,0.2);
  border-radius: var(--radius-lg);
  padding: 48px;
  text-align: center;
}

.philosophy-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue-400);
  background: rgba(96,165,250,0.1);
  border: 1px solid rgba(96,165,250,0.2);
  padding: 4px 12px;
  border-radius: 100px;
  margin-bottom: 16px;
}

.philosophy-banner h3 {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 16px;
  line-height: 1.25;
}

.philosophy-banner p {
  font-size: 15px;
  color: rgba(255,255,255,0.65);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.75;
}

/* =============================================
   PROJECTS
   ============================================= */
.projects-section { background: var(--gray-50); }

.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.project-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
}

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

.project-img {
  height: 200px;
  position: relative;
  display: flex;
  align-items: flex-end;
  padding: 14px;
  overflow: hidden;
}

.project-img img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.project-card:hover .project-img img { transform: scale(1.06); }

.project-img::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10,20,40,0.65) 0%, transparent 55%);
  pointer-events: none;
}

.project-category {
  position: relative;
  z-index: 2;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--white);
  background: rgba(15,31,61,0.65);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,0.2);
  padding: 4px 10px;
  border-radius: 100px;
}

.project-body { padding: 24px; }

.project-body h3 {
  font-size: 15px;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 8px;
  line-height: 1.35;
}

.project-body p {
  font-size: 13px;
  color: var(--gray-600);
  line-height: 1.7;
  margin-bottom: 16px;
}

.project-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.project-tag {
  font-size: 11px;
  font-weight: 600;
  color: var(--blue-700);
  background: var(--blue-50);
  border: 1px solid var(--blue-100);
  padding: 3px 10px;
  border-radius: 100px;
}

.cta-card {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--blue-700), var(--blue-600));
  border-color: transparent;
  min-height: 280px;
}

.cta-card:hover { transform: translateY(-4px); }

.cta-card-inner {
  padding: 32px;
  text-align: center;
  color: var(--white);
}

.cta-card-inner h3 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 12px;
}

.cta-card-inner p {
  font-size: 14px;
  opacity: 0.82;
  line-height: 1.7;
  margin-bottom: 24px;
}

.cta-card-inner .btn-primary {
  background: var(--white);
  color: var(--blue-700);
  border-color: var(--white);
}

.cta-card-inner .btn-primary:hover {
  background: var(--blue-50);
  border-color: var(--blue-50);
}

/* =============================================
   CONTACT
   ============================================= */
.contact-section { background: var(--white); }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 80px;
  align-items: start;
}

.contact-info .section-title { margin-bottom: 16px; }
.contact-info > p {
  font-size: 15px;
  color: var(--gray-600);
  line-height: 1.75;
  margin-bottom: 36px;
}

.contact-items {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-bottom: 32px;
}

.contact-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.contact-icon {
  width: 44px;
  height: 44px;
  background: var(--blue-50);
  border: 1px solid var(--blue-100);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--blue-600);
  flex-shrink: 0;
}

.contact-icon svg { width: 20px; height: 20px; }

.contact-item div:last-child {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.contact-item strong {
  font-size: 13px;
  font-weight: 600;
  color: var(--gray-500);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.contact-item a {
  font-size: 15px;
  color: var(--blue-600);
  text-decoration: none;
  font-weight: 500;
}
.contact-item a:hover { text-decoration: underline; }

.contact-item address {
  font-size: 15px;
  color: var(--gray-700);
  font-style: normal;
  line-height: 1.65;
}

.contact-item span {
  font-size: 15px;
  color: var(--gray-700);
  line-height: 1.6;
}

.contact-photo {
  margin-top: 28px;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.contact-photo img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
}

.contact-note {
  font-size: 13px;
  color: var(--gray-600);
  background: var(--blue-50);
  border: 1px solid var(--blue-100);
  border-radius: var(--radius-sm);
  padding: 16px 18px;
  line-height: 1.65;
}
.contact-note strong { color: var(--blue-700); }

/* Form */
.contact-form-wrap {
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 40px;
}

.contact-form h3 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 28px;
}

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

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

.form-group label {
  font-size: 13px;
  font-weight: 600;
  color: var(--gray-700);
}

.form-group input,
.form-group select,
.form-group textarea {
  padding: 11px 14px;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-family: var(--font-sans);
  color: var(--gray-800);
  background: var(--white);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--blue-500);
  box-shadow: 0 0 0 3px rgba(59,130,246,0.12);
}

.form-group input.error,
.form-group textarea.error { border-color: #ef4444; }

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

.form-checkbox { flex-direction: row; align-items: center; margin-bottom: 24px; }

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-size: 14px;
  color: var(--gray-700);
}

.checkbox-label input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--blue-600);
  cursor: pointer;
  margin: 0;
  padding: 0;
  border: none;
  box-shadow: none;
}

.form-note {
  font-size: 12px;
  color: var(--gray-400);
  text-align: center;
  margin-top: 14px;
  line-height: 1.6;
}

.form-success {
  text-align: center;
  padding: 40px 20px;
}

.success-icon {
  width: 60px;
  height: 60px;
  background: #d1fae5;
  color: #059669;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  font-weight: 700;
  margin: 0 auto 20px;
}

.form-success h3 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 10px;
}

.form-success p {
  color: var(--gray-600);
  font-size: 15px;
}

/* =============================================
   FOOTER
   ============================================= */
.footer {
  background: var(--gray-900);
  color: var(--white);
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 60px;
  padding: 64px 24px;
}

.footer-logo-img {
  height: 36px;
  width: auto;
  object-fit: contain;
  filter: brightness(0) invert(1);
  display: block;
  margin-bottom: 4px;
}

.footer-tagline {
  font-size: 11px;
  color: var(--blue-400);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  display: block;
  margin-bottom: 16px;
}

.footer-brand p {
  font-size: 14px;
  color: var(--gray-400);
  line-height: 1.7;
  max-width: 320px;
}

.footer-nav {
  display: flex;
  gap: 40px;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col strong {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gray-400);
  margin-bottom: 4px;
}

.footer-col a {
  font-size: 14px;
  color: var(--gray-400);
  text-decoration: none;
  transition: color var(--transition);
  line-height: 1;
}

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

.footer-bottom {
  border-top: 1px solid var(--gray-800);
  padding: 20px 0;
}

.footer-bottom .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.footer-bottom span {
  font-size: 13px;
  color: var(--gray-500);
}

/* =============================================
   ANIMATIONS
   ============================================= */
@keyframes bounce {
  0%, 100% { transform: rotate(45deg) translateY(0); }
  50% { transform: rotate(45deg) translateY(6px); }
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 1024px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .standards-grid { grid-template-columns: repeat(2, 1fr); }
  .about-grid { grid-template-columns: 1fr; gap: 48px; }
  .about-text { padding-left: 0; }
  .about-img-placeholder { height: 320px; }
  .contact-grid { grid-template-columns: 1fr; gap: 48px; }
}

@media (max-width: 768px) {
  .section { padding: 72px 0; }

  .nav-links { display: none; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 72px; left: 0; right: 0;
    background: var(--blue-900);
    padding: 24px;
    gap: 4px;
    z-index: 999;
    border-bottom: 1px solid rgba(255,255,255,0.1);
  }
  .nav-links.open a { padding: 12px 16px; border-radius: var(--radius-sm); }
  .nav-toggle { display: flex; }

  .hero-content { padding: 120px 24px 80px; }
  .hero-stats { gap: 20px; }
  .stat-divider { display: none; }
  .stat { padding: 0 20px 0 0; }

  .about-grid { gap: 40px; }

  .industries-grid { grid-template-columns: 1fr; }
  .standards-grid { grid-template-columns: 1fr 1fr; }

  .values-grid { grid-template-columns: 1fr; }
  .projects-grid { grid-template-columns: 1fr 1fr; }

  .footer-inner { grid-template-columns: 1fr; gap: 40px; }
  .footer-nav { flex-wrap: wrap; gap: 28px; }

  .trust-inner { flex-direction: column; align-items: flex-start; gap: 16px; }
  .form-row { grid-template-columns: 1fr; }
}

@media (max-width: 540px) {
  .services-grid { grid-template-columns: 1fr; }
  .standards-grid { grid-template-columns: 1fr; }
  .projects-grid { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .contact-form-wrap { padding: 28px 20px; }
}
