/* ===== 720 SCANNING - REPLACEMENT SITE - COMBINED CSS ===== */

/* ===== 720 SCANNING - REPLACEMENT SITE ===== */
/* CSS Part 1: Reset, Variables, Typography, Header */

/* --- CSS Custom Properties --- */
:root {
  --primary: #E8611F;
  --primary-dark: #D45518;
  --primary-light: #FF8A50;
  --dark: #1A1A2E;
  --dark-mid: #2D2D44;
  --dark-light: #3A3A55;
  --text: #2C2C2C;
  --text-light: #6B6B7B;
  --white: #FFFFFF;
  --off-white: #F8F8FA;
  --gray-bg: #F1F1F5;
  --border: #E2E2EA;
  --shadow: 0 4px 24px rgba(0,0,0,0.08);
  --shadow-lg: 0 12px 48px rgba(0,0,0,0.12);
  --radius: 12px;
  --radius-lg: 20px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--text);
  line-height: 1.6;
  background: var(--white);
  overflow-x: hidden;
}

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

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

ul, ol {
  list-style: none;
}

button, input, textarea {
  font-family: inherit;
  font-size: inherit;
}

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

@media (min-width: 768px) {
  .container {
    padding: 0 48px;
  }
}

@media (min-width: 1024px) {
  .container {
    padding: 0 64px;
  }
}


/* CSS Part 2: Typography, Buttons, Header/Nav */

/* --- Typography --- */
h1, h2, h3, h4, h5 {
  font-family: 'Avenir', 'Metropolis', 'Poppins', -apple-system, sans-serif;
  font-weight: 700;
  line-height: 1.2;
  color: var(--dark);
}

h1 { font-size: clamp(2.2rem, 5vw, 4rem); }
h2 { font-size: clamp(1.8rem, 4vw, 3rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.5rem); }
h4 { font-size: 1.125rem; }

p {
  color: var(--text-light);
  line-height: 1.75;
}

.section-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 12px;
}

.section-title {
  margin-bottom: 20px;
}

.section-subtitle {
  font-size: 1.1rem;
  max-width: 640px;
  margin: 0 auto 48px;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 32px;
  border: none;
  border-radius: 6px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}

.btn-primary {
  background: var(--primary);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(232, 97, 31, 0.35);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,0.4);
}

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

.btn-outline-dark {
  background: transparent;
  color: var(--dark);
  border: 2px solid var(--border);
}

.btn-outline-dark:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.btn-sm {
  padding: 10px 24px;
  font-size: 0.875rem;
}

/* --- Cross-page navigation transitions (keeps header from flashing on page load) --- */
@view-transition {
  navigation: auto;
}

/* --- Header / Navigation --- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 0 24px;
  transition: var(--transition);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  view-transition-name: site-header;
}

::view-transition-old(site-header),
::view-transition-new(site-header) {
  animation: none;
  mix-blend-mode: normal;
}

.site-header.scrolled {
  box-shadow: 0 2px 16px rgba(0,0,0,0.06);
  border-bottom-color: var(--border);
}

@media (min-width: 768px) {
  .site-header {
    padding: 0 48px;
  }
}

@media (min-width: 1024px) {
  .site-header {
    padding: 0 64px;
  }
}

.header-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.header-logo img {
  height: 38px;
  width: auto;
}

.nav-links {
  display: none;
  gap: 32px;
  align-items: center;
}

@media (min-width: 1024px) {
  .nav-links {
    display: flex;
  }
}

.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text);
  position: relative;
}

.nav-links a:hover {
  color: var(--primary);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: var(--transition);
}

.nav-links a:hover::after {
  width: 100%;
}

.header-cta {
  display: none;
}

@media (min-width: 1024px) {
  .header-cta {
    display: inline-flex;
  }
}

/* Mobile nav toggle */
.nav-toggle {
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 1001;
}

@media (min-width: 1024px) {
  .nav-toggle {
    display: none;
  }
}

.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--dark);
  transition: var(--transition);
  border-radius: 2px;
}

.nav-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile nav drawer */
.mobile-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--white);
  z-index: 999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}

.mobile-nav.active {
  opacity: 1;
  visibility: visible;
}

.mobile-nav a {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--dark);
}

.mobile-nav a:hover {
  color: var(--primary);
}


/* CSS Part 3: Hero Section */

/* --- Hero --- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--dark);
  padding: 120px 24px 80px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(26,26,46,0.92) 0%, rgba(45,45,68,0.85) 50%, rgba(26,26,46,0.9) 100%);
  z-index: 2;
}

.hero-bg-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.5;
}

.hero-particles {
  position: absolute;
  inset: 0;
  z-index: 2;
  overflow: hidden;
}

.hero-particle {
  position: absolute;
  width: 3px;
  height: 3px;
  background: var(--primary);
  border-radius: 50%;
  opacity: 0.3;
  animation: float-particle linear infinite;
}

@keyframes float-particle {
  0% { transform: translateY(100vh) scale(0); opacity: 0; }
  10% { opacity: 0.4; }
  90% { opacity: 0.4; }
  100% { transform: translateY(-10vh) scale(1); opacity: 0; }
}

.hero-content {
  position: relative;
  z-index: 3;
  text-align: center;
  max-width: 860px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 20px;
  background: rgba(232, 97, 31, 0.15);
  border: 1px solid rgba(232, 97, 31, 0.3);
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--primary-light);
  margin-bottom: 28px;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.hero-badge-dot {
  width: 8px;
  height: 8px;
  background: var(--primary);
  border-radius: 50%;
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.8); }
}

.hero h1 {
  color: var(--white);
  margin-bottom: 24px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.hero h1 .highlight {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: rgba(255,255,255,0.7);
  max-width: 600px;
  margin: 0 auto 40px;
  line-height: 1.8;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
  margin-bottom: 64px;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 560px;
  margin: 0 auto;
}

.hero-stat {
  text-align: center;
}

.hero-stat-value {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 800;
  color: var(--white);
  line-height: 1;
  margin-bottom: 6px;
}

.hero-stat-label {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.5);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 500;
}

.hero-scroll-indicator {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,0.4);
  font-size: 0.7rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  animation: bounce-scroll 2s ease-in-out infinite;
}

@keyframes bounce-scroll {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}

@media (min-width: 768px) {
  .hero {
    padding: 140px 48px 100px;
  }
}


/* CSS Part 4: About, Services, Standards Sections */

/* --- About Section --- */
.about {
  padding: 100px 0;
  background: var(--white);
}

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

@media (min-width: 900px) {
  .about-grid {
    grid-template-columns: 1fr 1fr;
    gap: 72px;
  }
}

.about-visual {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4/3;
  background: var(--dark);
}

.about-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-visual-badge {
  position: absolute;
  bottom: 24px;
  left: 24px;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(8px);
  padding: 16px 24px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: var(--shadow);
}

.about-visual-badge-icon {
  width: 40px;
  height: 40px;
  background: var(--primary);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.2rem;
}

.about-visual-badge-text {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--dark);
}

.about-visual-badge-text span {
  display: block;
  font-size: 0.72rem;
  font-weight: 400;
  color: var(--text-light);
}

.about-text h2 {
  margin-bottom: 20px;
}

.about-text p {
  margin-bottom: 16px;
}

.about-features {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 28px;
}

.about-feature {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.about-feature-icon {
  width: 28px;
  height: 28px;
  min-width: 28px;
  background: rgba(232, 97, 31, 0.1);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 0.85rem;
  margin-top: 2px;
}

.about-feature-text {
  font-size: 0.95rem;
  color: var(--text);
  font-weight: 500;
}

/* --- Standards Section --- */
.standards {
  padding: 100px 0;
  background: var(--off-white);
}

.standards-header {
  text-align: center;
  margin-bottom: 64px;
}

.standards-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

@media (min-width: 700px) {
  .standards-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.standards-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  text-align: center;
  border: 1px solid var(--border);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

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

.standards-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--primary-light));
  transform: scaleX(0);
  transition: var(--transition);
}

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

.standards-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(232, 97, 31, 0.08);
  border-radius: 18px;
  transition: var(--transition);
}

/* Background hover on the standards-icon removed per site brief — only the
   icon glyph tints on hover. */

.standards-icon svg,
.standards-icon img {
  width: 32px;
  height: 32px;
  object-fit: contain;
  color: var(--primary);
  transition: var(--transition);
}

.standards-card:hover .standards-icon svg {
  color: var(--white);
}

.standards-card h3 {
  margin-bottom: 14px;
  font-size: 1.25rem;
}

.standards-card p {
  font-size: 0.95rem;
  line-height: 1.7;
}

/* --- Services Section --- */
.services {
  padding: 100px 0;
  background: var(--white);
}

.services-header {
  text-align: center;
  margin-bottom: 64px;
}

.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

@media (min-width: 600px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 960px) {
  .services-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.service-card {
  background: var(--off-white);
  border-radius: var(--radius);
  padding: 32px 28px;
  border: 1px solid var(--border);
  transition: var(--transition);
  cursor: default;
}

.service-card:hover {
  background: var(--white);
  border-color: var(--primary);
  box-shadow: 0 8px 32px rgba(232, 97, 31, 0.1);
}

.service-card-icon {
  width: 48px;
  height: 48px;
  background: rgba(232, 97, 31, 0.1);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 1.3rem;
  margin-bottom: 18px;
}

.service-card h3 {
  margin-bottom: 10px;
  font-size: 1.1rem;
}

.service-card p {
  font-size: 0.9rem;
}


/* CSS Part 5: Industries, Tours, Contact Sections */

/* --- Industries Section --- */
.industries {
  padding: 100px 0;
  background: var(--dark);
}

.industries-header {
  text-align: center;
  margin-bottom: 64px;
}

.industries-header h2 {
  color: var(--white);
}

.industries-header p {
  color: rgba(255,255,255,0.6);
}

.industries-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

@media (min-width: 600px) {
  .industries-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 960px) {
  .industries-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.industry-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 3/4;
  cursor: pointer;
  group: industry;
  display: block;
  color: inherit;
  text-decoration: none;
}

.industry-card-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: var(--transition);
}

.industry-card:hover .industry-card-bg {
  transform: scale(1.08);
}

.industry-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(26,26,46,0.95) 0%, rgba(26,26,46,0.3) 60%, rgba(26,26,46,0.1) 100%);
  transition: var(--transition);
}

.industry-card:hover .industry-card-overlay {
  background: linear-gradient(to top, rgba(232,97,31,0.9) 0%, rgba(232,97,31,0.3) 60%, rgba(232,97,31,0.1) 100%);
}

.industry-card-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 24px;
  z-index: 2;
}

.industry-card-content h3 {
  color: var(--white);
  font-size: 1.1rem;
  margin-bottom: 4px;
}

.industry-card-content p {
  color: rgba(255,255,255,0.7);
  font-size: 0.8rem;
}

/* --- Virtual Tours Section --- */
.tours {
  padding: 100px 0;
  background: var(--off-white);
}

.tours-header {
  text-align: center;
  margin-bottom: 64px;
}

.tours-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

@media (min-width: 768px) {
  .tours-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .tours-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.tour-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--border);
  transition: var(--transition);
}

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

.tour-card-visual {
  position: relative;
  aspect-ratio: 16/10;
  background: var(--dark);
  overflow: hidden;
}

.tour-card-visual-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.tour-card:hover .tour-card-visual-bg {
  transform: scale(1.05);
}

.tour-play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 64px;
  height: 64px;
  background: rgba(255,255,255,0.95);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(0,0,0,0.2);
  transition: var(--transition);
}

.tour-play-btn svg {
  width: 24px;
  height: 24px;
  color: var(--primary);
  margin-left: 3px;
}

.tour-card:hover .tour-play-btn {
  background: var(--primary);
}

.tour-card:hover .tour-play-btn svg {
  color: var(--white);
}

.tour-card-body {
  padding: 24px;
}

.tour-card-body h3 {
  margin-bottom: 8px;
  font-size: 1.1rem;
}

.tour-card-body p {
  font-size: 0.88rem;
}

/* --- Contact Section --- */
.contact {
  padding: 100px 0;
  background: var(--white);
}

.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
}

@media (min-width: 900px) {
  .contact-wrapper {
    grid-template-columns: 1fr 1fr;
    gap: 72px;
  }
}

.contact-info h2 {
  margin-bottom: 16px;
}

.contact-info > p {
  margin-bottom: 36px;
}

.contact-methods {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

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

.contact-method-icon {
  width: 48px;
  height: 48px;
  min-width: 48px;
  background: rgba(232, 97, 31, 0.1);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
}

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

.contact-method-text h4 {
  font-size: 0.85rem;
  color: var(--text-light);
  font-weight: 500;
  margin-bottom: 4px;
}

.contact-method-text a,
.contact-method-text span {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--dark);
}

.contact-method-text a:hover {
  color: var(--primary);
}

.contact-social {
  display: flex;
  gap: 12px;
  margin-top: 36px;
}

.social-link {
  width: 44px;
  height: 44px;
  border: 1px solid var(--border);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-light);
  transition: var(--transition);
}

.social-link:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: rgba(232, 97, 31, 0.05);
}

.social-link svg {
  width: 20px;
  height: 20px;
}

/* --- Contact Form --- */
.contact-form {
  background: var(--off-white);
  border-radius: var(--radius-lg);
  padding: 36px;
  border: 1px solid var(--border);
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 6px;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--white);
  color: var(--text);
  font-size: 0.95rem;
  transition: var(--transition);
  outline: none;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(232, 97, 31, 0.1);
}

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

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

.form-submit {
  width: 100%;
  padding: 16px;
  margin-top: 8px;
}


/* CSS Part 6: Footer, Animations, Utilities */

/* --- Footer --- */
.site-footer {
  background: var(--dark);
  padding: 64px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

@media (min-width: 700px) {
  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr 1fr;
  }
}

.footer-brand p {
  color: rgba(255,255,255,0.5);
  font-size: 0.9rem;
  margin-top: 16px;
  max-width: 320px;
  line-height: 1.7;
}

.footer-brand img {
  height: 32px;
  width: auto;
  align-self: flex-start;
  filter: brightness(0) invert(1);
}

.footer-col h4 {
  color: var(--white);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.footer-col a {
  display: block;
  color: rgba(255,255,255,0.5);
  font-size: 0.9rem;
  padding: 4px 0;
  transition: var(--transition);
}

.footer-col a:hover {
  color: var(--primary-light);
  transform: translateX(4px);
}

.footer-bottom {
  padding: 24px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
}

@media (min-width: 768px) {
  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
  }
}

.footer-bottom p {
  color: rgba(255,255,255,0.35);
  font-size: 0.82rem;
}

/* --- Animations --- */
.fade-up {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-up.visible:nth-child(1) { transition-delay: 0.05s; }
.fade-up.visible:nth-child(2) { transition-delay: 0.12s; }
.fade-up.visible:nth-child(3) { transition-delay: 0.19s; }
.fade-up.visible:nth-child(4) { transition-delay: 0.26s; }
.fade-up.visible:nth-child(5) { transition-delay: 0.33s; }
.fade-up.visible:nth-child(6) { transition-delay: 0.40s; }
.fade-up.visible:nth-child(7) { transition-delay: 0.47s; }
.fade-up.visible:nth-child(8) { transition-delay: 0.54s; }

/* --- Section wrapper utility --- */
.section {
  padding: 100px 0;
}

.section-dark {
  background: var(--dark);
}

.section-light {
  background: var(--off-white);
}

.section-header {
  text-align: center;
  margin-bottom: 56px;
}

.section-header .section-subtitle {
  margin-left: auto;
  margin-right: auto;
}

/* --- Responsive tweaks --- */
@media (max-width: 767px) {
  .hero {
    padding: 100px 20px 60px;
  }
  .section {
    padding: 72px 0;
  }
  .about, .standards, .services, .industries, .tours, .contact {
    padding: 72px 0;
  }
  .form-row {
    grid-template-columns: 1fr;
  }
}


/* ===== ADDITIONAL GLOBAL STYLES FOR SUB-PAGES ===== */

/* --- Page Hero Banner (shared across sub-pages) --- */
.page-hero {
  position: relative;
  min-height: 45vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 120px 24px 60px;
}

.page-hero-bg {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.page-hero-bg-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  mix-blend-mode: overlay;
  opacity: 0.5;
}

.page-hero-particles {
  position: absolute;
  inset: 0;
  z-index: 2;
  overflow: hidden;
}

.page-hero-particle {
  position: absolute;
  width: 3px;
  height: 3px;
  background: var(--primary);
  border-radius: 50%;
  opacity: 0.3;
  animation: float-particle linear infinite;
}

.page-hero-content {
  position: relative;
  z-index: 3;
  text-align: center;
  max-width: 800px;
}

.page-hero-content .section-label {
  color: var(--primary-light);
}

.page-hero-content h1 {
  color: var(--white);
  margin-bottom: 16px;
}

.page-hero-content h1 .highlight {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.page-hero-content p {
  color: rgba(255,255,255,0.65);
  font-size: 1.15rem;
  margin-bottom: 24px;
}

@media (min-width: 768px) {
  .page-hero {
    min-height: 50vh;
    padding: 160px 48px 80px;
  }
}
/* --- Breadcrumb --- */
.breadcrumb {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.45);
}

.breadcrumb a {
  color: rgba(255,255,255,0.6);
}

.breadcrumb a:hover {
  color: var(--primary-light);
}

.breadcrumb span {
  color: rgba(255,255,255,0.25);
}

/* --- Mobile nav link (for pages that link to sub-pages) --- */
.mobile-nav-link {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--dark);
  display: inline-block;
  padding: 8px 16px;
}

.mobile-nav-link:hover {
  color: var(--primary);
}
/* --- Header logo override --- */
.header-logo {
  display: block;
  line-height: 0;
}

.header-logo img {
  height: 38px;
  width: auto;
  display: block;
}

/* --- Footer brand and col standalone --- */
.footer-brand {
  display: flex;
  flex-direction: column;
}

.footer-brand img {
  height: 32px;
  width: auto;
  align-self: flex-start;
  filter: brightness(0) invert(1);
  margin-bottom: 8px;
}

.footer-brand p {
  color: rgba(255,255,255,0.5);
  font-size: 0.9rem;
  max-width: 320px;
  line-height: 1.7;
}

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

.footer-col h4 {
  color: var(--white);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.footer-col a {
  display: block;
  color: rgba(255,255,255,0.5);
  font-size: 0.9rem;
  padding: 4px 0;
  transition: var(--transition);
}

.footer-col a:hover {
  color: var(--primary-light);
  transform: translateX(4px);
}

/* --- Footer bottom --- */
.footer-bottom {
  padding: 24px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
  border-top: 1px solid rgba(255,255,255,0.08);
}

@media (min-width: 768px) {
  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
  }
}

.footer-bottom p {
  color: rgba(255,255,255,0.35);
  font-size: 0.82rem;
}

/* ============================================================
   Mobile polish — 720 Scanning (2026-08-05)
   Small-screen adjustments: hero readability, stat wrapping,
   tap targets, safer horizontal overflow guard.
   ============================================================ */
@media (max-width: 767px) {
  .hero { padding: 88px 18px 48px; min-height:auto }
  .hero-content { padding: 0 }
  .hero h1 { font-size: clamp(1.7rem, 7vw, 2.4rem); line-height:1.15 }
  .hero-subtitle { font-size: 0.98rem; line-height:1.55 }
  .hero-badge { font-size: 0.8rem; padding:6px 12px }
  .hero-actions { display:flex; flex-direction:column; gap:10px; width:100% }
  .hero-actions .btn { width:100%; text-align:center; justify-content:center }
  .hero-stats { grid-template-columns: repeat(3,1fr); gap:12px; margin-top:24px }
  .hero-stat-value { font-size: 1.3rem }
  .hero-stat-label { font-size: 0.72rem }
  .hero-scroll-indicator { display:none }
  .page-hero { min-height: 34vh; padding: 100px 18px 40px }
  .page-hero-content h1 { font-size: clamp(1.7rem, 7vw, 2.6rem) }
  .container { padding: 0 18px }
  .about, .standards, .services, .industries, .tours, .contact { padding: 48px 0 }
  .about-grid, .services-grid, .standards-grid, .industries-grid, .tours-grid { gap:20px }
  .service-card, .standards-card, .tour-card, .industry-card { padding:20px }
  .contact-wrapper { gap:24px }
  .contact-form { padding:20px }
  .contact-method a, .contact-method-text a { word-break: break-word }
  .footer-grid { gap:24px }
  .btn { min-height:44px; padding:12px 22px }
  /* When mobile menu is open, prevent underlying content scroll */
  body.nav-open { overflow:hidden }
}
/* Hard guard against horizontal scroll on any screen */
html, body { max-width:100%; overflow-x:hidden }

/* ============================================================
   Smooth cross-page transitions — slide content up from bottom
   when navigating between pages. Requires @view-transition to be
   set (already declared above). Browsers without View Transitions
   API silently fall back to instant navigation, plus the
   `.page-enter` animation below still fires on document load.
   ============================================================ */

/* Site-header is already named -> stays static across pages.
   Everything else (root) fades + slides up on the new page. */
::view-transition-old(root){
  animation: 260ms cubic-bezier(.4,0,.2,1) both fade-slide-out;
}
::view-transition-new(root){
  animation: 380ms cubic-bezier(.16,1,.3,1) 60ms both fade-slide-in;
}
@keyframes fade-slide-out {
  to { opacity:0; transform: translateY(-8px); }
}
@keyframes fade-slide-in {
  from { opacity:0; transform: translateY(24px); }
  to   { opacity:1; transform: translateY(0); }
}

/* Reduced-motion respect */
@media (prefers-reduced-motion: reduce) {
  ::view-transition-old(root), ::view-transition-new(root){ animation: none; }
}

/* Fallback for browsers without View Transitions (Safari <18, older FF):
   fire a one-shot entry animation whenever main content appears. */
main, #pageContent {
  animation: page-enter 420ms cubic-bezier(.16,1,.3,1) both;
}
@keyframes page-enter {
  from { opacity:0; transform: translateY(18px); }
  to   { opacity:1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  main, #pageContent { animation: none; }
}

/* Belt-and-braces opaque mobile nav (some browsers ignore var(--white)
   during transitions, causing the see-through complaint). */
.mobile-nav {
  background: #ffffff !important;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

/* ============================================================
   Mobile nav drawer — v2 (2026-08-05 pt 2)
   Full-height, scrollable, high-contrast text.
   ============================================================ */
.mobile-nav {
  align-items: stretch !important;
  justify-content: flex-start !important;
  padding: 88px 20px 32px !important;
  gap: 0 !important;
  overflow-y: auto !important;
  -webkit-overflow-scrolling: touch;
  background: #ffffff !important;
}
.mobile-nav a,
.mobile-nav .mobile-nav-link {
  display: block !important;
  width: 100% !important;
  color: #0f0f1a !important;
  font-size: 1.15rem !important;
  font-weight: 600 !important;
  padding: 18px 16px !important;
  border-bottom: 1px solid #eef0f3 !important;
  border-radius: 0 !important;
  text-align: left !important;
  min-height: 56px;
  line-height: 1.3;
}
.mobile-nav a:hover,
.mobile-nav .mobile-nav-link:hover {
  color: #e8611f !important;
  background: #fef6f0 !important;
}
.mobile-nav .btn {
  margin-top: 20px !important;
  border-radius: 10px !important;
  border-bottom: 0 !important;
  padding: 16px 22px !important;
  text-align: center !important;
  font-size: 1.05rem !important;
  min-height: 52px;
}
.mobile-nav .btn.btn-primary {
  background: #e8611f !important;
  color: #fff !important;
  box-shadow: 0 6px 18px rgba(232,97,31,.35);
}
.mobile-nav .btn.btn-outline {
  background: #fff !important;
  color: #0f0f1a !important;
  border: 2px solid #0f0f1a !important;
}
.mobile-nav .btn.btn-outline:hover { background:#0f0f1a !important; color:#fff !important; }

/* Bigger, more obvious page-switch effect */
::view-transition-old(root){ animation: 320ms cubic-bezier(.4,0,.2,1) both fx-exit !important; }
::view-transition-new(root){ animation: 520ms cubic-bezier(.16,1,.3,1) 80ms both fx-enter !important; }
@keyframes fx-exit  { to   { opacity:0; transform: translateY(-14px) scale(.985); } }
@keyframes fx-enter {
  from { opacity:0; transform: translateY(36px) scale(.985); filter: blur(4px); }
  to   { opacity:1; transform: translateY(0)    scale(1);    filter: blur(0); }
}
main, #pageContent {
  animation: page-enter 520ms cubic-bezier(.16,1,.3,1) both;
}
@keyframes page-enter {
  from { opacity:0; transform: translateY(28px); filter: blur(3px); }
  to   { opacity:1; transform: translateY(0);    filter: blur(0); }
}
@media (prefers-reduced-motion: reduce){
  ::view-transition-old(root), ::view-transition-new(root),
  main, #pageContent { animation:none !important; filter:none !important; }
}

/* ============================================================
   Shared page-transition kit — v3 (identical on both sites)
   Pin persistent chrome so it stays put across pages.
   ============================================================ */
.site-header { view-transition-name: site-header; }
.site-footer { view-transition-name: site-footer; }
::view-transition-old(site-header), ::view-transition-new(site-header),
::view-transition-old(site-footer), ::view-transition-new(site-footer) {
  animation: none;
  mix-blend-mode: normal;
}
::view-transition-old(root){ animation: 320ms cubic-bezier(.4,0,.2,1) both fx-exit !important; }
::view-transition-new(root){ animation: 520ms cubic-bezier(.16,1,.3,1) 80ms both fx-enter !important; }
@keyframes fx-exit  { to   { opacity:0; transform: translateY(-14px) scale(.985); } }
@keyframes fx-enter {
  from { opacity:0; transform: translateY(36px) scale(.985); filter: blur(4px); }
  to   { opacity:1; transform: translateY(0)    scale(1);    filter: blur(0); }
}
@media (prefers-reduced-motion: reduce){
  ::view-transition-old(root), ::view-transition-new(root){ animation:none !important; }
}

/* ============================================================
   Site-wide footer edges — 720 (2026-08-05 pt 10)
   Footer stretches edge-to-edge; the .container inside holds
   the 20px+ padding for content; the footer-bottom border spans
   the full page width because it's drawn on the footer element,
   not the container.
   ============================================================ */
.site-footer { padding-left: 0; padding-right: 0; }
.site-footer > .container { padding-left: 24px; padding-right: 24px; }
.site-footer .footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  margin-left: calc(-24px + max(0px, (100vw - 1280px) / 2));
  margin-right: calc(-24px + max(0px, (100vw - 1280px) / 2));
  padding-left: 24px; padding-right: 24px;
}
@media (max-width: 767px){
  .site-footer > .container { padding-left: 20px; padding-right: 20px; }
  .site-footer .footer-bottom {
    margin-left: -20px; margin-right: -20px;
    padding-left: 20px; padding-right: 20px;
  }
}
