/* BCD website demo — shared styles.
   Layout: full-bleed bands, 1200px content column, sticky navy header.
   Single light theme on purpose: it mirrors the live site's look. */
:root {
  color-scheme: light;
  --navy: #24496f;
  --navy-deep: #1d3c5c;
  --accent: #F48945;
  --accent-deep: #E9722C;
  --ink: #17130E;
  --body: #2b261f;
  --paper: #FBF9F5;
  --line: #e5dfd3;
  --muted: #5b554d;
  --rust: #B9501A;
  --error: #B3261E;
  --ok-bg: #EAF4EE;
  --ok-line: #9BC8AD;
  --font-display: Oswald, "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
  --font-body: Inter, system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
}

html { scroll-behavior: smooth; }
body { margin: 0; background: #ffffff; color: var(--body); font-family: var(--font-body); }
[hidden] { display: none !important; }
[id] { scroll-margin-top: 96px; }
h1, h2, h3 { text-wrap: balance; }

a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible,
textarea:focus-visible, summary:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 50;
  background: var(--navy);
  transition: box-shadow .2s ease;
}
.site-header.is-scrolled { box-shadow: 0 8px 24px -10px rgba(0, 0, 0, .5); }
.site-header__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 14px 32px;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand__mark { font-family: var(--font-display); font-weight: 700; font-size: 32px; letter-spacing: 1px; color: #fff; line-height: 1; }
.brand__name { font-size: 10px; letter-spacing: 1.6px; text-transform: uppercase; color: #e6e0d6; line-height: 1.35; }

.site-nav {
  display: flex;
  align-items: center;
  gap: 24px;
  font-family: var(--font-display);
  font-size: 14px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
}
.site-nav a { color: #fff; text-decoration: none; padding: 6px 0; border-bottom: 2px solid transparent; transition: border-color .15s; }
.site-nav a:hover { color: #fff; border-bottom-color: rgba(255, 255, 255, .5); }
.site-nav a[aria-current="page"] { border-bottom-color: var(--accent); }
.site-nav .nav-cta {
  margin-left: 8px;
  padding: 12px 18px;
  border: 0;
  border-radius: 6px;
  background: var(--accent);
  color: var(--ink);
  font-weight: 600;
}
.site-nav .nav-cta:hover { background: var(--accent-deep); color: var(--ink); }

.nav-toggle { display: none; }

@media (max-width: 1080px) {
  .nav-toggle {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    width: 46px;
    height: 46px;
    padding: 0;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, .35);
    border-radius: 6px;
    cursor: pointer;
  }
  .nav-toggle span { display: block; width: 20px; height: 2px; background: #fff; transition: transform .2s, opacity .2s; }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .site-nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 6px 32px 22px;
    background: var(--navy);
    border-top: 1px solid rgba(255, 255, 255, .15);
    box-shadow: 0 18px 28px -14px rgba(0, 0, 0, .45);
    max-height: calc(100vh - 80px);
    overflow-y: auto;
  }
  .site-nav.is-open { display: flex; }
  .site-nav a { padding: 15px 0; font-size: 16px; border-bottom: 1px solid rgba(255, 255, 255, .12); }
  .site-nav a:hover { border-bottom-color: rgba(255, 255, 255, .12); color: #FFB27F; }
  .site-nav a[aria-current="page"] { color: #FFB27F; border-bottom-color: rgba(255, 255, 255, .12); }
  .site-nav .nav-cta { margin: 18px 0 0; text-align: center; border-bottom: 0; }
}

/* ---------- Generic hover states for the page content ---------- */
main a[href] h3 { transition: color .15s; }
main a[href]:hover h3 { color: var(--rust) !important; }
.site a[style*="background: #F48945"]:hover, .site button[style*="background: #F48945"]:hover { background: var(--accent-deep) !important; }
main a[style*="border: 2px solid #24496f"]:hover { background: var(--navy) !important; color: #fff !important; }
main a[style*="box-shadow"] { transition: transform .15s, box-shadow .15s; }
main a[style*="box-shadow"]:hover { transform: translateY(-3px); }
details summary { list-style-position: outside; }

/* ---------- Our Work filter chips ---------- */
.chip {
  font: 500 14px var(--font-body);
  padding: 11px 18px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .25);
  color: #fff;
  cursor: pointer;
  transition: background .15s, color .15s;
}
.chip:hover { background: rgba(255, 255, 255, .16); }
.chip[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--ink); }

/* ---------- Forms ---------- */
input[aria-invalid="true"] { border-color: var(--error) !important; box-shadow: 0 0 0 3px rgba(179, 38, 30, .15); }
.field-error { color: var(--error); font-size: 13px; font-weight: 500; }
.form-success {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 24px;
  border-radius: 10px;
  background: var(--ok-bg);
  border: 1px solid var(--ok-line);
  color: var(--ink);
}
.form-success strong { font-family: var(--font-display); font-size: 22px; text-transform: uppercase; color: var(--navy); }
.form-success p { margin: 0; font-size: 15px; line-height: 1.6; }
.form-success .demo-tag { font-size: 13px; color: var(--muted); }
.form-success button {
  align-self: flex-start;
  margin-top: 4px;
  padding: 11px 16px;
  border: 2px solid var(--navy);
  border-radius: 6px;
  background: transparent;
  color: var(--navy);
  font: 600 14px var(--font-display);
  letter-spacing: 1px;
  text-transform: uppercase;
  cursor: pointer;
}

/* ---------- Toast ---------- */
.toast {
  position: fixed;
  left: 50%;
  bottom: calc(24px + env(safe-area-inset-bottom, 0px));
  transform: translateX(-50%);
  z-index: 70;
  max-width: calc(100vw - 32px);
  box-sizing: border-box;
  padding: 12px 18px;
  border-radius: 8px;
  background: var(--ink);
  color: #fff;
  font-size: 14px;
  box-shadow: 0 12px 28px -10px rgba(0, 0, 0, .5);
}

/* ---------- Dev notes ---------- */
.devnotes-btn {
  position: fixed;
  right: 16px;
  bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  z-index: 60;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 18px;
  border: 0;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font: 600 14px var(--font-body);
  box-shadow: 0 10px 24px -8px rgba(0, 0, 0, .45);
  cursor: pointer;
}
.devnotes-btn__count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 22px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--ink);
  font: 700 12px var(--font-body);
}
.devnotes-panel {
  position: fixed;
  right: 16px;
  bottom: calc(76px + env(safe-area-inset-bottom, 0px));
  z-index: 60;
  width: min(400px, calc(100vw - 32px));
  max-height: min(70vh, 600px);
  overflow-y: auto;
  box-sizing: border-box;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  color: var(--body);
  box-shadow: 0 24px 48px -16px rgba(0, 0, 0, .35);
}
.devnotes-panel__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.devnotes-panel__head h2 { margin: 0; font: 600 18px var(--font-display); text-transform: uppercase; letter-spacing: .5px; color: var(--navy); }
.devnotes-panel__head p { margin: 4px 0 0; font-size: 13px; color: var(--muted); }
.devnotes-close { border: 0; background: transparent; font-size: 22px; line-height: 1; color: var(--muted); cursor: pointer; padding: 4px 6px; }
.devnotes-pins { display: flex; align-items: center; gap: 8px; margin: 14px 0 6px; font-size: 14px; }
.devnotes-pins input { width: 18px; height: 18px; accent-color: var(--navy); }
.devnote { display: flex; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); }
.devnote__n, .devpin {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--ink);
  font: 700 13px var(--font-body);
  letter-spacing: 0;
}
.devnote__body { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.devnote__body strong { font-size: 14px; color: var(--ink); }
.devnote__body span { font-size: 14px; line-height: 1.55; }
.devnote__body button {
  align-self: flex-start;
  padding: 0;
  border: 0;
  background: none;
  color: var(--navy);
  font: 600 13px var(--font-body);
  text-decoration: underline;
  cursor: pointer;
}
.devpin { margin-right: 12px; vertical-align: middle; position: relative; top: -2px; text-transform: none; }
.dev-flash { outline: 3px solid var(--accent); outline-offset: -3px; }

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