/*
Theme Name: Haridwar City Landing
Description: Multipage public site for the Haridwar City business directory — a home page, a
             live Browse Directory (search/category-filter/browse approved listings) and
             Business Detail page fed by the haridwar-city-api plugin's public REST endpoints,
             plus normal WordPress Pages (About, Contact, Privacy, ...) for everything else.
Version: 0.1.0
*/

/* ---------- Tokens — same saffron palette as the MAUI app's Colors.xaml ---------- */

:root {
    --paper: #f7f5f2;
    --paper-raised: #ffffff;
    --ink: #241d15;
    --ink-soft: #6b6154;
    --rule: rgba(36, 29, 21, 0.12);
    --primary: #e8730a;
    --primary-dark: #b85a08;
    --shadow: rgba(36, 29, 21, 0.12);
    --success: #1e7e34;
    --error: #b3261e;
}

@media (prefers-color-scheme: dark) {
    :root {
        --paper: #18191a;
        --paper-raised: #232323;
        --ink: #f2ede6;
        --ink-soft: #b3a99a;
        --rule: rgba(242, 237, 230, 0.14);
        --primary: #ffa85c;
        --primary-dark: #ff9433;
        --shadow: rgba(0, 0, 0, 0.5);
    }
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: -apple-system, "Segoe UI", Roboto, sans-serif;
    font-size: 16px;
    line-height: 1.55;
}

img {
    max-width: 100%;
}

a {
    color: inherit;
}

h1, h2, h3 {
    font-weight: 700;
    text-wrap: balance;
    margin: 0;
}

.container {
    max-width: 1040px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ---------- Header / Footer (every page) ---------- */

.hc-header {
    position: sticky;
    top: 0;
    z-index: 20;
    background: color-mix(in srgb, var(--paper) 85%, transparent);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--rule);
}

.hc-header-inner {
    max-width: 1040px;
    margin: 0 auto;
    padding: 16px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.hc-wordmark {
    font-weight: 700;
    font-size: 20px;
    letter-spacing: -0.01em;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
}

.hc-wordmark .mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 8px;
    background: var(--primary);
    color: #fff;
    font-size: 16px;
}

.hc-nav {
    display: flex;
    gap: 20px;
    align-items: center;
    flex-wrap: wrap;
}

.hc-nav a {
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    color: var(--ink-soft);
}

.hc-nav a:hover {
    color: var(--primary);
}

.hc-footer {
    border-top: 1px solid var(--rule);
    padding: 24px 0;
    margin-top: 48px;
}

.hc-footer .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    font-size: 13px;
    color: var(--ink-soft);
}

/* ---------- Buttons ---------- */

.hc-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--primary);
    color: #ffffff;
    font-weight: 700;
    font-size: 15px;
    padding: 12px 22px;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    text-decoration: none;
    box-shadow: 0 6px 16px -4px color-mix(in srgb, var(--primary) 55%, transparent);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.hc-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 22px -5px color-mix(in srgb, var(--primary) 60%, transparent);
    color: #fff;
}

.hc-btn-outline {
    background: transparent;
    color: var(--primary);
    border: 1.5px solid var(--primary);
    box-shadow: none;
}

.hc-btn-outline:hover {
    background: color-mix(in srgb, var(--primary) 10%, transparent);
    color: var(--primary);
}

/* ---------- Hero (home page) ---------- */

.hc-hero {
    padding: 64px 0 56px;
    text-align: center;
}

.hc-eyebrow {
    font-size: 13px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--primary);
    background: color-mix(in srgb, var(--primary) 14%, transparent);
    display: inline-block;
    padding: 6px 14px;
    border-radius: 100px;
    margin-bottom: 20px;
}

.hc-hero h1 {
    font-size: clamp(30px, 5vw, 48px);
    line-height: 1.15;
    max-width: 18ch;
    margin: 0 auto 18px;
}

.hc-hero-sub {
    max-width: 52ch;
    margin: 0 auto 30px;
    font-size: 17px;
    color: var(--ink-soft);
}

.hc-hero-actions {
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
}

.hc-category-chips {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 32px;
}

.hc-category-chips a {
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    color: var(--ink);
    background: var(--paper-raised);
    border: 1px solid var(--rule);
    padding: 8px 16px;
    border-radius: 100px;
    transition: border-color 0.15s ease, color 0.15s ease;
}

.hc-category-chips a:hover {
    border-color: var(--primary);
    color: var(--primary);
}

/* ---------- Generic sections ---------- */

.hc-section {
    padding: 56px 0;
    border-top: 1px solid var(--rule);
}

.hc-section h2 {
    font-size: clamp(24px, 3.2vw, 32px);
    text-align: center;
    margin-bottom: 12px;
}

.hc-section-sub {
    text-align: center;
    max-width: 56ch;
    margin: 0 auto 36px;
    color: var(--ink-soft);
}

.hc-cards-3 {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

@media (max-width: 720px) {
    .hc-cards-3 {
        grid-template-columns: 1fr;
    }
}

.hc-info-card {
    background: var(--paper-raised);
    border: 1px solid var(--rule);
    border-radius: 16px;
    padding: 24px;
}

.hc-info-card .num {
    font-weight: 700;
    font-size: 22px;
    color: var(--primary);
    margin-bottom: 10px;
}

.hc-info-card h3 {
    font-size: 16px;
    margin-bottom: 6px;
}

.hc-info-card p {
    color: var(--ink-soft);
    font-size: 14.5px;
    margin: 0;
}

/* ---------- Directory page ---------- */

.hc-directory-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    margin-bottom: 20px;
}

.hc-search-input {
    flex: 1 1 220px;
    padding: 11px 14px;
    border-radius: 10px;
    border: 1px solid var(--rule);
    background: var(--paper-raised);
    color: var(--ink);
    font-size: 14px;
}

.hc-select {
    padding: 11px 14px;
    border-radius: 10px;
    border: 1px solid var(--rule);
    background: var(--paper-raised);
    color: var(--ink);
    font-size: 14px;
}

.hc-chip-filter {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 24px;
}

.hc-chip-group-title {
    font-size: 12.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--ink-soft);
    margin-bottom: 6px;
}

.hc-chip-group-items {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.hc-chip {
    font-size: 13px;
    font-weight: 600;
    padding: 7px 14px;
    border-radius: 100px;
    border: 1px solid var(--rule);
    background: var(--paper-raised);
    color: var(--ink);
    cursor: pointer;
    user-select: none;
}

.hc-chip.active {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}

.hc-result-count {
    color: var(--ink-soft);
    font-size: 13.5px;
    margin-bottom: 16px;
}

.hc-business-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 18px;
}

.hc-business-card {
    display: block;
    text-decoration: none;
    color: inherit;
    background: var(--paper-raised);
    border: 1px solid var(--rule);
    border-radius: 14px;
    padding: 18px;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.hc-business-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 28px -10px var(--shadow);
}

.hc-business-card h3 {
    font-size: 16px;
    margin-bottom: 6px;
}

.hc-business-card .cats {
    font-size: 12.5px;
    color: var(--primary);
    margin-bottom: 8px;
}

.hc-business-card .addr,
.hc-business-card .phone {
    font-size: 13.5px;
    color: var(--ink-soft);
    margin-bottom: 2px;
}

.hc-empty-state,
.hc-loading-state,
.hc-error-state {
    text-align: center;
    padding: 48px 0;
    color: var(--ink-soft);
    font-size: 14.5px;
}

.hc-error-state {
    color: var(--error);
}

.hc-load-more {
    display: flex;
    justify-content: center;
    margin-top: 28px;
}

/* ---------- Business detail page ---------- */

.hc-business-detail {
    max-width: 640px;
    margin: 0 auto;
    padding: 48px 0 64px;
}

.hc-back-link {
    display: inline-block;
    margin-bottom: 20px;
    font-size: 13.5px;
    font-weight: 600;
    color: var(--ink-soft);
    text-decoration: none;
}

.hc-back-link:hover {
    color: var(--primary);
}

.hc-detail-card {
    background: var(--paper-raised);
    border: 1px solid var(--rule);
    border-radius: 18px;
    padding: 28px;
}

.hc-detail-card h1 {
    font-size: 24px;
    margin-bottom: 6px;
}

.hc-detail-row {
    padding: 14px 0;
    border-top: 1px dashed var(--rule);
}

.hc-detail-row:first-of-type {
    border-top: none;
}

.hc-detail-row .field-label {
    font-size: 11.5px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--ink-soft);
    margin-bottom: 4px;
}

.hc-detail-row .field-value {
    font-size: 15px;
}

/* ---------- Generic WP pages (About, Contact, Privacy, ...) ---------- */

.hc-page-content {
    max-width: 720px;
    margin: 0 auto;
    padding: 48px 24px 64px;
}

.hc-page-content h1 {
    font-size: 30px;
    margin-bottom: 24px;
}

.hc-page-content p {
    margin: 0 0 18px;
    line-height: 1.65;
}

.hc-page-content h2,
.hc-page-content h3 {
    margin: 30px 0 12px;
}

.hc-page-content ul,
.hc-page-content ol {
    margin: 0 0 18px;
    padding-left: 22px;
    line-height: 1.65;
}
