/* ============================================================
   Intelligent Inspection — Clean Corporate Theme
   ============================================================ */

:root {
  --bg: #ffffff;
  --bg-soft: #f5f8fb;
  --bg-accent: #0f3a52;
  --surface: #ffffff;
  --ink: #14283b;
  --ink-soft: #3a4d60;
  --muted: #6b7d90;
  --line: #e3e9f0;
  --accent: #0f5c78;
  --accent-hover: #0a485e;
  --accent-2: #17a1a4;
  --accent-soft: #e8f3f6;
  --dark: #0c2030;
  --shadow-sm: 0 2px 8px rgba(16, 40, 59, 0.06);
  --shadow-md: 0 8px 28px rgba(16, 40, 59, 0.08);
  --shadow-lg: 0 20px 60px rgba(16, 40, 59, 0.12);
  --radius-lg: 18px;
  --radius-md: 14px;
  --radius-sm: 10px;
  --container: 1180px;
  --header-h: 72px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  margin: 0;
  font-family: "Manrope", system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
  text-decoration: none;
}

h1, h2, h3, h4 {
  font-family: "Space Grotesk", "Manrope", sans-serif;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0;
}

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

.eyebrow {
  margin: 0 0 14px;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.eyebrow-light {
  color: #7fd4d6;
}

/* ============================================================
   Header / Nav
   ============================================================ */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  flex-shrink: 0;
}

.brand-name {
  display: flex;
  flex-direction: column;
  font-size: 1.02rem;
  line-height: 1.2;
}

.brand-name small {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.main-nav {
  display: flex;
  gap: 30px;
  margin-left: auto;
}

.main-nav a {
  font-size: 0.94rem;
  font-weight: 600;
  color: var(--ink-soft);
  transition: color 160ms ease;
  position: relative;
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width 200ms ease;
}

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

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

.nav-cta {
  padding: 10px 20px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  font-size: 0.9rem;
  white-space: nowrap;
  transition: background 160ms ease, transform 160ms ease;
}

.nav-cta:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--ink);
  transition: transform 200ms ease, opacity 200ms ease;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ============================================================
   Buttons
   ============================================================ */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 26px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.98rem;
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
  border: none;
}

.button-primary {
  color: #fff;
  background: var(--accent);
  box-shadow: 0 10px 24px rgba(15, 92, 120, 0.22);
}

.button-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(15, 92, 120, 0.3);
}

.button-secondary {
  background: #fff;
  color: var(--ink);
  border: 1.5px solid var(--line);
}

.button-secondary:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
}

/* ============================================================
   Hero
   ============================================================ */

.hero {
  padding: 70px 0 64px;
  background:
    radial-gradient(circle at 90% 0%, rgba(23, 161, 164, 0.08), transparent 40%),
    radial-gradient(circle at 0% 20%, rgba(15, 92, 120, 0.06), transparent 35%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 50px;
  align-items: center;
}

.hero-copy h1 {
  font-size: clamp(2.4rem, 4.6vw, 3.8rem);
  line-height: 1.05;
}

.hero-text {
  max-width: 56ch;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.75;
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 32px;
}

.hero-metrics article {
  padding: 18px 18px 16px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
}

.hero-metrics strong {
  display: block;
  margin-bottom: 6px;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.18rem;
  color: var(--accent);
}

.hero-metrics span {
  color: var(--muted);
  font-size: 0.85rem;
  line-height: 1.45;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.hero-figure {
  margin: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: var(--bg-soft);
}

.hero-figure img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  transition: transform 400ms ease;
}

.hero-figure:hover img {
  transform: scale(1.03);
}

.hero-figure figcaption {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 16px 20px;
  background: #fff;
  font-size: 0.92rem;
  color: var(--muted);
  font-weight: 600;
}

.zoom-hint {
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-2);
}

/* ============================================================
   Intro strip
   ============================================================ */

.intro-strip {
  padding: 26px 0;
  background: var(--bg-soft);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.intro-strip p {
  margin: 0;
  max-width: 80ch;
  color: var(--ink-soft);
  font-size: 1.04rem;
  line-height: 1.75;
}

/* ============================================================
   Sections
   ============================================================ */

.section {
  padding: 76px 0;
}

.section-accent {
  background: linear-gradient(160deg, var(--bg-accent) 0%, var(--dark) 100%);
  color: #fff;
}

.section-heading {
  max-width: 60ch;
  margin-bottom: 48px;
}

.section-heading h2 {
  font-size: clamp(1.9rem, 3.4vw, 2.8rem);
  margin-top: 4px;
}

.section-heading-light h2 {
  color: #fff;
}

.section-sub {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 0.98rem;
}

/* ============================================================
   Module cards
   ============================================================ */

.module-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 44px;
  align-items: center;
  padding: 48px 0;
  border-bottom: 1px solid var(--line);
}

.module-card:first-of-type {
  padding-top: 0;
}

.module-card:last-of-type {
  border-bottom: none;
}

.module-card-reverse .module-media {
  order: -1;
}

.module-tag {
  display: inline-block;
  margin-bottom: 16px;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.module-copy h3 {
  font-size: clamp(1.4rem, 2.2vw, 1.85rem);
  margin-bottom: 18px;
}

.module-copy p {
  color: var(--muted);
  line-height: 1.78;
}

.module-copy p + p {
  margin-top: 14px;
}

/* triple media grid */
.triple-media {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: 1fr 1fr;
  gap: 14px;
  height: 440px;
}

.triple-media figure {
  margin: 0;
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-md);
  background: var(--bg-soft);
  box-shadow: var(--shadow-sm);
}

.triple-media figure:first-child {
  grid-row: 1 / span 2;
}

.triple-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 400ms ease;
}

/* ============================================================
   Lightbox triggers (shared)
   ============================================================ */

.lightbox-trigger {
  cursor: zoom-in;
  position: relative;
}

.lightbox-trigger:hover img {
  transform: scale(1.04);
}

.triple-media figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  margin: 0;
  padding: 22px 14px 12px;
  font-size: 0.82rem;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(to top, rgba(12, 32, 48, 0.85), transparent);
}

/* ============================================================
   Value grid
   ============================================================ */

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

.value-card {
  padding: 28px 24px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-md);
  transition: background 200ms ease, transform 200ms ease;
}

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

.value-icon {
  font-size: 1.8rem;
  margin-bottom: 14px;
  line-height: 1;
}

.value-card h3 {
  font-size: 1.18rem;
  margin-bottom: 10px;
  color: #fff;
}

.value-card p {
  margin: 0;
  color: rgba(255, 255, 255, 0.74);
  font-size: 0.94rem;
  line-height: 1.65;
}

/* ============================================================
   Gallery
   ============================================================ */

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 240px;
  gap: 16px;
}

.gallery-grid figure {
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius-md);
  background: var(--bg-soft);
  box-shadow: var(--shadow-sm);
}

.gallery-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 400ms ease;
}

.gallery-wide {
  grid-column: span 2;
}

.gallery-tall {
  grid-row: span 2;
}

/* ============================================================
   Contact
   ============================================================ */

.contact-section {
  padding-bottom: 90px;
}

.contact-card {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 40px;
  align-items: center;
  padding: 44px;
  border-radius: var(--radius-lg);
  background:
    linear-gradient(135deg, var(--accent-soft) 0%, #f0f7f9 100%);
  border: 1px solid var(--line);
}

.contact-info h2 {
  font-size: clamp(1.6rem, 2.6vw, 2.2rem);
  margin: 4px 0 16px;
}

.contact-info p {
  margin: 0;
  color: var(--ink-soft);
  line-height: 1.75;
}

.contact-panel {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 32px;
  border-radius: var(--radius-md);
  background: linear-gradient(150deg, var(--accent) 0%, var(--dark) 100%);
  color: #fff;
  box-shadow: var(--shadow-md);
}

.contact-label {
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.7;
}

.contact-panel a {
  font-size: 1.3rem;
  font-weight: 700;
  word-break: break-word;
}

.contact-button {
  margin-top: 8px;
  background: #fff;
  color: var(--accent);
}

.contact-button:hover {
  background: var(--bg-soft);
}

/* ============================================================
   Footer
   ============================================================ */

.site-footer {
  padding: 40px 0;
  background: var(--dark);
  color: rgba(255, 255, 255, 0.7);
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
}

.site-footer .brand-name {
  color: #fff;
}

.footer-note {
  margin: 6px 0 0;
  max-width: 60ch;
  font-size: 0.92rem;
}

.footer-copy {
  margin: 0;
  font-size: 0.84rem;
  opacity: 0.6;
}

/* ============================================================
   Lightbox
   ============================================================ */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(8, 18, 28, 0.94);
  backdrop-filter: blur(6px);
}

.lightbox.is-open {
  display: flex;
  animation: lb-fade 200ms ease;
}

@keyframes lb-fade {
  from { opacity: 0; }
  to { opacity: 1; }
}

.lb-content {
  margin: 0;
  max-width: 92vw;
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.lb-content img {
  max-width: 92vw;
  max-height: 74vh;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
  animation: lb-zoom 240ms ease;
}

@keyframes lb-zoom {
  from { transform: scale(0.94); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.lb-content figcaption {
  color: #fff;
  font-size: 0.96rem;
  font-weight: 600;
  text-align: center;
  max-width: 80ch;
  padding: 0 16px;
}

.lb-counter {
  margin: 0;
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.82rem;
}

.lb-close,
.lb-nav {
  position: absolute;
  z-index: 1001;
  display: grid;
  place-items: center;
  border: none;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  cursor: pointer;
  border-radius: 50%;
  transition: background 160ms ease, transform 160ms ease;
  backdrop-filter: blur(4px);
}

.lb-close {
  top: 24px;
  right: 24px;
  width: 48px;
  height: 48px;
  font-size: 1.8rem;
  line-height: 1;
}

.lb-nav {
  top: 50%;
  transform: translateY(-50%);
  width: 56px;
  height: 56px;
  font-size: 2rem;
  line-height: 1;
}

.lb-prev { left: 24px; }
.lb-next { right: 24px; }

.lb-close:hover,
.lb-nav:hover {
  background: rgba(255, 255, 255, 0.25);
}

.lb-nav:hover {
  transform: translateY(-50%) scale(1.08);
}

.lb-close:hover {
  transform: rotate(90deg);
}

/* ============================================================
   Responsive
   ============================================================ */

@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .hero-figure img {
    height: 360px;
  }

  .module-card {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .module-card-reverse .module-media {
    order: 0;
  }

  .triple-media {
    height: 380px;
  }

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

  .contact-card {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}

@media (max-width: 760px) {
  :root {
    --header-h: 64px;
  }

  .container {
    padding: 0 18px;
  }

  .main-nav,
  .nav-cta {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  /* Mobile menu open */
  .main-nav.is-open {
    display: flex;
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-md);
  }

  .main-nav.is-open a {
    padding: 16px 24px;
    border-bottom: 1px solid var(--line);
  }

  .main-nav.is-open a::after {
    display: none;
  }

  .hero {
    padding: 40px 0 44px;
  }

  .hero-copy h1 {
    font-size: clamp(2rem, 9vw, 2.8rem);
  }

  .hero-metrics {
    grid-template-columns: 1fr;
  }

  .hero-figure img {
    height: 260px;
  }

  .section {
    padding: 52px 0;
  }

  .module-card {
    padding: 36px 0;
  }

  .triple-media {
    grid-template-columns: 1fr;
    grid-template-rows: none;
    height: auto;
  }

  .triple-media figure,
  .triple-media figure:first-child {
    grid-row: auto;
    height: 220px;
  }

  .value-grid {
    grid-template-columns: 1fr;
  }

  .gallery-grid {
    grid-template-columns: 1fr 1fr;
    grid-auto-rows: 160px;
  }

  .gallery-tall,
  .gallery-wide {
    grid-column: auto;
    grid-row: auto;
  }

  .contact-card {
    padding: 28px;
  }

  .lb-close {
    top: 14px;
    right: 14px;
    width: 42px;
    height: 42px;
    font-size: 1.5rem;
  }

  .lb-nav {
    width: 46px;
    height: 46px;
    font-size: 1.6rem;
  }

  .lb-prev { left: 10px; }
  .lb-next { right: 10px; }
}

@media (max-width: 420px) {
  .gallery-grid {
    grid-template-columns: 1fr;
  }
}
