/*
Theme Name: Aptus HCM Solutions
Theme URI: https://aptushcm.com
Author: Aptus HCM Solutions
Description: Lightweight code-first theme for the Aptus HCM Solutions website. PHP templates + ACF fields, no page builders. Modern dark UI with a cyan-to-blue gradient accent, glass surfaces and a soft gradient glow.
Version: 0.2.0
Requires PHP: 7.4
Text Domain: aptus-hcm
*/

/* =========================================================
   Brand tokens
   ========================================================= */
:root {
  /* brand accent (from sales-materials) */
  --cyan:  #22D3EE;
  --blue:  #3B82F6;
  --indigo:#4F46E5;
  --grad:  linear-gradient(135deg, var(--cyan) 0%, var(--blue) 55%, var(--indigo) 100%);
  --grad-soft: linear-gradient(135deg, rgba(34,211,238,.16), rgba(59,130,246,.16));

  /* dark surface system */
  --bg:        #061422;   /* deep base */
  --bg-2:      #0A2036;   /* raised base */
  --surface:   rgba(255,255,255,0.045);
  --surface-2: rgba(255,255,255,0.07);
  --border:    rgba(255,255,255,0.10);
  --border-2:  rgba(255,255,255,0.18);

  /* text */
  --text:        #C6D5E6;
  --text-strong: #FFFFFF;
  --muted:       #7E93AB;

  --max:   1140px;
  --radius: 18px;
  --shadow: 0 24px 60px -20px rgba(0,0,0,.65);
  --glow:   0 0 40px -6px rgba(59,130,246,.55);
}

/* =========================================================
   Base
   ========================================================= */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Inter", "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  background-color: var(--bg);
  background-image:
    radial-gradient(900px 520px at 78% -8%, rgba(34,211,238,.16), transparent 60%),
    radial-gradient(820px 480px at 8% 4%, rgba(59,130,246,.16), transparent 58%),
    radial-gradient(1000px 700px at 50% 118%, rgba(79,70,229,.14), transparent 60%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; }
a { color: #8FD3FF; text-decoration: none; }
a:hover { color: #B9E4FF; }

h1, h2, h3, h4 { color: var(--text-strong); line-height: 1.15; margin: 0 0 .5em; letter-spacing: -0.02em; font-weight: 700; }
h1 { font-size: clamp(2.2rem, 4.6vw, 3.5rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
h3 { font-size: 1.18rem; }
p  { margin: 0 0 1em; }

.container { max-width: var(--max); margin: 0 auto; padding: 0 24px; }

/* gradient text utility */
.grad-text {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* =========================================================
   Header — sticky glass
   ========================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(6,20,34,.72);
  backdrop-filter: saturate(150%) blur(14px);
  -webkit-backdrop-filter: saturate(150%) blur(14px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 16px 0;
}
.brand {
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--text-strong);
  letter-spacing: -0.01em;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.brand:hover { color: var(--text-strong); }
.brand-mark {
  width: 30px; height: 30px;
  border-radius: 9px;
  background: var(--grad);
  box-shadow: var(--glow);
  display: inline-block;
  position: relative;
  flex: none;
}
.brand-mark::after {
  content: "";
  position: absolute; inset: 7px;
  border-radius: 4px;
  background: rgba(6,20,34,.85);
}
.brand .brand-kicker {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.site-nav ul { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; align-items: center; }
.site-nav a {
  color: var(--text);
  font-weight: 500;
  font-size: 0.95rem;
  padding: 8px 14px;
  border-radius: 9px;
}
.site-nav a:hover { color: var(--text-strong); background: var(--surface); }
.site-nav .current-menu-item > a,
.site-nav .current_page_item > a { color: var(--text-strong); background: var(--surface-2); }

/* =========================================================
   Buttons
   ========================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.2;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, border-color .18s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary {
  background: var(--grad);
  color: #04121F;
  box-shadow: 0 10px 30px -8px rgba(59,130,246,.6);
}
.btn-primary:hover { color: #04121F; box-shadow: 0 16px 40px -10px rgba(59,130,246,.8); }
.btn-ghost {
  background: var(--surface);
  color: var(--text-strong);
  border-color: var(--border-2);
  backdrop-filter: blur(6px);
}
.btn-ghost:hover { color: var(--text-strong); border-color: var(--cyan); background: var(--surface-2); }
.btn[aria-disabled="true"] {
  background: var(--surface-2);
  color: var(--muted);
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
  border-color: var(--border);
}

/* =========================================================
   Sections
   ========================================================= */
.section { padding: 88px 0; position: relative; }
.section-head { max-width: 42em; margin-bottom: 44px; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--cyan);
  padding: 6px 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--grad-soft);
  margin-bottom: 18px;
}
.lead { color: var(--text); font-size: 1.12rem; }

/* =========================================================
   Hero
   ========================================================= */
.hero { padding: 92px 0 80px; position: relative; overflow: hidden; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 8px 7px 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text);
  font-size: .86rem;
  margin-bottom: 24px;
}
.hero-badge .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 0 4px rgba(34,211,238,.18);
}
.hero-badge .pill {
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--grad);
  color: #04121F;
  font-weight: 600;
  font-size: .78rem;
}
.hero h1 { margin-bottom: .35em; }
.hero-tagline { color: var(--text); font-size: 1.28rem; margin: 0 0 18px; font-weight: 500; }
.hero-intro { max-width: 40em; font-size: 1.08rem; color: var(--text); }
.hero-actions { margin-top: 30px; display: flex; gap: 14px; flex-wrap: wrap; }
.hero-trust { margin-top: 26px; display: flex; flex-wrap: wrap; gap: 10px 22px; color: var(--muted); font-size: .9rem; }
.hero-trust span { display: inline-flex; align-items: center; gap: 8px; }
.hero-trust svg { color: var(--cyan); flex: none; }

/* App-window mockup (decorative) */
.mockup {
  border-radius: 16px;
  border: 1px solid var(--border-2);
  background: linear-gradient(180deg, rgba(16,38,60,.92), rgba(9,24,40,.92));
  box-shadow: var(--shadow);
  overflow: hidden;
  position: relative;
}
.mockup::before {
  content: "";
  position: absolute; inset: 0;
  padding: 1px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(34,211,238,.5), transparent 40%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  pointer-events: none;
}
.mockup-bar {
  display: flex; align-items: center; gap: 7px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  background: rgba(255,255,255,.03);
}
.mockup-bar i { width: 11px; height: 11px; border-radius: 50%; background: #33465c; display: inline-block; }
.mockup-bar i:nth-child(1){ background:#ff5f57; } .mockup-bar i:nth-child(2){ background:#febc2e; } .mockup-bar i:nth-child(3){ background:#28c840; }
.mockup-bar span { margin-left: 8px; color: var(--muted); font-size: .78rem; }
.mockup-body { padding: 16px; }
.mockup-row { display: grid; grid-template-columns: 1.4fr 1fr 1fr auto; gap: 10px; align-items: center; padding: 9px 6px; border-bottom: 1px solid rgba(255,255,255,.05); font-size: .82rem; }
.mockup-row.head { color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .06em; font-size: .68rem; border-bottom-color: var(--border); }
.mockup-cell { color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tag { font-size: .68rem; font-weight: 600; padding: 3px 9px; border-radius: 999px; justify-self: start; }
.tag.match    { color: #7CF2C4; background: rgba(40,200,120,.14); border: 1px solid rgba(40,200,120,.3); }
.tag.mismatch { color: #FFC98A; background: rgba(255,160,60,.14); border: 1px solid rgba(255,160,60,.32); }
.mockup-foot { display:flex; justify-content: space-between; align-items:center; padding: 12px 16px; border-top: 1px solid var(--border); color: var(--muted); font-size: .78rem; }
.mockup-foot b { color: #7CF2C4; }

/* =========================================================
   Cards (selling points)
   ========================================================= */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 22px;
}
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  position: relative;
  transition: transform .2s ease, border-color .2s ease, background .2s ease;
  backdrop-filter: blur(6px);
}
.card:hover { transform: translateY(-4px); border-color: var(--border-2); background: var(--surface-2); }
.icon-chip {
  width: 46px; height: 46px;
  display: inline-grid; place-items: center;
  border-radius: 13px;
  background: var(--grad-soft);
  border: 1px solid var(--border-2);
  color: var(--cyan);
  margin-bottom: 16px;
}
.icon-chip svg { width: 22px; height: 22px; }
.card h3 { margin-bottom: 8px; }
.card p { margin: 0; font-size: 0.97rem; color: var(--text); }

/* =========================================================
   Steps (how it works) — connected timeline
   ========================================================= */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(215px, 1fr));
  gap: 26px;
  position: relative;
}
.step {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 22px;
  position: relative;
}
.step-num {
  width: 40px; height: 40px;
  display: inline-grid; place-items: center;
  border-radius: 11px;
  font-size: 1.05rem; font-weight: 700;
  color: #04121F;
  background: var(--grad);
  box-shadow: 0 8px 22px -8px rgba(59,130,246,.6);
  margin-bottom: 14px;
}
.step h3 { margin: 0 0 6px; }
.step p { margin: 0; font-size: 0.95rem; color: var(--text); }

/* Callout */
.callout {
  background: var(--grad-soft);
  border: 1px solid var(--border);
  border-left: 3px solid var(--cyan);
  border-radius: 0 12px 12px 0;
  padding: 18px 22px;
  color: var(--text-strong);
  margin: 34px 0 0;
  font-size: 1.02rem;
}

/* =========================================================
   CTA band
   ========================================================= */
.cta-band .container { position: relative; }
.cta-panel {
  text-align: center;
  border-radius: 26px;
  padding: 64px 32px;
  border: 1px solid var(--border-2);
  background:
    radial-gradient(600px 300px at 50% -20%, rgba(34,211,238,.22), transparent 60%),
    linear-gradient(180deg, rgba(16,38,60,.9), rgba(9,24,40,.9));
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}
.cta-panel h2 { max-width: 22em; margin: 0 auto .2em; }
.cta-panel .btn { margin-top: 22px; }
.cta-contact { margin-top: 16px; color: var(--muted); font-size: 0.95rem; }

/* =========================================================
   Download page
   ========================================================= */
.download-panel {
  background: linear-gradient(180deg, rgba(16,38,60,.85), rgba(9,24,40,.85));
  border: 1px solid var(--border-2);
  border-radius: var(--radius);
  padding: 36px 32px;
  margin-top: 32px;
  box-shadow: var(--shadow);
}
.download-meta { margin: 18px 0 0; color: var(--muted); font-size: 0.95rem; }
.download-meta strong { color: var(--text-strong); }
.requirements { margin: 12px 0 0; padding: 0; list-style: none; }
.requirements li { margin-bottom: 10px; padding-left: 28px; position: relative; color: var(--text); }
.requirements li::before {
  content: "";
  position: absolute; left: 0; top: 7px;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--grad-soft);
  border: 1px solid var(--cyan);
}
.requirements li::after {
  content: "";
  position: absolute; left: 5px; top: 11px;
  width: 5px; height: 8px;
  border: solid var(--cyan);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

/* =========================================================
   Generic content
   ========================================================= */
.entry-content { max-width: 44em; }
.entry-content h2 { margin-top: 1.6em; }
.entry-content a { text-decoration: underline; }
.page-header { padding: 72px 0 8px; }

/* =========================================================
   Footer
   ========================================================= */
.site-footer {
  border-top: 1px solid var(--border);
  margin-top: 40px;
  padding: 34px 0 40px;
  color: var(--muted);
  font-size: 0.9rem;
  background: rgba(4,14,24,.6);
}
.footer-inner { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; align-items: center; }
.site-footer a { color: var(--text); }
.site-footer a:hover { color: var(--text-strong); }

/* =========================================================
   Motion / responsive
   ========================================================= */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 42px; }
  .hero-visual { order: -1; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .section { padding: 60px 0; }
  .hero { padding: 60px 0 52px; }
  .header-inner { flex-direction: column; align-items: flex-start; }
  .cta-panel { padding: 44px 22px; }
}
@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; }
}
