/* ============================================
   RYOSAN Manufacturing - Style Sheet
   ============================================ */

/* --- Reset & Base --- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 16px;
  line-height: 1.8;
  color: #111111;
  background: #FFFFFF;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }
table { width: 100%; border-collapse: collapse; }

/* --- Utility --- */
.container { max-width: 1100px; 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;
  width: 100%;
  background: #FF6B00;
  color: #fff;
  text-align: center;
  font-size: 13px;
  font-weight: 700;
  padding: 6px 16px;
  z-index: 9999;
  letter-spacing: 0.04em;
}

/* --- Header --- */
.header {
  position: fixed;
  top: 32px;
  left: 0;
  width: 100%;
  z-index: 1000;
  transition: background 0.3s, box-shadow 0.3s, top 0.3s;
}
.header.scrolled {
  background: rgba(255,255,255,0.97);
  box-shadow: 0 2px 20px rgba(0,0,0,0.08);
  backdrop-filter: blur(10px);
}
.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}
.logo-text {
  font-family: 'Barlow', sans-serif;
  font-weight: 900;
  font-size: 24px;
  letter-spacing: 0.08em;
  color: #111;
}
.header:not(.scrolled) .logo-text { color: #fff; }
.header:not(.scrolled) .logo-mark polygon,
.header:not(.scrolled) .logo-mark rect { fill: #fff; }

/* Desktop Nav */
.nav-desktop {
  display: flex;
  align-items: center;
  gap: 28px;
}
.nav-desktop a {
  font-size: 14px;
  font-weight: 500;
  color: #111;
  letter-spacing: 0.02em;
  position: relative;
  transition: color 0.3s;
}
.header:not(.scrolled) .nav-desktop a { color: #fff; }
.nav-desktop a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: #FF6B00;
  transition: width 0.3s;
}
.nav-desktop a:hover::after,
.nav-desktop a.active::after { width: 100%; }
.nav-cta {
  background: #FF6B00 !important;
  color: #fff !important;
  padding: 8px 20px;
  border-radius: 4px;
  font-weight: 700 !important;
  transition: background 0.3s !important;
}
.nav-cta:hover { background: #e55f00 !important; }
.nav-cta::after { display: none !important; }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 1100;
}
.hamburger span {
  display: block;
  width: 28px;
  height: 2px;
  background: #111;
  transition: transform 0.3s, opacity 0.3s;
}
.header:not(.scrolled) .hamburger span { background: #fff; }
.hamburger.active span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
.hamburger.active span { background: #111; }

/* Mobile Nav */
.mobile-nav {
  position: fixed;
  top: 0;
  right: -100%;
  width: 100%;
  height: 100vh;
  background: rgba(255,255,255,0.98);
  backdrop-filter: blur(12px);
  z-index: 1050;
  transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  align-items: center;
  justify-content: center;
}
.mobile-nav.active { right: 0; }
.mobile-nav nav {
  display: flex;
  flex-direction: column;
  gap: 32px;
  text-align: center;
}
.mobile-nav a {
  font-size: 20px;
  font-weight: 700;
  color: #111;
  letter-spacing: 0.04em;
}

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

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  font-size: 15px;
  font-weight: 700;
  border-radius: 4px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.3s;
  letter-spacing: 0.04em;
}
.btn-primary {
  background: #FF6B00;
  color: #fff;
  border-color: #FF6B00;
}
.btn-primary:hover { background: #e55f00; border-color: #e55f00; }
.btn-outline {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,0.5);
}
.btn-outline:hover {
  background: rgba(255,255,255,0.1);
  border-color: #fff;
}
.btn-full { width: 100%; }

/* --- 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(0,0,0,0.7) 0%, rgba(0,0,0,0.3) 100%);
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1100px;
  margin: 0 auto;
  padding: 120px 24px 80px;
}
.hero-sub {
  font-family: 'Barlow', sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: #FF6B00;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.hero-title {
  font-size: clamp(36px, 6vw, 64px);
  font-weight: 900;
  color: #fff;
  line-height: 1.2;
  margin-bottom: 20px;
  letter-spacing: 0.02em;
}
.hero-desc {
  font-size: 17px;
  color: rgba(255,255,255,0.8);
  margin-bottom: 36px;
  line-height: 1.8;
}
.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 60px;
}
.hero-stats {
  display: flex;
  gap: 48px;
  flex-wrap: wrap;
}
.hero-stat {
  display: flex;
  flex-direction: column;
}
.hero-stat-num {
  font-family: 'Barlow', sans-serif;
  font-size: 48px;
  font-weight: 900;
  color: #FF6B00;
  line-height: 1;
}
.hero-stat-unit {
  font-size: 16px;
  color: rgba(255,255,255,0.8);
  font-weight: 500;
}
.hero-stat-label {
  font-size: 13px;
  color: rgba(255,255,255,0.5);
  margin-top: 4px;
}
.hero-scroll {
  position: absolute;
  bottom: 40px;
  right: 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  z-index: 2;
}
.hero-scroll span {
  font-family: 'Barlow', sans-serif;
  font-size: 11px;
  color: rgba(255,255,255,0.5);
  letter-spacing: 0.15em;
  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: 100%;
  height: 100%;
  background: #FF6B00;
  animation: scrollLine 2s infinite;
}
@keyframes scrollLine {
  0% { top: -100%; }
  100% { top: 100%; }
}

/* --- Sections --- */
.section { padding: 100px 0; }
.section-dark { background: #f5f5f5; }
.section-label {
  font-family: 'Barlow', sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: #FF6B00;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.section-title {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 900;
  line-height: 1.3;
  margin-bottom: 20px;
  letter-spacing: 0.02em;
}
.section-desc {
  font-size: 16px;
  color: #666;
  max-width: 600px;
  margin-bottom: 48px;
}

/* --- About --- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.about-text p {
  margin-bottom: 16px;
  color: #444;
}
.about-icon-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}
.about-icon-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 24px;
  background: #f8f8f8;
  border-radius: 8px;
  transition: transform 0.3s, box-shadow 0.3s;
}
.about-icon-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}
.about-icon-item span {
  font-size: 14px;
  font-weight: 700;
  color: #111;
}

/* --- Numbers --- */
.numbers { padding: 72px 0; }
.numbers-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  text-align: center;
}
.number-item {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.number-val {
  font-family: 'Barlow', sans-serif;
  font-size: 56px;
  font-weight: 900;
  color: #FF6B00;
  line-height: 1;
}
.number-unit {
  font-size: 16px;
  color: #666;
  font-weight: 500;
  margin-top: 4px;
}
.number-label {
  font-size: 14px;
  color: #888;
  margin-top: 8px;
  font-weight: 500;
}
@media (max-width: 768px) {
  .numbers-grid { grid-template-columns: repeat(2, 1fr); gap: 40px 20px; }
  .number-val { font-size: 42px; }
}

/* --- Equipment --- */
.equip-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}
.equip-card {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
}
.equip-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.1);
}
.equip-img {
  height: 220px;
  overflow: hidden;
}
.equip-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}
.equip-card:hover .equip-img img { transform: scale(1.05); }
.equip-info { padding: 24px; }
.equip-info h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 4px;
}
.equip-model {
  font-family: 'Barlow', sans-serif;
  font-size: 13px;
  color: #FF6B00;
  font-weight: 600;
  margin-bottom: 12px;
}
.equip-specs li {
  font-size: 14px;
  color: #555;
  padding: 4px 0;
  padding-left: 16px;
  position: relative;
}
.equip-specs li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 12px;
  width: 6px;
  height: 6px;
  background: #FF6B00;
  border-radius: 50%;
}

/* --- Services --- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}
.service-card {
  padding: 36px 24px;
  background: #f8f8f8;
  border-radius: 8px;
  transition: transform 0.3s, box-shadow 0.3s;
  border-top: 3px solid transparent;
}
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.08);
  border-top-color: #FF6B00;
  background: #fff;
}
.service-icon { margin-bottom: 20px; }
.service-card h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 12px;
}
.service-card p {
  font-size: 14px;
  color: #555;
  line-height: 1.8;
  margin-bottom: 16px;
}
.service-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.service-tags li {
  font-size: 12px;
  padding: 4px 10px;
  background: rgba(255,107,0,0.08);
  color: #FF6B00;
  border-radius: 20px;
  font-weight: 500;
}

/* --- Works --- */
.works-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.work-card {
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
  transition: transform 0.3s, box-shadow 0.3s;
}
.work-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.1);
}
.work-img {
  position: relative;
  height: 240px;
  overflow: hidden;
}
.work-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}
.work-card:hover .work-img img { transform: scale(1.05); }
.work-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 12px 16px;
  background: linear-gradient(transparent, rgba(0,0,0,0.7));
}
.work-cat {
  font-size: 12px;
  color: #FF6B00;
  font-weight: 700;
}
.work-info {
  padding: 20px;
}
.work-info h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 8px;
}
.work-info p {
  font-size: 13px;
  color: #666;
  line-height: 1.7;
}

/* --- Speed --- */
.speed-compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  margin-bottom: 32px;
}
.speed-col h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 24px;
  padding-bottom: 12px;
  border-bottom: 2px solid #eee;
}
.speed-us h3 { border-bottom-color: #FF6B00; }
.speed-bar {
  margin-bottom: 16px;
}
.speed-bar-fill {
  height: 44px;
  background: #ddd;
  border-radius: 4px;
  display: flex;
  align-items: center;
  padding: 0 16px;
  font-size: 14px;
  font-weight: 500;
  color: #555;
  width: 0;
  transition: width 1.2s cubic-bezier(0.4, 0, 0.2, 1);
  white-space: nowrap;
  overflow: visible;
}
.speed-bar-fill.accent {
  background: linear-gradient(90deg, #FF6B00, #ff8533);
  color: #fff;
}
.speed-note {
  text-align: center;
}
.speed-note p {
  font-size: 13px;
  color: #999;
}

/* --- Flow --- */
.flow-steps {
  max-width: 700px;
  margin: 48px auto 0;
  position: relative;
}
.flow-steps::before {
  content: '';
  position: absolute;
  left: 32px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: #ddd;
}
.flow-step {
  display: flex;
  gap: 28px;
  margin-bottom: 40px;
  position: relative;
}
.flow-step:last-child { margin-bottom: 0; }
.flow-num {
  flex-shrink: 0;
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Barlow', sans-serif;
  font-size: 20px;
  font-weight: 900;
  color: #FF6B00;
  background: #fff;
  border: 2px solid #FF6B00;
  border-radius: 50%;
  position: relative;
  z-index: 1;
}
.flow-content {
  padding-top: 8px;
}
.flow-content h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
}
.flow-content p {
  font-size: 14px;
  color: #555;
  line-height: 1.8;
}

/* --- CTA --- */
.cta { padding: 80px 0; background: #fff; }
.cta-box {
  background: linear-gradient(135deg, #111 0%, #222 100%);
  border-radius: 12px;
  padding: 60px;
  position: relative;
  overflow: hidden;
}
.cta-box::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(255,107,0,0.15) 0%, transparent 70%);
  border-radius: 50%;
}
.cta-content {
  position: relative;
  z-index: 1;
}
.cta-content h2 {
  font-size: clamp(24px, 3.5vw, 36px);
  color: #fff;
  font-weight: 900;
  margin-bottom: 16px;
  line-height: 1.4;
}
.cta-content p {
  color: rgba(255,255,255,0.7);
  font-size: 15px;
  margin-bottom: 32px;
  line-height: 1.8;
}
.cta-actions {
  display: flex;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
}
.cta-phone {
  display: flex;
  flex-direction: column;
}
.cta-phone-label {
  font-size: 12px;
  color: rgba(255,255,255,0.5);
}
.cta-phone-num {
  font-family: 'Barlow', sans-serif;
  font-size: 24px;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.04em;
}
@media (max-width: 768px) {
  .cta-box { padding: 40px 24px; }
  .cta-actions { flex-direction: column; align-items: flex-start; gap: 20px; }
  .cta-actions .btn { width: 100%; }
}

/* --- Company --- */
.company-table {
  max-width: 800px;
}
.company-table table { border-top: 2px solid #111; }
.company-table tr { border-bottom: 1px solid #eee; }
.company-table th {
  text-align: left;
  font-size: 14px;
  font-weight: 700;
  color: #111;
  padding: 16px 20px;
  width: 160px;
  vertical-align: top;
  background: #fafafa;
}
.company-table td {
  font-size: 14px;
  color: #444;
  padding: 16px 20px;
}

/* --- Contact --- */
.contact-grid {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 48px;
}
.contact-item {
  display: flex;
  gap: 16px;
  margin-bottom: 28px;
}
.contact-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,107,0,0.08);
  border-radius: 8px;
}
.contact-item h3 {
  font-size: 13px;
  font-weight: 700;
  color: #999;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.contact-val {
  font-size: 18px;
  font-weight: 700;
  color: #111;
}
.contact-sub {
  font-size: 13px;
  color: #888;
}

/* Contact Form */
.contact-form {
  background: #fff;
  padding: 36px;
  border-radius: 8px;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}
.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.form-group:not(.form-row .form-group) { margin-bottom: 20px; }
.form-group label {
  font-size: 13px;
  font-weight: 700;
  color: #333;
}
.req {
  font-size: 11px;
  color: #FF6B00;
  margin-left: 4px;
}
.form-group input,
.form-group textarea {
  padding: 12px 16px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 15px;
  font-family: 'Noto Sans JP', sans-serif;
  transition: border-color 0.3s;
  background: #fafafa;
}
.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #FF6B00;
  background: #fff;
}
.form-group textarea { resize: vertical; }

/* --- Footer --- */
.footer {
  background: #111;
  color: #fff;
  padding: 60px 0 0;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-brand p {
  font-size: 14px;
  color: rgba(255,255,255,0.5);
  margin-top: 16px;
  line-height: 1.7;
}
.footer .logo-text { color: #fff; }
.footer .logo-mark polygon,
.footer .logo-mark rect { fill: #FF6B00; }
.footer-nav {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}
.footer-nav a {
  font-size: 14px;
  color: rgba(255,255,255,0.6);
  transition: color 0.3s;
}
.footer-nav a:hover { color: #FF6B00; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
}
.footer-bottom p {
  font-size: 12px;
  color: rgba(255,255,255,0.4);
}
.footer-bottom a {
  color: rgba(255,255,255,0.4);
  transition: color 0.3s;
}
.footer-bottom a:hover { color: #FF6B00; }

/* --- Back to Top --- */
.back-to-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 48px;
  height: 48px;
  background: #FF6B00;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 900;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 0.3s, visibility 0.3s, transform 0.3s, background 0.3s;
  box-shadow: 0 4px 12px rgba(255,107,0,0.3);
}
.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.back-to-top:hover {
  background: #e55f00;
  transform: translateY(-2px);
}
@media (max-width: 768px) {
  .back-to-top { bottom: 20px; right: 20px; width: 42px; height: 42px; }
}

/* --- Animations --- */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s, transform 0.7s;
}
.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 1024px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .equip-grid { grid-template-columns: repeat(2, 1fr); }
}

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

  .hero-content { padding: 140px 20px 60px; }
  .hero-stats { gap: 28px; }
  .hero-stat-num { font-size: 36px; }
  .hero-scroll { display: none; }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .equip-grid { grid-template-columns: 1fr; }
  .equip-img { height: 180px; }

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

  .works-grid { grid-template-columns: 1fr; }
  .work-img { height: 200px; }

  .speed-compare {
    grid-template-columns: 1fr;
    gap: 32px;
  }

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

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

  .footer-inner {
    flex-direction: column;
    gap: 28px;
  }
  .footer-nav { gap: 16px; }
  .footer-bottom {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .hero-title { font-size: 30px; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; }
  .about-icon-grid { gap: 16px; }
  .about-icon-item { padding: 16px; }
  .section-title { font-size: 26px; }
  .equip-info h3 { font-size: 16px; }
  .service-card { padding: 28px 20px; }
  .flow-content h3 { font-size: 16px; }
  .company-table th {
    display: block;
    width: 100%;
    padding: 12px 16px 4px;
    background: transparent;
    border-bottom: none;
  }
  .company-table td {
    display: block;
    padding: 4px 16px 12px;
  }
  .company-table tr {
    display: block;
    border-bottom: 1px solid #eee;
  }
  .contact-val { font-size: 16px; }
  .sample-banner { font-size: 11px; padding: 5px 12px; }
}

/* --- Scrollbar --- */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #f1f1f1; }
::-webkit-scrollbar-thumb { background: #ccc; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #FF6B00; }

/* --- Selection --- */
::selection { background: rgba(255,107,0,0.15); color: #111; }

/* --- Loading shimmer for images --- */
.equip-img,
.work-img {
  background: linear-gradient(90deg, #eee 25%, #f5f5f5 50%, #eee 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
}
@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}
.equip-img img,
.work-img img {
  position: relative;
  z-index: 1;
}

/* --- Focus styles --- */
.form-group input:focus,
.form-group textarea:focus {
  box-shadow: 0 0 0 3px rgba(255,107,0,0.12);
}
.btn:focus-visible {
  outline: 2px solid #FF6B00;
  outline-offset: 2px;
}

/* --- Print --- */
@media print {
  .sample-banner,
  .header,
  .mobile-nav,
  .hero-scroll { display: none !important; }
  .hero { min-height: auto; page-break-after: always; }
  .section { padding: 32px 0; }
  .fade-up { opacity: 1 !important; transform: none !important; }
}

/* --- 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; }
  .fade-up { opacity: 1; transform: none; }
}

/* --- Hover media query (touch devices) --- */
@media (hover: none) {
  .equip-card:hover,
  .service-card:hover,
  .work-card:hover,
  .about-icon-item:hover {
    transform: none;
    box-shadow: none;
  }
  .nav-desktop a::after { display: none; }
}

/* --- High contrast adjustments --- */
@media (prefers-contrast: high) {
  .section-desc { color: #333; }
  .service-card p { color: #333; }
  .equip-specs li { color: #333; }
  .flow-content p { color: #333; }
  .about-text p { color: #222; }
  .footer-brand p { color: rgba(255,255,255,0.7); }
  .footer-nav a { color: rgba(255,255,255,0.8); }
}
