/* ====================================================================
   HVAC TEMPLATE — Shared Design System
   ==================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Geist:wght@300;400;500;600;700;800;900&family=Geist+Mono:wght@400;500;600&display=swap');

:root {
  /* Color */
  --ink: #0E0E0E;
  --ink-2: #1c1c1c;
  --paper: #F5F1E8;
  --paper-2: #EBE5D4;
  --paper-3: #DED7C2;
  --card: #FFFFFF;
  --line: rgba(14,14,14,0.14);
  --line-strong: rgba(14,14,14,0.32);
  --muted: rgba(14,14,14,0.58);
  --muted-2: rgba(14,14,14,0.4);

  /* Accent (overridable via tweaks) */
  --accent: #FF4A1C;
  --accent-ink: #FFFFFF;
  --accent-soft: rgba(255,74,28,0.10);
  --cool: #1B4FC9;
  --ok: #157A4B;
  --warn: #C68B00;
  --danger: #C12A2A;

  /* Type scale */
  --t-display: clamp(64px, 7vw, 120px);
  --t-h1: clamp(44px, 4.4vw, 72px);
  --t-h2: clamp(32px, 2.6vw, 44px);
  --t-h3: clamp(22px, 1.6vw, 28px);
  --t-body: 17px;
  --t-small: 14px;
  --t-mono: 12px;

  /* Radii */
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 16px;

  /* Shadow */
  --shadow-card: 0 1px 0 rgba(14,14,14,0.04), 0 10px 30px -12px rgba(14,14,14,0.18);
  --shadow-pop: 0 30px 60px -20px rgba(14,14,14,0.35);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: 'Geist', system-ui, sans-serif;
  font-size: var(--t-body);
  line-height: 1.5;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
img { display: block; max-width: 100%; }

.mono { font-family: 'Geist Mono', ui-monospace, monospace; letter-spacing: 0.02em; }
.eyebrow {
  font-family: 'Geist Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 52px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: var(--r-md);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
  cursor: pointer;
  transition: transform .08s ease, background .12s ease, color .12s ease, border-color .12s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: var(--accent);
  color: var(--accent-ink);
}
.btn-primary:hover { filter: brightness(1.05); }
.btn-dark {
  background: var(--ink);
  color: var(--paper);
}
.btn-dark:hover { background: #000; }
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line-strong);
}
.btn-ghost:hover { background: var(--paper-2); }
.btn-lg { height: 64px; padding: 0 28px; font-size: 17px; border-radius: var(--r-md); }
.btn-sm { height: 36px; padding: 0 14px; font-size: 13px; border-radius: 8px; }

/* Chips / Pills */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 28px;
  padding: 0 12px;
  font-family: 'Geist Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.04em;
  background: rgba(14,14,14,0.06);
  border-radius: 999px;
  color: var(--ink);
}
.chip-live::before {
  content: "";
  width: 7px; height: 7px;
  background: var(--ok);
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(21,122,75,.18);
  animation: pulse 1.6s ease-in-out infinite;
}
@keyframes pulse {
  0%,100% { opacity: 1; }
  50% { opacity: .5; }
}
.chip-accent { background: var(--accent-soft); color: var(--accent); }
.chip-dark { background: var(--ink); color: var(--paper); }

/* Inputs */
.field {
  display: flex; flex-direction: column; gap: 8px;
}
.label {
  font-family: 'Geist Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.input, .select, .textarea {
  width: 100%;
  height: 56px;
  padding: 0 16px;
  background: var(--card);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-md);
  font: inherit;
  color: var(--ink);
  outline: none;
  transition: border-color .12s ease, box-shadow .12s ease;
}
.textarea { height: 120px; padding: 14px 16px; resize: vertical; }
.input:focus, .select:focus, .textarea:focus {
  border-color: var(--ink);
  box-shadow: 0 0 0 4px rgba(14,14,14,0.06);
}

/* Section helpers */
.container { max-width: 1440px; margin: 0 auto; padding: 0 48px; }
.divider { height: 1px; background: var(--line); }
.divider-strong { height: 1px; background: var(--line-strong); }

/* Logo mark — generic, swappable */
.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: -0.02em;
  font-size: 19px;
  color: var(--ink);
}
.logo-mark {
  width: 28px; height: 28px;
  background: var(--ink);
  color: var(--paper);
  display: grid; place-items: center;
  border-radius: 6px;
  font-family: 'Geist Mono', monospace;
  font-weight: 700;
  font-size: 14px;
}

/* Card */
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
}

/* Placeholder image (template-style striped block) */
.ph {
  position: relative;
  background:
    repeating-linear-gradient(135deg, rgba(14,14,14,0.04) 0 12px, rgba(14,14,14,0.0) 12px 24px),
    var(--paper-2);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  display: grid;
  place-items: center;
  font-family: 'Geist Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  text-align: center;
  padding: 16px;
}

/* Scrollbar polish */
*::-webkit-scrollbar { width: 10px; height: 10px; }
*::-webkit-scrollbar-thumb { background: rgba(14,14,14,0.2); border-radius: 10px; }
*::-webkit-scrollbar-thumb:hover { background: rgba(14,14,14,0.35); }
