:root {
  /* Required tokens per bcd_standards.md */
  --color-primary: #17344F;    /* navy — sampled from the Ironclad shield logo */
  --color-secondary: #63ADF2;  /* sky blue — sampled from the logo's water-drop mark */
  --color-accent: #B5652D;     /* copper — the one deliberate departure: actual pipe/fitting material */
  --color-text: #171F26;
  --color-bg: #ffffff;

  /* Extended palette built from the required tokens above */
  --color-navy-deep: #0E212F;
  --color-steel: #4C6B85;
  --color-accent-blue: #106EC6;
  --color-copper-deep: #8A4C1F;
  --color-copper-tint: #F3E4D6;
  --color-mist: #F2F6F9;
  --color-line: #DCE3E9;

  --font-heading: "Archivo", system-ui, sans-serif;
  --font-body: "Public Sans", system-ui, sans-serif;

  --container-width: 1160px;
}

/* ---------- Base ---------- */

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.55;
}

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.01em;
  margin: 0 0 0.6em;
  color: var(--color-navy-deep);
}

h1 { font-size: clamp(2.1rem, 4.4vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); }
h3 { font-size: 1.2rem; }

p { margin: 0 0 1em; }

a { color: var(--color-accent-blue); }
a:focus-visible, button:focus-visible, .button:focus-visible, summary:focus-visible {
  outline: 3px solid var(--color-accent-blue);
  outline-offset: 2px;
}

main { display: block; }

ul { padding-left: 1.2em; }

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

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}

/* ---------- Layout helpers ---------- */

.section__inner {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 4.5rem 1.5rem;
}

.section__inner--narrow { max-width: 760px; }

.section--mist { background: var(--color-mist); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--color-accent-blue);
  margin: 0 0 0.9rem;
}

.eyebrow svg { width: 16px; height: 16px; }
.eyebrow--on-dark { color: var(--color-secondary); }
.eyebrow--on-copper { color: #fff; }

/* ---------- Buttons ---------- */

.button {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.98rem;
  text-decoration: none;
  padding: 0.85rem 1.5rem;
  border-radius: 3px;
  border: 2px solid transparent;
  cursor: pointer;
  white-space: nowrap;
}

.button svg { width: 18px; height: 18px; flex-shrink: 0; }

.button--copper { background: var(--color-accent); color: #fff; }
.button--copper:hover { background: var(--color-copper-deep); }

.button--light { background: #fff; color: var(--color-copper-deep); }
.button--light:hover { background: var(--color-copper-tint); }

.button--outline-light { background: transparent; color: #fff; border-color: rgba(255,255,255,0.55); }
.button--outline-light:hover { border-color: #fff; background: rgba(255,255,255,0.08); }

.button--outline-copper { background: transparent; color: var(--color-accent); border-color: var(--color-accent); }
.button--outline-copper:hover { background: var(--color-copper-tint); }

.button--large { padding: 1rem 1.9rem; font-size: 1.05rem; }
.button--block { width: 100%; justify-content: center; }

/* ---------- Nav ---------- */

.site-nav {
  background: var(--color-navy-deep);
  position: relative;
}

.site-nav__inner {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  min-height: 76px;
}

.site-nav__brand {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
  text-decoration: none;
  font-family: var(--font-heading);
  flex-shrink: 0;
}

.site-nav__brand-line1 {
  font-weight: 900;
  font-size: 1.25rem;
  letter-spacing: 0.02em;
  color: #fff;
}

.site-nav__brand-line2 {
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  color: var(--color-secondary);
}

.site-nav nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.75rem;
  margin-left: auto;
}

.site-nav nav a {
  color: #E8EEF3;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
}

.site-nav nav a:hover { color: #fff; }

.site-nav__cta {
  background: var(--color-accent);
  color: #fff;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.1rem;
  border-radius: 3px;
  text-decoration: none;
  font-weight: 700;
  font-family: var(--font-heading);
  white-space: nowrap;
  flex-shrink: 0;
}

.site-nav__cta svg { width: 16px; height: 16px; }
.site-nav__cta:hover { background: var(--color-copper-deep); }
.site-nav__cta--mobile { display: none; }

.nav-toggle { display: none; }

.nav-toggle-btn {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  cursor: pointer;
  flex-shrink: 0;
}

.nav-toggle-btn span {
  display: block;
  width: 100%;
  height: 3px;
  border-radius: 2px;
  background: #fff;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle:checked ~ .nav-toggle-btn span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle:checked ~ .nav-toggle-btn span:nth-child(2) { opacity: 0; }
.nav-toggle:checked ~ .nav-toggle-btn span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

@media (max-width: 860px) {
  .site-nav__inner { flex-wrap: nowrap; }
  .nav-toggle-btn { display: flex; order: 2; }
  .site-nav__cta--desktop { display: none; }
  .site-nav__cta--mobile { display: inline-flex; margin: 0.5rem 0 0.25rem; }

  .site-nav nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    margin-left: 0;
    background: var(--color-navy-deep);
    padding: 0.25rem 1.5rem 1.25rem;
    z-index: 20;
  }

  .nav-toggle:checked ~ nav { display: flex; }

  .site-nav nav a {
    padding: 0.9rem 0;
    border-top: 1px solid rgba(255,255,255,0.12);
    min-height: 44px;
    display: flex;
    align-items: center;
  }
}

/* ---------- Hero (home) ---------- */

.hero {
  background: linear-gradient(180deg, var(--color-navy-deep) 0%, var(--color-primary) 100%);
  color: #fff;
  overflow: hidden;
}

.hero__inner {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 4rem 1.5rem 5rem;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 3rem;
  align-items: center;
}

.hero h1 { color: #fff; margin-bottom: 0.5rem; }

.hero__subtitle {
  font-size: 1.15rem;
  color: #C9D8E4;
  max-width: 46ch;
  margin-bottom: 1.75rem;
}

.hero__actions { display: flex; flex-wrap: wrap; gap: 1rem; }
.hero__actions--center { justify-content: center; }

.hero__media { position: relative; }

.hero__image {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 4px;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 12% 100%);
}

.tag-badge {
  position: absolute;
  bottom: -18px;
  left: -18px;
  background: var(--color-accent);
  color: #fff;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.85rem 1.15rem;
  border-radius: 3px;
  transform: rotate(-4deg);
  box-shadow: 0 12px 24px rgba(0,0,0,0.28);
}

.tag-badge__icon svg { width: 26px; height: 26px; display: block; }

.tag-badge__text {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  line-height: 1.25;
}

@media (max-width: 860px) {
  .hero__inner { grid-template-columns: 1fr; padding: 2.75rem 1.5rem 3.5rem; }
  .hero__media { order: -1; max-width: 360px; margin: 0 auto; }
  .tag-badge { left: 12px; bottom: -14px; }
}

/* ---------- Trust strip ---------- */

.trust-strip { background: #fff; border-bottom: 1px solid var(--color-line); }

.trust-strip__inner {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 1.75rem 1.5rem;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.trust-strip__item {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.5rem 1.25rem;
  font-weight: 600;
  font-size: 0.92rem;
  border-left: 1px solid var(--color-line);
}

.trust-strip__item:first-child { border-left: none; }
.trust-strip__item svg { width: 22px; height: 22px; color: var(--color-accent); flex-shrink: 0; }

@media (max-width: 860px) {
  .trust-strip__inner { grid-template-columns: 1fr 1fr; gap: 1rem 0; }
  .trust-strip__item { border-left: none; padding: 0.35rem 0.5rem; }
}

/* ---------- Home intro ---------- */

.home-intro { text-align: center; }
.home-intro ul { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; gap: 0.6rem; text-align: left; max-width: 480px; margin-inline: auto; }
.home-intro li { padding-left: 1.6em; position: relative; font-weight: 600; }
.home-intro li::before { content: ""; position: absolute; left: 0; top: 0.45em; width: 8px; height: 8px; background: var(--color-accent); }

/* ---------- Feature grid (services) ---------- */

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  margin-top: 2.25rem;
}

.feature-card {
  background: #fff;
  border: 1px solid var(--color-line);
  padding: 1.75rem 1.5rem;
  text-decoration: none;
  color: var(--color-text);
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  transition: border-color 0.15s ease, transform 0.15s ease;
}

.feature-card:hover { border-color: var(--color-accent); transform: translateY(-2px); }

.feature-card__icon {
  width: 46px;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-navy-deep);
  color: var(--color-secondary);
  margin-bottom: 0.5rem;
}

.feature-card__icon svg { width: 24px; height: 24px; }

.feature-card__title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.02rem;
  color: var(--color-navy-deep);
}

.feature-card__blurb { font-size: 0.9rem; color: var(--color-steel); }

@media (max-width: 960px) { .feature-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .feature-grid { grid-template-columns: 1fr; } }

/* ---------- Emergency band ---------- */

.emergency-band { background: var(--color-copper-deep); color: #fff; }

.emergency-band__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
  padding-top: 3.25rem;
  padding-bottom: 3.25rem;
}

.emergency-band h2 { color: #fff; margin-bottom: 0.5rem; }
.emergency-band p { color: #F3E4D6; max-width: 52ch; margin-bottom: 0; }
.emergency-band .button--light { flex-shrink: 0; }

/* ---------- Testimonials ---------- */

.testimonial-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-top: 2rem;
}

.testimonial {
  margin: 0;
  padding: 2rem 2rem 1.5rem;
  background: var(--color-mist);
  border-left: 4px solid var(--color-accent);
}

.testimonial p {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--color-navy-deep);
  margin-bottom: 0.75rem;
}

.testimonial cite { font-style: normal; font-weight: 600; color: var(--color-steel); font-size: 0.9rem; }

@media (max-width: 700px) { .testimonial-grid { grid-template-columns: 1fr; } }

/* ---------- Service area band + chips ---------- */

.area-band { background: var(--color-navy-deep); color: #fff; }
.area-band h2 { color: #fff; }
.area-band__intro { color: #C9D8E4; max-width: 60ch; }

.area-chip-list {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.area-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.2);
  color: #fff;
  text-decoration: none;
  padding: 0.6rem 1rem;
  font-weight: 600;
  font-size: 0.92rem;
}

.area-chip svg { width: 15px; height: 15px; color: var(--color-secondary); }
.area-chip:hover { background: var(--color-accent); border-color: var(--color-accent); }

/* ---------- CTA banner ---------- */

.cta-banner { text-align: center; }
.cta-banner__inner { max-width: 640px; }
.cta-banner p { color: var(--color-steel); }

/* ---------- Page (simple pages: about, contact, pricing) ---------- */

.page__hero {
  background: linear-gradient(180deg, var(--color-navy-deep) 0%, var(--color-primary) 100%);
  color: #fff;
}

.page__hero-inner {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 3.25rem 1.5rem;
}

.page__hero h1 { color: #fff; margin-bottom: 0; }

.page__body {
  max-width: 760px;
  margin: 0 auto;
  padding: 3.5rem 1.5rem;
}

.page__body h2 { margin-top: 1.75rem; }
.page__body-cta { margin-top: 2.5rem; }
.page__body ul { display: grid; gap: 0.5rem; padding-left: 1.1em; }
.page__body img, .post__body img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  margin: 0.5rem 0 2rem;
}

.listing__subtitle { font-size: 1.05rem; color: #C9D8E4; margin: 0.5rem 0 0; max-width: 56ch; }

/* ---------- Listing pages (services, service-areas) ---------- */

.listing__hero {
  background: linear-gradient(180deg, var(--color-navy-deep) 0%, var(--color-primary) 100%);
  color: #fff;
}

.listing__hero-inner {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 3.25rem 1.5rem;
}

.listing__hero h1 { color: #fff; }
.listing__hero .button { margin-top: 1.5rem; }

.listing__main {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 3.5rem 1.5rem;
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 3rem;
  align-items: start;
}

.listing__body img.listing__image {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  margin-bottom: 1.75rem;
}

.listing__body ul { display: grid; gap: 0.5rem; }

.trust-card {
  background: var(--color-mist);
  border: 1px solid var(--color-line);
  padding: 1.75rem;
  position: sticky;
  top: 1.5rem;
}

.trust-card__heading {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--color-navy-deep);
  margin-bottom: 1rem;
}

.trust-card__heading svg { width: 18px; height: 18px; color: var(--color-accent); }

.trust-card__list {
  list-style: none;
  padding: 0;
  margin: 0 0 1.25rem;
  display: grid;
  gap: 0.75rem;
  font-size: 0.9rem;
  font-weight: 600;
}

.trust-card__list li { display: flex; align-items: center; gap: 0.6rem; }
.trust-card__list svg { width: 18px; height: 18px; color: var(--color-accent-blue); flex-shrink: 0; }

@media (max-width: 900px) {
  .listing__main { grid-template-columns: 1fr; }
  .trust-card { position: static; }
}

/* ---------- Related strip ---------- */

.related-strip {
  background: var(--color-mist);
  border-top: 1px solid var(--color-line);
  padding: 3rem 1.5rem;
}

.related-strip__label {
  max-width: var(--container-width);
  margin: 0 auto 1rem;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-steel);
}

.related-strip__list {
  max-width: var(--container-width);
  margin: 0 auto;
  list-style: none;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.related-strip__list a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #fff;
  border: 1px solid var(--color-line);
  color: var(--color-text);
  text-decoration: none;
  padding: 0.6rem 1rem;
  font-weight: 600;
  font-size: 0.9rem;
}

.related-strip__list svg { width: 16px; height: 16px; color: var(--color-accent); }
.related-strip__list a:hover { border-color: var(--color-accent); color: var(--color-accent); }

/* ---------- FAQ (native details/summary, zero JS) ---------- */

.faq { max-width: 760px; margin: 2rem auto 0; display: grid; gap: 0.75rem; }

.faq__item {
  border: 1px solid var(--color-line);
  background: #fff;
}

.faq__item summary {
  padding: 1.1rem 1.4rem;
  font-family: var(--font-heading);
  font-weight: 700;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after { content: "+"; font-size: 1.4rem; color: var(--color-accent); line-height: 1; }
.faq__item[open] summary::after { content: "\2212"; }
.faq__item p { padding: 0 1.4rem 1.2rem; margin: 0; color: var(--color-steel); }

/* ---------- Blog ---------- */

.post-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-top: 1rem;
}

.post-card {
  background: #fff;
  border: 1px solid var(--color-line);
  padding: 1.75rem;
  text-decoration: none;
  color: var(--color-text);
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.post-card:hover { border-color: var(--color-accent); }

.post-card__date { font-size: 0.8rem; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; color: var(--color-steel); }
.post-card__title { font-family: var(--font-heading); font-weight: 700; font-size: 1.2rem; color: var(--color-navy-deep); }
.post-card__excerpt { font-size: 0.92rem; color: var(--color-steel); }
.post-card__link { font-weight: 700; color: var(--color-accent-blue); margin-top: 0.5rem; }

@media (max-width: 700px) { .post-grid { grid-template-columns: 1fr; } }

.post-hero {
  background: linear-gradient(180deg, var(--color-navy-deep) 0%, var(--color-primary) 100%);
  color: #fff;
}

.post-hero__inner { max-width: 760px; margin: 0 auto; padding: 3.25rem 1.5rem 2.5rem; }
.post-hero h1 { color: #fff; margin-bottom: 0; }

.post__body { padding-top: 3rem; padding-bottom: 3rem; }
.post__body blockquote {
  margin: 0 0 1.25rem;
  padding-left: 1rem;
  border-left: 4px solid var(--color-accent);
  color: var(--color-navy-deep);
  font-style: italic;
}

/* ---------- Contact form placeholder ---------- */

.form-placeholder {
  border: 2px dashed var(--color-line);
  background: var(--color-mist);
  padding: 2rem;
  text-align: center;
  color: var(--color-steel);
  font-weight: 600;
}

/* ---------- Footer ---------- */

.site-footer { background: var(--color-navy-deep); color: #C9D8E4; }

.site-footer__main {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 3.5rem 1.5rem 2.5rem;
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1fr;
  gap: 2rem;
}

.site-footer__logo { width: 160px; height: auto; margin-bottom: 1rem; }
.site-footer__tagline { font-size: 0.9rem; max-width: 26ch; }

.site-footer__social {
  display: inline-flex;
  color: #C9D8E4;
  margin-top: 0.5rem;
}
.site-footer__social svg { width: 20px; height: 20px; }
.site-footer__social:hover { color: var(--color-secondary); }

.site-footer__heading {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 0.9rem;
}

.site-footer__col p { margin: 0 0 0.6rem; font-size: 0.92rem; }
.site-footer__col a { color: #C9D8E4; text-decoration: none; }
.site-footer__col a:hover { color: #fff; }

.site-footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding: 1.25rem 1.5rem;
  max-width: var(--container-width);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-size: 0.85rem;
}

.site-footer__bottom a { color: #C9D8E4; }
.site-footer__bottom a:hover { color: #fff; }

@media (max-width: 860px) {
  .site-footer__main { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .site-footer__main { grid-template-columns: 1fr; }
  .site-footer__bottom { flex-direction: column; text-align: center; }
}
