/* ==========================================================================
   BBG.73 – public site styles
   Palette derived from the BBG.73 logo: charcoal + gold (token names kept).
   ========================================================================== */

:root {
	--navy: #232629;
	--navy-2: #16181b;
	--orange: #c9901c;
	--orange-2: #a87612;
	--ink: #2b3242;
	--muted: #6f7787;
	--line: #e6e6e3;
	--bg: #ffffff;
	--bg-alt: #f4f3f0;
	--radius: 10px;
	--shadow: 0 10px 30px rgba(22,24,27, .10);
	--container: 1160px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 84px; }

body {
	margin: 0;
	font-family: 'Open Sans', system-ui, -apple-system, sans-serif;
	color: var(--ink);
	background: var(--bg);
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
	font-family: 'Montserrat', system-ui, sans-serif;
	line-height: 1.15;
	color: var(--navy);
}

a { color: var(--orange); text-decoration: none; }
a:hover { color: var(--orange-2); }
img { max-width: 100%; display: block; }

.container {
	width: 100%;
	max-width: var(--container);
	margin: 0 auto;
	padding: 0 20px;
}

/* ===== Header ===== */
.site-header {
	position: sticky;
	top: 0;
	z-index: 50;
	background: #fff;
	border-top: 4px solid var(--orange);
	box-shadow: 0 1px 0 var(--line);
}

.header-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	min-height: 72px;
	gap: 1rem;
}

.brand { display: flex; align-items: center; gap: .7rem; color: var(--navy); }
.brand-logo { height: 56px; width: auto; display: block; }
.brand-tagline {
	padding-left: .8rem;
	border-left: 2px solid var(--orange);
	color: var(--muted);
	font-size: .72rem;
	font-weight: 600;
	letter-spacing: .08em;
	text-transform: uppercase;
	line-height: 1.3;
	max-width: 11em;
}

.main-nav { display: flex; align-items: center; gap: 1.6rem; }
.main-nav a {
	color: var(--ink);
	font-weight: 600;
	font-size: .85rem;
	letter-spacing: .06em;
	text-transform: uppercase;
	padding: .4rem 0;
	position: relative;
}
.main-nav a:not(.nav-cta):hover { color: var(--navy); }
.main-nav a:not(.nav-cta)::after {
	content: '';
	position: absolute;
	left: 0; bottom: -2px;
	width: 0; height: 2px;
	background: var(--orange);
	transition: width .2s ease;
}
.main-nav a:not(.nav-cta):hover::after { width: 100%; }

.nav-cta {
	background: var(--orange);
	color: #fff !important;
	padding: .55rem 1.1rem !important;
	border-radius: var(--radius);
}
.nav-cta:hover { background: var(--orange-2); }

.nav-toggle {
	display: none;
	flex-direction: column;
	gap: 5px;
	background: none;
	border: 0;
	cursor: pointer;
	padding: 8px;
}
.nav-toggle span {
	width: 26px; height: 3px;
	background: var(--navy);
	border-radius: 2px;
	transition: .25s;
}

/* ===== Buttons ===== */
.btn {
	display: inline-block;
	font-family: 'Montserrat', sans-serif;
	font-weight: 700;
	font-size: .9rem;
	letter-spacing: .04em;
	text-transform: uppercase;
	padding: .85rem 1.7rem;
	border-radius: var(--radius);
	border: 2px solid transparent;
	cursor: pointer;
	transition: .2s ease;
}
.btn-primary { background: var(--orange); color: #fff; border-color: var(--orange); }
.btn-primary:hover { background: var(--orange-2); border-color: var(--orange-2); color: #fff; }
.btn-outline { background: transparent; color: #fff; border-color: rgba(255,255,255,.6); }
.btn-outline:hover { background: #fff; color: var(--navy); border-color: #fff; }

/* ===== Hero ===== */
.hero {
	position: relative;
	min-height: 74vh;
	display: flex;
	align-items: center;
	color: #fff;
	background:
		radial-gradient(120% 120% at 80% -10%, rgba(201,144,28,.28), transparent 50%),
		linear-gradient(160deg, var(--navy-2) 0%, var(--navy) 55%, #34383d 100%);
	overflow: hidden;
}
.hero::after {
	content: '';
	position: absolute; inset: 0;
	background-image: linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px),
		linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
	background-size: 44px 44px;
	mask-image: linear-gradient(180deg, transparent, #000 60%);
	opacity: .5;
}
.hero-content { position: relative; z-index: 2; max-width: 720px; padding: 5rem 20px; }
.hero-content h1 {
	color: #fff;
	font-weight: 800;
	font-size: clamp(2.1rem, 5vw, 3.6rem);
	text-transform: uppercase;
	margin: 0 0 1rem;
}
.hero-sub { font-size: 1.15rem; color: rgba(255,255,255,.85); margin: 0 0 2rem; max-width: 34em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; }

/* ===== Generic section ===== */
.section { padding: 5.5rem 0; }
.section-about { background: var(--bg); }
.section-services { background: var(--bg-alt); }
.section-gallery { background: var(--bg); }
.section-contact { background: var(--navy-2); color: #fff; }

.section-title {
	font-size: clamp(1.6rem, 3vw, 2.3rem);
	font-weight: 800;
	text-transform: uppercase;
	margin: 0 0 1.4rem;
	position: relative;
}
.section-title.center { text-align: center; margin-bottom: 2.6rem; }
.section-title::after {
	content: '';
	display: block;
	width: 64px; height: 4px;
	background: var(--orange);
	margin-top: .6rem;
	border-radius: 2px;
}
.section-title.center::after { margin-left: auto; margin-right: auto; }

/* ===== About ===== */
.about-grid {
	display: grid;
	grid-template-columns: 1.4fr .8fr;
	gap: 3rem;
	align-items: center;
}
.rich-text { color: var(--ink); font-size: 1.05rem; }
.rich-text p { margin: 0 0 1rem; }
.about-media { display: flex; justify-content: center; }
.about-media img { filter: drop-shadow(var(--shadow)); }

/* ===== Services ===== */
.services-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
	gap: 1.6rem;
}
.service-card {
	background: #fff;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	padding: 1.4rem;
	transition: transform .2s ease, box-shadow .2s ease;
}
.service-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.service-thumb {
	aspect-ratio: 16 / 10;
	border-radius: 8px;
	overflow: hidden;
	margin-bottom: 1rem;
	background: var(--bg-alt);
	display: flex; align-items: center; justify-content: center;
}
.service-thumb img { width: 100%; height: 100%; object-fit: cover; }
.service-thumb img.placeholder { width: 56px; height: 56px; opacity: .5; }
.service-card h3 { margin: 0 0 .5rem; font-size: 1.2rem; }
.service-card p { margin: 0; color: var(--muted); }

/* ===== Gallery ===== */
.gallery-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
	gap: 12px;
}
.gallery-item {
	position: relative;
	aspect-ratio: 1 / 1;
	border-radius: 8px;
	overflow: hidden;
	border: 3px solid transparent;
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.gallery-item:hover img { transform: scale(1.06); }
.gallery-item:hover { border-color: var(--orange); }
.gallery-caption {
	position: absolute; left: 0; right: 0; bottom: 0;
	padding: .5rem .7rem;
	background: linear-gradient(transparent, rgba(22,24,27,.85));
	color: #fff; font-size: .85rem;
}

/* ===== Contact ===== */
.contact-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 3rem; }
.section-contact .section-title { color: #fff; }
.contact-list { list-style: none; margin: 0; padding: 0; }
.contact-list li { margin-bottom: 1.1rem; display: flex; flex-direction: column; }
.contact-label { font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; color: var(--orange); font-weight: 700; }
.contact-list a, .contact-list span:not(.contact-label) { color: #fff; font-size: 1.1rem; }
.contact-list a:hover { color: var(--orange); }

.contact-form { background: #fff; padding: 2rem; border-radius: var(--radius); box-shadow: var(--shadow); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field { margin-bottom: 1rem; display: flex; flex-direction: column; }
.contact-form label { font-size: .8rem; font-weight: 600; color: var(--ink); margin-bottom: .35rem; }
.contact-form input, .contact-form textarea {
	width: 100%;
	padding: .7rem .85rem;
	border: 1px solid var(--line);
	border-radius: 8px;
	font: inherit;
	color: var(--ink);
	background: #fbfbfa;
	transition: border-color .15s, box-shadow .15s;
}
.contact-form input:focus, .contact-form textarea:focus {
	outline: none;
	border-color: var(--orange);
	box-shadow: 0 0 0 3px rgba(201,144,28,.15);
	background: #fff;
}
.contact-form textarea { resize: vertical; }
.contact-form .btn { margin-top: .5rem; }
.contact-form .error { color: #c0392b; font-size: .8rem; margin-top: .3rem; }
.form-errors { background: #fdecea; color: #b93a2b; padding: .7rem 1rem; border-radius: 8px; margin-bottom: 1rem; }

/* Honeypot – not rendered, so browser autofill skips it; bots parsing the HTML still fill it */
.hp-wrap { display: none; }

.empty-note { text-align: center; color: var(--muted); }

/* ===== Footer ===== */
.site-footer { background: var(--navy); color: rgba(255,255,255,.75); padding: 2.5rem 0; }
.footer-inner { display: flex; flex-wrap: wrap; gap: 1.5rem 3rem; align-items: center; justify-content: space-between; }
.footer-brand { display: flex; align-items: center; gap: .8rem; }

.footer-brand span { font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; }
.footer-contact { display: flex; flex-direction: column; gap: .2rem; }
.footer-contact a { color: rgba(255,255,255,.85); }
.footer-contact a:hover { color: var(--orange); }
.footer-copy { font-size: .8rem; width: 100%; border-top: 1px solid rgba(255,255,255,.12); padding-top: 1.2rem; }

/* ===== Flash messages ===== */
.flash-stack { position: fixed; top: 88px; left: 50%; transform: translateX(-50%); z-index: 100; width: min(92%, 520px); }
.flash {
	padding: .9rem 1.2rem;
	border-radius: var(--radius);
	margin-bottom: .6rem;
	box-shadow: var(--shadow);
	font-weight: 600;
	animation: flashIn .3s ease;
}
.flash.success { background: #e6f6ec; color: #1e7a44; border-left: 4px solid #2ecc71; }
.flash.error { background: #fdecea; color: #b93a2b; border-left: 4px solid #e74c3c; }
.flash.info { background: #e8f0fb; color: #1b4b8a; border-left: 4px solid #3b82f6; }
@keyframes flashIn { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }

/* ===== Lightbox ===== */
.lightbox {
	position: fixed; inset: 0;
	background: rgba(10,11,12,.92);
	display: none;
	align-items: center; justify-content: center;
	z-index: 200; padding: 2rem;
}
.lightbox.open { display: flex; }
.lightbox-figure { margin: 0; display: flex; flex-direction: column; align-items: center; gap: .7rem; }
.lightbox img { max-width: 84vw; max-height: 82vh; border-radius: 6px; box-shadow: 0 20px 60px rgba(0,0,0,.5); }
.lightbox figcaption { display: flex; gap: 1rem; color: rgba(255,255,255,.85); font-size: .95rem; }
.lightbox-counter { color: var(--orange); font-weight: 600; }
.lightbox-nav {
	position: absolute; top: 50%; transform: translateY(-50%);
	width: 3.2rem; height: 3.2rem;
	display: flex; align-items: center; justify-content: center;
	background: rgba(255,255,255,.1); color: #fff;
	border: 0; border-radius: 50%;
	font-size: 2.4rem; line-height: 1; cursor: pointer;
	transition: background .2s ease;
}
.lightbox-nav:hover { background: var(--orange); }
.lightbox-prev { left: 1.2rem; }
.lightbox-next { right: 1.2rem; }
.lightbox-close { position: absolute; top: 1.2rem; right: 1.6rem; color: #fff; font-size: 2.4rem; cursor: pointer; line-height: 1; background: none; border: 0; }

/* ===== Responsive ===== */
@media (max-width: 860px) {
	.nav-toggle { display: flex; }
	.main-nav {
		position: fixed;
		top: 76px; right: 0;
		width: min(78%, 320px);
		height: calc(100vh - 76px);
		background: #fff;
		flex-direction: column;
		align-items: flex-start;
		padding: 1.5rem;
		gap: .4rem;
		box-shadow: -6px 0 30px rgba(22,24,27,.15);
		transform: translateX(105%);
		transition: transform .28s ease;
	}
	.main-nav.open { transform: translateX(0); }
	.main-nav a { width: 100%; padding: .8rem 0; border-bottom: 1px solid var(--line); }
	.main-nav .nav-cta { text-align: center; margin-top: .6rem; }
	.about-grid, .contact-grid { grid-template-columns: 1fr; }
	.about-media { order: -1; }
	.field-row { grid-template-columns: 1fr; }
	.brand-logo { height: 46px; }
	.lightbox img { max-width: 100vw; }
	.lightbox-nav { top: auto; bottom: 1rem; transform: none; }
}

@media (max-width: 600px) {
	.gallery-grid { grid-template-columns: repeat(3, 1fr); gap: 6px; }
	.gallery-item { border-radius: 6px; border-width: 2px; }
	.gallery-caption { display: none; }
}

@media (max-width: 420px) {
	.brand-tagline { display: none; }
}
