/*
Theme Name: HyeList
Theme URI: https://hyelist.net
Author: SB Coding
Author URI: https://sbcoding.com
Description: The HyeList theme: a directory of Armenian businesses. Find Armenian businesses near you.
Version: 0.1.0
Requires at least: 6.4
Requires PHP: 8.0
Text Domain: hyelist
*/

:root {
	--navy: #0F265B;
	--gold: #D7A83C;
	--gold-soft: #F6ECD2;
	--gold-text: #6B5010;
	--gold-dark: #8A6614;
	--bg: #F8FAFC;
	--card: #FFFFFF;
	--line: #E2E8F0;
	--line-strong: #CBD5E1;
	--text: #334155;
	--muted: #475569;
	--green: #166534;
	--radius: 16px;
	--wrap: 1240px;
}

*, *::before, *::after { box-sizing: border-box; }

body {
	margin: 0;
	font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
	font-size: 16px;
	line-height: 1.5;
	color: var(--navy);
	background: var(--bg);
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--navy); text-decoration: none; }
a:hover { color: var(--gold-dark); }

h1, h2, h3 { font-family: "Space Grotesk", Inter, sans-serif; font-weight: 700; line-height: 1.15; margin: 0; }

.screen-reader-text {
	position: absolute !important;
	width: 1px; height: 1px;
	overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px);
	white-space: nowrap;
}

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }

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

.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	min-height: 44px; padding: 11px 18px;
	border: 0; border-radius: 10px;
	font: inherit; font-size: 15px; font-weight: 600;
	cursor: pointer; text-align: center;
}
.btn-navy { background: var(--navy); color: #FFFFFF; }
.btn-navy:hover { background: #1A3672; color: #FFFFFF; }
.btn-gold { background: var(--gold); color: var(--navy); font-weight: 700; }
.btn-gold:hover { background: #E2B751; color: var(--navy); }
.btn-soft { background: var(--gold-soft); color: var(--navy); }
.btn-soft:hover { background: #EFE0B8; color: var(--navy); }
.btn-block { width: 100%; }

/* ---------- Header ---------- */

.site-header { background: var(--card); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 20px; padding-top: 12px; padding-bottom: 12px; }
.site-logo img { height: 48px; width: auto; }

.search-form {
	flex: 1 1 420px; min-width: 0;
	display: flex;
	background: #FFFFFF;
	border: 1.5px solid var(--line-strong);
	border-radius: 12px;
	overflow: hidden;
}
.search-form input,
.search-form select {
	min-width: 0; border: 0; background: #FFFFFF; color: var(--navy);
	font: inherit; font-size: 16px; padding: 12px 16px;
}
.search-form input { flex: 2 1 160px; }
.search-form select { flex: 1 1 130px; border-left: 1px solid var(--line); }
.search-form input:focus,
.search-form select:focus { outline: 2px solid var(--gold); outline-offset: -2px; }
.search-form button { border: 0; background: var(--gold); color: var(--navy); font: inherit; font-weight: 700; padding: 0 22px; cursor: pointer; }
.search-form button:hover { background: #E2B751; }

/* ---------- Category chips ---------- */

.chips-bar { background: var(--card); border-bottom: 1px solid var(--line); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; padding-top: 12px; padding-bottom: 12px; }
.chip {
	display: inline-flex; align-items: center;
	min-height: 40px; padding: 8px 14px;
	border: 1px solid var(--line); border-radius: 999px;
	font-size: 14px; font-weight: 500; color: var(--navy); background: #FFFFFF;
}
.chip:hover { border-color: var(--gold); color: var(--navy); }
.chip.is-active { background: var(--gold-soft); border-color: var(--gold-soft); }

/* ---------- Listing page (home + results) ---------- */

.listing { display: flex; flex-wrap: wrap; gap: 24px; align-items: flex-start; padding-top: 28px; padding-bottom: 56px; }
.results { flex: 999 1 560px; min-width: 0; }
.results h1 { font-size: 32px; }
.results-count { margin: 6px 0 0; color: var(--muted); font-size: 15px; }

.area-links { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 20px; }

.cards { display: flex; flex-direction: column; gap: 12px; }
.card {
	display: flex; flex-wrap: wrap; gap: 16px;
	background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 14px;
}
.card-photo { flex: 0 0 140px; height: 110px; border-radius: 10px; overflow: hidden; background: var(--line); }
.card-photo img { width: 100%; height: 100%; object-fit: cover; }
.card-body { flex: 1 1 240px; min-width: 0; }
.card-title { font-family: Inter, sans-serif; font-size: 18px; font-weight: 600; }
.card-meta { margin: 4px 0 0; font-size: 14px; color: var(--muted); }
.card-actions { display: flex; flex-wrap: wrap; gap: 4px 16px; margin-top: 8px; font-size: 14px; font-weight: 600; }
.card-actions a { padding: 6px 0; }

.open-now { color: var(--green); font-weight: 600; }

.photo-placeholder {
	width: 100%; height: 100%;
	display: flex; align-items: center; justify-content: center;
	background: var(--gold-soft); color: var(--gold-text);
	font-family: "Space Grotesk", sans-serif; font-size: 40px; font-weight: 700;
}

.map-wrap { flex: 1 1 380px; min-width: 0; position: sticky; top: 16px; }
.map { height: 620px; border-radius: var(--radius); border: 1px solid var(--line-strong); background: var(--line); }
@media (max-width: 1000px) {
	.map-wrap { position: static; }
	.map { height: 320px; }
}

.empty-state { margin-top: 20px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; text-align: center; }
.empty-state p { margin: 0 0 16px; color: var(--muted); }

.pagination { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.pagination a, .pagination span {
	min-width: 44px; min-height: 44px; display: inline-flex; align-items: center; justify-content: center;
	padding: 0 12px; border-radius: 10px; border: 1px solid var(--line); background: #FFFFFF; font-weight: 600;
}
.pagination .current { background: var(--navy); border-color: var(--navy); color: #FFFFFF; }

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

.business { padding-bottom: 64px; }
.breadcrumb { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; font-size: 14px; color: var(--muted); }
.breadcrumb a { color: var(--muted); }

/* Cover photo across the top */
.biz-cover { height: 380px; background: #DCE3EE; overflow: hidden; }
.biz-cover img { width: 100%; height: 100%; object-fit: cover; }
.biz-cover-empty { height: 150px; background: var(--navy); }

/* Logo card overlapping the cover */
.biz-head {
	position: relative;
	margin-top: -72px;
	display: flex; flex-wrap: wrap; align-items: center; gap: 24px;
	background: var(--card); border: 1px solid var(--line); border-radius: 20px;
	padding: 24px 28px;
	box-shadow: 0 12px 32px rgba(15, 38, 91, 0.08);
}
.biz-logo {
	flex: 0 0 112px; height: 112px;
	border-radius: 22px; overflow: hidden;
	background: #FFFFFF; border: 4px solid #FFFFFF;
	box-shadow: 0 4px 12px rgba(15, 38, 91, 0.15);
	display: flex; align-items: center; justify-content: center;
}
.biz-logo img { width: 100%; height: 100%; object-fit: contain; }
.biz-logo-initials {
	width: 100%; height: 100%;
	display: flex; align-items: center; justify-content: center;
	background: var(--navy); color: var(--gold);
	font-family: "Space Grotesk", sans-serif; font-size: 40px; font-weight: 700;
}
.biz-head-info { flex: 1 1 320px; min-width: 0; }
.biz-head-info h1 { margin-top: 6px; font-size: 38px; }
.biz-head-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.biz-eyebrow { margin: 0; font-size: 13px; font-weight: 600; letter-spacing: 1.2px; text-transform: uppercase; color: var(--gold-dark); }
.biz-status { margin: 8px 0 0; font-size: 15px; color: var(--muted); }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; font-size: 13px; font-weight: 600; }
.tag { padding: 6px 12px; border-radius: 999px; background: #F1F5F9; color: var(--text); }
.tag-gold { background: var(--gold-soft); color: var(--gold-text); }

/* Tabs */
.biz-tabs {
	margin-top: 20px;
	display: flex; gap: 4px;
	border-bottom: 1px solid var(--line);
	overflow-x: auto; scrollbar-width: none;
}
.biz-tabs[hidden] { display: none; }
.biz-tabs::-webkit-scrollbar { display: none; }
.biz-tabs button {
	flex: 0 0 auto;
	min-height: 48px; padding: 12px 18px;
	border: 0; border-bottom: 3px solid transparent; background: none;
	font: inherit; font-size: 16px; font-weight: 600; color: var(--muted);
	cursor: pointer; white-space: nowrap;
}
.biz-tabs button:hover { color: var(--navy); }
.biz-tabs button[aria-selected="true"] { color: var(--navy); border-bottom-color: var(--gold); }
.biz-tabs button:focus-visible { outline: 2px solid var(--gold); outline-offset: -2px; }
.biz-panel { display: flex; flex-direction: column; gap: 16px; }
.biz-panel[hidden] { display: none; }

.panel-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 14px; }
.panel-head h2 { margin-bottom: 0; }
.panel-head a { font-size: 15px; font-weight: 600; }
.tab-teaser { margin: 0; font-size: 16px; line-height: 1.6; color: var(--text); }
.tab-more { display: inline-block; margin-top: 12px; font-size: 15px; font-weight: 600; }
.chip-list { display: flex; flex-wrap: wrap; gap: 8px; font-size: 15px; }
.chip-list span { border: 1px solid var(--line); padding: 9px 14px; border-radius: 10px; color: var(--text); }

/* Tab cards */
.tcards { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.tcard {
	display: flex; flex-direction: column;
	border: 1px solid var(--line); border-radius: 14px; overflow: hidden;
	background: #FFFFFF; color: var(--navy);
	transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}
a.tcard:hover { border-color: var(--gold); box-shadow: 0 8px 24px rgba(15, 38, 91, 0.08); transform: translateY(-2px); color: var(--navy); }
a.tcard:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.tcard-photo { display: block; aspect-ratio: 4 / 3; background: var(--line); overflow: hidden; }
.tcard-photo img { width: 100%; height: 100%; object-fit: cover; }
.tcard-photo-empty { display: flex; align-items: center; justify-content: center; background: var(--gold-soft); color: var(--gold-text); }
.tcard-photo-empty svg { width: 34px; height: 34px; }
.tcard-body { flex: 1 1 auto; display: flex; flex-direction: column; gap: 8px; padding: 18px; }
.tcard-icon { width: 44px; height: 44px; border-radius: 12px; background: var(--gold-soft); color: var(--gold-text); display: flex; align-items: center; justify-content: center; margin-bottom: 2px; }
.tcard-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.tcard-head strong { font-size: 17px; line-height: 1.3; }
.tcard-label { flex: 0 0 auto; font-size: 15px; font-weight: 600; color: var(--gold-text); }
.tcard-text { font-size: 14px; line-height: 1.5; color: var(--muted); }
.tcard-more { margin-top: auto; padding-top: 4px; font-size: 14px; font-weight: 600; }

/* Photos */
.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
.photo-grid a { display: block; aspect-ratio: 4 / 3; border-radius: 12px; overflow: hidden; background: var(--line); }
.photo-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform .2s ease; }
.photo-grid a:hover img { transform: scale(1.04); }
.photo-logo { object-fit: contain !important; background: #FFFFFF; padding: 10px; }

/* Full-screen photo viewer */
.lightbox { width: 100vw; height: 100vh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgba(10, 18, 40, 0.94); color: #FFFFFF; }
.lightbox[open] { display: flex; align-items: center; justify-content: center; }
.lightbox::backdrop { background: rgba(10, 18, 40, 0.94); }
.lightbox img { max-width: calc(100vw - 140px); max-height: calc(100vh - 120px); object-fit: contain; border-radius: 8px; }
.lightbox button { position: absolute; width: 52px; height: 52px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, 0.14); color: #FFFFFF; font-size: 30px; line-height: 1; cursor: pointer; }
.lightbox button:hover { background: rgba(255, 255, 255, 0.28); }
.lightbox-close { top: 18px; right: 18px; }
.lightbox-prev { left: 18px; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 18px; top: 50%; transform: translateY(-50%); }
.lightbox-count { position: absolute; bottom: 16px; left: 0; right: 0; margin: 0; text-align: center; font-size: 14px; color: #DCE3F0; }

.biz-columns { display: flex; flex-wrap: wrap; gap: 20px; align-items: flex-start; margin-top: 20px; }
.biz-main { flex: 999 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.biz-side { flex: 1 1 340px; min-width: 0; }
.panel { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.panel h2 { font-size: 22px; margin-bottom: 12px; }
.panel h2 + h2, .panel * + h2 { margin-top: 24px; }
.prose { font-size: 17px; line-height: 1.65; color: var(--text); }
.prose p { margin: 0 0 1em; }
.prose p:last-child { margin-bottom: 0; }
.services { margin: 0; padding-left: 20px; font-size: 16px; line-height: 1.9; color: var(--text); }

.hours { width: 100%; border-collapse: collapse; font-size: 15px; color: var(--text); }
.hours th { text-align: left; font-weight: 500; padding: 4px 12px 4px 0; }
.hours td { padding: 4px 0; }
.hours tr.is-today th, .hours tr.is-today td { font-weight: 700; color: var(--navy); }

.biz-map { height: 180px; border-radius: 12px; background: var(--line); }
.biz-address { margin: 12px 0 0; font-size: 15px; line-height: 1.5; color: var(--text); }
.social { display: flex; gap: 16px; margin-top: 14px; font-size: 14px; font-weight: 600; }

.biz-footer-links { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 32px; padding-top: 22px; border-top: 1px solid var(--line); font-size: 15px; color: var(--muted); }
.biz-footer-links a { font-weight: 600; }
.underline { text-decoration: underline; }

/* ---------- Add your business ---------- */

.submit-page { max-width: 680px; margin: 0 auto; padding: 48px 24px 72px; }
.submit-page h1 { font-size: 40px; text-align: center; }
.submit-intro { margin: 12px 0 0; font-size: 17px; color: var(--muted); text-align: center; }

.steps { list-style: none; margin: 32px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; font-size: 13px; font-weight: 600; }
.steps li { border-top: 4px solid var(--gold); padding-top: 8px; }

.form { margin-top: 24px; background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 28px; display: flex; flex-direction: column; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label, .field legend { font-size: 14px; font-weight: 600; }
.field input, .field select, .field textarea {
	border: 1.5px solid var(--line-strong); border-radius: 10px; padding: 12px;
	font: inherit; font-size: 16px; color: var(--navy); background: #FFFFFF;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--gold); outline-offset: 0; border-color: var(--gold); }
.field-row { display: flex; flex-wrap: wrap; gap: 14px; }
.field-row .field { flex: 1 1 180px; }
.field-hint { font-size: 13px; color: var(--muted); }
fieldset.field { border: 0; margin: 0; padding: 0; }
.checks { display: flex; flex-wrap: wrap; gap: 8px; }
.check { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 8px 12px; border-radius: 999px; border: 1px solid var(--line); font-size: 14px; font-weight: 500; }
.honey { position: absolute; left: -9999px; }

.notice { border-radius: 12px; padding: 16px 18px; margin-top: 24px; font-size: 15px; }
.notice-success { background: #ECFDF3; color: var(--green); border: 1px solid #BBF7D0; }
.notice-error { background: #FEF2F2; color: #991B1B; border: 1px solid #FECACA; }

/* ---------- Plain pages ---------- */

.page-content { max-width: 760px; margin: 0 auto; padding: 48px 24px 72px; }
.page-content h1 { font-size: 40px; margin-bottom: 20px; }

/* ---------- Footer ---------- */

.site-footer { background: var(--card); border-top: 1px solid var(--line); }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; padding-top: 28px; padding-bottom: 28px; font-size: 14px; color: var(--muted); }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 20px; }

/* ---------- Map pin ---------- */

.hl-pin {
	width: 22px; height: 22px;
	border-radius: 50% 50% 50% 0;
	background: var(--navy);
	border: 3px solid var(--gold);
	transform: rotate(-45deg);
}

@media (max-width: 600px) {
	.results h1 { font-size: 26px; }
	.biz-cover { height: 220px; }
	.biz-cover-empty { height: 110px; }
	.biz-head { margin-top: -48px; padding: 20px; gap: 16px; }
	.biz-logo { flex-basis: 84px; height: 84px; border-radius: 18px; }
	.biz-logo-initials { font-size: 30px; }
	.biz-head-info h1 { font-size: 28px; }
	.biz-head-actions { flex: 1 1 100%; }
	.biz-head-actions .btn { flex: 1 1 auto; }
	.lightbox img { max-width: 100vw; max-height: calc(100vh - 140px); border-radius: 0; }
	.lightbox-prev, .lightbox-next { top: auto; bottom: 16px; transform: none; }
	.lightbox-count { bottom: 30px; }
	.submit-page h1 { font-size: 30px; }
	.card { gap: 12px; padding: 12px; }
	.card-photo { flex: 0 0 88px; height: 88px; }
	.card-body { flex: 1 1 160px; }
}
