/**
 * BildMart customer site — shared design system
 *
 * Phase FF-1 — extracted from the Claude v2 no-media landing HTML.
 * All page-level styles (hero, cards, sections) that appear on more
 * than one page live here. Per-page unique styles go inline in the
 * respective Blade view.
 *
 * Depends on: /site/tokens.css (must be loaded first)
 */

/* ─── Tweakable variables ───────────────────────────────────────────── */
:root {
  --accent:       var(--bm-teal);
  --accent-light: var(--bm-teal-light);
  --accent-deep:  #1F8A6B;
  --tint:         #ECF6F1;
  --tint-deep:    #E2F0EA;
  --tint-line:    rgba(45, 168, 132, 0.18);
  --page:         #F7F9FA;
  --shadow-sm:    0 1px 2px rgba(26,32,64,0.04), 0 1px 3px rgba(26,32,64,0.05);
  --shadow-md:    0 2px 6px rgba(26,32,64,0.05), 0 8px 24px rgba(26,32,64,0.06);
  --shadow-lg:    0 4px 12px rgba(26,32,64,0.06), 0 18px 48px rgba(26,32,64,0.09);
  --section-pad:  112px;
  --container:    1180px;
  --hair:         rgba(26, 32, 64, 0.10);
  --hair-soft:    rgba(26, 32, 64, 0.07);
}
html.compact { --section-pad: 76px; }

/* ─── Base ──────────────────────────────────────────────────────────── */
html, body { background: var(--page); color: var(--bm-navy); scroll-behavior: smooth; }
body       { font-family: var(--font-body); -webkit-font-smoothing: antialiased; }
a          { color: inherit; text-decoration: none; }
img        { display: block; max-width: 100%; }
.container { max-width: var(--container); margin: 0 auto; padding: 0 40px; }

/* ─── Typography ────────────────────────────────────────────────────── */
h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  color: var(--bm-navy);
  font-weight: 600;
  letter-spacing: -0.02em;
}
.display  { font-size: clamp(38px, 4.6vw, 60px); line-height: 1.06; font-weight: 600; letter-spacing: -0.03em; }
.h-xl     { font-size: clamp(27px, 3vw, 38px);   line-height: 1.12; font-weight: 600; letter-spacing: -0.022em; }
.h-lg     { font-size: 24px; line-height: 1.2;  font-weight: 600; }
.h-md     { font-size: 19px; line-height: 1.3;  font-weight: 600; }
.lead     { font-size: 18px;   line-height: 1.62; color: var(--bm-text-secondary); font-weight: 400; }
.body     { font-size: 15.5px; line-height: 1.65; color: var(--bm-text-secondary); }
.body-sm  { font-size: 13.5px; line-height: 1.55; color: var(--bm-text-secondary); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 12px; font-weight: 600; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--accent-deep);
}
.eyebrow::before {
  content: ""; width: 18px; height: 1px;
  background: var(--accent); display: inline-block;
}
.eyebrow.no-rule::before { display: none; }

/* ─── Buttons ───────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-body); font-weight: 600; font-size: 14.5px; line-height: 1;
  padding: 13px 20px; border-radius: 8px; border: 1px solid transparent;
  cursor: pointer; transition: all .16s ease; white-space: nowrap;
}
.btn .arrow           { transition: transform .16s ease; }
.btn:hover .arrow     { transform: translateX(3px); }
.btn-primary          { background: var(--bm-navy); color: #fff; }
.btn-primary:hover    { background: #0d1228; }
.btn-accent           { background: var(--accent); color: #fff; }
.btn-accent:hover     { background: var(--accent-deep); }
.btn-outline          { background: transparent; color: var(--bm-navy); border-color: var(--hair); }
.btn-outline:hover    { border-color: var(--bm-navy); }
.btn-link             { padding: 0; background: transparent; color: var(--bm-navy); font-weight: 600; font-size: 14.5px; white-space: nowrap; }
.btn-link .arrow      { display: inline-block; margin-left: 6px; transition: transform .16s ease; color: var(--accent); }
.btn-link:hover .arrow{ transform: translateX(3px); }
.btn-sm               { padding: 10px 16px; font-size: 13.5px; }

/* ─── Nav ───────────────────────────────────────────────────────────── */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--hair-soft);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 70px;
}
.nav-brand {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-display); font-weight: 700; font-size: 20px;
  letter-spacing: -0.03em; color: var(--bm-navy);
}
.nav-brand svg { width: 30px; height: 22px; }
.nav-links     { display: flex; align-items: center; gap: 34px; }
.nav-links a   { font-size: 14.5px; font-weight: 500; color: var(--bm-text-secondary); transition: color .15s; }
.nav-links a:hover { color: var(--bm-navy); }
.nav-cta       { display: flex; align-items: center; gap: 18px; }

/* User menu dropdown (authed state) */
.user-menu     { position: relative; }
.user-menu button.user-menu-trigger {
  background: transparent; border: 1px solid var(--hair); border-radius: 8px;
  padding: 10px 14px; font-family: var(--font-body); font-weight: 500;
  font-size: 14px; color: var(--bm-navy); cursor: pointer;
  display: flex; align-items: center; gap: 8px;
}
.user-menu button.user-menu-trigger:hover { border-color: var(--bm-navy); }
.user-menu .dropdown {
  position: absolute; top: calc(100% + 8px); right: 0;
  background: #fff; border: 1px solid var(--hair-soft); border-radius: 10px;
  box-shadow: var(--shadow-md); min-width: 180px; padding: 6px 0;
}
.user-menu .dropdown a,
.user-menu .dropdown button {
  display: block; width: 100%; text-align: left;
  padding: 10px 16px; font-size: 14px; color: var(--bm-navy);
  background: transparent; border: none; cursor: pointer; font-family: inherit;
}
.user-menu .dropdown a:hover,
.user-menu .dropdown button:hover { background: var(--tint); }

/* ─── Sections ──────────────────────────────────────────────────────── */
section.bm-section { padding: var(--section-pad) 0; }
.alt      { background: var(--tint); }
.surface  { background: var(--bm-white); }
.section-head { max-width: 680px; margin-bottom: 64px; }
.section-head .eyebrow { margin-bottom: 18px; }
.section-head p.lead   { margin-top: 18px; max-width: 600px; }

/* ─── Footer ────────────────────────────────────────────────────────── */
footer {
  padding: 72px 0 36px;
  border-top: 1px solid var(--hair-soft);
}
.foot-top {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px;
  margin-bottom: 56px;
}
.foot-brand           { max-width: 300px; }
.foot-brand svg       { width: 38px; height: 27px; margin-bottom: 18px; }
.foot-brand .bm       { font-family: var(--font-display); font-weight: 700; font-size: 19px; letter-spacing: -0.03em; margin-bottom: 10px; }
.foot-brand p         { font-size: 13.5px; color: var(--bm-text-secondary); line-height: 1.6; }
.foot-col h5          { font-family: var(--font-display); font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--bm-text-muted); margin-bottom: 18px; }
.foot-col ul          { display: flex; flex-direction: column; gap: 11px; list-style: none; }
.foot-col a           { font-size: 14px; color: var(--bm-text-secondary); transition: color .15s; }
.foot-col a:hover     { color: var(--bm-navy); }
.foot-bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 28px; border-top: 1px solid var(--hair-soft);
  font-size: 13px; color: var(--bm-text-muted);
  flex-wrap: wrap; gap: 16px;
}

/* ─── Forms ─────────────────────────────────────────────────────────── */
.form-field           { display: flex; flex-direction: column; gap: 6px; margin-bottom: 20px; }
.form-field label     { font-size: 13px; font-weight: 600; color: var(--bm-navy); letter-spacing: 0.02em; }
.form-field input,
.form-field select,
.form-field textarea {
  font-family: var(--font-body); font-size: 15px; color: var(--bm-navy);
  padding: 12px 14px; background: #fff;
  border: 1px solid var(--hair); border-radius: 8px;
  transition: border-color .15s;
}
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus { outline: none; border-color: var(--accent); }
.form-field textarea  { min-height: 120px; resize: vertical; }
.form-error           { font-size: 12.5px; color: var(--bm-error); }
.form-flash-success   { background: var(--bm-success-bg); border: 1px solid var(--bm-success); color: #14532d; padding: 12px 16px; border-radius: 8px; margin-bottom: 20px; font-size: 14px; }
.form-flash-error     { background: var(--bm-error-bg);   border: 1px solid var(--bm-error);   color: #7f1d1d; padding: 12px 16px; border-radius: 8px; margin-bottom: 20px; font-size: 14px; }

/* ─── Mobile menu (Alpine.js) ──────────────────────────────────────── */
.mobile-nav-toggle {
  display: none;
  background: transparent; border: none; cursor: pointer;
  padding: 8px; color: var(--bm-navy);
}
.mobile-nav-toggle svg { width: 24px; height: 24px; }

.mobile-nav-panel {
  position: fixed; top: 70px; left: 0; right: 0;
  background: #fff; border-bottom: 1px solid var(--hair-soft);
  padding: 24px; z-index: 49;
  box-shadow: var(--shadow-md);
}
.mobile-nav-panel a {
  display: block; padding: 12px 0; font-size: 16px; font-weight: 500;
  color: var(--bm-navy); border-bottom: 1px solid var(--hair-soft);
}
.mobile-nav-panel a:last-of-type { border-bottom: none; }
.mobile-nav-panel .mobile-nav-cta { margin-top: 16px; display: flex; gap: 12px; }

/* ─── Responsive ────────────────────────────────────────────────────── */
@media (max-width: 940px) {
  .container    { padding: 0 24px; }
  .nav-links    { display: none; }
  .nav-cta .btn-link { display: none; }
  .mobile-nav-toggle { display: inline-flex; }
  .foot-top     { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 560px) {
  .foot-top     { grid-template-columns: 1fr; }
  .foot-bottom  { flex-direction: column; align-items: flex-start; }
}
