/**
 * Layout enhancements, loaded after style.css and media-queries.css.
 * Remove the <link> in header.php to revert to the original look.
 */

:root {
	--cc-brown: #402514;
	--cc-accent: #e8a33d;
	--cc-panel: rgba(20, 12, 7, 0.82);
}

body {
	font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
	line-height: 1.6;
	background-attachment: fixed;
	-webkit-font-smoothing: antialiased;
}

/* ---------- Header / navigation ---------- */
header > div,
.nav-menu-section {
	background: rgba(255, 255, 255, 0.92);
}
header {
	position: sticky;
	top: 0;
	z-index: 100;
	box-shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
	border-bottom: 4px solid var(--cc-accent);
}
header .logo {
	min-height: 0;
	margin: 6px 40px 6px 0;
	height: 84px;
	max-height: none;
	width: auto;
	display: block;
	margin-left: auto;
}
.nav-menu-section {
	min-height: 96px;
	display: flex;
	align-items: center;
	justify-content: flex-end;
}
.nav-menu-section nav {
	margin: 0;
}
.nav-menu-section nav ul li {
	padding-left: 0;
}
.nav-menu-section nav ul li a {
	font-size: 1.25em;
	letter-spacing: 0.06em;
	padding: 14px 22px;
	position: relative;
	transition: color 0.2s;
}
.nav-menu-section nav ul li a::after {
	content: "";
	position: absolute;
	left: 22px;
	right: 22px;
	bottom: 8px;
	height: 3px;
	background: var(--cc-accent);
	transform: scaleX(0);
	transition: transform 0.2s;
}
.nav-menu-section nav ul li a:hover,
.nav-menu-section nav ul li.current-menu-item a,
.nav-menu-section nav ul li.current_page_item a {
	background: none;
	color: var(--cc-brown);
}
.nav-menu-section nav ul li a:hover::after,
.nav-menu-section nav ul li.current-menu-item a::after,
.nav-menu-section nav ul li.current_page_item a::after {
	transform: scaleX(1);
}

/* ---------- Homepage hero ---------- */
#homepage-carousel {
	margin: 0;
	background: #1c0f06;
}
#homepage-slider .hero-slide {
	position: relative;
	min-height: 620px;
	background-size: cover;
	background-position: center;
	color: #fff;
}
/* Stack every slide in one grid cell so the carousel is always as tall as the
   tallest slide (nothing below jumps), and cross-fade instead of sliding. */
#homepage-carousel .carousel-inner {
	display: grid;
}
#homepage-slider .hero-slide {
	grid-area: 1 / 1;
	display: flex !important;
	align-items: center;
	float: none;
	left: 0;
	transform: none !important;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.6s ease, visibility 0.6s;
}
#homepage-slider .hero-slide.active,
#homepage-slider .hero-slide.next.left,
#homepage-slider .hero-slide.prev.right {
	opacity: 1;
	visibility: visible;
}
#homepage-slider .hero-slide.active.left,
#homepage-slider .hero-slide.active.right {
	opacity: 0;
}
#homepage-slider .hero-overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(90deg, rgba(15, 8, 3, 0.88) 0%, rgba(15, 8, 3, 0.65) 45%, rgba(15, 8, 3, 0.1) 100%);
}
#homepage-slider .hero-content {
	position: relative;
	max-width: 620px;
	padding: 60px 40px 80px 8vw;
	text-shadow: 0 1px 6px rgba(0, 0, 0, 0.6);
}
#homepage-slider h3 {
	font-size: 2.6em;
	line-height: 1.15;
	margin: 0 0 18px;
	padding-bottom: 14px;
	border-bottom: 4px solid var(--cc-accent);
	display: block;
	width: fit-content;
}
#homepage-slider .hero-text {
	font-size: 1.15em;
}
#homepage-slider .hero-text ul {
	padding-left: 20px;
	margin: 14px 0 0;
	columns: 2;
	column-gap: 28px;
}
#homepage-slider .hero-text li {
	font-weight: bold;
	break-inside: avoid;
	margin-bottom: 4px;
}
#homepage-slider .hero-cta {
	display: inline-block;
	margin-top: 26px;
	padding: 13px 32px;
	background: var(--cc-accent);
	color: #1c0f06;
	font-weight: bold;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	text-shadow: none;
	border-radius: 3px;
	transition: background 0.2s, transform 0.2s;
}
#homepage-slider .hero-cta:hover,
#homepage-slider .hero-cta:visited:hover {
	background: #f3b858;
	color: #1c0f06;
	transform: translateY(-2px);
}
#homepage-slider a.hero-cta,
#homepage-slider a.hero-cta:visited {
	color: #1c0f06;
}
#homepage-slider .slider-controls {
	left: 50%;
	transform: translateX(-50%);
	bottom: 24px;
	z-index: 5;
}

/* ---------- Content ---------- */
.page-container {
	background: var(--cc-panel);
	padding: 0;
}
.home-page-content {
	padding: 50px 0 60px;
}
.home-page-content > .container {
	max-width: 1100px;
}
.home-page-content h1 {
	font-size: 2.4em;
	font-weight: bold;
	margin: 0 0 24px;
	padding-bottom: 14px;
	border-bottom: 3px solid var(--cc-accent);
	display: block;
	width: fit-content;
}

/* Service / contact columns as cards */
.home-page-content .row {
	display: flex;
	flex-wrap: wrap;
	margin-top: 40px;
}
.home-page-content .row > [class*="col-"] {
	display: flex;
	margin-bottom: 24px;
}
.home-page-content .widget,
.home-page-content .col-md-3:first-child .widget {
	background: rgba(255, 255, 255, 0.06);
	border: 1px solid rgba(255, 255, 255, 0.12);
	border-top: 4px solid var(--cc-accent);
	border-radius: 4px;
	padding: 22px 24px;
	width: 100%;
	text-align: left;
	min-height: 0;
	transition: background 0.2s, transform 0.2s;
}
.home-page-content .widget:hover {
	background: rgba(255, 255, 255, 0.11);
	transform: translateY(-3px);
}
.home-page-content .widget h3 {
	font-size: 1.25em;
	margin-top: 0;
}
.home-page-content .widget h4 {
	color: var(--cc-accent);
	font-weight: bold;
}

a:hover {
	color: var(--cc-accent);
}

/* ---------- Inner pages ---------- */
.pages .col-md-9 {
	background-image: none;
}
.page-container .container {
	padding-top: 10px;
}

/* ---------- Contact form ---------- */
.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 textarea {
	width: 100%;
	max-width: 560px;
	padding: 10px 12px;
	border: 0;
	border-radius: 3px;
}
.wpcf7 input[type="submit"] {
	background: var(--cc-accent);
	color: #1c0f06;
	border: 0;
	border-radius: 3px;
	padding: 10px 28px;
	font-weight: bold;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	cursor: pointer;
}
.wpcf7 input[type="submit"]:hover {
	background: #f3b858;
}

/* ---------- Footer ---------- */
footer {
	border-top: 4px solid var(--cc-accent);
}
.footer-menu ul li a {
	transition: color 0.2s;
}

/* ---------- Mobile ---------- */
@media (max-width: 767px) {
	header {
		position: static;
	}
	header .logo {
		height: 56px;
		margin: 4px auto;
	}
	.nav-menu-section {
		min-height: 0;
	}
	.nav-menu-section nav .navbar-header {
		float: none;
	}
	header .col-sm-3 {
		text-align: center;
	}
	header .logo {
		float: none;
		margin: 6px auto;
		max-height: 70px;
	}
	.nav-menu-section {
		justify-content: center;
	}
	.nav-menu-section nav ul li {
		display: block;
	}
	.nav-menu-section nav ul li a::after {
		display: none;
	}
	#homepage-slider .hero-slide {
		min-height: 520px;
	}
	#homepage-slider .hero-overlay {
		background: rgba(15, 8, 3, 0.72);
	}
	#homepage-slider .hero-content {
		padding: 36px 22px 70px;
	}
	#homepage-slider h3 {
		font-size: 1.7em;
	}
	#homepage-slider .hero-text ul {
		columns: 1;
	}
	.home-page-content {
		padding: 30px 0 40px;
	}
	.home-page-content h1 {
		font-size: 1.8em;
	}
}
