/* QuickFix Facilities Management — design system
   Direction: confident, trustworthy operations brand for LA property managers.
   Navy + amber ("quick"), editorial hierarchy, no generic template look. */

:root {
  /* palette */
  --bg: #ffffff;
  --surface: #f4f7fb;
  --surface-2: #eaf0f7;
  --ink: #0d1b2e;
  --ink-soft: #47566b;
  --ink-faint: #7a8699;
  --primary: #12386b;
  --primary-dark: #0b2545;
  --primary-ink: #eaf2ff;
  --accent: #f59e0b;
  --accent-dark: #d67f04;
  --line: #dbe3ee;
  --ok: #1f8a5b;

  /* type */
  --font-sans: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --text-xs: 0.8rem;
  --text-sm: 0.925rem;
  --text-base: clamp(1rem, 0.96rem + 0.2vw, 1.075rem);
  --text-lg: clamp(1.15rem, 1rem + 0.6vw, 1.35rem);
  --text-h3: clamp(1.3rem, 1.1rem + 0.8vw, 1.6rem);
  --text-h2: clamp(1.8rem, 1.4rem + 1.8vw, 2.7rem);
  --text-hero: clamp(2.4rem, 1.5rem + 4vw, 4.4rem);

  /* space */
  --space-section: clamp(3.5rem, 2.5rem + 4vw, 7rem);
  --radius: 14px;
  --radius-sm: 9px;
  --shadow-sm: 0 1px 3px rgba(13, 27, 46, 0.08), 0 1px 2px rgba(13, 27, 46, 0.04);
  --shadow: 0 12px 32px -12px rgba(13, 27, 46, 0.22);
  --shadow-lg: 0 30px 60px -20px rgba(11, 37, 69, 0.35);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: var(--text-base);
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 { line-height: 1.1; letter-spacing: -0.02em; margin: 0 0 0.5em; }
p { margin: 0 0 1em; color: var(--ink-soft); }
a { color: var(--primary); text-decoration: none; }
img { max-width: 100%; display: block; }

.wrap { width: min(1160px, 92vw); margin-inline: auto; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-size: var(--text-xs); font-weight: 700; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--accent-dark);
}
.eyebrow::before { content: ""; width: 26px; height: 2px; background: var(--accent); border-radius: 2px; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1.5rem; padding: 0.9rem 0;
}
.brand { display: inline-flex; align-items: center; gap: 0.55rem; font-weight: 800; font-size: 1.28rem; color: var(--ink); letter-spacing: -0.03em; }
.brand .mark {
  width: 34px; height: 34px; border-radius: 9px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  display: grid; place-items: center; color: #fff; font-weight: 900; font-size: 1.1rem;
  box-shadow: inset 0 0 0 2px rgba(245, 158, 11, 0.9);
}
.brand b { color: var(--accent-dark); }
.nav-links { display: flex; align-items: center; gap: 1.6rem; list-style: none; margin: 0; padding: 0; }
.nav-links a { color: var(--ink-soft); font-weight: 600; font-size: var(--text-sm); transition: color 0.2s; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--primary); }
.nav-toggle { display: none; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-weight: 700; font-size: var(--text-sm); padding: 0.75rem 1.35rem;
  border-radius: 999px; border: 1px solid transparent; cursor: pointer;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.2s;
}
.btn-primary { background: var(--accent); color: #23180a; box-shadow: 0 6px 18px -6px rgba(245, 158, 11, 0.7); }
.btn-primary:hover { transform: translateY(-2px); background: var(--accent-dark); color: #1c1305; }
.btn-ghost { background: transparent; color: var(--primary); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--primary); transform: translateY(-2px); }
.btn-dark { background: var(--primary); color: #fff; }
.btn-dark:hover { background: var(--primary-dark); transform: translateY(-2px); }
.btn-lg { padding: 0.95rem 1.7rem; font-size: var(--text-base); }

/* ---------- hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background: radial-gradient(120% 120% at 85% 0%, #17457f 0%, var(--primary-dark) 55%, #08192f 100%);
  color: #fff;
}
.hero::after {
  content: ""; position: absolute; right: -10%; top: -20%;
  width: 60%; height: 140%;
  background: radial-gradient(circle at center, rgba(245, 158, 11, 0.22), transparent 60%);
  pointer-events: none;
}
.hero-inner { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 3rem; align-items: center; padding: clamp(3.5rem, 8vw, 6.5rem) 0; }
.hero h1 { font-size: var(--text-hero); color: #fff; }
.hero h1 .hl { color: var(--accent); }
.hero p.lead { font-size: var(--text-lg); color: #c7d6ea; max-width: 34ch; }
.hero .eyebrow { color: #ffd27a; }
.hero .eyebrow::before { background: var(--accent); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 0.85rem; margin-top: 1.8rem; }
.hero-panel {
  background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius); padding: 1.6rem; backdrop-filter: blur(4px);
}
.hero-panel h3 { color: #fff; font-size: 1.05rem; }
.hero-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-top: 1.4rem; }
.stat { }
.stat .n { font-size: 1.7rem; font-weight: 800; color: var(--accent); letter-spacing: -0.03em; }
.stat .l { font-size: var(--text-xs); color: #9fb2cc; line-height: 1.3; }

/* ---------- sections ---------- */
section { padding-block: var(--space-section); }
.section-head { max-width: 62ch; margin-bottom: 2.6rem; }
.section-head h2 { font-size: var(--text-h2); color: var(--ink); }
.section-head p { font-size: var(--text-lg); }
.bg-surface { background: var(--surface); }

/* cards grid */
.grid { display: grid; gap: 1.2rem; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.card {
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.6rem; box-shadow: var(--shadow-sm);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: #c3d2e6; }
.card .ico {
  width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center;
  background: var(--surface-2); color: var(--primary); margin-bottom: 1rem;
}
.card .ico svg { width: 24px; height: 24px; }
.card h3 { font-size: var(--text-h3); }
.card p { margin-bottom: 0; font-size: var(--text-sm); }

/* steps */
.steps { counter-reset: step; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6rem; }
.step { position: relative; padding-top: 2.6rem; }
.step::before {
  counter-increment: step; content: counter(step);
  position: absolute; top: 0; left: 0;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--primary); color: #fff; font-weight: 800;
  display: grid; place-items: center; box-shadow: inset 0 0 0 3px var(--accent);
}
.step h3 { font-size: 1.15rem; }
.step p { font-size: var(--text-sm); margin-bottom: 0; }

/* feature list */
.features { list-style: none; padding: 0; margin: 0; display: grid; gap: 1rem; }
.features li { display: flex; gap: 0.8rem; align-items: flex-start; }
.features svg { flex: none; width: 22px; height: 22px; color: var(--ok); margin-top: 2px; }
.features b { color: var(--ink); }

/* split */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }

/* CTA band */
.cta-band {
  background: linear-gradient(120% 140% at 0% 0%, var(--primary) 0%, var(--primary-dark) 70%);
  color: #fff; border-radius: calc(var(--radius) + 6px); padding: clamp(2.2rem, 5vw, 3.6rem);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.6rem;
  box-shadow: var(--shadow-lg);
}
.cta-band h2 { color: #fff; font-size: var(--text-h2); max-width: 20ch; }
.cta-band p { color: #c7d6ea; margin: 0; }

/* ---------- forms ---------- */
.form-card { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.4rem, 3vw, 2.4rem); box-shadow: var(--shadow-sm); }
.field { margin-bottom: 1.2rem; }
.field label { display: block; font-weight: 600; font-size: var(--text-sm); color: var(--ink); margin-bottom: 0.4rem; }
.field .req { color: var(--accent-dark); }
.field input, .field select, .field textarea {
  width: 100%; padding: 0.7rem 0.85rem; font: inherit; color: var(--ink);
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(18, 56, 107, 0.12); background: #fff;
}
.field textarea { resize: vertical; min-height: 96px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.hint { font-size: var(--text-xs); color: var(--ink-faint); margin-top: 0.3rem; }

/* rate table */
.rate-table { width: 100%; border-collapse: collapse; font-size: var(--text-sm); }
.rate-table th, .rate-table td { padding: 0.6rem 0.7rem; text-align: left; border-bottom: 1px solid var(--line); }
.rate-table th { background: var(--surface); font-weight: 700; color: var(--ink); font-size: var(--text-xs); text-transform: uppercase; letter-spacing: 0.05em; }
.rate-table input, .rate-table select { padding: 0.45rem 0.55rem; }
.rate-table .svc { font-weight: 600; color: var(--ink); }
.table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }

.callout { background: var(--surface); border-left: 4px solid var(--accent); border-radius: var(--radius-sm); padding: 1.1rem 1.3rem; font-size: var(--text-sm); }
.callout b { color: var(--ink); }

/* ---------- footer ---------- */
.site-footer { background: var(--primary-dark); color: #b8c8de; padding-block: 3.5rem 2rem; margin-top: var(--space-section); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2.5rem; }
.site-footer .brand { color: #fff; }
.site-footer h4 { color: #fff; font-size: var(--text-sm); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 1rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.6rem; }
.site-footer a { color: #b8c8de; font-size: var(--text-sm); }
.site-footer a:hover { color: var(--accent); }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, 0.12); margin-top: 2.5rem; padding-top: 1.4rem; display: flex; flex-wrap: wrap; gap: 0.8rem; justify-content: space-between; font-size: var(--text-xs); color: #8598b3; }

/* ---------- page hero (inner pages) ---------- */
.page-hero { background: linear-gradient(120% 120% at 90% 0%, #17457f, var(--primary-dark)); color: #fff; padding-block: clamp(3rem, 7vw, 5rem); }
.page-hero h1 { font-size: clamp(2rem, 1.4rem + 3vw, 3.4rem); color: #fff; }
.page-hero p { color: #c7d6ea; font-size: var(--text-lg); max-width: 52ch; margin-bottom: 0; }
.page-hero .eyebrow { color: #ffd27a; }
.page-hero .eyebrow::before { background: var(--accent); }

.badge-row { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 1.4rem; }
.badge { font-size: var(--text-xs); font-weight: 600; padding: 0.35rem 0.8rem; border-radius: 999px; background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.16); color: #dbe7f5; }

.msg-ok { display: none; background: #e7f6ee; border: 1px solid #b6e0c8; color: #14603d; padding: 1rem 1.2rem; border-radius: var(--radius-sm); margin-bottom: 1.2rem; font-size: var(--text-sm); }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .hero-inner, .split { grid-template-columns: 1fr; }
  .grid-3, .steps { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero-panel { order: -1; }
}
@media (max-width: 640px) {
  .nav-links {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: flex-start; gap: 0;
    background: #fff; border-bottom: 1px solid var(--line);
    padding: 0.5rem 6vw 1rem; display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links li { width: 100%; padding: 0.6rem 0; border-bottom: 1px solid var(--surface-2); }
  .nav-toggle { display: inline-grid; place-items: center; width: 42px; height: 42px; border: 1px solid var(--line); border-radius: 10px; background: #fff; cursor: pointer; }
  .nav-toggle span, .nav-toggle span::before, .nav-toggle span::after { content: ""; display: block; width: 18px; height: 2px; background: var(--ink); position: relative; }
  .nav-toggle span::before { position: absolute; top: -6px; } .nav-toggle span::after { position: absolute; top: 6px; }
  .grid-3, .grid-2, .steps, .field-row, .footer-grid { grid-template-columns: 1fr; }
  .cta-band { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
