/*
Theme Name: Haridwar City Site
Theme URI: https://haridwarcity.com
Description: Public website of Haridwar City: server-rendered business, place and bhakti pages with clean URLs and structured data, styled like the Haridwar City app. Reads the haridwar-city-api plugin's public hc/v1 endpoints in-process.
Version: 2.0.0
Author: Indian Admin
Text Domain: haridwar-city-site
*/

/* ---------- design tokens (same palette as the app) ---------- */
:root {
	--accent: #ff7a1a;
	--accent-dark: #e0610a;
	--accent-light: #ff9d4d;
	--accent-tint: #fff0e3;
	--primary: #0e6b82;
	--primary-dark: #0a5367;
	--primary-tint: #e3f1f5;
	--text: #222b30;
	--muted: #66737c;
	--line: #e3e7ea;
	--card: #ffffff;
	--bg: #f5f5f5;
	--bg-night: #f8f3e1;
	--heading: #444444;
	--wa: #25d366;
	--sms: #1e90ff;
	--mail: #ea4335;
	--radius: 18px;
	--shadow: 0 6px 20px rgba(20, 40, 50, 0.08);
	--shadow-sm: 0 2px 8px rgba(20, 40, 50, 0.08);
	--wrap: 1120px;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
	margin: 0;
	font-family: "Noto Sans Devanagari", "Noto Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	font-size: 16px;
	line-height: 1.6;
	color: var(--text);
	background: var(--bg);
	-webkit-font-smoothing: antialiased;
}
html.hc-night body { background: var(--bg-night); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { line-height: 1.3; margin: 0 0 .5em; color: var(--heading); }
h1 { font-size: clamp(1.45rem, 4.2vw, 2.1rem); font-weight: 800; }
h1 small { display: block; font-size: .55em; font-weight: 600; color: var(--muted); margin-top: 2px; }
h2 { font-size: clamp(1.15rem, 3vw, 1.4rem); font-weight: 800; }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; list-style: none; }
.hc-ic { vertical-align: -4px; flex: none; }
.screen-reader-text { position: absolute; left: -9999px; }
.hc-skip { position: absolute; left: -9999px; }
.hc-skip:focus { left: 12px; top: 12px; z-index: 100; background: #fff; padding: 8px 12px; border-radius: 8px; }

.hc-wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
.hc-main { min-height: 60vh; padding-bottom: 84px; }
.hc-block { margin-top: 28px; }
.hc-muted { color: var(--muted); }
.hc-empty { padding: 28px 12px; text-align: center; color: var(--muted); }
.hc-lead { color: var(--muted); font-size: 1.02rem; }
.hc-heart { color: #e53935; }

/* ---------- buttons & chips ---------- */
.hc-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	padding: 12px 20px; border-radius: 14px; border: 2px solid var(--accent);
	background: var(--accent); color: #fff; font: inherit; font-weight: 800; cursor: pointer; line-height: 1.2;
}
.hc-btn:hover { background: var(--accent-dark); border-color: var(--accent-dark); text-decoration: none; }
.hc-btn-sm { padding: 8px 16px; font-size: .9rem; border-radius: 12px; }
.hc-btn-block { display: flex; width: 100%; margin-top: 10px; }
.hc-btn-light { background: #fff; color: var(--accent-dark); border-color: #fff; }
.hc-btn-light:hover { background: #fff7ef; border-color: #fff7ef; }
.hc-btn-ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .85); }
.hc-btn-ghost:hover { background: rgba(255, 255, 255, .15); border-color: #fff; }
.hc-btn-outline { background: transparent; color: var(--accent-dark); border-color: var(--accent); }
.hc-btn-outline:hover { background: var(--accent-tint); }

.hc-chip {
	display: inline-block; padding: 3px 12px; border-radius: 999px; font-size: .78rem; font-weight: 800;
	background: var(--accent-tint); color: var(--accent-dark);
}
.hc-chip-light { background: rgba(255, 255, 255, .92); }
.hc-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.hc-chip-link {
	display: inline-block; padding: 7px 14px; border-radius: 999px; background: #fff; border: 1px solid var(--line);
	color: var(--text); font-size: .88rem; font-weight: 600;
}
.hc-chip-link:hover { border-color: var(--accent); color: var(--accent-dark); text-decoration: none; }
.hc-chip-link.is-on, .hc-chip-strong { background: var(--primary); border-color: var(--primary); color: #fff; }

/* ---------- top bar ---------- */
.hc-top { position: sticky; top: 0; z-index: 50; background: #fff; box-shadow: var(--shadow-sm); }
.hc-top-inner { max-width: var(--wrap); margin: 0 auto; padding: 8px 16px; display: flex; align-items: center; gap: 16px; }
.hc-brand img { height: 40px; width: auto; }
.hc-nav { display: none; margin-left: 12px; gap: 4px; flex: 1; }
.hc-nav a { padding: 8px 12px; border-radius: 12px; color: var(--text); font-weight: 700; font-size: .93rem; }
.hc-nav a span { color: var(--muted); font-weight: 600; font-size: .8em; }
.hc-nav a:hover, .hc-nav a.is-active { background: var(--accent-tint); color: var(--accent-dark); text-decoration: none; }
.hc-top-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.hc-icon-btn { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; color: var(--primary); background: var(--primary-tint); }

/* ---------- bottom navigation (phones) ---------- */
.hc-bottom {
	position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; display: flex; background: #fff;
	border-top-left-radius: 22px; border-top-right-radius: 22px; box-shadow: 0 -4px 18px rgba(20, 40, 50, .12);
	padding: 6px 6px calc(6px + env(safe-area-inset-bottom));
}
.hc-bottom a { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 6px 2px; border-radius: 14px; color: var(--muted); font-size: .72rem; font-weight: 700; }
.hc-bottom a.is-active { color: var(--primary); background: var(--primary-tint); }
.hc-bottom a:hover { text-decoration: none; }

/* ---------- hero ---------- */
.hc-hero {
	background: linear-gradient(135deg, var(--accent-dark), var(--accent) 55%, var(--accent-light));
	color: #fff; padding: 34px 0 40px; border-bottom-left-radius: 32px; border-bottom-right-radius: 32px;
}
.hc-hero h1 { color: #fff; margin-bottom: .3em; }
.hc-hero-sub { color: rgba(255, 255, 255, .95); max-width: 640px; }
.hc-eyebrow { display: inline-block; font-size: .8rem; font-weight: 800; letter-spacing: .2px; background: rgba(255, 255, 255, .2); padding: 4px 12px; border-radius: 999px; margin-bottom: 12px; }
.hc-hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }

.hc-search {
	display: flex; align-items: center; gap: 10px; background: #fff; border-radius: 16px; padding: 6px 6px 6px 16px;
	box-shadow: var(--shadow); color: var(--muted); max-width: 640px; margin-top: 16px;
}
.hc-search input { flex: 1; min-width: 0; border: 0; outline: 0; font: inherit; padding: 10px 0; background: transparent; color: var(--text); }
.hc-search button { border: 0; background: var(--accent); color: #fff; font: inherit; font-weight: 800; padding: 10px 18px; border-radius: 12px; cursor: pointer; }

/* ---------- page head ---------- */
.hc-pagehead { padding-top: 18px; }
.hc-crumbs ol { display: flex; flex-wrap: wrap; gap: 4px 0; font-size: .85rem; color: var(--muted); padding: 0; margin: 0 0 8px; list-style: none; }
.hc-crumbs li + li::before { content: "›"; margin: 0 8px; color: #aab4ba; }
.hc-crumbs a { color: var(--muted); }

/* ---------- sections ---------- */
.hc-sec-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.hc-sec-head h2 { margin: 0; padding-left: 12px; border-left: 4px solid var(--accent); }
.hc-sec-head a { font-weight: 800; font-size: .9rem; white-space: nowrap; }

.hc-grid { display: grid; gap: 14px; }
.hc-grid-types { grid-template-columns: repeat(2, 1fr); }
.hc-grid-biz { grid-template-columns: 1fr; }
.hc-grid-places { grid-template-columns: 1fr; }
.hc-grid-devo { grid-template-columns: repeat(2, 1fr); }
.hc-grid-codes { grid-template-columns: repeat(2, 1fr); }

.hc-type {
	display: block; background: var(--card); border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow-sm);
	border: 1px solid transparent; color: var(--text);
}
.hc-type:hover { border-color: var(--accent); text-decoration: none; transform: translateY(-1px); }
.hc-type b { display: block; font-weight: 800; line-height: 1.3; }
.hc-type span { color: var(--muted); font-size: .85rem; }

/* alma */
.hc-alm { margin-top: -22px; position: relative; z-index: 2; }
.hc-alm-card { display: grid; gap: 8px; grid-template-columns: repeat(3, 1fr); background: #fff; border-radius: var(--radius); padding: 14px 16px; box-shadow: var(--shadow); }
.hc-alm-card div { display: flex; flex-direction: column; }
.hc-alm-card b { font-size: .82rem; color: var(--muted); }
.hc-alm-card span { font-weight: 800; font-size: .92rem; }

/* sponsors */
.hc-sponsors { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 6px; }
.hc-sponsors a { position: relative; flex: 0 0 min(86%, 420px); scroll-snap-align: start; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.hc-sponsors img { width: 100%; aspect-ratio: 2 / 1; object-fit: cover; }
.hc-sponsor-tag { position: absolute; left: 10px; top: 10px; background: rgba(14, 107, 130, .92); color: #fff; font-size: .72rem; font-weight: 800; padding: 3px 10px; border-radius: 999px; }

/* ---------- business card (teal, like the app) ---------- */
.hc-bcard {
	position: relative; color: #fff; padding: 18px; border-radius: var(--radius);
	background: linear-gradient(135deg, var(--primary), var(--primary-dark)); box-shadow: var(--shadow);
	display: flex; flex-direction: column; min-height: 168px;
}
.hc-bcard-link { position: absolute; inset: 0; z-index: 1; border-radius: var(--radius); }
.hc-bcard h3 { color: #fff; font-size: 1.12rem; font-weight: 800; margin: 0; }
.hc-bcard-cat { color: rgba(255, 255, 255, .8); font-size: .82rem; margin-top: 2px; }
.hc-bcard-lines { margin: 12px 0; border-top: 1px solid rgba(255, 255, 255, .25); padding-top: 10px; display: grid; gap: 4px; font-size: .92rem; }
.hc-bcard-lines li { display: flex; gap: 8px; align-items: flex-start; }
.hc-bcard-lines .hc-ic { margin-top: 3px; opacity: .85; }
.hc-bcard-more { margin-top: auto; display: inline-flex; align-items: center; gap: 4px; font-weight: 800; font-size: .88rem;
	border: 1.5px solid #fff; border-radius: 999px; padding: 6px 14px; align-self: flex-start; }

/* the old directory's card extras: "see number" button and the business's own links */
.hc-bcard-contact { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; gap: 8px; margin-top: auto; padding-top: 4px; }
.hc-appbtn {
	display: inline-flex; align-items: center; gap: 6px; background: var(--accent); color: #fff; font-size: .82rem; font-weight: 800;
	padding: 9px 16px; border-radius: 999px; text-align: center; line-height: 1.25;
}
.hc-appbtn:hover { background: var(--accent-dark); text-decoration: none; }
.hc-lpills { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.hc-lpill { background: #fff; color: var(--primary-dark); font-size: .8rem; font-weight: 800; padding: 6px 12px; border-radius: 999px; }
.hc-lpill:hover { text-decoration: none; background: var(--accent-tint); color: var(--accent-dark); }
.hc-bcard-lines { margin-bottom: 14px; }

/* ---------- place & devotion cards ---------- */
.hc-pcard { position: relative; background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; }
.hc-pcard-link, .hc-dcard-link { position: absolute; inset: 0; z-index: 1; }
.hc-pcard-img { aspect-ratio: 16 / 10; background: #dfe6e9; }
.hc-pcard-img img { width: 100%; height: 100%; object-fit: cover; }
.hc-pcard-body { padding: 14px 16px 16px; }
.hc-pcard h3 { font-size: 1.02rem; margin: 8px 0 4px; font-weight: 800; }
.hc-pcard p { color: var(--muted); font-size: .9rem; margin: 0; }

.hc-dcard { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 5; background: #31596a center / cover no-repeat; box-shadow: var(--shadow); }
.hc-dcard-shade { position: absolute; inset: 0; background: linear-gradient(to top, rgba(0, 0, 0, .78), rgba(0, 0, 0, .05) 60%); }
.hc-dcard-text { position: absolute; left: 0; right: 0; bottom: 0; padding: 12px; }
.hc-dcard h3 { color: #fff; font-size: .95rem; margin: 6px 0 0; font-weight: 800; }

/* ---------- full types list ---------- */
.hc-types-full { display: grid; gap: 14px; grid-template-columns: 1fr; }
.hc-typebox { background: #fff; border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow-sm); }
.hc-typebox h2 { margin-bottom: 10px; font-size: 1.1rem; }
.hc-typebox h2 small { color: var(--muted); font-weight: 600; margin-left: 6px; }
.hc-typebox ul { display: flex; flex-wrap: wrap; gap: 6px 8px; }
.hc-typebox li a { display: inline-block; padding: 5px 12px; background: var(--primary-tint); color: var(--primary-dark); border-radius: 999px; font-size: .85rem; font-weight: 700; }

/* ---------- business detail ---------- */
.hc-biz-head { background: #fff; border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow-sm); }
.hc-biz-head h1 { margin-bottom: 10px; }
.hc-biz-tags { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.hc-claim { padding: 4px 12px; border-radius: 999px; font-size: .8rem; font-weight: 800; }
.hc-claim.is-claimed { background: var(--primary-tint); color: var(--primary); }
.hc-claim.is-unclaimed { background: var(--accent-tint); color: var(--accent-dark); }
.hc-claim-note { margin: 12px 0 0; font-size: .92rem; color: var(--muted); }
.hc-biz-grid { display: grid; gap: 16px; margin-top: 16px; grid-template-columns: 1fr; }
.hc-card { background: #fff; border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow-sm); margin-bottom: 16px; }
.hc-card-title { font-size: 1.05rem; }
.hc-info + .hc-info { margin-top: 14px; }
.hc-info h2 { font-size: .85rem; color: var(--primary); margin: 0 0 2px; font-weight: 800; }
.hc-info p { margin: 0; }
.hc-phone { font-weight: 800; letter-spacing: .3px; }
.hc-linkrow { display: flex; flex-wrap: wrap; gap: 8px; }
.hc-linkpill { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 999px; background: var(--primary-tint); color: var(--primary-dark); font-weight: 700; font-size: .9rem; }
.hc-appbox p { color: var(--muted); font-size: .92rem; }

.hc-contact { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 8px; }
.hc-cbtn { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 13px 10px; border-radius: 14px; font-weight: 800; color: #fff; border: 0; }
.hc-cbtn:hover { text-decoration: none; filter: brightness(.95); }
.hc-call { background: var(--accent); }
.hc-wa { background: var(--wa); }
.hc-sms { background: var(--sms); }
.hc-mail { background: var(--mail); }
.hc-cbtn.is-locked { opacity: .55; }
.hc-contact-note { font-size: .86rem; color: var(--muted); margin: 6px 2px 18px; }
.hc-contact-note.is-hidden { display: none; }

/* ---------- places & bhakti pages ---------- */
.hc-place-hero img, .hc-place-night img { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow); aspect-ratio: 16 / 9; object-fit: cover; }
.hc-place header, .hc-devo-head { margin: 16px 0; }
.hc-place-night { margin: 22px 0; }
.hc-place-night figcaption { color: var(--muted); font-size: .86rem; margin-top: 6px; }
.hc-prose, .hc-editor { background: #fff; border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow-sm); margin-bottom: 18px; }
.hc-editor p, .hc-prose p { margin-bottom: .9em; }
.hc-editor img { border-radius: 12px; margin: 10px auto; }
.hc-editor h2, .hc-editor h3 { margin-top: 1.1em; }

.hc-devo-head img { width: 100%; max-width: 560px; aspect-ratio: 16 / 10; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow); margin: 0 auto 14px; }
.hc-devo-head { text-align: center; }
.hc-reader-bar { position: sticky; top: 60px; z-index: 20; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 14px; background: #fff; padding: 10px 14px; border-radius: 16px; box-shadow: var(--shadow-sm); margin-bottom: 14px; }
.hc-reader-bar label { font-weight: 700; color: var(--primary); font-size: .9rem; display: flex; align-items: center; gap: 8px; }
.hc-reader-bar input[type=range] { accent-color: var(--primary); }

/* the fixed reading rule for editor text (same as the app):
   H1 1.25x  H2 1.15x  H3 alone = section chip, in a run = verse line  p 1x  italic p = meaning card */
.hc-reader { background: #fff; border-radius: 22px; padding: 22px 16px 10px; box-shadow: var(--shadow); line-height: 1.7; }
.hc-reader h1 { font-size: 1.25em; margin: 0 0 2px; color: inherit; }
.hc-reader h2 { font-size: 1.15em; margin: 0 0 2px; color: inherit; }
.hc-reader h3 { font-size: 1.05em; margin: 0; color: inherit; }
.hc-reader h3.hc-sec {
	display: flex; align-items: center; gap: 12px; margin: 18px 0; font-size: .95em; color: var(--accent-dark); text-align: center;
}
.hc-reader h3.hc-sec::before, .hc-reader h3.hc-sec::after { content: ""; flex: 1; height: 2px; border-radius: 2px; background: linear-gradient(90deg, rgba(255, 122, 26, 0), var(--accent)); }
.hc-reader h3.hc-sec::after { transform: scaleX(-1); }
.hc-reader h3.hc-sec span, .hc-reader h3.hc-sec strong { background: var(--accent-tint); color: var(--accent-dark) !important; padding: 5px 16px; border-radius: 999px; }
.hc-reader p { margin: 0 0 4px; }
.hc-reader p.hc-mean, .hc-reader p:has(> em:only-child) {
	background: #fff7ec; border-radius: 14px; padding: 11px 14px; margin: 10px 0 20px; font-size: .88em; color: #6a5848; line-height: 1.6;
}
.hc-reader em, .hc-reader i { font-style: normal; }
.hc-reader strong, .hc-reader b { font-weight: 800; }

/* ---------- news / codes ---------- */
.hc-news { display: grid; gap: 10px; }
.hc-news a { display: block; background: #fff; border-radius: 16px; padding: 14px 16px; box-shadow: var(--shadow-sm); color: var(--text); }
.hc-news a:hover { text-decoration: none; box-shadow: var(--shadow); }
.hc-news-title { display: block; font-weight: 800; }
.hc-news-meta { display: block; font-size: .82rem; color: var(--muted); margin-top: 2px; }
.hc-codes { display: grid; gap: 10px; }
.hc-code { display: flex; justify-content: space-between; align-items: center; gap: 12px; background: #fff; border-radius: 16px; padding: 14px 16px; box-shadow: var(--shadow-sm); }
.hc-code b { display: block; }
.hc-code span { color: var(--muted); font-size: .86rem; }
.hc-code-val { font-weight: 800; color: var(--primary); font-size: 1.1rem; white-space: nowrap; }
.hc-code-val.is-call { background: var(--accent); color: #fff; padding: 8px 14px; border-radius: 12px; }

/* ---------- cta / about ---------- */
.hc-app-cta {
	display: grid; gap: 16px; background: linear-gradient(135deg, var(--primary), var(--primary-dark)); color: #fff;
	border-radius: 24px; padding: 24px; box-shadow: var(--shadow);
}
.hc-app-cta h2 { color: #fff; }
.hc-app-cta .hc-muted { color: rgba(255, 255, 255, .8); }
.hc-cta-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-start; }
.hc-about p { color: var(--muted); }

/* ---------- pager ---------- */
.hc-pager { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin: 24px 0 8px; }
.hc-pager a, .hc-pager span { min-width: 42px; text-align: center; padding: 9px 14px; border-radius: 12px; background: #fff; border: 1px solid var(--line); color: var(--text); font-weight: 700; }
.hc-pager .is-current { background: var(--primary); border-color: var(--primary); color: #fff; }
.hc-pager .gap { border: 0; background: transparent; }

/* ---------- account ---------- */
.hc-account { max-width: 520px; margin: 0 auto; }
.hc-form { background: #fff; border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow-sm); display: grid; gap: 12px; }
.hc-form label { font-weight: 800; font-size: .88rem; }
.hc-form input, .hc-form select, .hc-form textarea {
	width: 100%; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 12px; font: inherit; background: #fff; color: var(--text);
}
.hc-form input:focus, .hc-form select:focus, .hc-form textarea:focus { outline: 0; border-color: var(--accent); }
.hc-msg { padding: 10px 14px; border-radius: 12px; font-size: .92rem; }
.hc-msg.is-err { background: #fdecea; color: #b3261e; }
.hc-msg.is-ok { background: var(--primary-tint); color: var(--primary-dark); }
.hc-tabs { display: flex; gap: 6px; margin-bottom: 14px; }
.hc-tabs button { flex: 1; padding: 10px; border: 0; background: #fff; border-radius: 12px; font: inherit; font-weight: 800; cursor: pointer; color: var(--muted); }
.hc-tabs button.is-on { background: var(--primary); color: #fff; }
.hc-list { display: grid; gap: 10px; margin-top: 10px; }
.hc-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; background: #fff; border-radius: 14px; padding: 12px 14px; box-shadow: var(--shadow-sm); }
.hc-row .meta { color: var(--muted); font-size: .85rem; }
.hc-status { font-size: .75rem; font-weight: 800; padding: 3px 10px; border-radius: 999px; background: #eee; }
.hc-status.approved { background: #e3f4e8; color: #1f7a3d; }
.hc-status.pending { background: #fff4d6; color: #8a6200; }
.hc-status.rejected { background: #fdecea; color: #b3261e; }

/* ---------- login dialog ---------- */
.hc-modal { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 16px; background: rgba(15, 25, 30, .55); }
.hc-modal-box { background: var(--bg); border-radius: 24px; padding: 18px; width: 100%; max-width: 440px; max-height: 92vh; overflow: auto; }
.hc-modal-close { float: right; border: 0; background: #fff; border-radius: 50%; width: 36px; height: 36px; font-size: 1.1rem; cursor: pointer; }
.hc-toast { position: fixed; left: 50%; bottom: 96px; transform: translateX(-50%); background: #222b30; color: #fff; padding: 10px 18px; border-radius: 999px; z-index: 300; font-weight: 700; }

/* ---------- footer ---------- */
.hc-footer { background: linear-gradient(135deg, var(--primary-dark), #083b49); color: rgba(255, 255, 255, .88); padding: 36px 0 20px; margin-top: 40px; }
.hc-footer a { color: #fff; }
.hc-footer h3 { color: #fff; font-size: 1rem; }
.hc-footer ul { display: grid; gap: 6px; }
.hc-footer-grid { display: grid; gap: 24px; grid-template-columns: 1fr 1fr; }
.hc-footer-grid > div:first-child { grid-column: 1 / -1; }
.hc-footer-logo { background: #fff; padding: 8px 12px; border-radius: 14px; margin-bottom: 12px; }
.hc-ios-tip { font-size: .86rem; margin-top: 14px; color: rgba(255, 255, 255, .75); }
.hc-copy { margin-top: 26px; padding-top: 16px; border-top: 1px solid rgba(255, 255, 255, .18); font-size: .85rem; color: rgba(255, 255, 255, .7); }
.hc-notfound { text-align: center; padding: 60px 16px; }
.hc-notfound .hc-search { margin: 18px auto; }

/* ---------- directory: search + type cards with category chips ---------- */
.hc-dir.is-loading #hc-dir-results { opacity: .55; transition: opacity .15s; }
.hc-dir-tools { display: grid; gap: 10px; margin-bottom: 14px; }
.hc-search-flat { max-width: none; margin-top: 0; border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.hc-select {
	width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: 14px; background: #fff;
	font: inherit; color: var(--text); box-shadow: var(--shadow-sm);
}
.hc-typecards {
	display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x proximity; padding: 4px 2px 14px;
	margin: 0 -2px 6px; -webkit-overflow-scrolling: touch;
}
.hc-typecard {
	flex: 0 0 min(300px, 84%); height: 250px; display: flex; flex-direction: column; scroll-snap-align: start;
	padding: 16px; border-radius: var(--radius); color: #fff; box-shadow: var(--shadow);
	background: linear-gradient(135deg, var(--accent-dark), var(--accent) 60%, var(--accent-light));
}
.hc-typecard h3 { margin: 0; color: #fff; font-size: 1.02rem; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hc-typecard p { margin: 2px 0 0; font-size: .78rem; opacity: .9; }
.hc-pills { display: flex; flex-wrap: wrap; align-content: flex-start; gap: 6px; margin-top: 12px; overflow-y: auto; padding-right: 2px; }
.hc-pill {
	display: inline-block; padding: 5px 11px; border-radius: 999px; background: #fff; color: var(--accent-dark);
	font-size: .8rem; font-weight: 700; line-height: 1.3; border: 0; cursor: pointer;
}
.hc-pill:hover { text-decoration: none; background: #fff5ec; }
.hc-pill.is-on { background: #000; color: #fff; }
.hc-result-count { margin: 8px 2px 14px; color: var(--muted); font-size: .9rem; font-weight: 700; }
.hc-load-more { text-align: center; margin: 22px 0 6px; }

/* ---------- tablets & desktops ---------- */
@media (min-width: 640px) {
	.hc-grid-types { grid-template-columns: repeat(3, 1fr); }
	.hc-grid-biz { grid-template-columns: repeat(2, 1fr); }
	.hc-grid-places { grid-template-columns: repeat(2, 1fr); }
	.hc-grid-devo { grid-template-columns: repeat(3, 1fr); }
	.hc-grid-codes { grid-template-columns: repeat(3, 1fr); }
	.hc-types-full { grid-template-columns: repeat(2, 1fr); }
	.hc-app-cta { grid-template-columns: 1fr auto; align-items: center; }
	.hc-contact { grid-template-columns: repeat(4, 1fr); }
}
@media (min-width: 900px) {
	.hc-nav { display: flex; }
	.hc-bottom { display: none; }
	.hc-main { padding-bottom: 0; }
	.hc-grid-types { grid-template-columns: repeat(4, 1fr); }
	.hc-grid-biz { grid-template-columns: repeat(3, 1fr); }
	.hc-grid-places { grid-template-columns: repeat(4, 1fr); }
	.hc-grid-devo { grid-template-columns: repeat(6, 1fr); }
	.hc-grid-codes { grid-template-columns: repeat(5, 1fr); }
	.hc-types-full { grid-template-columns: repeat(3, 1fr); }
	.hc-biz-grid { grid-template-columns: 1fr 340px; align-items: start; }
	.hc-footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; }
	.hc-footer-grid > div:first-child { grid-column: auto; }
	.hc-hero { padding: 54px 0 60px; }
	.hc-toast { bottom: 28px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
