/* FK Construct website
   Charcoal and warm off-white with a red accent. */

:root {
  --charcoal: #121416;
  --charcoal-2: #1b1e21;
  --ink: #0b0c0d;
  --line: #2c3035;
  --paper: #f2efea;
  --white: #ffffff;
  --stone: #d8d3cb;
  --muted: #b9b4ac;
  --text-dark: #15171a;
  --text-dark-muted: #45484c;

  --red: #c0262d;        /* fills: buttons, logo mark, rules */
  --red-dark: #a81f26;   /* hover fills, red text on light backgrounds */
  --red-light: #ef5a5f;  /* red text on dark backgrounds */

  --font-display: "Barlow Condensed", "Arial Narrow", sans-serif;
  --font-body: "IBM Plex Sans", "Segoe UI", system-ui, -apple-system, sans-serif;

  --gutter: clamp(20px, 4vw, 32px);
  --max: 1280px;
  --section: clamp(64px, 9vw, 112px);
}

*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--charcoal);
  color: var(--paper);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--paper); transition: color .15s ease, background-color .15s ease, border-color .15s ease; }
a:hover { color: var(--red-light); }

:focus-visible { outline: 3px solid var(--red-light); outline-offset: 3px; }
.light :focus-visible { outline-color: var(--red-dark); }

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 20;
  padding: 12px 18px; background: var(--paper); color: var(--charcoal);
  font-weight: 600; text-decoration: none;
}
.skip-link:focus { top: 16px; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }

/* ---------- Header & navigation ---------- */
.site-header { position: relative; z-index: 5; }
.site-header.solid { background: var(--charcoal); border-bottom: 1px solid var(--line); }

.header-inner {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 12px 32px; padding-top: 24px; padding-bottom: 24px;
}

.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.brand:hover { color: var(--paper); }

.brand-mark {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; background: var(--red); color: var(--white);
  font-family: var(--font-display); font-weight: 700; font-size: 24px; letter-spacing: .02em;
}

.brand-name {
  font-family: var(--font-display); font-weight: 700; font-size: 26px;
  letter-spacing: .12em; text-transform: uppercase;
}

.site-nav ul {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: wrap; align-items: center; gap: 4px 28px;
}
.site-nav a { display: inline-block; padding: 10px 0; text-decoration: none; font-weight: 500; font-size: .95rem; }
.site-nav a[aria-current="page"] { color: var(--paper); box-shadow: inset 0 -2px 0 var(--red); }
.site-nav .nav-cta { padding: 10px 20px; background: var(--red); color: var(--white); font-weight: 600; }
.site-nav .nav-cta:hover { background: var(--red-dark); color: var(--white); }
.site-nav .nav-cta[aria-current="page"] { box-shadow: none; }

/* ---------- Shared type ---------- */
.kicker {
  margin: 0; display: flex; align-items: center; gap: 14px;
  color: var(--red-light); font-size: .875rem; font-weight: 600;
  letter-spacing: .18em; text-transform: uppercase;
}
.kicker::before { content: ""; display: inline-block; width: 40px; height: 2px; background: var(--red); }
.light .kicker { color: var(--red-dark); }

h1, h2, h3 { font-family: var(--font-display); font-weight: 700; text-transform: uppercase; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(3rem, 7vw, 6rem); line-height: .92; }
h2 { font-size: clamp(2.3rem, 4.5vw, 3.5rem); line-height: 1; }
h3 { font-size: clamp(1.6rem, 2.4vw, 1.9rem); line-height: 1.05; }

.lead { margin: 0; max-width: 560px; font-size: clamp(1.05rem, 1.6vw, 1.19rem); color: var(--stone); }
.light .lead { color: var(--text-dark-muted); }

/* ---------- Buttons ---------- */
.actions { display: flex; flex-wrap: wrap; gap: 14px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 14px 28px; font: inherit; font-weight: 600; font-size: 1rem;
  text-decoration: none; border: 1px solid transparent; cursor: pointer;
}
.btn-primary { background: var(--red); border-color: var(--red); color: var(--white); }
.btn-primary:hover { background: var(--red-dark); border-color: var(--red-dark); color: var(--white); }
.btn-outline { border-color: var(--paper); color: var(--paper); background: transparent; }
.btn-outline:hover { background: var(--paper); color: var(--charcoal); }
.light .btn-outline { border-color: var(--text-dark); color: var(--text-dark); }
.light .btn-outline:hover { background: var(--text-dark); color: var(--paper); }

/* ---------- Home (holding page) ---------- */
.home {
  min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column;
  background-color: var(--charcoal);
  background-image:
    linear-gradient(90deg, rgba(18,20,22,.95) 0%, rgba(18,20,22,.85) 42%, rgba(18,20,22,.35) 72%, rgba(18,20,22,.15) 100%),
    url("../images/hero.jpg");
  background-image:
    linear-gradient(90deg, rgba(18,20,22,.95) 0%, rgba(18,20,22,.85) 42%, rgba(18,20,22,.35) 72%, rgba(18,20,22,.15) 100%),
    image-set(url("../images/hero.webp") type("image/webp"), url("../images/hero.jpg") type("image/jpeg"));
  background-size: cover; background-position: center 30%;
}
.home .hero { flex: 1 1 auto; display: flex; align-items: center; padding: 40px 0 80px; }
.hero-content { max-width: 660px; display: flex; flex-direction: column; gap: 28px; }

.tags { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.tags li {
  border: 1px solid rgba(242,239,234,.35); padding: 8px 16px;
  font-family: var(--font-display); font-weight: 600; font-size: 18px;
  letter-spacing: .1em; text-transform: uppercase;
}

/* ---------- Inner page banner ---------- */
.page-banner {
  background-color: var(--charcoal);
  background-size: cover; background-position: center 35%;
  border-bottom: 1px solid var(--line);
}
.page-banner .container { padding-top: clamp(72px, 10vw, 128px); padding-bottom: clamp(56px, 8vw, 96px); }
.page-banner .banner-content { max-width: 700px; display: flex; flex-direction: column; gap: 22px; }

.banner-about {
  background-image:
    linear-gradient(90deg, rgba(18,20,22,.95) 0%, rgba(18,20,22,.86) 50%, rgba(18,20,22,.45) 100%),
    url("../images/about-banner.jpg");
  background-image:
    linear-gradient(90deg, rgba(18,20,22,.95) 0%, rgba(18,20,22,.86) 50%, rgba(18,20,22,.45) 100%),
    image-set(url("../images/about-banner.webp") type("image/webp"), url("../images/about-banner.jpg") type("image/jpeg"));
}
.banner-projects {
  background-image:
    linear-gradient(90deg, rgba(18,20,22,.95) 0%, rgba(18,20,22,.86) 50%, rgba(18,20,22,.45) 100%),
    url("../images/projects-banner.jpg");
  background-image:
    linear-gradient(90deg, rgba(18,20,22,.95) 0%, rgba(18,20,22,.86) 50%, rgba(18,20,22,.45) 100%),
    image-set(url("../images/projects-banner.webp") type("image/webp"), url("../images/projects-banner.jpg") type("image/jpeg"));
  background-position: center 20%;
}
.banner-contact { background-image: none; }

/* ---------- Sections ---------- */
.section { padding: var(--section) 0; }
.section.light { background: var(--paper); color: var(--text-dark); }
.section.alt { background: var(--charcoal-2); }

.section-head {
  display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between;
  gap: 24px 64px; margin-bottom: 56px;
}
.section-head > div { display: flex; flex-direction: column; gap: 14px; max-width: 640px; }
.section-head > p { margin: 0; max-width: 460px; font-size: 1.06rem; color: var(--muted); }
.light .section-head > p { color: var(--text-dark-muted); }

/* About intro */
.intro-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 32px 80px; }
.intro-grid p { margin: 0 0 1em; font-size: 1.06rem; color: var(--stone); max-width: 62ch; }

/* Services */
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.service {
  background: var(--white); border-top: 4px solid var(--text-dark);
  padding: 36px 32px; display: flex; flex-direction: column; gap: 18px;
}
.service:nth-child(2) { border-top-color: var(--red); }
.service p { margin: 0; color: var(--text-dark-muted); }
.service ul { margin: 0; padding: 0; list-style: none; border-top: 1px solid #e2ddd5; }
.service li { padding: 10px 0; border-bottom: 1px solid #e2ddd5; font-size: .97rem; }
.service svg { width: 40px; height: 40px; }

/* Process steps (a real sequence, so numbered) */
.steps {
  list-style: none; margin: 0; padding: 0; counter-reset: step;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  border-top: 1px solid var(--line);
}
.steps li { counter-increment: step; padding: 32px 28px 8px 0; display: flex; flex-direction: column; gap: 10px; }
.steps li::before {
  content: counter(step, decimal-leading-zero);
  font-family: var(--font-display); font-weight: 700; font-size: 44px; color: var(--red-light); line-height: 1;
}
.steps h3 { font-family: var(--font-body); text-transform: none; font-size: 1.25rem; font-weight: 600; }
.steps p { margin: 0; color: var(--muted); }

/* Accreditations */
.accreditations {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px;
}
.accreditations li {
  border: 1px solid var(--line); padding: 28px 24px; min-height: 110px;
  display: flex; align-items: center; justify-content: center; text-align: center;
  font-family: var(--font-display); font-weight: 600; font-size: 20px;
  letter-spacing: .08em; text-transform: uppercase; color: var(--muted);
}

/* CTA band */
.cta-band { background: var(--red); color: var(--white); }
.cta-band .container {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 24px 48px; padding-top: 64px; padding-bottom: 64px;
}
.cta-band h2 { max-width: 720px; }
.cta-band .btn { background: var(--charcoal); border-color: var(--charcoal); color: var(--white); }
.cta-band .btn:hover { background: var(--ink); color: var(--white); }
.cta-band .btn-outline { background: transparent; border-color: var(--white); }
.cta-band .btn-outline:hover { background: var(--white); color: var(--red-dark); }

/* ---------- Projects ---------- */
.projects { display: flex; flex-direction: column; gap: 32px; }

.project {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  background: var(--charcoal-2); border: 1px solid var(--line);
}
.project:nth-child(even) { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); }
.project:nth-child(even) .project-media { order: 2; }

.project-media { position: relative; min-height: 380px; background: #23272b; }
.project-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

.project-media.placeholder {
  display: flex; align-items: center; justify-content: center; text-align: center;
  background:
    repeating-linear-gradient(135deg, transparent 0 22px, rgba(242,239,234,.04) 22px 23px),
    #202428;
  color: var(--muted); font-size: .95rem; padding: 24px;
}

.project-body { padding: clamp(28px, 4vw, 48px); display: flex; flex-direction: column; gap: 18px; }
.project-body > p { margin: 0; color: var(--stone); max-width: 60ch; }

.status {
  align-self: flex-start; display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px; border: 1px solid var(--line); font-size: .85rem; font-weight: 600;
}
.status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--red-light); }

.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 24px; margin: 8px 0 0; }
.facts div { border-top: 1px solid var(--line); padding: 12px 0; }
.facts dt { font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.facts dd { margin: 2px 0 0; font-size: 1.05rem; font-weight: 500; }

/* ---------- Contact ---------- */
.contact-grid { display: flex; flex-wrap: wrap; gap: 56px 80px; }
.contact-details { flex: 1 1 340px; display: flex; flex-direction: column; gap: 24px; }
.contact-details p { margin: 0; }

.contact-list { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-direction: column; gap: 20px; }
.contact-list li { display: flex; align-items: center; gap: 16px; }
.contact-icon {
  flex: none; display: inline-flex; align-items: center; justify-content: center;
  width: 48px; height: 48px; background: var(--text-dark);
}
.contact-icon svg { width: 22px; height: 22px; }
.contact-label { display: block; font-size: .75rem; letter-spacing: .16em; text-transform: uppercase; color: #5c6066; }
.contact-value { font-size: 1.2rem; font-weight: 600; color: var(--text-dark); text-decoration: none; }
a.contact-value:hover { color: var(--red-dark); }
.hours { color: var(--text-dark-muted); }

.contact-form {
  flex: 1 1 480px; background: var(--white); padding: clamp(24px, 4vw, 40px);
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; align-content: start;
}
.field { display: flex; flex-direction: column; gap: 8px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: .9rem; font-weight: 600; color: var(--text-dark); }
.field .optional { font-weight: 400; color: #5c6066; }

.field input, .field select, .field textarea {
  width: 100%; min-height: 48px; padding: 10px 14px;
  border: 1px solid #8a8e93; border-radius: 0; background: var(--white); color: var(--text-dark);
  font: inherit; font-size: 1rem;
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 3px solid var(--red-dark); outline-offset: 0; border-color: var(--text-dark); }
.field [aria-invalid="true"] { border-color: var(--red-dark); }
.field-error { margin: 0; font-size: .88rem; color: var(--red-dark); font-weight: 500; }
.field-error:empty { display: none; }

.form-actions { grid-column: 1 / -1; display: flex; flex-direction: column; gap: 12px; }
.form-actions .btn { width: 100%; }
.form-note { margin: 0; font-size: .88rem; color: var(--text-dark-muted); }
.form-status { margin: 0; padding: 12px 14px; background: #f4ecea; border-left: 3px solid var(--red-dark); color: var(--text-dark); font-size: .95rem; }
.form-status[hidden] { display: none; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); background: var(--ink); }
.home .site-footer { border-top-color: rgba(242,239,234,.18); background: rgba(11,12,13,.55); }
.footer-inner {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center;
  gap: 12px 32px; padding-top: 28px; padding-bottom: 28px; font-size: .875rem; color: var(--muted);
}
.footer-inner p { margin: 0; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.footer-links a { text-decoration: none; color: var(--muted); }
.footer-links a:hover { color: var(--red-light); }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .project, .project:nth-child(even) { grid-template-columns: 1fr; }
  .project:nth-child(even) .project-media { order: 0; }
  .project-media { min-height: 280px; }
}

@media (max-width: 720px) {
  .home {
    background-image:
      linear-gradient(180deg, rgba(18,20,22,.78) 0%, rgba(18,20,22,.9) 100%),
      url("../images/hero.jpg");
    background-image:
      linear-gradient(180deg, rgba(18,20,22,.78) 0%, rgba(18,20,22,.9) 100%),
      image-set(url("../images/hero.webp") type("image/webp"), url("../images/hero.jpg") type("image/jpeg"));
    background-position: 65% center;
  }
  .header-inner { padding-top: 16px; padding-bottom: 16px; }
  .brand-name { font-size: 22px; }
  .site-nav ul { gap: 2px 20px; }
  .home .hero { padding: 24px 0 56px; }
  h1 { font-size: clamp(2.4rem, 11vw, 3.4rem); overflow-wrap: break-word; }
  h2 { overflow-wrap: break-word; }
  .actions .btn { width: 100%; }
  .contact-form { grid-template-columns: 1fr; }
  .facts { grid-template-columns: 1fr; }
}

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