/* =========================================================================
   Blog — cards, archive, single post.
   ========================================================================= */

.post-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
	gap: clamp(1.25rem, 2.5vw, 2rem);
}

.post-card {
	display: flex;
	flex-direction: column;
	background: var(--white);
	border: 1px solid var(--line);
	border-radius: var(--radius-lg);
	overflow: hidden;
	transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease),
		border-color 0.3s var(--ease);
}

.post-card:hover {
	transform: translateY(-6px);
	border-color: rgba(193, 157, 86, 0.4);
	box-shadow: var(--shadow);
}

.post-card__media {
	position: relative;
	display: block;
	aspect-ratio: 16 / 10;
	background: var(--cream);
	overflow: hidden;
}

.post-card__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.6s var(--ease);
}

.post-card:hover .post-card__media img { transform: scale(1.06); }

.post-card__placeholder {
	display: grid;
	place-items: center;
	height: 100%;
	color: var(--gold);
	opacity: 0.35;
}

.post-card__date {
	position: absolute;
	left: 1rem;
	bottom: 1rem;
	display: grid;
	place-items: center;
	width: 56px;
	height: 56px;
	border-radius: var(--radius);
	background: var(--gold);
	color: var(--on-gold);
	line-height: 1.1;
	box-shadow: var(--shadow-sm);
}

.post-card__date strong {
	font-family: var(--font-display);
	font-size: 1.3rem;
}

.post-card__date em {
	font-style: normal;
	font-size: 0.62rem;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

.post-card__body {
	display: flex;
	flex-direction: column;
	flex: 1;
	gap: 0.6rem;
	padding: 1.35rem 1.5rem 1.5rem;
}

.post-card__meta {
	margin: 0;
	font-size: 0.68rem;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--gold-deep);
}

.post-card__title {
	margin: 0;
	font-size: 1.2rem;
	line-height: 1.32;
}

.post-card__title a { color: var(--ink); }
.post-card__title a:hover { color: var(--gold-deep); }

.post-card__excerpt {
	flex: 1;
	margin: 0;
	font-size: 0.9rem;
	color: var(--ink-mute);
}

.post-card .link-arrow { align-self: flex-start; margin-top: 0.5rem; }

/* ---------- Single post ---------- */

.single-post__hero {
	padding-block: clamp(2.5rem, 5vw, 4rem) clamp(1.5rem, 3vw, 2.5rem);
	background: var(--cream);
	text-align: center;
}

.single-post__hero-inner {
	max-width: 820px;
}

.single-post__cat {
	margin: 1rem 0 0.5rem;
	font-size: 0.72rem;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--gold-deep);
}

.single-post__title {
	margin: 0;
	font-size: clamp(2rem, 4.2vw, 3.15rem);
}

.single-post__meta {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-wrap: wrap;
	gap: 1.25rem;
	margin-top: 1.25rem;
	font-size: 0.8rem;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--ink-mute);
}

.single-post__meta li { position: relative; }

.single-post__meta li + li::before {
	content: "";
	position: absolute;
	left: -0.7rem;
	top: 50%;
	width: 4px;
	height: 4px;
	border-radius: 50%;
	background: var(--gold);
	transform: translateY(-50%);
}

.single-post__media {
	margin-top: -2rem;
	position: relative;
	z-index: 2;
}

.single-post__media img {
	width: 100%;
	max-height: 560px;
	object-fit: cover;
	border-radius: var(--radius-lg);
	box-shadow: var(--shadow);
}

.single-post__layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: clamp(2rem, 4vw, 3.5rem);
	padding-block: var(--section-y);
}

.single-post__layout:has(.sidebar) {
	grid-template-columns: minmax(0, 1fr) 300px;
}

.single-post__body {
	max-width: 72ch;
	font-size: 1.0625rem;
}

.single-post__tags {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin-top: 2.5rem;
	padding-top: 1.5rem;
	border-top: 1px solid var(--line);
}

.single-post__tags a {
	padding: 0.4rem 0.9rem;
	border-radius: var(--radius-pill);
	background: var(--cream);
	color: var(--ink-soft);
	font-size: 0.78rem;
}

.single-post__tags a:hover { background: var(--gold); color: var(--on-gold); }

.sidebar {
	display: grid;
	gap: 1.75rem;
	align-content: start;
}

.sidebar .widget {
	padding: 1.35rem;
	background: var(--cream);
	border-radius: var(--radius);
}

.sidebar .widget-title {
	font-size: 0.8rem;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--gold-deep);
	margin-bottom: 0.9rem;
}

.sidebar ul li {
	padding: 0.4rem 0;
	border-bottom: 1px solid var(--line);
}

.sidebar ul li:last-child { border-bottom: 0; }

.post-nav {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
	gap: 1rem;
	padding-bottom: var(--section-y);
}

.post-nav__item {
	display: grid;
	gap: 0.4rem;
	padding: 1.35rem 1.5rem;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	transition: border-color 0.25s var(--ease), background 0.25s var(--ease);
}

.post-nav__item:hover { border-color: var(--gold); background: var(--cream); }
.post-nav__item--next { text-align: right; }

.post-nav__label {
	font-size: 0.68rem;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--gold-deep);
}

.post-nav__title {
	font-family: var(--font-display);
	font-size: 1.05rem;
	color: var(--ink);
	line-height: 1.35;
}

@media (max-width: 900px) {
	.single-post__layout:has(.sidebar) { grid-template-columns: 1fr; }
}

/* ---------- Elementor pages keep their own canvas ---------- */

.page-article__raw { display: block; }

.page-article--full { display: block; }

/* =========================================================================
   Contact page
   ========================================================================= */

.section--contact { background: var(--white); }

.contact-cards {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
	gap: clamp(1rem, 2vw, 1.5rem);
	margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

.contact-card {
	padding: 1.75rem;
	background: var(--cream);
	border-radius: var(--radius-lg);
	text-align: center;
}

.contact-card__icon {
	display: grid;
	place-items: center;
	width: 56px;
	height: 56px;
	margin: 0 auto 1rem;
	border-radius: 50%;
	background: var(--white);
	color: var(--gold-deep);
	box-shadow: var(--shadow-sm);
}

.contact-card__title {
	font-size: 1.15rem;
	margin-bottom: 0.5rem;
}

.contact-card p {
	margin: 0;
	color: var(--ink-mute);
	font-size: 0.95rem;
}

.contact-card a { color: var(--ink); }
.contact-card a:hover { color: var(--gold-deep); }

.contact-layout {
	display: grid;
	grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
	gap: clamp(2rem, 4vw, 3.5rem);
	align-items: start;
}

.contact-map {
	overflow: hidden;
	border-radius: var(--radius-lg);
	border: 1px solid var(--line);
	aspect-ratio: 4 / 3;
}

.contact-map iframe {
	width: 100%;
	height: 100%;
	border: 0;
	display: block;
}

.contact-aside > .entry-content,
.contact-aside > p { margin-bottom: 1.5rem; }

/* Contact Form 7, restyled to match the theme's inputs. */
.wpcf7 form { display: grid; gap: 1rem; }
.wpcf7 p { margin: 0; }

.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 input[type="tel"],
.wpcf7 input[type="url"],
.wpcf7 textarea,
.wpcf7 select {
	width: 100%;
	padding: 0.95rem 1.15rem;
	border: 1px solid var(--line-strong);
	border-radius: var(--radius);
	background: var(--white);
	font-size: 0.95rem;
	transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.wpcf7 input:focus,
.wpcf7 textarea:focus,
.wpcf7 select:focus {
	outline: none;
	border-color: var(--gold);
	box-shadow: 0 0 0 3px rgba(193, 157, 86, 0.16);
}

.wpcf7 textarea { min-height: 150px; resize: vertical; }

.wpcf7 input[type="submit"] {
	justify-self: start;
	padding: 1rem 2.2rem;
	border: 0;
	border-radius: var(--radius-pill);
	background: var(--gold);
	color: var(--on-gold);
	font-size: 0.85rem;
	font-weight: 500;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	cursor: pointer;
	transition: background 0.25s var(--ease), transform 0.25s var(--ease);
}

.wpcf7 input[type="submit"]:hover {
	background: var(--ink);
	transform: translateY(-2px);
}

.wpcf7-not-valid-tip { font-size: 0.8rem; color: #c0392b; margin-top: 0.35rem; }

.wpcf7 .wpcf7-response-output {
	margin: 0;
	padding: 0.9rem 1.15rem;
	border-radius: var(--radius);
	border-width: 1px;
	font-size: 0.9rem;
}

.contact-form__fallback {
	padding: 1.25rem;
	background: var(--cream);
	border-radius: var(--radius);
}

.about-intro { max-width: 74ch; }

@media (max-width: 900px) {
	.contact-layout { grid-template-columns: 1fr; }
}

/* =========================================================================
   Comments
   ========================================================================= */

.comments {
	max-width: 72ch;
	margin-inline: auto;
	padding-top: clamp(2rem, 4vw, 3rem);
	border-top: 1px solid var(--line);
}

.comments__title {
	font-size: clamp(1.4rem, 2.4vw, 1.85rem);
	margin-bottom: 2rem;
}

.comments__title span { color: var(--gold-deep); }

.comment-list,
.comment-list .children {
	list-style: none;
	margin: 0;
	padding: 0;
}

.comment-list > li + li {
	margin-top: 1rem;
}

.comment-list .children {
	margin-top: 1rem;
	padding-left: clamp(1rem, 4vw, 3rem);
	border-left: 2px solid var(--line);
}

.comment-item__body {
	display: flex;
	gap: 1.15rem;
	padding: 1.5rem;
	background: var(--cream);
	border-radius: var(--radius-lg);
}

.comment-item.bypostauthor > .comment-item__body {
	background: var(--gold-wash);
	box-shadow: inset 0 0 0 1px rgba(193, 157, 86, 0.3);
}

.comment-item__avatar { flex: none; }

.comment-item__avatar img {
	width: 52px;
	height: 52px;
	border-radius: 50%;
	object-fit: cover;
}

.comment-item__content { flex: 1; min-width: 0; }

.comment-item__head {
	display: flex;
	align-items: baseline;
	flex-wrap: wrap;
	gap: 0.25rem 0.85rem;
	margin-bottom: 0.5rem;
}

.comment-item__author {
	margin: 0;
	font-size: 1.02rem;
}

.comment-item__author a { color: var(--ink); }
.comment-item__author a:hover { color: var(--gold-deep); }

.comment-item__date {
	font-size: 0.75rem;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--ink-mute);
}

.comment-item__pending {
	margin: 0 0 0.6rem;
	font-size: 0.82rem;
	font-style: italic;
	color: var(--gold-deep);
}

.comment-item__text {
	font-size: 0.95rem;
	color: var(--ink-soft);
}

.comment-item__text > *:last-child { margin-bottom: 0; }

.comment-item__actions {
	display: flex;
	gap: 1rem;
	margin-top: 0.85rem;
}

.comment-item__actions a {
	font-size: 0.72rem;
	font-weight: 500;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--gold-deep);
	border-bottom: 1px solid transparent;
	padding-bottom: 2px;
}

.comment-item__actions a:hover {
	color: var(--ink);
	border-bottom-color: var(--gold);
}

.comments__closed {
	margin-top: 1.5rem;
	font-size: 0.9rem;
	color: var(--ink-mute);
}

/* ---------- Comment form ---------- */

.comment-respond {
	margin-top: clamp(2.25rem, 4vw, 3rem);
	padding: clamp(1.5rem, 3vw, 2.25rem);
	background: var(--white);
	border: 1px solid var(--line);
	border-radius: var(--radius-lg);
}

.comment-respond__title {
	font-size: clamp(1.3rem, 2.2vw, 1.65rem);
	margin-bottom: 0.5rem;
}

.comment-respond__title small { display: block; font-size: 0.8rem; margin-top: 0.4rem; }
.comment-respond__title small a { color: var(--gold-deep); }

.comment-form__notes,
.comment-notes {
	margin-bottom: 1.5rem;
	font-size: 0.85rem;
	color: var(--ink-mute);
}

.comment-form {
	display: grid;
	gap: 1rem;
}

/* Name / email / site sit on one row once there is space. */
.comment-form .comment-form-author,
.comment-form .comment-form-email,
.comment-form .comment-form-url {
	margin: 0;
}

@media (min-width: 700px) {
	.comment-form {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	.comment-form .comment-form-comment,
	.comment-form .comment-form-cookies-consent,
	.comment-form .form-submit,
	.comment-form .comment-notes,
	.comment-form .logged-in-as,
	.comment-form__notes {
		grid-column: 1 / -1;
	}
}

.comment-form label {
	display: block;
	margin-bottom: 0.4rem;
	font-size: 0.75rem;
	font-weight: 500;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--ink-mute);
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
	width: 100%;
	padding: 0.85rem 1.1rem;
	border: 1px solid var(--line-strong);
	border-radius: var(--radius);
	background: var(--white);
	font-size: 0.95rem;
	transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.comment-form input:focus,
.comment-form textarea:focus {
	outline: none;
	border-color: var(--gold);
	box-shadow: 0 0 0 3px rgba(193, 157, 86, 0.16);
}

.comment-form textarea { resize: vertical; min-height: 150px; }

.comment-form-cookies-consent {
	display: flex;
	align-items: center;
	gap: 0.6rem;
	margin: 0;
}

.comment-form-cookies-consent input { accent-color: var(--gold); }

.comment-form-cookies-consent label {
	margin: 0;
	font-size: 0.82rem;
	letter-spacing: 0;
	text-transform: none;
	color: var(--ink-soft);
}

.comment-form .form-submit { margin: 0.5rem 0 0; }

.comment-form .logged-in-as {
	margin: 0 0 0.5rem;
	font-size: 0.85rem;
	color: var(--ink-mute);
}

.comment-form .logged-in-as a { color: var(--gold-deep); }

/* comment_form()'s class_submit does not always survive, so style the input
   directly rather than relying on the .btn classes being present. */
.comment-form input[type="submit"],
.comment-form .submit {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 1rem 2.2rem;
	border: 0;
	border-radius: var(--radius-pill);
	background: var(--gold);
	color: var(--on-gold);
	font-family: var(--font-body);
	font-size: 0.85rem;
	font-weight: 500;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	line-height: 1;
	cursor: pointer;
	transition: background 0.25s var(--ease), transform 0.25s var(--ease);
}

.comment-form input[type="submit"]:hover,
.comment-form .submit:hover {
	background: var(--ink);
	transform: translateY(-2px);
}

.comment-navigation .nav-links {
	display: flex;
	justify-content: center;
	gap: 0.5rem;
	margin-top: 1.5rem;
}
