/* Haynes Welding — charcoal steel, sky-blue primary, gold secondary */
:root {
  --bg: #0c0f12;
  --bg-elev: #14191f;
  --bg-card: #1a2027;
  --bg-header: rgba(12, 15, 18, 0.88);
  --steel: #8b929c;
  --steel-light: #c8cdd3;
  --text: #eef1f4;
  --muted: #a8b0b8;
  --blue: #33ccff;
  --blue-hover: #5ad6ff;
  --blue-ink: #06212b;
  --gold: #ffcc00;
  --gold-dim: #e6b800;
  --line: rgba(255, 255, 255, 0.09);
  --line-strong: rgba(51, 204, 255, 0.28);
  --shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
  --radius: 12px;
  --header-h: 4.5rem;
  --font-display: "Oswald", "Arial Narrow", "Helvetica Neue", sans-serif;
  --font-body: "Source Sans 3", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --max: 72rem;
  --space: 1.15rem;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 0.75rem);
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text);
  background:
    radial-gradient(1200px 500px at 80% -10%, rgba(51, 204, 255, 0.08), transparent 50%),
    var(--bg);
  min-height: 100vh;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { color: var(--blue-hover); }
:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -100%;
  background: var(--blue);
  color: var(--blue-ink);
  padding: 0.5rem 0.9rem;
  z-index: 100;
  font-weight: 700;
}
.skip-link:focus { top: 0.75rem; }

.container {
  width: min(var(--max), calc(100% - 2rem));
  margin-inline: auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--bg-header);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 1px 0 rgba(255, 204, 0, 0.18);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--header-h);
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: inherit;
  text-decoration: none;
  min-width: 0;
}
.brand-logo {
  width: 3.5rem;
  height: 3.5rem;
  flex-shrink: 0;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 1.05rem;
  color: var(--text);
}
.brand-tag {
  font-size: 0.75rem;
  color: var(--steel);
  letter-spacing: 0.04em;
  margin-top: 0.2rem;
}
.site-nav {
  display: flex;
  align-items: center;
  gap: 1.35rem;
}
.site-nav a {
  color: var(--steel-light);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
}
.site-nav a:hover { color: var(--blue); }
.site-nav .btn { color: var(--blue-ink); }
.site-nav .btn:hover { color: var(--blue-ink); }

.nav-toggle {
  display: none;
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  position: relative;
}
.nav-toggle-bars,
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  content: "";
  display: block;
  width: 1.15rem;
  height: 2px;
  background: currentColor;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  transition: 0.2s ease;
}
.nav-toggle-bars { top: 50%; margin-top: -1px; }
.nav-toggle-bars::before { top: -6px; }
.nav-toggle-bars::after { top: 6px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before {
  top: 0;
  transform: translateX(-50%) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after {
  top: 0;
  transform: translateX(-50%) rotate(-45deg);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.62rem 1.15rem;
  border-radius: 4px;
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}
.btn-primary {
  background: var(--blue);
  color: var(--blue-ink);
  border-color: var(--blue);
}
.btn-primary:hover {
  background: var(--blue-hover);
  color: var(--blue-ink);
}
.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: rgba(255, 204, 0, 0.65);
}
.btn-ghost:hover {
  border-color: var(--gold);
  color: var(--gold);
}
.btn-lg { padding: 0.85rem 1.45rem; font-size: 1rem; }

/* Hero */
.hero {
  position: relative;
  min-height: calc(100svh - var(--header-h));
  display: grid;
  align-items: center;
  isolation: isolate;
  overflow: hidden;
}
.hero-media {
  position: absolute;
  inset: 0;
  z-index: -1;
}
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 60% 40%;
}
.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(8, 10, 12, 0.92) 0%, rgba(8, 10, 12, 0.78) 46%, rgba(8, 10, 12, 0.42) 100%),
    linear-gradient(180deg, rgba(8, 10, 12, 0.25) 0%, rgba(8, 10, 12, 0.15) 50%, rgba(12, 15, 18, 0.95) 100%);
}
.hero-inner {
  padding: 4.5rem 0 5rem;
  max-width: 46rem;
  margin-left: max(1rem, calc((100% - var(--max)) / 2));
  margin-right: auto;
  width: min(46rem, calc(100% - 2rem));
}
.hero-logo {
  width: 7.5rem;
  height: 7.5rem;
  margin-bottom: 1.25rem;
  filter: drop-shadow(0 8px 20px rgba(0, 0, 0, 0.45));
}
.eyebrow {
  font-family: var(--font-display);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  font-size: 0.82rem;
  font-weight: 500;
  margin: 0 0 0.85rem;
}
h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.12;
  margin: 0 0 0.85rem;
}
h1 {
  font-size: clamp(2.35rem, 6vw, 4.15rem);
  text-wrap: balance;
  font-weight: 700;
}
h1 .accent { color: var(--blue); }
h2 { font-size: clamp(1.85rem, 3.4vw, 2.6rem); }
h3 { font-size: 1.25rem; letter-spacing: 0.04em; text-transform: uppercase; }
.hero-lead {
  font-size: 1.15rem;
  color: var(--steel-light);
  max-width: 38rem;
  margin: 0 0 1.75rem;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.85rem; }

/* Sections */
.section { padding: 5rem 0; }
.section-alt {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent 30%),
    var(--bg-elev);
  border-block: 1px solid var(--line);
}
.section-label {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--blue);
  font-size: 0.78rem;
  margin: 0 0 0.6rem;
}
.section-intro {
  max-width: 40rem;
  color: var(--muted);
  margin: 0 0 2.4rem;
  font-size: 1.08rem;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
.service-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.service-card:hover { border-color: var(--line-strong); transform: translateY(-3px); }
.service-card-media {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #111;
}
.service-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}
.service-card:hover .service-card-media img { transform: scale(1.04); }
.service-card-body { padding: 1.35rem 1.35rem 1.5rem; }
.service-icon {
  width: 2.4rem;
  height: 2.4rem;
  color: var(--gold);
  margin-bottom: 0.7rem;
}
.service-icon svg { width: 100%; height: 100%; }
.service-card p { color: var(--muted); margin: 0; }

.subservices-heading {
  margin: 2.75rem 0 1rem;
  font-size: 1.05rem;
  color: var(--steel-light);
}
.subservices {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.subservices li {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-top: 3px solid var(--gold);
  border-radius: 8px;
  padding: 1.15rem 1.2rem;
}
.subservices strong {
  display: block;
  font-family: var(--font-display);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.35rem;
}
.subservices span { color: var(--muted); }

/* Gallery */
.gallery {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
}
.gallery-item {
  display: block;
  width: 100%;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  cursor: zoom-in;
  background: #111;
  aspect-ratio: 4 / 3;
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease, filter 0.4s ease;
}
.gallery-item:hover img,
.gallery-item:focus-visible img {
  transform: scale(1.05);
  filter: brightness(1.08);
}

/* About / why / area */
.about-grid,
.area-grid,
.contact-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 3rem;
  align-items: center;
}
.about-copy p { color: var(--muted); }
.about-aside {
  text-align: center;
  background: radial-gradient(circle at 50% 45%, rgba(51, 204, 255, 0.12), transparent 62%), var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2rem 1.5rem;
}
.about-logo { width: 16rem; height: 16rem; margin: 0 auto 0.75rem; }
.about-aside-caption {
  font-family: var(--font-display);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  font-size: 0.82rem;
  margin: 0;
}

.why-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.why-grid li {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-left: 3px solid var(--blue);
  border-radius: 8px;
  padding: 1.35rem 1.25rem;
}
.why-grid h3 { margin-bottom: 0.45rem; font-size: 1.05rem; }
.why-grid p { margin: 0; color: var(--muted); }

.area-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.55rem;
}
.area-list li {
  border: 1px solid var(--line);
  background: var(--bg-card);
  padding: 0.7rem 0.9rem;
  font-family: var(--font-display);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.92rem;
}
.area-grid p { color: var(--muted); }

/* Contact */
.section-contact {
  background:
    linear-gradient(180deg, rgba(51, 204, 255, 0.05), transparent 28%),
    var(--bg);
}
.contact-details {
  margin: 1.5rem 0;
}
.contact-details div {
  display: grid;
  grid-template-columns: 6.5rem 1fr;
  gap: 0.5rem;
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--line);
}
.contact-details dt {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.8rem;
  color: var(--gold);
  margin: 0;
}
.contact-details dd { margin: 0; }
.placeholder {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  color: var(--blue);
  font-weight: 700;
  letter-spacing: 0.02em;
}
.form-note {
  color: var(--muted);
  font-size: 0.95rem;
  background: rgba(255, 204, 0, 0.08);
  border-left: 3px solid var(--gold);
  padding: 0.85rem 1rem;
}

.quote-form {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
}
.form-row { display: flex; flex-direction: column; gap: 0.35rem; margin-bottom: 1rem; }
.form-duo { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.quote-form label {
  font-weight: 600;
  font-size: 0.92rem;
}
.req {
  color: var(--steel);
  font-weight: 500;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.quote-form input,
.quote-form select,
.quote-form textarea {
  font: inherit;
  color: var(--text);
  background: #10151a;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0.7rem 0.8rem;
  width: 100%;
}
.quote-form input:focus,
.quote-form select:focus,
.quote-form textarea:focus {
  border-color: var(--blue);
  outline: none;
  box-shadow: 0 0 0 3px rgba(51, 204, 255, 0.18);
}
.quote-form textarea { resize: vertical; min-height: 8rem; }
.form-status {
  margin: 1rem 0 0;
  padding: 0.85rem 1rem;
  border-left: 3px solid var(--gold);
  background: rgba(255, 204, 0, 0.1);
  color: var(--text);
}
.form-status[hidden] { display: none; }

/* Footer */
.site-footer {
  background: #090b0d;
  border-top: 1px solid var(--line);
  padding: 2.75rem 0 1.5rem;
  color: var(--muted);
  font-size: 0.95rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--line);
}
.footer-brand {
  display: flex;
  gap: 0.9rem;
  align-items: flex-start;
}
.footer-brand img { width: 4rem; height: 4rem; flex-shrink: 0; }
.footer-brand strong {
  color: var(--text);
  font-family: var(--font-display);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.footer-nav { display: flex; flex-direction: column; gap: 0.45rem; }
.footer-nav a { color: var(--steel-light); text-decoration: none; }
.footer-nav a:hover { color: var(--blue); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding-top: 1.15rem;
}
.photo-credits { max-width: 32rem; }
.photo-credits a { color: var(--steel-light); }

/* Lightbox */
.lightbox {
  width: min(96vw, 1100px);
  max-height: 94vh;
  border: 1px solid var(--line);
  background: #0a0c0e;
  color: var(--text);
  padding: 2.5rem 3.5rem 1.5rem;
  box-shadow: var(--shadow);
}
.lightbox::backdrop { background: rgba(0, 0, 0, 0.82); }
.lightbox figure { margin: 0; }
.lightbox img {
  max-height: 78vh;
  width: auto;
  max-width: 100%;
  margin: 0 auto;
}
.lightbox figcaption {
  margin-top: 0.75rem;
  color: var(--muted);
  text-align: center;
  font-size: 0.95rem;
}
.lightbox-close,
.lightbox-prev,
.lightbox-next {
  position: absolute;
  background: transparent;
  color: var(--text);
  border: 0;
  cursor: pointer;
  font-size: 1.8rem;
  line-height: 1;
  padding: 0.25rem 0.45rem;
}
.lightbox-close { top: 0.35rem; right: 0.6rem; font-size: 2rem; }
.lightbox-prev { left: 0.3rem; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 0.3rem; top: 50%; transform: translateY(-50%); }
.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover { color: var(--blue); }

/* Responsive */
@media (max-width: 960px) {
  .service-grid,
  .subservices,
  .why-grid,
  .gallery { grid-template-columns: 1fr 1fr; }
  .about-grid,
  .area-grid,
  .contact-grid,
  .footer-grid { grid-template-columns: 1fr; gap: 1.75rem; }
  .about-logo { width: 12rem; height: 12rem; }
}

@media (max-width: 760px) {
  .nav-toggle { display: inline-block; }
  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #10151a;
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: stretch;
    padding: 0.75rem 1rem 1.15rem;
    gap: 0.25rem;
  }
  .site-nav.is-open { display: flex; }
  .site-nav a { padding: 0.7rem 0.4rem; }
  .site-nav .btn-nav { margin-top: 0.4rem; width: 100%; }
  .service-grid,
  .subservices,
  .why-grid,
  .gallery,
  .form-duo,
  .area-list { grid-template-columns: 1fr; }
  .hero { min-height: auto; }
  .hero-inner { padding: 3rem 0 3.5rem; }
  .hero-logo { width: 5.75rem; height: 5.75rem; }
  .section { padding: 3.5rem 0; }
  .contact-details div { grid-template-columns: 1fr; gap: 0.15rem; }
  .footer-bottom { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
}
