/* =========================================================
   Twisted C Mobile Welding
   Shared stylesheet. Theme variables live at the top:
   change --accent to re-brand the whole site at once.
   ========================================================= */

:root {
  --accent: #ff7a18;        /* safety orange */
  --accent-dark: #e2670a;
  --accent-soft: rgba(255, 122, 24, 0.12);

  --bg: #0e1116;            /* near-black steel */
  --surface: #161a21;       /* card / band surface */
  --surface-2: #1d222b;     /* lighter surface */
  --border: #2a313c;

  --text: #f3f5f8;
  --muted: #aab2bf;
  --muted-2: #7b8593;

  --header-h: 96px;
  --maxw: 1180px;
  --radius: 12px;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  --font: "Segoe UI", Arial, Helvetica, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-dark); }

h1, h2, h3 { line-height: 1.15; margin: 0 0 0.5em; }

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

.text-center { text-align: center; }

.eyebrow {
  display: inline-block;
  color: var(--accent);
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  font-size: 0.78rem;
  margin-bottom: 12px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 14px 26px;
  border-radius: 8px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  font-size: 0.9rem;
  cursor: pointer;
  border: 2px solid transparent;
  transition: transform 0.12s ease, background 0.18s ease, color 0.18s ease;
}
.btn:active { transform: translateY(1px); }

.btn-primary { background: var(--accent); color: #1a1205; }
.btn-primary:hover { background: var(--accent-dark); color: #1a1205; }

.btn-outline { background: transparent; color: var(--text); border-color: var(--border); }
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }

.btn-block { display: block; width: 100%; text-align: center; }

/* =========================================================
   Header
   ========================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(14, 17, 22, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow 0.2s ease, background 0.2s ease;
}
.site-header.is-scrolled { box-shadow: var(--shadow); }

.header-inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand { display: flex; align-items: center; }
.brand img { height: 72px; width: auto; }

.main-nav ul {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 22px;
  margin: 0;
  padding: 0;
}
.main-nav a {
  color: var(--muted);
  font-weight: 600;
  font-size: 0.93rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 6px 0;
  border-bottom: 2px solid transparent;
}
.main-nav a:hover { color: var(--text); }
.main-nav a.active {
  color: var(--text);
  border-bottom-color: var(--accent);
}

.header-cta {
  display: flex;
  align-items: center;
  gap: 14px;
}
.phone-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent);
  color: #1a1205;
  font-weight: 800;
  padding: 11px 18px;
  border-radius: 8px;
  white-space: nowrap;
}
.phone-cta:hover { background: var(--accent-dark); color: #1a1205; }
.phone-cta .ico { font-size: 1.05rem; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 8px;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  height: 2px;
  width: 22px;
  margin: 0 auto;
  background: var(--text);
  transition: transform 0.2s ease, opacity 0.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: 560px;
  display: flex;
  align-items: center;
  background: var(--surface);
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("../assets/hero.svg") center/cover no-repeat;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(10, 12, 15, 0.82) 0%, rgba(10, 12, 15, 0.55) 55%, rgba(10, 12, 15, 0.25) 100%);
}
.hero .container { position: relative; z-index: 2; }
.hero-content { max-width: 640px; padding: 80px 0; }
.hero h1 {
  font-size: clamp(2rem, 5vw, 3.4rem);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.hero p { font-size: 1.15rem; color: var(--muted); margin-bottom: 28px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* Smaller page banner for inner pages */
.page-banner {
  position: relative;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 56px 0;
  overflow: hidden;
}
.page-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("../assets/hero.svg") center/cover no-repeat;
  opacity: 0.5;
}
.page-banner::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(10, 12, 15, 0.9), rgba(10, 12, 15, 0.6));
}
.page-banner .container { position: relative; z-index: 2; }
.page-banner h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); text-transform: uppercase; }
.breadcrumb { color: var(--muted-2); font-size: 0.9rem; }
.breadcrumb a { color: var(--muted); }

/* =========================================================
   Sections
   ========================================================= */
.section { padding: 72px 0; }
.section--alt { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

.section-head { max-width: 720px; margin: 0 auto 44px; text-align: center; }
.section-head h2 { font-size: clamp(1.6rem, 3.5vw, 2.3rem); text-transform: uppercase; }
.section-head p { color: var(--muted); margin: 0; }

.lead { font-size: 1.15rem; color: var(--muted); }

/* Two-column intro */
.split {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}
.split img { border-radius: var(--radius); box-shadow: var(--shadow); }

/* =========================================================
   Cards
   ========================================================= */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.15s ease, border-color 0.15s ease;
}
.card:hover { transform: translateY(-4px); border-color: var(--accent); }
.card-media { aspect-ratio: 4 / 3; background: var(--surface-2); }
.card-media img { width: 100%; height: 100%; object-fit: cover; }
.card-body { padding: 22px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.card-body h3 { text-transform: uppercase; font-size: 1.15rem; margin: 0; }
.card-body p { color: var(--muted); margin: 0; flex: 1; }
.card-body .btn { align-self: flex-start; margin-top: 6px; }

/* Feature list */
.feature-list { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 12px; }
.feature-list li {
  position: relative;
  padding-left: 30px;
  color: var(--muted);
}
.feature-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 9px;
  width: 12px; height: 12px;
  background: var(--accent);
  clip-path: polygon(50% 0, 100% 38%, 80% 100%, 20% 100%, 0 38%);
}

/* Two/three/four-up generic grids */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }

/* =========================================================
   Callout band
   ========================================================= */
.callout {
  background: linear-gradient(120deg, var(--accent) 0%, var(--accent-dark) 100%);
  color: #1a1205;
  border-radius: var(--radius);
  padding: 40px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.callout h2 { margin: 0; text-transform: uppercase; font-size: 1.6rem; }
.callout p { margin: 6px 0 0; font-weight: 600; }
.callout .btn { background: #1a1205; color: #fff; border-color: #1a1205; }
.callout .btn:hover { background: #000; color: #fff; }

/* =========================================================
   Testimonials
   ========================================================= */
.quote {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius);
  padding: 26px;
}
.quote p { font-style: italic; color: var(--text); margin: 0 0 14px; }
.quote .who { color: var(--accent); font-weight: 700; font-style: normal; }
.stars { color: var(--accent); letter-spacing: 2px; margin-bottom: 10px; }

/* =========================================================
   Gallery
   ========================================================= */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.gallery-item {
  position: relative;
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 4 / 3;
  background: var(--surface-2);
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.25s ease; }
.gallery-item:hover img { transform: scale(1.06); }
.gallery-item::after {
  content: "+";
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: #fff;
  background: rgba(14, 17, 22, 0.55);
  opacity: 0;
  transition: opacity 0.2s ease;
}
.gallery-item:hover::after { opacity: 1; }

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(6, 8, 11, 0.92);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.lightbox.open { display: flex; }
.lightbox img { max-width: 92vw; max-height: 86vh; border-radius: 8px; box-shadow: var(--shadow); }
.lightbox-close {
  position: absolute;
  top: 18px; right: 22px;
  background: transparent;
  border: none;
  color: #fff;
  font-size: 2.4rem;
  line-height: 1;
  cursor: pointer;
}

/* =========================================================
   Careers
   ========================================================= */
.job {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 26px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.job h3 { margin: 0; text-transform: uppercase; font-size: 1.15rem; }
.job .meta { color: var(--muted-2); font-size: 0.9rem; }

/* =========================================================
   Contact
   ========================================================= */
.contact-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 42px; align-items: start; }

.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 600; margin-bottom: 6px; font-size: 0.92rem; }
.field input, .field textarea {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  padding: 12px 14px;
  font: inherit;
}
.field input:focus, .field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.field textarea { min-height: 140px; resize: vertical; }

.form-note { color: var(--muted-2); font-size: 0.85rem; margin-top: 10px; }
.form-success {
  display: none;
  background: var(--accent-soft);
  border: 1px solid var(--accent);
  color: var(--text);
  border-radius: 8px;
  padding: 14px 16px;
  margin-bottom: 18px;
}
.form-success.show { display: block; }

.info-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 18px; }
.info-list li { display: flex; gap: 14px; }
.info-list .ico {
  flex: 0 0 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-soft);
  color: var(--accent);
  border-radius: 8px;
  font-size: 1.1rem;
}
.info-list strong { display: block; }
.info-list span { color: var(--muted); }

.map-placeholder {
  margin-top: 26px;
  height: 220px;
  border-radius: var(--radius);
  border: 1px dashed var(--border);
  background:
    repeating-linear-gradient(45deg, var(--surface), var(--surface) 14px, var(--surface-2) 14px, var(--surface-2) 28px);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted-2);
  font-weight: 600;
  letter-spacing: 1px;
}

.map-embed {
  display: block;
  margin-top: 26px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  line-height: 0;
  transition: border-color 0.15s ease;
}
.map-embed:hover { border-color: var(--accent); }
.map-embed img { width: 100%; height: auto; display: block; }

/* =========================================================
   Footer
   ========================================================= */
.site-footer {
  background: #0a0c10;
  border-top: 1px solid var(--border);
  padding: 56px 0 26px;
  color: var(--muted);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 36px;
}
.site-footer h4 {
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.95rem;
  margin: 0 0 16px;
}
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--accent); }
.footer-brand img { height: 84px; width: auto; margin-bottom: 14px; }
.footer-hours { display: grid; grid-template-columns: auto auto; gap: 4px 18px; max-width: 240px; }
.footer-hours span:nth-child(even) { color: var(--text); text-align: right; }
.footer-bottom {
  border-top: 1px solid var(--border);
  margin-top: 40px;
  padding-top: 20px;
  text-align: center;
  font-size: 0.85rem;
  color: var(--muted-2);
}

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 960px) {
  .split, .contact-grid { grid-template-columns: 1fr; gap: 30px; }
  .card-grid, .grid-3, .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  .nav-toggle { display: flex; }
  .main-nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.28s ease;
  }
  .main-nav.open { max-height: 70vh; }
  .main-nav ul { flex-direction: column; align-items: stretch; gap: 0; padding: 8px 0; }
  .main-nav li { border-bottom: 1px solid var(--border); }
  .main-nav li:last-child { border-bottom: none; }
  .main-nav a { display: block; padding: 14px 20px; }
  .main-nav a.active { border-bottom-color: transparent; color: var(--accent); }

  /* hide the long phone label on small screens, keep tap-to-call icon button */
  .phone-cta .label { display: none; }

  .hero-content { padding: 60px 0; }
  .callout { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 520px) {
  .card-grid, .grid-2, .grid-3, .grid-4, .gallery-grid, .footer-grid { grid-template-columns: 1fr; }
  .section { padding: 52px 0; }
}
