/* =========================================
   SAVLIFE GLOBAL STYLE FILE
   css/style.css
========================================= */

/* GOOGLE FONTS */
@import url('https://fonts.googleapis.com/css2?family=Sora:wght@400;600;700;800;900&family=Inter:wght@400;500;600&display=swap');

/* RESET */
*{
  margin:0;
  padding:0;
  box-sizing:border-box;
}

html{
  scroll-behavior:smooth;
}

body{
  font-family:'Inter', sans-serif;
  background:#f8fbff;
  color:#111827;
  line-height:1.7;
  overflow-x:hidden;
}

/* CSS VARIABLES */
:root{
  --blue:#0b7cff;
  --blue-dark:#005fe0;
  --blue-light:#dbeeff;
  --green:#16a34a;
  --dark:#0f172a;
  --text:#475569;
  --card-bg:#ffffff;
  --section-alt:#f0f7ff;
  --footer-bg:#0c1320;
  --radius:16px;
  --shadow:0 15px 40px rgba(0,0,0,0.07);
  --shadow-hover:0 25px 55px rgba(11,124,255,0.15);
}

h1,h2,h3,h4{
  font-family:'Sora', sans-serif;
}

/* CONTAINER */
.container{
  width:90%;
  max-width:1200px;
  margin:auto;
}

/* LINKS */
a{
  text-decoration:none;
}

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

/* SECTION */
.section{
  padding:90px 0;
}

.section-alt{
  background:var(--section-alt);
}

/* SECTION TITLE */
.section-title{
  font-size:40px;
  text-align:center;
  margin-bottom:12px;
  color:var(--dark);
  font-weight:800;
}

.section-subtitle{
  text-align:center;
  color:var(--text);
  font-size:17px;
  max-width:580px;
  margin:0 auto 50px;
}

/* BADGE */
.badge{
  display:inline-block;
  background:var(--blue-light);
  color:var(--blue);
  padding:8px 18px;
  border-radius:50px;
  font-size:13px;
  font-weight:700;
  margin-bottom:18px;
  letter-spacing:0.5px;
}

/* BUTTONS */
.btn{
  display:inline-block;
  padding:15px 30px;
  border-radius:12px;
  font-weight:700;
  font-family:'Sora',sans-serif;
  transition:0.3s ease;
  cursor:pointer;
  border:none;
  font-size:15px;
  position:relative;
  overflow:hidden;
}

.btn-primary{
  background:var(--blue);
  color:#fff;
  box-shadow:0 8px 25px rgba(11,124,255,0.3);
}

.btn-primary:hover{
  background:var(--blue-dark);
  transform:translateY(-3px);
  box-shadow:0 15px 35px rgba(11,124,255,0.35);
}

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

.btn-secondary:hover{
  background:var(--blue);
  color:#fff;
  transform:translateY(-3px);
}

.btn-green{
  background:#16a34a;
  color:#fff;
  box-shadow:0 8px 25px rgba(22,163,74,0.25);
}

.btn-green:hover{
  background:#15803d;
  transform:translateY(-3px);
}

/* RIPPLE */
.ripple{
  position:absolute;
  width:20px;
  height:20px;
  background:rgba(255,255,255,0.5);
  border-radius:50%;
  transform:scale(0);
  animation:rippleEffect 0.6s linear;
  pointer-events:none;
}

@keyframes rippleEffect{
  to{ transform:scale(18); opacity:0; }
}

/* HEADER */
.header{
  width:100%;
  background:#ffffff;
  position:sticky;
  top:0;
  z-index:999;
  border-bottom:1px solid rgba(11,124,255,0.08);
  transition:box-shadow 0.3s;
}

.header.scrolled{
  box-shadow:0 8px 30px rgba(0,0,0,0.08);
}

/* NAVBAR */
.navbar{
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding:16px 0;
}

/* LOGO */
.logo{
  font-family:'Sora',sans-serif;
  font-size:50px;
  font-weight:900;
  display:flex;
  align-items:center;
  gap:8px;
}

.logo-icon{
  width:130px;
  height:50px;
  border-radius:25px;
  object-fit:contain;
}

.logo-dark{
  color:var(--dark);
}

.logo-light{
  color:var(--blue);
}

/* NAV LINKS */
.nav-links{
  display:flex;
  align-items:center;
  gap:28px;
  list-style:none;
}

.nav-links li{
  position:relative;
}

.nav-links a{
  color:var(--dark);
  font-weight:600;
  transition:0.3s;
  font-size:15px;
}

.nav-links a:hover,
.nav-links a.active{
  color:var(--blue);
}

/* DROPDOWN */
.dropdown-menu{
  position:absolute;
  top:42px;
  left:0;
  background:#fff;
  min-width:230px;
  border-radius:14px;
  padding:10px 0;
  box-shadow:0 15px 40px rgba(0,0,0,0.1);
  opacity:0;
  visibility:hidden;
  transition:0.3s;
  border:1px solid rgba(0,0,0,0.06);
}

.dropdown:hover .dropdown-menu{
  opacity:1;
  visibility:visible;
}

.dropdown-menu li{
  list-style:none;
}

.dropdown-menu a{
  display:block;
  padding:12px 20px;
  color:#334155;
  font-size:14px;
}

.dropdown-menu a:hover{
  background:#f1f7ff;
  color:var(--blue);
}

/* NAV CTA */
.nav-cta{
  background:var(--blue);
  color:#fff !important;
  padding:10px 20px;
  border-radius:10px;
  font-size:14px !important;
}

.nav-cta:hover{
  background:var(--blue-dark) !important;
  color:#fff !important;
}

/* MENU BTN */
.menu-btn{
  display:none;
  font-size:28px;
  cursor:pointer;
  color:var(--dark);
  background:none;
  border:none;
}

/* OVERLAY */
.overlay{
  position:fixed;
  inset:0;
  background:rgba(0,0,0,0.45);
  z-index:998;
  opacity:0;
  visibility:hidden;
  transition:0.3s;
}

.overlay.active{
  opacity:1;
  visibility:visible;
}

/* MOBILE MENU */
.mobile-menu{
  position:fixed;
  top:0;
  right:-100%;
  width:300px;
  height:100vh;
  background:#fff;
  z-index:9999;
  padding:30px 25px;
  transition:0.35s ease;
  overflow-y:auto;
}

.mobile-menu.active{
  right:0;
}

.close-menu{
  background:none;
  border:none;
  font-size:28px;
  cursor:pointer;
  margin-bottom:24px;
  color:var(--dark);
}

.mobile-menu ul{
  list-style:none;
}

.mobile-menu li{
  margin-bottom:16px;
  border-bottom:1px solid #f1f5f9;
  padding-bottom:16px;
}

.mobile-menu a{
  color:#111827;
  font-weight:600;
  font-size:16px;
}

.mobile-dropdown-title{
  font-weight:700;
  cursor:pointer;
  color:var(--dark);
}

.mobile-dropdown-list{
  display:none;
  padding-left:18px;
  margin-top:12px;
}

.mobile-dropdown-list.show{
  display:block;
}

.mobile-dropdown-list li{
  border:none;
  padding:6px 0;
  margin:0;
}

/* CARDS */
.card{
  background:#fff;
  border-radius:var(--radius);
  padding:32px;
  box-shadow:var(--shadow);
  transition:0.35s;
  border:1px solid rgba(11,124,255,0.06);
}

.card:hover{
  transform:translateY(-8px);
  box-shadow:var(--shadow-hover);
  border-color:rgba(11,124,255,0.15);
}

/* REVEAL */
.reveal{
  opacity:0;
  transform:translateY(35px);
  transition:all 0.5s ease;
}

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

/* CALL 108 SECTION */
.call-108{
  background:linear-gradient(135deg, #0b7cff, #0057cc);
  color:#fff;
  text-align:center;
  padding:70px 20px;
  position:relative;
  overflow:hidden;
}

.call-108::before{
  content:'';
  position:absolute;
  inset:0;
  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.04'%3E%3Ccircle cx='30' cy='30' r='20'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.call-108 h2{
  font-size:38px;
  margin-bottom:18px;
  position:relative;
}

.call-108 p{
  max-width:650px;
  margin:0 auto 30px;
  opacity:0.9;
  position:relative;
}

.call-108-btn{
  display:inline-block;
  background:#fff;
  color:var(--blue);
  padding:16px 40px;
  border-radius:50px;
  font-size:20px;
  font-weight:800;
  font-family:'Sora',sans-serif;
  transition:0.3s;
  position:relative;
  box-shadow:0 10px 30px rgba(0,0,0,0.15);
}

.call-108-btn:hover{
  transform:scale(1.06);
  box-shadow:0 18px 40px rgba(0,0,0,0.2);
}

/* FOOTER */
.footer{
  background:var(--footer-bg);
  color:#fff;
  padding-top:70px;
}

.footer-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(210px,1fr));
  gap:40px;
}

.footer h3{
  margin-bottom:20px;
  font-size:18px;
  color:#fff;
  font-family:'Sora',sans-serif;
}

.footer p{
  color:#94a3b8;
  font-size:14px;
  line-height:1.8;
}

.footer-links{
  display:flex;
  flex-direction:column;
  gap:10px;
}

.footer-links a{
  color:#94a3b8;
  transition:0.3s;
  font-size:14px;
}

.footer-links a:hover{
  color:#fff;
  padding-left:5px;
}

.city-tags{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
}

.city-tags span,
.city-tags a{
  background:#162032;
  color:#94a3b8;
  padding:7px 14px;
  border-radius:50px;
  font-size:13px;
  transition:0.3s;
}

.city-tags span:hover,
.city-tags a:hover{
  background:var(--blue);
  color:#fff;
}

/* SOCIAL ICONS */
.social-links{
  display:flex;
  gap:12px;
  margin-top:16px;
}

.social-links a{
  width:38px;
  height:38px;
  background:#162032;
  border-radius:10px;
  display:flex;
  align-items:center;
  justify-content:center;
  color:#94a3b8;
  font-size:16px;
  transition:0.3s;
}

.social-links a:hover{
  background:var(--blue);
  color:#fff;
  transform:translateY(-3px);
}

.footer-bottom{
  margin-top:50px;
  border-top:1px solid rgba(255,255,255,0.07);
  display:flex;
  justify-content:space-between;
  align-items:center;
  flex-wrap:wrap;
  gap:12px;
  padding:22px 0;
  color:#64748b;
  font-size:14px;
}

.footer-bottom a{
  color:#64748b;
  transition:0.3s;
}

.footer-bottom a:hover{
  color:#fff;
}

/* GO TOP */
.go-top{
  position:fixed;
  right:22px;
  bottom:22px;
  width:50px;
  height:50px;
  border:none;
  border-radius:50%;
  background:var(--blue);
  color:#fff;
  font-size:20px;
  cursor:pointer;
  opacity:0;
  visibility:hidden;
  transition:0.3s;
  z-index:997;
  box-shadow:0 8px 25px rgba(11,124,255,0.4);
}

.go-top.show{
  opacity:1;
  visibility:visible;
}

.go-top:hover{
  transform:translateY(-4px);
}

/* PAGE HERO (inner pages) */
.page-hero{
  background:linear-gradient(135deg,#eaf4ff,#f0f7ff);
  padding:70px 0 50px;
  text-align:center;
  border-bottom:1px solid rgba(11,124,255,0.08);
}

.page-hero h1{
  font-size:42px;
  color:var(--dark);
  margin-bottom:14px;
}

.page-hero p{
  color:var(--text);
  font-size:17px;
  max-width:550px;
  margin:auto;
}

/* FORM STYLES */
.form-group{
  margin-bottom:20px;
}

.form-group label{
  display:block;
  font-weight:600;
  margin-bottom:7px;
  color:var(--dark);
  font-size:14px;
}

.form-group label span.req{
  color:#e53e3e;
  margin-left:3px;
}

.form-group input,
.form-group select,
.form-group textarea{
  width:100%;
  padding:13px 16px;
  border:1.5px solid #e2e8f0;
  border-radius:10px;
  font-family:'Inter',sans-serif;
  font-size:15px;
  color:var(--dark);
  transition:0.25s;
  background:#fff;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus{
  outline:none;
  border-color:var(--blue);
  box-shadow:0 0 0 3px rgba(11,124,255,0.1);
}

.form-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:18px;
}

/* SUCCESS POPUP */
.popup-overlay{
  position:fixed;
  inset:0;
  background:rgba(0,0,0,0.5);
  z-index:9999;
  display:flex;
  align-items:center;
  justify-content:center;
  opacity:0;
  visibility:hidden;
  transition:0.3s;
}

.popup-overlay.active{
  opacity:1;
  visibility:visible;
}

.popup-box{
  background:#fff;
  border-radius:20px;
  padding:45px 40px;
  text-align:center;
  max-width:480px;
  width:90%;
  animation:popIn 0.35s ease;
}

@keyframes popIn{
  from{ transform:scale(0.85); opacity:0; }
  to{ transform:scale(1); opacity:1; }
}

.popup-icon{
  font-size:55px;
  margin-bottom:16px;
}

.popup-box h3{
  font-size:24px;
  margin-bottom:10px;
  color:var(--dark);
}

.popup-box p{
  color:var(--text);
  margin-bottom:24px;
}

/* MOBILE */
@media(max-width:992px){
  .section-title{ font-size:34px; }
  .nav-links{ display:none; }
  .menu-btn{ display:block; }
}

@media(max-width:768px){
  .section{ padding:65px 0; }
  .section-title{ font-size:28px; }
  .btn{ display:block; text-align:center; }
  .form-grid{ grid-template-columns:1fr; }
  .call-108 h2{ font-size:28px; }
  .footer-bottom{ flex-direction:column; text-align:center; }
  .page-hero h1{ font-size:30px; }
}

@media(max-width:480px){
  .logo{ font-size:26px; }
  .section-title{ font-size:24px; }
  .mobile-menu{ width:100%; }
}

/* PAGE FADE IN — body invisible only while js-fade class present (removed on window load) */
html.js-fade body {
  opacity: 0;
  transition: opacity 0.4s ease;
}
