/* Charnwood Coatings & Fabrication - modern static theme */

:root {
  --orange: #ee7c1a;
  --orange-dark: #d56710;
  --ink: #0e1116;
  --ink-2: #1b2129;
  --steel: #5b6571;
  --steel-light: #97a1ad;
  --bg: #ffffff;
  --bg-soft: #f6f7f9;
  --line: #e6e9ee;
  --shadow-sm: 0 1px 2px rgba(14,17,22,.06), 0 1px 1px rgba(14,17,22,.04);
  --shadow-md: 0 10px 30px rgba(14,17,22,.08), 0 4px 10px rgba(14,17,22,.04);
  --radius: 14px;
  --radius-sm: 8px;
  --max: 1180px;
  --header-h: 78px;
  --font-display: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16.5px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

a { color: var(--orange); text-decoration: none; }
a:hover { color: var(--orange-dark); }
img { max-width: 100%; display: block; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--ink);
  margin: 0 0 .5em;
  letter-spacing: -.01em;
  line-height: 1.15;
}
h1 { font-size: clamp(2rem, 3.8vw, 3.1rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); font-weight: 700; }
h3 { font-size: 1.25rem; font-weight: 700; }
p  { margin: 0 0 1em; color: var(--ink-2); }

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

/* ----------------- Header ----------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,.92);
  backdrop-filter: saturate(150%) blur(10px);
  border-bottom: 1px solid var(--line);
  height: var(--header-h);
  display: flex;
  align-items: center;
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: 100%;
}
.brand {
  display: inline-flex;
  align-items: center;
  line-height: 0;
}
.brand img,
.brand svg {
  height: 38px;
  width: auto;
  display: block;
}
.site-footer .brand img { height: 44px; }

.nav { display: flex; align-items: center; gap: 6px; }
.nav a {
  color: var(--ink);
  font-weight: 600;
  font-size: .95rem;
  padding: 10px 14px;
  border-radius: 8px;
}
.nav a:hover { background: var(--bg-soft); color: var(--ink); }
.nav a.active { color: var(--orange); }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 18px;
  border-radius: 10px;
  font-weight: 700;
  font-family: var(--font-display);
  font-size: .95rem;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform .12s ease, box-shadow .2s ease, background .2s;
  white-space: nowrap;
}
.btn-primary {
  background: var(--orange);
  color: #fff;
  box-shadow: 0 6px 18px rgba(238,124,26,.35);
}
.btn-primary:hover { background: var(--orange-dark); color: #fff; transform: translateY(-1px); }
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}
.btn-ghost:hover { border-color: var(--ink); color: var(--ink); }
.btn-light {
  background: #fff;
  color: var(--ink);
}
.btn-light:hover { color: var(--orange-dark); }

.menu-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 10px;
  cursor: pointer;
}
.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink);
  margin: 5px 0;
}

/* ----------------- Hero ----------------- */
.hero {
  position: relative;
  color: #fff;
  overflow: hidden;
  isolation: isolate;
}
.hero .bg {
  position: absolute; inset: 0;
  background: linear-gradient(120deg, rgba(8,14,22,.92) 0%, rgba(8,14,22,.55) 55%, rgba(8,14,22,.25) 100%),
              url('../img/hero-powder-coating.jpg') center/cover no-repeat;
  z-index: -1;
}
.hero .container {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 48px;
  align-items: center;
  padding-top: 40px;
  padding-bottom: 64px;
}
.hero h1 { color: #fff; }
.hero h1 .accent { color: var(--orange); }
.hero p { color: #d9dde3; font-size: 1.15rem; max-width: 56ch; }
.hero .cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 20px; }
.hero .badges {
  display: flex; gap: 28px; flex-wrap: wrap;
  margin-top: 28px; padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,.12);
}
.hero .badge {
  display: flex; flex-direction: column; gap: 4px;
}
.hero .badge .n { font-family: var(--font-display); font-size: 1.7rem; font-weight: 800; color: #fff; }
.hero .badge .l { color: var(--steel-light); font-size: .85rem; }

.hero .card {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  backdrop-filter: blur(8px);
  border-radius: var(--radius);
  padding: 28px;
}
.hero .card h3 { color: #fff; font-size: 1.1rem; margin-bottom: 14px; }
.hero .quick-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.hero .quick-list li {
  display: flex; align-items: center; gap: 12px;
  color: #e7eaef; font-size: .95rem;
}
.hero .quick-list svg { color: var(--orange); flex: 0 0 auto; }

/* Hero flip cards (rotating panel) */
.hero-flip { position: relative; }
.hero-slide {
  transition: opacity .6s ease, transform .6s ease;
}
.hero-flip > .hero-slide + .hero-slide {
  position: absolute;
  inset: 0;
}
.hero-slide {
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
}
.hero-slide.is-active {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}
.hero-flip-dots {
  position: absolute;
  bottom: -34px;
  left: 0; right: 0;
  display: flex;
  gap: 8px;
  justify-content: center;
}
.hero-flip-dots .dot {
  width: 26px;
  height: 4px;
  border: 0;
  border-radius: 2px;
  background: rgba(255,255,255,.25);
  cursor: pointer;
  padding: 0;
  transition: background .25s;
}
.hero-flip-dots .dot:hover { background: rgba(255,255,255,.5); }
.hero-flip-dots .dot.is-active { background: var(--orange); }

.eyebrow {
  display: inline-block;
  font-family: var(--font-display);
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 14px;
}

/* ----------------- Sections ----------------- */
section { padding: 88px 0; }
.section-soft { background: var(--bg-soft); }
.section-dark { background: var(--ink); color: #d9dde3; }
.section-dark h2, .section-dark h3 { color: #fff; }
.section-dark p { color: #c8cdd4; }

.section-head { max-width: 720px; margin: 0 auto 48px; text-align: center; }
.section-head p { color: var(--steel); }

/* Logos / trust */
.trust {
  padding: 36px 0;
  border-bottom: 1px solid var(--line);
}
.trust .row {
  display: flex; align-items: center; justify-content: center; gap: 38px;
  flex-wrap: wrap;
}
.trust .label { color: var(--steel); font-size: .85rem; letter-spacing: .12em; text-transform: uppercase; }
.trust .item {
  font-family: var(--font-display); font-weight: 800;
  color: var(--steel-light); font-size: 1.1rem; letter-spacing: .04em;
}

/* Service grid */
.services {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.service {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  transition: transform .2s, box-shadow .2s, border-color .2s;
  display: flex; flex-direction: column;
}
.service:hover {
  transform: translateY(-3px);
  border-color: transparent;
  box-shadow: var(--shadow-md);
}
.service .icon {
  width: 48px; height: 48px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(238,124,26,.12);
  color: var(--orange);
  border-radius: 12px;
  margin-bottom: 18px;
}
.service h3 { margin-bottom: 8px; }
.service p { margin-bottom: 16px; flex: 1; }
.service .more {
  font-family: var(--font-display);
  font-weight: 700;
  display: inline-flex; align-items: center; gap: 6px;
  font-size: .92rem;
}

/* Process steps */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  counter-reset: step;
}
.step {
  position: relative;
  padding: 28px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.step::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  position: absolute;
  top: -14px; left: 24px;
  background: var(--orange);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: .85rem;
  padding: 6px 10px;
  border-radius: 6px;
  letter-spacing: .06em;
}
.step h3 { margin-top: 6px; font-size: 1.1rem; }
.step p { font-size: .95rem; margin: 0; }

/* Split feature row */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.split.flip > :first-child { order: 2; }
.split img { border-radius: var(--radius); box-shadow: var(--shadow-md); }
.split ul { padding-left: 0; list-style: none; margin: 22px 0 0; display: grid; gap: 10px; }
.split ul li {
  display: flex; align-items: start; gap: 12px;
  color: var(--ink-2);
}
.split ul li svg { color: var(--orange); flex: 0 0 auto; margin-top: 4px; }

/* Before / after card row */
.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.gallery figure {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  background: #000;
  position: relative;
  aspect-ratio: 4/3;
}
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.gallery figure:hover img { transform: scale(1.04); }
.gallery figcaption {
  position: absolute; left: 16px; bottom: 14px;
  background: rgba(14,17,22,.78);
  color: #fff;
  padding: 6px 12px;
  border-radius: 6px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: .85rem;
  letter-spacing: .04em;
}

/* CTA banner */
.cta-banner {
  background: linear-gradient(135deg, var(--orange) 0%, #f59341 100%);
  color: #fff;
  border-radius: var(--radius);
  padding: 48px;
  display: grid;
  grid-template-columns: 1.4fr auto;
  gap: 24px;
  align-items: center;
}
.cta-banner h2 { color: #fff; margin: 0 0 6px; }
.cta-banner p  { color: rgba(255,255,255,.92); margin: 0; }

/* Footer */
.site-footer {
  background: var(--ink);
  color: #c8cdd4;
  padding: 72px 0 24px;
  font-size: .95rem;
}
.site-footer .cols {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 40px;
  margin-bottom: 48px;
}
.site-footer h4 {
  color: #fff;
  font-family: var(--font-display);
  font-size: .8rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.site-footer a { color: #c8cdd4; }
.site-footer a:hover { color: #fff; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.site-footer .brand { color: #fff; }
.site-footer .copy {
  border-top: 1px solid rgba(255,255,255,.08);
  padding-top: 22px;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  color: var(--steel-light);
}

/* About + Contact pages */
.page-hero {
  background: var(--ink);
  color: #fff;
  padding: 100px 0 70px;
  border-bottom: 4px solid var(--orange);
}
.page-hero h1 { color: #fff; margin-bottom: 12px; }
.page-hero p { color: var(--steel-light); max-width: 60ch; font-size: 1.1rem; }
.crumbs {
  font-size: .85rem;
  color: var(--steel-light);
  letter-spacing: .06em;
  margin-bottom: 24px;
}
.crumbs a { color: var(--orange); }

.prose { max-width: 760px; margin: 0 auto; }
.prose h2 { margin-top: 40px; }
.prose ul { padding-left: 20px; }
.prose ul li { margin-bottom: 8px; }

/* Contact form */
.contact-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 56px;
  align-items: start;
}
.contact-info {
  background: var(--bg-soft);
  border-radius: var(--radius);
  padding: 32px;
}
.contact-info dl { margin: 0; display: grid; gap: 18px; }
.contact-info dt { font-family: var(--font-display); font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; color: var(--steel); margin-bottom: 4px; }
.contact-info dd { margin: 0; color: var(--ink); font-weight: 600; }
.contact-info dd a { color: var(--ink); }

form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
form label { display: block; margin-bottom: 18px; font-size: .9rem; font-weight: 600; color: var(--ink-2); }
form input, form select, form textarea {
  display: block;
  width: 100%;
  margin-top: 6px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font: inherit;
  background: #fff;
  color: var(--ink);
  transition: border-color .15s, box-shadow .15s;
}
form input:focus, form select:focus, form textarea:focus {
  outline: none;
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(238,124,26,.18);
}
form textarea { min-height: 140px; resize: vertical; }
form .submit-row { margin-top: 8px; }

/* Responsive */
@media (max-width: 980px) {
  .hero .container { grid-template-columns: 1fr; padding-top: 32px; padding-bottom: 56px; }
  .services { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; gap: 32px; }
  .split.flip > :first-child { order: 0; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .site-footer .cols { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .cta-banner { grid-template-columns: 1fr; padding: 32px; text-align: left; }
  section { padding: 64px 0; }
}
@media (max-width: 640px) {
  .menu-toggle { display: block; }
  .nav { display: none; position: absolute; top: var(--header-h); left: 0; right: 0; background: #fff; border-bottom: 1px solid var(--line); flex-direction: column; padding: 14px; gap: 0; }
  .nav.open { display: flex; }
  .nav a { width: 100%; padding: 14px; }
  .services { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr; }
  .site-footer .cols { grid-template-columns: 1fr; }
  form .row { grid-template-columns: 1fr; }
  .hero .badges { gap: 18px; }
  .brand img, .brand svg { height: 30px; }
}

/* Credentials strip / pills */
.credentials {
  background: var(--ink-2);
  color: #fff;
  padding: 28px 0;
}
.credentials .row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
}
.cred-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 999px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: .92rem;
  color: #fff;
  background: rgba(255,255,255,.04);
}
.cred-pill .mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px; height: 22px;
  border-radius: 6px;
  background: var(--orange);
  color: #fff;
  font-size: .65rem;
  font-weight: 800;
}
.cred-pill small { color: var(--steel-light); font-weight: 500; margin-left: 4px; }
.cred-pill.lead { background: var(--orange); border-color: var(--orange); }
.cred-pill.lead small { color: rgba(255,255,255,.85); }

/* Inline credential ribbon on hero / service cards */
.cred-callout {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  background: rgba(238,124,26,.14);
  border: 1px solid rgba(238,124,26,.4);
  border-radius: 999px;
  color: var(--orange);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: .78rem;
  letter-spacing: .04em;
  margin-bottom: 14px;
}
.service.featured { border-color: var(--orange); box-shadow: 0 6px 22px rgba(238,124,26,.18); }
.service.featured .icon { background: var(--orange); color: #fff; }
.service .cred-tag {
  display: inline-block;
  margin-top: 8px;
  font-size: .75rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--orange);
  font-weight: 800;
  font-family: var(--font-display);
}

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