/*
Theme Name: ACT Client Portal
Description: Portal-only theme for the ACT Computers client portal. Carries the login page and a slim wrapper around the PowerDesk portal plugin — no marketing pages, because this WordPress exists only to host the portal.
Version: 1.0.0
Author: PowerDesk
*/

/* ------------------------------------------------------------------
   Brand
   ------------------------------------------------------------------
   The portal's own look lives in the plugin's assets/portal.css, which
   drives everything off a handful of custom properties. Re-pointing those
   is the whole of the rebrand — no rules are duplicated or overridden.

   #0060ca is sampled from the ACT mark itself rather than guessed. The
   accent stays warm: it appears about twenty times, on hover states, the
   in-progress status stripe and one KPI tile, and it is what keeps those
   from disappearing into a single-hue blue page.
   ------------------------------------------------------------------ */
:root {
  --p-navy:      #0060ca;
  --p-navy-dk:   #00408a;
  --p-navy-lt:   #e6effa;
}

/* ------------------------------------------------------------------
   Buttons
   ------------------------------------------------------------------
   The login template marks its submit as `btn btn-primary`. The plugin's
   portal.css only *sizes* `.ca-form__submit` — width, padding — while the
   actual appearance lived in the WillpowerPCS theme's own stylesheet. Without
   these rules the sign-in button renders as a bare grey browser default on
   an otherwise finished page.
   ------------------------------------------------------------------ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 10px 18px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
  text-decoration: none;
  transition: background-color .15s ease, border-color .15s ease;
}

.btn-primary {
  background: var(--p-navy);
  border-color: var(--p-navy);
  color: #fff;
}
.btn-primary:hover  { background: var(--p-navy-dk); border-color: var(--p-navy-dk); }
.btn-primary:active { transform: translateY(1px); }
.btn-primary:focus-visible {
  outline: 3px solid rgba(0, 96, 202, .35);
  outline-offset: 2px;
}
.btn-primary:disabled { opacity: .6; cursor: not-allowed; }

/* ------------------------------------------------------------------
   Shell
   ------------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: #f6f8fb;
  color: #1e2532;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
               "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--p-navy); }

.site {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.site-main { flex: 1 0 auto; }

/* ---- header ---- */
.site-header {
  background: #fff;
  border-bottom: 1px solid #e2e8f0;
}

.site-header__inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.site-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: inherit;
}

.site-brand img { display: block; width: 34px; height: 34px; border-radius: 6px; }

.site-brand__name {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: #1e2532;
}

.site-brand__sub {
  font-size: 11px;
  color: #5a6577;
  margin-top: 1px;
}

.site-header__spacer { flex: 1; }

.site-header__action {
  font-size: 12.5px;
  font-weight: 600;
  text-decoration: none;
  color: var(--p-navy);
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  padding: 7px 12px;
  white-space: nowrap;
}
.site-header__action:hover { border-color: var(--p-navy); }

/* ---- footer ---- */
.site-footer {
  flex-shrink: 0;
  background: #fff;
  border-top: 1px solid #e2e8f0;
  margin-top: 32px;
}

.site-footer__inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 18px 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  align-items: center;
  font-size: 12px;
  color: #5a6577;
}

.site-footer__inner a { color: #5a6577; text-decoration: none; }
.site-footer__inner a:hover { color: var(--p-navy); text-decoration: underline; }
.site-footer__spacer { flex: 1; }

/* The portal and login templates are full-bleed; ordinary pages are not. */
.page-shell {
  max-width: 760px;
  margin: 0 auto;
  padding: 40px 20px;
}

@media (max-width: 640px) {
  .site-header__inner { padding: 10px 14px; }
  .site-brand__sub { display: none; }
}
