/* ============================================================
   EZ Digital Solutions Ltd. — Stylesheet
   Brand: Zoho-authorized partner, Tanzania
   Palette: Yellow (primary), Green (accent), Blue, Red
   ============================================================ */

:root {
  --primary: #e8b400;
  --primary-dark: #c49a00;
  --green: #27ae60;
  --green-dark: #1e8449;
  --green-light: #d4efdf;
  --blue: #1a3c8f;
  --red: #e63946;
  --teal-bg: #eafaf1;
  --yellow-bg: #fffbea;
  --pink-bg: #fdecea;
  --text: #2c3e50;
  --light: #f8f9fa;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: Inter, sans-serif;
  color: var(--text);
  overflow-x: hidden;
}

/* ---------- Brand bar ---------- */
.brand-bar {
  height: 4px;
  background: linear-gradient(to right, var(--green), var(--primary), var(--red), var(--blue));
}

/* ---------- Navigation ---------- */
nav {
  position: fixed;
  top: 4px;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 48px;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
}

/* Hamburger toggle (hidden on desktop) */
.nav-toggle {
  display: none;
  background: none;
  border: 0;
  padding: 8px;
  cursor: pointer;
  color: var(--text);
}
.nav-toggle svg { width: 26px; height: 26px; display: block; }
.nav-logo img { height: 52px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a {
  text-decoration: none;
  color: var(--text);
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--green); }
.nav-links a.active { color: var(--green); font-weight: 700; }
.btn-nav {
  background: var(--green) !important;
  color: white !important;
  padding: 10px 22px;
  border-radius: 25px;
  font-weight: 600 !important;
  transition: background 0.2s !important;
}
.btn-nav:hover { background: var(--green-dark) !important; }

/* EZ Payroll launch button — red tile with "New" badge */
.btn-payroll {
  position: relative;
  background: var(--red) !important;
  color: white !important;
  padding: 10px 22px;
  border-radius: 25px;
  font-weight: 600 !important;
  transition: background 0.2s !important;
}
.btn-payroll:hover { background: #c0303c !important; color: white !important; }
.btn-payroll .new-badge {
  position: absolute;
  top: -8px;
  right: -8px;
  background: var(--primary);
  color: var(--text);
  font-family: Poppins, sans-serif;
  font-weight: 800;
  font-size: 9px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  padding: 3px 7px;
  border-radius: 10px;
  line-height: 1;
  box-shadow: 0 2px 6px rgba(0,0,0,0.18);
}

/* EZ Payroll nav dropdown */
.nav-dd { position: relative; display: inline-block; }
.nav-dd::after {
  /* invisible bridge so hover doesn't drop in the gap */
  content: '';
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  height: 16px;
}
.nav-dd-menu {
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 14px;
  min-width: 210px;
  background: white;
  border-radius: 14px;
  box-shadow: 0 16px 44px rgba(0,0,0,0.16);
  border: 1px solid #f0f0f0;
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
  z-index: 1100;
}
.nav-dd:hover .nav-dd-menu,
.nav-dd:focus-within .nav-dd-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.nav-dd-menu a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 14px;
  border-radius: 9px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
}
.nav-dd-menu a:hover { background: var(--pink-bg); color: var(--red); }
.nav-dd-menu a .dd-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--red);
  flex-shrink: 0;
}

/* ---------- Hero region (what-we-do + EZ Payroll, both above the fold) ---------- */
.hero-region { display: flex; flex-direction: column; }
@media (min-width: 981px) {
  .hero-region { min-height: 100vh; }
  .hero-region #home { flex: 1 1 auto; }
}

/* ---------- Hero ---------- */
#home {
  padding: 100px 64px 44px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 48px;
  background: white;
  position: relative;
  overflow: hidden;
}
.hero-blob {
  position: absolute;
  top: -80px;
  right: -100px;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: rgba(39, 174, 96, 0.06);
  pointer-events: none;
}
.hero-blob2 {
  position: absolute;
  bottom: -100px;
  left: 15%;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: rgba(232, 180, 0, 0.05);
  pointer-events: none;
}
h1.htitle {
  font-family: Poppins, sans-serif;
  font-size: clamp(30px, 4vw, 52px);
  font-weight: 800;
  line-height: 1.15;
  color: var(--text);
  margin-bottom: 20px;
}
h1.htitle em { color: var(--green); font-style: normal; }
h1.htitle span { color: var(--primary); }
.hsub {
  font-size: 16px;
  color: #555;
  margin-bottom: 28px;
  line-height: 1.7;
}
.hbtns {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

/* ---------- Buttons ---------- */
.btn-pri {
  background: var(--green);
  color: white;
  padding: 13px 28px;
  border-radius: 25px;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  transition: all 0.2s;
  display: inline-block;
  border: 2px solid var(--green);
}
.btn-pri:hover {
  background: var(--green-dark);
  transform: translateY(-1px);
}
.btn-out {
  background: transparent;
  color: var(--primary-dark);
  padding: 13px 28px;
  border-radius: 25px;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  border: 2px solid var(--primary);
  transition: all 0.2s;
  display: inline-block;
}
.btn-out:hover {
  background: var(--primary);
  color: white;
}

.zoho-badge { display: inline-flex; align-items: center; padding: 4px 0; }
.zoho-badge img { height: 48px; width: auto; }

.hero-img-wrap {
  position: relative;
  height: 400px;
  border-radius: 20px;
  overflow: hidden;
}
.hero-img-wrap > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-stats {
  position: absolute;
  bottom: 20px;
  left: 20px;
  right: 20px;
  background: rgba(255, 255, 255, 0.93);
  backdrop-filter: blur(8px);
  border-radius: 12px;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-around;
}
.stat-num {
  font-family: Poppins, sans-serif;
  font-weight: 800;
  font-size: 20px;
  color: var(--green);
}
.stat-lbl { font-size: 11px; color: #666; }
.stat-div { width: 1px; height: 36px; background: #ddd; }

/* ---------- EZ Payroll hero band (bold, dark, distinct) ---------- */
#payroll-hero {
  position: relative;
  overflow: hidden;
  padding: 48px 64px;
  background:
    radial-gradient(circle at 86% 18%, rgba(230,57,70,0.30), transparent 52%),
    radial-gradient(circle at 12% 96%, rgba(232,180,0,0.16), transparent 46%),
    linear-gradient(120deg, #141d2b 0%, #0e1622 100%);
  color: white;
}
.ph-content {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
}
.ph-rings { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.ph-rings span {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.07);
}
.ph-rings span:nth-child(1) { right: -70px; top: -90px; width: 320px; height: 320px; }
.ph-rings span:nth-child(2) { right: 30px; top: 10px; width: 190px; height: 190px; border-color: rgba(230,57,70,0.18); }

.ph-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: Inter, sans-serif;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--primary);
  background: rgba(232,180,0,0.12);
  border: 1px solid rgba(232,180,0,0.35);
  padding: 5px 13px;
  border-radius: 100px;
  margin-bottom: 18px;
}
.ph-pill svg { width: 14px; height: 14px; }
.ph-pill.white {
  color: var(--text);
  background: white;
  border-color: rgba(255,255,255,0.85);
}
.ph-headline {
  font-family: Poppins, sans-serif;
  font-weight: 800;
  font-size: clamp(28px, 3.4vw, 44px);
  line-height: 1.12;
  margin: 0 0 16px;
  letter-spacing: -0.5px;
}
.ph-headline em { font-style: normal; color: var(--red); }
.ph-sub {
  font-size: 16px;
  line-height: 1.65;
  color: rgba(255,255,255,0.78);
  max-width: 480px;
  margin: 0 0 28px;
}
.ph-ctas { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.ph-btn-primary {
  background: var(--red);
  color: white;
  font-family: Poppins, sans-serif;
  font-weight: 700;
  font-size: 14px;
  padding: 14px 28px;
  border-radius: 30px;
  text-decoration: none;
  transition: all 0.2s;
}
.ph-btn-primary:hover { background: #c0303c; transform: translateY(-2px); }
.ph-btn-ghost {
  background: transparent;
  color: white;
  font-family: Poppins, sans-serif;
  font-weight: 600;
  font-size: 14px;
  padding: 14px 26px;
  border-radius: 30px;
  text-decoration: none;
  border: 1.5px solid rgba(255,255,255,0.3);
  transition: all 0.2s;
}
.ph-btn-ghost:hover { background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.55); }

/* Right-side payslip card */
.ph-visual { display: flex; justify-content: center; }
.ph-card {
  width: 100%;
  max-width: 380px;
  background: white;
  border-radius: 18px;
  padding: 24px;
  box-shadow: 0 24px 60px rgba(0,0,0,0.35);
  color: var(--text);
}
.ph-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 16px;
  margin-bottom: 16px;
  border-bottom: 1px solid #eee;
}
.ph-card-head h4 {
  font-family: Poppins, sans-serif;
  font-weight: 700;
  font-size: 15px;
  color: var(--text);
}
.ph-card-tag {
  font-size: 11px;
  font-weight: 700;
  color: var(--green-dark);
  background: var(--green-light);
  padding: 4px 10px;
  border-radius: 20px;
}
.ph-chips { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 18px; }
.ph-chip {
  display: flex;
  align-items: center;
  gap: 9px;
  background: var(--light);
  border: 1px solid #eee;
  border-radius: 12px;
  padding: 11px 13px;
}
.ph-chip .chk {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--green);
  display: flex;
  align-items: center;
  justify-content: center;
}
.ph-chip .chk svg { width: 12px; height: 12px; }
.ph-chip span {
  font-family: Poppins, sans-serif;
  font-weight: 700;
  font-size: 13px;
  color: var(--text);
}
.ph-card-foot {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--text);
  border-radius: 12px;
  padding: 13px 16px;
}
.ph-card-foot .lbl { font-family: Poppins, sans-serif; font-size: 15px; font-weight: 800; color: rgba(255,255,255,0.85); }
.ph-card-foot .val {
  font-family: Poppins, sans-serif;
  font-weight: 800;
  font-size: 15px;
  color: white;
}
.ph-card-foot .val em { font-style: normal; color: var(--primary); }

/* ---------- Section primitives ---------- */
section { padding: 80px 64px; }
.fsec { padding: 70px 64px; }
.fsec.teal { background: var(--teal-bg); }
.fsec.yellow { background: var(--yellow-bg); }
.fsec.pink { background: var(--pink-bg); }
.fsec.blue { background: #eef3fb; }

/* Spotlight accent tags + feature chips */
.fsec .tag.t-green { color: var(--green-dark); }
.fsec .tag.t-green::before { background: var(--green); }
.fsec .tag.t-red { color: var(--red); }
.fsec .tag.t-red::before { background: var(--red); }
.fsec .tag.t-blue { color: var(--blue); }
.fsec .tag.t-blue::before { background: var(--blue); }
.spot-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 22px; }
.spot-chip {
  font-size: 12.5px;
  font-weight: 600;
  padding: 6px 13px;
  border-radius: 100px;
  background: white;
  border: 1.5px solid #e3e3e3;
  color: var(--text);
}
.spot-chip.c-green { border-color: #bfe3cd; color: var(--green-dark); }
.spot-chip.c-red { border-color: #f3c2c6; color: var(--red); }
.spot-chip.c-blue { border-color: #c4d3ef; color: var(--blue); }

.tag {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--primary-dark);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.tag::before {
  content: '';
  display: inline-block;
  width: 24px;
  height: 2px;
  background: var(--primary);
}

h2.stitle {
  font-family: Poppins, sans-serif;
  font-size: clamp(24px, 3vw, 40px);
  font-weight: 800;
  color: var(--text);
  margin-bottom: 20px;
  line-height: 1.2;
}
h2.stitle em { color: var(--green); font-style: normal; }
h2.stitle span { color: var(--primary); }

.two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.two.rev { direction: rtl; }
.two.rev > * { direction: ltr; }
.cimg {
  border-radius: 20px;
  overflow: hidden;
  height: 400px;
}
.cimg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.cimg-tall {
  border-radius: 20px;
  overflow: hidden;
  height: 100%;
  min-height: 520px;
}
.cimg-tall img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ---------- Approach ---------- */
#approach { background: white; }
.apt {
  margin-bottom: 22px;
  padding-left: 20px;
  border-left: 3px solid var(--primary);
}
.apt h4 {
  font-family: Poppins, sans-serif;
  font-weight: 700;
  font-size: 15px;
  color: var(--green-dark);
  margin-bottom: 6px;
}
.apt p {
  font-size: 14px;
  color: #555;
  line-height: 1.6;
}

/* ---------- Solutions cards ---------- */
#solutions { background: var(--light); }
/* Home feature-preview sections share the hero's white background */
#approach-preview,
#solutions-preview,
#industries-preview { background: white; }
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 48px;
}
.card {
  background: var(--green);
  color: white;
  border-radius: 16px;
  padding: 28px;
  transition: transform 0.2s, box-shadow 0.2s;
  position: relative;
  overflow: hidden;
}
.card::before {
  content: '';
  position: absolute;
  top: -20px;
  right: -20px;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
}
.card.yel { background: var(--primary-dark); }
.card.red { background: var(--red); }
.card.blu { background: var(--blue); }
.card.grn { background: var(--green-dark); }
.card .card-new {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 1;
  background: var(--primary);
  color: var(--text);
  font-family: Poppins, sans-serif;
  font-weight: 800;
  font-size: 10px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: 12px;
  line-height: 1;
  box-shadow: 0 2px 6px rgba(0,0,0,0.18);
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}
.card-ico { font-size: 34px; margin-bottom: 14px; }
.card-ico svg { width: 34px; height: 34px; color: white; }
.card h3 {
  font-family: Poppins, sans-serif;
  font-weight: 700;
  font-size: 16px;
  margin-bottom: 10px;
}
.card p {
  font-size: 13px;
  opacity: 0.9;
  line-height: 1.6;
  margin-bottom: 20px;
}
.btn-exp {
  display: inline-block;
  background: white;
  color: var(--text);
  padding: 9px 20px;
  border-radius: 20px;
  text-decoration: none;
  font-weight: 700;
  font-size: 13px;
  transition: all 0.2s;
}
.btn-exp:hover { background: var(--light); transform: scale(1.03); }

/* ---------- Logo carousel ---------- */
.carousel-section {
  background: white;
  padding: 40px 0;
  border-top: 1px solid #f0f0f0;
  border-bottom: 1px solid #f0f0f0;
  overflow: hidden;
}
.carousel-label {
  text-align: center;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: #aaa;
  margin-bottom: 28px;
}
.carousel-track-wrap {
  overflow: hidden;
  position: relative;
}
.carousel-track-wrap::before,
.carousel-track-wrap::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 80px;
  z-index: 2;
}
.carousel-track-wrap::before {
  left: 0;
  background: linear-gradient(to right, white, transparent);
}
.carousel-track-wrap::after {
  right: 0;
  background: linear-gradient(to left, white, transparent);
}
.carousel-track {
  display: flex;
  gap: 24px;
  animation: scroll 28s linear infinite;
  width: max-content;
}
.carousel-track:hover { animation-play-state: paused; }
.carousel-item {
  flex-shrink: 0;
  width: 180px;
  height: 90px;
  border-radius: 12px;
  border: 1.5px solid #eee;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: white;
  transition: box-shadow 0.2s, transform 0.2s;
}
.carousel-item.dark { background: #2c3e50; }
.carousel-item.black { background: #000; padding: 0; overflow: hidden; }
.carousel-item.black img.tall {
  max-width: 100%;
  max-height: 92%;
  transform: scale(0.95);
}
.carousel-item:hover {
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
}
.carousel-item img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}
.carousel-item img.big {
  /* Square logos that need to fill the tile */
  max-height: 130%;
  transform: scale(1.4);
}
.carousel-item img.wide {
  /* Wide logos with extra whitespace baked in */
  transform: scale(1.89);
}
.carousel-item img.tall {
  /* Portrait logos */
  max-width: 60%;
  max-height: 100%;
}
@keyframes scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(calc(-204px * 13)); }
}

/* ---------- Clients grid ---------- */
#clients { background: white; }
.cgrid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 36px;
}
.ccrd {
  background: var(--light);
  border-radius: 12px;
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 130px;
  transition: box-shadow 0.2s, transform 0.2s;
  border: 1.5px solid #eee;
}
.ccrd.dark { background: #2c3e50; }
.ccrd img.big { max-width: 92px; max-height: 92px; }
.ccrd img.wide { max-width: 180px; max-height: 92px; }
.ccrd img.tall { max-width: 60px; max-height: 100px; }
.ccrd:hover {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
}
.ccrd img {
  max-width: 150px;
  max-height: 70px;
  object-fit: contain;
}

/* ---------- Industries ---------- */
#industries { background: var(--light); }
.iblock {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  margin-bottom: 64px;
  padding-bottom: 64px;
  border-bottom: 1px solid #e0e0e0;
}
.iblock:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}
.iblock.rev { direction: rtl; }
.iblock.rev > * { direction: ltr; }
.iimg {
  border-radius: 20px;
  overflow: hidden;
  height: 320px;
}
.iimg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.icont h3 {
  font-family: Poppins, sans-serif;
  font-weight: 800;
  font-size: clamp(20px, 2.5vw, 32px);
  color: var(--text);
  margin-bottom: 8px;
}
.iclient {
  font-size: 13px;
  color: #666;
  margin-bottom: 10px;
}
.ibadges {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.badge {
  background: white;
  border: 1.5px solid var(--primary);
  border-radius: 20px;
  padding: 5px 12px;
  font-size: 12px;
  font-weight: 600;
  color: var(--green-dark);
}
.icont p {
  font-size: 14px;
  color: #555;
  line-height: 1.7;
}

/* ---------- Contact ---------- */
#contact { background: white; }
.ctgrid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: stretch;
}
.ctform {
  background: var(--light);
  border-radius: 20px;
  padding: 40px;
  border-top: 4px solid var(--primary);
}
.fg { margin-bottom: 20px; }
.fg label {
  display: block;
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 8px;
  color: var(--text);
}
.fg input,
.fg textarea {
  width: 100%;
  padding: 13px 16px;
  border: 1.5px solid #ddd;
  border-radius: 10px;
  font-family: Inter, sans-serif;
  font-size: 14px;
  background: white;
  color: var(--text);
  outline: none;
  transition: border-color 0.2s;
}
.fg input:focus,
.fg textarea:focus { border-color: var(--green); }
.fg textarea {
  resize: vertical;
  min-height: 120px;
}
.btn-send {
  width: 100%;
  background: var(--green);
  color: white;
  border: none;
  padding: 15px;
  border-radius: 10px;
  font-family: Poppins, sans-serif;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  transition: background 0.2s;
}
.btn-send:hover { background: var(--green-dark); }
.ctimg {
  border-radius: 20px;
  overflow: hidden;
  height: 300px;
  margin-top: 24px;
}
.ctimg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ---------- Demo CTA ---------- */
#demo {
  position: relative;
  background: linear-gradient(135deg, var(--green-dark), var(--green));
  color: white;
  padding: 80px 64px;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 56px;
  align-items: center;
}
#demo .demo-text { text-align: left; }
#demo h2 { text-align: left; }
#demo p { text-align: left; max-width: 520px; }
#demo .demo-img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 360px;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 18px 50px rgba(0,0,0,0.25);
}
#demo .demo-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
#demo > * { position: relative; z-index: 1; }
#demo h2 {
  font-family: Poppins, sans-serif;
  font-weight: 800;
  font-size: clamp(26px, 3.5vw, 44px);
  margin-bottom: 16px;
}
#demo p {
  font-size: 16px;
  opacity: 0.9;
  max-width: 560px;
  margin: 0 auto 14px;
  line-height: 1.7;
}
.btn-wh {
  background: var(--primary);
  color: var(--text);
  padding: 16px 40px;
  border-radius: 30px;
  text-decoration: none;
  font-family: Poppins, sans-serif;
  font-weight: 700;
  font-size: 16px;
  display: inline-block;
  transition: all 0.2s;
  margin-top: 16px;
}
.btn-wh:hover {
  background: white;
  color: var(--green-dark);
  transform: translateY(-2px);
}

/* ---------- Footer ---------- */
footer {
  background: #1a1a1a;
  color: #cfcfcf;
  padding: 60px 64px 24px;
}
.foot-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1.3fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid #2a2a2a;
}
.foot-brand .footer-logo img {
  height: 56px;
  width: auto;
  margin-bottom: 16px;
}
.foot-brand p {
  font-size: 13px;
  line-height: 1.7;
  color: #aaa;
  margin-bottom: 18px;
  max-width: 280px;
}
.foot-brand .footer-zoho img {
  height: 40px;
  width: auto;
  filter: brightness(0) invert(1);
  opacity: 0.85;
}
.foot-col h5 {
  font-family: Poppins, sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: white;
  margin-bottom: 16px;
}
.foot-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.foot-col a {
  text-decoration: none;
  color: #aaa;
  font-size: 14px;
  transition: color 0.2s;
}
.foot-col a:hover { color: var(--primary); }
.foot-col .foot-line {
  font-size: 14px;
  color: #aaa;
  line-height: 1.6;
  white-space: nowrap;
}
.foot-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 24px;
  flex-wrap: wrap;
  gap: 16px;
}
.foot-copy {
  font-size: 13px;
  color: #888;
}
.socials { display: flex; gap: 10px; }
.slink {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: transform 0.2s, opacity 0.2s;
  color: white;
}
.slink:hover { transform: translateY(-2px); }
.slink svg { width: 18px; height: 18px; fill: currentColor; }
.slink.li { background: #0a66c2; }
.slink.ig { background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); }
.slink.fb { background: #1877f2; }
.slink.x  { background: #000; }

/* ---------- Generic prose helpers used by sub-pages ---------- */
.prose p {
  font-size: 15px;
  color: #555;
  line-height: 1.7;
  margin-bottom: 14px;
}
.prose p strong { color: var(--text); }
.lead {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 24px;
}
.muted { color: #666; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  nav { padding: 10px 20px; }
  .nav-toggle { display: inline-flex; }
  .nav-links {
    position: fixed;
    top: 80px;
    left: 0;
    right: 0;
    background: white;
    flex-direction: column;
    align-items: stretch;
    padding: 16px 20px 24px;
    gap: 4px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
    transform: translateY(-200%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.25s ease, opacity 0.25s ease;
  }
  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
  .nav-links a {
    padding: 14px 16px;
    border-radius: 10px;
    font-size: 16px;
  }
  .nav-links a:hover { background: var(--light); }
  .nav-links .btn-nav {
    margin-top: 8px;
    text-align: center;
  }
  /* EZ Payroll dropdown becomes a static nested list inside the mobile menu */
  .nav-dd { display: block; width: 100%; }
  .nav-dd::after { display: none; }
  .nav-dd-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: none;
    margin: 4px 0 0;
    padding: 4px 0 4px 14px;
    min-width: 0;
    background: transparent;
  }
  .nav-dd-menu a { font-size: 15px; padding: 10px 12px; }
  section, .fsec { padding: 60px 24px; }
  #home {
    grid-template-columns: 1fr;
    padding: 90px 24px 60px;
  }
  #demo { grid-template-columns: 1fr; gap: 32px; padding: 60px 24px; }
  #demo .demo-img { height: 240px; }
  .hero-img-wrap { height: 300px; }
  #payroll-hero { padding: 48px 24px; }
  .ph-content { grid-template-columns: 1fr; gap: 32px; }
  .ph-visual { order: 2; }
  .two,
  .iblock,
  .ctgrid,
  .cards { grid-template-columns: 1fr; }
  .two.rev,
  .iblock.rev { direction: ltr; }
  .cgrid { grid-template-columns: repeat(2, 1fr); }
  footer { padding: 40px 24px 20px; }
  .foot-grid { grid-template-columns: 1fr 1fr; gap: 30px; }
  .foot-bottom { flex-direction: column; }
  .nav-links { gap: 14px; }
}


/* ============================================================
   Solution-detail page styles (Zoho VFD, Custom Functions, EZ Payroll)
   ============================================================ */

.sol-hero {
  position: relative;
  padding: 140px 64px 80px;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 56px;
  align-items: center;
  overflow: hidden;
}
.sol-hero.teal { background: var(--teal-bg); }
.sol-hero.yellow { background: var(--yellow-bg); }
.sol-hero.pink { background: var(--pink-bg); }
.sol-hero .hero-blob,
.sol-hero .hero-blob2 { position: absolute; z-index: 0; }
.sol-hero > * { position: relative; z-index: 1; }
.sol-hero .sol-img {
  border-radius: 20px;
  overflow: hidden;
  height: 420px;
  box-shadow: 0 18px 50px rgba(0,0,0,0.10);
}
.sol-hero .sol-img img { width: 100%; height: 100%; object-fit: cover; }
.sol-hero p { font-size: 16px; line-height: 1.7; color: #555; margin-bottom: 14px; }
.sol-hero p.tagline { font-weight: 700; color: var(--text); margin-top: 8px; }

.sol-features { padding: 80px 64px; background: white; }
.sol-features-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 40px;
}
.sol-features-head h2 {
  font-family: Poppins, sans-serif;
  font-weight: 800;
  font-size: clamp(24px, 3vw, 36px);
  color: var(--text);
  line-height: 1.2;
}
.watch-demo {
  font-family: Poppins, sans-serif;
  font-weight: 700;
  font-size: 14px;
  color: var(--green-dark);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  border: 2px solid var(--green);
  border-radius: 30px;
  transition: all 0.2s;
}
.watch-demo:hover { background: var(--green); color: white; }
.watch-demo svg { width: 16px; height: 16px; }

.feat-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; }
.feat {
  background: var(--light);
  border-radius: 14px;
  padding: 28px 20px;
  text-align: center;
  border: 1.5px solid #eee;
  transition: transform 0.2s, box-shadow 0.2s;
}
.feat:hover { transform: translateY(-3px); box-shadow: 0 10px 30px rgba(0,0,0,0.07); }
.feat-ico {
  width: 52px;
  height: 52px;
  margin: 0 auto 14px;
  border-radius: 14px;
  background: var(--green);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
}
.feat-ico.yel { background: var(--primary-dark); }
.feat-ico svg { width: 26px; height: 26px; }
.feat h4 {
  font-family: Poppins, sans-serif;
  font-weight: 700;
  font-size: 14px;
  color: var(--text);
  line-height: 1.3;
}

.sol-quote { padding: 80px 64px; background: var(--light); text-align: center; }
.sol-quote blockquote {
  font-family: Poppins, sans-serif;
  font-weight: 600;
  font-size: clamp(20px, 2.4vw, 30px);
  line-height: 1.45;
  color: var(--text);
  max-width: 820px;
  margin: 0 auto 24px;
  position: relative;
  padding: 0 40px;
}
.sol-quote blockquote::before,
.sol-quote blockquote::after {
  position: absolute;
  font-family: Poppins, sans-serif;
  font-size: 60px;
  font-weight: 800;
  color: var(--green);
  opacity: 0.4;
  line-height: 1;
}
.sol-quote blockquote::before { content: '\201C'; top: -10px; left: 0; }
.sol-quote blockquote::after { content: '\201D'; bottom: -28px; right: 0; }
.sol-quote cite {
  font-style: normal;
  font-weight: 700;
  font-size: 14px;
  color: var(--green-dark);
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.more-sols { padding: 70px 64px; background: white; text-align: center; }
.more-sols h3 {
  font-family: Poppins, sans-serif;
  font-weight: 800;
  font-size: 26px;
  color: var(--text);
  margin-bottom: 32px;
}
.more-sols-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  max-width: 760px;
  margin: 0 auto;
}
.more-sol {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--light);
  border-radius: 14px;
  padding: 18px 22px;
  text-decoration: none;
  color: var(--text);
  border: 1.5px solid #eee;
  transition: all 0.2s;
}
.more-sol:hover {
  border-color: var(--green);
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.06);
}
.more-sol-ico {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--green);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  flex-shrink: 0;
}
.more-sol-ico.yel { background: var(--primary-dark); }
.more-sol-ico svg { width: 22px; height: 22px; }
.more-sol-text {
  font-family: Poppins, sans-serif;
  font-weight: 700;
  font-size: 15px;
  text-align: left;
}
.more-sol-text small {
  display: block;
  font-family: Inter, sans-serif;
  font-weight: 500;
  font-size: 12px;
  color: #888;
  margin-top: 2px;
}

@media (max-width: 900px) {
  .sol-hero { grid-template-columns: 1fr; padding: 120px 24px 60px; }
  .sol-hero .sol-img { height: 280px; }
  .sol-features, .sol-quote, .more-sols { padding: 60px 24px; }
  .feat-grid { grid-template-columns: repeat(2, 1fr); }
  .more-sols-grid { grid-template-columns: 1fr; }
  .sol-features-head { flex-direction: column; align-items: flex-start; }
}

/* Extra-small screens (phones in portrait): stack hero stats, single-column footer */
@media (max-width: 480px) {
  .hero-stats {
    flex-direction: column;
    gap: 12px;
    padding: 16px 20px;
  }
  .hero-stats .stat-div { display: none; }
  .foot-grid { grid-template-columns: 1fr; }
}
