/* MaintrixPro – White UI (Trusty Tech Palette)
   Primary: Royal Blue #2563EB
   Secondary: Teal #10B981
   Tertiary: Amber #F59E0B
*/
:root{
  --bg: #ffffff;
  --ink: #16202a;
  --muted: #5a6b7a;
  --line: #e8eef3;
  --panel: #f9fbfd;

  --brand: #2563EB;     /* Primary */
  --accent: #10B981;    /* Secondary */
  --highlight: #F59E0B; /* Tertiary */

  --cta: #111827;       /* Dark button */
  --cta-ink: #ffffff;

  --radius: 16px;
  --shadow-soft: 0 10px 30px rgba(2, 8, 23, .06);
  --maxw: 1200px;
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji","Segoe UI Emoji";
  color:var(--ink);
  background: var(--bg);
  line-height:1.55;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
}

/* ------------------------------
   GLOBAL
------------------------------ */
a{color:var(--brand); text-decoration:none}
a:hover{color:#1d4ed8; text-decoration:underline}
img{max-width:100%; height:auto; display:block}
.visually-hidden{position:absolute; left:-9999px; top:auto; width:1px; height:1px; overflow:hidden}
.container{max-width:var(--maxw); margin:0 auto; padding:0 20px}

/* Focus states */
a:focus, button:focus, .btn:focus {
  outline: 3px solid rgba(37,99,235,.35);
  outline-offset: 2px;
}

/* ------------------------------
   HEADER
------------------------------ */

/* Centered, distinguished header nav */
.nav.nav--centered{
  display:grid;
  grid-template-columns: 1fr auto 1fr;
  align-items:center;
  gap:16px;
  padding:14px 0;
}
.links.links--center{
  display:flex; justify-content:center; align-items:center; gap:10px;
}
.actions.actions--right{
  display:flex; justify-content:flex-end; align-items:center; gap:10px;
}

/* Pill menu items */
.link.pill{
  padding:8px 14px;
  border-radius:999px;
  border:1px solid var(--line);
  background:#fff;
  font-weight:700;
  color:var(--ink);
  transition: box-shadow .2s ease, transform .06s ease, border-color .2s ease, background .2s ease;
}
.link.pill:hover{
  text-decoration:none;
  box-shadow: var(--shadow-soft);
  border-color:#dfe7ee;
  transform: translateY(-1px);
}
.link.pill:active{ transform: translateY(0); }

/* Active state helper (add .is-active to current page link if you want) */
.link.pill.is-active{
  border-color: rgba(37,99,235,.35);
  background: linear-gradient(0deg, rgba(37,99,235,.06), rgba(37,99,235,.06)), #fff;
  color:#1d4ed8;
}

/* Mobile: stack layout */
@media (max-width: 880px){
  .nav.nav--centered{
    grid-template-columns: 1fr auto auto;
  }
  .links.links--center{ display:none; }
  .mobile-toggle{ display:inline-flex; }
}


.header{
  position:sticky; top:0; z-index:50;
  background: rgba(255,255,255,.9);
  backdrop-filter: blur(10px);
  border-bottom:1px solid var(--line);
}
.nav{display:flex; align-items:center; gap:20px; padding:14px 0}
.logo{display:flex; align-items:center; gap:10px; font-weight:800; letter-spacing:.2px; color:var(--ink)}
.logo-badge{
  width:36px; height:36px; border-radius:12px;
  background: linear-gradient(135deg, var(--brand), var(--accent));
  display:grid; place-items:center; box-shadow: var(--shadow-soft)
}
.nav-spacer{flex:1}
.nav a.link{color:var(--ink)}
.nav a.link:hover{color:var(--brand)}

/* Buttons */
.btn{
  display:inline-flex; align-items:center; justify-content:center; gap:10px;
  padding:10px 16px; border-radius:999px; font-weight:700; border:1px solid var(--line);
  background:#fff; color:var(--ink);
  transition: transform .06s ease, box-shadow .2s ease, background .2s ease, color .2s ease, border-color .2s ease;
  cursor:pointer; white-space:nowrap;
}
.btn:hover{box-shadow: var(--shadow-soft)}
.btn:active{transform:translateY(1px)}
.btn-ghost{background:#fff}
.btn-cta{background: var(--cta); color: var(--cta-ink); border-color: #0f172a}
.btn-cta:hover{filter:brightness(1.03); box-shadow:var(--shadow-soft); transform:translateY(-1px)}
.mobile-toggle{display:none}
@media (max-width: 880px){
  .nav .links{display:none}
  .mobile-toggle{display:inline-flex}
}

/* ------------------------------
   HERO
------------------------------ */
.hero{padding:72px 0 40px}
.hero-grid{
  display:grid; gap:32px; align-items:center;
  grid-template-columns: 1.1fr .9fr;
}
@media (max-width: 980px){ .hero-grid{grid-template-columns:1fr} }

.kicker{
  color:var(--accent); font-weight:800; letter-spacing:.35px; font-size:.9rem;
  display:inline-flex; align-items:center; gap:8px;
}
.kicker::before{
  content:""; width:8px; height:8px; border-radius:50%;
  background: var(--accent);
}
.h1{font-size: clamp(32px, 4vw, 56px); line-height:1.07; margin:12px 0 14px; font-weight:900; letter-spacing:-.3px}
.hero p{color:var(--muted); font-size: clamp(15px, 1.7vw, 18px)}
.hero-cta{display:flex; gap:12px; flex-wrap:wrap; margin-top:22px}
.hero-card{
  background: var(--panel);
  border:1px solid var(--line);
  border-radius: var(--radius);
  padding:16px; display:flex; gap:14px; align-items:center;
}
.hero-ill{
  background: linear-gradient(180deg, #ffffff, #f7fafc);
  border:1px solid var(--line);
  border-radius: 22px; padding:18px;
  box-shadow: var(--shadow-soft);
}

/* ------------------------------
   SECTIONS
------------------------------ */
.section{padding:56px 0}
.section .head{display:flex; align-items:end; justify-content:space-between; gap:16px; margin-bottom:22px}
.section .head p{color:var(--muted)}
.grid{
  display:grid; gap:16px;
  grid-template-columns: repeat(12, 1fr);
}

/* Cards */
.card{
  grid-column: span 4;
  background:#fff;
  border:1px solid var(--line);
  border-radius: var(--radius);
  padding:18px; display:flex; flex-direction:column; gap:12px;
  transition: transform .12s ease, box-shadow .2s ease, border-color .2s ease;
}
.card:hover{transform: translateY(-2px); box-shadow: var(--shadow-soft); border-color:#dfe7ee}
.card .tag{display:inline-flex; gap:8px; align-items:center; font-size:.85rem; color:var(--muted)}
.card h3{margin:.2rem 0; font-size:1.15rem}
.card p{color:var(--muted); margin:0 0 .2rem}
.card .actions{margin-top:auto; display:flex; gap:10px; flex-wrap:wrap}

/* Module color variants */
.card--elevators { border-color: rgba(37,99,235,.25); }
.card--cleaning  { border-color: rgba(16,185,129,.25); }
.card--appt      { border-color: rgba(17,24,39,.15); }
.tag--elevators { color: var(--brand); }
.tag--cleaning  { color: var(--accent); }
.tag--appt      { color: var(--ink); }

.icon{
  width:36px; height:36px; border-radius:12px;
  background: linear-gradient(135deg, rgba(37,99,235,.08), rgba(16,185,129,.08));
  display:grid; place-items:center; border:1px solid var(--line)
}
.icon--teal svg [stroke]{ stroke: var(--accent); }
.icon svg [stroke]{ stroke: var(--brand); }

@media (max-width: 980px){
  .card{grid-column: span 6}
}
@media (max-width: 640px){
  .card{grid-column: span 12}
}

/* ------------------------------
   CTA BAND
------------------------------ */
.band{
  margin: 48px 0;
  background: linear-gradient(90deg, rgba(37,99,235,.06), rgba(16,185,129,.06));
  border:1px solid var(--line);
  border-radius: 20px;
  display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:16px;
  padding:22px;
}

/* ------------------------------
   FOOTER
------------------------------ */
.footer{
  margin-top:56px; padding:28px 0 36px; color:var(--muted);
  border-top:1px solid var(--line);
  background:#fff;
}
.footer .cols{
  display:grid; gap:18px; grid-template-columns: 2fr 1fr 1fr 1fr;
}
.footer .cols a{color:var(--muted)}
.footer small{display:block; margin-top:14px; opacity:.9}
@media (max-width: 880px){ .footer .cols{grid-template-columns:1fr 1fr} }
@media (max-width: 520px){ .footer .cols{grid-template-columns:1fr} }

/* ------------------------------
   UTILITIES
------------------------------ */
.badge{font-size:.8rem; padding:6px 10px; border-radius:999px; border:1px solid var(--line); background:#fff}
.badge--highlight{
  border-color: rgba(245,158,11,.35);
  background: linear-gradient(0deg, rgba(245,158,11,.08), rgba(245,158,11,.08)), #fff;
  color:#8a5a00;
}
.muted{color:var(--muted)}
.center{text-align:center}

@media (prefers-reduced-motion: reduce){
  .card, .btn{transition:none}
}
