/* ==========================================================================
   Cardinal Selling Services -- main stylesheet
   Palette: Cardinal Red & Charcoal
   ========================================================================== */

:root {
	--cardinal: #A6192E;
	--cardinal-dark: #7C1222;
	--cardinal-light: #C8283F;
	--charcoal: #201F22;
	--charcoal-soft: #3A383D;
	--text: #262427;
	--text-muted: #6B686D;
	--cream: #FAF7F4;
	--gray-100: #F3F0ED;
	--gray-200: #E7E3DF;
	--white: #FFFFFF;
	--font-heading: 'Poppins', Georgia, 'Times New Roman', serif;
	--font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
	--radius: 10px;
	--shadow-sm: 0 2px 10px rgba(32, 31, 34, 0.08);
	--shadow-md: 0 12px 30px rgba(32, 31, 34, 0.14);
	--max-width: 1180px;
}

/* --------------------------------------------------------------------------
   Reset & base
   -------------------------------------------------------------------------- */

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

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

body {
	margin: 0;
	font-family: var(--font-body);
	font-size: 17px;
	line-height: 1.65;
	color: var(--text);
	background: var(--white);
	overflow-x: hidden;
}

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

a {
	color: var(--cardinal);
	text-decoration: none;
}

a:hover {
	color: var(--cardinal-dark);
}

h1, h2, h3, h4 {
	font-family: var(--font-heading);
	font-weight: 700;
	line-height: 1.2;
	margin: 0 0 0.6em;
	color: var(--charcoal);
}

p {
	margin: 0 0 1.1em;
}

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

.screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px);
	white-space: nowrap;
}

.skip-link {
	position: absolute;
	top: -100px;
	left: 0;
	background: var(--cardinal);
	color: var(--white);
	padding: 12px 20px;
	z-index: 10000;
	border-radius: 0 0 6px 0;
}

.skip-link:focus {
	top: 0;
	color: var(--white);
}

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

.wrap-narrow {
	max-width: 760px;
}

.text-center {
	text-align: center;
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */

.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	font-family: var(--font-heading);
	font-weight: 600;
	font-size: 15px;
	letter-spacing: 0.02em;
	padding: 13px 26px;
	border-radius: 999px;
	border: 2px solid transparent;
	cursor: pointer;
	transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease, color 0.15s ease;
	white-space: nowrap;
}

.btn-primary {
	background: var(--cardinal);
	color: var(--white);
	box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
	background: var(--cardinal-dark);
	color: var(--white);
	transform: translateY(-1px);
	box-shadow: var(--shadow-md);
}

.btn-outline {
	background: transparent;
	border-color: currentColor;
	color: var(--white);
}

.section .btn-outline {
	color: var(--charcoal);
	border-color: var(--charcoal);
}

.section .btn-outline:hover {
	background: var(--charcoal);
	color: var(--white);
}

.btn-lg {
	padding: 16px 32px;
	font-size: 16px;
}

.cta-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 16px;
	justify-content: center;
	margin-top: 28px;
}

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */

.site-header {
	position: sticky;
	top: 0;
	z-index: 200;
	background: var(--white);
	border-bottom: 1px solid transparent;
	transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.site-header.is-scrolled {
	box-shadow: var(--shadow-sm);
	border-bottom-color: var(--gray-200);
}

.site-header-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	padding-top: 12px;
	padding-bottom: 12px;
}

.site-brand {
	display: flex;
	align-items: center;
	gap: 12px;
	color: var(--charcoal);
}

.site-brand:hover {
	color: var(--charcoal);
}

.site-logo {
	width: 52px;
	height: 52px;
	border-radius: 50%;
	object-fit: cover;
	flex-shrink: 0;
}

.site-brand-text {
	display: flex;
	flex-direction: column;
	line-height: 1.25;
}

.site-brand-name {
	font-family: var(--font-heading);
	font-weight: 700;
	font-size: 18px;
	color: var(--charcoal);
}

.site-brand-tagline {
	font-size: 12px;
	color: var(--text-muted);
	letter-spacing: 0.02em;
}

.site-nav {
	display: flex;
	align-items: center;
	gap: 28px;
}

.nav-menu {
	display: flex;
	align-items: center;
	gap: 26px;
	flex-wrap: wrap;
}

.nav-menu a {
	font-family: var(--font-heading);
	font-weight: 600;
	font-size: 15px;
	color: var(--charcoal);
}

.nav-menu a:hover {
	color: var(--cardinal);
}

.nav-cta {
	white-space: nowrap;
}

.menu-toggle {
	display: none;
	flex-direction: column;
	justify-content: center;
	gap: 5px;
	width: 42px;
	height: 42px;
	background: transparent;
	border: 1px solid var(--gray-200);
	border-radius: 8px;
	cursor: pointer;
}

.menu-toggle-bar {
	display: block;
	width: 20px;
	height: 2px;
	margin: 0 auto;
	background: var(--charcoal);
	transition: transform 0.2s ease, opacity 0.2s ease;
}

.menu-toggle.is-active .menu-toggle-bar:nth-child(1) {
	transform: translateY(7px) rotate(45deg);
}

.menu-toggle.is-active .menu-toggle-bar:nth-child(2) {
	opacity: 0;
}

.menu-toggle.is-active .menu-toggle-bar:nth-child(3) {
	transform: translateY(-7px) rotate(-45deg);
}

/* --------------------------------------------------------------------------
   Hero (home page)
   -------------------------------------------------------------------------- */

.hero {
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
	padding: 110px 0 100px;
	color: var(--white);
}

.hero-inner {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	gap: 6px;
}

.hero-logo {
	width: 130px;
	height: 130px;
	border-radius: 50%;
	margin-bottom: 18px;
	box-shadow: 0 8px 30px rgba(0, 0, 0, 0.35);
	border: 4px solid rgba(255, 255, 255, 0.9);
}

.hero-title {
	color: var(--white);
	font-size: clamp(30px, 5vw, 48px);
	margin-bottom: 10px;
}

.hero-subtitle {
	font-size: clamp(18px, 2.4vw, 22px);
	font-weight: 500;
	color: var(--gray-100);
	margin-bottom: 30px;
	max-width: 640px;
}

/* Secondary page hero (Commercial Project Planning / Our Past Successes) */

.page-hero {
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
	padding: 90px 0 76px;
	color: var(--white);
}

.eyebrow {
	font-family: var(--font-heading);
	text-transform: uppercase;
	letter-spacing: 0.14em;
	font-size: 13px;
	font-weight: 600;
	color: var(--gray-100);
	margin-bottom: 10px;
}

.page-hero-title {
	color: var(--white);
	font-size: clamp(28px, 4.6vw, 42px);
	margin-bottom: 8px;
}

.page-hero-subtitle {
	font-size: clamp(16px, 2vw, 19px);
	color: var(--gray-100);
	font-weight: 500;
	margin: 0;
}

/* --------------------------------------------------------------------------
   Sections
   -------------------------------------------------------------------------- */

.section {
	padding: 68px 0;
}

.alt-bg {
	background: var(--cream);
}

.section-title {
	font-size: clamp(24px, 3.4vw, 32px);
	margin-bottom: 18px;
}

.section-subtitle {
	font-size: 17px;
	color: var(--text-muted);
	font-weight: 500;
	margin-top: -10px;
	margin-bottom: 34px;
}

.lede {
	font-size: 19px;
	color: var(--text);
}

.section-intro .lede {
	margin-bottom: 0;
}

.callout-statement {
	font-family: var(--font-heading);
	font-weight: 700;
	font-size: clamp(20px, 2.6vw, 26px);
	color: var(--cardinal);
	margin-top: 22px;
	margin-bottom: 0;
}

/* Tagline band */

.section-tagline {
	background: var(--charcoal);
	color: var(--white);
	padding: 56px 0;
}

.tagline-strong {
	font-family: var(--font-heading);
	font-weight: 700;
	font-size: clamp(20px, 3vw, 28px);
	color: var(--white);
	margin-bottom: 8px;
}

.tagline-brand {
	font-size: 17px;
	color: var(--gray-100);
	margin: 0;
}

/* Services grid */

.service-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
	gap: 20px;
	margin-top: 10px;
}

.service-card {
	display: flex;
	align-items: flex-start;
	gap: 14px;
	background: var(--white);
	border: 1px solid var(--gray-200);
	border-radius: var(--radius);
	padding: 22px 20px;
	box-shadow: var(--shadow-sm);
	transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.service-card:hover {
	transform: translateY(-3px);
	box-shadow: var(--shadow-md);
}

.service-icon {
	flex-shrink: 0;
	width: 30px;
	height: 30px;
	border-radius: 50%;
	background: var(--cardinal);
	color: var(--white);
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 14px;
	font-weight: 700;
}

.service-label {
	font-family: var(--font-heading);
	font-weight: 600;
	font-size: 15.5px;
	color: var(--charcoal);
	padding-top: 4px;
}

/* Split content + image */

.section-split .wrap {
	display: grid;
	grid-template-columns: 1.1fr 1fr;
	gap: 48px;
	align-items: center;
}

.split-media img {
	border-radius: var(--radius);
	box-shadow: var(--shadow-md);
}

.split-copy p:last-child {
	margin-bottom: 0;
}

/* Stat banner (Commercial Project Planning) */

.section-stat-banner {
	background: var(--cardinal);
	padding: 34px 0;
}

.stat-banner-text {
	color: var(--white);
	font-family: var(--font-heading);
	font-weight: 600;
	font-size: clamp(18px, 2.4vw, 22px);
	margin: 0;
}

/* Story + stat row (Our Past Successes) */

.section-story .lede {
	margin-bottom: 1.1em;
}

.story-highlight {
	font-family: var(--font-heading);
	font-weight: 700;
	font-size: clamp(20px, 2.6vw, 25px);
	color: var(--cardinal);
	margin-top: 24px;
	margin-bottom: 0;
}

.stat-row-inner {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 24px;
	text-align: center;
}

.stat-card {
	background: var(--white);
	border-radius: var(--radius);
	padding: 30px 20px;
	box-shadow: var(--shadow-sm);
}

.stat-number {
	font-family: var(--font-heading);
	font-weight: 800;
	font-size: clamp(28px, 4vw, 38px);
	color: var(--cardinal);
	margin: 0 0 6px;
}

.stat-label {
	font-weight: 600;
	color: var(--charcoal);
	margin: 0;
	font-size: 15px;
}

/* Photo gallery */

.photo-gallery {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 16px;
	margin-top: 10px;
}

.photo-gallery-item {
	display: block;
	width: 100%;
	margin: 0;
	padding: 0;
	background: none;
	border: 0;
	border-radius: var(--radius);
	overflow: hidden;
	box-shadow: var(--shadow-sm);
	aspect-ratio: 4 / 3;
	cursor: pointer;
	font: inherit;
}

.photo-gallery-item:focus-visible {
	outline: 3px solid var(--cardinal);
	outline-offset: 2px;
}

.photo-gallery-item img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.3s ease;
}

.photo-gallery-item:hover img {
	transform: scale(1.05);
}

.gallery-note {
	text-align: center;
	color: var(--text-muted);
	font-size: 14px;
	margin-top: 24px;
	margin-bottom: 0;
	font-style: italic;
}

.lightbox-overlay {
	position: fixed;
	inset: 0;
	background: rgba(20, 19, 21, 0.92);
	z-index: 1000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 30px;
}

/* The base rule above sets display:flex unconditionally, which -- per the
   CSS cascade -- overrides the browser's built-in "[hidden]{display:none}"
   rule (an author stylesheet always wins over the user-agent default,
   regardless of specificity). Without this override the overlay showed
   on every page load instead of only after a gallery photo was clicked. */
.lightbox-overlay[hidden] {
	display: none;
}

.lightbox-overlay img {
	max-width: 100%;
	max-height: 88vh;
	border-radius: 6px;
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.lightbox-close {
	position: absolute;
	top: 20px;
	right: 24px;
	background: transparent;
	border: none;
	color: var(--white);
	font-size: 36px;
	line-height: 1;
	cursor: pointer;
}

body.lightbox-open {
	overflow: hidden;
}

/* CTA sections */

.section-cta {
	background: var(--gray-100);
}

.cta-lead-in {
	font-family: var(--font-heading);
	font-weight: 600;
	font-size: 18px;
	color: var(--charcoal);
	margin-top: -8px;
}

/* Generic page fallback */

.section-generic-page {
	padding-top: 90px;
	padding-bottom: 90px;
}

.page-title {
	font-size: clamp(26px, 4vw, 34px);
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.site-footer {
	background: var(--charcoal);
	color: var(--gray-100);
}

.site-footer-inner {
	display: grid;
	grid-template-columns: 1.3fr 1fr 1fr;
	gap: 40px;
	padding: 56px 24px 40px;
}

.footer-logo {
	width: 48px;
	height: 48px;
	border-radius: 50%;
	margin-bottom: 14px;
}

.footer-brand-name {
	font-family: var(--font-heading);
	font-weight: 700;
	color: var(--white);
	font-size: 18px;
	margin-bottom: 4px;
}

.footer-tagline {
	color: var(--gray-200);
	font-size: 14px;
	margin: 0;
}

.footer-heading {
	color: var(--white);
	font-size: 15px;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	margin-bottom: 16px;
}

.footer-menu {
	flex-direction: column;
	align-items: flex-start;
	gap: 10px;
}

.footer-menu a,
.footer-col-contact a {
	color: var(--gray-100);
	font-weight: 500;
}

.footer-menu a:hover,
.footer-col-contact a:hover {
	color: var(--white);
}

.footer-col-contact p {
	margin: 0 0 10px;
}

.footer-referral {
	border-top: 1px solid rgba(255, 255, 255, 0.12);
	background: rgba(255, 255, 255, 0.04);
}

.footer-referral p {
	margin: 0;
	padding: 16px 24px;
	text-align: center;
	font-size: 14px;
	color: var(--gray-200);
}

.footer-referral strong {
	color: var(--white);
}

.site-footer-bottom {
	border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.site-footer-bottom p {
	margin: 0;
	padding: 18px 24px;
	text-align: center;
	font-size: 13px;
	color: rgba(255, 255, 255, 0.6);
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 900px) {
	.section-split .wrap {
		grid-template-columns: 1fr;
	}

	.split-media {
		order: -1;
	}

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

	.footer-col-brand {
		grid-column: 1 / -1;
	}
}

@media (max-width: 780px) {
	.menu-toggle {
		display: inline-flex;
	}

	.site-nav {
		position: absolute;
		top: 100%;
		left: 0;
		right: 0;
		background: var(--white);
		flex-direction: column;
		align-items: stretch;
		gap: 0;
		padding: 10px 24px 20px;
		box-shadow: var(--shadow-md);
		max-height: 0;
		overflow: hidden;
		transition: max-height 0.25s ease;
	}

	.site-nav.is-open {
		max-height: 420px;
	}

	.nav-menu {
		flex-direction: column;
		align-items: flex-start;
		gap: 0;
	}

	.nav-menu li {
		width: 100%;
		border-bottom: 1px solid var(--gray-200);
	}

	.nav-menu a {
		display: block;
		padding: 14px 0;
	}

	.nav-cta {
		margin-top: 16px;
		align-self: flex-start;
	}

	.stat-row-inner {
		grid-template-columns: 1fr;
	}

	.photo-gallery {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 520px) {
	.hero {
		padding: 80px 0 70px;
	}

	.page-hero {
		padding: 70px 0 56px;
	}

	.section {
		padding: 50px 0;
	}

	.photo-gallery {
		grid-template-columns: 1fr 1fr;
		gap: 10px;
	}

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

	.cta-actions {
		flex-direction: column;
		align-items: stretch;
	}

	.cta-actions .btn {
		width: 100%;
	}
}
