/* ============================================
   American Spirit Welding — design tokens
   ============================================ */
:root {
  --blue: #1d57a9;
  --blue-deep: #123a73;
  --blue-ink: #0e2c58;
  --ink: #0b0d10;
  --steel: #57626d;
  --steel-light: #889199;
  --paper: #f2f4f7;
  --line: #dde1e6;
  --white: #ffffff;

  --font-display: "Oswald", "Arial Narrow", sans-serif;
  --font-body: "Barlow", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-label: "Barlow Semi Condensed", "Barlow", sans-serif;

  --wrap: 1180px;
  --radius: 2px;
  --shadow-card: 0 1px 2px rgba(11,13,16,.06), 0 8px 24px -12px rgba(11,13,16,.18);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 28px;
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.05;
  margin: 0;
  text-wrap: balance;
  color: var(--ink);
}

p { margin: 0 0 1em; max-width: 62ch; }
p:last-child { margin-bottom: 0; }

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

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--blue);
  color: var(--white);
  padding: 12px 20px;
  z-index: 200;
}
.skip-link:focus { left: 12px; top: 12px; }

:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}

.eyebrow {
  font-family: var(--font-label);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--blue);
  margin: 0 0 14px;
}
.eyebrow-light { color: #a9c3e8; }

.section-title {
  font-size: clamp(28px, 3.6vw, 42px);
  max-width: 20ch;
  margin-bottom: 18px;
}

/* ============================================
   Buttons
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-label);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: .04em;
  text-transform: uppercase;
  padding: 15px 26px;
  border-radius: var(--radius);
  border: 1.5px solid transparent;
  transition: transform .15s ease, background-color .15s ease, border-color .15s ease, color .15s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn-icon { width: 18px; height: 18px; flex-shrink: 0; }

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

.btn-accent { background: var(--white); color: var(--blue-ink); }
.btn-accent:hover { background: #e9eef5; }

.btn-ghost-light {
  border-color: rgba(255,255,255,.55);
  color: var(--white);
}
.btn-ghost-light:hover { border-color: var(--white); background: rgba(255,255,255,.08); }

/* ============================================
   Header
   ============================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,.94);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  position: relative;
  display: flex;
  align-items: center;
  gap: 24px;
  padding-top: 12px;
  padding-bottom: 12px;
}

.brand { flex-shrink: 0; line-height: 0; }
.brand img { height: 76px; width: auto; }

.main-nav {
  display: flex;
  gap: 30px;
  margin-left: 12px;
  font-family: var(--font-label);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: .02em;
}
.main-nav a { color: var(--steel); position: relative; padding: 6px 0; }
.main-nav a:hover { color: var(--ink); }
.main-nav a.is-active { color: var(--blue); }
.footer-nav a.is-active { color: var(--white); }

.header-cta {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-left: auto;
}

.tel-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-label);
  font-weight: 700;
  font-size: 15px;
  color: var(--ink);
}
.tel-pill-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--blue);
  flex-shrink: 0;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  margin-left: auto;
  background: none;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  height: 2px;
  width: 20px;
  margin: 0 auto;
  background: var(--ink);
  transition: transform .2s ease, opacity .2s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================
   Hero
   ============================================ */
.hero {
  position: relative;
  min-height: min(88vh, 780px);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: var(--blue-ink);
}

.hero-media {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center 30%;
  clip-path: polygon(0 0, 100% 0, 100% 82%, 0 100%);
}
.hero-media-onsite { background-position: 58% 60%; }

.hero-media-scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(0deg, rgba(9,20,38,.92) 0%, rgba(9,20,38,.55) 46%, rgba(9,20,38,.35) 100%),
    linear-gradient(100deg, rgba(9,20,38,.55) 0%, rgba(9,20,38,.08) 55%);
}

.hero-inner {
  position: relative;
  padding-top: 160px;
  padding-bottom: 100px;
  max-width: 820px;
}

.hero-brand {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(30px, 4.6vw, 52px);
  line-height: 1.05;
  letter-spacing: .01em;
  text-transform: uppercase;
  color: var(--white);
  margin: 0 0 14px;
}

.hero-title {
  font-size: clamp(44px, 7vw, 82px);
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: .01em;
}

.hero-sub {
  color: #dbe4f2;
  font-size: 19px;
  max-width: 54ch;
  margin-top: 22px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 34px;
}

.hero-scroll-link {
  display: inline-block;
  margin-top: 28px;
  font-family: var(--font-label);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: #b9d0ee;
  border-bottom: 1px solid rgba(185,208,238,.4);
  padding-bottom: 2px;
  transition: color .15s ease, border-color .15s ease;
}
.hero-scroll-link:hover { color: var(--white); border-color: var(--white); }

/* ============================================
   Stat strip
   ============================================ */
.strip { background: var(--blue); }
.strip-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 44px;
  padding: 28px 28px;
  flex-wrap: wrap;
  text-align: center;
}
.strip-item { display: flex; flex-direction: column; gap: 4px; }
.strip-num {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  color: var(--white);
  text-transform: uppercase;
}
.strip-label {
  font-family: var(--font-label);
  font-size: 12.5px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #b9d0ee;
}
.strip-div {
  width: 1px;
  height: 34px;
  background: rgba(255,255,255,.28);
}

/* ============================================
   Sections
   ============================================ */
.section { padding: 100px 0; }
.section-alt { background: var(--paper); }

/* ============================================
   Value props
   ============================================ */
.values { padding-top: 84px; padding-bottom: 84px; }
.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}
.value-card { text-align: left; }
.value-icon {
  width: 40px;
  height: 40px;
  color: var(--blue);
  margin-bottom: 18px;
}
.value-card h3 { font-size: 20px; margin-bottom: 10px; }
.value-card p { color: var(--steel); font-size: 15.5px; }
.values-cta { text-align: center; margin-top: 52px; }

/* ============================================
   Services
   ============================================ */
.services-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 2px;
  background: var(--line);
  border: 1px solid var(--line);
  margin-top: 48px;
}

.service-card {
  background: var(--white);
  padding: 36px 28px 32px;
  position: relative;
}
.service-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--blue);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .25s ease;
}
.service-card:hover::before { transform: scaleX(1); }

.service-num {
  display: block;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  color: var(--steel-light);
  letter-spacing: .06em;
  margin-bottom: 20px;
}
.service-card h3 {
  font-size: 21px;
  margin-bottom: 12px;
}
.service-card p {
  color: var(--steel);
  font-size: 15.5px;
  margin: 0;
}

/* ============================================
   Gallery
   ============================================ */
.gallery {
  margin-top: 48px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 220px;
  gap: 18px;
}
.gallery-item {
  position: relative;
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius);
  grid-row: span 1;
  box-shadow: var(--shadow-card);
}
.gallery-item-tall { grid-row: span 2; }

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}
.gallery-item:hover img { transform: scale(1.05); }

.gallery-item figcaption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 16px 18px 14px;
  background: linear-gradient(0deg, rgba(9,20,38,.88), rgba(9,20,38,0));
  color: var(--white);
  font-family: var(--font-label);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: .01em;
  transform: translateY(8px);
  opacity: 0;
  transition: opacity .25s ease, transform .25s ease;
}
.gallery-item:hover figcaption,
.gallery-item:focus-within figcaption {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================
   About
   ============================================ */
.about-inner {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 64px;
  align-items: center;
}
.about-copy p { color: var(--steel); font-size: 16.5px; }
.about-copy .btn { margin-top: 12px; }
.about-media { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-card); }
.about-media img { width: 100%; height: 100%; object-fit: cover; }

/* ============================================
   Process
   ============================================ */
.process-grid {
  margin-top: 48px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.process-card {
  padding: 32px 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.process-num {
  display: block;
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 600;
  color: var(--blue);
  margin-bottom: 16px;
}
.process-card h3 { font-size: 20px; margin-bottom: 10px; }
.process-card p { color: var(--steel); font-size: 15.5px; }

/* ============================================
   FAQ
   ============================================ */
.faq-list {
  margin-top: 40px;
  max-width: 820px;
}
.faq-item {
  border-bottom: 1px solid var(--line);
}
.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  background: none;
  border: none;
  text-align: left;
  cursor: pointer;
  padding: 22px 4px;
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 500;
  color: var(--ink);
}
.faq-icon {
  position: relative;
  flex-shrink: 0;
  width: 20px;
  height: 20px;
}
.faq-icon::before,
.faq-icon::after {
  content: "";
  position: absolute;
  background: var(--blue);
  transition: transform .2s ease;
}
.faq-icon::before { top: 9px; left: 0; width: 20px; height: 2px; }
.faq-icon::after { top: 0; left: 9px; width: 2px; height: 20px; }
.faq-question[aria-expanded="true"] .faq-icon::after { transform: rotate(90deg); opacity: 0; }

.faq-answer {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .25s ease;
}
.faq-answer > p {
  overflow: hidden;
  color: var(--steel);
  font-size: 15.5px;
  max-width: 70ch;
  margin: 0;
  padding-right: 40px;
}
.faq-item.is-open .faq-answer { grid-template-rows: 1fr; }
.faq-item.is-open .faq-answer > p { padding-bottom: 22px; }

/* ============================================
   Contact
   ============================================ */
.contact {
  background: var(--blue-ink);
  padding: 100px 0;
}
.contact-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.contact-title {
  font-size: clamp(30px, 3.6vw, 46px);
  color: var(--white);
  text-transform: uppercase;
}
.contact-sub {
  color: #b9c9e2;
  font-size: 17px;
  margin-top: 18px;
}

.contact-actions {
  display: grid;
  gap: 14px;
}
.contact-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.16);
  border-radius: var(--radius);
  padding: 20px 24px;
  transition: background-color .15s ease, border-color .15s ease;
}
a.contact-card:hover {
  background: rgba(255,255,255,.12);
  border-color: rgba(255,255,255,.35);
}
.contact-card-label {
  font-family: var(--font-label);
  font-size: 12.5px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #93aed3;
}
.contact-card-value {
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 500;
  color: var(--white);
}

/* ============================================
   Page hero (Services / Our Work interior pages)
   ============================================ */
.page-hero {
  position: relative;
  min-height: 340px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: var(--blue-ink);
}
.page-hero-media {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}
.page-hero-media-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(9,20,38,.90) 0%, rgba(9,20,38,.62) 55%, rgba(9,20,38,.38) 100%);
}
.page-hero-inner {
  position: relative;
  padding: 64px 0 40px;
}
.page-hero-title {
  font-size: clamp(34px, 5vw, 54px);
  color: var(--white);
  text-transform: uppercase;
}
.page-hero-sub {
  color: #dbe4f2;
  font-size: 17px;
  max-width: 62ch;
  margin-top: 14px;
}

/* ============================================
   CTA band
   ============================================ */
.cta-band {
  background: var(--blue-ink);
  padding: 72px 0;
  text-align: center;
}
.cta-band-title {
  color: var(--white);
  font-size: clamp(26px, 3.2vw, 38px);
  text-transform: uppercase;
  margin-bottom: 14px;
}
.cta-band-sub {
  color: #b9c9e2;
  font-size: 16.5px;
  max-width: 56ch;
  margin: 0 auto 30px;
}
.cta-band-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px;
}

/* ============================================
   Footer
   ============================================ */
.site-footer {
  background: var(--ink);
  padding: 44px 0;
}
.footer-inner {
  display: flex;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
}
.brand-footer {
  background: var(--white);
  padding: 8px 14px;
  border-radius: var(--radius);
  line-height: 0;
}
.brand-footer img { height: 34px; width: auto; }
.footer-nav {
  display: flex;
  gap: 24px;
  margin-right: auto;
  font-family: var(--font-label);
  font-size: 14px;
  font-weight: 600;
  color: #9aa3ad;
}
.footer-nav a:hover { color: var(--white); }
.footer-meta {
  font-family: var(--font-label);
  font-size: 13px;
  color: #6b7480;
  margin: 0;
  max-width: none;
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 980px) {
  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    padding: 8px 28px 18px;
  }
  .main-nav.is-open { display: flex; }
  .main-nav a { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .main-nav a:last-child { border-bottom: none; }

  .nav-toggle { display: flex; }
  .header-cta .tel-pill { display: none; }

  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .about-inner { grid-template-columns: 1fr; gap: 36px; }
  .contact-inner { grid-template-columns: 1fr; gap: 40px; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .values-grid { grid-template-columns: 1fr; gap: 32px; }
  .process-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .section { padding: 72px 0; }
  .hero-inner { padding-top: 120px; padding-bottom: 64px; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .services-grid { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr; grid-auto-rows: 260px; }
  .gallery-item-tall { grid-row: span 1; }
  .gallery-item figcaption { opacity: 1; transform: none; }
  .strip-inner { gap: 24px 36px; }
  .footer-inner { flex-direction: column; align-items: flex-start; gap: 18px; }
  .footer-nav { margin-right: 0; }
  .faq-question { font-size: 16px; }
  .faq-answer > p { padding-right: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
