/* ============================================================
   JC Legacy — Industrial Pipe Insulation & Labeling, Greeley CO
   Brand: Navy / Gold / Brown. Condensed industrial type.
   ============================================================ */

/* ---------- Self-hosted fonts (@fontsource files) ---------- */
@font-face {
  font-family: "Barlow"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("fonts/barlow-400.woff2") format("woff2");
}
@font-face {
  font-family: "Barlow"; font-style: normal; font-weight: 500; font-display: swap;
  src: url("fonts/barlow-500.woff2") format("woff2");
}
@font-face {
  font-family: "Barlow"; font-style: normal; font-weight: 600; font-display: swap;
  src: url("fonts/barlow-600.woff2") format("woff2");
}
@font-face {
  font-family: "Barlow"; font-style: normal; font-weight: 700; font-display: swap;
  src: url("fonts/barlow-700.woff2") format("woff2");
}
@font-face {
  font-family: "Barlow Condensed"; font-style: normal; font-weight: 500; font-display: swap;
  src: url("fonts/barlow-condensed-500.woff2") format("woff2");
}
@font-face {
  font-family: "Barlow Condensed"; font-style: normal; font-weight: 600; font-display: swap;
  src: url("fonts/barlow-condensed-600.woff2") format("woff2");
}
@font-face {
  font-family: "Barlow Condensed"; font-style: normal; font-weight: 700; font-display: swap;
  src: url("fonts/barlow-condensed-700.woff2") format("woff2");
}

:root {
  --navy:        #122A4D;
  --navy-deep:   #0D1D33;
  --navy-800:    #1B3A63;
  --gold:        #FCB721;
  --gold-dark:   #D89A0C;
  --brown:       #462F20;
  --ink:         #1A1A1A;
  --muted:       #55607A;
  --line:        #D9DEE6;
  --bg:          #FFFFFF;
  --bg-alt:      #F4F6F9;
  --white:       #FFFFFF;

  --radius:      8px;
  --radius-sm:   6px;
  --shadow:      0 10px 30px rgba(18,42,77,.10);
  --shadow-lg:   0 24px 60px rgba(13,29,51,.18);
  --maxw:        1180px;

  --f-head: "Barlow Condensed", "Arial Narrow", sans-serif;
  --f-body: "Barlow", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
}

/* ---------- Reset ---------- */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  font-family: var(--f-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

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

/* ---------- Typography ---------- */
h1, h2, h3 { font-family: var(--f-head); font-weight: 700; line-height: 1.05; letter-spacing: .5px; color: var(--navy); }
h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); text-transform: uppercase; }
h2 { font-size: clamp(1.9rem, 4vw, 2.9rem); text-transform: uppercase; }
h3 { font-size: 1.35rem; text-transform: uppercase; letter-spacing: .6px; }

.kicker {
  font-family: var(--f-head); font-weight: 700; text-transform: uppercase;
  letter-spacing: 3px; font-size: .9rem; color: var(--navy);
  margin-bottom: 10px; position: relative; display: inline-block;
}
.kicker::after { content: ""; display: inline-block; width: 26px; height: 3px; background: var(--gold); vertical-align: middle; margin-left: 12px; border-radius: 2px; }
.kicker-light { color: var(--gold); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--f-head); font-weight: 600; text-transform: uppercase;
  letter-spacing: 1.2px; font-size: 1.02rem;
  padding: 14px 28px; border-radius: var(--radius-sm); cursor: pointer;
  border: 2px solid transparent; transition: transform .15s ease, box-shadow .15s ease, background .15s ease, color .15s ease;
}
.btn:active { transform: translateY(1px); }
.btn-gold  { background: var(--gold); color: var(--navy); box-shadow: 0 8px 20px rgba(252,183,33,.32); }
.btn-gold:hover  { background: var(--gold-dark); box-shadow: 0 10px 26px rgba(252,183,33,.40); }
.btn-navy  { background: var(--navy); color: #fff; }
.btn-navy:hover  { background: var(--navy-deep); }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.55); }
.btn-ghost:hover { background: #fff; color: var(--navy); border-color: #fff; }
.btn-block { width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 20px; height: 74px; }
.brand { display: flex; align-items: center; gap: 12px; margin-right: auto; }
.brand-words { display: flex; flex-direction: column; line-height: 1; }
.brand-name { font-family: var(--f-head); font-weight: 700; font-size: 1.5rem; letter-spacing: 1px; color: var(--navy); }
.brand-tag  { font-family: var(--f-head); font-weight: 500; font-size: .68rem; letter-spacing: 3px; text-transform: uppercase; color: var(--brown); margin-top: 2px; }

/* Logo lockups */
.brand-lockup { display: block; height: 46px; width: auto; }
.brand-mark { display: inline-flex; }
.brand-shield { display: block; height: auto; }

.main-nav { display: flex; align-items: center; gap: 26px; }
.main-nav a { font-family: var(--f-head); font-weight: 600; text-transform: uppercase; letter-spacing: 1px; font-size: 1rem; color: var(--navy); transition: color .15s; }
.main-nav a:hover { color: var(--gold-dark); }
.nav-cta { background: var(--gold); color: var(--navy) !important; padding: 9px 18px; border-radius: var(--radius-sm); }
.nav-cta:hover { background: var(--gold-dark); }

.header-phone { display: flex; align-items: center; gap: 8px; color: var(--navy); font-family: var(--f-head); font-weight: 600; font-size: 1.05rem; letter-spacing: .5px; }
.header-phone svg { color: var(--navy); }

.nav-toggle { display: none; flex-direction: column; align-items: center; justify-content: center; gap: 5px; min-width: 44px; min-height: 44px; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { width: 26px; height: 3px; background: var(--navy); border-radius: 2px; transition: .25s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { position: relative; color: #fff; overflow: hidden; background: var(--navy-deep); }
.hero-bg {
  position: absolute; inset: 0;
  background: var(--navy-deep);
}
/* blueprint grid + shield watermark */
.hero-bg::before {
  content: ""; position: absolute; inset: 0; opacity: .5;
  background-image:
    linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: linear-gradient(to bottom, #000 40%, transparent 100%);
}
.hero-bg::after {
  content: ""; position: absolute; right: 0; bottom: 6%;
  width: min(1120px, 84%); height: clamp(220px, 30vw, 340px);
  background: url("assets/hero-pipes.png") no-repeat right center / contain;
  opacity: .55;
  -webkit-mask-image: linear-gradient(to left, #000 52%, transparent 100%);
  mask-image: linear-gradient(to left, #000 52%, transparent 100%);
}
@media (max-width: 720px) {
  .hero-bg::after { opacity: .3; bottom: 0; width: 118%; right: -9%; }
}
.hero-inner { position: relative; padding: clamp(64px, 11vw, 130px) 24px clamp(72px, 12vw, 140px); }
.hero-copy { max-width: 680px; }
.eyebrow { font-family: var(--f-head); font-weight: 600; letter-spacing: 3px; text-transform: uppercase; color: var(--gold); font-size: .95rem; margin-bottom: 18px; }
.hero h1 { color: #fff; }
.hero h1 .hl { color: var(--gold); }
.lede { font-size: 1.18rem; color: rgba(255,255,255,.86); margin: 22px 0 30px; max-width: 600px; }
.lede strong { color: #fff; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-badges { display: flex; flex-wrap: wrap; gap: 10px 26px; margin-top: 34px; }
.hero-badges li { position: relative; padding-left: 24px; font-weight: 600; color: rgba(255,255,255,.9); font-size: .98rem; }
.hero-badges li::before { content: "✓"; position: absolute; left: 0; color: var(--gold); font-weight: 700; }

/* ---------- Trust strip ---------- */
.trust-strip { background: var(--gold); color: var(--navy); }
.trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.trust-item { text-align: center; padding: 22px 10px; border-right: 1px solid rgba(20,40,75,.16); }
.trust-item:last-child { border-right: 0; }
.trust-num { display: block; font-family: var(--f-head); font-weight: 700; font-size: 1.7rem; text-transform: uppercase; line-height: 1; }
.trust-label { font-size: .92rem; font-weight: 600; }

/* ---------- Sections ---------- */
.section { padding: clamp(64px, 9vw, 104px) 0; }
.section-alt { background: var(--bg-alt); }
.section-navy { background: var(--navy); color: #fff; }
.section-navy h2 { color: #fff; }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 52px; }
.section-sub { color: var(--muted); font-size: 1.08rem; margin-top: 12px; }
.section-navy .section-sub { color: rgba(255,255,255,.8); }

/* ---------- Services cards ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 34px 28px; box-shadow: var(--shadow); transition: transform .18s ease, box-shadow .18s ease, border-color .18s;
  position: relative; overflow: hidden;
}
.card::before { content: ""; position: absolute; left: 0; top: 0; height: 4px; width: 100%; background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform .25s ease; }
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); border-color: transparent; }
.card:hover::before { transform: scaleX(1); }
.card-ic {
  display: inline-flex; align-items: center; justify-content: center;
  width: 56px; height: 56px; border-radius: 12px; margin-bottom: 18px;
  background: rgba(20,40,75,.06); color: var(--navy);
}
.card:hover .card-ic { background: var(--navy); color: var(--gold); }
.card h3 { margin-bottom: 8px; }
.card p { color: var(--muted); }
.services-note { text-align: center; margin-top: 36px; color: var(--muted); }
.services-note a { color: var(--navy); font-weight: 700; text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 3px; }
.services-note a:hover { color: var(--gold-dark); }

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 54px; align-items: center; }
.about-copy p { color: var(--muted); margin-bottom: 16px; }
.about-copy .kicker + h2 { margin-bottom: 18px; }
.check-list { margin: 22px 0 28px; display: grid; gap: 12px; }
.check-list li { position: relative; padding-left: 32px; font-weight: 500; }
.check-list li::before {
  content: "✓"; position: absolute; left: 0; top: -1px;
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--gold); color: var(--navy); font-weight: 700; font-size: .8rem;
  display: grid; place-items: center;
}

/* ---------- Values / Why ---------- */
.values { display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; }
.value { text-align: center; padding: 28px 16px; border-radius: var(--radius); transition: background .18s; }
.value:hover { background: var(--bg-alt); }
.value-ic {
  display: inline-flex; align-items: center; justify-content: center;
  width: 66px; height: 66px; border-radius: 50%; margin-bottom: 16px;
  background: var(--navy); color: var(--gold);
}
.value h3 { font-size: 1.1rem; margin-bottom: 8px; }
.value p { color: var(--muted); font-size: .96rem; }

/* ---------- Service area ---------- */
.area-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 54px; align-items: center; }
.area-copy p { color: rgba(255,255,255,.82); margin-bottom: 22px; max-width: 520px; }
.area-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 30px; }
.area-list li { position: relative; padding-left: 24px; font-weight: 600; color: #fff; }
.area-list li::before { content: "▹"; position: absolute; left: 0; color: var(--gold); }

/* ---------- Placeholders ---------- */
.ph {
  position: relative; border-radius: var(--radius); overflow: hidden;
  background:
    repeating-linear-gradient(45deg, rgba(20,40,75,.05) 0 14px, rgba(20,40,75,.09) 14px 28px);
  border: 1px dashed rgba(20,40,75,.25);
  display: grid; place-items: center; min-height: 220px; color: var(--navy);
}
.ph::after {
  content: attr(data-label);
  font-family: var(--f-head); font-weight: 600; text-transform: uppercase; letter-spacing: 1.5px;
  font-size: .9rem; color: rgba(20,40,75,.55);
  padding: 8px 14px; background: rgba(255,255,255,.7); border-radius: 30px;
}
.ph-tall { min-height: 460px; }
.ph-map  { min-height: 380px; }
.ph-proj { min-height: 240px; }
.section-navy .ph { border-color: rgba(255,255,255,.35); background: repeating-linear-gradient(45deg, rgba(255,255,255,.06) 0 14px, rgba(255,255,255,.11) 14px 28px); }
.section-navy .ph::after { color: #fff; background: rgba(255,255,255,.14); }

/* ---------- Gallery (equal-height showcase, no cropping) ---------- */
.gallery { display: flex; flex-wrap: wrap; justify-content: center; align-items: stretch; gap: 22px; }
.work-fig { margin: 0; height: clamp(360px, 42vw, 480px); border-radius: var(--radius); overflow: hidden; background: var(--navy-deep); border: 1px solid var(--line); box-shadow: var(--shadow); }
.work-fig img { display: block; height: 100%; width: auto; transition: transform .35s ease; }
.work-fig:hover img { transform: scale(1.03); }
@media (max-width: 640px) { .work-fig { height: auto; width: 100%; max-width: 460px; } .work-fig img { width: 100%; height: auto; } }

/* ---------- Section photos ---------- */
.media-img { display: block; width: 100%; height: auto; border-radius: var(--radius); box-shadow: var(--shadow); }
.about-media .media-img { aspect-ratio: 3 / 4; object-fit: cover; border: 1px solid var(--line); }
.area-media .media-img { aspect-ratio: 3 / 2; object-fit: cover; border: 1px solid rgba(255,255,255,.18); box-shadow: var(--shadow-lg); }

/* ---------- Testimonials ---------- */
.quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.quote {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 28px; box-shadow: var(--shadow); position: relative;
}
.quote .stars { color: var(--gold); letter-spacing: 2px; margin-bottom: 12px; font-size: 1.05rem; }
.quote p { color: var(--ink); font-style: italic; margin-bottom: 18px; }
.quote footer { display: flex; flex-direction: column; border-top: 1px solid var(--line); padding-top: 14px; }
.q-name { font-family: var(--f-head); font-weight: 700; text-transform: uppercase; letter-spacing: .5px; color: var(--navy); }
.q-loc { color: var(--muted); font-size: .9rem; }

/* ---------- FAQ ---------- */
.faq-wrap { max-width: 820px; }
.faq { display: grid; gap: 14px; }
.faq-item { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; }
.faq-q {
  width: 100%; text-align: left; background: none; border: 0; cursor: pointer;
  font-family: var(--f-head); font-weight: 600; text-transform: uppercase; letter-spacing: .5px;
  font-size: 1.12rem; color: var(--navy); padding: 20px 22px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.faq-plus { position: relative; width: 18px; height: 18px; flex: 0 0 auto; }
.faq-plus::before, .faq-plus::after { content: ""; position: absolute; background: var(--navy); border-radius: 2px; transition: transform .25s; }
.faq-plus::before { left: 0; top: 8px; width: 18px; height: 3px; }
.faq-plus::after  { left: 8px; top: 0; width: 3px; height: 18px; }
.faq-q[aria-expanded="true"] .faq-plus::after { transform: scaleY(0); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .3s ease; }
.faq-a p { padding: 0 22px 20px; color: var(--muted); }
.faq-a a { color: var(--navy); font-weight: 700; text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 3px; }
.faq-a a:hover { color: var(--gold-dark); }

/* ---------- Contact ---------- */
#contact { position: relative; overflow: hidden; }
#contact::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: url("assets/hero-pipes-alt.png") no-repeat right bottom / min(840px, 70%) auto;
  opacity: .10;
  -webkit-mask-image: linear-gradient(to left, #000 45%, transparent 100%);
  mask-image: linear-gradient(to left, #000 45%, transparent 100%);
}
.contact-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr 1.1fr; gap: 54px; align-items: start; }
.contact-info p { color: rgba(255,255,255,.82); margin-bottom: 24px; max-width: 440px; }
.contact-list { display: grid; gap: 18px; }
.contact-list li { display: flex; align-items: flex-start; gap: 14px; }
.ci-ic { display: grid; place-items: center; width: 44px; height: 44px; flex: 0 0 auto; border-radius: 10px; background: rgba(255,255,255,.1); color: var(--gold); font-size: 1.2rem; }
.contact-list span span { display: block; }
.ci-label { font-family: var(--f-head); font-weight: 600; text-transform: uppercase; letter-spacing: 1.5px; font-size: .78rem; color: var(--gold); }
.contact-list a { color: #fff; font-weight: 600; }
.contact-list a:hover { color: var(--gold); }

.quote-form { background: #fff; border-radius: var(--radius); padding: 32px; box-shadow: var(--shadow-lg); }
.field { margin-bottom: 18px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field label { display: block; font-family: var(--f-head); font-weight: 600; text-transform: uppercase; letter-spacing: 1px; font-size: .85rem; color: var(--navy); margin-bottom: 7px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 13px 15px; border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  font-family: var(--f-body); font-size: 1rem; color: var(--ink); background: #fff; transition: border-color .15s, box-shadow .15s;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(252,183,33,.25); }
.field textarea { resize: vertical; }
.form-status { margin-top: 14px; font-weight: 600; text-align: center; }
.form-status.ok  { color: #1a7f43; }
.form-status.err { color: #c0392b; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-deep); color: rgba(255,255,255,.75); }
.footer-inner { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 34px; padding: 54px 24px 40px; align-items: start; }
.footer-brand { display: flex; align-items: center; gap: 14px; }
.footer-brand .brand-name { display: block; color: #fff; font-family: var(--f-head); font-weight: 700; font-size: 1.35rem; letter-spacing: 1px; }
.footer-brand .brand-tag { display: block; color: var(--gold); font-family: var(--f-head); font-weight: 500; font-size: .66rem; letter-spacing: 3px; text-transform: uppercase; }
.footer-nav { display: flex; flex-direction: column; gap: 10px; }
.footer-nav a, .footer-contact a { transition: color .15s; }
.footer-nav a:hover, .footer-contact a:hover { color: var(--gold); }
.footer-contact { display: flex; flex-direction: column; gap: 10px; }
.footer-creds { font-size: .82rem; color: rgba(255,255,255,.55); }
.footer-creds em { font-style: italic; }
.footer-bar { border-top: 1px solid rgba(255,255,255,.1); }
.footer-bar-inner { display: flex; justify-content: space-between; gap: 12px; padding: 18px 24px; font-size: .88rem; color: rgba(255,255,255,.55); }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .cards, .quotes { grid-template-columns: repeat(2, 1fr); }
  .values { grid-template-columns: repeat(3, 1fr); }
  .about-grid, .area-grid, .contact-grid { grid-template-columns: 1fr; gap: 36px; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .header-phone { display: none; }
}
@media (max-width: 760px) {
  .main-nav {
    position: fixed; inset: 74px 0 auto 0; background: #fff; flex-direction: column; align-items: stretch;
    gap: 0; padding: 8px 0; border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
    transform: translateY(-120%); transition: transform .28s ease; z-index: 40;
  }
  .main-nav.open { transform: translateY(0); }
  .main-nav a { padding: 14px 24px; border-bottom: 1px solid var(--line); }
  .nav-cta { margin: 10px 24px; text-align: center; }
  .nav-toggle { display: flex; }
  .trust-grid { grid-template-columns: repeat(2, 1fr); }
  .trust-item:nth-child(2) { border-right: 0; }
  .values { grid-template-columns: repeat(2, 1fr); }
  .field-row { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .cards, .quotes, .values, .footer-inner { grid-template-columns: 1fr; }
  .brand-tag { display: none; }
  .footer-bar-inner { flex-direction: column; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; }
  .reveal { opacity: 1 !important; transform: none !important; transition: none; }
}
