/* ===========================
   EMPIRE BOOST — RESPONSIVE
=========================== */
:root{
  --blue:#1976d2;
  --orange:#ff5a1f;
  --orange-deep:#ff5722;
  --red:#e53935;
  --text:#222;
  --muted:#777;
  --bg:#f3f4f6;
  --card-radius:18px;
  --nav-h:68px;
  --header-h:64px;
}

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

html{scroll-behavior:smooth;}

body{
  background:var(--bg);
  font-family:'Poppins',sans-serif;
  color:var(--text);
  -webkit-font-smoothing:antialiased;
}

a{text-decoration:none;color:inherit;}
button{font-family:inherit;}

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

/* ============ DESKTOP TOP NAV (hidden on mobile) ============ */

.desktop-topnav{
  display:none;
  background:#717872;
  border-bottom:1px solid #ececec;
  position:sticky;
  top:0;
  z-index:200;
}

.desktop-topnav-inner{
  max-width:1600px;   /* aligns nav with wider page content */
  margin:0 auto;
  padding:14px 26px;
  display:flex;
  align-items:center;
  gap:28px;
  margin-left: 10%;
}

.desktop-topnav .logo{
  font-size:26px;
  font-weight:800;
  color:var(--red);
  flex-shrink:0;

  color: #ffffff;
}
.desktop-topnav .logo span{color:var(--blue);}

.desktop-search{
  flex:1;
  display:flex;
  align-items:center;
  background:#f5f6f8;
  border:1px solid #e7e8eb;
  border-radius:30px;
  height:48px;
  padding:0 18px;
  max-width:620px;
}
.desktop-search input{
  border:none;background:transparent;outline:none;
  flex:1;margin-left:10px;font-size:14.5px;font-family:Poppins;
}
.desktop-search .material-icons-outlined{color:#888;font-size:21px;}
.desktop-search .mic{color:var(--red)!important;}

.desktop-nav-links{
  display:flex;
  align-items:center;
  gap:26px;
  flex-shrink:0;
}
.desktop-nav-links a{
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:3px;
  font-size:12.5px;
  font-weight:600;
  color:#555;
  cursor:pointer;
  transition:.25s;
}
.desktop-nav-links a .material-icons-outlined{font-size:22px;color:#555;}
.desktop-nav-links a.active,
.desktop-nav-links a:hover{color:var(--orange);}
.desktop-nav-links a.active .material-icons-outlined,
.desktop-nav-links a:hover .material-icons-outlined{color:var(--orange);}

.desktop-cta{
  background:var(--orange-deep);
  color:#fff;
  border:none;
  padding:11px 22px;
  border-radius:30px;
  font-weight:600;
  font-size:13.5px;
  cursor:pointer;
  white-space:nowrap;
  transition:.25s;
}
.desktop-cta:hover{background:#bc6044;transform:translateY(-1px);}

.desktop-avatar{
  width:42px;height:42px;border-radius:50%;
  background:#f1f3f6;display:flex;align-items:center;justify-content:center;
  cursor:pointer;flex-shrink:0;overflow:hidden;
}
.desktop-avatar .material-icons-outlined{font-size:25px;color:#555;}
.desktop-avatar .dp-img{width:100%;height:100%;object-fit:cover;}

/* ============ PAGE WRAPPER ============ */

.page-wrap{
  display:flex;
  justify-content:center;
  padding:0;
}

/* ============ PHONE FRAME (mobile-app style card) ============ */
/* On real phones this fills the whole screen (no padding/rounded
   corners/shadow). The "card" look is reintroduced only on tablet
   and desktop widths further below, where there's room to spare. */

.phone{
  width:100%;
  max-width:100%;
  min-height:100vh;
  min-height:100dvh;
  background:#fff;
  border-radius:0;
  overflow:hidden;
  box-shadow:none;
  position:relative;
}

/* HEADER (inside phone) */

header.app-header{
  background:#515050;
  padding:18px;
}

.topbar{
  display:flex;
  justify-content:space-between;
  align-items:center;
}

.profile,.notification{
  width:42px;height:42px;border-radius:50%;
  background:#f1f3f6;display:flex;justify-content:center;align-items:center;
  cursor:pointer;transition:.2s;overflow:hidden;
}
.profile:hover,.notification:hover{background:#e8eaf0;}
.profile span,.notification span{font-size:26px;color:#444;}
.profile .dp-img{width:100%;height:100%;object-fit:cover;}

.logo{font-size:28px;font-weight:700;color:white;}
.logo span{color:var(--blue);}

.search-box{
  margin-top:18px;
  background:#f7f7f7;
  height:54px;
  border-radius:18px;
  display:flex;
  align-items:center;
  padding:0 15px;
  box-shadow:0 2px 8px rgba(0,0,0,.05);
}
.search-box input{
  flex:1;border:none;background:transparent;outline:none;
  margin-left:10px;font-size:15px;font-family:Poppins;
}
.search-box span{color:#666;}
.mic{color:var(--red)!important;margin-left:10px;}

/* CATEGORY GRID (service/trade boxes) */

.grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:10px;
  padding:14px 10px;

  margin-bottom: 20px;
}

.trade-box{
  position:relative;
  aspect-ratio:1/1;             /* always a perfect square, at every screen size */
  border:1px solid #e6e8ef;     /* subtle, professional border */
  border-radius:14px;
  overflow:hidden;
  cursor:pointer;
  background:#f3f5fa;
  box-shadow:0 4px 14px rgba(20,30,80,.08);
  transition:transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.trade-box:hover{
  transform:translateY(-4px);
  box-shadow:0 12px 26px rgba(20,30,80,.16);
  border-color:#c7d2f0;
}
.trade-box:active{
  transform:scale(.97);
  transition:transform .12s ease;
}

.trade-box-img{
  position:absolute;inset:0;
  display:flex;
  align-items:center;
  justify-content:center;
  color:#b7becf;
}
.trade-box-img .material-icons-outlined{font-size:20px;}
.trade-box-img img{width:100%;height:100%;object-fit:cover;display:block;}

/* Name is now written directly on the generated image, so the
   overlay label + dark gradient fade are removed. The category name
   is still sent to the next page via the box's href (?cat=NAME),
   so search/next-page behaviour is unaffected. */
.trade-box-label{
  display:none;
}

/* ---- "See more / See less" — an ICON toggle, not a box ----
   Sits centred under the category grid on every screen size. */
.see-more-toggle{
  aspect-ratio:1/1;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:5px;
  cursor:pointer;
  user-select:none;
}
.see-more-toggle .sm-icon{
  width:46px;height:46px;border-radius:50%;
  display:flex;align-items:center;justify-content:center;
  font-size:26px;color:#fff;
  background:linear-gradient(150deg,#1e88e5,#0d47a1);
  box-shadow:0 6px 16px rgba(13,71,161,.30);
  transition:transform .2s ease, box-shadow .2s ease;
}
.see-more-toggle:hover .sm-icon{
  transform:translateY(-2px);
  box-shadow:0 10px 22px rgba(13,71,161,.42);
}
.see-more-toggle:active .sm-icon{transform:scale(.94);}
.see-more-toggle .sm-text{
  font-size:12px;font-weight:600;letter-spacing:.2px;color:#0d47a1;
}

/* BUSINESS CARD */

.business-card{
  margin:0 18px 20px;
  padding:18px;
  border-radius:20px;
  background:linear-gradient(135deg,#e8f5e9,#dcedc8);
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:10px;
}
.business-card h3{
  font-size:18px;color:#222;font-weight:600;
  white-space:nowrap;                /* keep "List your business  Free" on ONE line */
  display:flex;align-items:center;
}
.free{
  background:#2e7d32;color:#fff;font-size:11px;
  padding:3px 8px;border-radius:20px;margin-left:8px;
  flex-shrink:0;
}
.business-card button{
  border:none;background:var(--orange-deep);color:#fff;
  padding:10px 18px;border-radius:30px;font-weight:600;
  cursor:pointer;white-space:nowrap;transition:.2s;
}
.business-card button:hover{background:#e64a19;}

/* HOME SERVICES */

.home-services{padding:0 18px 28px;}

.heading{
  display:flex;justify-content:space-between;align-items:center;margin-bottom:18px;
}
.heading h2{font-size:18px;font-weight:700;color:#222;letter-spacing:.5px;}
.heading span{font-size:26px;color:#666;cursor:pointer;}

.tabs{display:flex;gap:12px;margin-bottom:20px;}
.tabs button{
  border:none;background:#ececec;color:#555;border-radius:30px;
  padding:10px 22px;cursor:pointer;font-size:14px;font-weight:600;transition:.3s;
}
.tabs button.active{background:var(--orange);color:#fff;}
.tabs button:hover{transform:translateY(-2px);}

.cards{
  display:flex;gap:18px;overflow-x:auto;scroll-behavior:smooth;padding-bottom:12px;
}
.cards::-webkit-scrollbar{display:none;}

.service{
  min-width:185px;background:#fff;border-radius:18px;overflow:hidden;
  box-shadow:0 8px 25px rgba(0,0,0,.08);transition:.35s;cursor:pointer;
}
.service:hover{transform:translateY(-8px);}
.service img{width:100%;height:130px;object-fit:cover;}
.service h4{padding:14px 14px 4px;font-size:16px;color:#222;}
.service p{padding:0 14px 18px;font-size:13px;color:#777;}

/* BOTTOM NAV (mobile, fixed within phone) */

nav.bottom-nav{
  position:sticky;
  bottom:0;
  background:#fff;
  height:var(--nav-h);
  display:flex;
  justify-content:space-around;
  align-items:center;
  border-top:1px solid #ececec;
  box-shadow:0 -5px 20px rgba(0,0,0,.08);
  z-index:100;
}

.nav{
  display:flex;flex-direction:column;align-items:center;
  font-size:11px;color:#777;cursor:pointer;transition:.3s;
  position:relative;
}
.nav span.material-icons-outlined{font-size:25px;margin-bottom:3px;}
.nav.active{color:var(--orange);}
.nav:hover{color:var(--orange);}

.nav-badge{
  position:absolute;top:-4px;right:6px;
  background:var(--orange-deep);color:#fff;
  font-size:9px;font-weight:700;
  width:16px;height:16px;border-radius:50%;
  display:flex;align-items:center;justify-content:center;
}

/* ==============================
   SCROLL ANIMATION
============================== */

@keyframes fadeUp{
  from{opacity:0;transform:translateY(35px);}
  to{opacity:1;transform:translateY(0);}
}
header.app-header,.grid,.business-card,.home-services{animation:fadeUp .6s ease;}

/* ==============================================================
   TABLET (≥600px): widen phone card, keep app-style layout
================================================================== */

@media(min-width:600px) and (max-width:991px){
  .page-wrap{padding:20px;}
  .phone{
    width:520px;
    max-width:100%;
    min-height:100vh;
    border-radius:28px;
    box-shadow:0 10px 35px rgba(0,0,0,.12);
  }
  .grid{grid-template-columns:repeat(4,1fr);gap:16px;padding:20px;}
  .trade-box{border-radius:16px;}
  .trade-box-img .material-icons-outlined{font-size:34px;}
  .see-more-toggle .sm-icon{width:50px;height:50px;font-size:28px;}
  .see-more-toggle .sm-text{font-size:13px;}
}

/* ==============================================================
   DESKTOP / LAPTOP (≥992px): full Justdial-style website layout
================================================================== */

@media(min-width:992px){

  body{padding:0;}

  .desktop-topnav{display:block;}

  .page-wrap{
    padding:0;
    display:block;
  }

  /* Turn the app-card into a full desktop page */
  .phone{
    width:100%;
    max-width:none;
    border-radius:0;
    box-shadow:none;
    min-height:auto;
  }

  /* Hide mobile-only header (replaced by desktop topnav) and bottom nav */
  header.app-header{display:none;}
  nav.bottom-nav{display:none;}

  .desktop-inner{
    max-width:1600px;      /* was 1280 — fills laptop screens fully */
    margin:0 auto;
    padding:22px 26px 56px; /* was 36px 32px 80px — trimmed side/vert padding */
  }

  /* Hero strip */
  .hero{
    background:linear-gradient(120deg,#0d47a1,#1976d2 55%,#42a5f5);
    border-radius:24px;
    padding:46px 48px;
    color:#fff;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:30px;
    margin-bottom:36px;
    overflow:hidden;
    position:relative;
  }
  .hero::after{
    content:"";
    position:absolute;
    right:-60px;top:-60px;
    width:260px;height:260px;
    background:rgba(255,255,255,.08);
    border-radius:50%;
  }
  .hero-text h1{
    font-size:34px;
    font-weight:700;
    max-width:520px;
    line-height:1.25;
    margin-bottom:14px;
  }
  .hero-text p{
    font-size:15px;
    opacity:.9;
    max-width:480px;
    margin-bottom:22px;
  }
  .hero-search{
    background:#fff;
    border-radius:14px;
    display:flex;
    align-items:center;
    padding:14px 18px;
    gap:12px;
    max-width:480px;
    box-shadow:0 12px 30px rgba(0,0,0,.18);
  }
  .hero-search input{
    flex:1;border:none;outline:none;font-size:14.5px;font-family:Poppins;color:#222;
  }
  .hero-search button{
    background:var(--orange-deep);
    color:#fff;border:none;
    padding:10px 20px;
    border-radius:10px;
    font-weight:600;
    cursor:pointer;
    font-size:14px;
    transition:.2s;
  }
  .hero-search button:hover{background:#e64a19;}
  .hero-search .material-icons-outlined{color:#999;}

  .hero-art{
    flex-shrink:0;
    width:230px;
    height:230px;
    border-radius:50%;
    background:rgba(255,255,255,.12);
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:90px;
  }

  /* Section title shared */
  .section-title{
    font-size:22px;
    font-weight:700;
    margin-bottom:22px;
    display:flex;
    align-items:center;
    justify-content:space-between;
  }
  .section-title .see-all{
    font-size:13px;
    font-weight:600;
    color:var(--blue);
    cursor:pointer;
    display:flex;align-items:center;gap:2px;
  }

  /* Grid becomes a clean, professional tile wall — square image tiles,
     sized so the pictures fill each box edge-to-edge without stretching */
  .grid{
    display:grid;
    grid-template-columns:repeat(6,1fr);
    gap:18px;
    margin-bottom:30px;
    background:#fff;
    border-radius:20px;
    padding:24px;
    box-shadow:0 4px 24px rgba(0,0,0,.05);
  }
  .trade-box{border-radius:16px;}
  .trade-box-img .material-icons-outlined{font-size:46px;}
  .see-more-toggle .sm-icon{width:54px;height:54px;font-size:30px;}
  .see-more-toggle .sm-text{font-size:14px;}

  /* Business card becomes a wide banner */
  .business-card{
    margin:0 0 30px;
    padding:28px 40px;
    border-radius:20px;
  }
  .business-card h3{font-size:24px;}
  .business-card button{padding:13px 28px;font-size:14.5px;}

  /* Home services section as plain block */
  .home-services{padding:0;margin-bottom:10px;}
  .home-services .heading{display:none;} /* replaced by .section-title */
  .home-services::before{
    content:"HOME SERVICES";
    display:flex;
    font-size:22px;
    font-weight:700;
    margin-bottom:22px;
    color:#222;
  }

  .tabs{margin-bottom:26px;}
  .tabs button{padding:11px 26px;font-size:14.5px;}

  .cards{
    display:grid;
    grid-template-columns:repeat(4,1fr);
    overflow:visible;
    gap:24px;
  }
  .service{min-width:0;}
  .service img{height:160px;}

  /* Desktop footer */
  .desktop-footer{
    margin-top:60px;
    background:#1a1a1a;
    color:#bbb;
    padding:48px 32px 28px;
  }
  .footer-inner{
    max-width:1600px;
    margin:0 auto;
    display:grid;
    grid-template-columns:1.4fr repeat(4,1fr);
    gap:32px;
  }
  .footer-inner h4{
    color:#fff;font-size:15px;margin-bottom:16px;font-weight:600;
  }
  .footer-inner ul{list-style:none;}
  .footer-inner li{margin-bottom:10px;font-size:13.5px;cursor:pointer;transition:.2s;}
  .footer-inner li:hover{color:#fff;}
  .footer-logo{font-size:24px;font-weight:800;color:#fff;margin-bottom:12px;}
  .footer-logo span{color:var(--orange);}
  .footer-bottom{
    max-width:1600px;margin:32px auto 0;
    border-top:1px solid #333;
    padding-top:20px;
    font-size:12.5px;
    display:flex;
    justify-content:space-between;
    flex-wrap:wrap;
    gap:10px;
  }
}

@media(min-width:1280px){
  .grid{grid-template-columns:repeat(8,1fr);gap:16px;}
}

/* small phones */
@media(max-width:380px){
  .grid{gap:8px;padding:10px;}
  .see-more-toggle .sm-icon{width:42px;height:42px;font-size:23px;}
  .see-more-toggle .sm-text{font-size:11px;}
  .logo{margin-right: 10%;}
}

/* ==============================================================
   SETTINGS / "MORE" PANEL
================================================================== */

.settings-overlay{
  position:fixed;
  inset:0;
  background:rgba(0,0,0,.35);
  display:none;
  z-index:900;
  opacity:0;
  transition:opacity .25s ease;
}
.settings-overlay.open{
  display:block;
  opacity:1;
}

.settings-panel{
  position:fixed;
  top:0;
  left:0;
  width:390px;
  max-width:100%;
  height:100%;
  background:#fff;
  z-index:901;
  transform:translateX(-100%);
  transition:transform .3s ease;
  overflow-y:auto;
  -webkit-overflow-scrolling:touch;
  box-shadow:10px 0 35px rgba(0,0,0,.15);
}
.settings-panel.open{
  transform:translateX(0);
}

.settings-close{
  padding:22px 22px 8px;
}
.settings-close .material-icons-outlined{
  font-size:26px;
  cursor:pointer;
  color:#111;
}

.settings-hello{
  padding:6px 22px 22px;
}
.settings-dp{
  width:64px;height:64px;border-radius:50%;
  background:#f1f3f6;display:flex;align-items:center;justify-content:center;
  overflow:hidden;margin-bottom:12px;cursor:pointer;
  border:2px solid #fff;box-shadow:0 2px 10px rgba(0,0,0,.08);
}
.settings-dp .material-icons-outlined{font-size:38px;color:#888;}
.settings-dp .dp-img{width:100%;height:100%;object-fit:cover;}
.settings-hello h2{
  font-size:23px;
  font-weight:700;
  margin-bottom:4px;
}
.settings-hello p{
  font-size:14.5px;
  color:#555;
}
.view-profile-link{
  color:var(--blue);font-weight:600;cursor:pointer;text-decoration:underline;
}
.settings-signin{
  display:block;
  width:calc(100% - 44px);
  margin:18px 22px 0;
  background:var(--blue);
  color:#fff;
  border:none;
  padding:15px;
  border-radius:10px;
  font-size:16px;
  font-weight:600;
  cursor:pointer;
  transition:.2s;
}
.settings-signin:hover{background:#1561b0;}

.settings-divider{
  height:8px;
  background:#f4f5f7;
  margin:22px 0;
}

.settings-section-label{
  padding:0 22px 14px;
  font-size:12.5px;
  letter-spacing:1.5px;
  color:#9a9a9a;
  font-weight:600;
}

.grow-card{
  margin:0 22px 14px;
  border:1px solid #e9e9ec;
  border-radius:12px;
  display:flex;
  align-items:center;
  gap:14px;
  padding:14px 16px;
  cursor:pointer;
  transition:.2s;
}
.grow-card:hover{border-color:#ccc;background:#fafafa;}
.grow-card .ic{
  width:38px;height:38px;border-radius:50%;
  border:1px solid #e2e2e2;
  display:flex;align-items:center;justify-content:center;
  flex-shrink:0;
  font-size:19px;
}
.grow-card .label{
  flex:1;
  font-size:15px;
  color:#222;
}
.grow-card .label b{font-weight:700;}
.grow-card .tag{
  background:var(--red);
  color:#fff;
  font-size:11.5px;
  font-weight:700;
  padding:4px 9px;
  border-radius:5px;
  margin-left:6px;
}
.grow-card.gradient{
  background:linear-gradient(120deg,#e3f6e8,#dbeefc);
  border:none;
}
.grow-card .chev{
  color:#999;
  font-size:20px;
}

.lang-row{
  display:flex;
  gap:10px;
  padding:0 22px 22px;
  overflow-x:auto;
}
.lang-row::-webkit-scrollbar{display:none;}
.lang-chip{
  flex-shrink:0;
  border:1.5px solid #e2e2e2;
  border-radius:8px;
  padding:13px 20px;
  font-size:14.5px;
  font-weight:600;
  color:#444;
  cursor:pointer;
  transition:.2s;
  white-space:nowrap;
}
.lang-chip.active{
  border-color:var(--blue);
  color:var(--blue);
  background:#eef5fd;
}
.lang-chip:hover{border-color:#aaa;}

.settings-list{padding:0 22px;}
.settings-row{
  display:flex;
  align-items:center;
  gap:16px;
  padding:18px 0;
  border-bottom:1px solid #f0f0f0;
  cursor:pointer;
  transition:.2s;
}
.settings-row:last-child{border-bottom:none;}
.settings-row:hover{opacity:.7;}
.settings-row .material-icons-outlined.row-icon{
  font-size:23px;
  color:#333;
  width:24px;
}
.settings-row span.row-text{
  flex:1;
  font-size:16px;
  color:#222;
}
.settings-row .material-icons-outlined.row-chev{
  color:#999;
  font-size:20px;
}

.settings-login-row{
  margin:8px 22px 30px;
  display:flex;
  align-items:center;
  gap:16px;
  padding:18px 0 0;
  cursor:pointer;
}
.settings-login-row .material-icons-outlined{font-size:23px;color:#333;}
.settings-login-row span{font-size:16px;font-weight:600;color:#222;}

@media(min-width:992px){
  .settings-panel{width:430px;}
}

@media(max-width:430px){
  /* Boxes stay square via aspect-ratio so images fit cleanly — no fixed height */
  .business-card{padding:14px;gap:8px;}
  .business-card h3{font-size:14.5px;}
  .business-card .free{font-size:9.5px;padding:2px 6px;margin-left:6px;}
  .business-card button{padding:9px 14px;font-size:13px;}
  .logo{margin-right: 28%;}
}

.trade-box-img img{width:100%;height:100%;object-fit:cover;border-radius:inherit;}