/* COIL base layout — standalone theme shell */

:root {
	--coil-color-text: #1a1a1a;
	--coil-color-muted: #5c5c5c;
	--coil-color-border: rgba(0, 0, 0, 0.12);
	--coil-color-accent: #8b0000;
	--coil-color-surface: #f7f7f5;
	--coil-color-bg: #ffffff;
	--coil-container: 1200px;
	--coil-font: "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif;
	--coil-gap: 24px;
}

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

html {
	scroll-behavior: smooth;
}

body {
	margin: 0;
	font-family: var(--coil-font);
	color: var(--coil-color-text);
	background: var(--coil-color-bg);
	line-height: 1.5;
	-webkit-font-smoothing: antialiased;
}

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

a {
	color: inherit;
}

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

.coil-main {
	flex: 1 0 auto;
	width: 100%;
}

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

.coil-page-content {
	padding-top: 32px;
	padding-bottom: 48px;
}

/* Elementor / homepage — edge-to-edge (no boxed container) */
.coil-main--full,
.coil-page-content--full {
	width: 100%;
	max-width: none;
	margin: 0;
	padding: 0;
}

.coil-entry--full {
	margin: 0;
}

.coil-entry--full .coil-entry__content,
.coil-entry--full .coil-entry__content > .elementor {
	margin: 0;
	padding: 0;
	max-width: none;
}

body.coil-full-bleed .coil-main .coil-container,
body.elementor-page.coil-full-bleed .coil-page-content {
	max-width: none;
	width: 100%;
	padding-left: 0;
	padding-right: 0;
	padding-top: 0;
	padding-bottom: 0;
}

body.coil-full-bleed .coil-entry__title {
	display: none;
}

/* Always keep COI header visible above Elementor footer / page content */
body.coi-custom-header .coi-site-header {
	display: block !important;
	visibility: visible !important;
	opacity: 1 !important;
	position: relative;
	z-index: 10001;
	height: auto !important;
	max-height: none !important;
	overflow: visible !important;
}

/* Elementor Theme Builder footer — full width inside theme shell */
.elementor-location-footer,
body .elementor-location-footer {
	width: 100%;
	max-width: none;
	clear: both;
}

.coil-entry__title {
	margin: 0 0 1rem;
	font-size: clamp(1.75rem, 3vw, 2.25rem);
	line-height: 1.2;
}

.coil-entry__meta {
	margin: 0 0 1.25rem;
	color: var(--coil-color-muted);
	font-size: 0.9rem;
}

.coil-entry__content > *:first-child {
	margin-top: 0;
}

.coil-entry__content > *:last-child {
	margin-bottom: 0;
}

/* Footer */
.coil-footer {
	background: #111;
	color: #f2f2f2;
	margin-top: auto;
}

.coil-footer a {
	color: #f2f2f2;
	text-decoration: none;
}

.coil-footer a:hover {
	text-decoration: underline;
}

.coil-footer__widgets {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: var(--coil-gap);
	padding: 48px 0 32px;
}

.coil-footer__widgets .widget {
	margin: 0;
}

.coil-footer__widgets .widget-title {
	margin: 0 0 12px;
	font-size: 0.95rem;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.coil-footer__widgets ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

.coil-footer__widgets li {
	margin: 0 0 8px;
}

.coil-footer__copy {
	border-top: 1px solid rgba(255, 255, 255, 0.12);
	padding: 20px 0;
	font-size: 0.875rem;
	color: rgba(255, 255, 255, 0.75);
}

.coil-footer__copy-inner {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 12px;
	align-items: center;
}

.coil-footer__menu {
	display: flex;
	flex-wrap: wrap;
	gap: 16px;
	list-style: none;
	margin: 0;
	padding: 0;
}

/* Breadcrumbs */
.coil-breadcrumbs {
	margin: 0 0 16px;
	font-size: 0.875rem;
	color: var(--coil-color-muted);
}

.coil-breadcrumbs a {
	text-decoration: none;
}

.coil-breadcrumbs a:hover {
	text-decoration: underline;
}

.coil-breadcrumbs__sep {
	margin: 0 6px;
	opacity: 0.5;
}

/* Posts list */
.coil-posts {
	display: grid;
	gap: 32px;
}

.coil-post-card__title {
	margin: 0 0 8px;
	font-size: 1.35rem;
}

.coil-post-card__excerpt {
	margin: 0;
	color: var(--coil-color-muted);
}

.coil-pagination {
	margin-top: 40px;
}

.coil-404 {
	text-align: center;
	padding: 64px 0;
}

.coil-404__title {
	margin: 0 0 12px;
	font-size: 2rem;
}

@media (max-width: 900px) {
	.coil-footer__widgets {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 560px) {
	.coil-footer__widgets {
		grid-template-columns: 1fr;
	}
}
