/* BKC Constructions
   Vintage blueprint design system.
   Structure is navy (trust, engineering drawings); brand red is an accent only. */

:root {
  --paper: #f4eee2;
  --paper-alt: #fbf7ef;
  --ink: #1f2a33;
  --ink-soft: #46555f;
  --navy: #1c3d5a;
  --navy-deep: #15293a;
  --red: #a3161b;
  --red-deep: #7d1015;
  --brass: #b08a48;

  --font-heading: Georgia, 'Times New Roman', Times, serif;
  --font-body: -apple-system, 'Helvetica Neue', Helvetica, Arial, sans-serif;

  --max-width: 1120px;
  --radius: 3px;
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.02rem;
  line-height: 1.7;
  background-color: var(--paper);
  background-image:
    radial-gradient(circle at 15% 10%, rgba(176, 138, 72, 0.06), transparent 40%),
    radial-gradient(circle at 85% 70%, rgba(28, 61, 90, 0.05), transparent 45%),
    repeating-linear-gradient(0deg, rgba(28, 61, 90, 0.07) 0 1px, transparent 1px 112px),
    repeating-linear-gradient(90deg, rgba(28, 61, 90, 0.07) 0 1px, transparent 1px 112px),
    repeating-linear-gradient(0deg, rgba(28, 61, 90, 0.035) 0 1px, transparent 1px 28px),
    repeating-linear-gradient(90deg, rgba(28, 61, 90, 0.035) 0 1px, transparent 1px 28px);
}

a {
  color: var(--navy);
  text-underline-offset: 3px;
}

a:hover,
a:focus-visible {
  color: var(--red);
}

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

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

/* ---------- Typography ---------- */

h1,
h2,
h3 {
  font-family: var(--font-heading);
  line-height: 1.2;
  color: var(--navy);
}

h1 {
  font-size: clamp(1.9rem, 4.6vw, 2.9rem);
  letter-spacing: 0.01em;
  margin: 0 0 1rem;
}

h2 {
  font-size: clamp(1.35rem, 2.8vw, 1.85rem);
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin: 0 0 1.25rem;
  padding-bottom: 0.55rem;
  border-bottom: 2px solid var(--brass);
}

h3 {
  font-size: 1.1rem;
  letter-spacing: 0.02em;
  margin: 0 0 0.5rem;
}

p {
  max-width: 70ch;
}

.kicker {
  font-family: var(--font-heading);
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.78rem;
  color: var(--red);
  margin: 0 0 0.75rem;
}

.lead {
  font-size: 1.12rem;
  color: var(--ink-soft);
}

/* ---------- Header ---------- */

.site-header {
  background: var(--paper-alt);
  border-bottom: 1px solid rgba(28, 61, 90, 0.18);
  box-shadow: 0 1px 0 var(--brass);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  padding-top: 0.85rem;
  padding-bottom: 0.85rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: var(--ink);
}

.brand img {
  width: 46px;
  height: 46px;
}

.brand-text {
  font-family: var(--font-heading);
  line-height: 1.2;
}

.brand-text .brand-name {
  display: block;
  font-size: 1.12rem;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--navy);
}

.brand-text .brand-tagline {
  display: block;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--ink-soft);
}

.nav-toggle-input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.nav-toggle-label {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 21px;
  cursor: pointer;
}

.nav-toggle-label span {
  display: block;
  height: 3px;
  background: var(--navy);
  border-radius: 1px;
}

.nav-toggle-input:focus-visible ~ .nav-toggle-label {
  outline: 2px solid var(--red);
  outline-offset: 4px;
}

.site-nav {
  display: none;
  width: 100%;
  order: 3;
}

.nav-toggle-input:checked ~ .site-nav {
  display: block;
}

.site-nav ul {
  list-style: none;
  margin: 0.75rem 0 0;
  padding: 0;
}

.site-nav li + li {
  border-top: 1px solid rgba(28, 61, 90, 0.12);
}

.site-nav a {
  display: block;
  padding: 0.7rem 0.1rem;
  text-decoration: none;
  font-family: var(--font-heading);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.86rem;
  color: var(--ink);
}

.site-nav a[aria-current='page'] {
  color: var(--red);
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--red);
}

/* ---------- Sections ---------- */

main section {
  padding: 3rem 0;
}

.hero {
  padding: 4rem 0 3.25rem;
  border-bottom: 1px solid rgba(28, 61, 90, 0.15);
}

.hero h1 {
  max-width: 20ch;
}

.hero .lead {
  max-width: 62ch;
}

.hero-meta {
  margin-top: 1.5rem;
  font-size: 0.86rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-family: var(--font-heading);
  color: var(--ink-soft);
}

.cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 1.75rem;
}

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

.btn {
  display: inline-block;
  padding: 0.8rem 1.6rem;
  font-family: var(--font-heading);
  font-size: 0.92rem;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  text-decoration: none;
  border: 1px solid var(--navy);
  border-radius: var(--radius);
  color: var(--navy);
  background: transparent;
  transition: background 0.15s ease, color 0.15s ease;
}

.btn:hover,
.btn:focus-visible {
  background: var(--navy);
  color: var(--paper);
}

.btn-solid {
  background: var(--red);
  border-color: var(--red);
  color: #fff;
  box-shadow: 3px 3px 0 rgba(28, 61, 90, 0.9);
}

.btn-solid:hover,
.btn-solid:focus-visible {
  background: var(--red-deep);
  border-color: var(--red-deep);
  color: #fff;
  box-shadow: 1px 1px 0 rgba(28, 61, 90, 0.9);
}

/* ---------- Stats ---------- */

.stats-band {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(10.5rem, 1fr));
  gap: 1rem;
}

.stat-tile {
  background: var(--paper-alt);
  border: 1px solid rgba(28, 61, 90, 0.2);
  border-top: 3px solid var(--navy);
  border-radius: var(--radius);
  padding: 1.4rem 1rem;
  text-align: center;
}

.stat-tile .stat-number {
  display: block;
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: bold;
  color: var(--navy);
  line-height: 1.15;
}

.stat-tile .stat-label {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--ink-soft);
}

/* ---------- Cards ---------- */

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  gap: 1.25rem;
  margin: 1.75rem 0 0;
}

.card {
  background: var(--paper-alt);
  border: 1px solid rgba(28, 61, 90, 0.2);
  border-radius: var(--radius);
  padding: 1.5rem;
}

.card h3 {
  color: var(--navy);
}

.card h3 a {
  text-decoration: none;
  color: inherit;
}

.card h3 a:hover,
.card h3 a:focus-visible {
  color: var(--red);
}

.card p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--ink-soft);
}

/* Sized globally so standalone icons outside a card are constrained too. */
svg.icon {
  width: 42px;
  height: 42px;
  display: block;
  color: var(--navy);
  margin-bottom: 0.9rem;
}

.card svg.icon {
  width: 36px;
  height: 36px;
  margin-bottom: 0.75rem;
}

/* ---------- Service entries ---------- */

.service {
  display: grid;
  gap: 1rem;
  padding: 2.25rem 0;
  border-bottom: 1px solid rgba(28, 61, 90, 0.15);
}

.service:last-of-type {
  border-bottom: none;
}

.service h2 {
  border-bottom: none;
  padding-bottom: 0;
  margin-bottom: 0;
  font-size: clamp(1.2rem, 2.4vw, 1.5rem);
}

.service svg.icon {
  margin-bottom: 0;
}

/* ---------- Seal badge (square box keeps the circle true) ---------- */

.seal-badge {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 7.5rem;
  height: 7.5rem;
  border: 2px solid var(--red);
  outline: 1px solid var(--red);
  outline-offset: 4px;
  border-radius: 50%;
  font-family: var(--font-heading);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.72rem;
  line-height: 1.5;
  text-align: center;
  color: var(--red);
  transform: rotate(-5deg);
  margin: 1.25rem 0;
  max-width: none;
}

/* ---------- FAQ ---------- */

details {
  background: var(--paper-alt);
  border: 1px solid rgba(28, 61, 90, 0.2);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  margin-bottom: 0.75rem;
}

summary {
  cursor: pointer;
  font-family: var(--font-heading);
  font-size: 1rem;
  letter-spacing: 0.02em;
  color: var(--navy);
}

summary:hover {
  color: var(--red);
}

details[open] summary {
  margin-bottom: 0.6rem;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid rgba(28, 61, 90, 0.15);
}

details p:last-child {
  margin-bottom: 0;
}

/* ---------- Steps ---------- */

.step-number {
  display: block;
  font-family: var(--font-heading);
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 0.35rem;
}

/* ---------- CTA band ---------- */

.cta-band {
  background: var(--navy);
  color: var(--paper);
  border-radius: var(--radius);
  padding: 2.25rem 1.75rem;
  margin-top: 1rem;
}

.cta-band h2 {
  color: var(--paper);
  border-bottom-color: rgba(176, 138, 72, 0.7);
}

.cta-band p {
  color: rgba(244, 238, 226, 0.88);
}

.cta-band .btn {
  border-color: var(--paper);
  color: var(--paper);
}

.cta-band .btn:hover,
.cta-band .btn:focus-visible {
  background: var(--paper);
  color: var(--navy);
}

.cta-band .btn-solid {
  background: var(--red);
  border-color: var(--red);
  color: #fff;
  box-shadow: 3px 3px 0 rgba(0, 0, 0, 0.35);
}

.cta-band .btn-solid:hover,
.cta-band .btn-solid:focus-visible {
  background: var(--red-deep);
  border-color: var(--red-deep);
  color: #fff;
}

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

.site-footer {
  background: var(--navy-deep);
  color: rgba(244, 238, 226, 0.85);
  padding: 3rem 0 1.5rem;
  margin-top: 1rem;
  border-top: 4px solid var(--red);
}

.site-footer a {
  color: var(--paper);
}

.site-footer a:hover,
.site-footer a:focus-visible {
  color: #fff;
}

.site-footer p {
  font-size: 0.92rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr));
  gap: 2rem;
}

.footer-grid h3 {
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.85rem;
  margin-bottom: 0.8rem;
}

.footer-grid ul {
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.92rem;
}

.footer-grid li {
  margin-bottom: 0.45rem;
}

.site-footer .seal-badge {
  border-color: var(--paper);
  outline-color: rgba(244, 238, 226, 0.55);
  color: var(--paper);
}

.footer-bottom {
  border-top: 1px solid rgba(244, 238, 226, 0.2);
  margin-top: 2rem;
  padding-top: 1.25rem;
  font-size: 0.8rem;
  text-align: center;
  color: rgba(244, 238, 226, 0.7);
  max-width: none;
}

/* ---------- Responsive ---------- */

@media (min-width: 900px) {
  .nav-toggle-label {
    display: none;
  }

  .site-nav {
    display: block;
    width: auto;
    order: 2;
  }

  .site-nav ul {
    display: flex;
    gap: 1.9rem;
    margin: 0;
  }

  .site-nav li + li {
    border-top: none;
  }

  .site-nav a {
    padding: 0.3rem 0;
  }

  .service {
    grid-template-columns: 56px 1fr;
    column-gap: 1.75rem;
    align-items: start;
  }

  .service h2,
  .service p {
    grid-column: 2;
  }

  .service svg.icon {
    grid-row: span 2;
  }

  .cta-band {
    padding: 2.75rem 2.5rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  * {
    transition: none !important;
  }
}
