/* =========================================================================
   GLOBAL STYLES
   Brand colors come from CSS variables set inline in includes/header.php,
   which read from includes/config.php — change colors there, not here.
   ========================================================================= */
:root{
  --brand-primary:#5b3df5;
  --brand-primary-dark:#3d22c9;
  --brand-secondary:#00d4b8;
  --brand-dark:#0b0e1a;
  --brand-light:#f7f7fb;

  --text-main:#1c1d2b;
  --text-muted:#6b6f85;
  --white:#ffffff;
  --border:#e7e7f0;

  --radius-sm:8px;
  --radius-md:16px;
  --radius-lg:28px;
  --shadow-sm:0 4px 16px rgba(20,20,50,0.06);
  --shadow-md:0 12px 32px rgba(20,20,50,0.10);
  --shadow-lg:0 24px 60px rgba(20,20,50,0.16);
  --transition: all .3s cubic-bezier(.4,0,.2,1);
  --font-head:'Poppins', sans-serif;
  --font-body:'Inter', sans-serif;
}

*,*::before,*::after{ box-sizing:border-box; margin:0; padding:0; }
html{ scroll-behavior:smooth; }
body{
  font-family:var(--font-body);
  color:var(--text-main);
  background:var(--white);
  line-height:1.65;
  overflow-x:hidden;
  -webkit-font-smoothing:antialiased;
}
img{ max-width:100%; display:block; }
a{ text-decoration:none; color:inherit; }
ul{ list-style:none; }
button{ font-family:inherit; cursor:pointer; border:none; background:none; }
h1,h2,h3,h4,h5{ font-family:var(--font-head); font-weight:700; line-height:1.2; color:var(--text-main); }
.container{ width:100%; max-width:1200px; margin:0 auto; padding:0 24px; }

/* ---- Section helpers ---- */
.section{ padding:96px 0; }
.section-sm{ padding:56px 0; }
.bg-light{ background:var(--brand-light); }
.bg-dark{ background:var(--brand-dark); color:#fff; }
.bg-dark h1,.bg-dark h2,.bg-dark h3{ color:#fff; }
.bg-gradient{ background:linear-gradient(135deg,var(--brand-primary),var(--brand-primary-dark)); color:#fff; }
.bg-gradient h1,.bg-gradient h2,.bg-gradient h3{ color:#fff; }

.eyebrow{
  display:inline-flex; align-items:center; gap:8px;
  font-size:13px; font-weight:600; letter-spacing:.08em; text-transform:uppercase;
  color:var(--brand-primary); background:rgba(91,61,245,.08);
  padding:6px 14px; border-radius:999px; margin-bottom:16px;
}
.bg-dark .eyebrow, .bg-gradient .eyebrow{ background:rgba(255,255,255,.12); color:#fff; }

.section-head{ max-width:680px; margin:0 auto 56px; text-align:center; }
.section-head h2{ font-size:clamp(28px,4vw,42px); margin-bottom:14px; }
.section-head p{ color:var(--text-muted); font-size:17px; }
.bg-dark .section-head p, .bg-gradient .section-head p{ color:rgba(255,255,255,.78); }

.text-left{ text-align:left; margin-left:0; }

/* ---- Buttons ---- */
.btn{
  display:inline-flex; align-items:center; justify-content:center; gap:8px;
  padding:15px 30px; border-radius:999px; font-weight:600; font-size:15px;
  transition:var(--transition); white-space:nowrap; border:2px solid transparent;
}
.btn-primary{ background:var(--brand-primary); color:#fff; box-shadow:0 10px 24px rgba(91,61,245,.30); }
.btn-primary:hover{ background:var(--brand-primary-dark); transform:translateY(-3px); box-shadow:0 16px 32px rgba(91,61,245,.38); }
.btn-outline{ border-color:currentColor; color:var(--text-main); }
.btn-outline:hover{ background:var(--text-main); color:#fff; transform:translateY(-3px); }
.bg-dark .btn-outline, .bg-gradient .btn-outline{ color:#fff; }
.bg-dark .btn-outline:hover, .bg-gradient .btn-outline:hover{ background:#fff; color:var(--brand-dark); }
.btn-white{ background:#fff; color:var(--brand-primary); }
.btn-white:hover{ background:var(--brand-dark); color:#fff; transform:translateY(-3px); }
.btn-sm{ padding:10px 22px; font-size:14px; }
.btn-block{ width:100%; }

/* =========================================================================
   HEADER / NAV
   ========================================================================= */
.site-header{
  position:sticky; top:0; z-index:1000;
  background:rgba(255,255,255,.85);
  backdrop-filter:blur(14px); -webkit-backdrop-filter:blur(14px);
  border-bottom:1px solid var(--border);
  transition:var(--transition);
}
.header-inner{ display:flex; align-items:center; justify-content:space-between; height:82px; }

.logo{ display:flex; align-items:center; gap:10px; font-family:var(--font-head); font-weight:700; font-size:19px; }
.logo-badge{
  width:40px; height:40px; border-radius:11px; display:flex; align-items:center; justify-content:center;
  background:linear-gradient(135deg,var(--brand-primary),var(--brand-secondary)); color:#fff; font-size:15px; font-weight:800;
  box-shadow:0 6px 16px rgba(91,61,245,.35);
}
.logo-image{ height:40px; width:auto; max-width:160px; object-fit:contain; }

.main-nav{ display:flex; align-items:center; gap:36px; }
.nav-link{ font-weight:500; font-size:15px; color:var(--text-main); position:relative; padding:6px 0; }
.nav-link::after{
  content:''; position:absolute; left:0; bottom:-2px; width:0; height:2px; background:var(--brand-primary);
  transition:var(--transition);
}
.nav-link:hover::after, .nav-link.active::after{ width:100%; }
.nav-link.active{ color:var(--brand-primary); }

.header-actions{ display:flex; align-items:center; gap:18px; }
.nav-toggle{ display:none; flex-direction:column; gap:5px; width:26px; }
.nav-toggle span{ height:2px; background:var(--text-main); border-radius:2px; transition:var(--transition); }

/* =========================================================================
   HERO
   ========================================================================= */
.hero{
  position:relative; padding:110px 0 100px; overflow:hidden;
  background:radial-gradient(circle at 15% 20%, rgba(91,61,245,.10), transparent 55%),
             radial-gradient(circle at 85% 80%, rgba(0,212,184,.10), transparent 55%),
             var(--brand-light);
}
.hero-grid{ display:grid; grid-template-columns:1.1fr .9fr; gap:60px; align-items:center; }
.hero h1{ font-size:clamp(36px,5.2vw,58px); margin-bottom:22px; letter-spacing:-0.01em; }
.hero h1 span{ background:linear-gradient(135deg,var(--brand-primary),var(--brand-secondary)); -webkit-background-clip:text; background-clip:text; color:transparent; }
.hero p{ font-size:18px; color:var(--text-muted); max-width:520px; margin-bottom:34px; }
.hero-actions{ display:flex; gap:16px; flex-wrap:wrap; margin-bottom:48px; }

.hero-stats{ display:flex; gap:40px; flex-wrap:wrap; }
.hero-stats .stat-num{ font-family:var(--font-head); font-size:30px; font-weight:800; color:var(--brand-primary); }
.hero-stats .stat-label{ font-size:13px; color:var(--text-muted); }

.hero-visual{ position:relative; }
.hero-visual img{ border-radius:var(--radius-lg); box-shadow:var(--shadow-lg); animation:float 5s ease-in-out infinite; }
.hero-badge-card{
  position:absolute; bottom:-24px; left:-24px; background:#fff; padding:18px 22px; border-radius:var(--radius-md);
  box-shadow:var(--shadow-md); display:flex; align-items:center; gap:14px; animation:float 5s ease-in-out infinite 1s;
}
.hero-badge-card i{ font-size:22px; color:var(--brand-secondary); }
.hero-badge-card .num{ font-weight:800; font-family:var(--font-head); }
.hero-badge-card .label{ font-size:12px; color:var(--text-muted); }

@keyframes float{ 0%,100%{ transform:translateY(0);} 50%{ transform:translateY(-14px);} }

/* Page (interior) hero — for About/Capabilities/Product/Contact */
.page-hero{ padding:70px 0 60px; text-align:center; background:var(--brand-dark); color:#fff; position:relative; overflow:hidden; }
.page-hero::before{
  content:''; position:absolute; inset:0;
  background:radial-gradient(circle at 20% 30%, rgba(91,61,245,.35), transparent 50%),
             radial-gradient(circle at 80% 70%, rgba(0,212,184,.25), transparent 50%);
}
.page-hero .container{ position:relative; }
.page-hero h1{ font-size:clamp(32px,5vw,48px); color:#fff; margin-bottom:14px; }
.page-hero p{ color:rgba(255,255,255,.75); font-size:17px; max-width:560px; margin:0 auto; }
.breadcrumb{ margin-top:20px; font-size:14px; color:rgba(255,255,255,.6); }
.breadcrumb a{ color:#fff; font-weight:600; }

/* =========================================================================
   CARDS / GRIDS  (used across Capabilities, Product, About)
   ========================================================================= */
.grid{ display:grid; gap:28px; }
.grid-2{ grid-template-columns:repeat(2,1fr); }
.grid-3{ grid-template-columns:repeat(3,1fr); }
.grid-4{ grid-template-columns:repeat(4,1fr); }

.card{
  background:#fff; border:1px solid var(--border); border-radius:var(--radius-md); padding:34px 28px;
  transition:var(--transition); position:relative;
}
.card:hover{ transform:translateY(-8px); box-shadow:var(--shadow-md); border-color:transparent; }

.icon-box{
  width:56px; height:56px; border-radius:14px; display:flex; align-items:center; justify-content:center;
  background:linear-gradient(135deg,rgba(91,61,245,.12),rgba(0,212,184,.12)); color:var(--brand-primary); font-size:22px;
  margin-bottom:20px; transition:var(--transition);
}
.card:hover .icon-box{ background:linear-gradient(135deg,var(--brand-primary),var(--brand-secondary)); color:#fff; transform:scale(1.08) rotate(-4deg); }
.card h3{ font-size:19px; margin-bottom:10px; }
.card p{ color:var(--text-muted); font-size:15px; }

/* Numbered process steps (Capabilities page) */
.process-step{ position:relative; padding-left:0; }
.process-num{
  font-family:var(--font-head); font-size:46px; font-weight:800;
  background:linear-gradient(135deg,var(--brand-primary),var(--brand-secondary)); -webkit-background-clip:text; background-clip:text; color:transparent;
  margin-bottom:10px; display:block;
}

/* Stats band */
.stats-band{ display:grid; grid-template-columns:repeat(4,1fr); gap:24px; text-align:center; }
.stats-band .stat-num{ font-family:var(--font-head); font-size:clamp(30px,4vw,44px); font-weight:800; }
.stats-band .stat-label{ font-size:14px; color:var(--text-muted); margin-top:6px; }
.bg-dark .stats-band .stat-label, .bg-gradient .stats-band .stat-label{ color:rgba(255,255,255,.7); }

/* =========================================================================
   PRODUCT PAGE
   ========================================================================= */
.filter-bar{ display:flex; gap:12px; justify-content:center; flex-wrap:wrap; margin-bottom:48px; }
.filter-btn{
  padding:10px 22px; border-radius:999px; border:1px solid var(--border); font-weight:600; font-size:14px;
  color:var(--text-muted); transition:var(--transition);
}
.filter-btn:hover{ border-color:var(--brand-primary); color:var(--brand-primary); }
.filter-btn.active{ background:var(--brand-primary); border-color:var(--brand-primary); color:#fff; }

.product-card{
  background:#fff; border:1px solid var(--border); border-radius:var(--radius-md); overflow:hidden; transition:var(--transition);
}
.product-card:hover{ box-shadow:var(--shadow-md); transform:translateY(-8px); }
.product-thumb{ position:relative; aspect-ratio:4/3; overflow:hidden; background:var(--brand-light); }
.product-thumb img{ width:100%; height:100%; object-fit:cover; transition:transform .5s ease; }
.product-card:hover .product-thumb img{ transform:scale(1.08); }
.product-badge{
  position:absolute; top:14px; left:14px; background:var(--brand-secondary); color:#fff; font-size:12px; font-weight:700;
  padding:5px 12px; border-radius:999px;
}
.product-body{ padding:22px; }
.product-cat{ font-size:12px; text-transform:uppercase; letter-spacing:.06em; color:var(--brand-primary); font-weight:700; margin-bottom:6px; }
.product-body h3{ font-size:18px; margin-bottom:8px; }
.product-body p{ color:var(--text-muted); font-size:14px; margin-bottom:16px; }
.product-footer{ display:flex; align-items:center; justify-content:space-between; }
.product-price{ font-family:var(--font-head); font-weight:800; font-size:19px; color:var(--text-main); }
.product-price .old{ font-size:14px; color:var(--text-muted); text-decoration:line-through; font-weight:500; margin-right:6px; }

/* =========================================================================
   TESTIMONIALS (slider, vanilla JS)
   ========================================================================= */
/* Crossfade "grid stack": every slide occupies the same grid cell so the
   container sizes to the tallest slide automatically, and inactive slides
   stay within the visible box (hidden via opacity/visibility) instead of
   being laid out off-screen and transformed into view. This avoids a real
   Chromium rendering bug where far off-screen flex items brought into view
   via a parent transform can fail to paint. */
.testimonial-track{ display:grid; }
.testimonial-slide{ grid-area:1/1; padding:6px; opacity:0; visibility:hidden; transition:opacity .5s ease; }
.testimonial-slide.active{ opacity:1; visibility:visible; }
.testimonial-card{
  background:#fff; border-radius:var(--radius-md); padding:44px; box-shadow:var(--shadow-sm); text-align:center; max-width:680px; margin:0 auto;
}
.testimonial-card .stars{ color:#ffb020; margin-bottom:18px; }
.testimonial-card p{ font-size:19px; font-style:italic; color:var(--text-main); margin-bottom:26px; }
.testimonial-author{ display:flex; align-items:center; justify-content:center; gap:12px; }
.testimonial-author img{ width:46px; height:46px; border-radius:50%; object-fit:cover; }
.testimonial-author .name{ font-weight:700; font-size:15px; }
.testimonial-author .role{ font-size:13px; color:var(--text-muted); }
.testimonial-dots{ display:flex; justify-content:center; gap:8px; margin-top:28px; }
.testimonial-dots button{ width:9px; height:9px; border-radius:50%; background:var(--border); transition:var(--transition); }
.testimonial-dots button.active{ background:var(--brand-primary); width:26px; border-radius:6px; }

/* =========================================================================
   TEAM (About page)
   ========================================================================= */
.team-card{ text-align:center; }
.team-photo{ position:relative; border-radius:var(--radius-md); overflow:hidden; margin-bottom:18px; aspect-ratio:1/1; }
.team-photo img{ width:100%; height:100%; object-fit:cover; transition:var(--transition); }
.team-card:hover .team-photo img{ transform:scale(1.06); }
.team-social{
  position:absolute; inset:auto 0 0 0; display:flex; justify-content:center; gap:10px; padding:16px 0;
  background:linear-gradient(0deg, rgba(11,14,26,.75), transparent); opacity:0; transition:var(--transition);
}
.team-card:hover .team-social{ opacity:1; }
.team-social a{ width:34px; height:34px; border-radius:50%; background:#fff; color:var(--brand-dark); display:flex; align-items:center; justify-content:center; font-size:13px; }
.team-card h3{ font-size:17px; margin-bottom:4px; }
.team-card .role{ font-size:13px; color:var(--brand-primary); font-weight:600; }

/* Values / timeline */
.value-item{ display:flex; gap:18px; }
.value-item .icon-box{ flex-shrink:0; margin-bottom:0; }

/* =========================================================================
   CTA BAND
   ========================================================================= */
.cta-band{ text-align:center; border-radius:var(--radius-lg); padding:70px 40px; position:relative; overflow:hidden; }
.cta-band h2{ font-size:clamp(26px,4vw,38px); margin-bottom:16px; }
.cta-band p{ margin-bottom:32px; opacity:.85; max-width:520px; margin-left:auto; margin-right:auto; }
.cta-actions{ display:flex; gap:16px; justify-content:center; flex-wrap:wrap; }

/* =========================================================================
   CONTACT PAGE
   ========================================================================= */
.contact-grid{ display:grid; grid-template-columns:.9fr 1.1fr; gap:48px; align-items:flex-start; }
.contact-info-card{ background:var(--brand-dark); color:#fff; border-radius:var(--radius-lg); padding:44px 36px; }
.contact-info-card h3{ color:#fff; margin-bottom:8px; }
.contact-info-card > p{ color:rgba(255,255,255,.7); margin-bottom:32px; }
.contact-info-item{ display:flex; gap:16px; margin-bottom:26px; }
.contact-info-item .icon-box{ background:rgba(255,255,255,.1); color:var(--brand-secondary); margin-bottom:0; }
.contact-info-item h4{ font-size:15px; color:#fff; margin-bottom:4px; }
.contact-info-item p, .contact-info-item a{ color:rgba(255,255,255,.7); font-size:14px; }

.contact-form{ background:#fff; border:1px solid var(--border); border-radius:var(--radius-lg); padding:44px; box-shadow:var(--shadow-sm); }
.form-row{ display:grid; grid-template-columns:1fr 1fr; gap:20px; }
.form-group{ margin-bottom:22px; }
.form-group label{ display:block; font-size:14px; font-weight:600; margin-bottom:8px; }
.form-group input, .form-group select, .form-group textarea{
  width:100%; padding:14px 16px; border:1px solid var(--border); border-radius:var(--radius-sm); font-family:inherit; font-size:15px;
  transition:var(--transition); background:var(--brand-light);
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus{ outline:none; border-color:var(--brand-primary); background:#fff; }
.form-group textarea{ resize:vertical; min-height:130px; }

.form-alert{ padding:16px 20px; border-radius:var(--radius-sm); margin-bottom:24px; font-size:14px; font-weight:500; }
.form-alert.success{ background:rgba(0,212,184,.12); color:#00806e; border:1px solid rgba(0,212,184,.3); }
.form-alert.error{ background:rgba(245,61,61,.1); color:#c62828; border:1px solid rgba(245,61,61,.25); }

.map-wrap{ border-radius:var(--radius-lg); overflow:hidden; margin-top:56px; box-shadow:var(--shadow-sm); }
.map-wrap iframe{ width:100%; height:380px; border:0; display:block; }
.map-placeholder{
  height:320px; display:flex; align-items:center; justify-content:center; flex-direction:column; gap:10px;
  background:var(--brand-light); color:var(--text-muted); text-align:center; padding:20px;
}

/* =========================================================================
   FOOTER
   ========================================================================= */
.site-footer{ background:var(--brand-dark); color:rgba(255,255,255,.75); padding-top:80px; }
.footer-grid{ display:grid; grid-template-columns:1.4fr 1fr 1fr 1.2fr; gap:40px; padding-bottom:56px; }
.footer-col h4{ color:#fff; font-size:15px; margin-bottom:20px; }
.footer-col ul li{ margin-bottom:12px; font-size:14px; }
.footer-col ul li a:hover{ color:var(--brand-secondary); }
.footer-brand p{ font-size:14px; margin:16px 0 22px; max-width:280px; }
.footer-contact li{ display:flex; gap:10px; align-items:flex-start; }
.footer-contact i{ color:var(--brand-secondary); margin-top:3px; }

.social-links{ display:flex; gap:10px; }
.social-links a{
  width:38px; height:38px; border-radius:50%; background:rgba(255,255,255,.08); display:flex; align-items:center; justify-content:center;
  transition:var(--transition); color:#fff;
}
.social-links a:hover{ background:var(--brand-primary); transform:translateY(-3px); }

.footer-subscribe{ display:flex; gap:8px; }
.footer-subscribe input{
  flex:1; padding:12px 14px; border-radius:var(--radius-sm); border:1px solid rgba(255,255,255,.15); background:rgba(255,255,255,.06); color:#fff; font-size:14px;
}
.footer-subscribe input::placeholder{ color:rgba(255,255,255,.5); }
.footer-subscribe button{
  width:44px; border-radius:var(--radius-sm); background:var(--brand-primary); color:#fff; display:flex; align-items:center; justify-content:center;
  transition:var(--transition);
}
.footer-subscribe button:hover{ background:var(--brand-primary-dark); }

.footer-bottom{ border-top:1px solid rgba(255,255,255,.1); padding:22px 0; }
.footer-bottom-inner{ display:flex; justify-content:space-between; align-items:center; font-size:13px; flex-wrap:wrap; gap:10px; }

.back-to-top{
  position:fixed; right:26px; bottom:26px; width:46px; height:46px; border-radius:50%; background:var(--brand-primary); color:#fff;
  display:flex; align-items:center; justify-content:center; box-shadow:var(--shadow-md); opacity:0; visibility:hidden; transform:translateY(10px);
  transition:var(--transition); z-index:900;
}
.back-to-top.visible{ opacity:1; visibility:visible; transform:translateY(0); }
.back-to-top:hover{ background:var(--brand-primary-dark); }

/* =========================================================================
   SCROLL-REVEAL ANIMATION (vanilla JS toggles .in-view)
   ========================================================================= */
.reveal{ opacity:0; transform:translateY(30px); transition:opacity .7s ease, transform .7s ease; }
.reveal.in-view{ opacity:1; transform:translateY(0); }
.reveal-delay-1.in-view{ transition-delay:.1s; }
.reveal-delay-2.in-view{ transition-delay:.2s; }
.reveal-delay-3.in-view{ transition-delay:.3s; }

/* =========================================================================
   RESPONSIVE
   ========================================================================= */
@media (max-width:980px){
  .grid-4{ grid-template-columns:repeat(2,1fr); }
  .grid-3{ grid-template-columns:repeat(2,1fr); }
  .stats-band{ grid-template-columns:repeat(2,1fr); gap:32px; }
  .hero-grid{ grid-template-columns:1fr; }
  .hero-visual{ order:-1; }
  .contact-grid{ grid-template-columns:1fr; }
  .footer-grid{ grid-template-columns:1fr 1fr; }
}

@media (max-width:760px){
  .section{ padding:64px 0; }
  .main-nav{
    position:fixed; top:82px; left:0; right:0; background:#fff; flex-direction:column; align-items:flex-start;
    padding:24px; gap:18px; box-shadow:var(--shadow-md); transform:translateY(-140%); opacity:0; transition:var(--transition);
    max-height:calc(100vh - 82px); overflow:auto;
  }
  .main-nav.open{ transform:translateY(0); opacity:1; }
  .nav-toggle{ display:flex; }
  .header-cta{ display:none; }
  .grid-2, .grid-3, .grid-4{ grid-template-columns:1fr; }
  .stats-band{ grid-template-columns:1fr 1fr; }
  .form-row{ grid-template-columns:1fr; }
  .footer-grid{ grid-template-columns:1fr; text-align:left; }
  .footer-bottom-inner{ flex-direction:column; text-align:center; }
}

.nav-toggle.open span:nth-child(1){ transform:translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2){ opacity:0; }
.nav-toggle.open span:nth-child(3){ transform:translateY(-7px) rotate(-45deg); }
