/* ─────────────────────────────────────────────────────────────
   Grid Design Works  ·  Landing Page Styles
   ───────────────────────────────────────────────────────────── */

@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300;400;500;600;700&family=Inter:wght@300;400;500;600&display=swap');

/* ── Design Tokens ─────────────────────────────────────────── */
:root {
  --navy:          #0d1b2a;
  --navy-mid:      #162535;
  --navy-light:    #1e3555;
  --gold:          #c9973a;
  --gold-light:    #dba94a;
  --gold-pale:     rgba(201, 151, 58, 0.10);
  --gold-border:   rgba(201, 151, 58, 0.30);

  --white:         #ffffff;
  --off-white:     #f8f9fa;
  --gray-50:       #f4f6f8;
  --gray-100:      #eaecef;
  --gray-200:      #d8dce2;
  --gray-400:      #9aa3af;
  --gray-600:      #5a6a7a;
  --gray-800:      #2c3a47;
  --text:          #1a2332;
  --text-muted:    #5a6a7a;

  --font-head:     'Space Grotesk', 'DM Sans', Arial, sans-serif;
  --font-body:     'Inter', Arial, sans-serif;

  --radius-sm:     6px;
  --radius:        12px;
  --radius-lg:     20px;
  --radius-xl:     32px;

  --shadow-sm:     0 1px 4px rgba(13,27,42,0.07);
  --shadow:        0 4px 20px rgba(13,27,42,0.10);
  --shadow-lg:     0 12px 48px rgba(13,27,42,0.14);
  --shadow-gold:   0 8px 32px rgba(201,151,58,0.18);

  --transition:    0.25s cubic-bezier(0.4, 0, 0.2, 1);

  --max-width:     1140px;
  --section-pad:   96px;

  /* Heading color — overridden in dark mode */
  --color-heading: var(--navy);
}

/* ── Dark mode tokens ───────────────────────────────────────── */
[data-theme="dark"] {
  --color-heading: #dce8f0;

  --white:         #0f1d2d;
  --off-white:     #0c1a28;
  --gray-50:       #162535;
  --gray-100:      rgba(255, 255, 255, 0.08);
  --gray-200:      rgba(255, 255, 255, 0.13);
  --gray-400:      #5a7a94;
  --gray-600:      #8fa4b8;
  --gray-800:      #c8d8e8;
  --text:          #dce8f0;
  --text-muted:    #7a9ab2;

  --shadow-sm:     0 1px 4px rgba(0, 0, 0, 0.40);
  --shadow:        0 4px 20px rgba(0, 0, 0, 0.50);
  --shadow-lg:     0 12px 48px rgba(0, 0, 0, 0.60);
}

/* Invert the about diagram so navy lines read on the dark bg */
[data-theme="dark"] .about__diagram { filter: invert(1); }

/* ── Reset ─────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--white);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  transition: background-color 0.3s ease, color 0.3s ease;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button, input, textarea, select {
  font: inherit;
  border: none;
  background: none;
  outline: none;
}

/* ── Typography ────────────────────────────────────────────── */
h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--color-heading);
}
h1 { font-size: clamp(2.4rem, 5vw, 3.8rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); }
h3 { font-size: clamp(1.1rem, 2vw, 1.35rem); }
p  { color: var(--text-muted); }

.eyebrow {
  font-family: var(--font-head);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
}

/* ── Layout helpers ─────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 32px;
}
.section { padding: var(--section-pad) 0; }
.section--dark { background: var(--navy); color: #ffffff; }
.section--alt  { background: var(--off-white); }

/* ── Buttons ────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.93rem;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}
.btn--primary {
  background: var(--gold);
  color: var(--navy);
  box-shadow: var(--shadow-gold);
}
.btn--primary:hover {
  background: var(--gold-light);
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(201,151,58,0.30);
}
.btn--ghost {
  border: 1.5px solid rgba(255,255,255,0.35);
  color: #ffffff;
  backdrop-filter: blur(4px);
}
.btn--ghost:hover {
  border-color: var(--gold);
  color: var(--gold);
  transform: translateY(-2px);
}
.btn--outline {
  border: 1.5px solid var(--gold-border);
  color: var(--gold);
}
.btn--outline:hover {
  background: var(--gold-pale);
  transform: translateY(-2px);
}
.btn svg { width: 18px; height: 18px; flex-shrink: 0; }

/* ── Navigation ─────────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 0;
  transition: background var(--transition), box-shadow var(--transition), padding var(--transition);
}
.nav.scrolled {
  background: rgba(13, 27, 42, 0.96);
  backdrop-filter: blur(16px);
  box-shadow: 0 1px 0 rgba(255,255,255,0.07);
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 96px;
  gap: 24px;
}
.nav__logo img { height: 68px; width: auto; }
.nav__links {
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav__links a {
  font-family: var(--font-head);
  font-size: 0.88rem;
  font-weight: 500;
  color: rgba(255,255,255,0.75);
  letter-spacing: 0.01em;
  transition: color var(--transition);
}
.nav__links a:hover { color: var(--gold); }
.nav__cta { margin-left: 8px; }
.nav__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
}
.nav__hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: #ffffff;
  border-radius: 2px;
  transition: var(--transition);
}

/* Mobile nav */
.nav__mobile {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--navy);
  z-index: 1001;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 32px;
}
.nav__mobile.open { display: flex; }
.nav__mobile a {
  font-family: var(--font-head);
  font-size: 1.5rem;
  font-weight: 600;
  color: #ffffff;
  transition: color var(--transition);
}
.nav__mobile a:hover { color: var(--gold); }
.nav__mobile-logo {
  position: absolute;
  top: 20px; left: 24px;
}
.nav__mobile-close {
  position: absolute;
  top: 24px; right: 24px;
  background: none;
  border: none;
  cursor: pointer;
  color: #ffffff;
}

/* ── Hero ────────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100svh;
  background:
    linear-gradient(90deg, rgba(7, 15, 26, 0.96) 0%, rgba(9, 18, 30, 0.88) 34%, rgba(9, 18, 30, 0.46) 68%, rgba(9, 18, 30, 0.74) 100%),
    url('../assets/machine-shop-bim-hero.png') center / cover no-repeat,
    var(--navy);
  display: flex;
  align-items: center;
  overflow: hidden;
}

/* Subtle grid pattern */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.055) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(90deg, #000 0%, rgba(0,0,0,0.75) 58%, transparent 100%);
  pointer-events: none;
}

/* Industrial vignette */
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 18% 42%, rgba(201,151,58,0.16) 0%, transparent 32%),
    linear-gradient(180deg, rgba(7,15,26,0.16) 0%, rgba(7,15,26,0.74) 100%);
  pointer-events: none;
}

.hero__content {
  position: relative;
  z-index: 2;
  max-width: 650px;
  padding-top: 56px;
}
.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border: 1px solid var(--gold-border);
  border-radius: 100px;
  font-size: 0.78rem;
  font-family: var(--font-head);
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 28px;
}
.hero__badge::before {
  content: '';
  display: block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.5; transform: scale(0.85); }
}
.hero h1 {
  color: #ffffff;
  margin-bottom: 24px;
}
.hero h1 .accent { color: var(--gold); }
.hero__sub {
  font-size: 1.1rem;
  line-height: 1.7;
  color: rgba(255,255,255,0.68);
  max-width: 520px;
  margin-bottom: 40px;
}
.hero__actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.hero__signals {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  max-width: 560px;
  margin-top: 42px;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.10);
  backdrop-filter: blur(14px);
}
.hero__signals span {
  display: grid;
  gap: 4px;
  padding: 16px 18px;
  background: rgba(7,15,26,0.58);
}
.hero__signals strong {
  font-family: var(--font-head);
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  color: var(--gold);
}
.hero__signals small {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.62);
}

/* Decorative mark (large, behind content) */
.hero__mark {
  position: absolute;
  right: -4%;
  top: 50%;
  transform: translateY(-50%);
  width: clamp(320px, 38vw, 520px);
  opacity: 0.055;
  pointer-events: none;
  z-index: 1;
}
.hero__mark .cell {
  opacity: 0;
  animation: cellReveal 0.5s ease-out forwards;
}
@keyframes cellReveal {
  from { opacity: 0; transform: scale(0.7); }
  to   { opacity: 1; transform: scale(1); }
}

/* ── Section headers ─────────────────────────────────────────── */
.section-header {
  text-align: center;
  max-width: 620px;
  margin: 0 auto 64px;
}
.section-header p {
  margin-top: 16px;
  font-size: 1.05rem;
  line-height: 1.7;
}

/* ── Services ───────────────────────────────────────────────── */
.services__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}
.service-card {
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-top: 3px solid var(--gold);
  border-radius: var(--radius-lg);
  padding: 40px 36px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.service-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--gold-pale) 0%, transparent 60%);
  opacity: 0;
  transition: opacity var(--transition);
}
.service-card:hover {
  border-color: var(--gold-border);
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}
.service-card:hover::before { opacity: 1; }
.service-card__icon {
  width: 52px;
  height: 52px;
  background: var(--gold-pale);
  border: 1px solid var(--gold-border);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  position: relative;
}
.service-card__icon svg { width: 26px; height: 26px; }
.service-card h3 {
  margin-bottom: 14px;
  font-size: 1.18rem;
}
.service-card p {
  font-size: 0.95rem;
  line-height: 1.7;
}
.service-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 24px;
}
.tag {
  padding: 4px 12px;
  background: var(--gray-50);
  border: 1px solid var(--gray-100);
  border-radius: 100px;
  font-size: 0.78rem;
  font-family: var(--font-head);
  font-weight: 500;
  color: var(--gray-800);
  letter-spacing: 0.01em;
}

/* ── Process ─────────────────────────────────────────────────── */
.process { background: var(--navy); position: relative; overflow: hidden; }
.process::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 40px 40px;
}
.process .section-header { position: relative; }
.process .section-header h2 { color: #ffffff; }
.process .section-header p  { color: rgba(255,255,255,0.55); }
.process .eyebrow { color: var(--gold); }

.process__steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2px;
  position: relative;
}
.process-step {
  position: relative;
  padding: 40px 32px;
  border: 1px solid rgba(255,255,255,0.07);
  background: rgba(255,255,255,0.02);
  transition: var(--transition);
}
.process-step:first-child { border-radius: var(--radius) 0 0 var(--radius); }
.process-step:last-child  { border-radius: 0 var(--radius) var(--radius) 0; }
.process-step:hover {
  background: rgba(201,151,58,0.06);
  border-color: var(--gold-border);
  z-index: 1;
}
.process-step__num {
  font-family: var(--font-head);
  font-size: 3.2rem;
  font-weight: 700;
  color: rgba(201,151,58,0.18);
  line-height: 1;
  margin-bottom: 20px;
  letter-spacing: -0.04em;
}
.process-step h3 {
  color: #ffffff;
  font-size: 1.05rem;
  margin-bottom: 12px;
}
.process-step p {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.50);
  line-height: 1.65;
}
/* Connector arrow between steps (desktop) */
.process-step:not(:last-child)::after {
  content: '';
  position: absolute;
  right: -8px;
  top: 50%;
  transform: translateY(-50%) rotate(45deg);
  width: 14px;
  height: 14px;
  border-top: 2px solid var(--gold);
  border-right: 2px solid var(--gold);
  opacity: 0.4;
  z-index: 2;
}

/* ── CTA Banner ─────────────────────────────────────────────────── */
.cta-banner {
  background: var(--navy);
  position: relative;
  overflow: hidden;
  padding: 80px 0;
  border-top: 1px solid rgba(201,151,58,0.15);
  border-bottom: 1px solid rgba(201,151,58,0.15);
}
.cta-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 50%,
    rgba(201,151,58,0.08) 0%, transparent 70%);
  pointer-events: none;
}
.cta-banner__inner {
  position: relative;
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}
.cta-banner__inner h2 {
  color: #ffffff;
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  margin-bottom: 12px;
}
.cta-banner__inner p {
  color: rgba(255,255,255,0.50);
  font-size: 1.05rem;
  margin-bottom: 32px;
}
.cta-banner__inner .btn { display: inline-flex; }

/* ── About ────────────────────────────────────────────────────── */
.about__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.about__text .eyebrow { text-align: left; }
.about__text h2 { margin-bottom: 20px; }
.about__text p  { font-size: 1rem; line-height: 1.75; margin-bottom: 16px; }
.about__stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 40px;
}
.stat {
  padding: 24px;
  background: var(--off-white);
  border-radius: var(--radius);
  border: 1px solid var(--gray-100);
}
.stat__value {
  font-family: var(--font-head);
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-heading);
  line-height: 1;
  margin-bottom: 6px;
}
.stat__value span { color: var(--gold); }
.stat__label {
  font-size: 0.85rem;
  color: var(--text-muted);
}
.about__visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.about__diagram {
  width: 100%;
  max-width: 420px;
}

/* ── FAQ ─────────────────────────────────────────────────────── */
.faq {
  background:
    radial-gradient(circle at top right, rgba(201,151,58,0.08), transparent 32%),
    var(--white);
}
.faq__list {
  max-width: 860px;
  margin: 0 auto;
  display: grid;
  gap: 16px;
}
.faq__item {
  background: var(--off-white);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius);
  padding: 22px 24px;
  box-shadow: var(--shadow-sm);
}
.faq__item summary {
  list-style: none;
  cursor: pointer;
  font-family: var(--font-head);
  font-size: 1.02rem;
  font-weight: 600;
  color: var(--color-heading);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: '+';
  flex-shrink: 0;
  color: var(--gold);
  font-size: 1.4rem;
  line-height: 1;
}
.faq__item[open] summary::after { content: '−'; }
.faq__item p {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--gray-100);
  line-height: 1.7;
}

/* ── Contact ─────────────────────────────────────────────────── */
.contact__inner {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 0;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.contact__info {
  background: var(--navy);
  padding: 56px 48px;
  position: relative;
  overflow: hidden;
}
.contact__info::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 32px 32px;
}
.contact__info > * { position: relative; }
.contact__info .eyebrow { color: var(--gold); }
.contact__info h2 { color: #ffffff; margin-bottom: 16px; }
.contact__info > p { color: rgba(255,255,255,0.55); margin-bottom: 40px; }
.contact__details { display: flex; flex-direction: column; gap: 20px; }
.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}
.contact-item__icon {
  width: 40px;
  height: 40px;
  background: rgba(201,151,58,0.15);
  border: 1px solid var(--gold-border);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.contact-item__icon svg { width: 18px; height: 18px; color: var(--gold); }
.contact-item__text {
  padding-top: 2px;
}
.contact-item__label {
  font-size: 0.78rem;
  font-family: var(--font-head);
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.40);
  margin-bottom: 2px;
}
.contact-item__value {
  font-size: 0.97rem;
  color: #ffffff;
  font-weight: 500;
}
.contact-item__value a {
  color: #ffffff;
  transition: color var(--transition);
}
.contact-item__value a:hover { color: var(--gold); }

.contact__form-wrap {
  background: var(--white);
  padding: 56px 48px;
}
.contact__form-wrap h3 {
  font-size: 1.3rem;
  margin-bottom: 8px;
}
.contact__form-wrap > p {
  font-size: 0.92rem;
  margin-bottom: 32px;
}
.form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.form__group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.form__group label {
  font-family: var(--font-head);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--gray-800);
}
.form__group input,
.form__group select,
.form__group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-sm);
  font-size: 0.93rem;
  color: var(--text);
  background: var(--white);
  transition: border-color var(--transition), box-shadow var(--transition);
}
.form__group input:focus,
.form__group select:focus,
.form__group textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201,151,58,0.12);
}
.form__group textarea { resize: vertical; min-height: 120px; }
.form__group select { appearance: none; cursor: pointer; }
/* ── File upload ─────────────────────────────────────────────── */
.form__optional {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 8px;
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: 100px;
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--gray-600);
  letter-spacing: 0.03em;
  vertical-align: middle;
}

.upload-zone {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 28px 20px;
  border: 1.5px dashed var(--gray-200);
  border-radius: var(--radius-sm);
  background: var(--gray-50);
  cursor: pointer;
  transition: border-color var(--transition), background var(--transition);
  text-align: center;
}
.upload-zone:hover,
.upload-zone:focus-visible {
  border-color: var(--gold);
  background: var(--gold-pale);
  outline: none;
}
.upload-zone.drag-over {
  border-color: var(--gold);
  background: var(--gold-pale);
  box-shadow: 0 0 0 3px rgba(201,151,58,0.12);
}
.upload-zone__input {
  /* visually hidden but reachable by the label/zone click */
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}
.upload-zone__icon {
  width: 28px;
  height: 28px;
  color: var(--gold);
  margin-bottom: 4px;
}
.upload-zone__primary {
  font-size: 0.92rem;
  font-family: var(--font-head);
  font-weight: 500;
  color: var(--gray-800);
}
.upload-zone__primary span {
  color: var(--gold);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.upload-zone__help {
  font-size: 0.78rem;
  color: var(--gray-400);
  line-height: 1.5;
}

.upload-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 10px;
}
.upload-list__item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius-sm);
  font-size: 0.87rem;
}
.upload-list__item svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  color: var(--gold);
}
.upload-list__name {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--gray-800);
  font-weight: 500;
}
.upload-list__size {
  color: var(--gray-400);
  font-size: 0.78rem;
  white-space: nowrap;
}
.upload-list__remove {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--gray-100);
  cursor: pointer;
  transition: background var(--transition);
  flex-shrink: 0;
  border: none;
}
.upload-list__remove:hover { background: #fde8e8; }
.upload-list__remove svg   { width: 12px; height: 12px; color: #c0392b; }

.upload-error {
  margin-top: 6px;
  font-size: 0.82rem;
  color: #c0392b;
  min-height: 1.2em;
}

.form__submit { margin-top: 8px; }
.form__submit .btn { width: 100%; justify-content: center; }

.form__success {
  display: none;
  text-align: center;
  padding: 32px;
  background: rgba(201,151,58,0.06);
  border: 1px solid var(--gold-border);
  border-radius: var(--radius);
}
.form__success svg {
  width: 44px; height: 44px;
  margin: 0 auto 16px;
  color: var(--gold);
}
.form__success h4 {
  font-size: 1.1rem;
  margin-bottom: 8px;
}
.form__success p { font-size: 0.92rem; }

/* ── Footer ──────────────────────────────────────────────────── */
.footer {
  background: var(--navy);
  border-top: 1px solid rgba(255,255,255,0.07);
  padding: 40px 0;
}
.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.footer__logo {
  display: inline-flex;
  transition: opacity var(--transition), transform var(--transition);
}
.footer__logo:hover,
.footer__logo:focus-visible {
  opacity: 0.82;
  transform: translateY(-1px);
}
.footer__copy {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.35);
}
.footer__links {
  display: flex;
  gap: 24px;
}
.footer__links a {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.40);
  transition: color var(--transition);
}
.footer__links a:hover { color: var(--gold); }

/* ── Theme toggle button ─────────────────────────────────────── */
.nav__theme-toggle {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: rgba(255, 255, 255, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.15);
  transition: color var(--transition), border-color var(--transition),
              background var(--transition);
  flex-shrink: 0;
}
.nav__theme-toggle:hover {
  color: var(--gold);
  border-color: var(--gold-border);
  background: rgba(201, 151, 58, 0.08);
}
.nav__theme-toggle svg { width: 16px; height: 16px; }

/* Show moon in light mode, sun in dark mode */
.nav__theme-toggle .icon-sun  { display: none; }
.nav__theme-toggle .icon-moon { display: block; }
[data-theme="dark"] .nav__theme-toggle .icon-sun  { display: block; }
[data-theme="dark"] .nav__theme-toggle .icon-moon { display: none; }

/* Mobile menu toggle */
.nav__mobile-theme {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-head);
  font-size: 0.88rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.55);
  cursor: pointer;
  background: none;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 100px;
  padding: 8px 20px;
  transition: color var(--transition), border-color var(--transition);
}
.nav__mobile-theme:hover { color: var(--gold); border-color: var(--gold-border); }
.nav__mobile-theme svg { width: 15px; height: 15px; }
.nav__mobile-theme .icon-sun  { display: none; }
.nav__mobile-theme .icon-moon { display: block; }
[data-theme="dark"] .nav__mobile-theme .icon-sun  { display: block; }
[data-theme="dark"] .nav__mobile-theme .icon-moon { display: none; }
.nav__mobile-theme .label-dark  { display: block; }
.nav__mobile-theme .label-light { display: none; }
[data-theme="dark"] .nav__mobile-theme .label-dark  { display: none; }
[data-theme="dark"] .nav__mobile-theme .label-light { display: block; }

/* ── Fade-in animation (JS driven) ──────────────────────────── */
.fade-up {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.65s cubic-bezier(0.16, 1, 0.3, 1);
}
.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}
.fade-up[data-delay="1"] { transition-delay: 0.08s; }
.fade-up[data-delay="2"] { transition-delay: 0.16s; }
.fade-up[data-delay="3"] { transition-delay: 0.24s; }
.fade-up[data-delay="4"] { transition-delay: 0.32s; }

/* ── Responsive ──────────────────────────────────────────────── */
@media (max-width: 900px) {
  :root { --section-pad: 72px; }

  .nav__inner { height: 72px; }
  .nav__logo img { height: 38px; }
  .nav__links, .nav__cta { display: none; }
  .nav__hamburger { display: flex; }

  .hero__mark { display: none; }
  .hero__content { padding-top: 72px; }
  .hero {
    background:
      linear-gradient(180deg, rgba(7, 15, 26, 0.94) 0%, rgba(7, 15, 26, 0.76) 58%, rgba(7, 15, 26, 0.96) 100%),
      url('../assets/machine-shop-bim-hero.png') 62% center / cover no-repeat,
      var(--navy);
  }

  .about__inner {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .about__visual { order: -1; }

  .contact__inner {
    grid-template-columns: 1fr;
    border-radius: var(--radius-lg);
  }

  .cta-banner { padding: 64px 0; }
}

@media (max-width: 640px) {
  :root { --section-pad: 56px; }
  .container { padding: 0 20px; }
  .hero__content { padding-top: 116px; }
  .hero__signals { grid-template-columns: 1fr; margin-top: 28px; }
  .hero__signals span { padding: 13px 15px; }

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

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

  .process-step:first-child,
  .process-step:last-child {
    border-radius: 0;
  }
  .process__steps {
    grid-template-columns: 1fr;
    gap: 0;
    position: relative;
  }
  /* Vertical timeline line on mobile */
  .process__steps::before {
    content: '';
    position: absolute;
    left: 48px;
    top: 40px;
    bottom: 40px;
    width: 2px;
    background: rgba(201,151,58,0.25);
    z-index: 1;
  }
  .process-step { padding-left: 80px; }
  .process-step:first-child { border-radius: var(--radius) var(--radius) 0 0; }
  .process-step:last-child  { border-radius: 0 0 var(--radius) var(--radius); }
  /* Hide horizontal arrows on mobile */
  .process-step:not(:last-child)::after { display: none; }
  /* Timeline dot */
  .process-step__num {
    position: relative;
  }
  .process-step__num::before {
    content: '';
    position: absolute;
    left: -40px;
    top: 50%;
    transform: translateY(-50%);
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--gold);
    opacity: 0.6;
    z-index: 2;
  }

  .contact__info,
  .contact__form-wrap {
    padding: 40px 28px;
  }
  .faq__item {
    padding: 18px 20px;
  }
  .faq__item summary {
    font-size: 0.96rem;
  }
  .footer__inner { flex-direction: column; text-align: center; }

  .cta-banner { padding: 48px 0; }
}
