/* First Contractor Services: public marketing page.
   Look and feel follows the FCS Bid app. Rule: never type a raw color or size here.
   Use the named values (var(--fcs-...)) from tokens.css. If one is missing,
   add it to tokens.css first. */

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: var(--fcs-font-family);
  font-size: var(--fcs-font-size-lg);
  color: var(--fcs-color-text);
  background: var(--fcs-color-surface);
  line-height: 1.6;
}

a { color: var(--fcs-color-primary); }

/* Top bar (same style as the bid app header) */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--fcs-space-4);
  height: var(--fcs-header-height);
  padding: 0 var(--fcs-space-5);
  background: var(--fcs-color-surface);
  border-bottom: 1px solid var(--fcs-color-border);
  box-shadow: var(--fcs-shadow-header);
  position: sticky;
  top: 0;
  z-index: 100;
}
.brand {
  display: flex;
  align-items: center;
  gap: var(--fcs-space-3);
  text-decoration: none;
  color: var(--fcs-color-primary);
  font-size: 17px;
  font-weight: var(--fcs-font-weight-bold);
  letter-spacing: 0.04em;
}
.brand img { height: 36px; width: 36px; }

/* Buttons (same style as the bid app's primary button) */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--fcs-space-2) 20px;
  background: var(--fcs-color-primary);
  border: 1px solid var(--fcs-color-primary);
  color: var(--fcs-color-text-inverse);
  font-family: var(--fcs-font-family);
  font-size: var(--fcs-font-size-lg);
  font-weight: var(--fcs-font-weight-bold);
  text-decoration: none;
  border-radius: var(--fcs-radius);
  transition: background var(--fcs-transition), border-color var(--fcs-transition);
  white-space: nowrap;
}
.button:hover, .button:focus {
  background: var(--fcs-color-primary-hover);
  border-color: var(--fcs-color-primary-hover);
}
.button-large { padding: var(--fcs-space-3) var(--fcs-space-6); }

/* Layout */
main > section { padding: 64px var(--fcs-space-5); }
main > section > * {
  max-width: var(--fcs-page-width);
  margin-left: auto;
  margin-right: auto;
}

h1 {
  font-size: clamp(30px, 5vw, 46px);
  font-weight: var(--fcs-font-weight-bold);
  line-height: 1.15;
  margin: 0 0 var(--fcs-space-4);
}
h2 {
  font-size: var(--fcs-font-size-xxl);
  font-weight: var(--fcs-font-weight-bold);
  margin: 0 0 var(--fcs-space-5);
}
h3 {
  font-size: var(--fcs-font-size-xl);
  font-weight: var(--fcs-font-weight-bold);
  margin: 0 0 var(--fcs-space-3);
  color: var(--fcs-color-primary);
}

/* Top section */
.hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  max-width: calc(var(--fcs-page-width) + 2 * var(--fcs-space-5));
  margin: 0 auto;
}
main > .hero > * { margin: 0; }
.hero-text { flex: 1 1 auto; }
.lead {
  font-size: var(--fcs-font-size-xl);
  color: var(--fcs-color-text-mid);
  margin: 0 0 28px;
}
.hero-logo { width: 280px; height: auto; flex: 0 0 auto; }

/* Services (white cards on the warm grey background, like the app) */
.services { background: var(--fcs-color-surface-alt); }
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--fcs-space-5);
}
.card {
  background: var(--fcs-color-surface);
  border: 1px solid var(--fcs-color-border);
  border-radius: var(--fcs-radius-lg);
  box-shadow: var(--fcs-shadow-card);
  padding: var(--fcs-space-5);
}
.card ul { margin: 0; padding-left: 20px; }
.card li { margin-bottom: var(--fcs-space-1); }
.note { margin-top: var(--fcs-space-6); color: var(--fcs-color-text-mid); }

/* Contact */
.contact p { margin: 0 auto var(--fcs-space-4); }

/* Footer */
footer {
  border-top: 1px solid var(--fcs-color-border);
  background: var(--fcs-color-surface-alt);
  padding: var(--fcs-space-5);
  color: var(--fcs-color-text-muted);
  font-size: var(--fcs-font-size-sm);
  text-align: center;
}
footer p { max-width: 760px; margin: 0 auto; }
footer .copyright { margin-bottom: var(--fcs-space-2); }

/* Phones and small screens */
@media (max-width: 760px) {
  .cards { grid-template-columns: 1fr; }
  .hero { flex-direction: column-reverse; text-align: center; }
  .hero-logo { width: 200px; }
  .brand span { display: none; }
  main > section { padding: 40px 20px; }
}
