/* ==========================================================================
   FDT Consultants — site stylesheet
   Design system: "Industry" wireframe/blueprint theme, steel-blue swapped
   for the brand's red accent. Barlow Condensed headings over Barlow body.
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Barlow:wght@400;500;600;700&family=Barlow+Condensed:wght@400;600;700&display=swap');

:root {
  --color-bg: #f2f2f3;
  --color-surface: #e9e9ea;
  --color-text: #1d1f20;
  --color-divider: color-mix(in srgb, #1d1f20 16%, transparent);
  --color-ink: #141414;

  --color-accent-100: #fbe9e9;
  --color-accent-200: #f5cbcb;
  --color-accent-300: #e8a0a0;
  --color-accent-400: #d06f6f;
  --color-accent-500: #b3282d;
  --color-accent-600: #8f2024;
  --color-accent-700: #6b181b;
  --color-accent-800: #481012;
  --color-accent-900: #260a0b;
  --color-accent: var(--color-accent-500);

  --font-heading: "Barlow Condensed", system-ui, sans-serif;
  --font-heading-weight: 600;
  --font-body: "Barlow", system-ui, sans-serif;

  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-6: 24px;
  --space-8: 32px;

  --radius-md: 4px;

  --shadow-sm: 0 1px 2px color-mix(in srgb, #141414 14%, transparent);
  --shadow-md: 0 3px 10px color-mix(in srgb, #141414 16%, transparent);
  --shadow-lg: 0 12px 32px color-mix(in srgb, #141414 22%, transparent);

  --section-x: clamp(20px, 5vw, 56px);
}

/* ---- reset / base ------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.55;
  text-wrap: pretty;
}
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: var(--font-heading-weight);
  line-height: 1.12;
  letter-spacing: -0.01em;
  margin: 0 0 var(--space-2);
}
p { margin: 0 0 var(--space-3); }
a { color: var(--color-accent-700); text-underline-offset: 3px; }
a:hover { color: var(--color-accent-900); }
img { display: block; max-width: 100%; }
ul { margin: 0; }
:focus { outline: none; }
:focus-visible { outline: 2px solid var(--color-accent-600); outline-offset: 2px; }
::selection { background: color-mix(in srgb, var(--color-accent) 30%, transparent); }

.section { padding-left: var(--section-x); padding-right: var(--section-x); }
.kicker {
  display: block; font-size: 13px; letter-spacing: .08em; text-transform: uppercase;
  font-weight: 600; color: var(--color-accent-700); margin-bottom: 8px;
}
.hr { height: 1px; border: 0; margin: 0 0 24px; background: var(--color-divider); }
.text-muted { color: color-mix(in srgb, var(--color-text) 78%, transparent); }
.skip-link {
  position: absolute; left: -9999px; top: 0; background: #fff; color: var(--color-text);
  padding: 10px 16px; z-index: 100;
}
.skip-link:focus { left: var(--section-x); top: 8px; }

/* ---- buttons -------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  cursor: pointer; text-decoration: none;
  font-family: var(--font-heading); font-weight: var(--font-heading-weight);
  font-size: 14px; line-height: 1.2; color: var(--color-text);
  background: transparent; border: 1px solid var(--color-divider);
  padding: 10px 18px; border-radius: 0;
  text-transform: uppercase; letter-spacing: .03em;
}
.btn-primary { background: var(--color-accent); color: #fff; border-color: var(--color-accent); }
.btn-primary:hover { background: var(--color-accent-600); color: #fff; }
.btn-primary:active { background: var(--color-accent-700); }
.btn-ghost { border-color: transparent; color: var(--color-accent-700); padding-inline: 4px; }
.btn-ghost:hover { background: color-mix(in srgb, var(--color-accent) 10%, transparent); color: var(--color-accent-900); }
.btn-block { width: 100%; }
.btn:disabled { opacity: .5; cursor: not-allowed; }

/* ---- forms ------------------------------------------------------------------ */
.field { display: block; }
.field > label {
  display: block; font-size: 12px; margin-bottom: 5px;
  color: color-mix(in srgb, var(--color-text) 70%, transparent);
}
.input {
  width: 100%; min-height: 40px; padding: 8px 12px; font: inherit; font-size: 14px;
  color: var(--color-text); caret-color: var(--color-accent);
  background: #fff; border: 1px solid var(--color-divider); border-radius: var(--radius-md);
}
.input:hover { border-color: color-mix(in srgb, var(--color-text) 45%, transparent); }
.input:focus-visible { border-color: var(--color-accent); outline-offset: 0; }
textarea.input { min-height: 110px; resize: vertical; }
.field-error { color: var(--color-accent-700); font-size: 12.5px; margin-top: 4px; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

.alert { padding: 14px 18px; border-radius: var(--radius-md); font-size: 14px; margin-bottom: 20px; }
.alert-success { background: #e8f5e9; color: #1e4620; border: 1px solid #b6dfba; }
.alert-error { background: var(--color-accent-100); color: var(--color-accent-800); border: 1px solid var(--color-accent-300); }

/* ---- tags --------------------------------------------------------------------- */
.tag {
  display: inline-flex; align-items: center; font-size: 11px; letter-spacing: .02em;
  padding: 4px 10px; border-radius: 3px; text-transform: uppercase;
}
.tag-accent { background: var(--color-accent-100); color: var(--color-accent-800); }
.tag-outline { border: 1px solid var(--color-accent-500); color: var(--color-accent-700); }

/* ---- cards -------------------------------------------------------------------- */
.card {
  display: flex; flex-direction: column; gap: var(--space-2);
  padding: var(--space-4); border: 1px solid var(--color-divider); border-radius: 0;
  background: transparent;
}
.card-kicker { font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--color-accent-700); }
.card-title { font-family: var(--font-heading); font-weight: 600; font-size: 17px; line-height: 1.2; }
.card-body { margin: 0; font-size: 13.5px; opacity: .82; flex: 1; }
.card-meta { display: flex; align-items: center; gap: 6px; font-size: 11px; color: color-mix(in srgb, var(--color-text) 50%, transparent); }
.card-link {
  text-decoration: none; color: inherit; transition: box-shadow .2s, transform .2s, border-color .2s;
}
.card-link:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); border-color: var(--color-accent-700); }

/* ---- blueprint frame: hairline border -------------------------------------- */
.blueprint { position: relative; }

/* ---- top bar + nav ------------------------------------------------------------ */
.topbar {
  background: var(--color-ink); color: #fff; display: flex; justify-content: flex-end;
  align-items: center; gap: 24px; padding: 8px var(--section-x); font-size: 12.5px; letter-spacing: .02em;
}
.topbar a.phone { color: #fff; text-decoration: none; white-space: nowrap; }
.topbar a.phone:hover { color: var(--color-accent-200); }
.topbar .btn { font-size: 12px; padding: 6px 14px; }

.nav {
  display: flex; align-items: center; gap: var(--space-4); flex-wrap: wrap; row-gap: 10px;
  padding: 14px var(--section-x); background: #fff; border-bottom: 1px solid var(--color-divider);
  position: relative;
}
.nav-brand {
  display: flex; align-items: center; gap: 10px; text-decoration: none; color: inherit;
  margin-right: auto; flex-shrink: 0; white-space: nowrap;
}
.nav-brand img { width: 44px; height: 44px; flex: none; }
.nav-brand span { font-family: var(--font-heading); font-weight: 600; font-size: 16px; text-transform: uppercase; letter-spacing: .02em; }
.nav-links { display: flex; align-items: center; gap: var(--space-4); flex-wrap: wrap; row-gap: 10px; }
.nav-links a {
  color: inherit; text-decoration: none; font-weight: 600; text-transform: uppercase;
  font-size: 14px; letter-spacing: .03em;
}
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--color-accent-600); }
.nav-toggle {
  display: none; appearance: none; border: 1px solid var(--color-divider); background: #fff;
  width: 42px; height: 38px; padding: 0; cursor: pointer; align-items: center; justify-content: center;
}
.nav-toggle span, .nav-toggle::before, .nav-toggle::after {
  content: ""; display: block; width: 20px; height: 2px; background: var(--color-text);
}
.nav-toggle span { margin: 4px 0; }

@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; flex-direction: column; }
  .nav-links {
    display: none; flex-direction: column; align-items: flex-start; gap: 4px;
    width: 100%; order: 3; border-top: 1px solid var(--color-divider); padding-top: 12px; margin-top: 6px;
  }
  .nav-links.is-open { display: flex; }
  .nav-links a { display: block; padding: 8px 0; width: 100%; }
}

/* ---- hero carousel (home) ------------------------------------------------------ */
.hero { position: relative; width: 100%; height: min(72vh, 640px); overflow: hidden; background: var(--color-ink); }
.hero-slide {
  position: absolute; inset: 0; overflow: hidden; opacity: 0; transition: opacity 1s ease;
}
.hero-slide.is-active { opacity: 1; }
.hero-slide picture { display: block; width: 100%; height: 100%; }
.hero-slide img {
  width: 100%; height: 100%; object-fit: cover; animation: kbzoom 18s ease-in-out infinite alternate;
}
@keyframes kbzoom { from { transform: scale(1) translate(0, 0); } to { transform: scale(1.12) translate(-1.5%, -1%); } }
.hero-caption {
  position: absolute; left: 0; bottom: 0; right: 0; padding: 0 0 clamp(24px, 5vw, 64px) clamp(20px, 5vw, 64px);
  pointer-events: none;
}
.hero-caption .plate {
  display: inline-block; background: rgba(0, 0, 0, .82); color: #fff; padding: 14px 22px; margin-bottom: 10px;
  font-family: var(--font-heading); font-weight: 600; font-size: clamp(26px, 4vw, 44px);
  text-transform: uppercase; letter-spacing: .02em; line-height: 1;
}
.hero-caption .sub {
  display: inline-block; background: rgba(0, 0, 0, .82); color: #fff; padding: 10px 20px; font-size: clamp(15px, 1.6vw, 20px);
}
.hero-nav {
  position: absolute; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; border-radius: 50%;
  background: rgba(0, 0, 0, .55); border: none; color: #fff; display: flex; align-items: center; justify-content: center;
  cursor: pointer; z-index: 2;
}
.hero-nav.prev { left: 20px; }
.hero-nav.next { right: 20px; }
.hero-dots { position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%); display: flex; gap: 8px; z-index: 2; }
.hero-dots button {
  width: 8px; height: 8px; border-radius: 50%; border: none; padding: 0; cursor: pointer;
  background: rgba(255, 255, 255, .5);
}
.hero-dots button.is-active { background: #fff; }

/* ---- generic page banner -------------------------------------------------------- */
.banner { position: relative; width: 100%; overflow: hidden; }
.banner picture { display: block; width: 100%; height: 100%; }
.banner img { width: 100%; height: 100%; object-fit: cover; }
.banner-caption {
  position: absolute; left: 0; bottom: 0; right: 0; padding: 0 0 24px clamp(20px, 5vw, 64px); pointer-events: none;
}
.banner-caption .plate {
  display: inline-block; background: rgba(0, 0, 0, .82); color: #fff; padding: 12px 20px; margin-bottom: 8px;
  font-family: var(--font-heading); font-weight: 600; font-size: clamp(24px, 3.5vw, 40px);
  text-transform: uppercase; letter-spacing: .02em; line-height: 1.1;
}
.banner-caption .sub { display: inline-block; background: rgba(0, 0, 0, .82); color: #fff; padding: 8px 16px; font-size: 14px; }

/* ---- feature icons (home) --------------------------------------------------------- */
.feature-icon {
  flex: none; width: 70px; height: 70px; border-radius: 50%; background: var(--color-accent-700);
  display: flex; align-items: center; justify-content: center;
}

/* ---- footer ---------------------------------------------------------------------- */
.site-footer {
  padding: 32px var(--section-x); font-size: 13px; background: var(--color-ink); color: rgba(255, 255, 255, .75);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px;
}
.site-footer a { color: rgba(255,255,255,.85); }
.site-footer a:hover { color: #fff; }

/* ---- utility grids ----------------------------------------------------------------- */
.grid-auto { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: clamp(16px, 3vw, 28px); }
.grid-auto-sm { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: clamp(12px, 2vw, 20px); }
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: clamp(24px, 5vw, 56px); }

.cta-band {
  padding: calc(2 * var(--space-6)); display: flex; align-items: center; justify-content: space-between;
  gap: 24px; flex-wrap: wrap; background: var(--color-ink);
}
.cta-band h3 { color: #fff; margin: 0 0 8px; font-size: 26px; text-transform: uppercase; letter-spacing: .02em; }
.cta-band p { margin: 0; color: rgba(255, 255, 255, .8); max-width: 48ch; }

.breadcrumb { padding: 20px var(--section-x) 0; font-size: 13px; color: color-mix(in srgb, var(--color-text) 60%, transparent); }
.breadcrumb a { color: inherit; }
.breadcrumb a:hover { color: var(--color-accent-700); }

@media (max-width: 600px) {
  .cta-band { flex-direction: column; align-items: flex-start; }
}
