/* =========================================================
   Kevcor Contracting — Design System
   ========================================================= */

:root {
  --red: #DC1E26;
  --red-deep: #A3151A;
  --dark: #20262A;
  --dark-2: #171C1F;
  --charcoal: #424D52;
  --slate: #6E787C;
  --line: #E2E5E6;
  --light: #F4F5F6;
  --white: #FFFFFF;

  --font-head: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-body: 'Montserrat', -apple-system, Segoe UI, Arial, sans-serif;

  --container: 1180px;
  --radius: 4px;
  --shadow-sm: 0 1px 3px rgba(32, 38, 42, 0.08);
  --shadow-md: 0 8px 28px rgba(32, 38, 42, 0.14);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--charcoal);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 700;
  color: var(--charcoal);
  margin: 0 0 0.5em;
  line-height: 1.15;
}

p { margin: 0 0 1em; }

ul { margin: 0; padding: 0; list-style: none; }

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

/* ---------- Kickers / eyebrow labels ---------- */
.kicker {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 14px;
}
.kicker--on-dark { color: #F0898D; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.5px;
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
}
.btn img { width: 14px; height: 14px; }
.btn:hover { transform: translateY(-1px); }

.btn--primary {
  background: var(--red);
  color: var(--white);
}
.btn--primary:hover { background: var(--red-deep); }

.btn--ghost-light {
  border-color: rgba(255,255,255,0.55);
  color: var(--white);
}
.btn--ghost-light:hover { border-color: var(--white); background: rgba(255,255,255,0.08); }

.btn--ghost-dark {
  border-color: var(--charcoal);
  color: var(--charcoal);
}
.btn--ghost-dark:hover { background: var(--charcoal); color: var(--white); }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--line);
  transition: box-shadow 0.2s ease;
}
.site-header.is-scrolled { box-shadow: var(--shadow-sm); }
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 84px;
}
.nav__logo img { height: 40px; width: auto; }
.nav__links {
  display: flex;
  align-items: center;
  gap: 34px;
}
.nav__links a {
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  color: var(--charcoal);
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.nav__links a:hover,
.nav__links a[aria-current="page"] {
  color: var(--red);
  border-color: var(--red);
}
.nav__cta {
  display: flex;
  align-items: center;
  gap: 18px;
}
.nav__phone {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--charcoal);
}
.nav__phone img { width: 14px; height: 14px; }
.nav__toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav__toggle img { width: 22px; height: 22px; }

.mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 200;
  background: var(--dark);
  padding: 28px 24px;
}
.mobile-menu.is-open { display: block; }
.mobile-menu__top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 40px;
}
.mobile-menu__top img.logo { height: 34px; }
.mobile-menu__close { background: none; border: none; cursor: pointer; }
.mobile-menu__close img { width: 22px; height: 22px; }
.mobile-menu a {
  display: block;
  font-family: var(--font-head);
  font-size: 26px;
  font-weight: 700;
  color: var(--white);
  padding: 14px 0;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.mobile-menu__contact {
  margin-top: 30px;
  color: #B9C0C2;
  font-size: 14px;
}
.mobile-menu__contact a { color: var(--white); font-weight: 600; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: var(--dark);
  color: var(--white);
  overflow: hidden;
}
.hero__bg-illustration {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center bottom;
  opacity: 0.9;
}
.hero__scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(32,38,42,0.97) 0%, rgba(32,38,42,0.90) 42%, rgba(32,38,42,0.55) 75%, rgba(32,38,42,0.35) 100%);
}
.hero__grid {
  position: absolute;
  inset: 0;
  background-image: url('../assets/images/blueprint-grid.svg');
  opacity: 0.5;
}
.hero__content {
  position: relative;
  padding: 130px 0 110px;
  max-width: 680px;
}
.hero--page .hero__content { padding: 76px 0 68px; max-width: 720px; }
.hero__title {
  color: var(--white);
  font-size: 48px;
  margin-bottom: 20px;
}
.hero--page .hero__title { font-size: 40px; }
.hero__lede {
  font-size: 17px;
  color: #CBD1D2;
  max-width: 560px;
  margin-bottom: 32px;
  line-height: 1.55;
}
.hero__actions { display: flex; gap: 16px; flex-wrap: wrap; }
.hero__tags {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 28px;
  position: relative;
}
.hero__tag {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #CBD1D2;
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 20px;
  padding: 7px 14px;
}

/* ---------- Section shells ---------- */
.section { padding: 88px 0; }
.section--tight { padding: 64px 0; }
.section--light { background: var(--light); }
.section--dark { background: var(--dark); color: var(--white); }
.section--dark h2, .section--dark h3 { color: var(--white); }
.section--dark p { color: #CBD1D2; }
.section__head { max-width: 720px; margin-bottom: 48px; }
.section__head--center { margin-left: auto; margin-right: auto; text-align: center; }
.section__title { font-size: 34px; }
.section__lede { font-size: 16px; color: var(--slate); }
.section--dark .section__lede { color: #CBD1D2; }

/* ---------- Icon circle ---------- */
.icon-circle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--red);
  flex-shrink: 0;
}
.icon-circle img { width: 46%; height: 46%; }
.icon-circle--sm { width: 44px; height: 44px; }
.icon-circle--md { width: 60px; height: 60px; }
.icon-circle--lg { width: 78px; height: 78px; }
.icon-circle--dark { background: var(--dark); }
.icon-circle--outline { background: transparent; border: 2px solid var(--red); }

/* ---------- Cards ---------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.card-grid--2 { grid-template-columns: repeat(2, 1fr); }
.card-grid--4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--light);
  padding: 36px 30px;
  border-radius: var(--radius);
}
.card__icon { margin-bottom: 22px; }
.card__title { font-size: 18px; margin-bottom: 10px; }
.card__body { font-size: 14px; color: var(--slate); margin: 0; }

.card--bordered {
  background: var(--white);
  border: 1px solid var(--line);
}

/* ---------- Fact strip ---------- */
.fact-strip {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.fact-strip__inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding-left: 0;
  padding-right: 0;
}
.fact-strip__inner--3 { grid-template-columns: repeat(3, 1fr); }
.fact-strip__item {
  padding: 30px 24px;
  border-left: 1px solid var(--line);
  text-align: left;
}
.fact-strip__item:first-child { border-left: none; }
.fact-strip__label {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--slate);
  margin-bottom: 8px;
}
.fact-strip__value { font-family: var(--font-head); font-size: 20px; font-weight: 700; color: var(--charcoal); }

/* ---------- Split section (text + illustration) ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.split__media {
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--dark);
}
.split__media img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Pillars (icon top, centered) ---------- */
.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}
.pillars--2 {
  grid-template-columns: repeat(2, 1fr);
  max-width: 640px;
  margin: 0 auto;
}
.pillar { text-align: center; }
.pillar .icon-circle { margin: 0 auto 22px; }
.pillar__title { font-size: 18px; margin-bottom: 10px; }
.pillar__body { font-size: 14px; color: var(--slate); }
.section--dark .pillar__body { color: #CBD1D2; }

/* ---------- Field photo strip (Home) ---------- */
.field-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.field-photo {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--dark);
}
.field-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}
.field-photo:hover img { transform: scale(1.04); }
.field-photo__label {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 16px 16px 13px;
  background: linear-gradient(to top, rgba(23,28,31,0.88), rgba(23,28,31,0));
  color: var(--white);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.3px;
}

/* ---------- Photo grid (Projects gallery) ---------- */
.photo-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 26px;
}
.photo-card {
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--line);
}
.photo-card__img { aspect-ratio: 16 / 10; overflow: hidden; background: var(--dark); }
.photo-card__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.photo-card__cap { padding: 18px 20px 20px; }
.photo-card__cap h3 { font-size: 15.5px; margin-bottom: 5px; }
.photo-card__cap p { font-size: 13px; color: var(--slate); margin: 0; }

/* ---------- Timeline / numbered list rows ---------- */
.item-row {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  padding: 26px 0;
  border-top: 1px solid var(--line);
}
.item-row:last-child { border-bottom: 1px solid var(--line); }
.item-row__title { font-size: 17px; margin-bottom: 6px; }
.item-row__body { font-size: 14px; color: var(--slate); margin: 0; }

/* ---------- Tag pills ---------- */
.pill-list { display: flex; flex-direction: column; gap: 12px; }
.pill {
  background: var(--light);
  padding: 14px 18px;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 13.5px;
  color: var(--charcoal);
}

/* ---------- CTA band ---------- */
.cta-band {
  background: var(--dark);
  color: var(--white);
  padding: 64px 0;
  position: relative;
  overflow: hidden;
}
.cta-band__wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  position: relative;
}
.cta-band h2 { color: var(--white); font-size: 28px; margin-bottom: 6px; }
.cta-band p { color: #CBD1D2; margin: 0; }
.cta-band__mark {
  position: absolute;
  right: -40px;
  top: 50%;
  transform: translateY(-50%);
  width: 260px;
  opacity: 0.08;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--dark-2);
  color: #AEB4B6;
  padding: 64px 0 28px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer-grid img.logo { height: 34px; margin-bottom: 16px; filter: brightness(0) invert(1); }
.footer-grid p { font-size: 13.5px; color: #8B9295; max-width: 320px; }
.footer-col__title {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 18px;
}
.footer-col a, .footer-col span {
  display: block;
  font-size: 14px;
  color: #AEB4B6;
  padding: 6px 0;
}
.footer-col a:hover { color: var(--white); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  font-size: 12.5px;
  color: #6B7478;
  flex-wrap: wrap;
  gap: 10px;
}

/* ---------- Forms ---------- */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.form-field { display: flex; flex-direction: column; gap: 8px; }
.form-field--full { grid-column: 1 / -1; }
.form-field label {
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--charcoal);
}
.form-field input,
.form-field select,
.form-field textarea {
  font-family: var(--font-body);
  font-size: 14.5px;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--charcoal);
}
.form-field textarea { resize: vertical; min-height: 120px; }
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--red);
}
.form-note { font-size: 12.5px; color: var(--slate); margin-top: 14px; }

/* ---------- Map frame ---------- */
.map-frame {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  height: 100%;
  min-height: 380px;
}
.map-frame iframe { width: 100%; height: 100%; min-height: 380px; border: 0; display: block; }

/* ---------- Utility ---------- */
.mt-0 { margin-top: 0; }
.text-center { text-align: center; }
.eyebrow-divider {
  width: 56px;
  height: 3px;
  background: var(--red);
  margin: 18px 0 24px;
}

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 980px) {
  .nav__links, .nav__phone { display: none; }
  .nav__toggle { display: inline-flex; }
  .card-grid, .card-grid--4 { grid-template-columns: repeat(2, 1fr); }
  .pillars, .pillars--2 { grid-template-columns: 1fr; gap: 30px; }
  .field-strip { grid-template-columns: 1fr 1fr; }
  .photo-grid { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr; gap: 36px; }
  .fact-strip__inner { grid-template-columns: repeat(2, 1fr); }
  .fact-strip__item:nth-child(odd) { border-left: none; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .form-grid { grid-template-columns: 1fr; }
  .hero__title { font-size: 38px; }
  .hero--page .hero__title { font-size: 32px; }
  .section__title { font-size: 28px; }
}

@media (max-width: 600px) {
  .card-grid, .card-grid--2, .card-grid--4 { grid-template-columns: 1fr; }
  .field-strip { grid-template-columns: 1fr; }
  .fact-strip__inner { grid-template-columns: 1fr; }
  .fact-strip__item { border-left: none; border-top: 1px solid var(--line); }
  .fact-strip__item:first-child { border-top: none; }
  .section { padding: 60px 0; }
  .hero__content { padding: 96px 0 64px; }
  .cta-band__wrap { flex-direction: column; align-items: flex-start; }
}
