/*
Theme Name: Nandakine Directory
Theme URI: https://nandakine.com
Author: Nandakine
Description: Clean Justdial-style directory portal for local services and Google Ads lead capture.
Version: 1.0.0
Requires at least: 5.0
Tested up to: 6.7
*/

:root {
  --nk-primary: #0072ce;
  --nk-primary-dark: #005bb5;
  --nk-slate: #8da4b4;
  --nk-dark: #1a1a1a;
  --nk-light: #f8fafc;
  --nk-border: #e2e8f0;
  --nk-whatsapp: #25d366;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

body {
  background-color: var(--nk-light);
  color: var(--nk-dark);
  line-height: 1.6;
}

a {
  text-decoration: none;
  color: inherit;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
}

/* Header & Top Bar */
.nk-header {
  background: #ffffff;
  border-bottom: 1px solid var(--nk-border);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.03);
}

.nk-top-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  gap: 20px;
  flex-wrap: wrap;
}

.nk-brand-block {
  display: flex;
  flex-direction: column;
}

.nk-brand-block .custom-logo {
  max-height: 52px;
  width: auto;
  object-fit: contain;
}

.nk-brand-fallback {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nk-brand-fallback h1 {
  font-size: 26px;
  font-weight: 800;
  color: var(--nk-dark);
  letter-spacing: -0.5px;
}

.nk-tagline {
  font-size: 11px;
  color: #64748b;
  font-weight: 600;
  letter-spacing: 0.3px;
  margin-top: 2px;
}

/* Search Bar (Justdial Style) */
.nk-search-wrapper {
  flex: 1;
  max-width: 580px;
}

.nk-search-form {
  display: flex;
  background: #ffffff;
  border: 1.5px solid var(--nk-border);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

.nk-search-city-select {
  border: none;
  background: #f1f5f9;
  padding: 10px 14px;
  font-size: 13px;
  font-weight: 600;
  color: #334155;
  outline: none;
  border-right: 1px solid var(--nk-border);
}

.nk-search-input {
  border: none;
  padding: 10px 14px;
  font-size: 14px;
  width: 100%;
  outline: none;
}

.nk-search-btn {
  background: var(--nk-primary);
  color: #ffffff;
  border: none;
  padding: 0 22px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}

.nk-search-btn:hover {
  background: var(--nk-primary-dark);
}

/* Hero Slider */
.nk-slider-wrapper {
  margin: 20px 0;
  border-radius: 12px;
  overflow: hidden;
  background: #ffffff;
  border: 1px solid var(--nk-border);
}

.nk-slides {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.nk-slides::-webkit-scrollbar {
  display: none;
}

.nk-slide {
  flex: 0 0 100%;
  scroll-snap-align: start;
  min-height: 200px;
  background: linear-gradient(135deg, #0072ce 0%, #004c8c 100%);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 30px 40px;
}

.nk-slide-content h2 {
  font-size: 26px;
  margin-bottom: 6px;
}

.nk-slide-content p {
  font-size: 15px;
  color: #e2e8f0;
  max-width: 520px;
  margin-bottom: 16px;
}

.nk-slide-btn {
  display: inline-block;
  background: #ffffff;
  color: var(--nk-primary);
  font-weight: 700;
  padding: 9px 20px;
  border-radius: 6px;
  font-size: 14px;
}

/* Justdial Style Category Grid */
.nk-section-card {
  background: #ffffff;
  border: 1px solid var(--nk-border);
  border-radius: 12px;
  padding: 24px 20px;
  margin-bottom: 24px;
}

.nk-section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
}

.nk-section-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--nk-dark);
}

.nk-cat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 16px;
  text-align: center;
}

.nk-cat-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 18px 10px;
  background: #ffffff;
  border: 1px solid #edf2f7;
  border-radius: 12px;
  transition: all 0.2s ease-in-out;
}

.nk-cat-card:hover {
  border-color: var(--nk-primary);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 114, 206, 0.08);
}

.nk-cat-icon-box {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  background: #eff6ff;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
  font-size: 24px;
  color: var(--nk-primary);
}

.nk-cat-name {
  font-size: 13px;
  font-weight: 600;
  color: #334155;
}

/* City Filter Tabs */
.nk-city-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.nk-city-tab {
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  background: #f1f5f9;
  color: #475569;
  border: 1px solid var(--nk-border);
}

.nk-city-tab.active,
.nk-city-tab:hover {
  background: var(--nk-primary);
  color: #ffffff;
  border-color: var(--nk-primary);
}

/* Listing Grid */
.nk-listing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.nk-post-card {
  background: #ffffff;
  border: 1px solid var(--nk-border);
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.nk-post-thumb-wrapper {
  height: 180px;
  width: 100%;
  background: #e2e8f0;
  overflow: hidden;
}

.nk-post-thumb-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.nk-post-body {
  padding: 16px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.nk-badge-cat {
  display: inline-block;
  background: #e0f2fe;
  color: var(--nk-primary);
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
}

.nk-badge-city {
  display: inline-block;
  background: #f1f5f9;
  color: #475569;
  font-size: 11px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 4px;
  margin-left: 4px;
}

.nk-post-title {
  font-size: 16px;
  font-weight: 700;
  margin: 10px 0 6px 0;
  color: var(--nk-dark);
}

/* Single Listing View (Google Ads Landing Setup) */
.nk-single-layout {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 25px;
  margin: 25px 0 40px;
}

@media (max-width: 820px) {
  .nk-single-layout {
    grid-template-columns: 1fr;
  }
}

.nk-lead-box {
  background: #ffffff;
  border-radius: 12px;
  border: 1px solid var(--nk-border);
  padding: 24px;
  position: sticky;
  top: 90px;
  height: fit-content;
}

.nk-cta-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 12px 16px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 15px;
  margin-bottom: 12px;
}

.nk-btn-call {
  background: var(--nk-primary);
  color: #ffffff;
}

.nk-btn-whatsapp {
  background: var(--nk-whatsapp);
  color: #ffffff;
}

/* Footer & Bottom Menus */
.nk-footer {
  background: var(--nk-dark);
  color: #cbd5e1;
  padding: 45px 0 25px;
  margin-top: 40px;
}

.nk-footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 30px;
  margin-bottom: 30px;
}

.nk-footer-col h4 {
  color: #ffffff;
  font-size: 16px;
  margin-bottom: 14px;
}

.nk-footer-menu {
  list-style: none;
}

.nk-footer-menu li {
  margin-bottom: 8px;
}

.nk-footer-menu a {
  color: #94a3b8;
  font-size: 14px;
  transition: color 0.2s;
}

.nk-footer-menu a:hover {
  color: #ffffff;
}

.nk-footer-bottom {
  border-top: 1px solid #334155;
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 13px;
  color: #64748b;
}