/* ===== MIRACLE SERVICE SOLUTIONS — Shared Styles ===== */
*,*::before,*::after{box-sizing:border-box;margin:0;padding:0}
html{scroll-behavior:smooth}
body{font-family:'Segoe UI',system-ui,-apple-system,sans-serif;color:#111827;background:#fff;line-height:1.6}
a{color:inherit;text-decoration:none}
img{max-width:100%;display:block}
ul{list-style:none}

/* ── Tokens ── */
:root{
  --navy:  #0f2d52;
  --navy2: #1a4070;
  --blue:  #2563eb;
  --green: #059669;
  --amber: #d97706;
  --purple:#6d28d9;
  --red:   #dc2626;
  --gray1: #f8fafc;
  --gray2: #f1f5f9;
  --gray3: #e2e8f0;
  --gray5: #6b7280;
  --gray7: #374151;
  --gray9: #111827;
  --shadow: 0 4px 24px rgba(15,45,82,.10);
  --shadow-lg: 0 12px 48px rgba(15,45,82,.18);
  --radius: 16px;
  --radius-sm: 10px;
}

/* ── NAV ── */
nav{
  position:sticky;top:0;z-index:100;
  background:var(--navy);
  padding:0 24px;
  display:flex;align-items:center;gap:16px;
  height:64px;
  box-shadow:0 2px 16px rgba(0,0,0,.25);
}
.nav-logo{
  display:flex;align-items:center;gap:10px;
  font-size:17px;font-weight:700;color:#fff;
  white-space:nowrap;
  margin-right:auto;
}
.nav-logo-icon{
  width:36px;height:36px;background:var(--blue);border-radius:9px;
  display:flex;align-items:center;justify-content:center;
  font-size:17px;color:#fff;flex-shrink:0;
}
.nav-links{display:flex;align-items:center;gap:4px}
.nav-links a{
  color:rgba(255,255,255,.85);
  font-size:14px;font-weight:500;
  padding:7px 13px;border-radius:8px;
  transition:background .18s,color .18s;
  white-space:nowrap;
}
.nav-links a:hover,.nav-links a.active{background:rgba(255,255,255,.12);color:#fff}
.nav-cta{
  background:var(--blue);color:#fff!important;
  border-radius:8px;padding:8px 16px!important;
  font-weight:600!important;
  transition:background .18s!important;
}
.nav-cta:hover{background:#1d4ed8!important}
.nav-burger{
  display:none;
  background:none;border:none;cursor:pointer;
  padding:6px;color:#fff;font-size:22px;line-height:1;
}
.nav-mobile{
  display:none;
  position:fixed;inset:64px 0 0 0;
  background:var(--navy);z-index:99;
  flex-direction:column;padding:16px;gap:4px;
  overflow-y:auto;
}
.nav-mobile a{
  color:#fff;font-size:15px;font-weight:500;
  padding:12px 16px;border-radius:10px;
  display:block;
  transition:background .18s;
}
.nav-mobile a:hover{background:rgba(255,255,255,.1)}
.nav-mobile .nav-cta{
  background:var(--blue)!important;
  text-align:center;margin-top:8px;
}

/* ── HERO ── */
.hero{
  position:relative;overflow:visible;z-index:1;
  background:
    url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E"),
    linear-gradient(135deg,var(--navy) 0%,var(--navy2) 55%,#1e5fa8 100%);
  color:#fff;
  padding:90px 24px 0;
  text-align:center;
}
/* top cloud — flipped, stuck to nav */
.hero::before{
  content:'';
  position:absolute;top:0;left:0;right:0;
  height:80px;
  background:url('cloud-bg-new.webp') center bottom / 100% 100% no-repeat;
  transform:scaleY(-1);
  transform-origin:top center;
  pointer-events:none;z-index:2;
}
/* bottom cloud — home page only, deeper overlap */
.hero::after{
  content:'';
  position:absolute;bottom:-220px;left:0;right:0;
  height:90px;
  background:url('cloud-bg-new.webp') center bottom / 100% 100% no-repeat;
  pointer-events:none;z-index:3;
}
.hero-inner{position:relative;max-width:800px;margin:auto;z-index:4;padding-bottom:60px}
.hero-badge{
  display:inline-flex;align-items:center;gap:8px;
  background:rgba(255,255,255,.12);border:1px solid rgba(255,255,255,.2);
  border-radius:99px;padding:6px 16px;
  font-size:12px;font-weight:600;letter-spacing:.5px;text-transform:uppercase;
  margin-bottom:22px;color:rgba(255,255,255,.9);
}
.hero h1{
  font-size:clamp(30px,5vw,54px);
  font-weight:800;line-height:1.15;
  margin-bottom:18px;
  text-shadow:0 2px 16px rgba(0,0,0,.2);
}
.hero p{
  font-size:clamp(15px,2.5vw,19px);
  color:rgba(255,255,255,.82);
  max-width:620px;margin:0 auto 36px;
  line-height:1.65;
}
.hero-btns{display:flex;flex-wrap:wrap;gap:12px;justify-content:center}

/* ── BUTTONS ── */
.btn{
  display:inline-flex;align-items:center;gap:8px;
  padding:12px 24px;border-radius:10px;
  font:600 15px/1 'Segoe UI',sans-serif;
  cursor:pointer;border:none;
  transition:transform .15s,box-shadow .15s,background .18s;
}
.btn:hover{transform:translateY(-2px);box-shadow:0 6px 20px rgba(0,0,0,.18)}
.btn-primary{background:var(--blue);color:#fff}
.btn-primary:hover{background:#1d4ed8}
.btn-white{background:#fff;color:var(--navy)}
.btn-white:hover{background:#f1f5f9}
.btn-outline{background:transparent;color:#fff;border:2px solid rgba(255,255,255,.5)}
.btn-outline:hover{background:rgba(255,255,255,.1);border-color:#fff}
.btn-green{background:var(--green);color:#fff}
.btn-green:hover{background:#047857}
.btn-amber{background:var(--amber);color:#fff}
.btn-amber:hover{background:#b45309}
.btn-purple{background:var(--purple);color:#fff}
.btn-purple:hover{background:#5b21b6}
.btn-lg{padding:15px 30px;font-size:16px;border-radius:12px}
.btn-sm{padding:9px 18px;font-size:13px;border-radius:8px}

/* ── SECTION WRAPPERS ── */
section{padding:80px 24px}
.container{max-width:1160px;margin:0 auto}
.section-label{
  font-size:12px;font-weight:700;letter-spacing:1.5px;text-transform:uppercase;
  color:var(--blue);margin-bottom:10px;
}
.section-title{
  font-size:clamp(24px,4vw,38px);font-weight:800;
  color:var(--navy);line-height:1.2;margin-bottom:14px;
}
.section-sub{
  font-size:16px;color:var(--gray5);max-width:580px;
  line-height:1.7;margin-bottom:48px;
}
.text-center{text-align:center}
.section-sub.center{margin-left:auto;margin-right:auto}

/* ── SOLUTION CARDS (ecommerce style) ── */
.solutions-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(320px,1fr));
  gap:28px;
}
.sol-card{
  background:#fff;border-radius:var(--radius);
  box-shadow:var(--shadow);
  overflow:hidden;
  transition:transform .2s,box-shadow .2s;
  display:flex;flex-direction:column;
}
.sol-card:hover{transform:translateY(-6px);box-shadow:var(--shadow-lg)}
.sol-card-img{
  height:220px;position:relative;overflow:hidden;
  display:flex;align-items:center;justify-content:center;
}
.sol-card-img > i{
  font-size:80px;
  color:rgba(255,255,255,.9);
  filter:drop-shadow(0 4px 16px rgba(0,0,0,.25));
  position:relative;z-index:1;
}
.sol-card-img-overlay{
  position:absolute;inset:0;
  background:linear-gradient(to bottom,transparent 40%,rgba(0,0,0,.35) 100%);
}
.sol-card-img-label{
  position:absolute;bottom:14px;left:18px;
  color:#fff;font-size:13px;font-weight:600;
  background:rgba(0,0,0,.3);border-radius:6px;padding:3px 10px;
  backdrop-filter:blur(4px);
  z-index:2;
}
.sol-card-body{padding:24px 26px 28px;flex:1;display:flex;flex-direction:column}
.sol-card-tag{
  font-size:11px;font-weight:700;letter-spacing:1px;text-transform:uppercase;
  margin-bottom:8px;
}
.sol-card-title{font-size:20px;font-weight:800;color:var(--navy);margin-bottom:10px}
.sol-card-desc{font-size:14px;color:var(--gray5);line-height:1.7;margin-bottom:16px}
.sol-card-list{display:flex;flex-direction:column;gap:7px;margin-bottom:24px}
.sol-card-list li{
  display:flex;align-items:center;gap:9px;
  font-size:13px;color:var(--gray7);
}
.sol-card-list li::before{
  content:'';width:7px;height:7px;border-radius:50%;
  flex-shrink:0;
}
.sol-card .btn{margin-top:auto;justify-content:center}

/* ── COLOR VARIANTS ── */
.img-green{background:linear-gradient(135deg,#064e3b 0%,#059669 60%,#34d399 100%)}
.img-amber{background:linear-gradient(135deg,#78350f 0%,#d97706 60%,#fbbf24 100%)}
.img-purple{background:linear-gradient(135deg,#3b0764 0%,#6d28d9 60%,#a78bfa 100%)}
.img-navy{background:linear-gradient(135deg,var(--navy) 0%,var(--navy2) 60%,#3b82f6 100%)}
.img-blue{background:linear-gradient(135deg,#1e3a5f 0%,#2563eb 60%,#60a5fa 100%)}
.img-gray{background:linear-gradient(135deg,#1f2937 0%,#4b5563 60%,#9ca3af 100%)}
.tag-green{color:var(--green)}
.tag-amber{color:var(--amber)}
.tag-purple{color:var(--purple)}
.list-green li::before{background:var(--green)}
.list-amber li::before{background:var(--amber)}
.list-purple li::before{background:var(--purple)}

/* ── STATS BAR ── */
.stats-bar{
  background:var(--navy);color:#fff;
  padding:40px 24px;
}
.stats-inner{
  max-width:900px;margin:auto;
  display:grid;grid-template-columns:repeat(auto-fit,minmax(160px,1fr));
  gap:32px;text-align:center;
}
.stat-num{font-size:36px;font-weight:800;color:#60a5fa;line-height:1}
.stat-lbl{font-size:13px;color:rgba(255,255,255,.7);margin-top:6px}

/* ── HOW IT WORKS ── */
.steps-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(200px,1fr));
  gap:24px;
}
.step{
  background:var(--gray1);border-radius:var(--radius);
  padding:28px 22px;text-align:center;
}
.step-num{
  width:44px;height:44px;border-radius:50%;
  background:var(--blue);color:#fff;
  font-size:18px;font-weight:800;
  display:flex;align-items:center;justify-content:center;
  margin:0 auto 16px;
}
.step h4{font-size:15px;font-weight:700;color:var(--navy);margin-bottom:8px}
.step p{font-size:13px;color:var(--gray5);line-height:1.6}

/* ── FEATURES GRID ── */
.features-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(260px,1fr));
  gap:20px;
}
.feat{
  background:var(--gray1);border-radius:var(--radius-sm);
  padding:24px 22px;
  border:1.5px solid var(--gray3);
  transition:border-color .18s,box-shadow .18s;
}
.feat:hover{border-color:#93c5fd;box-shadow:0 4px 16px rgba(37,99,235,.08)}
.feat-icon{
  width:48px;height:48px;border-radius:12px;
  display:flex;align-items:center;justify-content:center;
  margin-bottom:14px;
  font-size:20px;
}
.feat h4{font-size:15px;font-weight:700;color:var(--navy);margin-bottom:6px}
.feat p{font-size:13px;color:var(--gray5);line-height:1.65}
.feat-green .feat-icon{background:#dcfce7;color:var(--green)}
.feat-amber .feat-icon{background:#fef3c7;color:var(--amber)}
.feat-purple .feat-icon{background:#ede9fe;color:var(--purple)}
.feat-blue .feat-icon{background:#dbeafe;color:var(--blue)}

/* ── COVERAGE TABLE ── */
.coverage-cols{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(220px,1fr));
  gap:20px;
}
.cov-col{
  background:var(--gray1);border-radius:var(--radius-sm);
  padding:20px 18px;border:1.5px solid var(--gray3);
}
.cov-col h4{
  font-size:13px;font-weight:700;text-transform:uppercase;letter-spacing:.8px;
  color:var(--navy);margin-bottom:12px;
  padding-bottom:10px;border-bottom:2px solid var(--gray3);
}
.cov-col ul{display:flex;flex-direction:column;gap:7px}
.cov-col li{
  font-size:13px;color:var(--gray7);
  display:flex;align-items:center;gap:8px;
}
.cov-col li i{color:var(--green);font-size:11px;flex-shrink:0}

/* ── CTA BANNER ── */
.cta-banner{
  background:linear-gradient(135deg,var(--navy) 0%,var(--navy2) 60%,#1e5fa8 100%);
  color:#fff;padding:72px 24px;text-align:center;
}
.cta-banner h2{font-size:clamp(22px,4vw,36px);font-weight:800;margin-bottom:14px}
.cta-banner p{font-size:16px;color:rgba(255,255,255,.8);max-width:520px;margin:0 auto 32px;line-height:1.7}
.cta-btns{display:flex;flex-wrap:wrap;gap:12px;justify-content:center}

/* ── NOTICE BOX ── */
.notice{
  background:#fffbeb;border:1.5px solid #fde68a;border-radius:var(--radius-sm);
  padding:18px 20px;font-size:13px;color:#92400e;line-height:1.7;
  margin-top:32px;
}
.notice strong{color:#78350f}

/* ── PAGE HERO (inner pages) ── */
.page-hero{
  background:
    url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E"),
    linear-gradient(135deg,var(--navy) 0%,var(--navy2) 60%,#1e5fa8 100%);
  color:#fff;padding:90px 24px 0;text-align:center;
  position:relative;overflow:visible;z-index:1;
}
/* top cloud — flipped, stuck to nav */
.page-hero::before{
  content:'';position:absolute;top:0;left:0;right:0;
  height:80px;
  background:url('cloud-bg-new.webp') center bottom / 100% 100% no-repeat;
  transform:scaleY(-1);
  transform-origin:top center;
  pointer-events:none;z-index:2;
}
/* bottom cloud — overlaps -40px below hero edge */
.page-hero::after{
  content:'';
  position:absolute;bottom:-65px;left:0;right:0;
  height:90px;
  background:url('cloud-bg-new.webp') center bottom / 100% 100% no-repeat;
  pointer-events:none;z-index:3;
}
.page-hero-inner{position:relative;max-width:700px;margin:auto;z-index:4;padding-bottom:60px}
.page-hero h1{font-size:clamp(26px,4.5vw,46px);font-weight:800;margin-bottom:14px;line-height:1.2}
.page-hero p{font-size:clamp(14px,2vw,17px);color:rgba(255,255,255,.82);line-height:1.7}
.page-hero .hero-badge{margin-bottom:18px}

/* services page hero cloud override */
.page-hero--services::after{bottom:-120px}

/* ── SERVICE CATEGORY CARDS ── */
.service-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(280px,1fr));
  gap:22px;
}
.service-card{
  border-radius:var(--radius);overflow:hidden;
  box-shadow:var(--shadow);
  transition:transform .2s,box-shadow .2s;
  background:#fff;
  display:flex;flex-direction:column;
}
.service-card:hover{transform:translateY(-5px);box-shadow:var(--shadow-lg)}
.service-card-img{
  height:180px;display:flex;align-items:center;justify-content:center;
  position:relative;
}
.service-card-img i{font-size:58px;color:rgba(255,255,255,.92)}
.service-card-body{padding:20px 22px 24px;flex:1;display:flex;flex-direction:column}
.service-card-body h3{font-size:16px;font-weight:700;color:var(--navy);margin-bottom:8px}
.service-card-body p{font-size:13px;color:var(--gray5);line-height:1.65;flex:1}
.service-card-body .btn{margin-top:16px;justify-content:center}

/* ── ABOUT PILLARS ── */
.pillars{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:24px}
.pillar{
  border-radius:var(--radius);padding:32px 26px;
  text-align:center;color:#fff;
}
.pillar-icon{font-size:42px;margin-bottom:18px}
.pillar h3{font-size:19px;font-weight:800;margin-bottom:10px}
.pillar p{font-size:14px;line-height:1.7;opacity:.88}
.pillar-green{background:linear-gradient(135deg,#064e3b,#059669)}
.pillar-amber{background:linear-gradient(135deg,#78350f,#d97706)}
.pillar-purple{background:linear-gradient(135deg,#3b0764,#6d28d9)}

/* ── FOOTER ── */
footer{background:#0a1929;color:rgba(255,255,255,.7);padding:56px 24px 28px}
.footer-inner{max-width:1160px;margin:auto}
.footer-grid{
  display:grid;
  grid-template-columns:1.6fr repeat(3,1fr);
  gap:40px;margin-bottom:48px;
}
.footer-brand h3{color:#fff;font-size:18px;font-weight:800;margin-bottom:6px}
.footer-brand p{font-size:13px;line-height:1.7;max-width:260px;margin-bottom:18px}
.footer-col h4{color:#fff;font-size:13px;font-weight:700;letter-spacing:.5px;margin-bottom:14px}
.footer-col ul{display:flex;flex-direction:column;gap:9px}
.footer-col li a{font-size:13px;transition:color .15px}
.footer-col li a:hover{color:#fff}
.footer-bottom{
  border-top:1px solid rgba(255,255,255,.08);
  padding-top:22px;
  display:flex;flex-wrap:wrap;gap:12px;
  justify-content:space-between;
  font-size:12px;color:rgba(255,255,255,.45);
}

/* ── RESPONSIVE ── */
@media(max-width:900px){
  .footer-grid{grid-template-columns:1fr 1fr}
}
@media(max-width:640px){
  .nav-links{display:none}
  .nav-burger{display:block}
  .solutions-grid{grid-template-columns:1fr}
  .footer-grid{grid-template-columns:1fr}
  section{padding:56px 16px}
  .hero{padding:70px 16px 0}
  .hero::before,.page-hero::before{height:60px}
  .hero::after{height:70px;bottom:-300px}
  .page-hero::after{height:70px;bottom:-50px}
  .hero-inner,.page-hero-inner{padding-bottom:80px}
  .page-hero{padding:70px 16px 0}
  .stats-inner{grid-template-columns:repeat(2,1fr)}
}
