/* ===========================================
   DIRECT EDGE MANUFACTURING — MASTER STYLESHEET
   =========================================== */

/* 0. Design Tokens
   ----------------------------------------- */
:root {
  --color-navy: #0b131a;
  --color-orange: #f37021;
  --color-orange-dark: #d85d18;
  --color-orange-light: rgba(243, 112, 33, 0.1);
  --color-white: #ffffff;
  --color-off-white: #f8fafc;
  --color-bg-subtle: #fcfcfc;
  --color-text: #333333;
  --color-text-light: #515154;
  --color-text-muted: #86868b;
  --color-border: #e5e7eb;
  --color-border-light: rgba(0, 0, 0, 0.04);
  --font-primary: 'Helvetica Neue', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
  --shadow-card: 0 4px 20px rgba(0, 0, 0, 0.04);
  --shadow-card-hover: 0 30px 60px rgba(0, 0, 0, 0.1);
  --shadow-btn: 0 10px 20px rgba(243, 112, 33, 0.2);
  --shadow-btn-hover: 0 15px 30px rgba(243, 112, 33, 0.4);
  --ease-premium: cubic-bezier(0.165, 0.84, 0.44, 1);
  --ease-smooth: cubic-bezier(0.23, 1, 0.32, 1);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 32px;
  --radius-pill: 999px;
  --content-width: 1200px;
  --container-width: 1180px;
  --header-height: 120px;
}

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

/* Anchor jumps (e.g. /projects#copper-ducting) stop below the sticky header instead of under it */
[id] { scroll-margin-top: 180px; }

@media (max-width: 900px) {
  [id] { scroll-margin-top: 130px; }
}

html, body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

body {
  font-family: var(--font-primary);
  background-color: var(--color-off-white);
  line-height: 1.7;
  color: var(--color-text);
  animation: fadeInPage 0.6s ease-out;
}

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

/* 2. Typography
   ----------------------------------------- */
h1, h2, h3, h4, h5, h6 {
  line-height: 1.2;
  font-weight: 800;
  color: var(--color-navy);
}

/* 3. Layout Utilities
   ----------------------------------------- */
.container {
  width: min(var(--container-width), calc(100% - 40px));
  margin: 0 auto;
}

.main-content {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 80px 40px;
  background: var(--color-white);
  box-shadow: 0 0 60px rgba(0, 0, 0, 0.06);
}

.main-content p {
  font-size: 1.1rem;
  margin-bottom: 25px;
  color: #444;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* 4. Header & Contact Bar
   ----------------------------------------- */
.header-contact-bar {
  display: flex;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
  padding: 6px 5%;
  background: var(--color-navy);
  color: var(--color-white);
  font-size: clamp(11px, 0.82vw, 14px);
  min-height: 28px;
}

.header-contact-bar a,
.header-contact-bar span {
  color: var(--color-white);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.contact-icon {
  width: 14px;
  height: 14px;
  stroke: var(--color-orange);
  flex-shrink: 0;
}

.header-contact-bar a:hover { color: var(--color-orange); }

header {
  background: var(--color-white);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
  width: 100%;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px clamp(28px, 4.6vw, 96px);
  max-width: 1760px;
  margin: 0 auto;
  gap: 28px;
  min-height: 86px;
}

.logo-section { flex: 0 0 auto; }

.logo-link {
  display: flex;
  align-items: center;
  text-decoration: none;
  gap: clamp(10px, 1vw, 18px);
}

.logo-link img {
  height: clamp(42px, 3.8vw, 68px);
  width: auto;
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 0.92;
  width: clamp(300px, 31vw, 560px);
  max-width: 42vw;
  overflow: visible;
}

.brand-name {
  font-size: clamp(30px, 3.4vw, 56px);
  font-weight: 900;
  color: var(--color-orange);
  font-family: Arial, sans-serif;
  white-space: nowrap;
  display: block;
  line-height: 0.92;
}

.brand-sub {
  font-size: clamp(21px, 2.35vw, 39px);
  font-weight: 550;
  color: #000000;
  letter-spacing: 0.02em;
  font-family: Arial, sans-serif;
  white-space: nowrap;
  display: block;
  line-height: 0.92;
  margin-top: 2px;
  width: 76%;
  transform: scaleX(1.315);
  transform-origin: left center;
}

nav { min-width: 0; }

nav ul {
  list-style: none;
  display: flex;
  align-items: center;
  gap: clamp(16px, 2.2vw, 46px);
  flex-wrap: nowrap;
}

.nav-item a {
  text-decoration: none;
  color: var(--color-text);
  font-size: clamp(13px, 1.16vw, 19px);
  font-weight: 600;
  text-transform: uppercase;
  white-space: nowrap;
  transition: color 0.3s ease;
}

.nav-item a:hover,
.nav-item a.active { color: var(--color-orange); }

.nav-quote-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px clamp(16px, 1.8vw, 26px);
  border-radius: var(--radius-pill);
  background: var(--color-orange);
  color: var(--color-navy) !important;
  border: 2px solid var(--color-orange);
  white-space: nowrap;
  transition: all 0.3s ease;
}

.nav-quote-btn:hover {
  background: transparent;
  color: var(--color-orange) !important;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(255, 102, 0, 0.3);
}

/* 5. Mobile Hamburger Menu
   ----------------------------------------- */
.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 1001;
}

.hamburger-bar {
  display: block;
  width: 28px;
  height: 3px;
  background: var(--color-navy);
  border-radius: 2px;
  transition: all 0.3s ease;
  margin: 5px 0;
}

body.menu-open .hamburger-bar:nth-child(1) {
  transform: rotate(45deg) translate(5px, 6px);
}

body.menu-open .hamburger-bar:nth-child(2) { opacity: 0; }

body.menu-open .hamburger-bar:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -6px);
}

/* 6. Hero — Asymmetric Split (Homepage)
   ----------------------------------------- */
.unified-home { background: var(--color-white); color: var(--color-text); }

.asymmetric-hero {
  display: grid;
  grid-template-columns: minmax(0, 52%) minmax(0, 48%);
  height: clamp(560px, calc(100vh - var(--header-height)), 760px);
  min-height: 560px;
  align-items: stretch;
  background: var(--color-white);
  overflow: hidden;
}

.hero-content-left {
  display: flex;
  align-items: center;
  padding: clamp(42px, 5vw, 86px) clamp(44px, 7vw, 132px) clamp(42px, 5vw, 86px) clamp(38px, 5.4vw, 96px);
  min-width: 0;
  overflow: hidden;
  z-index: 10;
}

.brand-tag {
  color: var(--color-orange);
  font-weight: 800;
  letter-spacing: 3px;
  font-size: clamp(1rem, 1.3vw, 1.6rem);
  display: block;
  margin-bottom: 10px;
}

.asymmetric-hero h1,
.asymmetric-hero h2 {
  font-size: clamp(3rem, 4.35vw, 5.1rem);
  font-weight: 900;
  line-height: 1;
  margin-bottom: 20px;
  color: #111827;
  overflow-wrap: normal;
  max-width: 100%;
}

.orange-text { color: var(--color-orange); }

.asymmetric-hero p {
  color: #3d4652;
  font-size: clamp(1rem, 1vw, 1.12rem);
  line-height: 1.65;
}

.text-slide {
  display: none;
  animation: textFadeIn 0.8s ease-out forwards;
  width: min(100%, 660px);
  max-width: calc(100vw - 720px);
  min-width: 0;
}

.text-slide.active { display: block; }

.hero-visual-right {
  min-width: 0;
  height: 100%;
  position: relative;
  background: #f0f0f0;
  clip-path: polygon(11% 0, 100% 0, 100% 100%, 0 100%);
}

.image-mask {
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
}

.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1.5s ease-in-out;
}

.slide.active { opacity: 1; }

.hero-slideshow-controls {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 20;
}

.hero-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 2px solid var(--color-white);
  background: transparent;
  cursor: pointer;
  padding: 0;
  transition: background 0.3s ease;
}

.hero-dot.active { background: var(--color-white); }

.hero-pause-btn {
  background: rgba(0, 0, 0, 0.4);
  border: none;
  color: var(--color-white);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* 7. Hero — Banner (Inner Pages)
   ----------------------------------------- */
.hero-banner {
  background-color: var(--color-orange);
  width: 100%;
  padding: 50px 20px;
  text-align: center;
  animation: smoothSlideRibbon 1.1s var(--ease-smooth) both;
  overflow: hidden;
}

.hero-banner h1,
.hero-banner h2 {
  color: var(--color-white);
  max-width: var(--content-width);
  margin: 0 auto;
  font-size: 2.3rem;
  line-height: 1.3;
  font-weight: 800;
  animation: smoothSlideText 1.2s var(--ease-smooth) 0.4s both;
}

/* 8. Content Sections
   ----------------------------------------- */
.highlight-statement {
  background-color: #f9f9f9;
  border-left: 5px solid var(--color-orange);
  padding: 30px;
  margin: 40px 0;
  font-size: 1.5rem;
  font-weight: 800;
  color: #222;
  line-height: 1.2;
  text-transform: uppercase;
}

.sub-heading {
  color: var(--color-orange);
  font-weight: 800;
  text-transform: uppercase;
  font-size: 1.6rem;
  margin: 60px 0 30px 0;
  letter-spacing: 1px;
}

.policy-list {
  list-style: none;
  padding: 0;
  margin: 30px 0;
}

.policy-list li {
  position: relative;
  padding-left: 30px;
  margin-bottom: 25px;
  line-height: 1.6;
  color: #444;
  font-size: 1.1rem;
}

.policy-list li::before {
  content: "\2022";
  color: var(--color-orange);
  font-weight: bold;
  font-size: 1.8rem;
  position: absolute;
  left: 0;
  top: -6px;
}

/* Sub-points inside a policy-list item (e.g. privacy policy service providers) */
.policy-list ul {
  list-style: none;
  padding: 0;
  margin: 12px 0;
}

.policy-list ul li { margin-bottom: 12px; }

.section-title {
  color: var(--color-orange);
  font-size: 2.2rem;
  font-weight: 800;
  text-align: center;
  margin-top: 60px;
  margin-bottom: 40px;
  text-transform: uppercase;
}

.section-label {
  color: var(--color-orange);
  font-weight: 900;
  margin-bottom: 50px;
  font-size: 1.4rem;
  border-left: 6px solid var(--color-orange);
  padding-left: 20px;
}

.status-note {
  color: #666;
  font-size: 0.95rem;
  padding: 18px 20px;
  border-left: 5px solid var(--color-orange);
  background: #fff7f1;
}

.policy-date {
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

/* 9. Cards — Certification/Policy Grid
   ----------------------------------------- */
.master-grid {
  display: grid;
  gap: 20px;
  margin-bottom: 50px;
}

.certification-row {
  grid-template-columns: repeat(5, 1fr);
  max-width: 1500px;
  margin: 0 auto;
}

.policy-row {
  grid-template-columns: repeat(3, 1fr);
  max-width: var(--content-width);
  margin: 0 auto;
}

.policy-card {
  background: var(--color-white);
  padding: 15px 5px;
  text-align: center;
  text-decoration: none;
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-card);
  transition: all 0.4s var(--ease-premium);
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 100px;
}

.policy-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
  border-color: var(--color-orange);
}

.policy-card h4 {
  color: var(--color-orange);
  font-size: 1.1rem;
  font-weight: 900;
  text-transform: uppercase;
  line-height: 1.2;
  margin-bottom: 8px;
}

.policy-card p {
  color: #666;
  font-size: 0.85rem;
  line-height: 1.3;
  margin-bottom: 0;
}

/* 10. Cards — Project Gallery
   ----------------------------------------- */
.page-header {
  padding: 90px 20px 50px;
  text-align: center;
  background: var(--color-white);
}

.page-header h1 {
  margin: 0 0 16px;
  color: var(--color-navy);
  font-size: clamp(2.4rem, 5vw, 4.2rem);
  line-height: 1.05;
}

.page-header p {
  margin: 0 auto;
  max-width: 760px;
  color: var(--color-text-light);
  font-size: 1.15rem;
}

.section { padding: 70px 0; }

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px;
}

.modern-card {
  background: var(--color-white);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: var(--radius-sm);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  overflow: hidden;
  transition: all 0.4s var(--ease-premium);
}

.modern-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-card-hover);
}

.modern-card img {
  display: block;
  width: 100%;
  height: 220px;
  object-fit: cover;
  cursor: zoom-in;
}

.modern-card h2,
.modern-card h3 {
  margin-top: 0;
  color: var(--color-navy);
}

.project-card-body {
  padding: 22px;
}

.project-card-body p { margin-bottom: 0; }

/* 11. Cards — Equipment/Capability
   ----------------------------------------- */
.capability-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 28px;
  margin: 40px 0;
}

.capability-card {
  background: var(--color-white);
  border-radius: var(--radius-xl);
  padding: 40px 30px;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--color-border-light);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.03);
  transition: all 0.6s var(--ease-smooth);
}

.capability-card:hover {
  transform: translateY(-12px);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.06);
  border-color: rgba(243, 112, 33, 0.2);
}

.capability-card .card-icon {
  font-size: 40px;
  margin-bottom: 20px;
}

.capability-card h3 {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--color-navy);
  margin-bottom: 12px;
}

.capability-card p {
  font-size: 0.95rem;
  color: var(--color-text-light);
  line-height: 1.6;
  margin-bottom: 0;
}

.capability-card .specs {
  margin-top: 14px;
  font-size: 0.85rem;
  color: var(--color-text-muted);
  font-weight: 600;
}

.capability-card .orange-accent {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--color-orange);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s var(--ease-smooth);
}

.capability-card:hover .orange-accent { transform: scaleX(1); }

.material-table {
  width: 100%;
  border-collapse: collapse;
  margin: 30px 0;
  font-size: 0.95rem;
}

.material-table th,
.material-table td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid var(--color-border);
}

.material-table th {
  background: var(--color-navy);
  color: var(--color-white);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
}

.material-table tr:hover { background: var(--color-orange-light); }

/* Wide tables scroll sideways inside this box instead of being cut off on narrow screens */
.table-scroll {
  overflow-x: auto;
  margin: 30px 0;
}

.table-scroll .material-table { margin: 0; }

.table-scroll:focus-visible {
  outline: 3px solid var(--color-orange);
  outline-offset: 2px;
}

/* 12. Cards — Industry Sectors
   ----------------------------------------- */
.industry-sectors { padding: 80px 0; background: var(--color-bg-subtle); }

.sector-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 24px;
  margin-top: 40px;
}

.sector-card {
  text-align: center;
  padding: 32px 16px;
  background: var(--color-white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  transition: all 0.4s var(--ease-premium);
  text-decoration: none;
  color: var(--color-text);
}

.sector-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.08);
  border-color: var(--color-orange);
}

.sector-card .sector-icon {
  font-size: 2.4rem;
  margin-bottom: 12px;
  display: block;
}

.sector-card h4 {
  font-size: 0.95rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--color-navy);
  margin-bottom: 6px;
}

.sector-card p {
  font-size: 0.82rem;
  color: var(--color-text-muted);
  margin: 0;
  line-height: 1.4;
}

/* Capabilities strip on homepage */
.capabilities-strip {
  padding: 60px 0;
  background: var(--color-white);
}

.strip-grid {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 40px;
  margin-top: 30px;
}

.strip-item {
  text-align: center;
  text-decoration: none;
  color: var(--color-text);
  transition: color 0.3s ease;
}

.strip-item:hover { color: var(--color-orange); }

.strip-item .strip-icon {
  font-size: 2rem;
  display: block;
  margin-bottom: 8px;
}

.strip-item span:last-child {
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* 13. Featured Projects Carousel
   ----------------------------------------- */
.featured-projects { padding: 100px 0; }

.carousel-wrapper {
  display: flex;
  align-items: center;
  gap: 20px;
}

.carousel-viewport {
  overflow: hidden;
  width: 100%;
  border-radius: var(--radius-md);
}

.carousel-track {
  display: flex;
  gap: 30px;
  transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

.project-card {
  flex: 0 0 calc(33.333% - 20px);
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  display: block;
  text-decoration: none;
}

.project-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease, filter 0.6s ease;
}

.project-card:hover img {
  transform: scale(1.08);
  filter: brightness(0.6);
}

.project-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 40px 30px;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.85));
  color: var(--color-white);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.project-card:hover .project-overlay { opacity: 1; }

.project-overlay h4 {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: 1px;
  color: var(--color-white);
}

.carousel-btn {
  background: var(--color-white);
  color: var(--color-orange);
  border: 2px solid var(--color-orange);
  border-radius: 50%;
  width: 55px;
  height: 55px;
  font-size: 1.2rem;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-shrink: 0;
  z-index: 10;
}

.carousel-btn:hover {
  background: var(--color-orange);
  color: var(--color-white);
  transform: scale(1.1);
}

/* 14. Forms — Quote/RFQ
   ----------------------------------------- */
.quote-form {
  display: grid;
  gap: 24px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.quote-form label {
  display: grid;
  gap: 8px;
  color: var(--color-navy);
  font-weight: 700;
  font-size: 0.95rem;
}

.quote-form input,
.quote-form textarea,
.quote-form select {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid #d7dde5;
  border-radius: var(--radius-sm);
  padding: 13px 14px;
  font: inherit;
  font-size: 1rem;
  background: var(--color-white);
  transition: border-color 0.3s ease;
}

.quote-form input:focus,
.quote-form textarea:focus,
.quote-form select:focus {
  border-color: var(--color-orange);
  outline: none;
  box-shadow: 0 0 0 3px var(--color-orange-light);
}

.quote-form textarea { resize: vertical; }

.file-help {
  font-size: 0.82rem;
  color: var(--color-text-muted);
  font-weight: 400;
}

.quote-form input[type="file"] {
  padding: 10px;
  border-style: dashed;
}

/* Privacy consent: checkbox beside its text rather than full width above it */
.quote-form .consent-check {
  grid-template-columns: auto 1fr;
  align-items: start;
  gap: 12px;
  font-weight: 400;
  line-height: 1.5;
}

.quote-form .consent-check input[type="checkbox"] {
  width: 20px;
  height: 20px;
  margin: 2px 0 0;
  padding: 0;
  accent-color: var(--color-orange);
}

.quote-form .consent-check input.has-error {
  outline: 2px solid #d92d20;
  outline-offset: 2px;
}

.required-asterisk {
  color: var(--color-orange);
  margin-left: 2px;
}

.required-note {
  font-size: 0.82rem;
  color: var(--color-text-muted);
  margin-top: -10px;
}

.quote-form input.has-error,
.quote-form textarea.has-error,
.quote-form select.has-error {
  border-color: #d92d20;
  background: #fff5f5;
}

.field-error {
  display: block;
  color: #d92d20;
  font-size: 0.82rem;
  font-weight: 600;
  margin-top: -4px;
}

.form-status-banner {
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
  font-weight: 600;
  border-left: 4px solid #d92d20;
  background: #fff5f5;
  color: #9c1c12;
}

/* 15. Contact Page
   ----------------------------------------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin: 40px 0;
}

.contact-info a {
  color: var(--color-orange);
  text-decoration: none;
}

.contact-info a:hover { text-decoration: underline; }

.map-container {
  width: 100%;
  height: 450px;
  border: 1px solid #ddd;
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.map-container iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.contact-info .sub-heading ~ .sub-heading { margin-top: 30px; }

/* 16. Action Footer
   ----------------------------------------- */
.action-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 50px;
  padding-top: 30px;
  border-top: 1px solid var(--color-border);
}

.back-link {
  color: #666;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: color 0.3s ease;
}

.back-link:hover { color: var(--color-orange); }

/* 17. Site Footer
   ----------------------------------------- */
.site-footer {
  background-color: #1a1c1e;
  color: var(--color-white);
  padding: 46px 5% 28px;
  font-family: Arial, sans-serif;
  border-bottom: 10px solid var(--color-orange);
}

.footer-certifications {
  max-width: var(--container-width);
  margin: 0 auto 34px;
  padding-bottom: 28px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  text-align: center;
}

.footer-logo-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: clamp(22px, 3vw, 44px);
  flex-wrap: wrap;
  max-width: 100%;
}

.footer-logo-row img {
  height: 100px;
  width: auto;
  max-width: min(420px, 90vw);
  opacity: 0.8;
  transition: all 0.3s ease;
  object-fit: contain;
}

.footer-logo-row img:hover { opacity: 1; }

.footer-logo-row a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.footer-cert-bsi { max-width: min(520px, 90vw); max-height: 120px; }
.footer-cert-iso3834 { max-width: min(300px, 72vw); max-height: 122px; }
.footer-cert-din { max-width: 128px; max-height: 128px; }

.cert-note {
  color: #666;
  font-size: 0.85rem;
  margin-top: 16px;
}

.footer-main {
  max-width: var(--container-width);
  margin: 0 auto 30px;
  display: grid;
  grid-template-columns: minmax(260px, 1.4fr) repeat(3, minmax(150px, 1fr));
  gap: 34px;
  text-align: left;
}

.footer-column h2 {
  color: var(--color-orange);
  margin: 0 0 14px;
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.footer-column p,
.footer-column a {
  color: #a0aec0;
  font-size: 14px;
  line-height: 1.65;
}

.footer-column a {
  display: block;
  text-decoration: none;
  margin: 6px 0;
}

.footer-column a:hover { color: var(--color-orange); }

.footer-bottom {
  max-width: var(--container-width);
  margin: 0 auto;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  justify-content: center;
  gap: 22px;
  flex-wrap: wrap;
  color: #a0aec0;
  font-size: 14px;
}

.footer-bottom a {
  color: #a0aec0;
  text-decoration: none;
}

.footer-bottom a:hover { color: var(--color-orange); }

/* 18. Lightbox
   ----------------------------------------- */
.project-gallery img { cursor: zoom-in; }

body.lightbox-open { overflow: hidden; }

.image-lightbox {
  position: fixed;
  inset: 0;
  z-index: 5000;
  display: grid;
  place-items: center;
  padding: clamp(18px, 4vw, 56px);
  background: rgba(7, 11, 15, 0.68);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease;
}

.image-lightbox.active {
  opacity: 1;
  pointer-events: auto;
}

.image-lightbox-frame {
  width: min(1500px, 98vw);
  max-height: 92vh;
  display: grid;
  gap: 14px;
  justify-items: center;
}

.image-lightbox-stage {
  width: min(1500px, 98vw);
  height: min(82vh, 980px);
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: var(--radius-sm);
  touch-action: none;
}

.image-lightbox-stage.is-zoomed { cursor: grab; }
.image-lightbox-stage.is-zoomed:active { cursor: grabbing; }

.image-lightbox-frame img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: var(--radius-sm);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.45);
  background: var(--color-white);
  transform-origin: center center;
  transition: transform 120ms ease;
  user-select: none;
  -webkit-user-drag: none;
}

.image-lightbox-frame figcaption {
  color: var(--color-white);
  font-weight: 700;
  text-align: center;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.55);
}

.image-lightbox-toolbar {
  position: fixed;
  top: 18px;
  right: 22px;
  display: flex;
  gap: 8px;
  z-index: 1;
}

.image-lightbox-toolbar button {
  width: 46px;
  height: 46px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: var(--radius-pill);
  background: rgba(17, 20, 23, 0.72);
  color: var(--color-white);
  font-size: 22px;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s ease;
}

.image-lightbox-toolbar .image-lightbox-reset {
  width: auto;
  min-width: 68px;
  padding: 0 14px;
  font-size: 13px;
}

.image-lightbox-toolbar .image-lightbox-close { font-size: 32px; }
.image-lightbox-toolbar button:hover { background: var(--color-orange); }

/* 21. Back-to-Top Button
   ----------------------------------------- */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 3000;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--color-orange);
  color: var(--color-white);
  border: none;
  font-size: 1.4rem;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.back-to-top.visible {
  opacity: 1;
  pointer-events: auto;
}

.back-to-top:hover {
  background: var(--color-orange-dark);
  transform: translateY(-3px);
}

/* 22. Skip-to-Content
   ----------------------------------------- */
.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  background: var(--color-orange);
  color: var(--color-white);
  padding: 12px 20px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  z-index: 9999;
  text-decoration: none;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 8px;
}

/* 23. Buttons
   ----------------------------------------- */
.btn-primary {
  display: inline-block;
  background-color: var(--color-orange);
  color: var(--color-navy);
  padding: 12px 30px;
  border-radius: var(--radius-pill);
  text-decoration: none;
  font-weight: 800;
  font-size: 0.9rem;
  letter-spacing: 1px;
  transition: all 0.3s ease;
  border: 2px solid var(--color-orange);
  text-transform: uppercase;
  cursor: pointer;
}

.btn-primary:hover {
  background-color: transparent;
  color: var(--color-orange);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(255, 102, 0, 0.3);
}

.apple-btn {
  display: inline-block;
  background: var(--color-orange);
  color: var(--color-navy);
  padding: 18px 45px;
  border-radius: var(--radius-pill);
  text-decoration: none;
  font-weight: 800;
  box-shadow: var(--shadow-btn);
  transition: all 0.3s ease;
  margin-top: 28px;
}

.apple-btn:hover {
  transform: scale(1.05);
  box-shadow: var(--shadow-btn-hover);
}

/* 24. Animations & Keyframes
   ----------------------------------------- */
@keyframes fadeInPage {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes smoothSlideRibbon {
  from { opacity: 0; transform: translateX(-100%); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes smoothSlideText {
  from { opacity: 0; transform: translateX(-40px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes textFadeIn {
  from { opacity: 0; transform: translateX(-20px); }
  to { opacity: 1; transform: translateX(0); }
}

/* 25. Responsive — Large Screens (1800px+)
   ----------------------------------------- */
@media (min-width: 1800px) {
  .nav-container { max-width: 1900px; min-height: 104px; }
  .asymmetric-hero {
    height: clamp(760px, calc(100vh - 132px), 960px);
    min-height: 760px;
    grid-template-columns: minmax(0, 50%) minmax(0, 50%);
  }
  .text-slide { width: min(100%, 820px); max-width: 820px; }
  .container { width: min(1760px, calc(100% - 180px)); }
  .featured-projects { padding: 120px 0; }
  .carousel-btn { width: 68px; height: 68px; font-size: 1.55rem; }
  .footer-certifications, .footer-main, .footer-bottom { max-width: 1600px; }
}

/* 26. Responsive — Tablet/Laptop (1080px)
   ----------------------------------------- */
@media (max-width: 1540px) and (min-width: 901px) {
  .nav-container {
    display: grid;
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 8px;
    padding: 8px 28px 10px;
    min-height: 0;
  }
  nav { width: 100%; }
  nav ul { width: 100%; justify-content: center; gap: clamp(22px, 3.2vw, 44px); }
  .logo-text { width: clamp(280px, 30vw, 420px); max-width: 62vw; }
  .logo-link img { height: clamp(34px, 2.8vw, 46px); }
  .brand-name { font-size: clamp(24px, 2.2vw, 36px) !important; }
  .brand-sub { font-size: clamp(17px, 1.5vw, 24px) !important; }
}

@media (max-width: 1080px) {
  .asymmetric-hero {
    grid-template-columns: 1fr;
    height: auto;
    min-height: 0;
  }
  .hero-content-left { padding: 50px 28px; overflow: visible; }
  .text-slide { max-width: 720px; }
  .hero-visual-right { min-height: 390px; clip-path: none; }
  .capability-grid { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
}

/* 27. Responsive — Mobile (768px)
   ----------------------------------------- */
@media (max-width: 900px) {
  .hamburger { display: flex; flex-direction: column; }

  nav ul {
    display: none;
    flex-direction: column;
    align-items: center;
    gap: 0;
    width: 100%;
    background: var(--color-white);
    padding: 0;
    border-top: 1px solid var(--color-border);
  }

  body.menu-open nav ul { display: flex; }

  .nav-item { width: 100%; text-align: center; }

  .nav-item a {
    display: block;
    padding: 14px 20px;
    border-bottom: 1px solid var(--color-border);
    font-size: 16px;
  }

  .nav-quote-btn {
    margin: 12px 20px;
    width: calc(100% - 40px);
    text-align: center;
  }

  /* The menu drops onto its own full-width row below the logo. While closed that row is
     empty, so there is no row gap to add height. */
  .nav-container {
    flex-wrap: wrap;
    min-height: 0;
    row-gap: 0;
  }

  nav { flex-basis: 100%; }

  .asymmetric-hero h1, .asymmetric-hero h2 { font-size: 2.7rem; }
  .brand-tag { font-size: 1rem; }

  .contact-grid { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .action-footer { flex-direction: column; gap: 16px; text-align: center; }
  .certification-row, .policy-row { grid-template-columns: repeat(2, 1fr); }
  .project-card { flex: 0 0 86%; aspect-ratio: 4 / 3; }
  .footer-main { grid-template-columns: 1fr 1fr; }
}

/* 28. Responsive — Small Mobile (480px)
   ----------------------------------------- */
@media (max-width: 640px) {
  /* One row of phone + email; the address is on the Contact page and in the footer */
  .header-contact-bar {
    gap: clamp(10px, 4vw, 16px);
    flex-wrap: nowrap;
    padding: 0 8px;
    font-size: clamp(11px, 3.2vw, 12px);
  }
  .header-contact-bar a { padding: 6px 0; white-space: nowrap; }
  .header-contact-bar .contact-address { display: none; }
  /* Scale hero headings so "MANUFACTURING" (the longest word) fits within the 28px side padding */
  .asymmetric-hero h1, .asymmetric-hero h2 { font-size: min(2.7rem, calc((100vw - 56px) / 9.6)); }
  .nav-container { padding: 8px 20px; }
  .logo-link img { height: 38px; }
  .brand-name { font-size: 22px; }
  .brand-sub { font-size: 14px; }
  .certification-row, .policy-row { grid-template-columns: 1fr; }
  .sector-grid { grid-template-columns: repeat(2, 1fr); }
  .material-table { font-size: 0.85rem; }
  .material-table th, .material-table td { padding: 10px 5px; }
  .material-table th { font-size: 0.8rem; text-transform: none; letter-spacing: 0; }
  .footer-main { grid-template-columns: 1fr; text-align: center; }
  .image-lightbox-toolbar { top: 10px; right: 10px; left: 10px; justify-content: center; }
}

/* 31. Image Loading Skeletons (#9)
   ----------------------------------------- */
.modern-card img,
.project-card img {
  background: linear-gradient(110deg, #f0f0f0 8%, #e0e0e0 18%, #f0f0f0 33%);
  background-size: 200% 100%;
  animation: shimmer 1.5s linear infinite;
}

@keyframes shimmer {
  to { background-position: -200% 0; }
}

.modern-card img { aspect-ratio: 3 / 2; }

/* 32. Animated Stat Counters (#10)
   ----------------------------------------- */
.stats-strip {
  padding: 60px 0;
  background: var(--color-navy);
  color: var(--color-white);
}

.stats-grid {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 48px;
}

.stat-item {
  text-align: center;
  min-width: 140px;
}

.stat-number {
  font-size: clamp(2.4rem, 4vw, 3.6rem);
  font-weight: 900;
  color: var(--color-orange);
  line-height: 1;
  margin-bottom: 6px;
  display: block;
}

.stat-label {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #a0aec0;
  font-weight: 600;
}

/* 33. Breadcrumb Navigation (#12)
   ----------------------------------------- */
.breadcrumb {
  padding: 12px 20px;
  font-size: 0.82rem;
  color: var(--color-text-muted);
  max-width: var(--content-width);
  margin: 0 auto;
}

.breadcrumb a {
  color: var(--color-text-muted);
  text-decoration: none;
  transition: color 0.2s ease;
}

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

.breadcrumb span { margin: 0 6px; }

/* 34. Sticky Mobile CTA (#13)
   ----------------------------------------- */
.mobile-cta {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 2500;
  padding: 8px 16px;
  background: var(--color-white);
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
  text-align: center;
}

.mobile-cta a {
  display: block;
  width: 100%;
  background: var(--color-orange);
  color: var(--color-navy);
  padding: 10px;
  border-radius: var(--radius-pill);
  text-decoration: none;
  font-weight: 800;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* 35. Dark Mode (#11)
   ----------------------------------------- */
@media (prefers-color-scheme: dark) {
  :root {
    --color-off-white: #111417;
    --color-bg-subtle: #161a1e;
    --color-text: #e0e4e8;
    --color-text-light: #b0b8c4;
    --color-text-muted: #8891a0;
    --color-border: #2a2f36;
    --color-border-light: rgba(255, 255, 255, 0.06);
    --shadow-card: 0 4px 20px rgba(0, 0, 0, 0.2);
    --shadow-card-hover: 0 20px 40px rgba(0, 0, 0, 0.3);
  }

  body { background-color: #111417; color: #e0e4e8; }

  .header-contact-bar { background: #060a0e; border-bottom: 2px solid var(--color-orange); }

  header { background: #1a1e23; box-shadow: 0 2px 15px rgba(0, 0, 0, 0.3); }

  .nav-item a { color: #e0e4e8; }
  .nav-item a:hover, .nav-item a.active { color: var(--color-orange); }

  .brand-sub { color: #e0e4e8; }

  .main-content { background: #1a1e23; box-shadow: 0 0 60px rgba(0, 0, 0, 0.25); }
  .main-content p { color: #b0b8c4; }

  .highlight-statement { background-color: #1a1e23; color: #e0e4e8; }

  .policy-card { background: #1a1e23; border-color: #2a2f36; }
  .policy-card h4 { color: var(--color-orange); }
  .policy-card p { color: #8891a0; }

  .capability-card { background: #1a1e23; border-color: rgba(255, 255, 255, 0.06); }
  .capability-card h3 { color: #e0e4e8; }
  .capability-card p { color: #b0b8c4; }

  .modern-card { background: #1a1e23; border-color: rgba(255, 255, 255, 0.08); }
  .modern-card h2, .modern-card h3 { color: #e0e4e8; }
  .project-card-body p { color: #b0b8c4; }

  .sector-card { background: #1a1e23; border-color: #2a2f36; color: #e0e4e8; }
  .sector-card h4 { color: #e0e4e8; }
  .sector-card p { color: #8891a0; }

  .industry-sectors { background: #0d1014; }

  .material-table th { background: #0b131a; }
  .material-table td { border-color: #2a2f36; color: #b0b8c4; }
  .material-table tr:hover { background: rgba(243, 112, 33, 0.08); }

  .quote-form label { color: #e0e4e8; }

  .quote-form input, .quote-form textarea, .quote-form select {
    background: #1a1e23; border-color: #2a2f36; color: #e0e4e8;
  }

  .quote-form input.has-error, .quote-form textarea.has-error, .quote-form select.has-error {
    border-color: #f25555; background: #2a1414;
  }

  .field-error { color: #f25555; }

  .form-status-banner { background: #2a1414; border-color: #f25555; color: #f5b3b3; }

  .required-note { color: #8891a0; }

  .carousel-btn { background: #1a1e23; }
  .carousel-btn:hover { background: var(--color-orange); }

  .policy-list li { color: #b0b8c4; }

  .contact-info a { color: var(--color-orange); }

  .map-container { border-color: #2a2f36; }

  .back-link { color: #8891a0; }


  .mobile-cta { background: #1a1e23; box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3); }

  .page-header { background: #111417; }
  .page-header h1 { color: #e0e4e8; }
  .page-header p { color: #8891a0; }

  h1, h2, h3, h4, h5, h6 { color: #e0e4e8; }

  .modern-card img, .project-card img {
    background: linear-gradient(110deg, #222 8%, #2a2a2a 18%, #222 33%);
    background-size: 200% 100%;
  }

  .asymmetric-hero { background: #111417; }
  .asymmetric-hero h1, .asymmetric-hero h2 { color: #ffffff; }
  .asymmetric-hero p { color: #b0b8c4; }
  .hero-visual-right { background: #1a1e23; }

  .capabilities-strip { background: #161a1e; }

  .status-note { background: #1e1710; border-color: var(--color-orange); color: #b0b8c4; }

  .action-footer { border-color: #2a2f36; }

  /* Orange CTA buttons keep navy text in dark mode too — the orange
     background doesn't change, so navy text maintains ~6:1 contrast
     regardless of overall page theme. */

  .footer-bottom { color: #8891a0; }
}

/* Mobile CTA & breadcrumb responsive */
@media (max-width: 900px) {
  .mobile-cta { display: block; }
  /* Room for the fixed quote bar so it never covers the end of the page */
  body.has-mobile-cta { padding-bottom: 60px; }
  .back-to-top { bottom: 72px; }
}

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

/* 30. Print Styles
   ----------------------------------------- */
@media print {
  header, footer, .skip-link, .back-to-top,
  .carousel-btn, .hero-slideshow-controls,
  .image-lightbox, .mobile-cta { display: none; }
  body { font-size: 12pt; line-height: 1.5; color: #000; background: #fff; }
  main { padding: 0; max-width: 100%; }
  .action-footer { border-top: 1px solid #ccc; }
  .policy-card, .modern-card, .capability-card { break-inside: avoid; box-shadow: none; border: 1px solid #ccc; }
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 0.8em; color: #666; }
}

/* Focus Visible
   ----------------------------------------- */
:focus-visible {
  outline: 3px solid var(--color-orange);
  outline-offset: 3px;
}
