/*
Theme Name: Prantij Bazaar
Theme URI: https://prantijbazaar.in
Author: PrantijBazaar.in
Description: Gujarati-first hyperlocal business directory, offers and jobs theme for Prantij.
Version: 1.0.0
Requires at least: 6.2
Tested up to: 6.8
Requires PHP: 7.4
Text Domain: prantij-bazaar
*/

:root {
  --pb-navy: #082a4a;
  --pb-navy-2: #0d3d68;
  --pb-orange: #f58220;
  --pb-orange-dark: #d96508;
  --pb-cream: #fff8ef;
  --pb-sky: #eef7ff;
  --pb-text: #17324d;
  --pb-muted: #64748b;
  --pb-border: #e5eaf0;
  --pb-white: #fff;
  --pb-shadow: 0 14px 40px rgba(8, 42, 74, .1);
  --pb-radius: 18px;
  --pb-container: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--pb-text);
  background: #fff;
  font-family: "Noto Sans Gujarati", "Nirmala UI", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.65;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
button, input, select, textarea { font: inherit; }
.pb-container { width: min(calc(100% - 32px), var(--pb-container)); margin-inline: auto; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.96);
  border-bottom: 1px solid rgba(8,42,74,.08);
  backdrop-filter: blur(12px);
}
.header-inner { min-height: 76px; display: flex; align-items: center; gap: 28px; }
.site-branding { display: flex; align-items: center; gap: 11px; margin-right: auto; }
.brand-mark {
  width: 44px; height: 44px; display: grid; place-items: center;
  border-radius: 13px; color: #fff; background: linear-gradient(145deg, var(--pb-orange), #ffad43);
  box-shadow: 0 7px 18px rgba(245,130,32,.28); font-weight: 900; font-size: 22px;
}
.brand-name { color: var(--pb-navy); font-size: 21px; font-weight: 900; letter-spacing: -.4px; }
.brand-name span { color: var(--pb-orange); }
.brand-tagline { display: block; margin-top: -4px; color: var(--pb-muted); font-size: 11px; font-weight: 600; }
.primary-menu { list-style: none; display: flex; align-items: center; gap: 24px; margin: 0; padding: 0; font-weight: 700; font-size: 14px; }
.primary-menu a:hover, .primary-menu .current-menu-item > a { color: var(--pb-orange); }
.header-actions { display: flex; align-items: center; gap: 10px; }
.language-pill { padding: 8px 10px; border-radius: 9px; background: var(--pb-sky); color: var(--pb-navy); font-size: 12px; font-weight: 800; }
.menu-toggle { display: none; border: 0; padding: 8px; background: transparent; color: var(--pb-navy); font-size: 25px; }

.pb-button {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 10px 19px; border: 0; border-radius: 11px;
  color: #fff; background: var(--pb-orange); font-weight: 800; cursor: pointer;
  box-shadow: 0 8px 20px rgba(245,130,32,.22); transition: .2s ease;
}
.pb-button:hover { color: #fff; background: var(--pb-orange-dark); transform: translateY(-2px); }
.pb-button--navy { background: var(--pb-navy); box-shadow: 0 8px 20px rgba(8,42,74,.18); }
.pb-button--light { color: var(--pb-navy); background: #fff; box-shadow: none; }
.pb-button--outline { color: var(--pb-navy); background: transparent; border: 1px solid var(--pb-border); box-shadow: none; }

.pb-hero {
  position: relative; overflow: hidden; padding: 76px 0 70px;
  background: radial-gradient(circle at 84% 18%, rgba(245,130,32,.2), transparent 24%),
              radial-gradient(circle at 10% 90%, rgba(55,141,210,.18), transparent 30%),
              linear-gradient(130deg, #062847 0%, #0a3b66 58%, #0d4b78 100%);
  color: #fff;
}
.pb-hero::after {
  content: ""; position: absolute; right: -70px; bottom: -120px; width: 430px; height: 430px;
  border: 70px solid rgba(255,255,255,.035); border-radius: 50%;
}
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0,1.45fr) minmax(290px,.55fr); align-items: center; gap: 60px; }
.hero-kicker { display: inline-flex; align-items: center; gap: 8px; padding: 7px 13px; border: 1px solid rgba(255,255,255,.18); border-radius: 99px; background: rgba(255,255,255,.08); font-size: 13px; font-weight: 700; }
.hero-title { max-width: 760px; margin: 20px 0 13px; font-size: clamp(38px,5.4vw,68px); line-height: 1.08; letter-spacing: -1.8px; }
.hero-title em { color: #ff9b3d; font-style: normal; }
.hero-subtitle { max-width: 670px; margin: 0 0 29px; color: #d8e8f5; font-size: 18px; }
.directory-search {
  display: grid; grid-template-columns: 1.3fr .8fr auto; gap: 9px;
  padding: 9px; border-radius: 16px; background: #fff; box-shadow: 0 18px 45px rgba(0,0,0,.2);
}
.directory-search input, .directory-search select {
  min-width: 0; height: 51px; padding: 0 15px; color: var(--pb-text); background: #fff;
  border: 0; border-right: 1px solid var(--pb-border); outline: none;
}
.hero-popular { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; margin-top: 18px; color: #d6e5f2; font-size: 13px; }
.hero-popular a { padding: 5px 10px; border-radius: 20px; background: rgba(255,255,255,.1); }
.hero-card { padding: 28px; border: 1px solid rgba(255,255,255,.16); border-radius: 24px; background: rgba(255,255,255,.1); box-shadow: 0 20px 50px rgba(0,0,0,.14); backdrop-filter: blur(10px); }
.hero-card__icon { width: 58px; height: 58px; display: grid; place-items: center; border-radius: 17px; background: var(--pb-orange); font-size: 28px; }
.hero-card h3 { margin: 20px 0 5px; font-size: 24px; }
.hero-card p { margin: 0 0 20px; color: #dcebf7; }
.hero-stats { display: grid; grid-template-columns: repeat(2,1fr); gap: 12px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.15); }
.hero-stat strong { display: block; color: #fff; font-size: 24px; }
.hero-stat span { color: #bad0e1; font-size: 12px; }

.pb-section { padding: 72px 0; }
.pb-section--soft { background: #f7fafc; }
.pb-section--cream { background: var(--pb-cream); }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 25px; margin-bottom: 30px; }
.section-kicker { margin: 0 0 6px; color: var(--pb-orange); font-size: 13px; font-weight: 900; letter-spacing: 1.4px; text-transform: uppercase; }
.section-title { margin: 0; color: var(--pb-navy); font-size: clamp(28px,3.6vw,42px); line-height: 1.2; letter-spacing: -.8px; }
.section-copy { max-width: 630px; margin: 8px 0 0; color: var(--pb-muted); }
.section-link { flex: 0 0 auto; color: var(--pb-orange-dark); font-weight: 900; }

.category-grid { display: grid; grid-template-columns: repeat(6,1fr); gap: 14px; }
.category-card {
  min-height: 142px; padding: 20px 12px; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 13px;
  border: 1px solid var(--pb-border); border-radius: 16px; text-align: center; background: #fff; transition: .2s ease;
}
.category-card:hover { border-color: rgba(245,130,32,.5); box-shadow: var(--pb-shadow); transform: translateY(-4px); }
.category-icon { width: 53px; height: 53px; display: grid; place-items: center; border-radius: 15px; color: var(--pb-navy); background: var(--pb-sky); font-size: 25px; }
.category-card:nth-child(3n+2) .category-icon { color: #a84b00; background: #fff0df; }
.category-card:nth-child(3n+3) .category-icon { color: #0b7652; background: #e7f8f1; }
.category-name { font-size: 14px; font-weight: 800; line-height: 1.3; }

.listing-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 22px; }
.business-card { position: relative; overflow: hidden; border: 1px solid var(--pb-border); border-radius: var(--pb-radius); background: #fff; box-shadow: 0 8px 25px rgba(8,42,74,.06); transition: .2s ease; }
.business-card:hover { box-shadow: var(--pb-shadow); transform: translateY(-3px); }
.business-card__image { height: 190px; overflow: hidden; background: linear-gradient(135deg,#dceaf5,#f8fbfd); }
.business-card__image img { width: 100%; height: 100%; object-fit: cover; }
.business-card__placeholder { width: 100%; height: 100%; display: grid; place-items: center; color: rgba(8,42,74,.5); font-size: 55px; }
.featured-badge, .offer-badge { position: absolute; top: 14px; left: 14px; padding: 6px 10px; border-radius: 99px; color: #fff; background: var(--pb-orange); font-size: 11px; font-weight: 900; }
.business-card__body { padding: 20px; }
.card-category { margin-bottom: 6px; color: var(--pb-orange-dark); font-size: 12px; font-weight: 900; text-transform: uppercase; }
.business-card h3, .offer-card h3, .job-card h3 { margin: 0 0 7px; color: var(--pb-navy); font-size: 20px; line-height: 1.35; }
.card-location { margin: 0 0 16px; color: var(--pb-muted); font-size: 13px; }
.card-footer { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-top: 15px; border-top: 1px solid var(--pb-border); }
.stars { color: #f7a21b; font-size: 13px; }
.contact-link { color: var(--pb-navy); font-size: 13px; font-weight: 900; }

.offer-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 22px; }
.offer-card { overflow: hidden; border: 1px solid #f3dfca; border-radius: var(--pb-radius); background: #fff; box-shadow: 0 8px 25px rgba(93,55,16,.06); }
.offer-card__image { position: relative; height: 185px; overflow: hidden; background: #ffe8cf; }
.offer-card__image img { width: 100%; height: 100%; object-fit: cover; }
.offer-card__body { padding: 20px; }
.offer-expiry { display: flex; align-items: center; gap: 7px; margin-top: 14px; color: #b45309; font-size: 12px; font-weight: 800; }

.jobs-wrap { padding: 32px; border-radius: 24px; color: #fff; background: var(--pb-navy); }
.jobs-head { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-bottom: 22px; }
.jobs-head h2 { margin: 0; font-size: 31px; }
.job-list { display: grid; gap: 12px; }
.job-card { display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 25px; padding: 19px 21px; border-radius: 14px; color: var(--pb-text); background: #fff; }
.job-card h3 { font-size: 17px; }
.job-company { color: var(--pb-muted); font-size: 13px; }
.job-type { padding: 6px 10px; border-radius: 99px; color: #0b7652; background: #e7f8f1; font-size: 11px; font-weight: 900; }
.job-salary { color: var(--pb-navy); font-size: 14px; font-weight: 900; }

.cta-band { overflow: hidden; position: relative; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 30px; padding: 43px 48px; border-radius: 25px; color: #fff; background: linear-gradient(120deg,var(--pb-orange-dark),var(--pb-orange)); }
.cta-band::after { content: ""; position: absolute; width: 250px; height: 250px; right: 15%; top: -140px; border: 50px solid rgba(255,255,255,.09); border-radius: 50%; }
.cta-band h2 { position: relative; z-index: 1; margin: 0 0 6px; font-size: clamp(27px,4vw,42px); }
.cta-band p { position: relative; z-index: 1; margin: 0; color: #fff2e6; }
.cta-band .pb-button { position: relative; z-index: 1; }

.page-hero { padding: 52px 0; color: #fff; background: linear-gradient(135deg,var(--pb-navy),var(--pb-navy-2)); }
.page-hero h1 { margin: 0 0 8px; font-size: clamp(32px,5vw,52px); }
.page-hero p { max-width: 700px; margin: 0; color: #d5e5f1; }
.archive-layout { display: grid; grid-template-columns: 260px minmax(0,1fr); gap: 35px; padding: 55px 0 75px; }
.filter-panel { height: fit-content; padding: 22px; border: 1px solid var(--pb-border); border-radius: 16px; background: #fff; }
.filter-panel h3 { margin: 0 0 16px; color: var(--pb-navy); }
.filter-panel label { display: block; margin: 12px 0 5px; font-size: 12px; font-weight: 800; }
.filter-panel input, .filter-panel select { width: 100%; height: 44px; padding: 0 11px; border: 1px solid var(--pb-border); border-radius: 9px; background: #fff; }
.filter-panel .pb-button { width: 100%; margin-top: 16px; }
.results-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.results-head h2 { margin: 0; color: var(--pb-navy); }
.pagination { margin-top: 35px; }
.page-numbers { display: inline-grid; place-items: center; min-width: 40px; height: 40px; margin-right: 5px; padding: 0 10px; border-radius: 8px; background: var(--pb-sky); font-weight: 800; }
.page-numbers.current { color: #fff; background: var(--pb-orange); }

.single-business { padding-bottom: 75px; background: #f7fafc; }
.business-cover { height: 330px; background: linear-gradient(135deg,#b8d2e6,#eef6fb); }
.business-cover img { width: 100%; height: 100%; object-fit: cover; }
.business-profile { position: relative; margin-top: -70px; padding: 28px; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 22px; border-radius: 20px; background: #fff; box-shadow: var(--pb-shadow); }
.business-logo { width: 110px; height: 110px; display: grid; place-items: center; overflow: hidden; border: 5px solid #fff; border-radius: 20px; background: var(--pb-sky); color: var(--pb-navy); font-size: 45px; box-shadow: 0 5px 20px rgba(8,42,74,.12); }
.business-logo img { width: 100%; height: 100%; object-fit: cover; }
.business-profile h1 { margin: 0 0 5px; color: var(--pb-navy); font-size: clamp(29px,4vw,43px); line-height: 1.15; }
.profile-actions { display: flex; gap: 10px; }
.business-content-grid { display: grid; grid-template-columns: minmax(0,1fr) 340px; gap: 26px; margin-top: 26px; }
.content-panel { margin-bottom: 22px; padding: 27px; border: 1px solid var(--pb-border); border-radius: 17px; background: #fff; }
.content-panel h2 { margin: 0 0 17px; color: var(--pb-navy); font-size: 22px; }
.detail-list { display: grid; gap: 0; }
.detail-row { display: grid; grid-template-columns: 120px 1fr; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--pb-border); }
.detail-row:last-child { border: 0; }
.detail-row strong { color: var(--pb-navy); font-size: 13px; }
.detail-row span, .detail-row a { color: var(--pb-muted); }
.service-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.service-tag { padding: 7px 11px; border-radius: 99px; color: var(--pb-navy); background: var(--pb-sky); font-size: 12px; font-weight: 700; }
.map-embed iframe { width: 100%; min-height: 260px; border: 0; border-radius: 12px; }
.gallery-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; }
.gallery-grid img { width: 100%; aspect-ratio: 1/1; object-fit: cover; border-radius: 10px; }

.entry-content { padding: 55px 0 75px; }
.entry-content h1, .entry-content h2, .entry-content h3 { color: var(--pb-navy); }
.empty-state { grid-column: 1/-1; padding: 42px; border: 1px dashed #c7d4df; border-radius: 16px; text-align: center; color: var(--pb-muted); background: #fff; }

.site-footer { color: #c5d7e5; background: #061f35; }
.footer-main { display: grid; grid-template-columns: 1.4fr repeat(3,1fr); gap: 45px; padding: 58px 0 44px; }
.footer-brand p { max-width: 350px; color: #9eb4c5; }
.footer-title { margin: 0 0 16px; color: #fff; font-size: 15px; }
.footer-links { list-style: none; margin: 0; padding: 0; }
.footer-links li { margin: 8px 0; }
.footer-links a:hover { color: #ff9b3d; }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; padding: 20px 0; border-top: 1px solid rgba(255,255,255,.09); color: #8fa7b9; font-size: 12px; }
.whatsapp-float { position: fixed; right: 22px; bottom: 22px; z-index: 80; width: 56px; height: 56px; display: grid; place-items: center; border-radius: 50%; color: #fff; background: #25d366; box-shadow: 0 10px 28px rgba(37,211,102,.35); font-size: 26px; font-weight: 900; }

@media (max-width: 980px) {
  .menu-toggle { display: block; }
  .site-navigation { display: none; position: absolute; left: 0; right: 0; top: 76px; padding: 12px 16px 20px; background: #fff; box-shadow: 0 12px 30px rgba(8,42,74,.1); }
  .site-navigation.is-open { display: block; }
  .primary-menu { align-items: stretch; flex-direction: column; gap: 0; }
  .primary-menu a { display: block; padding: 12px 5px; border-bottom: 1px solid var(--pb-border); }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-card { display: none; }
  .category-grid { grid-template-columns: repeat(4,1fr); }
  .listing-grid, .offer-grid { grid-template-columns: repeat(2,1fr); }
  .business-content-grid { grid-template-columns: 1fr; }
  .footer-main { grid-template-columns: repeat(2,1fr); }
}

@media (max-width: 700px) {
  .header-inner { min-height: 68px; }
  .brand-tagline, .language-pill, .header-actions > .pb-button { display: none; }
  .site-navigation { top: 68px; }
  .pb-hero { padding: 54px 0; }
  .hero-title { font-size: 39px; letter-spacing: -1px; }
  .hero-subtitle { font-size: 16px; }
  .directory-search { grid-template-columns: 1fr; }
  .directory-search input, .directory-search select { border-right: 0; border-bottom: 1px solid var(--pb-border); }
  .pb-section { padding: 52px 0; }
  .section-head { align-items: start; flex-direction: column; margin-bottom: 22px; }
  .category-grid { grid-template-columns: repeat(3,1fr); gap: 9px; }
  .category-card { min-height: 118px; padding: 13px 7px; }
  .category-icon { width: 44px; height: 44px; font-size: 21px; }
  .category-name { font-size: 12px; }
  .listing-grid, .offer-grid { grid-template-columns: 1fr; }
  .job-card { grid-template-columns: 1fr auto; gap: 7px; }
  .job-salary { grid-column: 1/-1; }
  .jobs-wrap { padding: 23px 18px; }
  .jobs-head { align-items: start; flex-direction: column; }
  .cta-band { grid-template-columns: 1fr; padding: 32px 24px; }
  .archive-layout { grid-template-columns: 1fr; padding-top: 30px; }
  .business-cover { height: 230px; }
  .business-profile { grid-template-columns: 82px 1fr; padding: 20px; }
  .business-logo { width: 82px; height: 82px; }
  .profile-actions { grid-column: 1/-1; }
  .profile-actions .pb-button { flex: 1; }
  .gallery-grid { grid-template-columns: repeat(2,1fr); }
  .footer-main { grid-template-columns: 1fr; gap: 25px; }
  .footer-bottom { flex-direction: column; }
}

