/* =========================================================================
   Parker Welding & Fabrication LLC
   Dark industrial theme. Palette pulled from the bold black-on-white logo
   with a weld-spark orange accent for the heat / sparks of the work.
   ========================================================================= */

:root {
  --ink:         #0a0a0a;
  --steel-1:     #121212;
  --steel-2:     #1a1a1a;
  --steel-3:     #232323;
  --steel-4:     #2e2e2e;
  --line:        #353535;
  --line-soft:   #2a2a2a;
  --paper:       #f5f1ea;
  --paper-2:     #ece6da;
  --body:        #cfc8bc;
  --muted:       #8c867c;
  --hot:         #ff6a13;  /* weld-spark orange */
  --hot-dk:      #cc4d00;
  --hot-glow:    rgba(255, 106, 19, 0.35);
  --molten:      #ffb347;  /* lighter spark / molten metal */
  --white:       #ffffff;

  --shadow-sm: 0 2px 10px rgba(0,0,0,0.35);
  --shadow-md: 0 14px 40px rgba(0,0,0,0.45);
  --shadow-lg: 0 24px 80px rgba(0,0,0,0.6);
  --shadow-glow: 0 0 30px var(--hot-glow);

  --radius: 4px;
  --radius-lg: 8px;

  --f-display: 'Bebas Neue', 'Oswald', 'Impact', sans-serif;
  --f-heading: 'Oswald', 'Inter', sans-serif;
  --f-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  --maxw: 1200px;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--f-body);
  color: var(--body);
  background: var(--ink);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a { color: var(--hot); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--molten); }

h1, h2, h3, h4 {
  font-family: var(--f-display);
  font-weight: 400;
  color: var(--paper);
  line-height: 1.05;
  letter-spacing: 0.02em;
  margin: 0 0 .5em;
  text-transform: uppercase;
}

h1 { font-size: clamp(2.75rem, 7vw, 5.5rem); }
h2 { font-size: clamp(2rem, 4.5vw, 3.5rem); }

h3 {
  font-family: var(--f-heading);
  font-weight: 600;
  font-size: 1.35rem;
  letter-spacing: 0.04em;
}

h4 {
  font-family: var(--f-heading);
  font-weight: 600;
  font-size: .9rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--hot);
}

p { margin: 0 0 1em; }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

.section { padding: 96px 0; position: relative; }

/* ============================================================
   Buttons
   ============================================================ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 26px;
  font-family: var(--f-heading);
  font-weight: 600;
  font-size: .95rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all .2s ease;
  white-space: nowrap;
}

.btn-sm { padding: 10px 18px; font-size: .8rem; }

.btn-accent {
  background: var(--hot);
  color: var(--ink);
  border-color: var(--hot);
}
.btn-accent:hover {
  background: var(--molten);
  border-color: var(--molten);
  color: var(--ink);
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow);
}

.btn-ghost {
  background: transparent;
  color: var(--paper);
  border-color: var(--line);
}
.btn-ghost:hover {
  border-color: var(--hot);
  color: var(--hot);
  transform: translateY(-2px);
}

/* ============================================================
   Nav
   ============================================================ */

.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(10, 10, 10, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: background .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.nav.scrolled {
  background: rgba(10, 10, 10, 0.96);
  border-bottom-color: var(--line-soft);
  box-shadow: 0 4px 20px rgba(0,0,0,0.4);
}

.nav-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.nav-logo {
  display: block;
  flex-shrink: 0;
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .2s ease;
}
.nav-logo:hover { transform: scale(1.03); }
.nav-logo img {
  height: 64px;
  width: auto;
  display: block;
}

@media (max-width: 540px) {
  .nav-logo img { height: 52px; }
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}
.nav-links a {
  color: var(--paper);
  font-family: var(--f-heading);
  font-weight: 500;
  font-size: .9rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  position: relative;
  padding: 6px 0;
}
.nav-links a:not(.btn)::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 2px;
  background: var(--hot);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .25s ease;
}
.nav-links a:not(.btn):hover { color: var(--hot); }
.nav-links a:not(.btn):hover::after { transform: scaleX(1); }
.nav-links a.btn:hover { color: var(--ink); }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  padding: 8px;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
}
.nav-toggle span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--paper);
  transition: all .25s ease;
}

@media (max-width: 860px) {
  .nav-toggle { display: flex; }
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    flex-direction: column;
    background: var(--steel-1);
    padding: 24px;
    gap: 18px;
    border-bottom: 1px solid var(--line-soft);
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: all .25s ease;
  }
  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
  .nav-links a { width: 100%; text-align: center; }
}

/* ============================================================
   Hero
   ============================================================ */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 140px 0 80px;
  overflow: hidden;
  background: var(--ink);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 30%, rgba(255, 106, 19, 0.18), transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(255, 106, 19, 0.10), transparent 60%),
    linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 50%, #0a0a0a 100%);
  z-index: 0;
}

/* Subtle diagonal "brushed steel" texture using gradients */
.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(135deg,
      transparent 0,
      transparent 2px,
      rgba(255,255,255,0.012) 2px,
      rgba(255,255,255,0.012) 3px);
  opacity: .8;
}

/* Animated weld-spark accent in top right */
.hero-spark {
  position: absolute;
  top: 30%;
  right: -100px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, var(--hot-glow) 0%, transparent 60%);
  filter: blur(40px);
  z-index: 1;
  animation: pulse 4s ease-in-out infinite;
  pointer-events: none;
}

@keyframes pulse {
  0%, 100% { opacity: .6; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.08); }
}

.hero-inner {
  position: relative;
  z-index: 2;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
  width: 100%;
}

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

.eyebrow {
  font-family: var(--f-heading);
  font-weight: 600;
  font-size: .85rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--hot);
  margin: 0 0 24px;
}

.hero h1 {
  margin: 0 0 28px;
}

.hero h1 .accent {
  color: var(--hot);
  position: relative;
  display: inline-block;
}
.hero h1 .accent::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 8px;
  width: 100%;
  height: 4px;
  background: var(--hot);
  transform: scaleX(0);
  transform-origin: left;
  animation: drawLine 1.2s ease .4s forwards;
}

@keyframes drawLine {
  to { transform: scaleX(1); }
}

.lede {
  font-size: clamp(1.05rem, 1.4vw, 1.25rem);
  color: var(--body);
  max-width: 620px;
  margin: 0 0 36px;
  line-height: 1.65;
}

.hero-ctas {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 56px;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 24px;
  max-width: 720px;
  padding-top: 32px;
  border-top: 1px solid var(--line-soft);
}

.stat { display: flex; flex-direction: column; gap: 4px; }
.stat-num {
  font-family: var(--f-display);
  font-size: 2.5rem;
  color: var(--paper);
  line-height: 1;
  letter-spacing: 0.02em;
}
.stat-label {
  font-family: var(--f-heading);
  font-size: .8rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

/* ============================================================
   Trust bar
   ============================================================ */

.trustbar {
  background: var(--hot);
  color: var(--ink);
  padding: 18px 0;
  border-top: 1px solid var(--hot-dk);
  border-bottom: 1px solid var(--hot-dk);
}

.trustbar-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 14px;
  font-family: var(--f-heading);
  font-weight: 500;
  font-size: .92rem;
  letter-spacing: 0.04em;
  text-align: center;
}
.trustbar strong { font-weight: 700; }
.trustbar .sep { opacity: .6; }

@media (max-width: 720px) {
  .trustbar .sep { display: none; }
  .trustbar-inner { flex-direction: column; gap: 8px; }
}

/* ============================================================
   Sections — common
   ============================================================ */

.section-head {
  max-width: 760px;
  margin: 0 auto 64px;
  text-align: center;
}
.section-head h2 { margin: 0 0 16px; }

.eyebrow-dark, .eyebrow-light {
  font-family: var(--f-heading);
  font-weight: 600;
  font-size: .85rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--hot);
  margin: 0 0 20px;
}

.section-sub {
  font-size: 1.1rem;
  color: var(--body);
  margin: 0;
}

/* ============================================================
   Services
   ============================================================ */

.services {
  background: var(--steel-1);
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.service {
  background: var(--steel-2);
  border: 1px solid var(--line-soft);
  padding: 36px 32px;
  border-radius: var(--radius-lg);
  transition: all .25s ease;
  position: relative;
  overflow: hidden;
}
.service::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 3px;
  background: var(--hot);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s ease;
}
.service:hover {
  transform: translateY(-6px);
  border-color: var(--steel-4);
  background: var(--steel-3);
  box-shadow: var(--shadow-md);
}
.service:hover::before { transform: scaleX(1); }

.service-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius);
  background: rgba(255, 106, 19, 0.1);
  color: var(--hot);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  transition: all .25s ease;
}
.service-icon svg { width: 28px; height: 28px; }
.service:hover .service-icon {
  background: var(--hot);
  color: var(--ink);
  transform: rotate(-4deg);
}

.service h3 { color: var(--paper); margin: 0 0 12px; }
.service p { color: var(--body); margin: 0; font-size: .98rem; }

.services-note {
  margin-top: 56px;
  padding: 24px 32px;
  background: var(--steel-3);
  border-left: 4px solid var(--hot);
  border-radius: var(--radius);
}
.services-note p { margin: 0; color: var(--body); }
.services-note strong { color: var(--paper); }

/* ============================================================
   Story
   ============================================================ */

.story {
  background: var(--ink);
}

.story-inner {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 64px;
  align-items: start;
}

@media (max-width: 880px) {
  .story-inner { grid-template-columns: 1fr; gap: 40px; }
}

.story-text h2 { margin: 0 0 24px; }
.story-text p {
  font-size: 1.05rem;
  color: var(--body);
  margin: 0 0 18px;
  line-height: 1.75;
}

.story-card {
  background: var(--steel-2);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  padding: 32px;
  position: sticky;
  top: 100px;
}
.story-card h4 { margin: 0 0 20px; }

.story-facts {
  list-style: none;
  margin: 0;
  padding: 0;
}
.story-facts li {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line-soft);
}
.story-facts li:last-child { border-bottom: none; }
.fact-label {
  font-family: var(--f-heading);
  font-size: .75rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--muted);
}
.fact-val {
  font-size: 1rem;
  color: var(--paper);
  font-weight: 500;
}

/* ============================================================
   Recent Work / Facebook embed
   ============================================================ */

.work {
  background: var(--steel-1);
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
}

.fb-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 400px;
  position: relative;
}

.fb-page-fallback {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--muted);
  pointer-events: none;
}
.fb-page-fallback a { pointer-events: auto; }
.fb-wrap.loaded .fb-page-fallback { display: none; }

.fb-page {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--steel-2);
  box-shadow: var(--shadow-md);
  max-width: 500px;
  width: 100%;
}

/* ============================================================
   Reviews
   ============================================================ */

.reviews {
  background: var(--ink);
}

.rating-summary {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-top: 8px;
  padding: 12px 22px;
  background: var(--steel-2);
  border: 1px solid var(--line-soft);
  border-radius: 999px;
  flex-wrap: wrap;
  justify-content: center;
}

.rating-num {
  font-family: var(--f-display);
  font-size: 1.6rem;
  color: var(--paper);
  line-height: 1;
}

.rating-count {
  font-family: var(--f-heading);
  font-size: .85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.stars {
  color: var(--hot);
  letter-spacing: 2px;
  font-size: 1rem;
  line-height: 1;
}
.stars-lg { font-size: 1.15rem; }

.review-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.review {
  background: var(--steel-2);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: all .25s ease;
  position: relative;
}
.review:hover {
  transform: translateY(-4px);
  border-color: var(--steel-4);
  background: var(--steel-3);
  box-shadow: var(--shadow-md);
}

.review-quote {
  margin: 0;
  color: var(--body);
  font-size: 1rem;
  line-height: 1.65;
  flex: 1;
}

.review-meta {
  margin: 0;
  font-family: var(--f-heading);
  font-size: .85rem;
  letter-spacing: 0.04em;
  color: var(--muted);
  padding-top: 16px;
  border-top: 1px solid var(--line-soft);
}
.review-meta strong { color: var(--paper); font-weight: 600; }

.reviews-cta {
  margin-top: 48px;
  text-align: center;
}

/* ============================================================
   Contact
   ============================================================ */

.contact {
  background: var(--ink);
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  margin-bottom: 56px;
}

.contact-card {
  background: var(--steel-2);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  text-align: center;
  transition: all .25s ease;
}
.contact-card:hover {
  border-color: var(--hot);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.contact-card h3 { margin: 0 0 16px; color: var(--paper); }
.contact-big {
  font-family: var(--f-display);
  font-size: 1.6rem;
  letter-spacing: 0.02em;
  margin: 0 0 12px;
  color: var(--paper);
}
.contact-big a { color: var(--paper); }
.contact-big a:hover { color: var(--hot); }
.muted { color: var(--muted); font-size: .9rem; margin: 0; }

.map-wrap {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line-soft);
  box-shadow: var(--shadow-md);
  height: 380px;
}
.map-wrap iframe {
  width: 100%;
  height: 100%;
  border: 0;
  filter: grayscale(0.3) contrast(1.05);
}

/* ---- Contact layout: form + cards ---- */
.contact-layout {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 48px;
  align-items: start;
}
.contact-layout .contact-grid {
  grid-template-columns: 1fr;
  margin-bottom: 0;
}

@media (max-width: 880px) {
  .contact-layout { grid-template-columns: 1fr; gap: 40px; }
}

/* ---- Contact form ---- */
.contact-form {
  background: var(--steel-2);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  box-shadow: var(--shadow-sm);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
@media (max-width: 540px) {
  .form-row { grid-template-columns: 1fr; }
}

.form-field {
  display: flex;
  flex-direction: column;
  margin-bottom: 18px;
}
.form-field label {
  font-family: var(--f-heading);
  font-size: .8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--paper);
  margin-bottom: 8px;
}
.form-field .req { color: var(--hot); }

.form-field input,
.form-field select,
.form-field textarea {
  font-family: var(--f-body);
  font-size: 1rem;
  color: var(--paper);
  background: var(--steel-1);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px 14px;
  width: 100%;
  transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}
.form-field textarea { resize: vertical; min-height: 120px; line-height: 1.5; }

.form-field input::placeholder,
.form-field textarea::placeholder {
  color: var(--muted);
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--hot);
  background: var(--steel-2);
  box-shadow: 0 0 0 3px rgba(255, 106, 19, 0.15);
}

.form-field select {
  appearance: none;
  -webkit-appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--paper) 50%),
                    linear-gradient(135deg, var(--paper) 50%, transparent 50%);
  background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%;
  background-size: 5px 5px;
  background-repeat: no-repeat;
  padding-right: 36px;
}

.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 24px;
  margin-top: 8px;
}
.form-note {
  margin: 0;
  color: var(--muted);
  font-size: .9rem;
}
.form-note a { color: var(--hot); }
.form-note a:hover { color: var(--molten); }

#cf-submit:disabled {
  opacity: .6;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.form-status {
  margin-top: 18px;
  padding: 14px 16px;
  border-radius: var(--radius);
  font-size: .95rem;
  border: 1px solid var(--line);
}
.form-status.is-success {
  background: rgba(255, 106, 19, 0.08);
  border-color: var(--hot);
  color: var(--paper);
}
.form-status.is-error {
  background: rgba(220, 38, 38, 0.08);
  border-color: #dc2626;
  color: #fecaca;
}

/* ============================================================
   Footer
   ============================================================ */

.footer {
  background: var(--steel-1);
  color: var(--body);
  padding: 64px 0 0;
  border-top: 1px solid var(--line-soft);
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 40px;
  padding-bottom: 48px;
}

@media (max-width: 860px) {
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 540px) {
  .footer-inner { grid-template-columns: 1fr; }
}

.footer-brand p { margin: 16px 0 0; max-width: 340px; }

.footer-logo {
  height: 80px;
  width: auto;
  display: block;
  border-radius: var(--radius);
}

.footer-col h4 { margin: 0 0 16px; color: var(--hot); }
.footer-col p { margin: 0 0 10px; }
.footer-col a { color: var(--body); }
.footer-col a:hover { color: var(--hot); }

.footer-bottom {
  border-top: 1px solid var(--line-soft);
  padding: 24px 0;
  text-align: center;
}
.footer-bottom p { margin: 0; color: var(--muted); font-size: .85rem; }

/* ============================================================
   Scroll fade-up animation
   ============================================================ */

.fade-up {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .8s ease, transform .8s ease;
}
.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .fade-up { opacity: 1; transform: none; transition: none; }
  .hero-spark { animation: none; }
  .hero h1 .accent::after { animation: none; transform: scaleX(1); }
}
