/* ================================================================
   KEMBTEC SOLUTIONS — tec.css
   Single stylesheet for the one-page site (index.html + tec.js).
   Purple / white / grey theme, mobile-first, rounded cards/buttons.
   ================================================================ */

/* ---------------------------------------------------------------
   1. TOKENS
   --------------------------------------------------------------- */
:root{
  --purple:#5B2C91;
  --purple-dark:#432069;
  --purple-tint:#F3EEFA;

  --white:#FFFFFF;
  --grey-light:#F5F5F7;
  --grey-border:#E4E3E8;
  --grey-dark:#3A383F;
  --grey-mid:#75737C;

  --font-heading:'Poppins', sans-serif;
  --font-body:'Inter', sans-serif;

  --radius:12px;
  --radius-sm:8px;
  --wrap:1180px;
  --ease:cubic-bezier(.22,.9,.3,1);
}

@media (prefers-reduced-motion: reduce){
  *{ animation-duration:0.001ms !important; transition-duration:0.001ms !important; }
}

/* ---------------------------------------------------------------
   2. RESET & BASE
   --------------------------------------------------------------- */
*,*::before,*::after{ box-sizing:border-box; }
html{ scroll-behavior:smooth; }
body{
  margin:0;
  font-family:var(--font-body);
  color:var(--grey-dark);
  background:var(--white);
  -webkit-font-smoothing:antialiased;
  line-height:1.6;
}
img{ max-width:100%; display:block; }
a{ color:inherit; text-decoration:none; }
ul{ margin:0; padding:0; list-style:none; }
h1,h2,h3,h4{ font-family:var(--font-heading); margin:0; color:var(--grey-dark); line-height:1.25; font-weight:600; }
p{ margin:0; }
button{ font-family:inherit; }
:focus-visible{ outline:2.5px solid var(--purple); outline-offset:3px; }

.wrap{ width:100%; max-width:var(--wrap); margin:0 auto; padding:0 24px; }

body.drawer-open{ overflow:hidden; }

/* Individual cards fade in with a slight rise, staggered by JS
   (see staggerCards() in tec.js) once their parent section reveals. */
.reveal .service-card,
.reveal .testimonial-card,
.reveal .product-card{
  opacity:0; transform:translateY(14px);
  transition:opacity .5s var(--ease), transform .5s var(--ease);
}
.reveal.in-view .service-card,
.reveal.in-view .testimonial-card,
.reveal.in-view .product-card{
  opacity:1; transform:translateY(0);
}
  /* ---------------------------------------------------------------
4. HEADER / LOGO / NAV   
   --------------------------------------------------------------- */

.site-header{
  position:sticky; top:0; z-index:200;
  background:rgba(255,255,255,0.94);
  backdrop-filter:blur(8px);
  border-bottom:1px solid var(--grey-border);
}
.header-inner{ display:flex; align-items:center; justify-content:space-between; height:76px; }

.logo{ display:flex; align-items:center; gap:10px; }
.logo-mark{
  width:38px; height:38px; border-radius:10px;
  background:var(--purple); color:var(--white);
  display:flex; align-items:center; justify-content:center; flex-shrink:0;
}
.logo-mark svg{ width:22px; height:22px; }
.logo-text{ display:flex; flex-direction:column; line-height:1.05; }
.logo-main{ font-family:var(--font-heading); font-weight:700; font-size:18px; color:var(--purple); }
.logo-sub{ font-size:10px; color:var(--grey-mid); font-weight:500; letter-spacing:1.5px; }

.main-nav{ display:none; align-items:center; gap:34px; }
.main-nav a{ font-size:14.5px; font-weight:500; color:var(--grey-dark); transition:color .2s var(--ease); }
.main-nav a:hover{ color:var(--purple); }

.header-actions{ display:flex; align-items:center; gap:16px; }
.cart-btn{ position:relative; background:none; border:none; cursor:pointer; color:var(--grey-dark); display:flex; padding:4px; }
.cart-btn svg{ width:23px; height:23px; }
.cart-count{
  position:absolute; top:-4px; right:-6px;
  font-size:10.5px; font-weight:700;
  background:var(--purple); color:var(--white);
  min-width:17px; height:17px; border-radius:50%;
  display:flex; align-items:center; justify-content:center; padding:0 3px;
}

.nav-toggle{ display:flex; flex-direction:column; justify-content:center; gap:5px; width:38px; height:38px; background:none; border:none; cursor:pointer; padding:0; }
.nav-toggle span{ height:2px; width:100%; background:var(--grey-dark); transition:transform .25s var(--ease), opacity .25s var(--ease); }
.nav-toggle[aria-expanded="true"] span:nth-child(1){ transform:translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2){ opacity:0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3){ transform:translateY(-7px) rotate(-45deg); }

.main-nav.open{
  display:flex; flex-direction:column; align-items:flex-start; gap:16px;
  position:absolute; top:76px; left:0; right:0;
  background:var(--white); padding:22px 24px 28px;
  border-bottom:1px solid var(--grey-border);
}

@media (min-width:880px){
  .main-nav{ display:flex; position:static; padding:0; border:none; background:none; }
  .nav-toggle{ display:none; }
}

/* ---------------------------------------------------------------
   5. BUTTONS
   --------------------------------------------------------------- */
.btn{
  display:inline-flex; align-items:center; justify-content:center;
  padding:13px 26px; border-radius:var(--radius-sm);
  font-weight:600; font-size:14.5px;
  border:1.5px solid transparent;
  cursor:pointer;
  transition:transform .18s var(--ease), background .18s var(--ease), border-color .18s var(--ease);
}
.btn-primary{ background:var(--purple); color:var(--white); }
.btn-primary:hover{ background:var(--purple-dark); transform:translateY(-1px); }
.btn-outline{ border-color:var(--white); color:var(--white); }
.btn-outline:hover{ background:rgba(255,255,255,0.12); }
.btn-ghost{ border-color:var(--grey-border); color:var(--grey-dark); }
.btn-ghost:hover{ border-color:var(--purple); color:var(--purple); }
.btn-light{ background:var(--white); color:var(--purple); }
.btn-light:hover{ background:var(--grey-light); }
.btn-full{ width:100%; }
.btn:disabled{ opacity:0.4; cursor:not-allowed; transform:none !important; }

/* ---------------------------------------------------------------
   6. SECTION HEADINGS
   --------------------------------------------------------------- */
.eyebrow{ font-size:13px; font-weight:600; color:var(--purple); letter-spacing:0.5px; margin-bottom:10px; text-transform:uppercase; }
.section-title{ font-size:clamp(24px,3.6vw,32px); margin-bottom:14px; }
.section-lead{ font-size:15.5px; color:var(--grey-mid); max-width:56ch; line-height:1.7; }
.section-head{ margin-bottom:44px; }
.section-head.center{ text-align:center; max-width:560px; margin-left:auto; margin-right:auto; }

section{ padding:72px 0; }
.bg-tint{ background:var(--grey-light); }

/* ---------------------------------------------------------------
   7. HERO
   --------------------------------------------------------------- */
.hero{
  position:relative; overflow:hidden;
  background:linear-gradient(155deg, var(--purple) 0%, var(--purple-dark) 100%);
  padding:90px 0 100px;
}
.hero::before{
  content:''; position:absolute; inset:0;
  background-image:radial-gradient(rgba(255,255,255,0.10) 1.5px, transparent 1.5px);
  background-size:26px 26px;
  opacity:0.5;
}
.hero-inner{ position:relative; text-align:center; max-width:680px; margin:0 auto; }
.hero-eyebrow{
  display:inline-block; font-size:13px; font-weight:600; letter-spacing:0.5px;
  color:var(--white); background:rgba(255,255,255,0.14);
  padding:7px 16px; border-radius:100px; margin-bottom:22px;
}
.hero h1{ color:var(--white); font-size:clamp(30px,5.5vw,46px); line-height:1.2; margin-bottom:18px; }
.hero-lead{ color:rgba(255,255,255,0.85); font-size:16.5px; line-height:1.7; max-width:56ch; margin:0 auto 34px; }
.hero-actions{ display:flex; flex-wrap:wrap; justify-content:center; gap:14px; }

/* ---------------------------------------------------------------
   8. SERVICE CARDS
   --------------------------------------------------------------- */
.card-grid{ display:grid; gap:22px; grid-template-columns:1fr; }
@media (min-width:640px){ .card-grid{ grid-template-columns:repeat(2, 1fr); } }
@media (min-width:1000px){ .card-grid{ grid-template-columns:repeat(3, 1fr); } }

.service-card{
  background:var(--white); border:1px solid var(--grey-border);
  border-radius:var(--radius); padding:28px 24px;
  transition:transform .22s var(--ease), box-shadow .22s var(--ease), border-color .22s var(--ease);
}
.service-card:hover{ transform:translateY(-3px); box-shadow:0 16px 32px -20px rgba(43,21,72,0.25); border-color:var(--purple); }
.service-icon{
  width:44px; height:44px; border-radius:var(--radius-sm);
  background:var(--purple-tint); color:var(--purple);
  display:flex; align-items:center; justify-content:center; margin-bottom:16px;
}
.service-icon svg{ width:22px; height:22px; }
.service-card h3{ font-size:16px; margin-bottom:7px; }
.service-card p{ font-size:13.5px; color:var(--grey-mid); line-height:1.6; }

/* ---------------------------------------------------------------
   9. ABOUT
   --------------------------------------------------------------- */
.about-inner{ text-align:center; max-width:680px; margin:0 auto; }
.about-stats{ display:flex; justify-content:center; gap:48px; margin-top:36px; flex-wrap:wrap; }
.about-stats div{ text-align:center; }
.about-stats strong{ display:block; font-family:var(--font-heading); font-size:28px; color:var(--purple); }
.about-stats span{ font-size:12.5px; color:var(--grey-mid); letter-spacing:0.3px; }

/* ---------------------------------------------------------------
   9b. GALLERY: team photos + videos
   --------------------------------------------------------------- */
.gallery-slider{
  display:flex; align-items:center; gap:12px;
  margin-bottom:40px;
}
.gallery-track{
  display:flex; gap:14px; overflow-x:auto; scroll-behavior:smooth;
  scroll-snap-type:x mandatory;
  flex:1; padding-bottom:4px;
  scrollbar-width:none; -ms-overflow-style:none;
}
.gallery-track::-webkit-scrollbar{ display:none; }

.gallery-item{
  flex:0 0 220px; aspect-ratio:4/3;
  border-radius:var(--radius-sm); overflow:hidden;
  background:var(--grey-light); border:1px solid var(--grey-border);
  scroll-snap-align:start;
}
.gallery-item img{
  width:100%; height:100%; object-fit:cover;
  transition:transform .3s var(--ease);
}
.gallery-item:hover img{ transform:scale(1.06); }

.slider-arrow{
  width:42px; height:42px; border-radius:50%; flex-shrink:0;
  border:1.5px solid var(--grey-border); background:var(--white);
  display:flex; align-items:center; justify-content:center; cursor:pointer;
  color:var(--grey-dark);
  transition:border-color .18s var(--ease), color .18s var(--ease), transform .18s var(--ease);
}
.slider-arrow:hover{ border-color:var(--purple); color:var(--purple); transform:translateY(-1px); }
.slider-arrow svg{ width:18px; height:18px; }

.video-grid{
  display:grid; gap:20px; grid-template-columns:1fr;
}
@media (min-width:700px){ .video-grid{ grid-template-columns:repeat(2, 1fr); } }

.video-card{
  border-radius:var(--radius); overflow:hidden;
  border:1px solid var(--grey-border); background:var(--grey-dark);
}
.video-card video{ width:100%; display:block; aspect-ratio:16/9; background:var(--grey-dark); }




/* ---------------------------------------------------------------
   10. SHOP: search + product grid + pagination
   --------------------------------------------------------------- */
.shop-toolbar{ display:flex; flex-wrap:wrap; gap:12px; align-items:center; margin-bottom:36px; }
.search-box{
  flex:1 1 260px; display:flex; align-items:center; gap:10px;
  border:1.5px solid var(--grey-border); border-radius:100px;
  padding:11px 18px; background:var(--white);
}
.search-box svg{ width:18px; height:18px; color:var(--grey-mid); flex-shrink:0; }
.search-box input{
  border:none; outline:none; font-family:var(--font-body);
  font-size:14.5px; width:100%; background:transparent; color:var(--grey-dark);
}
.results-count{ font-size:13px; color:var(--grey-mid); white-space:nowrap; }

.product-grid{ display:grid; gap:22px; grid-template-columns:1fr; min-height:120px; }
@media (min-width:600px){ .product-grid{ grid-template-columns:repeat(2, 1fr); } }
@media (min-width:960px){ .product-grid{ grid-template-columns:repeat(3, 1fr); } }
@media (min-width:1200px){ .product-grid{ grid-template-columns:repeat(5, 1fr); } }

.product-card{
  background:var(--white); border:1px solid var(--grey-border);
  border-radius:var(--radius); overflow:hidden;
  display:flex; flex-direction:column;
  transition:transform .22s var(--ease), box-shadow .22s var(--ease);
}
.product-card:hover{ transform:translateY(-3px); box-shadow:0 16px 32px -20px rgba(43,21,72,0.25); }
.product-image{
  aspect-ratio:4/3; background:var(--grey-light);
  display:flex; align-items:center; justify-content:center; color:var(--purple);
  border-bottom:1px solid var(--grey-border);
}
.product-image img{ width:100%; height:220px; object-fit: cover; border-radius: 12px;
display: block;}
.product-body{ padding:18px; display:flex; flex-direction:column; gap:7px; flex:1; }
.product-body h4{ font-size:14.5px; line-height:1.35; }
.product-price{ font-weight:700; font-size:15.5px; color:var(--purple); }
.product-desc{ font-size:12.5px; color:var(--grey-mid); line-height:1.5; flex:1; }
.add-cart-btn{
  background:var(--purple); color:var(--white); border:none;
  border-radius:var(--radius-sm); padding:10px 14px;
  font-weight:600; font-size:13px; cursor:pointer; margin-top:4px;
  transition:background .18s var(--ease);
}
.add-cart-btn:hover{ background:var(--purple-dark); }
.add-cart-btn.added{ background:var(--grey-dark); }

.no-results{ text-align:center; padding:50px 20px; color:var(--grey-mid); font-size:14.5px; grid-column:1/-1; }

.pagination{ display:flex; align-items:center; justify-content:center; gap:18px; margin-top:40px; }
.page-btn{
  width:42px; height:42px; border-radius:50%;
  border:1.5px solid var(--grey-border); background:var(--white);
  display:flex; align-items:center; justify-content:center; cursor:pointer;
  color:var(--grey-dark); transition:border-color .18s var(--ease), color .18s var(--ease), transform .18s var(--ease);
}
.page-btn:hover:not(:disabled){ border-color:var(--purple); color:var(--purple); transform:translateY(-1px); }
.page-btn svg{ width:18px; height:18px; }
.page-indicator{ font-size:13.5px; color:var(--grey-mid); font-weight:500; min-width:64px; text-align:center; }

/* ---------------------------------------------------------------
   11. CART DRAWER
   --------------------------------------------------------------- */
.drawer-overlay{
  position:fixed; inset:0; background:rgba(20,18,23,0.45);
  opacity:0; pointer-events:none; transition:opacity .25s var(--ease);
  z-index:300;
}
.drawer-overlay.open{ opacity:1; pointer-events:auto; }

.cart-drawer{
  position:fixed; top:0; right:0; bottom:0; width:100%; max-width:420px;
  background:var(--white); z-index:301;
  box-shadow:-16px 0 40px -20px rgba(0,0,0,0.3);
  transform:translateX(100%); transition:transform .3s var(--ease);
  display:flex; flex-direction:column;
}
.cart-drawer.open{ transform:translateX(0); }

.drawer-header{
  display:flex; align-items:center; justify-content:space-between;
  padding:20px 22px; border-bottom:1px solid var(--grey-border);
}
.drawer-header h3{ font-size:17px; }
.drawer-close{ background:none; border:none; cursor:pointer; color:var(--grey-mid); padding:4px; display:flex; }
.drawer-close svg{ width:22px; height:22px; }

.drawer-body{ flex:1; overflow-y:auto; padding:20px 22px; }
.cart-items{ display:flex; flex-direction:column; gap:14px; }

.cart-item{ display:flex; gap:12px; padding-bottom:14px; border-bottom:1px solid var(--grey-border); }
.cart-item-thumb{
  width:56px; height:56px; border-radius:var(--radius-sm);
  background:var(--grey-light); display:flex; align-items:center; justify-content:center; color:var(--purple);
  flex-shrink:0;
}
.cart-item-thumb svg{ width:24px; height:24px; }
.cart-item-info{ flex:1; min-width:0; }
.cart-item-info h4{ font-size:13.5px; margin-bottom:3px; }
.cart-item-price{ font-size:12px; color:var(--grey-mid); }
.cart-item-controls{ display:flex; align-items:center; justify-content:space-between; margin-top:8px; }
.qty-selector{ display:flex; align-items:center; border:1.5px solid var(--grey-border); border-radius:var(--radius-sm); overflow:hidden; }
.qty-btn{ background:var(--grey-light); border:none; cursor:pointer; width:26px; height:26px; font-size:14px; font-weight:600; color:var(--grey-dark); }
.qty-btn:hover{ background:var(--grey-border); }
.qty-value{ width:26px; text-align:center; font-size:12.5px; }
.remove-btn{ background:none; border:none; cursor:pointer; color:var(--grey-mid); padding:4px; display:flex; transition:color .18s var(--ease); }
.remove-btn:hover{ color:#c0392b; }
.remove-btn svg{ width:16px; height:16px; }
.cart-item-line-total{ font-weight:700; font-size:13px; white-space:nowrap; }

.empty-cart{ text-align:center; padding:50px 10px; color:var(--grey-mid); font-size:14px; }
.empty-cart svg{ width:44px; height:44px; color:var(--grey-border); margin:0 auto 14px; }

.drawer-footer{ border-top:1px solid var(--grey-border); padding:20px 22px 24px; }
.drawer-footer[hidden]{ display:none; }
.summary-row{ display:flex; justify-content:space-between; font-size:14px; color:var(--grey-mid); padding:5px 0; }
.summary-total{ font-weight:700; font-size:16.5px; color:var(--grey-dark); padding-top:8px; }

.checkout-form{ display:flex; flex-direction:column; gap:12px; margin-top:16px; }
.form-row{ display:flex; flex-direction:column; gap:6px; }
.form-row label{ font-size:12.5px; font-weight:600; color:var(--grey-dark); }
.form-row input, .form-row textarea{
  font-family:var(--font-body); font-size:14px;
  padding:10px 13px; border-radius:var(--radius-sm);
  border:1.5px solid var(--grey-border); background:var(--white); color:var(--grey-dark);
  resize:vertical;
}
.form-row input:focus, .form-row textarea:focus{ border-color:var(--purple); outline:none; }
.form-note{ font-size:11.5px; color:var(--grey-mid); }
.checkout-status{ font-size:12.5px; color:var(--purple); min-height:16px; font-weight:500; }

/* ---------------------------------------------------------------
   12. CTA BANNER
   --------------------------------------------------------------- */
.cta-banner{ background:var(--purple); text-align:center; }
.cta-banner h2{ color:var(--white); font-size:clamp(22px,3.6vw,30px); margin-bottom:10px; }
.cta-banner p{ color:rgba(255,255,255,0.85); font-size:15px; margin-bottom:26px; }

/* ---------------------------------------------------------------
   13. CONTACT
   --------------------------------------------------------------- */
.contact-grid{ display:grid; gap:28px; grid-template-columns:1fr; }
@media (min-width:900px){ .contact-grid{ grid-template-columns:1fr 1fr; align-items:start; } }
.contact-details{ display:flex; flex-direction:column; gap:14px; }
.detail-card{ display:flex; gap:14px; background:var(--grey-light); border:1px solid var(--grey-border); border-radius:var(--radius); padding:18px; }
.detail-icon{ width:40px; height:40px; border-radius:var(--radius-sm); background:var(--purple); color:var(--white); display:flex; align-items:center; justify-content:center; flex-shrink:0; }
.detail-icon svg{ width:19px; height:19px; }
.detail-label{ font-size:11px; font-weight:600; letter-spacing:0.5px; text-transform:uppercase; color:var(--grey-mid); display:block; margin-bottom:3px; }
.detail-card p{ font-size:14.5px; color:var(--grey-dark); margin:0; }
.detail-card p + p{ margin-top:2px; }
.detail-card a:hover{ color:var(--purple); }

.form-card{
  background:var(--grey-light); border:1px solid var(--grey-border);
  border-radius:var(--radius); padding:26px;
  display:flex; flex-direction:column; gap:15px;
}
.form-card .form-row input, .form-card .form-row textarea{ background:var(--white); }
.form-status{ font-size:13px; color:var(--purple); min-height:18px; font-weight:500; }

/* ---------------------------------------------------------------
   14. TOAST
   --------------------------------------------------------------- */
.toast{
  position:fixed; left:50%; bottom:26px; transform:translate(-50%, 16px);
  background:var(--grey-dark); color:var(--white);
  padding:11px 20px; border-radius:100px; font-size:13.5px; font-weight:500;
  opacity:0; pointer-events:none;
  transition:opacity .22s var(--ease), transform .22s var(--ease);
  z-index:400;
}
.toast.show{ opacity:1; transform:translate(-50%, 0); }

/* ---------------------------------------------------------------
   15. FOOTER
   --------------------------------------------------------------- */
.site-footer{ background:var(--grey-dark); color:#B7B5BC; }
.footer-grid{ display:grid; gap:32px; padding:52px 0 28px; grid-template-columns:1fr; }
@media (min-width:820px){ .footer-grid{ grid-template-columns:1.3fr 1fr 1fr; } }
.footer-brand .logo-main{ color:var(--white); }
.footer-brand .logo-sub{ color:#8B8992; }
.footer-brand p{ margin-top:12px; font-size:13.5px; color:#B7B5BC; line-height:1.6; max-width:34ch; }
.footer-col{ display:flex; flex-direction:column; gap:9px; }
.footer-col h5{ color:var(--white); font-size:12.5px; letter-spacing:0.8px; text-transform:uppercase; margin-bottom:12px; }
.footer-col a, .footer-col span{ font-size:13.5px; color:#B7B5BC; }
.footer-col a:hover{ color:var(--white); }
.footer-bottom{ border-top:1px solid #4C4A52; padding:18px 0; font-size:12.5px; color:#8B8992; text-align:center; }


.video-slider {
  display: flex;
  align-items: center;
  gap: 1rem;
  position: relative;
}

.video-track {
  display: flex;
  gap: 1.25rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  flex: 1;
}

.video-track::-webkit-scrollbar { display: none; }

.video-card {
  flex: 0 0 auto;
  width: 320px;
  scroll-snap-align: start;
}

.video-card video { width: 100%; border-radius: 8px; }