/* SEATEC PIPE — dark heavy-industrial theme */
@font-face { font-family: 'Inter'; src: url('/fonts/inter-400.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Inter'; src: url('/fonts/inter-500.woff2') format('woff2'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'Inter'; src: url('/fonts/inter-600.woff2') format('woff2'); font-weight: 600; font-display: swap; }
@font-face { font-family: 'Inter'; src: url('/fonts/inter-700.woff2') format('woff2'); font-weight: 700; font-display: swap; }

:root {
  --bg-950: #060B16;
  --bg-900: #0F172A;
  --bg-850: #141E33;
  --bg-800: #1E293B;
  --text: #E2E8F0;
  --text-2: #94A3B8;
  --navy: #1B3A66;
  --navy-hi: #25508C;
  --navy-bright: #608FC9;
  --line: rgba(148, 163, 184, .16);
  --font: 'Inter', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', 'Noto Sans CJK SC', system-ui, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--bg-900);
  color: var(--text);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
.wrap { max-width: 1600px; margin: 0 auto; padding: 0 2cm; }
.wrap-narrow { max-width: 1000px; }
h1, h2, h3, h4 { font-weight: 700; line-height: 1.2; letter-spacing: .01em; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 22px; border: 1px solid transparent; border-radius: 4px;
  font-weight: 600; font-size: 14px; letter-spacing: .04em; cursor: pointer;
  transition: background .2s, border-color .2s, color .2s, transform .15s;
}
.btn:active { transform: translateY(1px); }
.btn-accent { background: var(--navy); color: #fff; border-color: var(--navy); }
.btn-accent:hover { background: var(--navy-hi); border-color: var(--navy-hi); }
.btn-ghost { background: transparent; color: var(--text); border-color: rgba(148, 163, 184, .4); }
.btn-ghost:hover { border-color: var(--navy-bright); color: var(--navy-bright); }
.btn-lg { padding: 14px 32px; font-size: 15px; }
.btn-sm { padding: 7px 14px; font-size: 13px; }

/* ---------- header ---------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(6, 11, 22, .72); backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: background .25s, border-color .25s;
}
.site-header.scrolled { background: rgba(6, 11, 22, .96); border-bottom-color: var(--line); }
.header-inner { display: flex; align-items: center; gap: 40px; height: 80px; }
.brand-logo { height: 40px; width: auto; }
.main-nav { display: flex; align-items: center; gap: 4px; flex: 1; }
.nav-link {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 10px 14px; font-size: 13px; font-weight: 600; letter-spacing: .06em;
  color: var(--text-2); border-bottom: 2px solid transparent;
  transition: color .2s, border-color .2s;
}
.nav-link:hover { color: var(--text); }
.nav-link.active { color: #fff; border-bottom-color: var(--navy-bright); }
.nav-dropdown { position: relative; }
.dropdown-menu {
  position: absolute; top: 100%; left: 0; min-width: 260px;
  background: var(--bg-850); border: 1px solid var(--line); border-radius: 6px;
  padding: 8px; opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity .2s, transform .2s, visibility .2s;
  box-shadow: 0 18px 40px rgba(0, 0, 0, .45);
}
.nav-dropdown:hover .dropdown-menu, .nav-dropdown:focus-within .dropdown-menu {
  opacity: 1; visibility: visible; transform: translateY(0);
}
.dropdown-menu a {
  display: block; padding: 10px 14px; border-radius: 4px;
  font-size: 13px; font-weight: 500; letter-spacing: .04em; color: var(--text-2);
}
.dropdown-menu a:hover { background: var(--navy); color: #fff; }
.header-right { display: flex; align-items: center; gap: 16px; }
.lang-switch {
  font-size: 13px; font-weight: 600; color: var(--text-2);
  padding: 6px 12px; border: 1px solid var(--line); border-radius: 4px;
}
.lang-switch:hover { color: #fff; border-color: var(--navy-bright); }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--text); margin: 5px 0; }

/* ---------- hero ---------- */
.hero { position: relative; height: min(88vh, 1080px); min-height: 620px; overflow: hidden; background: var(--bg-950); }
.hero-slide {
  position: absolute; inset: 0; background-size: cover; background-position: center;
  opacity: 0; transition: opacity 1.2s ease;
}
.hero-slide.current { opacity: 1; }
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(6, 11, 22, .55) 0%, rgba(6, 11, 22, .45) 45%, rgba(15, 23, 42, .92) 100%);
}
.hero-content { position: relative; z-index: 2; height: 100%; display: flex; flex-direction: column; justify-content: center; }
.hero-content h1 {
  font-size: clamp(38px, 4.6vw, 68px); font-weight: 700; color: #fff;
  max-width: 900px; letter-spacing: .01em; text-transform: uppercase;
}
.hero-slogan { margin-top: 22px; font-size: 14px; line-height: 1.75; color: var(--text); max-width: 760px; font-weight: 500; }
.hero-sub { margin-top: 12px; font-size: 14px; letter-spacing: .14em; color: var(--navy-bright); font-weight: 600; text-transform: uppercase; }
.hero-ctas { margin-top: 38px; display: flex; gap: 16px; flex-wrap: wrap; }
.hero-dots { position: absolute; z-index: 3; bottom: 34px; left: 50%; transform: translateX(-50%); display: flex; gap: 10px; }
.hero-dot {
  width: 34px; height: 4px; border: 0; border-radius: 2px; cursor: pointer;
  background: rgba(148, 163, 184, .4); transition: background .25s;
}
.hero-dot.current { background: var(--navy-bright); }

/* ---------- stats ---------- */
.stats-strip { background: var(--bg-950); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { padding: 36px 24px; text-align: center; border-left: 1px solid var(--line); }
.stat:first-child { border-left: 0; }
.stat-value { font-size: 34px; font-weight: 700; color: var(--navy-bright); letter-spacing: .01em; }
.stat-label { margin-top: 6px; font-size: 13px; color: var(--text-2); }

/* ---------- sections ---------- */
.section { padding: 96px 0; }
.section-alt { background: var(--bg-850); }
.section-head { margin-bottom: 52px; }
.section-head h2 { font-size: clamp(26px, 2.6vw, 40px); text-transform: uppercase; letter-spacing: .02em; }
.section-head h2::after { content: ''; display: block; width: 64px; height: 4px; background: var(--navy); margin-top: 16px; border-radius: 2px; }
.section-sub { margin-top: 14px; color: var(--text-2); font-size: 17px; }

/* ---------- service grid (home) ---------- */
.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.service-card {
  background: var(--bg-800); border: 1px solid var(--line); border-radius: 8px;
  overflow: hidden; transition: transform .25s, border-color .25s, box-shadow .25s;
}
.service-card:hover { transform: translateY(-4px); border-color: var(--navy-bright); box-shadow: 0 20px 44px rgba(0, 0, 0, .35); }
.service-card-img { position: relative; aspect-ratio: 4 / 3; overflow: hidden; }
.service-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.service-card:hover .service-card-img img { transform: scale(1.05); }
.service-num {
  position: absolute; top: 14px; left: 16px; font-size: 13px; font-weight: 700;
  color: #fff; background: rgba(27, 58, 102, .9); padding: 4px 10px; border-radius: 3px; letter-spacing: .08em;
}
.service-card-body { display: flex; align-items: center; justify-content: space-between; padding: 20px 22px; }
.service-card-body h3 { font-size: 17px; letter-spacing: .04em; }
.card-arrow { color: var(--navy-bright); font-size: 20px; transition: transform .2s; }
.service-card:hover .card-arrow { transform: translateX(4px); }

/* ---------- home intro (company profile above showcase photo) ---------- */
.home-intro { background: var(--bg-900); padding: 72px 0 64px; }
.home-intro .wrap { max-width: 1600px; }
.intro-p { font-size: 15px; line-height: 1.95; color: var(--text); margin: 0 0 22px; }
.intro-lead {
  margin: 34px 0 0; padding-left: 18px; border-left: 3px solid var(--navy-bright);
  font-size: 19px; line-height: 1.6; font-weight: 600; color: var(--navy-bright); letter-spacing: .01em;
}

/* ---------- home showcase ---------- */
.showcase { background: var(--bg-900); }
.showcase-item { position: relative; margin: 0; }
.showcase-item img { display: block; width: 100%; height: auto; }
.showcase-item figcaption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 84px 6vw 34px;
  background: linear-gradient(180deg, rgba(9,14,22,0) 0%, rgba(9,14,22,.55) 45%, rgba(9,14,22,.88) 100%);
  color: var(--text); font-size: 15px; font-weight: 500; line-height: 1.6;
  letter-spacing: .02em;
}
.showcase-item figcaption::before {
  content: ''; display: block; width: 44px; height: 3px;
  background: var(--navy-bright); margin-bottom: 14px;
}

/* ---------- certs strip (home) ---------- */
.cert-strip { display: grid; grid-template-columns: repeat(8, 1fr); gap: 18px; }
.cert-mini { text-align: center; transition: transform .2s; }
.cert-mini:hover { transform: translateY(-3px); }
.cert-mini img {
  aspect-ratio: 3 / 4; object-fit: cover; border: 1px solid var(--line); border-radius: 6px;
  background: var(--bg-800); width: 100%;
}
.cert-mini span { display: block; margin-top: 10px; font-size: 12px; color: var(--text-2); line-height: 1.4; }

/* ---------- CTA band ---------- */
.cta-band { background: linear-gradient(120deg, var(--navy) 0%, #12294a 100%); border-top: 1px solid var(--line); }
.cta-band-inner { display: flex; align-items: center; justify-content: space-between; gap: 32px; padding: 64px 0; flex-wrap: wrap; }
.cta-band h2 { color: #fff; font-size: clamp(22px, 2.4vw, 34px); }
.cta-band .btn-accent { background: #fff; color: var(--navy); border-color: #fff; }
.cta-band .btn-accent:hover { background: var(--text); }

/* ---------- page hero ---------- */
.page-hero { padding: 170px 0 80px; background: var(--bg-950); border-bottom: 1px solid var(--line); position: relative; overflow: hidden; }
.page-hero h1 { font-size: clamp(30px, 3.6vw, 52px); text-transform: uppercase; letter-spacing: .02em; }
.page-hero-sub { margin-top: 16px; color: var(--text-2); font-size: 17px; max-width: 860px; }
.page-hero-img { background-size: cover; background-position: center; }
.page-hero-img::before { content: ''; position: absolute; inset: 0; background: rgba(6, 11, 22, .78); }
.page-hero-img .wrap { position: relative; z-index: 1; }
.breadcrumb { font-size: 13px; color: var(--text-2); margin-bottom: 18px; }
.breadcrumb a:hover { color: var(--navy-bright); }

/* ---------- service list page ---------- */
.service-list { display: flex; flex-direction: column; gap: 40px; }
.service-row {
  display: grid; grid-template-columns: 42% 58%; gap: 36px;
  background: var(--bg-800); border: 1px solid var(--line); border-radius: 10px; overflow: hidden;
  transition: border-color .25s, transform .25s, box-shadow .25s;
}
.service-row:hover { border-color: var(--navy-bright); transform: translateY(-3px); box-shadow: 0 22px 48px rgba(0, 0, 0, .35); }
.service-row-img { min-height: 300px; }
.service-row-img img { width: 100%; height: 100%; object-fit: cover; }
.service-row-body { padding: 40px 40px 40px 0; }
.service-row-num { font-size: 13px; font-weight: 700; color: var(--navy-bright); letter-spacing: .14em; }
.service-row-body h2 { margin-top: 8px; font-size: 26px; letter-spacing: .04em; }
.service-row-body p { margin-top: 14px; color: var(--text-2); font-size: 15px; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.service-row-body .btn { margin-top: 22px; }

/* ---------- service detail ---------- */
.detail-intro .lead { font-size: 19px; color: var(--text); max-width: 1080px; }
.detail-cols { margin-top: 44px; }
.check-list { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 16px 40px; }
.check-list li { position: relative; padding-left: 32px; color: var(--text-2); }
.check-list li::before {
  content: ''; position: absolute; left: 0; top: 4px; width: 18px; height: 18px;
  background: var(--navy); border-radius: 3px;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E") center / contain no-repeat,
    linear-gradient(#fff, #fff);
  -webkit-mask-composite: destination-out;
  mask-composite: exclude;
}
.photo-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.photo-item { background: var(--bg-800); border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.photo-item img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; cursor: zoom-in; transition: transform .3s; }
.photo-item img:hover { transform: scale(1.03); }
.photo-item figcaption { padding: 12px 16px; font-size: 13px; color: var(--text-2); }
.service-nav { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }

/* ---------- certification page ---------- */
.cert-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.cert-card { background: var(--bg-800); border: 1px solid var(--line); border-radius: 8px; overflow: hidden; transition: border-color .2s, transform .2s; }
.cert-card:hover { border-color: var(--navy-bright); transform: translateY(-3px); }
.cert-thumb img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; cursor: zoom-in; background: var(--bg-900); }
.cert-body { padding: 20px; }
.cert-body h3 { font-size: 15px; line-height: 1.4; }
.cert-note { margin-top: 8px; font-size: 13px; color: var(--text-2); }
.cert-body .btn { margin-top: 14px; }

/* ---------- faq ---------- */
.faq-list { display: flex; flex-direction: column; gap: 14px; }
.faq-item { background: var(--bg-800); border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.faq-item summary {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 22px 26px; cursor: pointer; font-weight: 600; font-size: 16px; list-style: none;
  transition: color .2s;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--navy-bright); }
.faq-icon { position: relative; width: 18px; height: 18px; flex-shrink: 0; }
.faq-icon::before, .faq-icon::after { content: ''; position: absolute; background: var(--navy-bright); transition: transform .2s; }
.faq-icon::before { left: 0; top: 8px; width: 18px; height: 2px; }
.faq-icon::after { left: 8px; top: 0; width: 2px; height: 18px; }
.faq-item[open] .faq-icon::after { transform: rotate(90deg); }
.faq-answer { padding: 0 26px 24px; color: var(--text-2); border-top: 1px solid var(--line); }
.faq-answer p { padding-top: 18px; }
.faq-cta { margin-top: 56px; text-align: center; }
.faq-cta p { color: var(--text-2); margin-bottom: 18px; }

/* ---------- download ---------- */
.download-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.download-card {
  background: var(--bg-800); border: 1px solid var(--line); border-radius: 8px;
  padding: 36px 30px; display: flex; flex-direction: column; align-items: flex-start; gap: 14px;
  transition: border-color .2s, transform .2s;
}
.download-card:hover { border-color: var(--navy-bright); transform: translateY(-3px); }
.download-icon { color: var(--navy-bright); }
.download-card h3 { font-size: 17px; letter-spacing: .03em; }
.download-card p { color: var(--text-2); font-size: 14px; flex: 1; }

/* ---------- contact ---------- */
.contact-grid { display: grid; grid-template-columns: 5fr 7fr; gap: 64px; }
.contact-info h2 { font-size: 22px; }
.contact-list { list-style: none; margin-top: 28px; display: flex; flex-direction: column; gap: 22px; }
.contact-list li { display: flex; flex-direction: column; gap: 6px; border-bottom: 1px solid var(--line); padding-bottom: 20px; }
.contact-list strong { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--navy-bright); }
.contact-list a:hover { color: var(--navy-bright); }
.contact-list span { color: var(--text-2); }
.contact-form { background: var(--bg-800); border: 1px solid var(--line); border-radius: 10px; padding: 40px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-field { display: flex; flex-direction: column; gap: 8px; margin-bottom: 20px; }
.form-field label { font-size: 13px; font-weight: 600; color: var(--text-2); letter-spacing: .04em; }
.form-field input, .form-field textarea {
  background: var(--bg-900); border: 1px solid var(--line); border-radius: 5px;
  padding: 12px 14px; color: var(--text); font-family: inherit; font-size: 15px;
  transition: border-color .2s;
}
.form-field input:focus, .form-field textarea:focus { outline: none; border-color: var(--navy-bright); }
.form-status { margin-top: 16px; font-size: 14px; min-height: 20px; }
.form-status.ok { color: #4ADE80; }
.form-status.err { color: #F87171; }

/* ---------- footer ---------- */
.site-footer { background: var(--bg-950); border-top: 1px solid var(--line); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.4fr; gap: 48px; padding: 72px 0 56px; }
.footer-logo { height: 44px; margin-bottom: 18px; }
.footer-col p { color: var(--text-2); font-size: 14px; margin-bottom: 8px; }
.footer-col h4 { font-size: 13px; letter-spacing: .12em; color: var(--text); margin-bottom: 18px; }
.footer-col a { display: block; color: var(--text-2); font-size: 14px; margin-bottom: 10px; transition: color .2s; }
.footer-col a:hover { color: var(--navy-bright); }
.footer-sister { margin-top: 14px; }
.footer-bottom { border-top: 1px solid var(--line); padding: 22px 0; }
.footer-bottom span { color: var(--text-2); font-size: 13px; }

/* ---------- lightbox ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 200; background: rgba(2, 6, 23, .92);
  display: none; align-items: center; justify-content: center; padding: 40px;
}
.lightbox.open { display: flex; }
.lightbox img { max-width: 92vw; max-height: 88vh; border-radius: 6px; box-shadow: 0 30px 80px rgba(0, 0, 0, .6); }
.lightbox-close {
  position: absolute; top: 22px; right: 30px; background: none; border: 0;
  color: #fff; font-size: 44px; cursor: pointer; line-height: 1;
}

/* ---------- error page ---------- */
.error-page { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; text-align: center; }
.error-page h1 { font-size: 72px; color: var(--navy-bright); }
.error-page p { color: var(--text-2); }

/* ---------- responsive ---------- */
@media (max-width: 1280px) {
  .service-grid { grid-template-columns: repeat(2, 1fr); }
  .cert-grid { grid-template-columns: repeat(3, 1fr); }
  .cert-strip { grid-template-columns: repeat(4, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .wrap { padding: 0 22px; }
  .main-nav {
    position: fixed; top: 80px; right: 0; left: 0;
    background: var(--bg-950); flex-direction: column; align-items: stretch;
    padding: 16px 22px 28px; gap: 2px; display: none; border-bottom: 1px solid var(--line);
  }
  .main-nav.open { display: flex; }
  .nav-link { padding: 13px 10px; font-size: 14px; }
  .dropdown-menu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; background: transparent; padding: 0 0 0 16px; }
  .nav-toggle { display: block; }
  .header-cta { display: none; }
  .header-inner { gap: 16px; }
  .hero { min-height: 540px; height: 76vh; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat { border-left: 0; border-top: 1px solid var(--line); padding: 26px 12px; }
  .stat-value { font-size: 24px; }
  .section { padding: 64px 0; }
  .service-row { grid-template-columns: 1fr; }
  .service-row-body { padding: 0 28px 32px; }
  .check-list { grid-template-columns: 1fr; }
  .photo-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .form-row { grid-template-columns: 1fr; }
  .download-grid { grid-template-columns: 1fr; }
  .service-grid { grid-template-columns: 1fr; }
  .cert-grid { grid-template-columns: repeat(2, 1fr); }
  .cert-strip { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .cta-band-inner { justify-content: center; text-align: center; }
  .showcase-item figcaption { font-size: 13px; padding: 56px 5vw 22px; }
  .home-intro { padding: 48px 0 44px; }
  .intro-p { font-size: 14px; }
  .intro-lead { font-size: 16px; }
}

.footer-badge {
  display: block; width: 100%; max-width: 300px; height: auto; margin-top: 22px;
  border: 1px solid rgba(255,255,255,.16); border-radius: 10px; padding: 8px 10px;
  box-sizing: border-box;
}
