/* ============================================
   大成足場工業 - TAISEI ASHIBA KOGYO
   Steel Industrial Design System
   ============================================ */

:root {
  --charcoal: #1E1E1E;
  --steel: #4682B4;
  --steel-dark: #3A6F9A;
  --steel-light: #5A9BD5;
  --light: #F0F0F0;
  --white: #FFFFFF;
  --gray-100: #F8F8F8;
  --gray-200: #E8E8E8;
  --gray-300: #D0D0D0;
  --gray-500: #888888;
  --gray-700: #444444;
  --gray-800: #2A2A2A;
  --gray-900: #1A1A1A;
  --font-en: 'Inter', sans-serif;
  --font-jp: 'Noto Sans JP', sans-serif;
  --ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

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

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

body {
  font-family: var(--font-jp);
  color: var(--charcoal);
  background: var(--white);
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; transition: color 0.3s var(--ease); }
button { border: none; cursor: pointer; background: none; font-family: inherit; }

.container { max-width: 1160px; margin: 0 auto; padding: 0 24px; }

.sp-only { display: none; }
@media (max-width: 768px) { .sp-only { display: inline; } }

/* Sample Banner */
.sample-banner {
  position: fixed; top: 0; left: 0; right: 0; z-index: 9999;
  background: var(--steel);
  color: var(--white);
  text-align: center;
  font-size: 13px;
  font-weight: 500;
  padding: 8px 16px;
  letter-spacing: 0.04em;
}
.sample-banner a { color: var(--white); text-decoration: underline; font-weight: 700; }

/* ---- Header ---- */
.header {
  position: fixed; top: 36px; left: 0; right: 0; z-index: 1000;
  background: rgba(30, 30, 30, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: background 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.header.scrolled {
  background: rgba(30, 30, 30, 0.98);
  box-shadow: 0 2px 24px rgba(0,0,0,0.3);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 32px; height: 72px;
}
.logo { display: flex; align-items: center; gap: 12px; }
.logo-text { display: flex; flex-direction: column; }
.logo-main { font-size: 18px; font-weight: 900; color: var(--white); letter-spacing: 0.08em; line-height: 1.2; }
.logo-sub { font-family: var(--font-en); font-size: 10px; font-weight: 600; color: var(--steel-light); letter-spacing: 0.15em; text-transform: uppercase; }

.nav-desktop { display: flex; align-items: center; gap: 28px; }
.nav-desktop a {
  font-size: 13px; font-weight: 500; color: rgba(255,255,255,0.75);
  letter-spacing: 0.04em; transition: color 0.3s var(--ease);
  position: relative;
}
.nav-desktop a::after {
  content: ''; position: absolute; bottom: -4px; left: 0; width: 0; height: 2px;
  background: var(--steel); transition: width 0.3s var(--ease);
}
.nav-desktop a:hover { color: var(--white); }
.nav-desktop a:hover::after { width: 100%; }
.nav-cta {
  background: var(--steel) !important;
  color: var(--white) !important;
  padding: 10px 24px !important;
  border-radius: 2px;
  font-weight: 600 !important;
}
.nav-desktop a.active-link { color: var(--white); }
.nav-desktop a.active-link::after { width: 100%; }
.nav-cta.active-link::after { width: 0 !important; }
.nav-cta::after { display: none !important; }
.nav-cta:hover { background: var(--steel-light) !important; }

/* Hamburger */
.hamburger { display: none; width: 32px; height: 24px; position: relative; z-index: 1001; }
.hamburger span {
  display: block; position: absolute; left: 0; width: 100%; height: 2px;
  background: var(--white); transition: all 0.35s var(--ease);
}
.hamburger span:nth-child(1) { top: 0; }
.hamburger span:nth-child(2) { top: 50%; transform: translateY(-50%); }
.hamburger span:nth-child(3) { bottom: 0; }
.hamburger.active span:nth-child(1) { top: 50%; transform: translateY(-50%) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { bottom: 50%; transform: translateY(50%) rotate(-45deg); }

@media (max-width: 900px) {
  .nav-desktop { display: none; }
  .hamburger { display: block; }
}

/* Mobile Nav */
.nav-mobile {
  position: fixed; top: 0; left: 0; right: 0; bottom: 0; z-index: 999;
  background: rgba(30, 30, 30, 0.97);
  backdrop-filter: blur(16px);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden;
  transition: opacity 0.4s var(--ease), visibility 0.4s var(--ease);
}
.nav-mobile.active { opacity: 1; visibility: visible; }
.nav-mobile-inner { text-align: center; }
.nav-mobile-link {
  display: block; font-size: 20px; font-weight: 700; color: var(--white);
  padding: 14px 0; letter-spacing: 0.06em;
  transform: translateY(20px); opacity: 0;
  transition: transform 0.4s var(--ease-out), opacity 0.4s var(--ease), color 0.3s;
}
.nav-mobile.active .nav-mobile-link {
  transform: translateY(0); opacity: 1;
}
.nav-mobile.active .nav-mobile-link:nth-child(1) { transition-delay: 0.08s; }
.nav-mobile.active .nav-mobile-link:nth-child(2) { transition-delay: 0.12s; }
.nav-mobile.active .nav-mobile-link:nth-child(3) { transition-delay: 0.16s; }
.nav-mobile.active .nav-mobile-link:nth-child(4) { transition-delay: 0.20s; }
.nav-mobile.active .nav-mobile-link:nth-child(5) { transition-delay: 0.24s; }
.nav-mobile.active .nav-mobile-link:nth-child(6) { transition-delay: 0.28s; }
.nav-mobile.active .nav-mobile-link:nth-child(7) { transition-delay: 0.32s; }
.nav-mobile-link:hover { color: var(--steel-light); }
.nav-mobile-cta {
  display: inline-block !important;
  background: var(--steel);
  padding: 14px 48px !important;
  margin-top: 12px;
  border-radius: 2px;
}
.nav-mobile-tel {
  margin-top: 32px;
  transform: translateY(20px); opacity: 0;
  transition: transform 0.4s var(--ease-out) 0.36s, opacity 0.4s var(--ease) 0.36s;
}
.nav-mobile.active .nav-mobile-tel { transform: translateY(0); opacity: 1; }
.nav-mobile-tel span { display: block; font-size: 12px; color: var(--gray-500); }
.nav-mobile-tel a { font-family: var(--font-en); font-size: 28px; font-weight: 700; color: var(--steel-light); }

/* ---- Buttons ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 16px 36px; font-size: 15px; font-weight: 700;
  letter-spacing: 0.06em; border-radius: 2px;
  transition: all 0.3s var(--ease);
}
.btn-primary { background: var(--steel); color: var(--white); }
.btn-primary:hover { background: var(--steel-light); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(70,130,180,0.3); }
.btn-ghost { border: 2px solid rgba(255,255,255,0.5); color: var(--white); }
.btn-ghost:hover { border-color: var(--white); background: rgba(255,255,255,0.1); }
.btn-full { width: 100%; }

/* ---- Section Labels ---- */
.section-label {
  font-family: var(--font-en); font-size: 12px; font-weight: 700;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--steel); margin-bottom: 12px;
}
.section-label-light { color: var(--steel-light); }
.section-title {
  font-size: clamp(28px, 4vw, 44px); font-weight: 900;
  line-height: 1.3; letter-spacing: 0.02em;
  margin-bottom: 20px;
}
.section-title-center { text-align: center; }
.section-title-light { color: var(--white); }
.section-desc {
  text-align: center; font-size: 16px; color: var(--gray-500);
  margin-bottom: 48px; letter-spacing: 0.04em;
}
.section-desc-light { color: rgba(255,255,255,0.6); }

/* ---- Hero ---- */
.hero {
  position: relative; min-height: 100vh;
  display: flex; align-items: center;
  overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; }
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(20,20,20,0.85) 0%, rgba(30,30,30,0.6) 50%, rgba(20,20,20,0.8) 100%);
}
.hero-grid-lines {
  position: absolute; inset: 0; display: flex; justify-content: space-between;
  padding: 0 10%;
  pointer-events: none;
}
.grid-line {
  width: 1px; height: 100%;
  background: linear-gradient(to bottom, transparent 0%, rgba(70,130,180,0.1) 30%, rgba(70,130,180,0.05) 70%, transparent 100%);
}
.hero-content {
  position: relative; z-index: 2;
  padding: 140px 48px 80px;
  max-width: 800px;
}
.hero-label {
  font-family: var(--font-en); font-size: 13px; font-weight: 700;
  letter-spacing: 0.25em; color: var(--steel-light);
  margin-bottom: 24px;
  opacity: 0; animation: fadeUp 0.8s var(--ease-out) 0.3s forwards;
}
.hero-title {
  font-size: clamp(36px, 6vw, 64px);
  font-weight: 900; color: var(--white);
  line-height: 1.25; letter-spacing: 0.04em;
  margin-bottom: 24px;
  opacity: 0; animation: fadeUp 0.8s var(--ease-out) 0.5s forwards;
}
.hero-desc {
  font-size: 16px; color: rgba(255,255,255,0.7);
  line-height: 2; margin-bottom: 40px;
  opacity: 0; animation: fadeUp 0.8s var(--ease-out) 0.7s forwards;
}
.hero-actions {
  display: flex; gap: 16px; flex-wrap: wrap;
  margin-bottom: 56px;
  opacity: 0; animation: fadeUp 0.8s var(--ease-out) 0.9s forwards;
}
.hero-stats-bar {
  display: flex; gap: 40px; align-items: center;
  opacity: 0; animation: fadeUp 0.8s var(--ease-out) 1.1s forwards;
}
.hero-stat { display: flex; flex-direction: column; }
.hero-stat-num { font-family: var(--font-en); font-size: 36px; font-weight: 900; color: var(--white); line-height: 1; }
.hero-stat-unit { font-size: 14px; color: var(--steel-light); font-weight: 700; display: inline; }
.hero-stat-label { font-size: 12px; color: rgba(255,255,255,0.5); margin-top: 4px; }
.hero-stat-divider { width: 1px; height: 40px; background: rgba(255,255,255,0.15); }

.hero-scroll {
  position: absolute; bottom: 40px; left: 48px; z-index: 2;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  opacity: 0; animation: fadeIn 1s var(--ease) 1.5s forwards;
}
.hero-scroll span { font-family: var(--font-en); font-size: 10px; letter-spacing: 0.2em; color: rgba(255,255,255,0.4); writing-mode: vertical-rl; }
.hero-scroll-line { width: 1px; height: 60px; background: rgba(255,255,255,0.3); position: relative; overflow: hidden; }
.hero-scroll-line::after {
  content: ''; position: absolute; top: -100%; left: 0; width: 1px; height: 100%;
  background: var(--steel-light);
  animation: scrollLine 2s var(--ease) infinite;
}

@keyframes fadeUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes scrollLine { 0% { top: -100%; } 100% { top: 200%; } }

/* ---- About ---- */
.about { padding: 120px 0; }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.about .section-title { margin-bottom: 32px; }
.about-lead { margin-bottom: 40px; }
.about-lead p { font-size: 15px; color: var(--gray-700); margin-bottom: 16px; line-height: 2; }
.about-features { display: flex; flex-direction: column; gap: 20px; }
.about-feature {
  display: flex; align-items: flex-start; gap: 16px;
  padding: 20px; background: var(--gray-100); border-left: 3px solid var(--steel);
}
.about-feature strong { display: block; font-size: 15px; font-weight: 700; margin-bottom: 2px; }
.about-feature span { font-size: 13px; color: var(--gray-500); }
.about-feature svg { flex-shrink: 0; margin-top: 2px; }

.about-visual { position: relative; }
.about-img-wrapper {
  position: relative; overflow: hidden;
  aspect-ratio: 4/5;
}
.about-img-wrapper img { width: 100%; height: 100%; object-fit: cover; }
.about-img-wrapper::after {
  content: ''; position: absolute; inset: 0;
  border: 2px solid var(--steel); opacity: 0.3;
  transform: translate(12px, 12px);
  pointer-events: none;
}
.about-badge {
  position: absolute; bottom: -24px; left: -24px;
  width: 120px; height: 120px;
  background: var(--charcoal); color: var(--white);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
}
.about-badge-num { font-family: var(--font-en); font-size: 42px; font-weight: 900; line-height: 1; color: var(--steel-light); }
.about-badge-text { font-family: var(--font-en); font-size: 10px; font-weight: 600; letter-spacing: 0.1em; text-align: center; line-height: 1.4; text-transform: uppercase; }

/* ---- Services ---- */
.services { padding: 120px 0; background: var(--gray-100); }
.services-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px;
}
.service-card {
  background: var(--white); padding: 40px 28px;
  border: 1px solid var(--gray-200);
  position: relative; overflow: hidden;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
  opacity: 0; transform: translateY(30px);
}
.service-card.visible { opacity: 1; transform: translateY(0); transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out); }
.service-card:hover { transform: translateY(-4px); box-shadow: 0 16px 48px rgba(0,0,0,0.08); }
.service-card::before {
  content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 3px;
  background: var(--steel); transform: scaleX(0); transform-origin: left;
  transition: transform 0.4s var(--ease);
}
.service-card:hover::before { transform: scaleX(1); }
.service-icon { margin-bottom: 24px; }
.service-card h3 { font-size: 18px; font-weight: 900; margin-bottom: 12px; letter-spacing: 0.04em; }
.service-card p { font-size: 14px; color: var(--gray-700); line-height: 1.9; }
.service-tag {
  display: inline-block; margin-top: 16px;
  font-size: 11px; font-weight: 700; color: var(--steel);
  padding: 4px 12px; border: 1px solid var(--steel); letter-spacing: 0.06em;
}
.service-card-wide { grid-column: span 2; display: grid; grid-template-columns: auto 1fr; gap: 28px; align-items: start; }
.service-card-wide .service-icon { margin-bottom: 0; }
.service-card-wide .service-tag { grid-column: 2; }

/* ---- Safety ---- */
.safety { padding: 120px 0; background: var(--charcoal); }
.safety-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.safety-card {
  padding: 40px 28px; border: 1px solid rgba(255,255,255,0.1);
  position: relative;
  opacity: 0; transform: translateY(30px);
  transition: border-color 0.3s var(--ease);
}
.safety-card.visible { opacity: 1; transform: translateY(0); transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out), border-color 0.3s var(--ease); }
.safety-card:hover { border-color: var(--steel); }
.safety-num {
  font-family: var(--font-en); font-size: 48px; font-weight: 900;
  color: rgba(70,130,180,0.2); line-height: 1; margin-bottom: 20px;
}
.safety-card h3 { font-size: 17px; font-weight: 900; color: var(--white); margin-bottom: 12px; }
.safety-card p { font-size: 14px; color: rgba(255,255,255,0.55); line-height: 1.9; }

/* ---- Works ---- */
.works { padding: 120px 0; }
.works-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.work-card {
  overflow: hidden;
  opacity: 0; transform: translateY(30px);
  transition: transform 0.4s var(--ease);
}
.work-card.visible { opacity: 1; transform: translateY(0); transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out); }
.work-img {
  position: relative; overflow: hidden;
  aspect-ratio: 16/11;
}
.work-img img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.6s var(--ease);
}
.work-card:hover .work-img img { transform: scale(1.05); }
.work-overlay {
  position: absolute; top: 16px; left: 16px;
}
.work-category {
  background: var(--steel); color: var(--white);
  font-size: 11px; font-weight: 700; padding: 6px 14px;
  letter-spacing: 0.06em;
}
.work-info { padding: 24px 4px; }
.work-info h3 { font-size: 17px; font-weight: 900; margin-bottom: 10px; letter-spacing: 0.02em; }
.work-info p { font-size: 14px; color: var(--gray-700); line-height: 1.8; margin-bottom: 12px; }
.work-meta { display: flex; gap: 16px; }
.work-meta span {
  font-size: 12px; color: var(--gray-500); font-weight: 500;
  padding: 4px 10px; background: var(--gray-100); letter-spacing: 0.02em;
}

/* ---- Numbers ---- */
.numbers { position: relative; padding: 120px 0; overflow: hidden; }
.numbers-bg { position: absolute; inset: 0; }
.numbers-bg img { width: 100%; height: 100%; object-fit: cover; }
.numbers-overlay {
  position: absolute; inset: 0;
  background: rgba(20,20,20,0.88);
}
.numbers .container { position: relative; z-index: 2; }
.numbers-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; text-align: center; }
.number-item {
  padding: 40px 20px;
  border: 1px solid rgba(255,255,255,0.1);
  opacity: 0; transform: translateY(30px);
}
.number-item.visible { opacity: 1; transform: translateY(0); transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out); }
.number-value {
  font-family: var(--font-en); font-size: clamp(40px, 5vw, 56px);
  font-weight: 900; color: var(--white); line-height: 1;
}
.number-unit { font-size: 18px; font-weight: 700; color: var(--steel-light); margin-left: 4px; }
.number-label { display: block; font-size: 14px; color: rgba(255,255,255,0.5); margin-top: 8px; }

/* ---- Flow ---- */
.flow { padding: 120px 0; background: var(--gray-100); }
.flow-steps { max-width: 760px; margin: 0 auto; position: relative; }
.flow-steps::before {
  content: ''; position: absolute; left: 32px; top: 0; bottom: 0;
  width: 2px; background: var(--gray-200);
}
.flow-step {
  display: flex; gap: 32px; margin-bottom: 40px;
  position: relative;
  opacity: 0; transform: translateY(30px);
}
.flow-step.visible { opacity: 1; transform: translateY(0); transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out); }
.flow-step:last-child { margin-bottom: 0; }
.flow-step-num {
  flex-shrink: 0; width: 64px; height: 64px;
  display: flex; align-items: center; justify-content: center;
  background: var(--charcoal); color: var(--white);
  font-family: var(--font-en); font-size: 18px; font-weight: 900;
  position: relative; z-index: 1;
}
.flow-step-content {
  padding: 20px 28px; background: var(--white);
  border-left: 3px solid var(--steel); flex: 1;
}
.flow-step-content h3 { font-size: 17px; font-weight: 900; margin-bottom: 8px; }
.flow-step-content p { font-size: 14px; color: var(--gray-700); line-height: 1.9; }

/* ---- CTA Banner ---- */
.cta-banner {
  padding: 80px 0;
  background: linear-gradient(135deg, var(--steel-dark) 0%, var(--steel) 100%);
  position: relative;
  overflow: hidden;
}

.cta-banner::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 400px;
  height: 400px;
  border: 60px solid rgba(255,255,255,0.05);
  border-radius: 50%;
  pointer-events: none;
}

.cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

.cta-title {
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 900;
  color: var(--white);
  line-height: 1.4;
  margin-bottom: 8px;
}

.cta-desc {
  font-size: 15px;
  color: rgba(255,255,255,0.75);
  line-height: 1.8;
}

.cta-actions {
  display: flex;
  gap: 16px;
  flex-shrink: 0;
}

.cta-tel-btn {
  border-color: rgba(255,255,255,0.6) !important;
  font-family: var(--font-en);
  font-weight: 700;
  font-size: 18px;
}

@media (max-width: 768px) {
  .cta-inner {
    flex-direction: column;
    text-align: center;
  }

  .cta-actions {
    flex-direction: column;
    width: 100%;
  }

  .cta-actions .btn {
    width: 100%;
  }
}

/* ---- Company ---- */
.company { padding: 120px 0; }
.company-table-wrap { max-width: 800px; margin: 0 auto; }
.company-table { width: 100%; border-collapse: collapse; }
.company-table th,
.company-table td {
  padding: 20px 24px; text-align: left; font-size: 15px;
  border-bottom: 1px solid var(--gray-200);
  vertical-align: top;
}
.company-table th {
  width: 160px; font-weight: 700; color: var(--charcoal);
  background: var(--gray-100); white-space: nowrap;
}
.company-table td { color: var(--gray-700); line-height: 1.8; }

/* ---- Contact ---- */
.contact { padding: 120px 0; background: var(--charcoal); }
.contact-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 56px; align-items: start; }
.contact-tel-block { margin-bottom: 36px; }
.contact-tel-label { display: block; font-size: 13px; color: rgba(255,255,255,0.5); margin-bottom: 8px; }
.contact-tel {
  font-family: var(--font-en); font-size: 32px; font-weight: 900;
  color: var(--white); display: block; letter-spacing: 0.04em;
}
.contact-tel-hours { display: block; font-size: 13px; color: rgba(255,255,255,0.4); margin-top: 4px; }
.contact-points { display: flex; flex-direction: column; gap: 12px; }
.contact-point { display: flex; align-items: center; gap: 10px; color: rgba(255,255,255,0.7); font-size: 14px; }

.contact-form { display: flex; flex-direction: column; gap: 20px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label { font-size: 13px; font-weight: 700; color: rgba(255,255,255,0.7); }
.required {
  background: var(--steel); color: var(--white);
  font-size: 10px; padding: 2px 6px; margin-left: 8px;
  font-weight: 700; vertical-align: middle;
}
.form-group input,
.form-group select,
.form-group textarea {
  padding: 14px 16px; font-size: 15px; font-family: var(--font-jp);
  background: var(--gray-800); color: var(--white);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 2px; outline: none;
  transition: border-color 0.3s var(--ease);
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: rgba(255,255,255,0.25); }
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { border-color: var(--steel); }
.form-group select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23888' fill='none' stroke-width='1.5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; }
.form-group select option { background: var(--gray-800); }

/* ---- Footer ---- */
.footer { background: var(--gray-900); padding: 60px 0 0; }
.footer-top { display: flex; justify-content: space-between; align-items: start; padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,0.08); }
.footer-brand .logo { margin-bottom: 16px; }
.footer-address { font-size: 13px; color: rgba(255,255,255,0.4); line-height: 1.8; }
.footer-nav { display: flex; gap: 24px; flex-wrap: wrap; }
.footer-nav a { font-size: 13px; color: rgba(255,255,255,0.5); transition: color 0.3s; }
.footer-nav a:hover { color: var(--white); }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding: 24px 0;
}
.footer-bottom p { font-size: 12px; color: rgba(255,255,255,0.3); }
.footer-credit a { color: var(--steel-light); text-decoration: underline; }

/* ---- Responsive ---- */
@media (max-width: 1024px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .service-card-wide { grid-column: span 2; }
  .safety-grid { grid-template-columns: repeat(2, 1fr); }
  .numbers-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .header { top: 32px; }
  .header-inner { padding: 0 20px; height: 64px; }
  .logo-main { font-size: 16px; }

  .hero-content { padding: 130px 24px 60px; }
  .hero-title { margin-bottom: 20px; }
  .hero-stats-bar { gap: 24px; flex-wrap: wrap; }
  .hero-stat-num { font-size: 28px; }
  .hero-scroll { display: none; }

  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .about-visual { order: -1; }
  .about-badge { bottom: -16px; left: auto; right: 16px; width: 96px; height: 96px; }
  .about-badge-num { font-size: 32px; }

  .services-grid { grid-template-columns: 1fr; }
  .service-card-wide { grid-column: span 1; grid-template-columns: 1fr; }
  .service-card-wide .service-tag { grid-column: 1; }

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

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

  .numbers-grid { grid-template-columns: 1fr 1fr; gap: 16px; }
  .number-item { padding: 28px 16px; }

  .flow-steps::before { left: 24px; }
  .flow-step { gap: 20px; }
  .flow-step-num { width: 48px; height: 48px; font-size: 15px; }

  .company-table th { width: 100px; padding: 16px 12px; font-size: 13px; }
  .company-table td { padding: 16px 12px; font-size: 14px; }

  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .form-row { grid-template-columns: 1fr; }

  .footer-top { flex-direction: column; gap: 32px; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
}

@media (max-width: 480px) {
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; }
  .numbers-grid { grid-template-columns: 1fr; }
}

/* ---- Steel Pipe Decorative Elements ---- */
.services .section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background: var(--steel);
  margin: 16px auto 0;
}

.works .section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background: var(--steel);
  margin: 16px auto 0;
}

.flow .section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background: var(--steel);
  margin: 16px auto 0;
}

.company .section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background: var(--steel);
  margin: 16px auto 0;
}

/* ---- Service Card Hover States ---- */
.service-card h3 {
  transition: color 0.3s var(--ease);
}

.service-card:hover h3 {
  color: var(--steel);
}

.service-icon svg {
  transition: transform 0.4s var(--ease);
}

.service-card:hover .service-icon svg {
  transform: scale(1.08);
}

/* ---- Work Card Enhanced States ---- */
.work-img::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(30,30,30,0.4) 0%, transparent 50%);
  transition: opacity 0.4s var(--ease);
}

.work-card:hover .work-img::after {
  opacity: 0.6;
}

.work-info h3 {
  transition: color 0.3s var(--ease);
}

.work-card:hover .work-info h3 {
  color: var(--steel);
}

/* ---- Safety Card Glow ---- */
.safety-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--steel), transparent);
  opacity: 0;
  transition: opacity 0.4s var(--ease);
}

.safety-card:hover::before {
  opacity: 1;
}

.safety-card:hover .safety-num {
  color: rgba(70,130,180,0.4);
  transition: color 0.4s var(--ease);
}

/* ---- Number Item Hover ---- */
.number-item {
  transition: border-color 0.4s var(--ease), background 0.4s var(--ease);
}

.number-item:hover {
  border-color: rgba(70,130,180,0.4);
  background: rgba(70,130,180,0.05);
}

/* ---- Flow Step Hover ---- */
.flow-step-num {
  transition: background 0.3s var(--ease);
}

.flow-step:hover .flow-step-num {
  background: var(--steel);
}

.flow-step-content {
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.flow-step:hover .flow-step-content {
  border-color: var(--steel-light);
  box-shadow: 0 4px 20px rgba(0,0,0,0.04);
}

/* ---- Company Table Hover ---- */
.company-table tr {
  transition: background 0.3s var(--ease);
}

.company-table tr:hover {
  background: rgba(70,130,180,0.03);
}

/* ---- Contact Form Focus States ---- */
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--steel);
  box-shadow: 0 0 0 3px rgba(70,130,180,0.15);
}

.btn-primary {
  position: relative;
  overflow: hidden;
}

.btn-primary::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(255,255,255,0.15);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.5s var(--ease), height 0.5s var(--ease);
}

.btn-primary:hover::after {
  width: 300px;
  height: 300px;
}

/* ---- About Feature Hover ---- */
.about-feature {
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease);
}

.about-feature:hover {
  background: var(--gray-200);
  border-left-color: var(--steel-light);
}

/* ---- Hero Stats Bar Responsive ---- */
@media (max-width: 480px) {
  .hero-stats-bar {
    flex-direction: column;
    gap: 16px;
    align-items: flex-start;
  }

  .hero-stat-divider {
    width: 40px;
    height: 1px;
  }

  .hero-stat {
    flex-direction: row;
    align-items: baseline;
    gap: 8px;
    flex-wrap: wrap;
  }

  .hero-stat-label {
    width: 100%;
  }
}

/* ---- Scroll-to-top hint ---- */
.footer-bottom {
  position: relative;
}

/* ---- Loading state for images ---- */
.work-img img,
.about-img-wrapper img {
  background: var(--gray-200);
  transition: transform 0.6s var(--ease), opacity 0.4s var(--ease);
}

/* ---- Print Styles ---- */
@media print {
  .sample-banner,
  .header,
  .nav-mobile,
  .hero-scroll,
  .hero-grid-lines,
  .hamburger {
    display: none !important;
  }

  body {
    color: #000;
    background: #fff;
  }

  .hero {
    min-height: auto;
    padding: 40px 0;
  }

  .hero-overlay {
    background: rgba(0,0,0,0.3) !important;
  }

  section {
    break-inside: avoid;
    padding: 40px 0 !important;
  }

  .safety,
  .contact {
    background: #f5f5f5 !important;
    color: #000 !important;
  }

  .safety-card h3,
  .section-title-light {
    color: #000 !important;
  }

  .safety-card p,
  .section-desc-light {
    color: #333 !important;
  }
}

/* ---- Selection Color ---- */
::selection {
  background: rgba(70,130,180,0.3);
  color: var(--charcoal);
}

::-moz-selection {
  background: rgba(70,130,180,0.3);
  color: var(--charcoal);
}

/* ---- Scrollbar Styling ---- */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--gray-900);
}

::-webkit-scrollbar-thumb {
  background: var(--gray-700);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--steel);
}

/* ---- Focus Visible for Accessibility ---- */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--steel);
  outline-offset: 2px;
}

/* ---- Reduced Motion ---- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  html {
    scroll-behavior: auto;
  }

  .hero-scroll-line::after {
    animation: none;
  }
}

/* ---- Animations data-aos ---- */
[data-aos] {
  opacity: 0;
  transform: translateY(30px);
}
[data-aos].visible {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
}
