/* Duran Metal Fabrication Inc. — site styles (from the approved design) */

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

html { -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  background: #F4F3F0;
  color: #1B1E21;
  font-family: 'IBM Plex Sans', system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.55;
  overflow-wrap: break-word;
}

a { color: #A9431A; }
a:hover { color: #7E3112; }
input, textarea, button { font: inherit; }
img { max-width: 100%; }

/* Keyboard focus: dark outline on light areas, white on dark areas */
:focus-visible {
  outline: 3px solid var(--focus, #1B1E21);
  outline-offset: 3px;
}
.dark { --focus: #FFFFFF; }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: #FFFFFF;
  color: #1B1E21;
  font-weight: 600;
  padding: 12px 18px;
}
.skip-link:focus { left: 8px; top: 8px; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.wrap { max-width: 1240px; margin: 0 auto; padding-left: 24px; padding-right: 24px; }

.display { font-family: 'Barlow Condensed', sans-serif; text-transform: uppercase; }

/* ---------- Top bar ---------- */
.topbar { background: #1B1E21; color: #E6E4DF; font-size: 14px; }
.topbar .wrap {
  padding-top: 10px; padding-bottom: 10px;
  display: flex; flex-wrap: wrap; gap: 8px 28px;
  justify-content: space-between; align-items: center;
}
.topbar-contact { display: flex; gap: 24px; flex-wrap: wrap; }
.topbar a { color: #FFFFFF; text-decoration: none; font-weight: 600; }

/* ---------- Header ---------- */
.site-header { background: #FFFFFF; border-bottom: 1px solid #D9D6CF; }
.site-header .wrap {
  padding-top: 18px; padding-bottom: 18px;
  display: flex; flex-wrap: wrap; gap: 16px 40px;
  align-items: center; justify-content: space-between;
}
.logo-link { text-decoration: none; display: flex; align-items: center; }
.logo-link img { height: 84px; width: auto; display: block; }
.main-nav { display: flex; flex-wrap: wrap; gap: 8px 32px; align-items: center; font-weight: 500; }
.main-nav a { color: #1B1E21; text-decoration: none; padding: 10px 0; }
.main-nav a:hover { color: #7E3112; text-decoration: underline; }
.main-nav a[aria-current="page"] { text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 2px; }
.main-nav a.btn, .main-nav a.btn:hover { color: #FFFFFF; text-decoration: none; padding: 12px 22px; }

/* ---------- Buttons ---------- */
.btn {
  background: #B4461A; color: #FFFFFF; text-decoration: none;
  padding: 12px 22px; font-weight: 600; min-height: 44px;
  display: inline-flex; align-items: center; border: none; cursor: pointer;
}
.btn:hover { background: #98390F; color: #FFFFFF; }
.btn-lg { padding: 16px 30px; font-size: 18px; min-height: 52px; }
.btn-outline {
  background: transparent; border: 2px solid #FFFFFF; color: #FFFFFF; text-decoration: none;
  padding: 14px 28px; font-weight: 600; font-size: 18px; min-height: 52px;
  display: inline-flex; align-items: center;
}
.btn-outline:hover { background: #FFFFFF; color: #1B1E21; }

/* ---------- Hero ---------- */
.hero { background: #1B1E21; color: #FFFFFF; }
.hero .wrap {
  padding-top: 80px; padding-bottom: 80px;
  display: flex; flex-wrap: wrap; gap: 48px; align-items: center;
}
.hero-text { flex: 1 1 460px; min-width: 0; }
.hero-kicker { font-size: 14px; letter-spacing: 3px; text-transform: uppercase; color: #C9C5BC; margin-bottom: 18px; }
.hero h1 { font-weight: 800; font-size: 72px; line-height: 0.98; margin: 0 0 24px; }
.hero-lead { font-size: 20px; color: #DAD7D0; margin: 0 0 36px; max-width: 560px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 16px; }
.hero-img { flex: 1 1 440px; min-width: 0; height: 520px; object-fit: cover; display: block; }

/* ---------- Why Duran strip ---------- */
.why { background: #FFFFFF; border-bottom: 1px solid #D9D6CF; }
.why .wrap {
  padding-top: 32px; padding-bottom: 32px;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 24px;
}
.why-title { font-weight: 700; font-size: 24px; }
.why-text { color: #4A4F55; }

/* ---------- Sections ---------- */
.section { padding-top: 96px; padding-bottom: 96px; }
.section-services { padding-bottom: 72px; }
.eyebrow { font-size: 14px; letter-spacing: 3px; text-transform: uppercase; color: #A9431A; font-weight: 600; margin-bottom: 10px; }
h2.display { font-weight: 800; font-size: 52px; line-height: 1; margin: 0 0 40px; }
h3.display { font-weight: 700; font-size: 26px; margin: 0 0 6px; }

.section-services h2 { margin-bottom: 16px; }
.services-lead { font-size: 19px; color: #4A4F55; max-width: 720px; margin: 0 0 20px; }
.services-line { font-weight: 700; font-size: 30px; line-height: 1.1; margin: 0 0 44px; }
.service-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
/* 4:3 at every width, so the whole photo shows and is never cut off */
.card.service-card img, .service-nophoto { width: 100%; height: auto; aspect-ratio: 4 / 3; display: block; }
.service-nophoto {
  background: #1B1E21; color: #FFFFFF; font-weight: 700; font-size: 30px; line-height: 1.1;
  display: flex; align-items: center; justify-content: center; text-align: center; padding: 24px;
}
.chip-rows { margin-top: 48px; display: grid; gap: 22px; }
.chip-label { font-size: 13px; letter-spacing: 2px; text-transform: uppercase; color: #A9431A; font-weight: 600; margin-bottom: 10px; }
.chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 10px; }
.chips li { background: #FFFFFF; border: 1px solid #D9D6CF; padding: 6px 14px; font-size: 15px; color: #33383D; }

.work { background: #E9E7E2; }
.work-head { display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; align-items: flex-end; margin-bottom: 40px; }
.work-head h2 { margin: 0; }
.work-head a { font-weight: 600; }
.work-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr)); gap: 28px; }
.card { background: #FFFFFF; }
.card img { width: 100%; height: 300px; object-fit: cover; display: block; }
.card img.op-40 { object-position: center 40%; }
.card img.op-45 { object-position: center 45%; }
.card img.op-50 { object-position: center 50%; }
.card img.op-55 { object-position: center 55%; }
.card img.op-62 { object-position: center 62%; }
.card-body { padding: 22px 24px 26px; }
.card-kicker { font-size: 13px; letter-spacing: 2px; text-transform: uppercase; color: #4A4F55; margin-bottom: 6px; }
.card-text { color: #4A4F55; }

.contractors h2 { margin-bottom: 16px; }
.contractors-lead { font-size: 19px; color: #4A4F55; max-width: 720px; margin: 0 0 40px; }
.drawing { margin: 0 0 56px; background: #FFFFFF; border: 1px solid #D9D6CF; padding: 16px; }
.drawing img { width: 100%; height: auto; display: block; }
.drawing figcaption { font-size: 14px; color: #4A4F55; margin-top: 10px; }
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 32px; }
.step { border-top: 4px solid #1B1E21; padding-top: 20px; }
.step-num { font-weight: 800; font-size: 44px; color: #A9431A; line-height: 1; }
.step h3 { margin: 10px 0 8px; }
.step p { margin: 0; color: #4A4F55; }

.about { background: #FFFFFF; border-top: 1px solid #D9D6CF; border-bottom: 1px solid #D9D6CF; }
.about .wrap { max-width: 900px; }
.about h2 { margin-bottom: 20px; }
.about p { margin: 0 0 18px; color: #33383D; }
.about p:last-child { margin-bottom: 0; }

/* ---------- Bid form ---------- */
.bid { background: #1B1E21; color: #FFFFFF; }
.bid .wrap { display: flex; flex-wrap: wrap; gap: 56px; }
.bid-intro { flex: 1 1 340px; min-width: 0; }
.bid-intro h2 { margin-bottom: 20px; }
.bid-intro p { color: #DAD7D0; margin: 0 0 32px; }
.bid-contact { color: #DAD7D0; line-height: 1.9; }
.bid-contact a { color: #FFFFFF; }
.bid-phone { font-weight: 600; font-size: 22px; text-decoration: none; }
.bid-form {
  flex: 1 1 560px; min-width: 0;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: 20px;
  align-content: start;
}
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field-wide { grid-column: 1 / -1; }
.field label { font-weight: 500; }
.field input, .field textarea {
  min-height: 48px; padding: 10px 14px; border: 1px solid #6B7178;
  background: #FFFFFF; color: #1B1E21; width: 100%; border-radius: 0;
}
.field textarea { padding: 12px 14px; }
.field input[type="file"] { border: 1px dashed #9AA0A6; background: transparent; color: #FFFFFF; }
.field-hint { font-size: 14px; color: #C9C5BC; }
.form-actions { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 16px; align-items: center; }
.form-actions .btn { padding: 16px 34px; font-size: 18px; min-height: 52px; }
.form-actions .btn[disabled] { opacity: 0.7; cursor: progress; }
.form-note { font-size: 14px; color: #C9C5BC; }
.form-note a { color: #FFFFFF; }
/* Spam trap: hidden from people, visible to bots */
.trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { grid-column: 1 / -1; }
.form-status:empty { display: none; }
.form-status p { margin: 0; padding: 16px 18px; font-weight: 500; }
.form-status .ok { background: #FFFFFF; color: #1B1E21; border-left: 8px solid #2E7D32; }
.form-status .err { background: #FFFFFF; color: #1B1E21; border-left: 8px solid #B3261E; }
.form-status a { color: #A9431A; font-weight: 600; }

/* ---------- Footer ---------- */
.site-footer { background: #111315; color: #C9C5BC; font-size: 15px; }
.site-footer .wrap {
  padding-top: 48px; padding-bottom: 48px;
  display: flex; flex-wrap: wrap; gap: 24px 48px; justify-content: space-between;
}
.footer-name { color: #FFFFFF; font-weight: 600; margin-bottom: 6px; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 12px 28px; align-items: flex-start; }
.footer-nav a { color: #FFFFFF; }
.footer-copy { flex-basis: 100%; }

/* ---------- Text pages (privacy, accessibility, not found) ---------- */
.page { max-width: 900px; margin: 0 auto; padding: 64px 24px 96px; line-height: 1.65; }
.page h1 { font-weight: 800; font-size: 56px; line-height: 1; margin: 0 0 12px; }
.page h2 { font-weight: 700; font-size: 30px; line-height: 1.1; margin: 40px 0 12px; }
.page p { margin: 0 0 20px; }
.page p.lead-in { margin-bottom: 12px; }
.page p.updated { color: #4A4F55; margin-bottom: 40px; }
.page ul { margin: 0 0 20px; padding-left: 24px; }
.page > :last-child { margin-bottom: 0; }

/* ---------- Gallery ---------- */
.gallery-page { padding-top: 64px; padding-bottom: 96px; }
.gallery-page h1 { font-weight: 800; font-size: 56px; line-height: 1; margin: 0 0 12px; }
.gallery-intro { color: #4A4F55; margin: 0 0 28px; max-width: 720px; }
[hidden] { display: none !important; }
.filters { display: flex; flex-wrap: wrap; gap: 8px 10px; margin: 0 0 44px; }
.filter {
  background: #FFFFFF; color: #1B1E21; border: 2px solid #1B1E21;
  min-height: 44px; padding: 8px 16px; font-weight: 600; font-size: 15px; cursor: pointer;
}
.filter:hover { background: #E9E7E2; }
.filter[aria-pressed="true"] { background: #1B1E21; color: #FFFFFF; }
.gallery-section h2 { font-weight: 700; font-size: 34px; line-height: 1.1; margin: 0 0 18px; }
.gallery-grid {
  list-style: none; margin: 0 0 56px; padding: 0;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px;
}
.gallery-grid a { display: block; background: #FFFFFF; position: relative; }
.gallery-grid img { width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: cover; display: block; }
.gallery-grid a:hover img { opacity: 0.88; }
.gallery-grid figure { margin: 0; }
.gallery-grid figcaption {
  background: #1B1E21; color: #FFFFFF; font-size: 13px; letter-spacing: 2px; text-transform: uppercase;
  font-weight: 600; padding: 8px 12px;
}
.gallery-grid .pair { grid-column: span 2; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px; }
.play {
  position: absolute; left: 50%; top: 50%; width: 72px; height: 72px; margin: -36px 0 0 -36px;
  border-radius: 50%; background: #1B1E21; border: 3px solid #FFFFFF;
}
.play::after {
  content: ""; position: absolute; left: 27px; top: 19px;
  border-style: solid; border-width: 14px 0 14px 22px; border-color: transparent transparent transparent #FFFFFF;
}

.lightbox {
  border: none; padding: 0; background: #111315; color: #FFFFFF;
  width: 100vw; height: 100vh; height: 100dvh; max-width: none; max-height: none;
  --focus: #FFFFFF;
}
.lightbox::backdrop { background: #111315; }
.lightbox-inner { display: flex; flex-direction: column; height: 100%; }
.lightbox-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 16px; }
.lightbox-count { font-size: 15px; color: #C9C5BC; }
.lightbox-btns { display: flex; gap: 10px; flex-wrap: wrap; }
.lightbox button {
  background: #1B1E21; color: #FFFFFF; border: 2px solid #FFFFFF;
  min-height: 44px; padding: 8px 16px; font-weight: 600; cursor: pointer;
}
.lightbox button:hover { background: #FFFFFF; color: #1B1E21; }
.lightbox-stage { flex: 1 1 auto; min-height: 0; display: flex; align-items: center; justify-content: center; padding: 0 16px; }
.lightbox-stage img, .lightbox-stage video { max-width: 100%; max-height: 100%; object-fit: contain; display: block; }
.lightbox-caption { margin: 0; padding: 12px 16px 18px; text-align: center; font-size: 15px; color: #E6E4DF; }

/* ---------- Tablet width ---------- */
@media (max-width: 980px) {
  .service-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gallery-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
}

/* ---------- Phone width ---------- */
@media (max-width: 640px) {
  .logo-link img { height: 64px; }
  .main-nav { gap: 4px 22px; }
  .hero .wrap { padding-top: 56px; padding-bottom: 56px; gap: 36px; }
  .hero h1 { font-size: clamp(40px, 12.5vw, 72px); }
  .hero-lead { font-size: 18px; }
  .hero-img { height: 340px; flex-basis: 100%; }
  .section { padding-top: 64px; padding-bottom: 64px; }
  .section-services { padding-bottom: 48px; }
  h2.display { font-size: clamp(36px, 11vw, 52px); }
  .page h1, .gallery-page h1 { font-size: clamp(38px, 11.5vw, 56px); }
  .services-line { font-size: 26px; margin-bottom: 36px; }
  .service-grid { grid-template-columns: minmax(0, 1fr); }
  .bid .wrap { gap: 40px; }
  .page { padding-top: 48px; padding-bottom: 64px; }
  .gallery-page { padding-top: 48px; padding-bottom: 64px; }
  .gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-bottom: 40px; }
  .gallery-section h2 { font-size: 28px; }
  .filters { margin-bottom: 32px; }
  .play { width: 56px; height: 56px; margin: -28px 0 0 -28px; }
  .play::after { left: 20px; top: 14px; border-width: 11px 0 11px 18px; }
}
