/* =========================================
   SONI COMPUTERS - PROFESSIONAL WEBSITE CSS
   Clean responsive home-page stylesheet
   ========================================= */

:root{
  --blue:#0b5ed7;
  --blue2:#174ea6;
  --dark:#06152f;
  --dark2:#0b1f41;
  --light:#f5f9ff;
  --white:#fff;
  --text:#172033;
  --muted:#667085;
  --border:#e3eaf5;
  --shadow:0 8px 30px rgba(6,21,47,.10);
}

*{box-sizing:border-box;margin:0;padding:0}
html{scroll-behavior:smooth}
body{font-family:Arial,Helvetica,sans-serif;color:var(--text);background:#fff;line-height:1.6}
img{max-width:100%}
a{text-decoration:none;color:inherit}

/* HEADER */
header{
  position:sticky;top:0;z-index:1000;
  background:linear-gradient(135deg,#06152f,#0b1f41);
  box-shadow:0 4px 20px rgba(0,0,0,.20);
}
.nav{
  max-width:1200px;min-height:82px;margin:auto;padding:10px 22px;
  display:flex;align-items:center;justify-content:space-between;gap:25px;
}
.brand{display:flex;align-items:center;gap:12px;color:#fff;font-weight:800;font-size:22px;white-space:nowrap}
.brand img{width:95px;height:65px;object-fit:contain;display:block}
nav{display:flex;align-items:center;gap:26px}
nav a{color:#fff;font-size:15px;font-weight:600;transition:.25s}
nav a:hover{color:#38a9ff}
.header-whatsapp{
  background:#20c65a;color:#fff;padding:10px 16px;border-radius:9px;
  font-weight:800;white-space:nowrap;
}

/* HERO */
.hero-slider{position:relative;width:100%;height:570px;overflow:hidden;background:#06152f}
.slide-track{width:100%;height:100%;position:relative}
.hero-slide{
  position:absolute;inset:0;width:100%;height:100%;
  opacity:0;visibility:hidden;transition:opacity .8s ease;z-index:1;
}
.hero-slide.active{opacity:1;visibility:visible;z-index:2}
.hero-slide img{width:100%;height:100%;object-fit:cover;display:block}
.hero-slide::after{
  content:"";position:absolute;inset:0;
  background:linear-gradient(90deg,rgba(3,15,38,.92) 0%,rgba(3,15,38,.60) 42%,rgba(3,15,38,.10) 75%);
}
.slide-overlay{
  position:absolute;z-index:3;left:7%;top:50%;transform:translateY(-50%);
  max-width:550px;color:#fff;
}
.slide-overlay h1{font-size:52px;line-height:1.08;margin-bottom:18px;font-weight:800}
.slide-overlay h1 span{color:#2ea7ff}
.slide-overlay p{font-size:19px;max-width:520px;margin-bottom:25px}
.slider-btn{display:inline-block;padding:13px 24px;background:var(--blue);color:#fff;border-radius:10px;font-weight:700;transition:.25s}
.slider-btn:hover{background:#0849a8;transform:translateY(-2px)}
.slider-arrow{
  position:absolute;top:50%;transform:translateY(-50%);width:45px;height:55px;
  border:0;border-radius:8px;background:rgba(0,0,0,.45);color:#fff;font-size:30px;
  cursor:pointer;z-index:20;display:flex;align-items:center;justify-content:center;
}
.slider-prev{left:15px}.slider-next{right:15px}
.slider-dots{
  position:absolute;left:50%;bottom:20px;transform:translateX(-50%);
  display:flex;gap:10px;z-index:20;
}
.slider-dot{width:13px;height:13px;padding:0;border-radius:50%;background:#fff;border:2px solid var(--blue);cursor:pointer}
.slider-dot.active{background:var(--blue)}

/* QUICK ACTIONS */
.quick-actions{
  width:100%;max-width:1150px;margin:25px auto;padding:0 20px;
  display:grid;grid-template-columns:repeat(3,1fr);gap:20px;
  position:relative;z-index:5;
}
.quick-card{
  min-height:105px;padding:18px 22px;display:flex;align-items:center;gap:16px;
  background:#fff;border-radius:16px;color:#111827;
  box-shadow:0 5px 18px rgba(0,0,0,.10);border:1px solid #e5e7eb;transition:.3s ease;
}
.quick-card:hover{transform:translateY(-5px);box-shadow:0 10px 25px rgba(0,0,0,.15)}
.quick-icon{
  width:62px;height:62px;min-width:62px;border-radius:50%;display:flex;
  align-items:center;justify-content:center;background:var(--blue);color:#fff;font-size:30px;
}
.quick-card h3{margin:0 0 6px;font-size:19px;color:#123b72}
.quick-card p{margin:0;font-size:14px;color:#555}
.quick-card>span{margin-left:auto;font-size:35px;color:#111827}
.quick-card.whatsapp .quick-icon{background:#20c65a}
.quick-card.call-card .quick-icon{background:#f47b20}

/* LATEST UPDATES */
.latest-updates{padding:55px 5%;background:#f4f8ff}
.section-heading{
  max-width:1150px;margin:0 auto 30px;display:flex;align-items:center;
  justify-content:space-between;gap:20px;
}
.section-kicker{color:var(--blue);font-size:12px;font-weight:800;letter-spacing:1.5px;margin-bottom:3px}
.section-heading h2{margin:0;color:#0b2d5c;font-size:32px;font-weight:800}
.section-heading>a{
  color:var(--blue);border:2px solid var(--blue);padding:10px 18px;
  border-radius:8px;font-weight:600;white-space:nowrap;
}
.updates-grid{
  max-width:1150px;
  margin:auto;
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:16px;
}

.update-card{
  position:relative;
  background:#fff;
  border-radius:10px;
  padding:16px 18px;
  box-shadow:0 3px 12px rgba(0,0,0,.07);
  overflow:hidden;
  min-height:105px;
  display:flex;
  flex-direction:column;
  justify-content:space-between;
}

.update-card h3{
  color:#222;
  font-size:17px;
  line-height:1.35;
  margin:0 0 12px;
}

.details-btn{
  display:inline-block;
  width:max-content;
  background:var(--blue);
  color:#fff;
  padding:7px 13px;
  border-radius:6px;
  font-size:13px;
  font-weight:600;
}

/* WHY CHOOSE */
.why-section{padding:70px 20px;background:#fff}
.section-title{text-align:center;max-width:760px;margin:0 auto 38px}
.section-title h2{color:var(--dark);font-size:34px;margin-bottom:8px}
.section-title>p:last-child{color:var(--muted)}
.why-grid{max-width:1150px;margin:auto;display:grid;grid-template-columns:repeat(3,1fr);gap:20px}
.why-card{
  padding:25px;background:#fff;border:1px solid var(--border);border-radius:18px;
  box-shadow:var(--shadow);transition:.25s
}
.why-card:hover{transform:translateY(-5px)}
.why-icon{
  width:52px;height:52px;border-radius:14px;background:linear-gradient(135deg,var(--blue),#5b9cff);
  color:#fff;display:grid;place-items:center;font-size:22px;margin-bottom:14px;font-weight:800
}
.why-card h3{color:var(--dark);margin-bottom:6px}
.why-card p{color:var(--muted);font-size:14px}

/* FOOTER */
footer{background:#06152f;color:#fff;padding:50px 20px 20px}
.footer-grid{
  max-width:1150px;margin:auto;display:grid;grid-template-columns:1.3fr 1fr 1fr 1.2fr;gap:35px
}
footer h3{margin-bottom:15px}
footer p,footer li,footer a{color:#cbd5e1;font-size:14px}
footer ul{list-style:none}
footer li{margin-bottom:8px}
.footer-logo img{width:180px;max-height:100px;object-fit:contain}
.footer-tagline{font-weight:800;margin:5px 0}
.footer-phone{margin-top:12px}
.footer-wa{display:inline-block;margin-top:12px;padding:10px 16px;background:#20c65a;border-radius:8px;color:#fff!important;font-weight:800}
.footer-bottom{
  max-width:1150px;margin:30px auto 0;padding-top:18px;
  border-top:1px solid rgba(255,255,255,.15);text-align:center;color:#9fb0c8;font-size:13px
}

/* OTHER PAGES - keep compatibility with existing pages */
main section:not(.hero-slider){padding-top:0}
section .container,.container{max-width:1150px;margin:auto}
.cards,.services-grid,.update-grid,.list-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:20px}
.card,.service-card{
  background:#fff;border:1px solid var(--border);border-radius:18px;padding:25px;box-shadow:var(--shadow)
}
.service-icon{width:55px;height:55px;border-radius:14px;background:linear-gradient(135deg,var(--blue),#5b9cff);color:#fff;display:grid;place-items:center;font-size:25px;margin-bottom:15px}
.page-hero{background:linear-gradient(135deg,#06152f,#174ea6);color:#fff;padding:75px 20px;text-align:center}
.page-hero h1{font-size:46px;margin-bottom:10px}
.page-hero p{font-size:18px;opacity:.9}
.about-grid{display:grid;grid-template-columns:1fr 1fr;gap:40px;align-items:center}
.contact-grid{display:grid;grid-template-columns:1fr 1fr;gap:25px}
.contact-card{background:#fff;padding:28px;border-radius:18px;border:1px solid var(--border);box-shadow:var(--shadow)}
.whatsapp-btn{display:inline-block;margin-top:18px;padding:13px 22px;border-radius:10px;background:#16a34a;color:#fff;font-weight:800}
.buttons{display:flex;gap:12px;flex-wrap:wrap;margin-top:25px}
.btn{display:inline-block;padding:13px 20px;border-radius:10px;font-weight:800}
.btn-primary{background:var(--blue);color:#fff}
.btn-secondary{background:#fff;border:1px solid #cbd5e1;color:var(--dark)}

/* RESPONSIVE */
@media(max-width:900px){
  .nav{padding:10px 15px}
  .brand span{display:none}
  .brand img{width:90px;height:58px}
  nav{gap:12px}
  nav a{font-size:12px}
  .header-whatsapp{padding:8px 10px;font-size:12px}
  .hero-slider{height:500px}
  .slide-overlay{left:25px;right:20px}
  .slide-overlay h1{font-size:38px}
  .slide-overlay p{font-size:16px}
  .footer-grid{grid-template-columns:repeat(2,1fr)}
  .why-grid{grid-template-columns:repeat(2,1fr)}
}

@media(max-width:700px){
  .quick-actions{grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin:20px auto;padding:0 15px}
  .quick-card{width:100%;height:85px;min-height:85px;max-height:85px;padding:10px 12px}
  .quick-card h3{font-size:17px}
  .quick-card p{font-size:13px}
  .quick-icon{width:52px;height:52px;min-width:52px;font-size:25px}
  .quick-card>span{font-size:28px}
}

@media(max-width:600px){
  .nav{min-height:70px}
  nav{gap:8px}
  nav a{font-size:10px}
  .header-whatsapp{display:none}
  .hero-slider{height:430px}
  .slide-overlay{left:20px;right:20px}
  .slide-overlay h1{font-size:28px}
  .slide-overlay p{font-size:14px}
  .slider-arrow{width:38px;height:45px;font-size:24px}
  .slider-prev{left:8px}.slider-next{right:8px}
  .slider-dot{width:10px;height:10px}
  .section-heading{flex-direction:column;text-align:center;gap:15px}
  .section-heading h2{font-size:25px}
  .updates-grid{grid-template-columns:1fr}
  .why-grid{grid-template-columns:1fr}
  .footer-grid{grid-template-columns:1fr}
  .footer-logo img{width:150px}
}


/* ===== MOBILE HEADER + HERO POLISH ===== */

.menu-toggle{
  display:none;
  border:0;
  background:rgba(255,255,255,.10);
  color:#fff;
  width:42px;
  height:42px;
  border-radius:10px;
  font-size:23px;
  cursor:pointer;
}

@media (max-width:900px){
  .nav{
    position:relative;
  }

  .brand img{
    width:86px;
    height:58px;
  }

  .menu-toggle{
    display:grid;
    place-items:center;
    margin-left:auto;
  }

  .nav nav{
    position:absolute;
    top:calc(100% + 1px);
    left:12px;
    right:12px;
    display:none;
    flex-direction:column;
    align-items:stretch;
    gap:0;
    padding:8px;
    background:#06152f;
    border:1px solid rgba(255,255,255,.12);
    border-radius:12px;
    box-shadow:0 12px 28px rgba(0,0,0,.25);
  }

  .nav nav.open{
    display:flex;
  }

  .nav nav a{
    padding:12px 14px;
    font-size:15px;
    border-radius:8px;
  }

  .nav nav a:hover{
    background:rgba(255,255,255,.08);
  }

  .header-whatsapp{
    font-size:12px;
    padding:8px 11px;
  }
}

@media (max-width:600px){
  .nav{
    min-height:68px;
    padding:7px 12px;
    gap:8px;
  }

  .brand img{
    width:78px;
    height:52px;
  }

  .header-whatsapp{
    display:block;
    font-size:11px;
    padding:7px 9px;
  }

  .menu-toggle{
    width:40px;
    height:40px;
    font-size:22px;
  }

  .hero-slider{
    height:400px;
  }

  .hero-slide img{
    object-position:center center;
  }

  .hero-slide::after{
    background:linear-gradient(
      90deg,
      rgba(3,15,38,.88) 0%,
      rgba(3,15,38,.48) 55%,
      rgba(3,15,38,.12) 100%
    );
  }

  .slide-overlay{
    left:22px;
    right:22px;
    top:52%;
    max-width:calc(100% - 44px);
  }

  .slide-overlay h1{
    font-size:30px;
    line-height:1.05;
    margin-bottom:12px;
  }

  .slide-overlay p{
    font-size:14px;
    line-height:1.45;
    margin-bottom:17px;
    max-width:330px;
  }

  .slider-btn{
    padding:10px 17px;
    font-size:14px;
  }

  .slider-arrow{
    width:34px;
    height:44px;
    font-size:22px;
  }

  .slider-dots{
    bottom:13px;
    gap:7px;
  }

  .slider-dot{
    width:9px;
    height:9px;
  }
}


/* =========================================================
   MOBILE FINAL FIX
   Desktop rules above remain unchanged.
   ========================================================= */

@media (max-width: 600px){

  /* ---------- HEADER ---------- */
  header{
    position:sticky;
    top:0;
    z-index:1000;
  }

  .nav{
    min-height:68px !important;
    padding:7px 10px !important;
    display:flex !important;
    align-items:center !important;
    gap:7px !important;
  }

  .brand{
    flex:1 1 auto;
    min-width:0;
    gap:6px !important;
    font-size:0 !important;
  }

  .brand img{
    width:72px !important;
    height:52px !important;
    object-fit:contain;
  }

  .brand span{
    display:none !important;
  }

  .menu-toggle{
    display:grid !important;
    place-items:center;
    flex:0 0 40px;
    width:40px !important;
    height:40px !important;
    margin:0 !important;
    padding:0 !important;
    border:0;
    border-radius:9px;
    background:rgba(255,255,255,.12);
    color:#fff;
    font-size:23px;
    line-height:1;
    cursor:pointer;
    z-index:1003;
  }

  /* IMPORTANT: menu is closed by default */
  .nav > nav{
    display:none !important;
    position:absolute !important;
    top:68px !important;
    left:10px !important;
    right:10px !important;
    width:auto !important;
    flex-direction:column !important;
    align-items:stretch !important;
    gap:0 !important;
    padding:8px !important;
    background:#06152f !important;
    border:1px solid rgba(255,255,255,.18) !important;
    border-radius:12px !important;
    box-shadow:0 12px 28px rgba(0,0,0,.30) !important;
    z-index:1002 !important;
  }

  .nav > nav.open{
    display:flex !important;
  }

  .nav > nav a{
    display:block !important;
    padding:12px 14px !important;
    font-size:15px !important;
    line-height:1.2 !important;
    text-align:left !important;
    border-radius:8px;
  }

  .nav > nav a:hover{
    background:rgba(255,255,255,.08);
  }

  .header-whatsapp{
    display:block !important;
    flex:0 0 auto;
    padding:7px 9px !important;
    font-size:11px !important;
    border-radius:8px !important;
    white-space:nowrap;
  }

  /* ---------- HERO: keep current good appearance ---------- */
  .hero-slider{
    height:400px !important;
  }

  .hero-slide img{
    object-position:center center !important;
  }

  .slide-overlay{
    left:22px !important;
    right:22px !important;
    top:52% !important;
    max-width:calc(100% - 44px) !important;
  }

  .slide-overlay h1{
    font-size:30px !important;
    line-height:1.05 !important;
    margin-bottom:12px !important;
  }

  .slide-overlay p{
    font-size:14px !important;
    line-height:1.45 !important;
    margin-bottom:17px !important;
  }

  .slider-btn{
    padding:10px 17px !important;
    font-size:14px !important;
  }

  .slider-arrow{
    width:34px !important;
    height:44px !important;
    font-size:22px !important;
  }

  .slider-prev{left:8px !important}
  .slider-next{right:8px !important}

  .slider-dots{
    bottom:13px !important;
    gap:7px !important;
  }

  .slider-dot{
    width:9px !important;
    height:9px !important;
  }

  /* ---------- QUICK ACTIONS: 3 compact cards ---------- */
  .quick-actions{
    width:100% !important;
    max-width:none !important;
    margin:16px 0 !important;
    padding:0 10px !important;
    display:grid !important;
    grid-template-columns:repeat(3,minmax(0,1fr)) !important;
    gap:8px !important;
  }

  .quick-card{
    width:100% !important;
    min-width:0 !important;
    min-height:78px !important;
    height:78px !important;
    padding:8px 6px !important;
    display:flex !important;
    align-items:center !important;
    gap:6px !important;
    overflow:hidden !important;
    border-radius:12px !important;
  }

  .quick-icon{
    width:39px !important;
    height:39px !important;
    min-width:39px !important;
    font-size:20px !important;
  }

  .quick-card > div:nth-child(2){
    min-width:0 !important;
    overflow:hidden !important;
  }

  .quick-card h3{
    margin:0 0 2px !important;
    font-size:12px !important;
    line-height:1.15 !important;
    white-space:nowrap !important;
    overflow:hidden !important;
    text-overflow:ellipsis !important;
  }

  .quick-card p{
    margin:0 !important;
    font-size:10px !important;
    line-height:1.2 !important;
    white-space:nowrap !important;
    overflow:hidden !important;
    text-overflow:ellipsis !important;
  }

  .quick-card > span{
    display:none !important;
  }

  /* ---------- LATEST UPDATES: 3 BOXES PER ROW ---------- */
  .latest-updates{
    padding:34px 8px !important;
  }

  .section-heading{
    gap:12px !important;
    margin-bottom:20px !important;
  }

  .section-heading h2{
    font-size:25px !important;
  }

  .section-heading a{
    padding:8px 12px !important;
    font-size:13px !important;
    white-space:nowrap;
  }

  .updates-grid{
    grid-template-columns:repeat(3,minmax(0,1fr)) !important;
    gap:8px !important;
  }

  .update-card{
    min-width:0 !important;
    min-height:145px !important;
    padding:10px 7px !important;
    border-radius:9px !important;
  }

  .update-card > div:first-child{
    gap:5px !important;
    align-items:flex-start !important;
    margin-bottom:7px !important;
  }

  .home-update-logo{
    width:32px !important;
    height:32px !important;
    min-width:32px !important;
    padding:3px !important;
    border-radius:6px !important;
  }

  .update-card h3{
    font-size:11px !important;
    line-height:1.25 !important;
    word-break:break-word !important;
  }

  .update-last-date{
    font-size:9px !important;
    line-height:1.25 !important;
    margin:-2px 0 7px !important;
  }

  .details-btn{
    padding:5px 7px !important;
    font-size:9px !important;
    border-radius:5px !important;
  }
}
