/* ── Dhando POS — Shared stylesheet for all sub-pages ─────────────────── */
/* Font imports handled in each HTML file's <head>                         */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --blue:   #2563EB;
  --blue-d: #1D4ED8;
  --blue-l: #EFF6FF;
  --green:  #10B981;
  --dark:   #0F172A;
  --mid:    #1E293B;
  --text:   #334155;
  --muted:  #64748B;
  --border: #E2E8F0;
  --white:  #FFFFFF;
  --radius: 16px;
}

html { scroll-behavior: smooth; }
body { font-family: 'Inter', sans-serif; color: var(--text); background: var(--white); overflow-x: hidden; }

/* ── NAV ─────────────────────────────────────────────────────────────── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(255,255,255,0.88); backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(226,232,240,0.6);
  transition: box-shadow 0.3s;
}
nav.scrolled { box-shadow: 0 4px 24px rgba(0,0,0,0.07); }
.nav-inner {
  max-width: 1100px; margin: 0 auto; padding: 0 24px;
  height: 64px; display: flex; align-items: center; gap: 32px;
}
.nav-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; flex-shrink: 0; }
.nav-logo img { width: 36px; height: 36px; border-radius: 10px; }
.nav-logo-text { font-family: 'Plus Jakarta Sans', sans-serif; font-size: 17px; font-weight: 800; color: var(--dark); }
.nav-logo-text span { color: var(--blue); }
.nav-links { display: flex; gap: 28px; list-style: none; flex: 1; }
.nav-links a { text-decoration: none; font-size: 14px; font-weight: 500; color: var(--muted); transition: color 0.2s; }
.nav-links a:hover { color: var(--blue); }
.nav-cta {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--blue); color: #fff;
  padding: 10px 22px; border-radius: 30px;
  font-size: 14px; font-weight: 600; text-decoration: none;
  transition: background 0.2s, transform 0.15s; white-space: nowrap;
}
.nav-cta:hover { background: var(--blue-d); transform: translateY(-1px); }
.nav-hamburger { display: none; cursor: pointer; background: none; border: none; padding: 4px; }
.nav-hamburger span { display: block; width: 22px; height: 2px; background: var(--dark); margin: 5px 0; border-radius: 2px; }
.mobile-menu {
  position: fixed; top: 64px; left: 0; right: 0;
  background: #fff; border-bottom: 1px solid var(--border);
  padding: 16px 24px; display: none; flex-direction: column; gap: 4px;
  z-index: 99; box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  display: block; padding: 12px 0; font-size: 15px; font-weight: 500;
  color: var(--text); text-decoration: none; border-bottom: 1px solid var(--border);
}
.mobile-menu a:last-child { border-bottom: none; }

/* ── HERO ─────────────────────────────────────────────────────────────── */
.hero {
  min-height: 92vh;
  background: linear-gradient(145deg, #0F172A 0%, #1e3a8a 55%, #0F172A 100%);
  display: flex; align-items: center;
  position: relative; overflow: hidden; padding-top: 64px;
}
.hero-bg-orb {
  position: absolute; border-radius: 50%; filter: blur(80px); opacity: 0.18;
  animation: floatOrb 8s ease-in-out infinite alternate;
}
.hero-bg-orb-1 { width: 500px; height: 500px; background: #60a5fa; top: -80px; left: -160px; }
.hero-bg-orb-2 { width: 360px; height: 360px; background: #10B981; bottom: -60px; right: 5%; animation-delay: -3s; }
@keyframes floatOrb { to { transform: translate(30px, 20px); } }

.hero-content {
  max-width: 780px; margin: 0 auto; padding: 72px 24px 80px;
  text-align: center; position: relative; z-index: 1;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(37,99,235,0.25); border: 1px solid rgba(96,165,250,0.35);
  color: #93c5fd; padding: 6px 14px; border-radius: 30px;
  font-size: 12px; font-weight: 600; letter-spacing: 0.5px; text-transform: uppercase;
  margin-bottom: 20px;
}
.hero-badge .dot { width: 6px; height: 6px; background: #4ade80; border-radius: 50%; animation: pulse 1.5s infinite; }
@keyframes pulse { 0%,100% { opacity:1; } 50% { opacity:.4; } }
.hero h1 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: clamp(32px, 5.5vw, 60px); font-weight: 800;
  line-height: 1.1; color: #fff; margin-bottom: 20px;
}
.hero h1 .highlight {
  background: linear-gradient(90deg, #60a5fa, #34d399);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.hero-sub { font-size: 17px; line-height: 1.65; color: #94a3b8; margin: 0 auto 36px; max-width: 560px; }
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; margin-bottom: 32px; }

.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--blue); color: #fff;
  padding: 14px 28px; border-radius: 30px;
  font-size: 15px; font-weight: 600; text-decoration: none;
  transition: all 0.2s; box-shadow: 0 4px 24px rgba(37,99,235,0.4);
}
.btn-primary:hover { background: var(--blue-d); transform: translateY(-2px); box-shadow: 0 8px 32px rgba(37,99,235,0.5); }
.btn-ghost {
  display: inline-flex; align-items: center; gap: 8px;
  color: #cbd5e1; padding: 14px 28px; border-radius: 30px;
  font-size: 15px; font-weight: 500; text-decoration: none;
  border: 1px solid rgba(255,255,255,0.15); transition: all 0.2s;
}
.btn-ghost:hover { background: rgba(255,255,255,0.07); color: #fff; }
.hero-trust { display: flex; align-items: center; gap: 12px; color: #64748b; font-size: 13px; justify-content: center; }
.hero-trust-avatars { display: flex; }
.hero-trust-avatars span {
  width: 32px; height: 32px; border-radius: 50%; border: 2px solid #1e3a8a;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 700; margin-left: -8px;
}
.hero-trust-avatars span:first-child { margin-left: 0; }
.a1 { background: #60a5fa; color: #fff; }
.a2 { background: #34d399; color: #fff; }
.a3 { background: #f472b6; color: #fff; }
.a4 { background: #fbbf24; color: #fff; }

/* ── SECTION SCAFFOLD ────────────────────────────────────────────────── */
section { padding: 80px 24px; }
.section-inner { max-width: 1100px; margin: 0 auto; }
.section-tag {
  display: inline-block; background: var(--blue-l); color: var(--blue);
  padding: 5px 14px; border-radius: 30px;
  font-size: 12px; font-weight: 700; letter-spacing: 0.5px; text-transform: uppercase;
  margin-bottom: 14px;
}
.section-title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: clamp(24px, 3.2vw, 38px); font-weight: 800;
  color: var(--dark); line-height: 1.2; margin-bottom: 14px;
}
.section-sub { font-size: 16px; color: var(--muted); line-height: 1.6; max-width: 560px; }
.text-center { text-align: center; }
.text-center .section-sub { margin: 0 auto; }

/* ── FEATURES GRID ───────────────────────────────────────────────────── */
.features-bg { background: #F8FAFC; }
.features-grid {
  margin-top: 48px;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
}
.feat-card {
  background: #fff; border: 1px solid var(--border);
  border-radius: var(--radius); padding: 28px 24px;
  transition: all 0.25s;
}
.feat-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(37,99,235,0.08);
  border-color: #93c5fd;
}
.feat-icon {
  width: 52px; height: 52px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 24px; margin-bottom: 16px;
}
.feat-title { font-size: 16px; font-weight: 700; color: var(--dark); margin-bottom: 8px; }
.feat-text { font-size: 14px; color: var(--muted); line-height: 1.6; }

/* ── WHY SECTION (sub-page specific) ────────────────────────────────── */
.why-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-top: 48px;
}
.why-card {
  background: #fff; border: 1px solid var(--border);
  border-radius: var(--radius); padding: 28px 24px;
  display: flex; gap: 18px; align-items: flex-start;
  transition: all 0.25s;
}
.why-card:hover { transform: translateY(-3px); box-shadow: 0 12px 32px rgba(37,99,235,0.07); border-color: #93c5fd; }
.why-num {
  flex-shrink: 0; width: 36px; height: 36px; background: var(--blue-l);
  color: var(--blue); border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 15px; font-weight: 800;
}
.why-body h4 { font-size: 15px; font-weight: 700; color: var(--dark); margin-bottom: 6px; }
.why-body p  { font-size: 13.5px; color: var(--muted); line-height: 1.6; }

/* ── FAQ ─────────────────────────────────────────────────────────────── */
.faq-section { background: #F8FAFC; }
.faq-list { margin-top: 48px; max-width: 720px; margin-left: auto; margin-right: auto; }
.faq-item {
  background: #fff; border: 1px solid var(--border);
  border-radius: var(--radius); margin-bottom: 12px;
  overflow: hidden; transition: box-shadow 0.2s;
}
.faq-item.open { box-shadow: 0 4px 16px rgba(37,99,235,0.08); }
.faq-q {
  display: flex; justify-content: space-between; align-items: center;
  padding: 20px 24px; cursor: pointer;
  font-size: 15px; font-weight: 600; color: var(--dark); user-select: none;
}
.faq-q .arrow { font-size: 18px; color: var(--blue); transition: transform 0.3s; flex-shrink: 0; margin-left: 12px; }
.faq-item.open .arrow { transform: rotate(180deg); }
.faq-a {
  max-height: 0; overflow: hidden;
  transition: max-height 0.35s ease, padding 0.25s;
  font-size: 14px; color: var(--muted); line-height: 1.7; padding: 0 24px;
}
.faq-item.open .faq-a { max-height: 300px; padding: 0 24px 20px; }

/* ── CTA SECTION ─────────────────────────────────────────────────────── */
.cta-section {
  background: linear-gradient(135deg, var(--blue) 0%, #1d4ed8 50%, #1e3a8a 100%);
  text-align: center; padding: 96px 24px;
}
.cta-section h2 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: clamp(26px, 4vw, 44px); font-weight: 800; color: #fff; margin-bottom: 16px;
}
.cta-section p { font-size: 17px; color: #bfdbfe; margin-bottom: 36px; max-width: 480px; margin-left: auto; margin-right: auto; }
.btn-white {
  display: inline-flex; align-items: center; gap: 10px;
  background: #fff; color: var(--blue);
  padding: 16px 36px; border-radius: 30px;
  font-size: 16px; font-weight: 700; text-decoration: none;
  transition: all 0.2s; box-shadow: 0 8px 32px rgba(0,0,0,0.2);
}
.btn-white:hover { transform: translateY(-3px); box-shadow: 0 12px 40px rgba(0,0,0,0.3); }
.cta-note { margin-top: 16px; font-size: 13px; color: rgba(255,255,255,0.6); }

/* ── FOOTER ──────────────────────────────────────────────────────────── */
footer { background: var(--dark); color: #64748b; padding: 48px 24px 32px; }
.footer-inner {
  max-width: 1100px; margin: 0 auto;
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 20px;
}
.footer-logo {
  display: flex; align-items: center; gap: 10px;
  font-family: 'Plus Jakarta Sans', sans-serif; font-size: 16px; font-weight: 800; color: #fff;
}
.footer-logo img { width: 32px; border-radius: 8px; }
.footer-tagline { font-size: 13px; color: #475569; margin-top: 4px; }
.footer-copy { font-size: 13px; text-align: right; }
.footer-copy a { color: #60a5fa; text-decoration: none; }

/* ── REVEAL ANIMATIONS ───────────────────────────────────────────────── */
.reveal { opacity: 0; transform: translateY(32px); transition: opacity 0.65s ease, transform 0.65s ease; }
.reveal.visible { opacity: 1; transform: none; }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* ── LEAD CAPTURE MODAL ──────────────────────────────────────────────── */
#lead-overlay {
  position:fixed; inset:0; z-index:10000;
  background:rgba(15,23,42,0.65); backdrop-filter:blur(4px);
  display:flex; align-items:center; justify-content:center; padding:16px;
  opacity:0; pointer-events:none; transition:opacity .25s;
}
#lead-overlay.open { opacity:1; pointer-events:auto; }
#lead-modal {
  background:#fff; border-radius:20px; width:100%; max-width:460px;
  box-shadow:0 24px 80px rgba(0,0,0,0.22); overflow:hidden;
  transform:translateY(24px) scale(0.97);
  transition:transform .3s cubic-bezier(.34,1.4,.64,1);
}
#lead-overlay.open #lead-modal { transform:translateY(0) scale(1); }
.lm-header { background:linear-gradient(135deg,#1d4ed8,#2563eb); padding:22px 24px 20px; position:relative; }
.lm-header h2 { color:#fff; font-size:18px; font-weight:800; margin:0 0 4px; line-height:1.3; }
.lm-header p  { color:#bfdbfe; font-size:13px; margin:0; }
.lm-close {
  position:absolute; top:14px; right:16px;
  background:rgba(255,255,255,0.15); border:none; cursor:pointer;
  color:#fff; width:30px; height:30px; border-radius:50%;
  font-size:16px; display:flex; align-items:center; justify-content:center;
  transition:background .15s;
}
.lm-close:hover { background:rgba(255,255,255,0.28); }
.lm-body { padding:22px 24px 20px; display:flex; flex-direction:column; gap:14px; }
.lm-field label { display:block; font-size:12px; font-weight:600; color:#475569; margin-bottom:5px; letter-spacing:.3px; }
.lm-field input,
.lm-field select {
  width:100%; padding:10px 13px; border:1.5px solid #e2e8f0; border-radius:10px;
  font-size:14px; color:#0f172a; background:#f8fafc; outline:none; box-sizing:border-box;
  transition:border-color .15s, box-shadow .15s; appearance:none; -webkit-appearance:none;
}
.lm-field input:focus,
.lm-field select:focus { border-color:#2563eb; box-shadow:0 0 0 3px rgba(37,99,235,0.12); background:#fff; }
.lm-field input.error,
.lm-field select.error { border-color:#ef4444; }
.lm-row { display:grid; grid-template-columns:1fr 1fr; gap:12px; }
.lm-submit {
  width:100%; padding:13px;
  background:linear-gradient(135deg,#25D366,#128C7E);
  border:none; border-radius:12px; cursor:pointer;
  color:#fff; font-size:15px; font-weight:700;
  display:flex; align-items:center; justify-content:center; gap:9px;
  transition:opacity .15s, transform .15s; margin-top:2px;
}
.lm-submit:hover { opacity:.92; transform:translateY(-1px); }
.lm-note { text-align:center; font-size:11.5px; color:#94a3b8; margin-top:4px; line-height:1.5; }

/* ── WHATSAPP WIDGET ─────────────────────────────────────────────────── */
#wa-widget { position:fixed; bottom:24px; right:24px; z-index:9999; display:flex; flex-direction:column; align-items:flex-end; gap:12px; }
#wa-bubble {
  width:56px; height:56px; border-radius:50%;
  background:linear-gradient(135deg,#25D366,#128C7E);
  box-shadow:0 4px 20px rgba(37,211,102,0.45);
  display:flex; align-items:center; justify-content:center;
  cursor:pointer; border:none; outline:none; transition:transform .2s, box-shadow .2s; position:relative;
}
#wa-bubble:hover { transform:scale(1.08); box-shadow:0 6px 28px rgba(37,211,102,0.6); }
#wa-bubble svg { width:30px; height:30px; }
#wa-popup {
  background:#fff; border-radius:16px;
  box-shadow:0 8px 40px rgba(0,0,0,0.18); width:300px; overflow:hidden;
  transform:scale(0.85) translateY(12px); transform-origin:bottom right;
  opacity:0; pointer-events:none; transition:transform .25s cubic-bezier(.34,1.56,.64,1), opacity .2s;
}
#wa-popup.open { transform:scale(1) translateY(0); opacity:1; pointer-events:auto; }
.wa-header { background:linear-gradient(135deg,#075E54,#128C7E); padding:16px 18px; display:flex; align-items:center; gap:12px; }
.wa-avatar { width:42px; height:42px; border-radius:50%; background:#25D366; display:flex; align-items:center; justify-content:center; font-size:20px; flex-shrink:0; }
.wa-header-text { flex:1; }
.wa-name  { font-size:14px; font-weight:700; color:#fff; }
.wa-status{ font-size:11px; color:#a7f3d0; margin-top:2px; }
.wa-close-btn { background:none; border:none; cursor:pointer; color:rgba(255,255,255,0.7); font-size:18px; line-height:1; padding:2px 4px; border-radius:4px; }
.wa-close-btn:hover { color:#fff; }
.wa-body { padding:16px 18px; background:#ECE5DD; }
.wa-message-bubble {
  background:#fff; border-radius:0 12px 12px 12px; padding:10px 14px;
  font-size:13px; color:#111; line-height:1.55;
  box-shadow:0 1px 3px rgba(0,0,0,0.10); position:relative; max-width:240px;
}
.wa-message-bubble::before {
  content:''; position:absolute; top:0; left:-8px;
  border:8px solid transparent; border-right-color:#fff; border-top-color:#fff;
}
.wa-time { font-size:10px; color:#8c8c8c; text-align:right; margin-top:4px; }
.wa-send-area { padding:14px 18px; background:#f0f0f0; }
.wa-send-btn {
  width:100%; padding:11px; border:none; border-radius:10px;
  background:linear-gradient(135deg,#25D366,#128C7E);
  color:#fff; font-size:14px; font-weight:600; cursor:pointer;
  display:flex; align-items:center; justify-content:center; gap:8px;
  text-decoration:none; transition:opacity .15s;
}
.wa-send-btn:hover { opacity:.9; }
.wa-pulse {
  position:absolute; top:0; right:0; width:14px; height:14px; border-radius:50%;
  background:#ef4444; border:2px solid #fff; font-size:8px; color:#fff;
  display:flex; align-items:center; justify-content:center; font-weight:700;
  animation:wa-ping 1.8s ease-in-out infinite;
}
@keyframes wa-ping { 0%,100% { transform:scale(1); opacity:1; } 50% { transform:scale(1.25); opacity:.7; } }

/* ── RESPONSIVE ──────────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .why-grid { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .nav-hamburger { display: block; }
  .footer-inner { flex-direction: column; text-align: center; }
  .footer-copy { text-align: center; }
}
@media (max-width: 540px) {
  .features-grid { grid-template-columns: 1fr; }
  section { padding: 56px 20px; }
  .lm-row { grid-template-columns: 1fr; }
  #wa-widget { bottom:16px; right:16px; }
  #wa-popup { width:calc(100vw - 36px); }
}
