/*
Theme Name: Sam's of Ballymena
Description: One-page site with hero carousel, booking, contact and map for Sam's of Ballymena suit hire.
Version: 1.0
*/

:root {
	--charcoal: #2c383e;
	--charcoal-soft: #3d4b52;
	--cream: #ffffff;
	--panel: #f0f0f0;
	--accent-on-dark: #cfd5d8;
	--text-body: #333333;
	--max-width: 1160px;
}

* {
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
}

body {
	margin: 0;
	font-family: "quasimoda", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	color: var(--text-body);
	background: var(--cream);
	line-height: 1.6;
}

h1, h2, h3 {
	font-family: "quasimoda", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	font-weight: 600;
	color: var(--charcoal);
	margin: 0 0 0.5em;
}

a {
	color: var(--charcoal);
}

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

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

/* Header */
.site-header {
	background: var(--charcoal);
	padding: 18px 0;
	position: sticky;
	top: 0;
	z-index: 50;
	box-shadow: 0 2px 10px rgba(0,0,0,0.25);
}

.site-header .wrap {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
}

.site-header .logo img {
	height: 48px;
	width: auto;
}

.site-nav ul {
	list-style: none;
	display: flex;
	gap: 28px;
	margin: 0;
	padding: 0;
}

.site-nav a {
	color: var(--cream);
	text-decoration: none;
	font-size: 0.95rem;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.site-nav a:hover {
	color: var(--accent-on-dark);
}

.nav-toggle {
	display: none;
	background: none;
	border: 1px solid rgba(255,255,255,0.4);
	color: var(--cream);
	padding: 8px 12px;
	font-size: 0.9rem;
	cursor: pointer;
}

/* Hero carousel */
.hero {
	position: relative;
	height: 78vh;
	min-height: 460px;
	overflow: hidden;
	background: var(--charcoal);
}

.hero-slide {
	position: absolute;
	inset: 0;
	opacity: 0;
	transition: opacity 1.2s ease-in-out;
	background-size: cover;
	background-position: center;
}

.hero-slide.is-active {
	opacity: 1;
}

.hero-slide::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(0,0,0,0.45) 0%, rgba(0,0,0,0.55) 100%);
}

.hero-content {
	position: relative;
	z-index: 2;
	height: 100%;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	text-align: center;
	color: #fff;
	padding: 0 20px;
}

.hero-content h1 {
	color: #fff;
	font-size: clamp(2.2rem, 5vw, 3.6rem);
	margin-bottom: 0.3em;
}

.hero-content p {
	font-size: 1.15rem;
	max-width: 560px;
	margin: 0 auto 1.6em;
	color: #f1f1f1;
}

.btn {
	display: inline-block;
	background: var(--charcoal);
	color: #fff;
	padding: 14px 32px;
	text-decoration: none;
	font-weight: 600;
	letter-spacing: 0.03em;
	text-transform: uppercase;
	font-size: 0.9rem;
	border: none;
	cursor: pointer;
	transition: background 0.2s ease;
}

.btn:hover {
	background: var(--charcoal-soft);
	color: #fff;
}

.hero-dots {
	position: absolute;
	bottom: 24px;
	left: 50%;
	transform: translateX(-50%);
	display: flex;
	gap: 10px;
	z-index: 3;
}

.hero-dot {
	width: 10px;
	height: 10px;
	border-radius: 50%;
	background: rgba(255,255,255,0.5);
	border: none;
	cursor: pointer;
	padding: 0;
}

.hero-dot.is-active {
	background: #fff;
}

/* Blurb */
.blurb {
	padding: 80px 0;
	text-align: center;
}

.blurb h2 {
	font-size: 2.1rem;
}

.blurb .rule {
	width: 60px;
	height: 2px;
	background: var(--charcoal);
	margin: 18px auto 26px;
}

.blurb p {
	max-width: 700px;
	margin: 0 auto;
	font-size: 1.08rem;
}

/* Section shared */
.section {
	padding: 80px 0;
}

.section-alt {
	background: var(--panel);
}

.section-heading {
	text-align: center;
	margin-bottom: 46px;
}

.section-heading h2 {
	font-size: 2rem;
}

.section-heading .rule {
	width: 60px;
	height: 2px;
	background: var(--charcoal);
	margin: 16px auto 0;
}

/* Booking */
.booking-wrap {
	background: #fff;
	padding: 40px;
	box-shadow: 0 8px 30px rgba(0,0,0,0.06);
}

.bookly-form-wrapper {
	max-width: 100%;
}

/* Contact + Map */
.contact-map-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 40px;
	align-items: stretch;
}

.contact-card {
	background: #fff;
	padding: 40px;
	box-shadow: 0 8px 30px rgba(0,0,0,0.06);
}

.contact-card h3 {
	font-size: 1.4rem;
	margin-bottom: 20px;
}

.contact-details {
	list-style: none;
	margin: 0 0 30px;
	padding: 0;
	font-size: 0.98rem;
}

.contact-details li {
	margin-bottom: 10px;
}

.contact-details strong {
	color: var(--charcoal);
	display: inline-block;
	min-width: 90px;
}

.map-embed {
	min-height: 420px;
	background: #ddd;
}

.map-embed iframe {
	width: 100%;
	height: 100%;
	min-height: 420px;
	border: 0;
	display: block;
}

/* Contact Form 7 styling */
.contact-card .wpcf7-form p {
	margin: 0 0 14px;
}

.contact-card .wpcf7-form input[type=text],
.contact-card .wpcf7-form input[type=email],
.contact-card .wpcf7-form input[type=tel],
.contact-card .wpcf7-form textarea {
	width: 100%;
	padding: 12px 14px;
	border: 1px solid #ccc;
	font-family: inherit;
	font-size: 0.95rem;
	background: var(--panel);
}

.contact-card .wpcf7-form textarea {
	min-height: 120px;
	resize: vertical;
}

.contact-card .wpcf7-form input[type=submit] {
	background: var(--charcoal);
	color: #fff;
	border: none;
	padding: 14px 30px;
	text-transform: uppercase;
	letter-spacing: 0.03em;
	font-size: 0.9rem;
	cursor: pointer;
}

.contact-card .wpcf7-form input[type=submit]:hover {
	background: var(--charcoal-soft);
}

/* Footer */
.site-footer {
	background: var(--charcoal);
	color: #c7ced1;
	padding: 50px 0 24px;
}

.footer-grid {
	display: grid;
	grid-template-columns: 1.2fr 1fr 1fr;
	gap: 40px;
	margin-bottom: 30px;
}

.site-footer .logo img {
	height: 44px;
	margin-bottom: 14px;
}

.site-footer h4 {
	color: #fff;
	font-size: 0.95rem;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	margin: 0 0 14px;
}

.site-footer ul {
	list-style: none;
	margin: 0;
	padding: 0;
	font-size: 0.92rem;
}

.site-footer ul li {
	margin-bottom: 8px;
}

.site-footer a {
	color: #c7ced1;
	text-decoration: none;
}

.site-footer a:hover {
	color: #fff;
}

.footer-social a {
	display: inline-block;
	margin-right: 14px;
	color: #fff;
}

.footer-bottom {
	border-top: 1px solid rgba(255,255,255,0.12);
	padding-top: 20px;
	font-size: 0.82rem;
	text-align: center;
	color: #8b9498;
}

@media (max-width: 860px) {
	.site-nav {
		position: absolute;
		top: 100%;
		left: 0;
		right: 0;
		background: var(--charcoal);
		display: none;
		padding: 10px 0;
	}

	.site-nav.is-open {
		display: block;
	}

	.site-nav ul {
		flex-direction: column;
		align-items: center;
		gap: 16px;
	}

	.nav-toggle {
		display: block;
	}

	.contact-map-grid {
		grid-template-columns: 1fr;
	}

	.footer-grid {
		grid-template-columns: 1fr;
	}
}
