/*
 * picayunechamber.org - main stylesheet.
 * Recreates the archived Popularis Business design: orange accent (#fd7f07),
 * Open Sans / Open Sans Condensed, rounded cards with soft shadow, two-column grid.
 */

:root {
	--accent: #fd7f07;
	--accent-hover: #ff9c12;
	--accent-dark: #e67200;
	--text: #566073;
	--heading: #23272e;
	--muted: #8a93a6;
	--line: #e6e8ee;
	--bg: #ffffff;
	--bg-soft: #f7f8fa;
	--card-shadow: 0 0 7px 0 rgba(28, 45, 113, 0.20);
	--radius: 12px;
	--maxw: 1170px;
	--font-body: "Open Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
	--font-head: "Open Sans Condensed", "Open Sans", "Arial Narrow", Arial, sans-serif;
}

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

html { -webkit-text-size-adjust: 100%; }

body {
	margin: 0;
	font-family: var(--font-body);
	font-size: 17px;
	line-height: 1.7;
	color: var(--text);
	background: var(--bg);
	-webkit-font-smoothing: antialiased;
}

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

a { color: var(--accent); text-decoration: none; }
a:hover, a:focus { color: var(--accent-dark); }

h1, h2, h3, h4, h5, h6 {
	font-family: var(--font-head);
	color: var(--heading);
	line-height: 1.2;
	margin: 0 0 .5em;
	font-weight: 700;
}

.container {
	width: 100%;
	max-width: var(--maxw);
	margin: 0 auto;
	padding-left: 15px;
	padding-right: 15px;
}

/* Accessibility */
.sr-only, .screen-reader-text {
	position: absolute !important;
	width: 1px; height: 1px;
	padding: 0; margin: -1px;
	overflow: hidden; clip: rect(0 0 0 0);
	white-space: nowrap; border: 0;
}
.skip-link {
	position: absolute;
	left: -9999px;
	top: 0;
	background: var(--accent);
	color: #fff;
	padding: 10px 16px;
	z-index: 1000;
}
.skip-link:focus { left: 8px; top: 8px; color: #fff; }

.page-wrap { display: flex; flex-direction: column; min-height: 100vh; }

/* ---------- Header ---------- */
.header-part { padding: 18px 0; background: #fff; }
.site-branding { display: flex; align-items: center; }
.custom-logo-link { display: inline-block; }
.custom-logo { width: auto; height: auto; max-height: 90px; }
.site-title-link {
	font-family: var(--font-head);
	font-weight: 700;
	font-size: 34px;
	color: var(--heading);
	letter-spacing: .5px;
}

/* ---------- Navigation ---------- */
.main-menu {
	background: #fff;
	box-shadow: 0 14px 20px 0 rgba(0, 0, 0, 0.08);
	border-top: 1px solid var(--line);
	position: relative;
	z-index: 20;
}
.navbar .container { display: flex; align-items: center; }
.nav-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	align-items: stretch;
}
.nav-item { display: flex; }
.nav-link {
	display: flex;
	align-items: center;
	padding: 14px 18px;
	font-family: var(--font-head);
	font-size: 17px;
	font-weight: 700;
	text-transform: none;
	color: var(--heading);
	letter-spacing: .3px;
}
.nav-link:hover, .nav-link:focus { color: var(--accent); }
.nav-item.active > .nav-link,
.nav-item.current-menu-item > .nav-link,
.current-menu-item > .nav-link {
	background: var(--accent-hover);
	color: #fff;
}
.nav-item--lang .nav-link--lang { cursor: default; color: var(--text); }
.nav-item--lang .nav-link--lang:hover { color: var(--text); }
.lang-flag { margin-right: .35em; }

/* Mobile menu toggle */
.menu-toggle {
	display: none;
	margin: 8px 0;
	padding: 10px 12px;
	background: transparent;
	border: 1px solid var(--line);
	border-radius: 6px;
	cursor: pointer;
}
.menu-toggle__bar,
.menu-toggle__bar::before,
.menu-toggle__bar::after {
	display: block;
	width: 22px; height: 2px;
	background: var(--heading);
	position: relative;
}
.menu-toggle__bar::before, .menu-toggle__bar::after { content: ""; position: absolute; left: 0; }
.menu-toggle__bar::before { top: -7px; }
.menu-toggle__bar::after { top: 7px; }

/* ---------- Main / layout ---------- */
.site-main { flex: 1 0 auto; }
.main-container { }
.page-area { padding: 35px 0; }

/* ---------- Posts grid (home / archives) ---------- */
.posts-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 30px;
}
.post-card { margin: 0; }
.post-item {
	height: 100%;
	display: flex;
	flex-direction: column;
	background: #fff;
	border-radius: var(--radius);
	box-shadow: var(--card-shadow);
	overflow: hidden;
}
.news-thumb { line-height: 0; }
.news-thumb img { width: 100%; height: auto; display: block; object-fit: cover; }
.news-text-wrap { padding: 20px; }
.posted-date {
	display: inline-block;
	font-family: var(--font-head);
	font-size: 14px;
	color: var(--muted);
	margin-bottom: 6px;
}
.entry-title {
	font-size: 26px;
	line-height: 1.15;
	font-weight: 700;
	margin: 6px 0 12px;
}
.entry-title a { color: var(--heading); }
.entry-title a:hover, .entry-title a:focus { color: var(--accent); }
.post-excerpt { font-size: 16px; color: var(--text); }
.post-excerpt p { margin: 0; }

/* Category pills */
.cats-tags { margin-bottom: 8px; }
.cat-links { display: inline-block; }
.cat-links a {
	display: inline-block;
	border: 1px solid var(--accent);
	color: var(--accent);
	font-family: var(--font-head);
	font-size: 13px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .4px;
	padding: 2px 8px;
	border-radius: 5px;
}
.cat-links a:hover, .cat-links a:focus { background: var(--accent); color: #fff; }

/* ---------- Single article / pages ---------- */
.single-article { max-width: 860px; margin: 0 auto; }
.single-featured { line-height: 0; margin-bottom: 26px; }
.single-featured img { width: 100%; height: auto; border-radius: var(--radius); display: block; }
.single-head { margin-bottom: 22px; }
.single-head .posted-date { margin: 10px 14px 0 0; }
.author-meta { font-family: var(--font-head); font-size: 14px; color: var(--muted); }
.author-meta a { color: var(--accent); }
.single-title {
	font-size: 40px;
	line-height: 1.12;
	margin: 14px 0 0;
}
.single-content { font-size: 18px; }

/* Article body typography */
.entry { color: var(--text); }
.entry p { margin: 0 0 1.3em; }
.entry h2 { font-size: 30px; margin: 1.4em 0 .5em; }
.entry h3 { font-size: 24px; margin: 1.3em 0 .5em; }
.entry h4 { font-size: 20px; margin: 1.2em 0 .5em; }
.entry ul, .entry ol { margin: 0 0 1.3em; padding-left: 1.4em; }
.entry li { margin-bottom: .5em; }
.entry a { text-decoration: underline; }
.entry img { border-radius: var(--radius); height: auto; }
.entry figure { margin: 1.5em 0; }
.entry figcaption { font-size: 14px; color: var(--muted); text-align: center; margin-top: .5em; }
.entry blockquote {
	margin: 1.5em 0;
	padding: .5em 1.2em;
	border-left: 4px solid var(--accent);
	background: var(--bg-soft);
	font-style: italic;
}
.entry table { width: 100%; border-collapse: collapse; margin: 1.5em 0; }
.entry th, .entry td { border: 1px solid var(--line); padding: 8px 12px; text-align: left; }

/* Table of contents */
.toc {
	background: var(--bg-soft);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	padding: 18px 22px;
	margin: 0 0 1.8em;
}
.toc__title { font-family: var(--font-head); font-weight: 700; font-size: 20px; color: var(--heading); margin: 0 0 .5em; }
.toc ul { margin: 0; padding-left: 1.2em; }
.toc a { text-decoration: none; }
.toc a:hover { text-decoration: underline; }

/* Tags */
.tags-links { margin: 1.8em 0 0; font-size: 15px; }
.tags-links__label { font-weight: 700; margin-right: 6px; }
.tags-links a { display: inline-block; margin: 0 6px 6px 0; }

/* Share */
.share { margin: 1.8em 0 0; }
.share__list { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; margin: 0; padding: 0; }
.share__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 42px; height: 42px;
	border-radius: 50%;
	background: var(--accent);
	color: #fff;
	border: none;
	cursor: pointer;
}
.share__btn:hover, .share__btn:focus { background: var(--accent-dark); color: #fff; }
.share__status { font-size: 13px; color: var(--muted); margin: 8px 0 0; }

/* ---------- Archive head ---------- */
.archive-head { margin-bottom: 28px; }
.archive-head__title { font-size: 36px; margin: 0 0 .3em; }
.archive-head__intro { font-size: 18px; color: var(--text); max-width: 760px; margin: 0; }

/* ---------- Pagination ---------- */
.pagination { margin: 40px 0 0; }
.pagination .nav-links { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	padding: 8px 14px;
	border: 1px solid var(--line);
	border-radius: 10px;
	color: var(--heading);
	font-family: var(--font-head);
	font-weight: 700;
}
.pagination .page-numbers.current { background: var(--accent); color: #fff; border-color: var(--accent); }
.pagination a.page-numbers:hover { background: var(--accent-hover); color: #fff; border-color: var(--accent-hover); }

/* ---------- Forms / buttons ---------- */
.btn, input[type="submit"], button.btn {
	display: inline-block;
	background: var(--accent);
	color: #fff;
	border: none;
	border-radius: 8px;
	padding: 12px 22px;
	font-family: var(--font-head);
	font-weight: 700;
	font-size: 16px;
	cursor: pointer;
}
.btn:hover, .btn:focus, input[type="submit"]:hover { background: var(--accent-dark); color: #fff; }

.search-form { display: flex; gap: 10px; max-width: 520px; }
.search-form__field { position: relative; flex: 1; display: flex; align-items: center; }
.search-form__field .icon { position: absolute; left: 12px; color: var(--muted); }
.search-form__input {
	width: 100%;
	padding: 12px 14px 12px 40px;
	border: 1px solid var(--line);
	border-radius: 8px;
	font-size: 16px;
	font-family: var(--font-body);
}
.search-form__input:focus { outline: 2px solid var(--accent); border-color: var(--accent); }

.empty-state { font-size: 18px; color: var(--muted); padding: 30px 0; }

/* Contact form (native, inc/contact.php) */
.contact-form-wrap { margin-top: 1.5em; max-width: 680px; }
.contact-form .form-field { margin: 0 0 1.1em; }
.contact-form label { display: block; font-family: var(--font-head); font-weight: 700; color: var(--heading); margin-bottom: 5px; }
.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form select,
.contact-form textarea {
	width: 100%;
	padding: 12px 14px;
	border: 1px solid var(--line);
	border-radius: 8px;
	font-size: 16px;
	font-family: var(--font-body);
	background: #fff;
}
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus { outline: 2px solid var(--accent); border-color: var(--accent); }
.form-row--2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-field--hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.form-field--check { display: flex; gap: 8px; align-items: flex-start; }
.form-field--check label { font-weight: 400; font-family: var(--font-body); }
.form-note { padding: 12px 16px; border-radius: 8px; margin-bottom: 1.2em; }
.form-note--success { background: #e7f6ec; color: #1a7f3c; }
.form-note--error { background: #fdecea; color: #b3261e; }
@media (max-width: 600px) { .form-row--2 { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.site-footer {
	flex-shrink: 0;
	background: #23272e;
	color: #cfd4de;
	padding: 24px 0;
	margin-top: 50px;
}
.site-footer__text { text-align: center; font-family: var(--font-head); font-size: 16px; letter-spacing: .3px; }

/* ---------- Responsive ---------- */
@media (max-width: 767px) {
	.header-part .container { justify-content: center; }
	.site-branding { justify-content: center; }
	.navbar .container { flex-wrap: wrap; }
	.menu-toggle { display: block; margin-left: auto; }
	.nav-list {
		flex-direction: column;
		width: 100%;
		display: none;
	}
	.nav-list.is-open { display: flex; }
	.nav-item { width: 100%; }
	.nav-link { padding: 12px 4px; border-bottom: 1px solid var(--line); width: 100%; }
	.posts-grid { grid-template-columns: 1fr; gap: 24px; }
	.single-title { font-size: 30px; }
	.archive-head__title { font-size: 28px; }
	.entry h2 { font-size: 25px; }
}
