/* CBH Welding - dark + hot pink, matched to the CBH workwear */
@font-face {
  font-family: "Alfa Slab One";
  src: url("/assets/alfa-slab-one.woff2") format("woff2");
  font-display: swap;
}
:root {
  --bg: #0d0d0f;
  --surface: #17171b;
  --surface-2: #1f1f24;
  --line: #2c2c33;
  --text: #f3f3f5;
  --muted: #a9a9b2;
  --pink: #ff2e93;
  --pink-deep: #d6197a;
  --grey: #8b8b94;
  --radius: 10px;
  --wrap: 1120px;
  --slab: "Alfa Slab One", Rockwell, "Roboto Slab", Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--pink); }
h1, h2, h3 { line-height: 1.15; margin: 0 0 .5em; }
h2 { font-family: var(--slab); font-weight: 400; font-size: clamp(1.7rem, 4vw, 2.4rem); letter-spacing: .01em; }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
.eyebrow { color: var(--pink); font-weight: 700; text-transform: uppercase; letter-spacing: .14em; font-size: .8rem; margin-bottom: .6em; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 8px; z-index: 99; background: var(--pink); color: #000; padding: 8px 12px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: .5em;
  padding: .8em 1.3em; border-radius: 999px;
  font-weight: 800; text-decoration: none; font-size: 1rem;
  border: 2px solid var(--pink); transition: background .15s, color .15s;
}
.btn svg { width: 1.1em; height: 1.1em; flex: none; }
.btn-pink { background: var(--pink); color: #0d0d0f; }
.btn-pink:hover { background: var(--pink-deep); border-color: var(--pink-deep); color: #fff; }
.btn-line { color: var(--text); background: transparent; }
.btn-line:hover { background: var(--pink); color: #0d0d0f; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(13, 13, 15, .94); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.logo { text-decoration: none; display: flex; flex-direction: column; line-height: 1; }
.logo b { font-family: var(--slab); font-weight: 400; color: var(--pink); font-size: 1.9rem; letter-spacing: .02em; }
.logo small { color: var(--muted); font-size: .58rem; letter-spacing: .2em; text-transform: uppercase; margin-top: 3px; }
.nav { display: none; gap: 22px; }
.nav a { color: var(--text); text-decoration: none; font-weight: 600; font-size: .95rem; }
.nav a:hover { color: var(--pink); }
.header-call { padding: .55em 1em; font-size: .95rem; }
.header-call span { display: none; }
@media (min-width: 900px) {
  .nav { display: flex; }
  .header-call span { display: inline; }
}

/* Hero */
.hero { position: relative; overflow: hidden; padding: 48px 0 56px; border-bottom: 1px solid var(--line); }
.hero::before, .hero::after { /* hoodie-style slashes */
  content: ""; position: absolute; pointer-events: none;
  width: 240px; height: 140%; top: -20%;
  transform: skewX(-24deg);
}
.hero::before { right: -70px; background: linear-gradient(var(--pink), var(--pink-deep)); opacity: .14; }
.hero::after { right: 120px; width: 70px; background: var(--grey); opacity: .1; }
.hero .wrap { position: relative; display: grid; gap: 32px; align-items: center; }
.hero h1 { font-family: var(--slab); font-weight: 400; font-size: clamp(2.1rem, 6.5vw, 3.6rem); letter-spacing: .01em; }
.hero h1 em { font-style: normal; color: var(--pink); }
.hero .lead { color: var(--muted); font-size: 1.15rem; max-width: 34em; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 24px 0 18px; }
.processes { display: flex; gap: 10px; flex-wrap: wrap; margin: 0; padding: 0; list-style: none; }
.processes li { border: 1px solid var(--line); background: var(--surface); border-radius: 6px; padding: .25em .7em; font-weight: 800; letter-spacing: .12em; font-size: .85rem; }
.processes li::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--pink); margin-right: .5em; vertical-align: middle; }
.hero-art { border-radius: var(--radius); overflow: hidden; border: 3px solid var(--surface-2); box-shadow: 0 20px 50px rgba(0, 0, 0, .55), 0 0 0 1px var(--line); }
@media (min-width: 900px) {
  .hero { padding: 72px 0 80px; }
  .hero .wrap { grid-template-columns: 1fr 1.15fr; gap: 48px; }
}

/* Sections */
section { padding: 64px 0; }
.alt { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.intro { color: var(--muted); max-width: 40em; margin-bottom: 32px; }

/* Services */
.cards { display: grid; gap: 16px; }
@media (min-width: 640px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .cards.four { grid-template-columns: repeat(4, 1fr); } }
.card { background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; border-top: 3px solid var(--pink); }
.card p { color: var(--muted); margin: 0; font-size: .97rem; }
.card .icon { width: 40px; height: 40px; color: var(--pink); margin-bottom: 14px; }

/* About: text, then one row of C / B / H cards with a photo each */
.about-text { max-width: 46em; margin-bottom: 32px; }
.about-text p { color: #d6d6dc; }
.crew { display: grid; gap: 16px; margin: 0; padding: 0; list-style: none; }
@media (min-width: 700px) { .crew { grid-template-columns: repeat(3, 1fr); } }
.crew li { background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; border-top: 3px solid var(--pink); }
.crew img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.crew img.pos-top { object-position: 50% 15%; }
.crew img.pos-mid { object-position: 50% 45%; }
.crew-body { display: flex; align-items: flex-start; gap: 14px; padding: 16px 18px 18px; }
.crew-body b { font-family: var(--slab); font-weight: 400; color: var(--pink); font-size: 2.4rem; line-height: 1; }
.crew-body span { display: block; font-weight: 700; font-size: 1.1rem; margin-top: 2px; }
.crew-body small { color: var(--muted); font-size: .92rem; line-height: 1.45; display: block; margin-top: 2px; }

/* Why */
.why { display: grid; gap: 16px; }
@media (min-width: 640px) { .why { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .why { grid-template-columns: repeat(4, 1fr); } }
.why div { border-left: 3px solid var(--pink); padding: 4px 0 4px 16px; }
.why p { color: var(--muted); margin: 0; font-size: .97rem; }

/* Gallery: empty boxes until photos are added to /assets/gallery/ */
.gallery { display: grid; gap: 12px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 900px) { .gallery { grid-template-columns: repeat(3, 1fr); } }
.gallery figure {
  position: relative; margin: 0; aspect-ratio: 4 / 3; border-radius: var(--radius); overflow: hidden;
  background: repeating-linear-gradient(-45deg, var(--surface-2) 0 14px, var(--surface) 14px 28px);
  border: 2px dashed var(--line);
  display: grid; place-items: center;
}
.gallery figcaption { color: var(--grey); font-size: .85rem; font-weight: 600; text-align: center; padding: 8px; }
.gallery figcaption::before { content: ""; display: block; margin: 0 auto 6px; width: 28px; height: 28px; opacity: .7;
  background: no-repeat center/contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238b8b94' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='14' rx='2'/%3E%3Ccircle cx='9' cy='10' r='2'/%3E%3Cpath d='m21 16-5-5-9 8'/%3E%3C/svg%3E"); }
.gallery img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.gallery figure:has(img) { border: 1px solid var(--line); }
.gallery figure:has(img) figcaption { /* label over the photo */
  position: absolute; left: 0; right: 0; bottom: 0; text-align: left;
  padding: 22px 12px 10px; color: #fff; font-size: .9rem;
  background: linear-gradient(transparent, rgba(0, 0, 0, .8));
}
.gallery figure:has(img) figcaption::before { display: none; }
.gallery figure[hidden] { display: none; }

/* Gallery page arrows */
.gallery-nav { display: flex; align-items: center; justify-content: center; gap: 18px; margin-top: 22px; }
.gallery-nav[hidden] { display: none; }
.g-btn { width: 52px; height: 52px; border-radius: 50%; border: 2px solid var(--pink); background: transparent; color: var(--text); display: grid; place-items: center; cursor: pointer; transition: background .15s, color .15s; }
.g-btn:hover, .g-btn:focus-visible { background: var(--pink); color: #0d0d0f; outline: none; }
.g-btn svg { width: 24px; height: 24px; }
.g-count { font-weight: 800; letter-spacing: .08em; min-width: 4em; text-align: center; color: var(--muted); }


/* Contact */
.contact-box { background: linear-gradient(135deg, var(--surface-2), var(--surface)); border: 1px solid var(--line); border-radius: 16px; padding: 32px 24px; display: grid; gap: 24px; position: relative; overflow: hidden; }
.contact-box::after { content: ""; position: absolute; right: -60px; top: -40%; width: 140px; height: 180%; background: var(--pink); opacity: .12; transform: skewX(-24deg); }
@media (min-width: 900px) { .contact-box { grid-template-columns: 1.3fr 1fr; padding: 48px; align-items: center; } }
.big-phone { font-family: var(--slab); font-size: clamp(2rem, 7vw, 3rem); color: var(--pink); text-decoration: none; display: inline-block; line-height: 1.1; margin: 4px 0 18px; }
.contact-box .actions { display: flex; flex-wrap: wrap; gap: 12px; }
.facts { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; position: relative; }
.facts li { display: grid; grid-template-columns: 22px 1fr; gap: 12px; color: #d6d6dc; }
.facts svg { width: 22px; height: 22px; color: var(--pink); margin-top: 2px; }
.facts strong { display: block; color: var(--text); }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 36px 0 110px; color: var(--muted); font-size: .92rem; }
.site-footer .wrap { display: grid; gap: 18px; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 18px; }
.site-footer nav a { color: var(--text); text-decoration: none; }
@media (min-width: 900px) { .site-footer { padding-bottom: 36px; } .site-footer .wrap { grid-template-columns: auto 1fr auto; align-items: center; } .site-footer nav { justify-content: center; } }

/* Mobile call bar */
.call-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; display: grid; grid-template-columns: 2fr 1fr; gap: 8px; padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); background: rgba(13, 13, 15, .96); border-top: 1px solid var(--line); }
.call-bar .btn { justify-content: center; padding: .75em .5em; }
@media (min-width: 900px) { .call-bar { display: none; } }

/* 404 */
.notfound { min-height: 60vh; display: grid; place-items: center; text-align: center; padding: 64px 16px; }
.notfound h1 { font-family: var(--slab); font-weight: 400; font-size: clamp(2.4rem, 8vw, 4rem); color: var(--pink); }
