/*
Theme Name: Hello Kakinada
Theme URI: https://hellokakinada.com
Author: Hello Kakinada
Description: Kakinada's local discovery platform – businesses, jobs, events, places & offers.
Version: 1.0.0
License: GNU General Public License v2 or later
Text Domain: hello-kakinada
Tags: directory, listing, local
*/

/* ── CSS Variables ─────────────────────────────── */
:root {
  --hk-primary:       #1a4f8a;
  --hk-primary-dark:  #0f3060;
  --hk-accent:        #f59e0b;
  --hk-accent-glow:   #fbbf24;
  --hk-bg:            #f8fafc;
  --hk-surface:       #ffffff;
  --hk-text:          #1e293b;
  --hk-muted:         #64748b;
  --hk-border:        #e2e8f0;
  --hk-radius:        0.75rem;
  --hk-shadow:        0 4px 24px rgba(0,0,0,0.08);
  --container:        1200px;
}

/* ── Reset & Base ──────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--hk-bg);
  color: var(--hk-text);
  line-height: 1.6;
  font-size: 16px;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--hk-primary); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ── Container ─────────────────────────────────── */
.hk-container { max-width: var(--container); margin: 0 auto; padding: 0 1.25rem; }

/* ── Buttons ───────────────────────────────────── */
.hk-btn {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .75rem 1.5rem; border-radius: .75rem; font-weight: 600;
  font-size: .9rem; cursor: pointer; transition: all .2s; border: none;
  text-decoration: none;
}
.hk-btn-primary { background: var(--hk-primary); color: #fff; }
.hk-btn-primary:hover { background: var(--hk-primary-dark); color: #fff; text-decoration: none; transform: translateY(-1px); }
.hk-btn-outline { background: transparent; color: #fff; border: 2px solid rgba(255,255,255,.4); }
.hk-btn-outline:hover { background: rgba(255,255,255,.1); color: #fff; text-decoration: none; }
.hk-btn-white { background: #fff; color: var(--hk-primary); }
.hk-btn-white:hover { transform: scale(1.03); color: var(--hk-primary); text-decoration: none; }

/* ── Header ────────────────────────────────────── */
.hk-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--hk-border);
  box-shadow: 0 1px 8px rgba(0,0,0,.06);
}
.hk-header-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: .875rem 1.25rem; max-width: var(--container); margin: 0 auto;
}
.hk-logo { display: flex; align-items: center; gap: .5rem; }
.hk-logo-text { font-size: 1.35rem; font-weight: 800; color: var(--hk-primary); letter-spacing: -.02em; }
.hk-logo-dot { color: var(--hk-accent); }
.hk-nav { display: flex; align-items: center; gap: 1.5rem; }
.hk-nav a { font-size: .9rem; font-weight: 500; color: var(--hk-text); padding: .25rem 0; border-bottom: 2px solid transparent; transition: all .2s; }
.hk-nav a:hover, .hk-nav a.active { color: var(--hk-primary); border-color: var(--hk-primary); text-decoration: none; }
.hk-nav-cta { background: var(--hk-primary); color: #fff !important; padding: .5rem 1rem !important; border-radius: .5rem; border: none !important; }
.hk-nav-cta:hover { background: var(--hk-primary-dark) !important; }
.hk-hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; background: none; border: none; padding: .25rem; }
.hk-hamburger span { width: 22px; height: 2px; background: var(--hk-text); border-radius: 2px; transition: all .3s; display: block; }

/* ── Hero ──────────────────────────────────────── */
.hk-hero {
  position: relative; overflow: hidden;
  padding: 5rem 1.25rem 4rem;
  background: linear-gradient(135deg, var(--hk-primary-dark) 0%, var(--hk-primary) 60%, #1e6bb8 100%);
}
.hk-hero-bg {
  position: absolute; inset: 0; z-index: 0;
  background-size: cover; background-position: center;
}
.hk-hero-bg::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(15,48,96,.85) 0%, rgba(26,79,138,.70) 60%, rgba(248,250,252,.95) 100%);
}
.hk-hero-content { position: relative; z-index: 1; max-width: 860px; margin: 0 auto; text-align: center; }
.hk-hero-badge {
  display: inline-flex; align-items: center; gap: .4rem;
  background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.25);
  color: rgba(255,255,255,.9); font-size: .75rem; font-weight: 500;
  padding: .375rem 1rem; border-radius: 999px; margin-bottom: 1.5rem;
  backdrop-filter: blur(8px);
}
.hk-hero h1 {
  font-size: clamp(2.25rem, 6vw, 4.5rem); font-weight: 800;
  color: #fff; line-height: 1.08; letter-spacing: -.03em; margin-bottom: 1rem;
}
.hk-hero h1 span { color: var(--hk-accent); }
.hk-hero p { font-size: 1.1rem; color: rgba(255,255,255,.85); max-width: 600px; margin: 0 auto 2rem; }
.hk-hero-telugu { font-size: .875rem; color: rgba(255,255,255,.6); margin-top: -.5rem; margin-bottom: 1.5rem; }

/* ── Search Bar ────────────────────────────────── */
.hk-search-wrap { max-width: 680px; margin: 0 auto 1.5rem; }
.hk-search {
  display: flex; background: #fff; border-radius: 1rem;
  box-shadow: 0 8px 40px rgba(0,0,0,.2); overflow: hidden;
}
.hk-search input {
  flex: 1; border: none; padding: 1rem 1.25rem; font-size: 1rem;
  outline: none; color: var(--hk-text);
}
.hk-search button {
  background: var(--hk-accent); border: none; padding: 0 1.5rem;
  cursor: pointer; color: #fff; font-weight: 700; font-size: .95rem;
  transition: background .2s; white-space: nowrap;
}
.hk-search button:hover { background: #e08e00; }

/* Trending tags */
.hk-trending { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem; margin-bottom: 2rem; align-items: center; }
.hk-trending span { font-size: .8rem; color: rgba(255,255,255,.8); font-weight: 500; }
.hk-trending a {
  font-size: .8rem; padding: .3rem .85rem; border-radius: 999px;
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.2);
  color: rgba(255,255,255,.9); transition: all .2s;
}
.hk-trending a:hover { background: rgba(255,255,255,.2); text-decoration: none; }

/* Hero buttons */
.hk-hero-btns { display: flex; flex-wrap: wrap; justify-content: center; gap: .75rem; margin-bottom: 3rem; }

/* Stats */
.hk-hero-stats { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.5rem; max-width: 480px; margin: 0 auto; }
.hk-stat-val { font-size: clamp(1.6rem, 4vw, 2.5rem); font-weight: 800; color: #fff; line-height: 1; }
.hk-stat-lbl { font-size: .8rem; color: rgba(255,255,255,.7); margin-top: .25rem; }

/* ── Section Generic ───────────────────────────── */
.hk-section { padding: 3.5rem 0; }
.hk-section-alt { background: #f1f5f9; }
.hk-section-header { text-align: center; margin-bottom: 2rem; }
.hk-section-header h2 { font-size: clamp(1.5rem, 3vw, 2.25rem); font-weight: 800; color: var(--hk-text); letter-spacing: -.02em; }
.hk-section-header p { color: var(--hk-muted); margin-top: .5rem; }
.hk-section-header .hk-tag { display: inline-block; background: rgba(26,79,138,.1); color: var(--hk-primary); font-size: .75rem; font-weight: 600; padding: .3rem .8rem; border-radius: 999px; margin-bottom: .75rem; }

/* ── Category Grid ─────────────────────────────── */
.hk-categories-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 1rem; }
.hk-cat-card {
  display: flex; flex-direction: column; align-items: center; gap: .5rem;
  background: var(--hk-surface); border: 1px solid var(--hk-border);
  border-radius: var(--hk-radius); padding: 1.25rem .75rem;
  cursor: pointer; transition: all .2s; text-decoration: none; color: var(--hk-text);
}
.hk-cat-card:hover { border-color: var(--hk-primary); box-shadow: 0 4px 16px rgba(26,79,138,.12); transform: translateY(-2px); text-decoration: none; color: var(--hk-primary); }
.hk-cat-icon { font-size: 1.75rem; line-height: 1; }
.hk-cat-name { font-size: .8rem; font-weight: 600; text-align: center; }
.hk-cat-count { font-size: .7rem; color: var(--hk-muted); }

/* ── Business Card ─────────────────────────────── */
.hk-grid-3 { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.25rem; }
.hk-business-card {
  background: var(--hk-surface); border: 1px solid var(--hk-border);
  border-radius: var(--hk-radius); overflow: hidden; transition: all .2s;
  display: flex; flex-direction: column;
}
.hk-business-card:hover { box-shadow: var(--hk-shadow); transform: translateY(-3px); }
.hk-card-img { width: 100%; height: 180px; object-fit: cover; background: #e2e8f0; }
.hk-card-body { padding: 1rem; flex: 1; display: flex; flex-direction: column; gap: .4rem; }
.hk-card-title { font-size: 1rem; font-weight: 700; color: var(--hk-text); }
.hk-card-meta { font-size: .8rem; color: var(--hk-muted); display: flex; align-items: center; gap: .35rem; }
.hk-badge { display: inline-block; font-size: .7rem; font-weight: 600; padding: .2rem .6rem; border-radius: 999px; }
.hk-badge-featured { background: rgba(245,158,11,.15); color: #b45309; }
.hk-badge-sponsored { background: rgba(26,79,138,.1); color: var(--hk-primary); }
.hk-stars { color: var(--hk-accent); font-size: .85rem; }
.hk-card-footer { padding: .75rem 1rem; border-top: 1px solid var(--hk-border); display: flex; justify-content: space-between; align-items: center; }
.hk-card-phone { font-size: .85rem; font-weight: 600; color: var(--hk-primary); }

/* ── Job Card ──────────────────────────────────── */
.hk-job-card {
  background: var(--hk-surface); border: 1px solid var(--hk-border);
  border-radius: var(--hk-radius); padding: 1.25rem; transition: all .2s;
  display: flex; gap: 1rem; align-items: flex-start;
}
.hk-job-card:hover { box-shadow: var(--hk-shadow); transform: translateY(-2px); }
.hk-job-logo { width: 48px; height: 48px; border-radius: .5rem; object-fit: cover; background: #e2e8f0; flex-shrink: 0; }
.hk-job-info { flex: 1; }
.hk-job-title { font-size: .95rem; font-weight: 700; }
.hk-job-company { font-size: .8rem; color: var(--hk-muted); }
.hk-job-tags { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .5rem; }
.hk-job-tag { font-size: .7rem; padding: .2rem .6rem; border-radius: .4rem; background: var(--hk-bg); border: 1px solid var(--hk-border); color: var(--hk-muted); }

/* ── Place Card ────────────────────────────────── */
.hk-place-card {
  position: relative; border-radius: var(--hk-radius); overflow: hidden;
  height: 220px; cursor: pointer; transition: transform .2s;
}
.hk-place-card:hover { transform: scale(1.02); }
.hk-place-card img { width: 100%; height: 100%; object-fit: cover; }
.hk-place-card-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.7) 0%, transparent 60%);
}
.hk-place-card-text { position: absolute; bottom: 0; left: 0; right: 0; padding: 1rem; color: #fff; }
.hk-place-card-text h3 { font-size: 1rem; font-weight: 700; }
.hk-place-card-text p { font-size: .8rem; opacity: .85; }

/* ── Emergency ─────────────────────────────────── */
.hk-emergency-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 1rem; }
.hk-emergency-card {
  background: var(--hk-surface); border-radius: var(--hk-radius); padding: 1.25rem;
  border-left: 4px solid var(--hk-primary); display: flex; align-items: center; gap: .75rem;
}
.hk-emergency-card.urgent { border-color: #ef4444; }
.hk-emergency-icon { font-size: 1.75rem; }
.hk-emergency-name { font-weight: 700; font-size: .9rem; }
.hk-emergency-number { font-size: 1.1rem; font-weight: 800; color: var(--hk-primary); }
.hk-emergency-card.urgent .hk-emergency-number { color: #ef4444; }

/* ── CTA Banner ────────────────────────────────── */
.hk-cta {
  background: linear-gradient(135deg, var(--hk-primary-dark), var(--hk-primary));
  padding: 3.5rem 1.25rem; text-align: center; color: #fff;
}
.hk-cta h2 { font-size: clamp(1.75rem, 3vw, 2.5rem); font-weight: 800; margin-bottom: .75rem; }
.hk-cta p { opacity: .85; margin-bottom: 2rem; max-width: 560px; margin-left: auto; margin-right: auto; }
.hk-cta-btns { display: flex; flex-wrap: wrap; justify-content: center; gap: .75rem; }

/* ── Footer ────────────────────────────────────── */
.hk-footer { background: #0f172a; color: #94a3b8; padding: 3rem 0 1.5rem; }
.hk-footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 2rem; margin-bottom: 2rem; }
.hk-footer-brand .hk-logo-text { font-size: 1.25rem; color: #fff; }
.hk-footer-brand p { margin-top: .75rem; font-size: .85rem; line-height: 1.7; }
.hk-footer h4 { font-size: .85rem; font-weight: 700; color: #fff; text-transform: uppercase; letter-spacing: .05em; margin-bottom: 1rem; }
.hk-footer ul { list-style: none; display: flex; flex-direction: column; gap: .5rem; }
.hk-footer ul li a { font-size: .85rem; color: #94a3b8; transition: color .2s; }
.hk-footer ul li a:hover { color: #fff; text-decoration: none; }
.hk-footer-bottom { border-top: 1px solid #1e293b; padding-top: 1.5rem; display: flex; justify-content: space-between; align-items: center; font-size: .8rem; flex-wrap: wrap; gap: .5rem; }
.hk-footer-bottom a { color: #94a3b8; }

/* ── Bottom Nav (Mobile) ───────────────────────── */
.hk-bottom-nav {
  display: none; position: fixed; bottom: 0; left: 0; right: 0; z-index: 90;
  background: rgba(255,255,255,.95); backdrop-filter: blur(12px);
  border-top: 1px solid var(--hk-border);
  padding: .5rem 0; padding-bottom: env(safe-area-inset-bottom, .5rem);
}
.hk-bottom-nav-inner { display: flex; justify-content: space-around; max-width: 480px; margin: 0 auto; }
.hk-bottom-nav-item { display: flex; flex-direction: column; align-items: center; gap: .15rem; color: var(--hk-muted); font-size: .65rem; font-weight: 500; text-decoration: none; padding: .3rem .5rem; border-radius: .5rem; transition: all .2s; }
.hk-bottom-nav-item:hover, .hk-bottom-nav-item.active { color: var(--hk-primary); text-decoration: none; }
.hk-bottom-nav-item svg { width: 20px; height: 20px; }

/* ── Single Business Page ──────────────────────── */
.hk-single-hero { height: 280px; background: #e2e8f0; position: relative; overflow: hidden; }
.hk-single-hero img { width: 100%; height: 100%; object-fit: cover; }
.hk-single-body { max-width: var(--container); margin: 0 auto; padding: 2rem 1.25rem; display: grid; grid-template-columns: 1fr 340px; gap: 2rem; align-items: start; }
.hk-single-info-card { background: var(--hk-surface); border: 1px solid var(--hk-border); border-radius: var(--hk-radius); padding: 1.5rem; position: sticky; top: 80px; }
.hk-single-logo { width: 72px; height: 72px; border-radius: .75rem; object-fit: cover; border: 3px solid #fff; box-shadow: 0 2px 12px rgba(0,0,0,.1); margin-top: -2rem; margin-bottom: 1rem; background: #fff; }
.hk-info-row { display: flex; align-items: flex-start; gap: .6rem; margin-bottom: .75rem; font-size: .875rem; }
.hk-info-row svg { width: 16px; height: 16px; flex-shrink: 0; margin-top: .1rem; color: var(--hk-primary); }

/* ── Archive / Listing Page ────────────────────── */
.hk-archive-header { background: var(--hk-primary); color: #fff; padding: 2.5rem 1.25rem; }
.hk-archive-header h1 { font-size: clamp(1.5rem, 3vw, 2.25rem); font-weight: 800; }
.hk-archive-header p { opacity: .85; font-size: .9rem; margin-top: .3rem; }
.hk-archive-filters { background: var(--hk-surface); border-bottom: 1px solid var(--hk-border); padding: .75rem 1.25rem; display: flex; gap: .5rem; flex-wrap: wrap; align-items: center; max-width: var(--container); margin: 0 auto; }
.hk-filter-btn { padding: .4rem .9rem; border-radius: 999px; border: 1px solid var(--hk-border); background: transparent; cursor: pointer; font-size: .8rem; font-weight: 500; transition: all .2s; }
.hk-filter-btn:hover, .hk-filter-btn.active { background: var(--hk-primary); color: #fff; border-color: var(--hk-primary); }
.hk-archive-body { max-width: var(--container); margin: 2rem auto; padding: 0 1.25rem; }

/* ── Forms ─────────────────────────────────────── */
.hk-form-wrap { max-width: 760px; margin: 2rem auto; padding: 0 1.25rem; }
.hk-form-card { background: var(--hk-surface); border: 1px solid var(--hk-border); border-radius: var(--hk-radius); padding: 2rem; }
.hk-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.hk-field { display: flex; flex-direction: column; gap: .35rem; }
.hk-field label { font-size: .85rem; font-weight: 600; }
.hk-field input, .hk-field textarea, .hk-field select {
  padding: .65rem .9rem; border: 1px solid var(--hk-border); border-radius: .5rem;
  font-size: .9rem; outline: none; transition: border-color .2s;
}
.hk-field input:focus, .hk-field textarea:focus, .hk-field select:focus { border-color: var(--hk-primary); }
.hk-field-full { grid-column: 1 / -1; }

/* ── Pagination ────────────────────────────────── */
.hk-pagination { display: flex; justify-content: center; gap: .5rem; margin-top: 2rem; }
.hk-pagination a, .hk-pagination span {
  width: 38px; height: 38px; display: flex; align-items: center; justify-content: center;
  border-radius: .5rem; border: 1px solid var(--hk-border); font-size: .875rem;
  font-weight: 500; transition: all .2s;
}
.hk-pagination a:hover, .hk-pagination .current { background: var(--hk-primary); color: #fff; border-color: var(--hk-primary); text-decoration: none; }

/* ── Map Section ───────────────────────────────── */
.hk-map-embed { border-radius: var(--hk-radius); overflow: hidden; border: 1px solid var(--hk-border); }
.hk-map-embed iframe { width: 100%; height: 360px; border: none; display: block; }

/* ── Offers ────────────────────────────────────── */
.hk-offer-card {
  background: linear-gradient(135deg, var(--hk-primary) 0%, #1e6bb8 100%);
  color: #fff; border-radius: var(--hk-radius); padding: 1.5rem;
  position: relative; overflow: hidden;
}
.hk-offer-card::after {
  content: ''; position: absolute; right: -20px; top: -20px;
  width: 100px; height: 100px; border-radius: 50%;
  background: rgba(255,255,255,.08);
}
.hk-offer-card h3 { font-size: 1rem; font-weight: 700; margin-bottom: .35rem; }
.hk-offer-card p { font-size: .8rem; opacity: .85; }
.hk-offer-code { margin-top: .75rem; background: rgba(255,255,255,.15); border: 1px dashed rgba(255,255,255,.4); border-radius: .5rem; padding: .4rem .8rem; font-size: .8rem; font-weight: 700; letter-spacing: .08em; display: inline-block; }

/* ── Notices / Alerts ──────────────────────────── */
.hk-notice { padding: 1rem 1.25rem; border-radius: .5rem; margin-bottom: 1rem; font-size: .875rem; }
.hk-notice-info { background: #eff6ff; border-left: 4px solid var(--hk-primary); color: #1e40af; }
.hk-notice-success { background: #f0fdf4; border-left: 4px solid #16a34a; color: #166534; }
.hk-notice-error { background: #fef2f2; border-left: 4px solid #ef4444; color: #991b1b; }

/* ── Responsive ────────────────────────────────── */
@media (max-width: 768px) {
  .hk-nav { display: none; }
  .hk-nav.open { display: flex; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0; background: #fff; padding: 1rem; border-bottom: 1px solid var(--hk-border); box-shadow: var(--hk-shadow); z-index: 99; }
  .hk-hamburger { display: flex; }
  .hk-header-inner { position: relative; }
  .hk-footer-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .hk-single-body { grid-template-columns: 1fr; }
  .hk-single-info-card { position: static; }
  .hk-form-grid { grid-template-columns: 1fr; }
  .hk-bottom-nav { display: block; }
  body { padding-bottom: 70px; }
}
@media (max-width: 480px) {
  .hk-hero { padding: 3.5rem 1rem 3rem; }
  .hk-categories-grid { grid-template-columns: repeat(3, 1fr); }
}
