/* Apex Overhead Doors — shared styles (used by index.html and all subpages) */

:root {
  --steel: #0E2B45;
  --steel-700: #163958;
  --steel-800: #102e4b;
  --charcoal: #1A1A1A;
  --orange: #FF6B1A;
  --orange-600: #ea5c0e;
  --warm-white: #F7F5F2;
  --cool-gray: #D6DBE0;
  --ink: #0A0A0A;
  --ink-2: #2a2f36;
  --ink-3: #5a626d;
  --on-dark: #FFFFFF;
  --on-dark-2: rgba(255,255,255,0.72);
  --on-dark-3: rgba(255,255,255,0.55);

  --font-display: 'Manrope', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;

  --container: 1240px;
  --radius-card: 14px;
  --radius-btn: 8px;

  --shadow-card: 0 1px 0 rgba(14,43,69,0.04);
  --shadow-card-hover: 0 8px 24px -8px rgba(14,43,69,0.18), 0 1px 0 rgba(14,43,69,0.04);
}

*,*::before,*::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font-body);
  color: #fff;
  background: #050507;
  background-image: linear-gradient(180deg, #0d0e10 0%, #050507 900px);
  background-repeat: no-repeat;
  background-attachment: scroll;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
h1, h2, h3, h4 { font-family: var(--font-display); margin: 0; letter-spacing: -0.01em; color: #fff; }
h1 { font-weight: 800; letter-spacing: -0.025em; line-height: 1.05; }
h2 { font-weight: 800; letter-spacing: -0.02em; line-height: 1.1; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
img { display: block; max-width: 100%; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 28px; }
@media (max-width: 700px) { .container { padding: 0 20px; } }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #4a86d6;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.eyebrow.on-dark { color: #4a86d6; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 15px;
  padding: 13px 20px;
  border-radius: var(--radius-btn);
  border: 1px solid transparent;
  transition: transform .18s ease, background .18s ease, color .18s ease, border-color .18s ease, box-shadow .18s ease;
  line-height: 1;
  white-space: nowrap;
}
.btn .arrow { transition: transform .18s ease; }
.btn:hover .arrow { transform: translateX(2px); }
.btn-primary { background: #004890; color: #fff; }
.btn-primary:hover { background: #003a75; }
.btn-outline-light { background: transparent; color: #fff; border-color: rgba(255,255,255,0.35); }
.btn-outline-light:hover { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.6); }
.btn-outline-dark { background: transparent; color: var(--steel); border-color: var(--steel); }
.btn-outline-dark:hover { background: var(--steel); color: #fff; }
.btn-ghost { background: transparent; color: var(--steel); padding: 10px 14px; }
.btn-ghost:hover { color: #4a86d6; }

/* Scroll reveal */
.reveal { opacity: 0; transform: translateY(12px); transition: opacity .5s ease-out, transform .5s ease-out; }
.reveal.in { opacity: 1; transform: none; }

.noise { display: none; }

/* Image placeholder */
.img-placeholder {
  position: relative;
  background:
    repeating-linear-gradient(135deg, rgba(14,43,69,0.06) 0 1px, transparent 1px 14px),
    linear-gradient(180deg, #eef1f5, #dfe5ec);
  border: 1px solid var(--cool-gray);
  border-radius: var(--radius-card);
  overflow: hidden;
  color: var(--steel);
  display: flex; align-items: center; justify-content: center;
}
.img-placeholder.dark {
  background:
    repeating-linear-gradient(135deg, rgba(255,255,255,0.05) 0 1px, transparent 1px 14px),
    linear-gradient(180deg, #1b3a59, #0c243b);
  border-color: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.7);
}
.img-placeholder .lbl {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 6px 10px;
  background: rgba(255,255,255,0.85);
  color: var(--steel);
  border: 1px solid var(--cool-gray);
  border-radius: 4px;
}
.img-placeholder.dark .lbl {
  background: rgba(0,0,0,0.35);
  color: rgba(255,255,255,0.85);
  border-color: rgba(255,255,255,0.12);
}

/* Card — dark theme */
.card {
  background: rgba(255,255,255,0.025);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-card);
  padding: 26px;
  color: #fff;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease, background .2s ease;
}
.card:hover {
  transform: translateY(-2px);
  background: rgba(255,255,255,0.04);
  border-color: rgba(255,255,255,0.16);
  box-shadow: 0 14px 30px -16px rgba(0,0,0,0.7);
}

.todo-flag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 10px;
  color: #b06200;
  background: #fff3e6;
  border: 1px dashed #ffb777;
  padding: 1px 6px;
  border-radius: 4px;
  letter-spacing: 0.06em;
  margin-left: 8px;
  vertical-align: middle;
}
body[data-todos="off"] .todo-flag { display: none; }

.float-call {
  position: fixed;
  right: 18px; bottom: 18px;
  width: 56px; height: 56px;
  border-radius: 999px;
  background: #004890;
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  border: none;
  box-shadow: 0 10px 24px -8px rgba(0,72,144,0.55);
  z-index: 60;
}
.float-call.pulse { animation: pulse 4s ease-in-out infinite; }
@keyframes pulse {
  0%, 80%, 100% { transform: scale(1); }
  85% { transform: scale(1.06); }
  92% { transform: scale(1); }
}

a:focus-visible, button:focus-visible {
  outline: 2px solid #4a86d6;
  outline-offset: 2px;
  border-radius: 6px;
}

::selection { background: #004890; color: #fff; }
