/* Compulan Website v2.1 */

:root{
  --blue:#0057d9;
  --dark:#061f55;
  --deeper:#001f4e;
  --orange:#ff9700;
  --light:#f5f8ff;
  --text:#091b3a;
  --muted:#5c6b82;
  --white:#ffffff;
  --shadow:0 16px 35px rgba(7,31,85,.10);
  --radius:18px;
}

*{box-sizing:border-box}

html{scroll-behavior:smooth}

body{
  margin:0;
  font-family:Arial, Helvetica, sans-serif;
  color:var(--text);
  background:var(--white);
}

img{max-width:100%;display:block}

a{text-decoration:none}

.container{width:min(1120px, 92%);margin:0 auto}

.section{scroll-margin-top:96px}

.site-header{
  position:sticky;
  top:0;
  z-index:50;
  background:rgba(255,255,255,.96);
  backdrop-filter:blur(12px);
  box-shadow:0 8px 30px rgba(0,0,0,.05);
}

.header-inner{
  min-height:98px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:20px;
}

.brand{display:flex;align-items:center;justify-content:center}

.brand img{
  width:112px;
  height:112px;
  object-fit:contain;
}

.main-nav{display:flex;align-items:center;gap:30px}

.main-nav a{
  color:var(--dark);
  font-weight:700;
  font-size:15px;
  position:relative;
  padding:10px 0;
}

.main-nav a::after{
  content:"";
  width:0;
  height:3px;
  background:var(--orange);
  position:absolute;
  left:0;
  bottom:0;
  transition:.25s ease;
}

.main-nav a:hover::after,.main-nav a.active::after{width:100%}

.whatsapp-header{
  display:flex;
  align-items:center;
  gap:8px;
  color:#fff;
  font-weight:800;
  background:linear-gradient(135deg, var(--blue), #013ca2);
  padding:12px 18px;
  border-radius:7px;
  box-shadow:0 12px 25px rgba(0,87,217,.25);
}

.whatsapp-header img{width:23px;height:23px;object-fit:contain}

.menu-toggle{
  display:none;
  width:46px;
  height:42px;
  border:0;
  background:#eef4ff;
  border-radius:10px;
  padding:9px;
}

.menu-toggle span{
  display:block;
  height:3px;
  background:var(--dark);
  margin:5px 0;
  border-radius:10px;
}

.hero{
  background:
    radial-gradient(circle at 20% 30%, rgba(0,87,217,.08), transparent 30%),
    linear-gradient(90deg, #f9fbff 0%, #ffffff 56%, #eef5ff 100%);
  overflow:hidden;
}

.hero-grid{
  display:grid;
  grid-template-columns:minmax(0, 1.14fr) minmax(410px, .86fr);
  min-height:610px;
  align-items:center;
  gap:44px;
  position:relative;
}

.hero-copy{position:relative;z-index:10;min-width:0}

.hero-copy h1{
  margin:0;
  max-width:560px;
  color:var(--dark);
  text-transform:uppercase;
  line-height:.98;
  font-size:clamp(44px, 6vw, 70px);
  letter-spacing:-2px;
}

.orange-line{
  width:86px;
  height:4px;
  background:var(--orange);
  border-radius:10px;
  margin:22px 0;
}

.hero-copy p{
  font-size:20px;
  line-height:1.45;
  max-width:470px;
  color:#112955;
  margin:0 0 28px;
}

.hero-actions{display:flex;gap:20px;flex-wrap:wrap;align-items:center}

.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  min-height:54px;
  padding:0 24px;
  border-radius:9px;
  font-weight:900;
  transition:.25s ease;
}

.btn:hover{transform:translateY(-3px)}

.btn img{width:27px;height:27px;object-fit:contain}

.primary{
  color:#fff;
  background:linear-gradient(135deg, #0062e6, #004eb9);
  box-shadow:0 14px 25px rgba(0,87,217,.25);
}

.secondary{color:var(--blue);border:2px solid var(--blue);background:#fff}

.home-icon{font-size:25px}

.hero-stats{
  display:grid;
  grid-template-columns:repeat(4, minmax(118px, 1fr));
  gap:0;
  margin-top:42px;
  max-width:650px;
  width:100%;
  position:relative;
  z-index:25;
  background:rgba(255,255,255,.92);
  border-radius:14px;
  padding:12px 8px;
  backdrop-filter:blur(4px);
  overflow:visible;
}

.hero-stats div{
  min-width:0;
  text-align:center;
  border-right:1px solid #dce6f7;
  padding:0 10px;
  overflow:visible;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:flex-start;
}

.hero-stats div:last-child{border-right:0}

.hero-stats img{
  width:44px;
  height:44px;
  margin:0 auto 8px;
  object-fit:contain;
}

.hero-stats strong,.hero-stats span{
  display:block;
  width:100%;
  max-width:132px;
  margin-left:auto;
  margin-right:auto;
  text-align:center;
  text-transform:uppercase;
  color:var(--dark);
  font-size:12.5px;
  font-weight:900;
  line-height:1.12;
  white-space:normal;
  overflow:visible;
  text-overflow:clip;
  word-break:normal;
  overflow-wrap:normal;
  hyphens:none;
}

.hero-visual{
  align-self:stretch;
  position:relative;
  min-height:610px;
  display:flex;
  align-items:stretch;
  z-index:1;
  min-width:0;
  overflow:hidden;
}

.hero-visual::before{display:none}

.hero-visual img{
  width:100%;
  height:100%;
  object-fit:cover;
  clip-path:polygon(18% 0, 100% 0, 100% 100%, 0 100%);
}

/* Fix for unwanted white spike near home card */
.hero-visual::after{
  content:"";
  position:absolute;
  left:0;
  bottom:0;
  width:120px;
  height:140px;
  background:linear-gradient(135deg, #004eb9, #002d73);
  clip-path:polygon(28% 0, 100% 100%, 0 100%);
  z-index:2;
  pointer-events:none;
}

.home-card{
  position:absolute;
  z-index:3;
  right:0;
  bottom:0;
  display:flex;
  align-items:center;
  gap:18px;
  background:linear-gradient(135deg, #004eb9, #002d73);
  color:#fff;
  border-radius:28px 0 0 0;
  padding:30px 42px;
  min-width:360px;
  box-shadow:0 18px 40px rgba(0,0,0,.25);
}

.home-card img{
  width:65px;
  height:65px;
  object-fit:contain;
  clip-path:none;
}

.home-card strong,.home-card span{display:block}

.home-card strong{text-transform:uppercase;font-size:18px}

.home-card span{font-size:17px;margin-top:5px}

.services{padding:34px 0 18px;background:#fff}

.section-title{text-align:center;margin-bottom:30px}

.section-title h2{
  display:inline-block;
  margin:0 16px;
  text-transform:uppercase;
  color:var(--dark);
  font-size:30px;
}

.section-title span{
  display:inline-block;
  width:44px;
  height:3px;
  background:var(--orange);
  vertical-align:middle;
}

.section-title p{color:var(--muted);font-size:17px;margin:16px 0 0}

.services-grid{
  display:grid;
  grid-template-columns:repeat(5, 1fr);
  gap:18px;
}

.service-card{
  background:#fff;
  border:1px solid #e6edf8;
  box-shadow:var(--shadow);
  border-radius:12px;
  min-height:214px;
  padding:28px 18px;
  text-align:center;
  transition:.25s ease;
}

.service-card:hover{transform:translateY(-6px);border-color:#c9ddff}

.service-card img{
  width:74px;
  height:74px;
  margin:0 auto 18px;
  background:#f2f6ff;
  border-radius:50%;
  padding:14px;
  object-fit:contain;
}

.service-card h3{
  text-transform:uppercase;
  color:var(--blue);
  font-size:16px;
  margin:0 0 12px;
  line-height:1.2;
}

.service-card p{margin:0;color:#10254e;font-size:14px;line-height:1.5}

.experience{
  position:relative;
  margin-top:30px;
  color:#fff;
  overflow:hidden;
  background:linear-gradient(90deg, #002554 0%, #003c87 52%, #001b42 100%);
}

.experience-bg{
  position:absolute;
  inset:0;
  background:url("assets/network-banner.jpg") right center/auto 100% no-repeat;
  opacity:.22;
  z-index:0;
  pointer-events:none;
}

.experience::after{
  content:"";
  position:absolute;
  inset:0;
  background:linear-gradient(90deg, rgba(0,31,78,.98) 0%, rgba(0,54,128,.94) 58%, rgba(0,31,78,.70) 100%);
  z-index:1;
  pointer-events:none;
}

.experience-grid{
  position:relative;
  z-index:2;
  min-height:200px;
  display:grid;
  grid-template-columns:1fr 1.25fr;
  align-items:center;
  gap:48px;
}

.experience h2{margin:0 0 12px;font-size:35px;line-height:1;text-transform:uppercase}

.experience h2 strong{color:var(--orange);display:block;font-size:42px}

.experience p{max-width:370px;line-height:1.5;margin:0}

.experience ul{list-style:none;padding:0;margin:0;display:grid;gap:17px;max-width:430px}

.experience li{font-size:17px;position:relative;padding-left:44px;color:#fff}

.experience li::before{
  content:"✓";
  position:absolute;
  left:0;
  top:-5px;
  width:28px;
  height:28px;
  display:grid;
  place-items:center;
  border:2px solid #fff;
  border-radius:50%;
  font-weight:900;
}

.testimonials{padding:60px 0 50px;background:#f8fbff}

.testimonials-grid{
  display:grid;
  grid-template-columns:1.15fr repeat(3, 1fr);
  gap:24px;
  align-items:center;
}

.section-heading h2{text-transform:uppercase;color:var(--dark);font-size:33px;line-height:1.1;margin:0}

.testimonial-card{
  background:#fff;
  border:1px solid #e6edf8;
  border-radius:14px;
  padding:24px;
  box-shadow:var(--shadow);
  min-height:190px;
}

.quote{color:var(--blue);font-size:50px;font-weight:900;line-height:.6}

.testimonial-card p{font-size:14px;line-height:1.55;color:#0e244b}

.stars{color:var(--orange);letter-spacing:2px;margin:10px 0}

.testimonial-card strong{color:var(--dark);font-size:14px}

.footer{
  position:relative;
  background:linear-gradient(90deg, #00327a, #0057d9);
  color:#fff;
  padding:28px 0 18px;
}

.footer-grid{
  display:grid;
  grid-template-columns:1.25fr 1fr .8fr;
  gap:38px;
  align-items:center;
}

.footer-brand{display:flex;align-items:center;gap:28px}

.footer-brand img{
  width:96px;
  height:96px;
  min-width:96px;
  max-width:96px;
  object-fit:contain;
  object-position:center;
  border-radius:50%;
  background:#fff;
  padding:0;
  flex:0 0 96px;
}

.footer-brand p{max-width:340px;margin:0;line-height:1.45}

.footer p{margin:6px 0;line-height:1.5}

.footer h3{margin:0 0 12px;text-transform:uppercase;font-size:16px}

.footer-link{display:flex;align-items:center;gap:10px;color:#fff;font-weight:700}

.footer-link img{width:34px;height:34px;object-fit:contain}

.socials{display:flex;gap:14px;align-items:center}

.socials a{width:38px;height:38px;display:grid;place-items:center;border-radius:50%}

.socials img{width:34px;height:34px;object-fit:contain}

.footer-copy{
  width:min(1120px, 92%);
  margin:22px auto 0;
  padding-top:14px;
  border-top:1px solid rgba(255,255,255,.22);
  text-align:center;
  font-size:13px;
  color:rgba(255,255,255,.9);
}

.to-top{
  position:absolute;
  right:28px;
  bottom:24px;
  width:40px;
  height:40px;
  display:grid;
  place-items:center;
  background:#0042a8;
  color:#fff;
  border-radius:50%;
  font-size:28px;
}

.reveal{opacity:0;transform:translateY(18px);transition:opacity .6s ease, transform .6s ease}

.reveal.visible{opacity:1;transform:translateY(0)}

@media(max-width:1180px){
  .hero-grid{grid-template-columns:minmax(0, 1.05fr) minmax(390px, .95fr);gap:28px}
  .hero-stats{max-width:620px}
  .hero-stats strong,.hero-stats span{font-size:12px}
}

@media(max-width:1024px){
  .header-inner{min-height:84px}
  .brand img{width:88px;height:88px}
  .main-nav{gap:18px}
  .hero-grid{grid-template-columns:1fr;padding-top:36px}
  .hero-visual{min-height:430px;margin:0 -4vw}
  .hero-visual img{clip-path:none}
  .hero-visual::after{display:none}
  .services-grid{grid-template-columns:repeat(3, 1fr)}
  .testimonials-grid{grid-template-columns:1fr 1fr}
  .section-heading{grid-column:1 / -1}
}

@media(max-width:780px){
  .menu-toggle{display:block;order:3}
  .whatsapp-header{display:none}

  .main-nav{
    position:absolute;
    top:84px;
    left:0;
    right:0;
    display:grid;
    background:#fff;
    padding:18px 4%;
    box-shadow:0 18px 30px rgba(0,0,0,.08);
    transform:translateY(-18px);
    opacity:0;
    visibility:hidden;
    transition:.25s ease;
  }

  .main-nav.open{opacity:1;visibility:visible;transform:translateY(0)}

  .hero-grid{min-height:auto;gap:30px}

  .hero-copy h1{font-size:43px;letter-spacing:-1px}

  .hero-copy p{font-size:17px}

  .hero-actions{flex-direction:column;align-items:stretch}

  .btn{width:100%}

  .hero-stats{grid-template-columns:repeat(2, 1fr);max-width:100%}

  .hero-stats div:nth-child(2){border-right:0}

  .hero-visual{min-height:360px}

  .home-card{
    left:18px;
    right:18px;
    bottom:18px;
    min-width:auto;
    border-radius:18px;
    padding:20px;
  }

  .home-card img{width:48px;height:48px}

  .services-grid{grid-template-columns:1fr}

  .experience-grid{grid-template-columns:1fr;padding:34px 0}

  .testimonials-grid{grid-template-columns:1fr}

  .footer-grid{grid-template-columns:1fr;text-align:left}

  .footer-brand{align-items:center}
}

@media(max-width:420px){
  .hero-copy h1{font-size:36px}
  .section-title h2{font-size:24px}
  .section-title span{width:24px}
  .hero-stats{grid-template-columns:1fr}
  .hero-stats div{border-right:0}
  .footer-brand{flex-direction:column;align-items:flex-start}
}
