/* payroll.css
   Premium / Luxe styling for Payroll Management page
   Uses Alegreya font (load via Google Fonts in HTML)
*/

/* =========== :root / variables =========== */
:root{
  --accent1: #00d1c7;
  --accent2: #3b82f6;
  --accent3: #6d28d9;
  --brand-grad: linear-gradient(90deg,var(--accent1),var(--accent2),var(--accent3));
  --text: #0b1120;
  --muted: #6b7280;
  --surface: #ffffff;
  --glass-border: rgba(7,16,34,0.06);
  --shadow-lg: 0 20px 50px rgba(7,16,34,0.08);
  --shadow-sm: 0 8px 22px rgba(7,16,34,0.06);
  --radius: 14px;
  --maxw: 1200px;
  --nav-height-desktop: 76px;
  --nav-height-mobile: 64px;
  --page-pad: 20px;
}

/* =========== Base reset & typography =========== */
*{box-sizing:border-box}
html,body{height:100%;margin:0;font-family:'Alegreya',serif;color:var(--text);background:linear-gradient(180deg,#fff,#fbfdff);-webkit-font-smoothing:antialiased}
a{color:inherit;text-decoration:none}
img{display:block;max-width:100%;height:auto}
h1,h2,h3{margin:0 0 12px}
p{margin:0 0 12px;color:var(--muted)}

/* =========== Header / Nav =========== */
.site-header{
  position:fixed;
  top:12px;
  left:50%;
  transform:translateX(-50%);
  width:min(var(--maxw), calc(100% - 32px));
  z-index:1000;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  background:var(--surface);
  padding:10px 16px;
  border-radius:12px;
  border:1px solid rgba(0,0,0,0.04);
  box-shadow:var(--shadow-sm);
}
.site-header .logo img{height:38px}
.main-nav ul{display:flex;gap:18px;list-style:none;margin:0;padding:0}
.main-nav a{font-weight:600;padding:8px 6px;position:relative;color:var(--text)}
.main-nav a::after{content:"";position:absolute;left:0;bottom:-6px;width:0;height:3px;border-radius:3px;background:var(--brand-grad);transition:width .28s}
.main-nav a:hover::after{width:100%}
.main-nav a.active::after{width:100%}

/* ensure top spacing for hero and top-level sections to avoid overlap */
.hero, .banner, .services, .process, .integrations, .compliance, .lux-stats, .case-study, .lux-faq, .pricing, .cta-strip, .form-sec {
  padding-top: calc(var(--nav-height-desktop) + 48px);
}
@media (max-width:900px){
  .hero, .banner, .services, .process, .integrations, .compliance, .lux-stats, .case-study, .lux-faq, .pricing, .cta-strip, .form-sec {
    padding-top: calc(var(--nav-height-mobile) + 36px);
  }
}

/* =========== Utilities =========== */
.wrap{max-width:var(--maxw);margin:0 auto;padding:0 var(--page-pad)}
.center{ text-align:center }
.eyebrow{display:inline-block;background:var(--brand-grad);color:#fff;padding:6px 12px;border-radius:999px;font-weight:700}

/* =========== Buttons (Premium) =========== */
.btn{display:inline-block;padding:12px 22px;border-radius:999px;font-weight:700;cursor:pointer;transition:all .25s}
.btn.primary{background:var(--brand-grad);color:#fff;box-shadow:0 12px 36px rgba(6,40,80,0.12)}
.btn.primary:hover{transform:translateY(-3px);box-shadow:0 22px 56px rgba(6,40,80,0.18)}
.btn.ghost{background:#fff;border:2px solid transparent;border-image:var(--brand-grad) 1;color:var(--text)}
.btn.ghost:hover{background: linear-gradient(90deg, rgba(0,209,199,0.08), rgba(59,130,246,0.06));transform:translateY(-2px)}
@media (max-width:520px){ .btn{width:100%;text-align:center} }

/* =========== HERO / BANNER =========== */
.hero.banner{
  background: linear-gradient(180deg,#ffffff,#fbfdff);
  padding-bottom:44px;
  overflow:visible;
}
.hero-content{
  max-width:var(--maxw);
  margin:0 auto;
  padding: 18px var(--page-pad);
  display:flex;
  flex-direction:column;
  gap:12px;
  align-items:flex-start;
}
.hero.banner h1{
  font-size:clamp(28px,5vw,44px);
  line-height:1.02;
  font-weight:800;
  background:var(--brand-grad);
  -webkit-background-clip:text; -webkit-text-fill-color:transparent;
}
.hero.banner p{max-width:760px;color:var(--muted)}
.cta-group{display:flex;gap:12px;align-items:center}
.trust-strip{margin-top:8px;color:var(--muted);font-weight:600}

/* =========== Badges (snapshot) =========== */
.badges {
  max-width: var(--maxw);
  margin: 28px auto;
  display: flex;
  gap: 18px;
  justify-content: center;
  padding: 16px var(--page-pad);
  flex-wrap: wrap;
}

.badge {
  position: relative;
  padding: 14px 24px;
  font-weight: 700;
  font-size: 1.05rem;
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(255,255,255,0.95), rgba(250,250,255,0.96));
  border: 2px solid transparent;
  background-clip: padding-box;
  box-shadow: 0 10px 28px rgba(7,16,34,0.08), inset 0 2px 6px rgba(255,255,255,0.6);
  color: var(--text);
  transition: all 0.35s ease;
}

.badge::before {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  background: var(--brand-grad);
  z-index: -1;
}

.badge:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 14px 36px rgba(7,16,34,0.12), inset 0 2px 6px rgba(255,255,255,0.7);
}

.badge:hover::before {
  filter: brightness(1.1) saturate(1.1);
}


/* =========== WHAT WE OFFER / SERVICES GRID =========== */
.services {
  padding-bottom: 64px;
}
.services h2 {
  text-align: center;
  font-size: clamp(24px, 3vw, 34px);
  margin-bottom: 18px;
  font-weight: 800;
  background: var(--brand-grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.service-grid {
  max-width: var(--maxw);
  margin: 28px auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 26px;
  padding: 0 var(--page-pad);
}

.card {
  position: relative;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(250, 250, 255, 0.98));
  border-radius: 16px;
  padding: 28px 22px;
  text-align: left;
  border: 1px solid rgba(7, 16, 34, 0.05);
  box-shadow: 0 18px 46px rgba(7, 16, 34, 0.06);
  transition: all 0.35s ease;
  overflow: hidden;
}

.card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 2px;
  background: var(--brand-grad);
  -webkit-mask: 
    linear-gradient(#fff 0 0) content-box, 
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  opacity: 0.35;
}

.card h3 {
  margin: 10px 0 12px;
  font-size: 1.2rem;
  font-weight: 700;
  background: var(--brand-grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.card p {
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.6;
}

.card:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 28px 64px rgba(7, 16, 34, 0.1);
}

.card:hover::before {
  opacity: 0.7;
}


/* =========== Integrations =========== */
.integrations{ padding-bottom:38px }
.integrations h2{ text-align:center; margin-bottom:10px }
.logos{ display:flex; gap:18px; justify-content:center; align-items:center; flex-wrap:wrap; padding:0 var(--page-pad) }
.logos img{ height:44px; filter:grayscale(100%); opacity:0.85; transition:all .25s }
.logos img:hover{ filter:none; opacity:1 }

/* =========== Compliance & Checklist =========== */
.compliance {
  padding: 64px var(--page-pad);
  background: linear-gradient(180deg, #fff, #fbfdff);
}

.compliance h2 {
  text-align: center;
  margin-bottom: 24px;
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 800;
  background: var(--brand-grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.checklist {
  max-width: 980px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, 1fr); /* ✅ always 2 in a row */
  gap: 20px;
  padding: 0 var(--page-pad);
}

.checklist li {
  position: relative;
  background: linear-gradient(180deg, rgba(255,255,255,0.95), rgba(250,250,255,0.96));
  padding: 18px 18px 18px 50px;
  border-radius: 14px;
  border: 1px solid rgba(7,16,34,0.06);
  box-shadow: 0 16px 42px rgba(7,16,34,0.06);
  font-weight: 600;
  font-size: 1rem;
  color: var(--text);
  transition: all 0.3s ease;
  overflow: hidden;
}

/* gradient accent bar on left */
.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 6px;
  border-radius: 14px 0 0 14px;
  background: var(--brand-grad);
  opacity: 0.9;
}

/* decorative icon */
.checklist li::after {
  content: "✔";
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.1rem;
  background: var(--brand-grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 800;
}

/* hover interaction */
.checklist li:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 22px 56px rgba(7,16,34,0.12);
}

@media (max-width: 640px) {
  .checklist {
    grid-template-columns: 1fr; /* ✅ stack on mobile */
  }
}


/* ======================
   Luxe Case Study
   ====================== */
.case-study1 {
  padding: 64px var(--page-pad);
  background: linear-gradient(180deg, #fff, #fbfdff);
  position: relative;
  overflow: hidden;
}

.case-study1 h2 {
  text-align: center;
  margin-bottom: 28px;
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 800;
  background: var(--brand-grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  position: relative;
}

.case-study1 h2::after {
  content: "";
  display: block;
  width: 60px;
  height: 4px;
  margin: 10px auto 0;
  border-radius: 2px;
  background: var(--brand-grad);
}

/* case study card */
.case-study1 .story {
  max-width: 960px;
  margin: 0 auto;
  background: linear-gradient(180deg, rgba(255,255,255,0.96), rgba(250,250,255,0.98));
  border: 1px solid rgba(7,16,34,0.05);
  border-radius: 18px;
  box-shadow: 0 18px 46px rgba(7,16,34,0.06);
  padding: 32px 28px;
  position: relative;
  overflow: hidden;
  transition: transform .35s, box-shadow .35s;
}

.case-study1 .story::before {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  background: var(--brand-grad);
  z-index: -1;
  opacity: 0.25;
  -webkit-mask: linear-gradient(#fff 0 0) content-box, 
                 linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
}

/* paragraphs */
.case-study1 .story p {
  margin: 14px 0;
  font-size: 1.02rem;
  line-height: 1.6;
  color: var(--muted);
  position: relative;
  padding-left: 18px;
}

.case-study1 .story p strong {
  color: var(--text);
  font-weight: 700;
}

.case-study1 .story p::before {
  content: "➤";
  position: absolute;
  left: 0;
  top: 4px;
  font-size: 0.9rem;
  background: var(--brand-grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* hover effect */
.case-study1 .story:hover {
  transform: translateY(-8px) scale(1.01);
  box-shadow: 0 26px 64px rgba(7,16,34,0.1);
}

/* responsive */
@media (max-width: 640px) {
  .case-study1 .story {
    padding: 22px 18px;
  }
  .case-study1 .story p {
    font-size: 0.95rem;
  }
}


/* =========== Pricing Snapshot =========== */
.pricing{ padding:48px var(--page-pad) 56px; background: linear-gradient(180deg,#fff,#fbfdff) }
.pricing-grid{ max-width:1100px; margin:18px auto; display:grid; grid-template-columns: repeat(auto-fit,minmax(240px,1fr)); gap:18px; padding:0 var(--page-pad) }
.price-card{ background:var(--surface); border-radius:14px; padding:20px; border:1px solid var(--glass-border); text-align:center; box-shadow:var(--shadow-sm) }
.price-card.featured{ transform:translateY(-6px); box-shadow:0 28px 64px rgba(7,16,34,0.1) }
.price-card h3{ margin-bottom:6px }
.pricing h2{ text-align:center; margin-bottom:8px }

/* =========== CTA Strip =========== */
.cta-strip{ padding:44px var(--page-pad); background: linear-gradient(90deg, rgba(0,209,199,0.08), rgba(59,130,246,0.06)); text-align:center; border-top:1px solid rgba(0,0,0,0.03) }
.cta-strip h2{ font-size:clamp(20px,3vw,28px); margin-bottom:12px }

/* =========== Contact Form (premium) =========== */
.form-sec{ padding:48px var(--page-pad) 80px; background:linear-gradient(180deg,#fff,#f9fbff) }
.form-sec h2{ text-align:center; margin-bottom:8px }
.form-sec form{ max-width:820px; margin:12px auto; display:grid; gap:12px; padding:16px; background:linear-gradient(180deg, rgba(255,255,255,0.98), rgba(250,250,255,0.98)); border:1px solid var(--glass-border); border-radius:14px; box-shadow:var(--shadow-sm) }
.form-sec input[type="text"], .form-sec input[type="email"], .form-sec input[type="tel"], .form-sec textarea{
  padding:14px 16px; border-radius:10px; border:1px solid #e8eef6; background:#fff; font-size:15px; color:var(--text)
}
.form-sec textarea{ min-height:120px; resize:vertical }
.form-sec .btn{ justify-self:start }

/* =========== Footer =========== */
.site-footer{ padding:28px var(--page-pad); text-align:center; border-top:1px solid rgba(0,0,0,0.04); background:#fff; color:var(--muted) }
.site-footer a{ color:var(--muted); font-weight:600 }

/* =========== Accessibility / focus =========== */
a:focus, button:focus, input:focus, textarea:focus{ outline:none; box-shadow:0 0 0 4px rgba(59,130,246,0.12) }

/* =========== Small screen tweaks =========== */
@media (max-width:980px){
  .site-header{ left:12px; transform:none; width: calc(100% - 24px); border-radius:10px }
  .hero-content{ align-items:flex-start }
  .cta-group{ flex-direction:column; width:100% }
  .badge{ font-size:0.95rem }
}
@media (max-width:640px){
  .infographic-grid{ display:block; padding:20px }
  .center-badge{ order:0; margin:16px auto }
  .step{ width:100%; text-align:left; display:flex; gap:14px; align-items:center }
  .step-bubble{ flex:0 0 86px; width:86px; height:86px; margin-right:8px }
  .step h3{ margin:0; font-size:1rem }
  .step p{ margin:0 }
  .stat-card-grid{ grid-template-columns: 1fr; }
  .lux-deco{ display:none }
}

/* =========== Prevent any accidental horizontal scroll =========== */
body, html { overflow-x: hidden; }
