/* ============================================================
   G&T Consulting - shared site styles
   Depends on brand.css for tokens. Load brand.css first.
   ============================================================ */

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

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--t-body);
  line-height: 1.65;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0;
}

a { color: inherit; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--s-3); }
.wrap-narrow { max-width: var(--wrap-narrow); margin: 0 auto; padding: 0 var(--s-3); }

/* --- Eyebrow: letterspaced micro-caps from the collateral --- */
.eyebrow {
  font-size: var(--t-micro);
  font-weight: 600;
  letter-spacing: var(--track-eyebrow);
  text-transform: uppercase;
  color: var(--gold-deep);
  margin: 0 0 var(--s-2);
}
.band-navy .eyebrow, .hero .eyebrow, .page-head .eyebrow { color: var(--gold-bright); }

/* ============================================================
   Buttons
   ============================================================ */
.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-size: var(--t-small);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 1rem 2rem;
  border-radius: var(--r-btn);
  border: 1px solid transparent;
  transition: all 0.25s var(--ease);
  cursor: pointer;
}
.btn-gold  { background: var(--gold); color: var(--navy); border-color: var(--gold); }
.btn-gold:hover  { background: var(--gold-bright); border-color: var(--gold-bright); }
.btn-ghost { background: transparent; color: var(--on-navy); border-color: var(--line-dark); }
.btn-ghost:hover { border-color: var(--gold-bright); color: var(--gold-bright); }
.btn-dark  { background: var(--navy); color: var(--white); border-color: var(--navy); }
.btn-dark:hover  { background: var(--navy-soft); border-color: var(--navy-soft); }

/* ============================================================
   Header
   ============================================================ */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(16, 28, 44, 0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line-dark);
}
.header-inner {
  position: relative;
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--s-3); padding-top: var(--s-2); padding-bottom: var(--s-2);
}

/* Wordmark - B-Institut lockup (the variant that names the business).
   Source art lives in _brand-source/; the files here are trimmed and
   sized at 2× for retina. Header art is the white variant because the
   header band is navy. */
.logo { display: inline-flex; align-items: center; text-decoration: none; }
.logo img { display: block; height: 36px; width: auto; }
.logo-footer img { height: 28px; }

@media (max-width: 600px) {
  .logo img { height: 28px; }
}

.nav { display: flex; align-items: center; gap: var(--s-3); }
.nav a {
  font-size: var(--t-small); color: var(--muted-navy);
  text-decoration: none; transition: color 0.2s var(--ease);
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--gold-bright); }
.nav .btn { padding: 0.7rem 1.4rem; color: var(--navy); }
.nav .btn:hover { color: var(--navy); }

.nav-toggle {
  display: none; background: none; border: 0;
  color: var(--white); font-size: 1.5rem; cursor: pointer; line-height: 1;
}

@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--navy); border-bottom: 1px solid var(--line-dark);
    padding: var(--s-2);
  }
  .nav.open { display: flex; }
  .nav a { padding: var(--s-2) var(--s-1); }
  .nav .btn { text-align: center; margin-top: var(--s-1); }
  .logo .sub { display: none; }
}

/* ============================================================
   Sections / bands
   ============================================================ */
section { padding: clamp(3.5rem, 7vw, 6rem) 0; }
.band-cream { background: var(--cream); }
.band-navy  { background: var(--navy); color: var(--on-navy); }

.section-head { max-width: var(--wrap-narrow); margin-bottom: var(--s-5); }
.section-head h2 { font-size: var(--t-h2); margin-bottom: var(--s-2); }
.section-head p { color: var(--muted); margin: 0; }
.band-navy .section-head p { color: var(--muted-navy); }

/* Inner-page header band */
.page-head {
  background: var(--navy); color: var(--on-navy);
  padding: clamp(3rem, 6vw, 5rem) 0 clamp(2.5rem, 4vw, 3.5rem);
}
.page-head h1 { font-size: var(--t-h2); margin-bottom: var(--s-2); }
.page-head p { color: var(--muted-navy); margin: 0; max-width: 40rem; }

/* ============================================================
   Footer
   ============================================================ */
.site-footer {
  background: var(--navy-deep); color: var(--muted-navy);
  padding: var(--s-5) 0 var(--s-4);
  border-top: 1px solid var(--line-dark);
  font-size: var(--t-small);
}
.footer-top {
  display: flex; flex-wrap: wrap; gap: var(--s-4);
  justify-content: space-between; align-items: flex-start;
  padding-bottom: var(--s-4); border-bottom: 1px solid var(--line-dark);
}
.footer-links { display: flex; flex-wrap: wrap; gap: var(--s-3); }
.footer-links a { text-decoration: none; transition: color 0.2s var(--ease); }
.footer-links a:hover { color: var(--gold-bright); }
.footer-legal { padding-top: var(--s-3); font-size: var(--t-micro); line-height: 1.9; }
.footer-legal div { color: #7a8595; }

/* ============================================================
   Forms
   ============================================================ */
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--s-3); }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }
.field.full { grid-column: 1 / -1; }

.field label {
  display: block; font-size: var(--t-small); font-weight: 600;
  margin-bottom: 0.4rem;
}
.field .hint { font-weight: 400; color: var(--muted); }

.field input, .field select, .field textarea {
  width: 100%;
  font-family: var(--font-body); font-size: var(--t-body);
  color: var(--ink); background: var(--white);
  border: 1px solid var(--line-strong); border-radius: var(--r-btn);
  padding: 0.8rem 0.9rem;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.field textarea { min-height: 9rem; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(184, 151, 90, 0.18);
}
.field input[aria-invalid="true"],
.field textarea[aria-invalid="true"] { border-color: #b3261e; }
.field .err { display: none; color: #b3261e; font-size: var(--t-small); margin-top: 0.3rem; }
.field .err.show { display: block; }

/* Honeypot - hidden from people, tempting to bots. */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form-status { margin-top: var(--s-3); font-size: var(--t-small); }
.form-status.ok  { color: #1b6b3a; }
.form-status.bad { color: #b3261e; }

/* ============================================================
   Utility
   ============================================================ */
.skip {
  position: absolute; left: -9999px;
  background: var(--gold); color: var(--navy);
  padding: var(--s-2) var(--s-3); z-index: 100;
}
.skip:focus { left: var(--s-2); top: var(--s-2); }

:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

.center { text-align: center; }
