/* ==========================================================================
   BizBook.pk — Pakistan's Business Directory
   Design tokens: navy #0B2559 / #123472, gold #F5B921 / #D99A00,
   ink #101828, slate #5B6478, mist #F5F7FB, line #E4E8F0
   Type: Poppins (display/headings) + Inter (body/UI)
   ========================================================================== */

:root{
  --navy-950:#081A3D;
  --navy-900:#0B2559;
  --navy-800:#123472;
  --navy-700:#1B4189;
  --gold-600:#D99A00;
  --gold-500:#F5B921;
  --gold-400:#FFCE47;
  --gold-050:#FFF6DF;
  --ink:#101828;
  --slate:#5B6478;
  --slate-light:#8991A3;
  --mist:#F5F7FB;
  --mist-deep:#EDF1F9;
  --line:#E4E8F0;
  --white:#FFFFFF;
  --green:#1AA65D;
  --red:#E1483D;

  --font-display:'Poppins', sans-serif;
  --font-body:'Inter', sans-serif;

  --radius-sm:8px;
  --radius-md:14px;
  --radius-lg:22px;
  --radius-pill:999px;

  --shadow-sm:0 2px 8px rgba(11,37,89,0.06);
  --shadow-md:0 10px 30px rgba(11,37,89,0.10);
  --shadow-lg:0 24px 60px rgba(11,37,89,0.16);

  --container:1240px;
}

*{margin:0;padding:0;box-sizing:border-box;}
html{scroll-behavior:smooth;overflow-x:hidden;}
body{
  font-family:var(--font-body);
  color:var(--ink);
  background:var(--white);
  line-height:1.6;
  -webkit-font-smoothing:antialiased;
  overflow-x:hidden;
}
img{max-width:100%;display:block;}
a{text-decoration:none;color:inherit;}
ul{list-style:none;}
button{font-family:inherit;cursor:pointer;border:none;background:none;}
input,select,textarea{font-family:inherit;}

:focus-visible{outline:2px solid var(--gold-500);outline-offset:2px;border-radius:4px;}

.container{
  max-width:var(--container);
  margin:0 auto;
  padding:0 32px;
}

h1,h2,h3,h4{font-family:var(--font-display);color:var(--navy-900);line-height:1.15;letter-spacing:-0.01em;}

.eyebrow{
  display:inline-flex;align-items:center;gap:8px;
  font-family:var(--font-body);font-weight:700;font-size:12.5px;
  letter-spacing:0.10em;text-transform:uppercase;
  color:var(--gold-600);
}
.eyebrow::before{content:'';width:16px;height:2px;background:var(--gold-500);display:inline-block;border-radius:2px;}

@media (prefers-reduced-motion: reduce){
  *{animation-duration:0.01ms !important;animation-iteration-count:1 !important;transition-duration:0.01ms !important;scroll-behavior:auto !important;}
}

/* ---------------------------- Buttons ---------------------------- */
.btn{
  display:inline-flex;align-items:center;justify-content:center;gap:8px;
  font-weight:600;font-size:14.5px;font-family:var(--font-body);
  padding:13px 26px;border-radius:var(--radius-pill);
  transition:transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease, border-color .18s ease;
  white-space:nowrap;
}
.btn-gold{
  background:linear-gradient(180deg,var(--gold-400),var(--gold-500));
  color:var(--navy-950);
  box-shadow:0 8px 20px rgba(245,185,33,0.35);
}
.btn-gold:hover{transform:translateY(-2px);box-shadow:0 12px 26px rgba(245,185,33,0.45);}
.btn-ghost{
  background:transparent;color:var(--white);
  border:1.5px solid rgba(255,255,255,0.35);
}
.btn-ghost:hover{background:rgba(255,255,255,0.1);border-color:rgba(255,255,255,0.6);}
.btn-outline-navy{
  background:transparent;color:var(--navy-900);border:1.5px solid var(--line);
}
.btn-outline-navy:hover{border-color:var(--navy-800);background:var(--mist);}
.btn-navy{
  background:var(--navy-900);color:var(--white);
}
.btn-navy:hover{background:var(--navy-800);transform:translateY(-2px);}
.btn-sm{padding:9px 18px;font-size:13.5px;}
.btn-block{width:100%;}
.btn svg{width:16px;height:16px;flex-shrink:0;}

/* ---------------------------- Header ---------------------------- */
.site-header{
  position:sticky;top:0;left:0;right:0;z-index:1000;
  background:rgba(255,255,255,0.92);
  backdrop-filter:blur(14px);
  border-bottom:1px solid var(--line);
}
.header-inner{
  display:flex;align-items:center;justify-content:space-between;
  height:88px;gap:36px;max-width:1360px;
}
.brand{display:flex;align-items:center;gap:12px;flex-shrink:0;}
.brand-mark{
  width:44px;height:44px;border-radius:10px;overflow:hidden;
  display:flex;align-items:center;justify-content:center;
  background:var(--navy-900);
  flex-shrink:0;
}
.brand-mark img{width:100%;height:100%;object-fit:cover;}
.brand-text{display:flex;flex-direction:column;line-height:1.15;}
.brand-text .name{
  font-family:var(--font-display);font-weight:700;font-size:20px;color:var(--navy-900);
}
.brand-text .name em{color:var(--gold-600);font-style:normal;}
.brand-text .tag{font-size:10.5px;color:var(--slate);letter-spacing:0.03em;font-weight:500;}

.main-nav{display:flex;align-items:center;gap:6px;flex:1;justify-content:center;min-width:0;}
.main-nav a{
  position:relative;flex-shrink:0;white-space:nowrap;
  padding:11px 18px;border-radius:var(--radius-pill);
  font-size:14.5px;font-weight:500;color:var(--navy-900);
  transition:background .18s ease, color .18s ease;
  display:flex;align-items:center;gap:5px;
}
.main-nav a:hover{background:var(--mist-deep);}
.main-nav a.active{color:var(--navy-900);font-weight:700;background:var(--gold-050);}
.main-nav .caret{width:9px;height:9px;margin-left:1px;opacity:.6;flex-shrink:0;}

.header-actions{display:flex;align-items:center;gap:10px;flex-shrink:0;}
.header-login{
  padding:11px 22px;border-radius:var(--radius-pill);
  border:1.5px solid var(--line);color:var(--navy-900);font-weight:600;font-size:14px;
  transition:border-color .18s ease, background .18s ease;
}
.header-login:hover{border-color:var(--navy-800);background:var(--mist);}

.nav-toggle{display:none;width:42px;height:42px;border-radius:10px;align-items:center;justify-content:center;background:var(--mist-deep);flex-shrink:0;}
.nav-toggle svg{width:20px;height:20px;color:var(--navy-900);}

/* ---------------------------- Breadcrumb / page hero ---------------------------- */
.page-hero{
  position:relative;overflow:hidden;
  background:linear-gradient(120deg,var(--navy-950) 0%, var(--navy-900) 48%, var(--navy-800) 100%);
  color:var(--white);
  padding:52px 0 64px;
}
.page-hero.hero-tall{padding:88px 0 108px;}
.page-hero .skyline{
  position:absolute;bottom:0;right:0;width:min(58%,760px);opacity:0.9;
  pointer-events:none;
}
.page-hero .skyline svg{width:100%;display:block;}
.page-hero::after{
  content:'';position:absolute;inset:0;
  background:radial-gradient(circle at 15% 20%, rgba(245,185,33,0.10), transparent 45%);
  pointer-events:none;
}
.breadcrumb{
  display:flex;align-items:center;gap:8px;font-size:13.5px;color:rgba(255,255,255,0.6);margin-bottom:20px;position:relative;z-index:2;
}
.breadcrumb a{color:rgba(255,255,255,0.85);font-weight:500;}
.breadcrumb a:hover{color:var(--gold-400);}
.breadcrumb .sep{opacity:.5;}
.breadcrumb .current{color:var(--gold-400);font-weight:600;}

.hero-content{position:relative;z-index:2;max-width:640px;}
.hero-content h1{font-size:44px;font-weight:700;color:var(--white);margin-bottom:14px;}
.hero-content h1 .accent{color:var(--gold-400);}
.hero-content p{font-size:16.5px;color:rgba(255,255,255,0.78);max-width:560px;}

/* Home hero specific */
.home-hero{padding:70px 0 0;}
.home-hero-top{position:relative;z-index:2;text-align:center;max-width:760px;margin:0 auto;padding:0 20px 46px;}
.home-hero-top h1{font-size:52px;color:var(--white);font-weight:700;margin-bottom:16px;}
.home-hero-top h1 .line2{display:block;color:var(--gold-400);}
.home-hero-top p{color:rgba(255,255,255,0.78);font-size:17px;max-width:520px;margin:0 auto;}

/* ---------------------------- Search bar ---------------------------- */
.search-panel{
  position:relative;z-index:3;
  background:var(--white);
  border-radius:var(--radius-lg);
  box-shadow:var(--shadow-lg);
  padding:10px;
  display:flex;align-items:stretch;gap:8px;
  max-width:920px;margin:0 auto;
}
.search-field{
  flex:1;display:flex;align-items:center;gap:10px;padding:10px 16px;position:relative;
}
.search-field svg{width:18px;height:18px;color:var(--slate-light);flex-shrink:0;}
.search-field input, .search-field select{
  border:none;background:none;outline:none;width:100%;font-size:14.5px;color:var(--ink);appearance:none;
}
.search-field select{cursor:pointer;}
.search-divider{width:1px;background:var(--line);margin:8px 0;}
.search-btn{
  background:linear-gradient(180deg,var(--gold-400),var(--gold-500));
  border-radius:var(--radius-md);
  width:56px;flex-shrink:0;
  display:flex;align-items:center;justify-content:center;
  transition:transform .18s ease;
}
.search-btn:hover{transform:scale(1.05);}
.search-btn svg{width:20px;height:20px;color:var(--navy-950);}

.popular-tags{
  position:relative;z-index:2;
  display:flex;align-items:center;gap:10px;justify-content:center;flex-wrap:wrap;
  margin-top:26px;font-size:13.5px;color:rgba(255,255,255,0.65);
}
.popular-tags .lbl{font-weight:600;}
.tag-chip{
  padding:7px 15px;border-radius:var(--radius-pill);
  background:rgba(255,255,255,0.08);border:1px solid rgba(255,255,255,0.16);
  color:rgba(255,255,255,0.9);font-weight:500;font-size:13px;
  transition:background .18s ease, border-color .18s ease;
}
.tag-chip:hover{background:rgba(255,255,255,0.18);border-color:rgba(255,255,255,0.3);}

/* ---------------------------- Stat strip ---------------------------- */
.stat-strip{
  position:relative;z-index:3;
  background:var(--white);
  border-radius:var(--radius-lg);
  box-shadow:var(--shadow-lg);
  padding:26px 10px;
  display:grid;grid-template-columns:repeat(4,1fr);
  max-width:1000px;margin:-40px auto 0;
}
.stat-strip.no-overlap{margin-top:34px;}
.stat-item{
  display:flex;align-items:center;gap:14px;justify-content:center;
  padding:6px 18px;position:relative;
}
.stat-item:not(:last-child)::after{
  content:'';position:absolute;right:0;top:8px;bottom:8px;width:1px;background:var(--line);
}
.stat-icon{
  width:46px;height:46px;border-radius:12px;background:var(--gold-050);
  display:flex;align-items:center;justify-content:center;flex-shrink:0;
}
.stat-icon svg{width:22px;height:22px;color:var(--gold-600);}
.stat-num{font-family:var(--font-display);font-weight:700;font-size:20px;color:var(--navy-900);line-height:1.1;}
.stat-num[data-count]{font-variant-numeric:tabular-nums;}
.stat-label{font-size:12.5px;color:var(--slate);font-weight:500;}

/* ---------------------------- Sections ---------------------------- */
section{padding:88px 0;}
.section-head{display:flex;align-items:flex-end;justify-content:space-between;gap:20px;margin-bottom:44px;flex-wrap:wrap;}
.section-head h2{font-size:32px;font-weight:700;}
.section-head p{color:var(--slate);font-size:15px;margin-top:8px;max-width:520px;}
.link-arrow{
  display:inline-flex;align-items:center;gap:6px;color:var(--navy-800);font-weight:600;font-size:14.5px;
  flex-shrink:0;
}
.link-arrow svg{width:15px;height:15px;transition:transform .18s ease;}
.link-arrow:hover svg{transform:translateX(3px);}
.link-arrow:hover{color:var(--gold-600);}
.center-head{text-align:center;justify-content:center;flex-direction:column;align-items:center;}
.center-head p{margin:10px auto 0;}

.bg-mist{background:var(--mist);}

/* ---------------------------- Category grid ---------------------------- */
.cat-grid{display:grid;grid-template-columns:repeat(6,1fr);gap:16px;}
.cat-card{
  background:var(--white);border:1px solid var(--line);border-radius:var(--radius-md);
  padding:22px 16px;text-align:center;
  transition:transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.cat-card:hover{transform:translateY(-5px);box-shadow:var(--shadow-md);border-color:transparent;}
.cat-icon{
  width:52px;height:52px;border-radius:14px;margin:0 auto 14px;
  display:flex;align-items:center;justify-content:center;
  background:var(--mist-deep);color:var(--navy-800);
  transition:background .2s ease,color .2s ease;
}
.cat-card:hover .cat-icon{background:var(--navy-900);color:var(--gold-400);}
.cat-icon svg{width:24px;height:24px;}
.cat-card h4{font-size:14.5px;font-weight:600;color:var(--ink);margin-bottom:4px;}
.cat-card .count{font-size:12.5px;color:var(--slate);}

/* ---------------------------- Grow banner ---------------------------- */
.grow-banner{
  background:linear-gradient(120deg,#E9F6EE, #F2FBF5);
  border:1px solid #D9EFE1;
  border-radius:var(--radius-lg);
  padding:44px 48px;
  display:grid;grid-template-columns:1.1fr 0.8fr 0.7fr;align-items:center;gap:36px;
}
.grow-banner h3{font-size:25px;margin-bottom:6px;}
.grow-banner .sub{color:var(--slate);font-size:14.5px;margin-bottom:18px;}
.grow-checks{display:flex;flex-direction:column;gap:12px;}
.grow-checks li{display:flex;align-items:center;gap:10px;font-size:14.5px;font-weight:500;color:var(--ink);}
.grow-checks .tick{
  width:20px;height:20px;border-radius:50%;background:var(--green);flex-shrink:0;
  display:flex;align-items:center;justify-content:center;
}
.grow-checks .tick svg{width:11px;height:11px;color:var(--white);}
.grow-art{
  background:var(--navy-900);border-radius:var(--radius-md);padding:14px;
  box-shadow:var(--shadow-md);
}
.grow-art .screen{
  background:var(--mist);border-radius:8px;padding:12px;
}
.grow-art .bar{height:8px;border-radius:4px;background:var(--line);margin-bottom:8px;}
.grow-art .bar.w60{width:60%;background:var(--gold-500);}
.grow-art .bar.w40{width:40%;}
.grow-art .bar.w80{width:80%;}

/* ---------------------------- Why choose ---------------------------- */
.why-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:28px;}
.why-item{text-align:center;padding:8px;}
.why-icon{
  width:58px;height:58px;border-radius:16px;margin:0 auto 16px;
  background:var(--gold-050);color:var(--gold-600);
  display:flex;align-items:center;justify-content:center;
}
.why-icon svg{width:26px;height:26px;}
.why-item h4{font-size:16px;margin-bottom:6px;color:var(--navy-900);font-weight:600;}
.why-item p{font-size:13.5px;color:var(--slate);}

/* ---------------------------- Footer ---------------------------- */
.site-footer{background:var(--navy-950);color:rgba(255,255,255,0.72);padding:64px 0 0;}
.footer-grid{display:grid;grid-template-columns:1.6fr 1fr 1fr 1fr 1.3fr;gap:36px;padding-bottom:48px;border-bottom:1px solid rgba(255,255,255,0.08);}
.footer-brand{display:flex;align-items:center;gap:10px;margin-bottom:14px;}
.footer-brand .brand-mark{background:var(--white);}
.footer-brand .name{font-family:var(--font-display);font-weight:700;font-size:19px;color:var(--white);}
.footer-brand .name em{color:var(--gold-500);font-style:normal;}
.site-footer p.desc{font-size:13.5px;line-height:1.7;margin-bottom:18px;max-width:280px;}
.social-row{display:flex;gap:10px;}
.social-row a{
  width:36px;height:36px;border-radius:50%;background:rgba(255,255,255,0.08);
  display:flex;align-items:center;justify-content:center;transition:background .18s ease;
}
.social-row a:hover{background:var(--gold-500);color:var(--navy-950);}
.social-row svg{width:16px;height:16px;}
.footer-col h5{color:var(--white);font-size:14.5px;font-weight:600;margin-bottom:18px;}
.footer-col ul{display:flex;flex-direction:column;gap:11px;}
.footer-col a{font-size:13.8px;transition:color .18s ease;}
.footer-col a:hover{color:var(--gold-400);}
.footer-news form{display:flex;gap:8px;margin-top:14px;}
.footer-news input{
  flex:1;background:rgba(255,255,255,0.08);border:1px solid rgba(255,255,255,0.14);
  border-radius:var(--radius-pill);padding:11px 16px;color:var(--white);font-size:13.5px;outline:none;
}
.footer-news input::placeholder{color:rgba(255,255,255,0.45);}
.footer-news button{
  width:42px;height:42px;border-radius:50%;background:var(--gold-500);flex-shrink:0;
  display:flex;align-items:center;justify-content:center;flex-shrink:0;
}
.footer-news button svg{width:16px;height:16px;color:var(--navy-950);}
.footer-bottom{
  display:flex;align-items:center;justify-content:space-between;padding:22px 0;font-size:12.8px;color:rgba(255,255,255,0.45);
}
.flag-badge{display:inline-flex;align-items:center;gap:8px;}
.flag-mini{width:22px;height:15px;border-radius:2px;overflow:hidden;display:inline-flex;box-shadow:0 0 0 1px rgba(255,255,255,0.15);}
.flag-mini span{flex:1;height:100%;}

/* ============================ RESPONSIVE ============================ */
@media (max-width: 1080px){
  .cat-grid{grid-template-columns:repeat(3,1fr);}
  .why-grid{grid-template-columns:repeat(2,1fr);}
  .footer-grid{grid-template-columns:1fr 1fr;}
  .stat-strip{grid-template-columns:repeat(2,1fr);gap:18px;}
  .stat-item:nth-child(2)::after{display:none;}
  .grow-banner{grid-template-columns:1fr;text-align:left;}
  .grow-art{max-width:320px;}
}
@media (max-width: 1440px){
  .main-nav{display:none;}
  .nav-toggle{display:flex;}
  .header-login{display:none;}
  .header-icon-btn{display:none;}
  .header-divider{display:none;}
}
@media (max-width: 860px){
  .home-hero-top h1{font-size:38px;}
  .hero-content h1{font-size:32px;}
  .search-panel{flex-direction:column;padding:14px;}
  .search-divider{display:none;}
  .search-btn{width:100%;height:46px;}
  section{padding:60px 0;}
}
@media (max-width: 620px){
  .cat-grid{grid-template-columns:repeat(2,1fr);}
  .why-grid{grid-template-columns:1fr;}
  .footer-grid{grid-template-columns:1fr;}
  .home-hero-top h1{font-size:30px;}
  .container{padding:0 20px;}
  .page-hero .skyline{width:80%;opacity:0.35;}
  .stat-strip{grid-template-columns:1fr;gap:2px;padding:8px;}
  .stat-item{justify-content:flex-start;padding:12px 10px;}
  .stat-item:not(:last-child)::after{display:none;}
  .stat-item:not(:last-child){border-bottom:1px solid var(--line);}
  .stat-icon{width:40px;height:40px;flex-shrink:0;}
  .header-actions .btn-gold{display:none;}
  .brand-text .tag{display:none;}
}

/* ---------------------------- Header saved/heart icon ---------------------------- */
.header-icon-btn{
  position:relative;width:42px;height:42px;border-radius:var(--radius-pill);
  display:flex;align-items:center;justify-content:center;color:var(--navy-900);
  border:1.5px solid var(--line);flex-shrink:0;
  transition:border-color .18s ease, background .18s ease, color .18s ease;
}
.header-icon-btn:hover{border-color:var(--navy-800);background:var(--mist);color:var(--red);}
.header-divider{width:1px;height:26px;background:var(--line);flex-shrink:0;margin:0 2px;}
.saved-badge{
  position:absolute;top:-5px;right:-5px;min-width:17px;height:17px;padding:0 4px;border-radius:50%;
  background:var(--red);color:var(--white);font-size:10px;font-weight:700;
  display:none;align-items:center;justify-content:center;line-height:1;
}

/* ---------------------------- Global quick search modal ---------------------------- */
.qs-overlay{
  position:fixed;inset:0;z-index:2000;background:rgba(8,26,61,0.55);
  display:flex;align-items:flex-start;justify-content:center;padding:12vh 20px 20px;
  opacity:0;visibility:hidden;transition:opacity .2s ease, visibility .2s ease;
  backdrop-filter:blur(2px);
}
.qs-overlay.open{opacity:1;visibility:visible;}
.qs-modal{
  width:100%;max-width:560px;background:var(--white);border-radius:var(--radius-lg);
  box-shadow:var(--shadow-lg);overflow:hidden;
  transform:translateY(-14px);transition:transform .22s ease;
}
.qs-overlay.open .qs-modal{transform:translateY(0);}
.qs-input-row{
  display:flex;align-items:center;gap:12px;padding:18px 20px;border-bottom:1px solid var(--line);
}
.qs-input-row svg{color:var(--slate-light);flex-shrink:0;}
.qs-input-row input{flex:1;border:none;outline:none;font-size:15.5px;background:none;color:var(--ink);}
.qs-input-row kbd{
  font-size:11px;font-weight:600;color:var(--slate);background:var(--mist);border:1px solid var(--line);
  border-radius:5px;padding:3px 7px;flex-shrink:0;
}
.qs-results{max-height:60vh;overflow-y:auto;padding:8px;}
.qs-hint{
  display:flex;align-items:center;gap:9px;padding:20px 16px;color:var(--slate);font-size:13.5px;
}
.qs-hint svg{color:var(--slate-light);flex-shrink:0;}
.qs-hint a{color:var(--navy-800);font-weight:600;}
.qs-group{padding:8px 0;}
.qs-group-label{
  display:block;font-size:11px;font-weight:700;letter-spacing:0.05em;text-transform:uppercase;
  color:var(--slate-light);padding:6px 12px;
}
.qs-result{
  display:flex;align-items:center;gap:12px;padding:11px 12px;border-radius:10px;font-size:14px;
  color:var(--ink);font-weight:500;transition:background .14s ease;
}
.qs-result:hover{background:var(--mist);}
.qs-result svg{color:var(--navy-800);flex-shrink:0;}
.qs-result-avatar{
  width:26px;height:26px;border-radius:8px;background:var(--navy-900);color:var(--gold-400);
  font-family:var(--font-display);font-weight:700;font-size:12px;
  display:flex;align-items:center;justify-content:center;flex-shrink:0;
}
.qs-result-sub{margin-left:auto;font-size:12px;color:var(--slate);font-weight:400;}

@media (max-width:620px){
  .qs-overlay{padding:8vh 14px 14px;}
}
