:root {
  color-scheme: light;
  --bg: #f5f4f0;
  --surface: #ffffff;
  --surface-alt: #ebe8e0;
  --ink: #1b1f23;
  --muted: #4c545b;
  --line: #d4d0c7;
  --line-strong: #b6b0a4;
  --accent: #b54d1b;
  --accent-hover: #963d13;
  --focus: #145d82;
  --radius: 3px;
  font-family: "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  font-size: 1rem;
}

main {
  flex: 1;
}

a {
  color: inherit;
  text-underline-offset: 0.2em;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

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

h1, h2, h3, p, figure {
  margin: 0;
}

h1, h2, h3 {
  line-height: 1.2;
  color: var(--ink);
}

h1 {
  font-size: clamp(1.75rem, 3.1vw, 2.55rem);
  letter-spacing: -0.02em;
  font-weight: 700;
}

h2 {
  font-size: clamp(1.2rem, 2vw, 1.45rem);
  letter-spacing: -0.01em;
  font-weight: 700;
}

h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

p {
  color: var(--muted);
}

.wrap {
  width: min(100% - 2rem, 74rem);
  margin-inline: auto;
}

.skip {
  position: fixed;
  z-index: 10;
  left: 1rem;
  top: 1rem;
  transform: translateY(-200%);
  padding: 0.7rem 1rem;
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  font-weight: 600;
}

.skip:focus {
  transform: none;
}

/* Header */
.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  padding-block: 0.95rem;
}

.brand {
  display: inline-flex;
  flex-direction: column;
  text-decoration: none;
}

.brand-service {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
}

.brand-name {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem 1.35rem;
}

.site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 2.5rem;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--ink);
}

.site-nav a:hover {
  color: var(--accent);
  text-decoration: underline;
}

.site-nav a[aria-current="page"] {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-thickness: 2px;
}

.site-nav .nav-phone {
  padding: 0.35rem 0.85rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--bg);
  font-variant-numeric: tabular-nums;
}

.site-nav .nav-phone:hover {
  border-color: var(--accent);
  background: var(--surface);
  text-decoration: none;
}

/* Welcome stage with welder and sparks */
.welcome-stage {
  background: #171c20;
  border-bottom: 1px solid var(--line);
  color: #ffffff;
  min-height: calc(100svh - 8.2rem);
  display: grid;
  align-items: center;
}

.welcome {
  display: grid;
  justify-items: center;
  gap: 1.25rem;
  padding-block: 1.75rem 2.25rem;
}

.welder {
  position: relative;
  width: min(100%, 30rem, 54svh);
  overflow: hidden;
  border: 1px solid #353d44;
  border-radius: var(--radius);
}

.welder img {
  width: 100%;
  height: auto;
}

.weld-effect {
  position: fixed;
  inset: 0 auto auto 0;
  z-index: 2;
  pointer-events: none;
}

.weld-effect-at-torch {
  position: absolute;
  inset: 84% auto auto 49%;
}

.weld-effect::before {
  content: "";
  position: absolute;
  width: 7rem;
  aspect-ratio: 1;
  background: radial-gradient(circle, #ffffff 0%, #a4cdff 9%, #488eff66 28%, transparent 70%);
  transform: translate(-50%, -50%);
  animation: weld-glow 1.5s ease-in-out infinite alternate;
}

.weld-effect span {
  position: absolute;
  width: clamp(1rem, 3vw, 1.65rem);
  height: 3px;
  background: linear-gradient(90deg, transparent, #ffa855 55%, #fff3ce);
  border-radius: 50%;
  box-shadow: 0 0 5px #ff9c50;
  animation: weld-spark 760ms ease-out infinite;
}

.weld-effect span:nth-child(1) { --x: -5rem; --y: -3rem; --angle: 32deg; }
.weld-effect span:nth-child(2) { --x: 4.5rem; --y: -4rem; --angle: -45deg; animation-delay: 130ms; }
.weld-effect span:nth-child(3) { --x: -3.75rem; --y: 2rem; --angle: -35deg; animation-delay: 280ms; }
.weld-effect span:nth-child(4) { --x: 5rem; --y: .75rem; --angle: 12deg; animation-delay: 410ms; }
.weld-effect span:nth-child(5) { --x: .75rem; --y: -5.25rem; --angle: -80deg; animation-delay: 530ms; }
.weld-effect span:nth-child(6) { --x: -6rem; --y: -1rem; --angle: 12deg; animation-delay: -36ms; }
.weld-effect span:nth-child(7) { --x: -4rem; --y: -5rem; --angle: 48deg; animation-delay: -79ms; }
.weld-effect span:nth-child(8) { --x: 5rem; --y: -3rem; --angle: -30deg; animation-delay: -122ms; }
.weld-effect span:nth-child(9) { --x: 6rem; --y: 1rem; --angle: 12deg; animation-delay: -165ms; }
.weld-effect span:nth-child(10) { --x: 2rem; --y: -6rem; --angle: -70deg; animation-delay: -208ms; }
.weld-effect span:nth-child(11) { --x: -5rem; --y: 2rem; --angle: -22deg; animation-delay: -251ms; }
.weld-effect span:nth-child(12) { --x: -1rem; --y: -5rem; --angle: 70deg; animation-delay: -294ms; }
.weld-effect span:nth-child(13) { --x: 3rem; --y: 2rem; --angle: 27deg; animation-delay: -337ms; }
.weld-effect span:nth-child(14) { --x: -3rem; --y: -4rem; --angle: 55deg; animation-delay: -380ms; }
.weld-effect span:nth-child(15) { --x: 4rem; --y: -5rem; --angle: -50deg; animation-delay: -423ms; }
.weld-effect span:nth-child(16) { --x: -6rem; --y: -3rem; --angle: 25deg; animation-delay: -466ms; }
.weld-effect span:nth-child(17) { --x: 2rem; --y: -2rem; --angle: -40deg; animation-delay: -509ms; }
.weld-effect span:nth-child(18) { --x: 6rem; --y: -2rem; --angle: -20deg; animation-delay: -552ms; }
.weld-effect span:nth-child(19) { --x: -2rem; --y: -6rem; --angle: 70deg; animation-delay: -595ms; }
.weld-effect span:nth-child(20) { --x: 1rem; --y: 2rem; --angle: 60deg; animation-delay: -638ms; }

@keyframes weld-glow {
  from { opacity: .28; }
  to { opacity: .75; }
}

@keyframes weld-spark {
  from { opacity: 0; transform: rotate(var(--angle)) scaleX(.2); }
  20% { opacity: 1; }
  to { opacity: 0; transform: translate(var(--x), var(--y)) rotate(var(--angle)) scaleX(.35); }
}

.welcome-nav {
  display: grid;
  width: min(100%, 29rem);
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.6rem;
}

.welcome-nav a:last-child {
  grid-column: 1 / -1;
}

.welcome-nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.1rem;
  padding: 0.5rem 0.75rem;
  border: 1px solid #4c565e;
  border-radius: var(--radius);
  background: #232a30;
  color: #f4f1ea;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 140ms ease, border-color 140ms ease, color 140ms ease;
}

.welcome-nav a:hover,
.welcome-nav a:focus-visible {
  background: var(--accent);
  border-color: var(--accent);
  color: #ffffff;
  text-decoration: none;
}

@media (min-width: 48rem) {
  .welcome {
    position: relative;
    min-height: calc(82svh - 4.5rem);
    align-content: center;
    padding-bottom: 5.25rem;
  }

  .welcome-nav {
    display: contents;
  }

  .welcome-nav a {
    position: absolute;
    width: 9.5rem;
  }

  .welcome-nav a:nth-child(1),
  .welcome-nav a:nth-child(2) {
    right: calc(50% + min(15rem, 27svh) + 1.25rem);
  }

  .welcome-nav a:nth-child(3),
  .welcome-nav a:nth-child(4) {
    left: calc(50% + min(15rem, 27svh) + 1.25rem);
  }

  .welcome-nav a:nth-child(1),
  .welcome-nav a:nth-child(3) {
    top: 26%;
  }

  .welcome-nav a:nth-child(2),
  .welcome-nav a:nth-child(4) {
    top: 55%;
  }

  .welcome-nav a:nth-child(5) {
    top: auto;
    bottom: 1.25rem;
    left: 50%;
    transform: translateX(-50%);
  }
}

/* Buttons */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.9rem;
  padding: 0.65rem 1.2rem;
  border: 1px solid var(--accent);
  border-radius: var(--radius);
  background: var(--accent);
  color: #ffffff;
  font-size: 0.975rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 140ms ease, border-color 140ms ease;
}

.button:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
}

.button-secondary {
  background: var(--surface);
  color: var(--ink);
  border-color: var(--line-strong);
}

.button-secondary:hover {
  background: var(--surface-alt);
  border-color: var(--ink);
}

/* Hero */
.hero {
  padding-block: clamp(2.25rem, 5vw, 4rem);
  border-bottom: 1px solid var(--line);
}

.hero-grid {
  display: grid;
  gap: 2rem;
  align-items: center;
}

.hero-kicker {
  margin-bottom: 0.6rem;
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent);
}

.hero-copy h1 {
  margin-bottom: 1.15rem;
}

.hero-copy p + p {
  margin-top: 0.9rem;
}

.hero-copy strong {
  color: var(--ink);
  font-weight: 600;
}

.hero-actions,
.page-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.75rem;
}

.hero-visual img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  object-fit: cover;
}

.hero-visual figcaption {
  margin-top: 0.45rem;
  font-size: 0.85rem;
  color: var(--muted);
}

/* Sections */
.section {
  padding-block: clamp(2.25rem, 4.5vw, 3.75rem);
}

.section-head {
  margin-bottom: 1.75rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid var(--line);
}

/* Offer */
.services {
  display: grid;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.services article {
  padding: 1.5rem;
  background: var(--surface);
}

.services article h2,
.services article h3 {
  margin-bottom: 0.55rem;
}

/* Gallery */
.gallery-grid {
  display: grid;
  gap: 1.25rem;
}

.gallery-grid.gallery-grid-single {
  grid-template-columns: minmax(0, 1fr);
  max-width: 34rem;
  margin-inline: auto;
}

.gallery figure {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.gallery figure a {
  position: relative;
  display: block;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.viz-badge {
  position: absolute;
  left: 0.75rem;
  bottom: 0.75rem;
  padding: 0.35rem 0.7rem;
  border-radius: var(--radius);
  background: rgba(27, 31, 35, 0.88);
  color: #ffffff;
  font-size: 0.82rem;
  font-weight: 600;
}

.viz-modal {
  width: min(92vw, 62rem);
  max-height: 90svh;
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink);
}

.viz-modal::backdrop {
  background: rgba(23, 28, 32, 0.78);
}

.viz-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 1.2rem;
  border-bottom: 1px solid var(--line);
}

.viz-modal-close {
  padding: 0.4rem 0.85rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--bg);
  color: var(--ink);
  font: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
}

.viz-modal-close:hover {
  background: var(--surface-alt);
}

.viz-modal-body {
  padding: 1rem;
  background: var(--bg);
}

.viz-modal-body img,
.viz-modal-body video {
  display: block;
  width: 100%;
  max-height: 74svh;
  object-fit: contain;
  margin-inline: auto;
  border-radius: var(--radius);
}

.gallery figure a:focus-visible {
  outline-offset: -4px;
  position: relative;
}

.gallery img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 220ms ease;
}

.gallery figure a:hover img {
  transform: scale(1.02);
}

.gallery figcaption {
  padding: 1.1rem 1.2rem;
}

.gallery figcaption h2,
.gallery figcaption h3 {
  margin-bottom: 0.4rem;
}

.gallery figcaption p {
  font-size: 0.94rem;
}

/* About */
.about {
  display: grid;
  gap: 2rem;
  align-items: center;
}

.about-photo img {
  width: min(100%, 19rem);
  height: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.about-copy h1 {
  margin-bottom: 1rem;
}

.about-copy p {
  max-width: 64ch;
}

.about-signature {
  margin-top: 1.25rem;
  color: var(--ink);
}

/* Contact */
.contact {
  display: grid;
  gap: 2.25rem;
  align-items: start;
}

.contact-details {
  display: grid;
  gap: 1.75rem;
}

.contact-card p + p {
  margin-top: 0.65rem;
}

.contact-company {
  color: var(--ink);
  font-weight: 600;
}

.quote-direct h2,
.service-area h2,
.quote form h2 {
  margin-bottom: 0.6rem;
}

.quote-direct p {
  max-width: 54ch;
}

.quote-channels {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.9rem;
}

.service-area {
  min-width: 0;
}

.service-map {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.google-map {
  display: block;
  height: clamp(16rem, 30vw, 22rem);
}

.service-area > p {
  margin-top: 0.5rem;
  font-size: 0.92rem;
}

.quote form {
  padding: 1.5rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.quote form > *,
.quote-fields label {
  margin-bottom: 0.9rem;
}

.quote form > *:last-child {
  margin-bottom: 0;
}

.quote form label {
  display: block;
  font-size: 0.94rem;
  font-weight: 600;
  color: var(--ink);
}

.quote form input:not([hidden]),
.quote form select,
.quote form textarea {
  display: block;
  width: 100%;
  min-width: 0;
  margin-top: 0.3rem;
  padding: 0.55rem 0.65rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  font-weight: 400;
}

#quote-status:empty {
  margin: 0;
}

.google-profile {
  color: #174ea6;
  font-weight: 600;
}

.google-profile span span:nth-child(3n+1) { color: #174ea6; }
.google-profile span span:nth-child(2),
.google-profile span span:nth-child(6) { color: #b3261e; }
.google-profile span span:nth-child(3) { color: #855800; }
.google-profile span span:nth-child(5) { color: #137333; }

/* Footer */
.site-footer {
  background: var(--ink);
  color: #e4e1d8;
  border-top: 1px solid var(--line);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  padding-block: 1.25rem;
  font-size: 0.9rem;
}

.footer-inner a {
  color: #ffffff;
  font-weight: 600;
  text-decoration: none;
}

.footer-inner a:hover {
  text-decoration: underline;
}

/* Responsive */
@media (min-width: 38rem) {
  .services {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .services article:last-child {
    grid-column: 1 / -1;
  }

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

  .about {
    grid-template-columns: auto minmax(0, 1fr);
    gap: 2.5rem;
  }

  .quote-fields {
    display: grid;
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.05fr) minmax(0, 1.35fr);
    gap: 0.75rem;
    align-items: stretch;
  }

  .quote form .quote-fields label {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    margin-bottom: 0;
    font-size: 0.86rem;
    white-space: nowrap;
  }

  .quote form .quote-fields select,
  .quote form .quote-fields input {
    height: 2.65rem;
  }
}

@media (min-width: 58rem) {
  .hero-grid {
    grid-template-columns: 1.12fr 0.88fr;
    gap: 3rem;
  }

  .services {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }

  .services article {
    grid-column: span 2;
  }

  .services article:nth-child(4),
  .services article:nth-child(5) {
    grid-column: span 3;
  }

  .gallery-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .contact {
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .weld-effect {
    display: none;
  }

  .gallery img,
  .button,
  .welcome-nav a {
    transition: none;
  }
}
