:root {
  --blue: #1485ff;
  --blue-dark: #0066cc;
  --blue-soft: rgba(20, 133, 255, 0.14);
  --dark: #05080d;
  --panel: #0b111a;
  --panel-strong: #101927;
  --steel: #d8e6f7;
  --muted: #9cadc2;
  --line: rgba(148, 163, 184, 0.22);
  --white: #ffffff;
  --off-white: #080d14;
  --shadow: 0 20px 50px rgba(0, 0, 0, 0.42);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--white);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.6;
  background:
    radial-gradient(circle at top left, rgba(20, 133, 255, 0.1), transparent 28rem),
    var(--dark);
}

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

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.section-pad {
  padding: 72px 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(5, 8, 13, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.navbar {
  width: min(1120px, calc(100% - 32px));
  min-height: 72px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  font-weight: 900;
  color: var(--white);
  letter-spacing: 0;
}

.brand-logo {
  width: 178px;
  height: 48px;
  object-fit: contain;
  object-position: center;
  border-radius: 0;
  background: transparent;
  filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.4));
}

.brand-fallback {
  display: inline-grid;
  place-items: center;
  min-width: 104px;
  height: 42px;
  padding: 0 12px;
  color: var(--white);
  background: linear-gradient(135deg, #000, var(--blue-dark));
  border: 2px solid var(--blue);
  border-radius: var(--radius);
  font-size: 1rem;
}

.logo-img.is-missing {
  display: none;
}

.brand-logo:not(.is-missing) + .brand-fallback {
  display: none;
}

.menu-toggle {
  width: 44px;
  height: 44px;
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  cursor: pointer;
}

.menu-toggle span {
  width: 100%;
  height: 2px;
  background: var(--white);
}

.nav-links {
  position: absolute;
  top: 72px;
  left: 16px;
  right: 16px;
  display: none;
  padding: 16px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.nav-links.is-open {
  display: grid;
}

.nav-links a {
  padding: 12px;
  font-weight: 700;
  color: var(--steel);
  border-radius: var(--radius);
}

.nav-links a:hover,
.nav-links a:focus {
  color: var(--blue);
  background: var(--blue-soft);
}

.nav-cta {
  color: var(--white) !important;
  background: var(--blue);
  text-align: center;
}

.hero {
  position: relative;
  overflow: hidden;
  min-height: min(760px, calc(100vh - 72px));
  display: flex;
  align-items: center;
  color: var(--white);
  background: #020408;
}

.hero::before {
  content: "";
  position: absolute;
  inset: -22px;
  background:
    linear-gradient(90deg, rgba(2, 4, 8, 0.96) 0%, rgba(2, 4, 8, 0.72) 38%, rgba(2, 4, 8, 0.36) 66%, rgba(2, 4, 8, 0.7) 100%),
    linear-gradient(180deg, rgba(2, 4, 8, 0.55), rgba(2, 4, 8, 0.82)),
    url("assets/mig-welding-hero.webp") center / cover no-repeat;
  filter: blur(10px) saturate(0.95);
  transform: scale(1.04);
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(2, 4, 8, 0.93) 0%, rgba(2, 4, 8, 0.7) 34%, rgba(2, 4, 8, 0.18) 68%, rgba(2, 4, 8, 0.58) 100%),
    radial-gradient(circle at 56% 58%, rgba(20, 133, 255, 0.2), transparent 18rem),
    url("assets/mig-welding-hero.webp") 62% center / cover no-repeat;
  opacity: 0.88;
}

.hero-grid::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -38px;
  width: min(420px, 64vw);
  height: 6px;
  background: linear-gradient(90deg, var(--blue), #74b9ff, var(--blue));
  opacity: 0.9;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: block;
}

.hero-copy {
  max-width: 760px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--blue);
  font-size: 0.8rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #9fd0ff;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  line-height: 1.08;
  letter-spacing: 0;
}

h1 {
  max-width: 760px;
  margin-bottom: 18px;
  font-size: clamp(2.55rem, 10vw, 5rem);
  font-weight: 900;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(2rem, 8vw, 3.4rem);
  font-weight: 900;
}

h3 {
  margin-bottom: 12px;
  font-size: 1.25rem;
}

.hero-text {
  max-width: 580px;
  margin-bottom: 28px;
  color: #e7f2ff;
  font-size: 1.14rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  border: 2px solid transparent;
  border-radius: var(--radius);
  font-weight: 900;
  cursor: pointer;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
}

.btn:hover,
.btn:focus {
  transform: translateY(-2px);
}

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

.btn-primary:hover,
.btn-primary:focus {
  background: var(--blue-dark);
}

.btn-secondary {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.72);
}

.section-heading {
  max-width: 720px;
  margin-bottom: 28px;
}

.service-grid,
.why-grid,
.gallery-grid {
  display: grid;
  gap: 18px;
}

.service-card,
.why-item,
.contact-form {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--panel-strong), var(--panel));
  box-shadow: var(--shadow);
}

.service-card {
  padding: 24px;
}

.service-icon {
  display: inline-grid;
  place-items: center;
  min-width: 58px;
  min-height: 42px;
  margin-bottom: 18px;
  color: var(--white);
  background: var(--blue);
  border-radius: var(--radius);
  font-weight: 900;
}

.service-card p,
.why-item p,
.about-copy p,
.contact-intro,
.form-note {
  color: var(--muted);
}

.about,
.why {
  background:
    linear-gradient(180deg, rgba(20, 133, 255, 0.04), transparent),
    var(--off-white);
}

.about-grid,
.contact-grid {
  display: grid;
  gap: 28px;
}

.about-copy {
  padding-left: 18px;
  border-left: 4px solid var(--blue);
}

.gallery-item {
  min-height: 230px;
  display: flex;
  align-items: flex-end;
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius);
  background-color: var(--steel);
  background-image:
    linear-gradient(180deg, transparent 40%, rgba(17, 24, 39, 0.94)),
    repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.12) 0 2px, transparent 2px 18px);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.gallery-one {
  background-color: #1d4f8f;
}

.gallery-two {
  background-color: #183347;
}

.gallery-three {
  background-color: #0066cc;
}

.gallery-four {
  background-color: #29394d;
}

.gallery-item figcaption {
  width: 100%;
  padding: 18px;
  color: var(--white);
  font-weight: 900;
}

.why-item {
  padding: 22px;
}

.why-item span {
  display: block;
  margin-bottom: 18px;
  color: var(--blue);
  font-size: 0.82rem;
  font-weight: 900;
}

.contact-list {
  display: grid;
  gap: 10px;
  margin-top: 24px;
}

.contact-list a,
.contact-list span,
.footer-contact a,
.footer-contact span {
  color: var(--steel);
  font-weight: 700;
}

.contact-list a:hover,
.footer-links a:hover,
.footer-contact a:hover {
  color: var(--blue);
}

.contact-form {
  display: grid;
  gap: 10px;
  padding: 20px;
}

.contact-form label {
  font-weight: 900;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: 12px 14px;
  color: var(--white);
  font: inherit;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #060a10;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: 3px solid rgba(0, 102, 204, 0.2);
  border-color: var(--blue);
}

.contact-form textarea {
  resize: vertical;
}

.form-note {
  margin: 0;
  font-size: 0.9rem;
}

.site-footer {
  color: var(--white);
  background: #020408;
  border-top: 6px solid var(--blue);
}

.footer-grid {
  display: grid;
  gap: 26px;
  padding: 36px 0;
}

.footer-brand .brand-fallback {
  border-color: rgba(255, 255, 255, 0.28);
}

.footer-links,
.footer-contact {
  display: grid;
  gap: 10px;
}

.footer-links a,
.footer-contact a,
.footer-contact span {
  color: #dbeafe;
}

.copyright {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 18px 0;
  color: #b9c7d8;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.9rem;
}

@media (min-width: 720px) {
  .section-pad {
    padding: 96px 0;
  }

  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr 1fr;
  }

  .service-grid,
  .why-grid,
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .gallery-item {
    min-height: 280px;
  }

  .footer-grid {
    grid-template-columns: 1.2fr 0.8fr 1fr;
    align-items: start;
  }
}

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

  .nav-links {
    position: static;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 0;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .nav-links a {
    padding: 10px 12px;
  }

  .nav-cta {
    padding-inline: 16px !important;
  }

  .service-grid,
  .why-grid {
    grid-template-columns: repeat(4, 1fr);
  }

}
