/* SnapTech — enterprise IT & security systems, Qatar. Corporate navy/indigo theme.
   Consumes CSS vars from layout/theme :: tenantHead (--color-primary/secondary/accent, fonts). */

:root{
  --st-navy: var(--color-primary, #1b2a5b);
  --st-indigo: var(--color-secondary, #3e3a6e);
  --st-accent: var(--color-accent, #3d5af1);
  --st-ink: #16203d;
  --st-muted: #5b6478;
  --st-line: #e6e9f2;
  --st-bg-alt: #f6f8fc;
  --st-radius: 14px;
  --st-shadow: 0 10px 30px rgba(27,42,91,.08);
  --st-shadow-lg: 0 24px 60px rgba(27,42,91,.16);
}

body{
  font-family: var(--font-body, 'Inter', system-ui, sans-serif);
  color: var(--st-ink);
  background: #fff;
  -webkit-font-smoothing: antialiased;
}
h1,h2,h3,h4,.st-heading{ font-family: var(--font-heading, 'Manrope', sans-serif); letter-spacing:-.02em; }
a{ text-decoration:none; }

/* ── Top bar ── */
.st-topbar{
  background: var(--st-navy); color:#cdd6f4; font-size:.82rem;
}
.st-topbar .container{ display:flex; gap:1.25rem; align-items:center; justify-content:flex-end; padding:.5rem 12px; flex-wrap:wrap; }
.st-topbar a{ color:#e7ecfb; display:inline-flex; gap:.4rem; align-items:center; }
.st-topbar a:hover{ color:#fff; }
.st-topbar svg{ width:14px; height:14px; fill:currentColor; }

/* ── Nav ── */
.st-nav{
  background:#fff; padding:.6rem 0; position:sticky; top:0; z-index:1000;
  border-bottom:1px solid var(--st-line); transition:box-shadow .25s ease;
}
.st-nav--scrolled{ box-shadow:0 6px 24px rgba(27,42,91,.10); }
.st-brand{ display:inline-flex; align-items:center; }
.st-logo{ height:44px; width:auto; display:block; }
.st-wordmark{ font-family:var(--font-heading); font-weight:800; font-size:1.4rem; color:var(--st-navy); }
.st-menu{ list-style:none; display:flex; gap:.35rem; margin:0; padding:0; align-items:center; }
.st-menu a{
  color:var(--st-ink); font-weight:600; font-size:.94rem; padding:.5rem .8rem; border-radius:8px;
  transition:background .18s, color .18s;
}
.st-menu a:hover{ background:var(--st-bg-alt); color:var(--st-accent); }
.st-cta-btn{
  background:var(--st-accent); color:#fff !important; border-radius:9px; padding:.6rem 1.15rem !important;
  font-weight:700; box-shadow:0 8px 20px rgba(61,90,241,.28);
}
.st-cta-btn:hover{ background:#2f49d8; color:#fff !important; }
.st-nav-toggle{ display:none; background:none; border:0; font-size:1.5rem; color:var(--st-navy); line-height:1; }

/* ── Hero ── */
.st-hero{
  position:relative; color:#fff; overflow:hidden;
  background:
    radial-gradient(1200px 500px at 85% -10%, rgba(61,90,241,.45), transparent 60%),
    radial-gradient(900px 500px at 5% 110%, rgba(62,58,110,.55), transparent 55%),
    linear-gradient(135deg, #16224a 0%, var(--st-navy) 55%, var(--st-indigo) 100%);
  padding:5.5rem 0 5rem;
}
.st-hero::after{
  content:""; position:absolute; inset:0; pointer-events:none; opacity:.5;
  background-image:linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px),
                   linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size:44px 44px; mask-image:radial-gradient(70% 70% at 70% 20%, #000, transparent);
}
.st-hero .container{ position:relative; z-index:1; }
.st-badge{
  display:inline-flex; align-items:center; gap:.5rem; background:rgba(255,255,255,.12);
  border:1px solid rgba(255,255,255,.22); border-radius:999px; padding:.4rem .9rem;
  font-size:.8rem; font-weight:600; letter-spacing:.02em; margin-bottom:1.1rem;
}
.st-badge::before{ content:""; width:7px; height:7px; border-radius:50%; background:#48d597; box-shadow:0 0 0 4px rgba(72,213,151,.25); }
.st-hero-title{ font-size:clamp(2.1rem, 5vw, 3.6rem); font-weight:800; line-height:1.06; margin:0 0 1rem; max-width:16ch; }
.st-hero-title .accent{ color:#8ea2ff; }
.st-hero-tagline{ font-size:clamp(1.05rem,2vw,1.35rem); color:#c7d0ee; font-weight:500; margin-bottom:.4rem; }
.st-hero-sub{ color:#aab5dc; max-width:52ch; margin-bottom:1.9rem; }
.st-hero-actions{ display:flex; gap:.8rem; flex-wrap:wrap; }
.st-btn{
  display:inline-flex; align-items:center; gap:.5rem; border-radius:10px; padding:.85rem 1.5rem;
  font-weight:700; font-size:1rem; transition:transform .15s, box-shadow .2s, background .2s;
}
.st-btn-primary{ background:var(--st-accent); color:#fff; box-shadow:0 12px 30px rgba(61,90,241,.4); }
.st-btn-primary:hover{ background:#2f49d8; color:#fff; transform:translateY(-2px); }
.st-btn-ghost{ background:rgba(255,255,255,.08); color:#fff; border:1px solid rgba(255,255,255,.28); }
.st-btn-ghost:hover{ background:rgba(255,255,255,.16); color:#fff; }
.st-hero-stats{ display:flex; gap:2.2rem; margin-top:2.6rem; flex-wrap:wrap; }
.st-hero-stat b{ display:block; font-family:var(--font-heading); font-size:1.6rem; font-weight:800; color:#fff; }
.st-hero-stat span{ font-size:.82rem; color:#aab5dc; }

/* ── Sections ── */
.st-section{ padding:4.5rem 0; }
.st-section-alt{ background:var(--st-bg-alt); }
.st-eyebrow{ text-align:center; color:var(--st-accent); font-weight:700; font-size:.82rem; letter-spacing:.08em; text-transform:uppercase; margin-bottom:.5rem; }
.st-section-title{ text-align:center; font-size:clamp(1.6rem,3vw,2.3rem); font-weight:800; margin:0 0 .6rem; color:var(--st-ink); }
.st-section-sub{ text-align:center; color:var(--st-muted); max-width:62ch; margin:0 auto 2.6rem; }

/* ── Cards (services + solutions) ── */
.st-grid{ display:grid; gap:1.1rem; grid-template-columns:repeat(auto-fill, minmax(240px,1fr)); }
.st-card{
  background:#fff; border:1px solid var(--st-line); border-radius:var(--st-radius); padding:1.5rem 1.35rem;
  box-shadow:var(--st-shadow); transition:transform .2s, box-shadow .2s, border-color .2s; height:100%;
  display:flex; flex-direction:column;
}
.st-card:hover{ transform:translateY(-5px); box-shadow:var(--st-shadow-lg); border-color:#c9d2f0; }
.st-card-icon{
  width:52px; height:52px; border-radius:12px; display:grid; place-items:center; font-size:1.5rem;
  background:linear-gradient(135deg, rgba(61,90,241,.14), rgba(62,58,110,.14)); color:var(--st-accent); margin-bottom:1rem;
}
.st-card-title{ font-size:1.08rem; font-weight:700; margin:0 0 .4rem; color:var(--st-ink); }
.st-card-desc{ color:var(--st-muted); font-size:.9rem; margin:0 0 1rem; flex:1; }
.st-card-link{ color:var(--st-accent); font-weight:700; font-size:.86rem; display:inline-flex; align-items:center; gap:.3rem; margin-top:auto; }
.st-card-link::after{ content:"→"; transition:transform .2s; }
.st-card:hover .st-card-link::after{ transform:translateX(4px); }

/* ── Why us / trust ── */
.st-why{ display:grid; gap:1.4rem; grid-template-columns:repeat(auto-fit, minmax(220px,1fr)); }
.st-why-item{ display:flex; gap:.9rem; }
.st-why-ico{ flex:0 0 auto; width:44px; height:44px; border-radius:10px; background:var(--st-navy); color:#fff; display:grid; place-items:center; font-size:1.2rem; }
.st-why-item h4{ font-size:1.02rem; margin:0 0 .25rem; }
.st-why-item p{ color:var(--st-muted); font-size:.9rem; margin:0; }

/* ── Partners strip ── */
.st-partners{ display:flex; flex-wrap:wrap; gap:1rem 2.4rem; justify-content:center; align-items:center; }
.st-partner{ color:var(--st-muted); font-weight:700; font-size:1.05rem; opacity:.7; }

/* ── CTA band ── */
.st-ctaband{
  background:linear-gradient(120deg, var(--st-navy), var(--st-indigo)); color:#fff; border-radius:20px;
  padding:2.8rem; text-align:center; box-shadow:var(--st-shadow-lg);
}
.st-ctaband h2{ font-size:clamp(1.5rem,2.5vw,2rem); margin:0 0 .6rem; }
.st-ctaband p{ color:#c7d0ee; margin:0 0 1.5rem; }

/* ── Contact ── */
.st-contact-wrap{ display:grid; gap:2rem; grid-template-columns:1fr 1fr; align-items:start; }
.st-contact-info h3{ font-size:1.3rem; margin:0 0 1rem; }
.st-contact-row{ display:flex; gap:.75rem; align-items:flex-start; margin-bottom:1rem; color:var(--st-muted); }
.st-contact-row svg{ width:20px; height:20px; fill:var(--st-accent); flex:0 0 auto; margin-top:2px; }
.st-form{ background:#fff; border:1px solid var(--st-line); border-radius:var(--st-radius); padding:1.6rem; box-shadow:var(--st-shadow); }
.st-form label{ font-size:.82rem; font-weight:600; color:var(--st-ink); margin-bottom:.25rem; display:block; }
.st-form input, .st-form select, .st-form textarea{
  width:100%; border:1px solid var(--st-line); border-radius:9px; padding:.7rem .85rem; margin-bottom:.9rem;
  font-family:inherit; font-size:.95rem; background:#fbfcff;
}
.st-form input:focus, .st-form select:focus, .st-form textarea:focus{ outline:none; border-color:var(--st-accent); box-shadow:0 0 0 3px rgba(61,90,241,.15); }
.st-form button{ width:100%; }
.st-alert{ background:#e9f9f1; border:1px solid #b7ebd2; color:#0f7a52; padding:.8rem 1rem; border-radius:9px; margin-bottom:1rem; font-size:.9rem; }

/* ── FAQ (bootstrap accordion overrides) ── */
#stFaq .accordion-item{ border:1px solid var(--st-line); border-radius:12px !important; margin-bottom:.7rem; overflow:hidden; }
#stFaq .accordion-button{ font-weight:700; color:var(--st-ink); font-family:var(--font-heading); }
#stFaq .accordion-button:not(.collapsed){ background:var(--st-bg-alt); color:var(--st-navy); box-shadow:none; }
#stFaq .accordion-button:focus{ box-shadow:none; }
#stFaq .accordion-body{ color:var(--st-muted); }

/* ── Footer ── */
.st-footer{ background:var(--st-navy); color:#c7d0ee; padding:3.5rem 0 1.5rem; }
.st-footer-grid{ display:grid; gap:2rem; grid-template-columns:1.6fr 1fr 1fr; margin-bottom:2rem; }
.st-footer-logo{ height:48px; margin-bottom:1rem; }
.st-footer-about{ font-size:.9rem; color:#aab5dc; max-width:38ch; }
.st-footer h5{ color:#fff; font-size:.95rem; text-transform:uppercase; letter-spacing:.05em; margin-bottom:1rem; }
.st-footer-menu{ list-style:none; padding:0; margin:0; }
.st-footer-menu li{ margin-bottom:.55rem; }
.st-footer-menu a{ color:#c7d0ee; font-size:.92rem; }
.st-footer-menu a:hover{ color:#fff; }
.st-socials{ display:flex; gap:.6rem; margin-top:1rem; }
.st-social{ width:36px; height:36px; border-radius:9px; background:rgba(255,255,255,.1); display:grid; place-items:center; }
.st-social svg{ width:18px; height:18px; fill:#fff; }
.st-social:hover{ background:var(--st-accent); }
.st-footer-bottom{ border-top:1px solid rgba(255,255,255,.12); padding-top:1.3rem; display:flex; justify-content:space-between; gap:1rem; flex-wrap:wrap; font-size:.85rem; color:#8ea2ff; }
.st-powered{ display:inline-flex; align-items:center; gap:.4rem; color:#aab5dc; }
.st-powered:hover{ color:#fff; }

/* ── Product / service detail page ── */
.st-prod-hero{
  background:linear-gradient(135deg, #16224a 0%, var(--st-navy) 60%, var(--st-indigo) 100%);
  color:#fff; padding:2.6rem 0 2.4rem;
}
.st-back{ display:inline-flex; align-items:center; gap:.4rem; color:#aab5dc; font-weight:600; font-size:.88rem; margin-bottom:1rem; }
.st-back:hover{ color:#fff; }
.st-prod-hero .st-eyebrow{ color:#8ea2ff; margin-bottom:.4rem; }
.st-prod-title{ font-size:clamp(1.7rem,3.5vw,2.6rem); font-weight:800; margin:0 0 .6rem; }
.st-prod-lead{ font-size:1.1rem; color:#c7d0ee; margin:0; max-width:64ch; }
.st-prod-img{ width:100%; border-radius:var(--st-radius); box-shadow:var(--st-shadow); }

.st-page-content{ color:#3a4258; font-size:1rem; line-height:1.75; }
.st-page-content h2{ font-size:1.3rem; color:var(--st-ink); margin:1.8rem 0 .8rem; }
.st-page-content h3{ font-size:1.1rem; color:var(--st-ink); margin:1.4rem 0 .6rem; }
.st-page-content p{ margin:0 0 1rem; }
.st-page-content ul{ margin:0 0 1.2rem; padding-left:0; list-style:none; }
.st-page-content ul li{ position:relative; padding-left:1.7rem; margin-bottom:.55rem; }
.st-page-content ul li::before{ content:"✓"; position:absolute; left:0; top:0; color:var(--st-accent); font-weight:800; }
.st-page-content a{ color:var(--st-accent); font-weight:600; }

.st-cta-card{
  position:sticky; top:110px; background:#fff; border:1px solid var(--st-line); border-radius:var(--st-radius);
  padding:1.8rem; box-shadow:var(--st-shadow); text-align:center;
}
.st-prod-icon{
  width:64px; height:64px; margin:0 auto 1rem; border-radius:14px; display:grid; place-items:center; font-size:1.9rem;
  background:linear-gradient(135deg, rgba(61,90,241,.14), rgba(62,58,110,.14)); color:var(--st-accent);
}
.st-cta-card h3{ font-size:1.15rem; margin:0 0 .5rem; }
.st-cta-card p{ color:var(--st-muted); font-size:.92rem; margin:0 0 1.2rem; }
.st-btn-outline{ background:#fff; color:var(--st-navy); border:1.5px solid var(--st-line); }
.st-btn-outline:hover{ border-color:var(--st-accent); color:var(--st-accent); }
.justify-content-center{ justify-content:center; }

/* ── Floating WhatsApp ── */
.st-wa-float{
  position:fixed; right:20px; bottom:20px; z-index:1200; width:56px; height:56px; border-radius:50%;
  background:#25D366; display:grid; place-items:center; box-shadow:0 10px 26px rgba(37,211,102,.5);
  transition:transform .2s;
}
.st-wa-float:hover{ transform:scale(1.08); }
.st-wa-float svg{ width:30px; height:30px; fill:#fff; }
.st-contact-row a{ color:var(--st-ink); }
.st-contact-row a:hover{ color:var(--st-accent); }

/* ── Reveal animation ── */
.st-io{ opacity:0; transform:translateY(18px); transition:opacity .6s ease, transform .6s ease; }
.st-io.in{ opacity:1; transform:none; }

/* ── Responsive ── */
@media (max-width: 860px){
  .st-menu{
    position:absolute; top:100%; left:0; right:0; background:#fff; flex-direction:column; align-items:stretch;
    gap:0; padding:.5rem; box-shadow:0 12px 30px rgba(27,42,91,.14); display:none; border-top:1px solid var(--st-line);
  }
  .st-menu.open{ display:flex; }
  .st-menu a{ padding:.85rem 1rem; border-radius:8px; }
  .st-nav-toggle{ display:block; }
  .st-contact-wrap, .st-footer-grid{ grid-template-columns:1fr; }
  .st-topbar .container{ justify-content:center; }
}
