/* ============================================================
   HASKIL website UI kit — components.css
   Imports foundations from ../colors_and_type.css
   ============================================================ */

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
body { min-height: 100vh; }
img { max-width: 100%; display: block; }

/* ---------- Container ---------- */
.container { max-width: var(--max-content); margin: 0 auto; padding: 0 var(--space-7); }
@media (max-width: 768px) { .container { padding: 0 var(--space-5); } }

/* ============================================================
   Connector mark (.haskil-mark)
   ============================================================ */
.haskil-mark { display: inline-flex; align-items: center; gap: 6px; }
.haskil-mark .dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.haskil-mark .line { height: 1px; width: 30px; background: currentColor; }
.haskil-mark.sm .dot { width: 5px; height: 5px; }
.haskil-mark.sm .line { width: 18px; }
.haskil-mark.tiny .dot { width: 4px; height: 4px; }
.haskil-mark.tiny .line { width: 12px; }
.haskil-mark.lg { gap: 12px; }
.haskil-mark.lg .dot { width: 12px; height: 12px; }
.haskil-mark.lg .line { width: 50px; }
.haskil-mark.accent .dot:nth-child(3) { background: var(--ink-terracotta); }

/* ============================================================
   Header / nav
   ============================================================ */
.site-header {
  display: flex; align-items: flex-start; justify-content: space-between;
  padding: var(--space-6) var(--space-7);
  background: var(--bg-cream);
}
.site-header .brand { display: flex; flex-direction: column; gap: 6px; color: var(--ink-charcoal); text-decoration: none; }
.site-header .haskil-mark { gap: 9px; margin-bottom: 2px; }
.site-header .haskil-mark .dot { width: 11px; height: 11px; }
.site-header .haskil-mark .line { width: 42px; }
.site-header .wordmark { font-family: var(--font-display); font-weight: 500; font-size: 36px; letter-spacing: var(--track-wider); color: var(--ink-charcoal); line-height: 1; }
.site-header .tagline { font-family: var(--font-display); font-size: 9.5px; letter-spacing: var(--track-widest); color: var(--ink-charcoal); }
.site-nav { display: flex; gap: var(--space-7); padding-top: 28px; }
.site-nav a {
  font-family: var(--font-display);
  font-size: var(--fs-micro);
  font-weight: 500;
  letter-spacing: var(--track-wide);
  text-transform: uppercase;
  color: var(--ink-charcoal);
  text-decoration: none;
  padding-bottom: 4px;
  border-bottom: 1px solid transparent;
  transition: border-color var(--dur-fast) var(--ease-out);
}
.site-nav a:hover { border-bottom-color: var(--ink-charcoal); }
.site-nav a.active { border-bottom-color: var(--ink-charcoal); }

/* ============================================================
   Buttons
   ============================================================ */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 13px;
  letter-spacing: var(--track-wide);
  text-transform: uppercase;
  padding: 14px 26px;
  border: 0;
  border-radius: var(--radius-md);
  cursor: pointer;
  text-decoration: none;
  transition: background var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out);
}
.btn-primary { background: var(--ink-terracotta); color: var(--bg-cream); }
.btn-primary:hover { background: #a8483a; color: var(--bg-cream); }
.btn-secondary { background: transparent; color: var(--ink-charcoal); border: 1.5px solid var(--ink-charcoal); }
.btn-secondary:hover { background: var(--ink-charcoal); color: var(--bg-cream); }
.btn-ghost { background: transparent; color: var(--ink-charcoal); padding: 10px 0; }
.btn-ghost:hover { color: var(--ink-terracotta); }
.btn .arrow { display: inline-block; transform: translateY(-1px); transition: transform var(--dur-fast) var(--ease-out); }
.btn:hover .arrow { transform: translate(2px, -1px); }

/* Inline link arrow CTA */
.link-cta {
  font-family: var(--font-body);
  color: var(--ink-forest);
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-thickness: 1px;
  font-size: var(--fs-body);
}
.link-cta:hover { color: var(--ink-charcoal); }

/* ============================================================
   Forms
   ============================================================ */
.field { margin-bottom: var(--space-5); }
.field label {
  display: block;
  font-family: var(--font-display);
  font-size: var(--fs-micro);
  font-weight: 500;
  letter-spacing: var(--track-wider);
  text-transform: uppercase;
  color: var(--ink-charcoal);
  margin-bottom: var(--space-2);
}
.field input, .field textarea {
  width: 100%;
  border: 0;
  border-bottom: 1px solid var(--ink-charcoal);
  background: transparent;
  font-family: var(--font-body);
  font-size: var(--fs-body);
  padding: 10px 0;
  color: var(--ink-charcoal);
  outline: none;
  transition: border-color var(--dur-fast) var(--ease-out);
}
.field input:focus, .field textarea:focus { border-bottom-color: var(--ink-terracotta); }
.field input::placeholder, .field textarea::placeholder { color: rgba(54,52,59,0.4); }
.field textarea { min-height: 100px; resize: vertical; }

/* ============================================================
   Eyebrow / labels
   ============================================================ */
.eyebrow {
  font-family: var(--font-display);
  font-size: var(--fs-micro);
  font-weight: 500;
  letter-spacing: var(--track-wider);
  text-transform: uppercase;
  color: var(--color-muted);
}

/* Sector tag — small pill of an eyebrow */
.tag {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: var(--track-wider);
  text-transform: uppercase;
  color: var(--ink-charcoal);
  border: 1px solid var(--ink-charcoal);
  padding: 6px 12px;
  border-radius: var(--radius-md);
}

/* ============================================================
   Cards
   ============================================================ */
.card {
  background: var(--bg-cream-deep);
  border-radius: var(--radius-md);
  padding: var(--space-6) var(--space-7);
}
.card.blush { background: var(--bg-blush); }
.card.charcoal { background: var(--ink-charcoal); color: var(--bg-cream); }
.card.charcoal .eyebrow, .card.charcoal h1, .card.charcoal h2, .card.charcoal h3, .card.charcoal h4 { color: var(--bg-cream); }
.card .eyebrow { margin-bottom: var(--space-3); }
.card h3, .card h4 { color: var(--ink-espresso); margin-bottom: var(--space-3); letter-spacing: -0.01em; }

/* ============================================================
   Pull quote (editorial)
   ============================================================ */
.quote-block { display: flex; flex-direction: column; gap: var(--space-4); }
.quote-block .open {
  font-family: var(--font-serif);
  font-size: 96px;
  line-height: .55;
  color: var(--ink-terracotta);
  font-weight: 400;
}
.quote-block .close {
  font-family: var(--font-serif);
  font-size: 96px;
  line-height: .55;
  color: var(--ink-terracotta);
  font-weight: 400;
  text-align: right;
  margin-top: -28px;
}
.quote-block .body {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 300;
  font-size: 28px;
  line-height: 1.35;
  color: var(--ink-charcoal);
  margin: 0;
}
.quote-block .attribution { display: flex; align-items: center; gap: var(--space-3); margin-top: var(--space-4); }
.quote-block .attribution .rule { height: 1px; width: 36px; background: var(--ink-charcoal); }
.quote-block .attribution .name {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: var(--track-wider);
  text-transform: uppercase;
  color: var(--ink-charcoal);
}
.quote-block .attribution .role {
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: var(--track-wide);
  text-transform: uppercase;
  color: var(--color-muted);
  margin-top: 2px;
}

/* ============================================================
   Section
   ============================================================ */
.section { padding: var(--space-9) 0; }
.section-tight { padding: var(--space-8) 0; }
.section-divider {
  display: flex; justify-content: center; align-items: center;
  padding: var(--space-8) 0;
  color: var(--ink-charcoal);
}
.section-divider.subtle { color: var(--bg-stone); }

/* ============================================================
   Footer
   ============================================================ */
.site-footer {
  background: var(--ink-espresso);
  color: var(--bg-cream);
  padding: var(--space-8) var(--space-7) var(--space-6);
}
.site-footer .top { display: flex; justify-content: space-between; align-items: flex-start; padding-bottom: var(--space-7); border-bottom: 1px solid rgba(246, 237, 222, 0.18); }
.site-footer .wordmark { font-family: var(--font-display); font-weight: 500; font-size: 22px; letter-spacing: var(--track-wider); color: var(--bg-cream); }
.site-footer .meta { display: flex; gap: var(--space-7); }
.site-footer .meta-col h6 { font-family: var(--font-display); font-size: 11px; letter-spacing: var(--track-wider); text-transform: uppercase; color: var(--bg-cream); opacity: 0.6; margin-bottom: var(--space-3); font-weight: 500; }
.site-footer .meta-col a { display: block; color: var(--bg-cream); text-decoration: none; padding: 4px 0; font-size: var(--fs-body); opacity: 0.92; }
.site-footer .meta-col a:hover { opacity: 1; text-decoration: underline; text-underline-offset: 4px; }
.site-footer .legal { display: flex; justify-content: space-between; padding-top: var(--space-5); font-family: var(--font-display); font-size: 11px; letter-spacing: var(--track-wide); text-transform: uppercase; color: var(--bg-cream); opacity: 0.55; }

/* ============================================================
   Hero — dark photo with gradient
   ============================================================ */
.hero {
  position: relative;
  min-height: 80vh;
  display: flex;
  align-items: flex-end;
  background: var(--ink-espresso);
  overflow: hidden;
}
.hero .bg { position: absolute; inset: 0; }
.hero .bg img { width: 100%; height: 100%; object-fit: cover; object-position: center 25%; }
.hero .scrim {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(61,35,20,0.85) 0%, rgba(61,35,20,0.30) 55%, rgba(61,35,20,0.05) 100%);
}
.hero .copy { position: relative; padding: var(--space-9) var(--space-7); max-width: 760px; color: var(--bg-cream); }
.hero .eyebrow { color: var(--bg-cream); opacity: 0.78; margin-bottom: var(--space-4); }
.hero h1 {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: 64px;
  line-height: 1.05;
  letter-spacing: var(--track-display);
  color: var(--bg-cream);
  margin-bottom: var(--space-5);
}
.hero .lede {
  font-family: var(--font-body);
  font-size: var(--fs-body-l);
  line-height: 1.5;
  color: var(--bg-cream);
  opacity: 0.92;
  max-width: 600px;
  margin-bottom: var(--space-6);
}

/* ============================================================
   Sector / capability list rows (no card-grid; editorial rows)
   ============================================================ */
.row-list { display: flex; flex-direction: column; }
.row-list .row {
  display: grid;
  grid-template-columns: 1fr 2fr 80px;
  gap: var(--space-6);
  align-items: baseline;
  padding: var(--space-5) 0;
  border-bottom: 1px solid var(--bg-stone);
  text-decoration: none;
  color: inherit;
  transition: padding var(--dur-base) var(--ease-out);
}
.row-list .row:hover { padding-left: var(--space-3); }
.row-list .row .num {
  font-family: var(--font-mono);
  font-size: var(--fs-micro);
  letter-spacing: var(--track-wide);
  color: var(--color-muted);
}
.row-list .row .title {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 500;
  color: var(--ink-espresso);
  letter-spacing: -0.01em;
}
.row-list .row .desc {
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.5;
  color: var(--ink-charcoal);
}
.row-list .row .arrow {
  font-family: var(--font-display);
  font-size: 18px;
  color: var(--ink-charcoal);
  text-align: right;
  transition: transform var(--dur-base) var(--ease-out), color var(--dur-fast) var(--ease-out);
}
.row-list .row:hover .arrow { transform: translateX(6px); color: var(--ink-terracotta); }
@media (max-width: 768px) {
  .row-list .row { grid-template-columns: 1fr 40px; }
  .row-list .row .num { display: none; }
  .row-list .row .desc { grid-column: 1 / -1; }
}

/* ============================================================
   Burger toggle — visible only on mobile
   ============================================================ */
.nav-toggle { display: none; }

@media (max-width: 900px) {
  .site-header {
    position: relative;
    padding: var(--space-5);
    align-items: center;
    justify-content: center;
    text-align: center;
    flex-wrap: wrap;
  }
  .site-header .brand { align-items: center; }
  .site-header .haskil-mark { gap: 7px; margin-bottom: 0; }
  .site-header .haskil-mark .dot { width: 8px; height: 8px; }
  .site-header .haskil-mark .line { width: 28px; }
  .site-header .wordmark { font-size: 26px; }

  /* Burger button — absolute right, vertically centered with the brand row */
  .nav-toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 36px;
    height: 36px;
    background: transparent;
    border: 0;
    cursor: pointer;
    padding: 0;
    color: inherit;
    position: absolute;
    right: var(--space-5);
    top: var(--space-5);
  }
  .nav-toggle-bar {
    display: block;
    width: 24px;
    height: 1.5px;
    background: currentColor;
    transition: transform var(--dur-base) var(--ease-out), opacity var(--dur-fast) var(--ease-out);
  }
  .nav-open .nav-toggle .nav-toggle-bar:nth-child(1) {
    transform: translateY(6.5px) rotate(45deg);
  }
  .nav-open .nav-toggle .nav-toggle-bar:nth-child(2) { opacity: 0; }
  .nav-open .nav-toggle .nav-toggle-bar:nth-child(3) {
    transform: translateY(-6.5px) rotate(-45deg);
  }

  /* Nav hidden by default on mobile; expanded below the brand when .nav-open */
  .site-nav {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: center;
    gap: 0;
    padding-top: var(--space-5);
  }
  .nav-open .site-nav { display: flex; }
  .site-nav a { font-size: 14px; padding: 10px 0; }
}
