/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html, body, h1, h2, h3, h4, p, figure, ul, ol { margin: 0; padding: 0; }
ul, ol { list-style: none; }
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
button { font: inherit; cursor: pointer; }
html { scroll-behavior: smooth; }

/* ---------- Theme variables ---------- */
:root,
[data-theme="light"] {
	--bg: #ffffff;
	--bg-alt: #f6f5f4;
	--bg-elevated: #ffffff;
	--text: #1a1a1a;
	--text-muted: #62605e;
	--border: #e7e4e1;
	--accent: #c51d23;
	--accent-hover: #9e161b;
	--accent-contrast: #ffffff;
	--header-bg: rgba(255, 255, 255, 0.92);
	--shadow: 0 10px 30px rgba(20, 15, 15, 0.08);
	--overlay: rgba(20, 15, 15, 0.55);
}

[data-theme="dark"] {
	--bg: #111213;
	--bg-alt: #18191b;
	--bg-elevated: #1e2022;
	--text: #f2f1ef;
	--text-muted: #a8a5a1;
	--border: #2c2e30;
	--accent: #e6383e;
	--accent-hover: #ff5257;
	--accent-contrast: #ffffff;
	--header-bg: rgba(17, 18, 19, 0.85);
	--shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
	--overlay: rgba(0, 0, 0, 0.75);
}

html { -webkit-font-smoothing: antialiased; }
body {
	font-family: "Open Sans", Arial, Helvetica, sans-serif;
	background: var(--bg);
	color: var(--text);
	line-height: 1.65;
	transition: background-color 0.25s ease, color 0.25s ease;
}
h1, h2, h3, h4 {
	font-family: "Montserrat", Arial, Helvetica, sans-serif;
	font-weight: 700;
	line-height: 1.25;
	color: var(--text);
}
.container {
	width: 100%;
	max-width: 1180px;
	margin: 0 auto;
	padding: 0 24px;
}
.section { padding: 88px 0; }
.section-alt { background: var(--bg-alt); }
.section-head { max-width: 640px; margin: 0 auto 48px; text-align: center; }
.eyebrow {
	display: inline-block;
	font-family: "Montserrat", sans-serif;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--accent);
	margin-bottom: 14px;
}
.section-head h2 { font-size: clamp(28px, 4vw, 38px); margin-bottom: 14px; }
.section-head p { color: var(--text-muted); font-size: 17px; }

/* ---------- Buttons ---------- */
.btn {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 14px 30px;
	border-radius: 6px;
	font-family: "Montserrat", sans-serif;
	font-weight: 600;
	font-size: 14px;
	letter-spacing: 0.03em;
	text-transform: uppercase;
	border: 2px solid transparent;
	transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}
.btn-primary { background: var(--accent); color: var(--accent-contrast); }
.btn-primary:hover { background: var(--accent-hover); transform: translateY(-2px); box-shadow: 0 10px 24px rgba(197, 29, 35, 0.35); }
.btn-outline { border-color: var(--border); color: var(--text); }
.btn-outline:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); }

/* ---------- Header ---------- */
.site-header {
	position: sticky;
	top: 0;
	z-index: 100;
	background: var(--header-bg);
	backdrop-filter: blur(10px);
	border-bottom: 1px solid var(--border);
}
.header-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	height: 84px;
}
.logo img { height: 48px; width: auto; }
.main-nav { display: flex; align-items: center; gap: 34px; }
.main-nav a {
	font-family: "Montserrat", sans-serif;
	font-size: 14px;
	font-weight: 600;
	letter-spacing: 0.02em;
	color: var(--text);
	position: relative;
	padding: 6px 0;
	transition: color 0.2s ease;
}
.main-nav a::after {
	content: "";
	position: absolute;
	left: 0; right: 0; bottom: 0;
	height: 2px;
	background: var(--accent);
	transform: scaleX(0);
	transform-origin: left;
	transition: transform 0.2s ease;
}
.main-nav a:hover, .main-nav a.active { color: var(--accent); }
.main-nav a:hover::after, .main-nav a.active::after { transform: scaleX(1); }

.header-actions { display: flex; align-items: center; gap: 14px; }
.theme-toggle {
	width: 42px; height: 42px;
	border-radius: 50%;
	border: 1px solid var(--border);
	background: var(--bg-alt);
	display: flex; align-items: center; justify-content: center;
	color: var(--text);
	transition: border-color 0.2s ease, transform 0.2s ease;
}
.theme-toggle:hover { border-color: var(--accent); transform: rotate(15deg); }
.theme-toggle svg { width: 20px; height: 20px; }
.icon-sun { display: none; }
[data-theme="dark"] .icon-sun { display: block; }
[data-theme="dark"] .icon-moon { display: none; }

.nav-toggle { display: none; width: 42px; height: 42px; border: none; background: none; color: var(--text); }
.nav-toggle svg { width: 26px; height: 26px; }

@media (max-width: 900px) {
	.main-nav {
		position: fixed;
		top: 84px; left: 0; right: 0;
		background: var(--bg);
		border-bottom: 1px solid var(--border);
		flex-direction: column;
		align-items: flex-start;
		gap: 0;
		padding: 8px 24px 20px;
		transform: translateY(-8px);
		opacity: 0;
		visibility: hidden;
		transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
	}
	.main-nav.open { opacity: 1; transform: translateY(0); visibility: visible; }
	.main-nav a { width: 100%; padding: 14px 0; border-bottom: 1px solid var(--border); }
	.nav-toggle { display: flex; align-items: center; justify-content: center; }
}

/* ---------- Hero ---------- */
.hero {
	position: relative;
	min-height: 640px;
	display: flex;
	align-items: center;
	color: #fff;
	overflow: hidden;
}
.hero-bg {
	position: absolute; inset: 0;
	background-size: cover;
	background-position: center;
}
.hero-bg::after {
	content: "";
	position: absolute; inset: 0;
	background: linear-gradient(120deg, rgba(10,8,8,0.82) 0%, rgba(10,8,8,0.55) 55%, rgba(197,29,35,0.35) 100%);
}
.hero-content { position: relative; max-width: 640px; }
.hero-content .eyebrow { color: #ffb9bb; }
.hero-content h1 { font-size: clamp(34px, 5.2vw, 56px); margin-bottom: 20px; color: #fff; }
.hero-content p { font-size: 18px; color: rgba(255,255,255,0.88); margin-bottom: 34px; max-width: 520px; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }
.hero .btn-outline { border-color: rgba(255,255,255,0.5); color: #fff; }
.hero .btn-outline:hover { border-color: #fff; }

/* ---------- Page header (interior pages) ---------- */
.page-header {
	position: relative;
	padding: 150px 0 70px;
	color: #fff;
	text-align: center;
}
.page-header .hero-bg::after { background: linear-gradient(180deg, rgba(10,8,8,0.78), rgba(10,8,8,0.68)); }
.page-header h1 { color: #fff; font-size: clamp(30px, 4.5vw, 44px); }
.breadcrumb { position: relative; margin-top: 14px; font-size: 14px; color: rgba(255,255,255,0.75); }
.breadcrumb a { color: rgba(255,255,255,0.9); }
.breadcrumb a:hover { color: var(--accent); }

/* ---------- Cards / grids ---------- */
.grid { display: grid; gap: 30px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.about-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 60px; align-items: center; }
.about-grid img { border-radius: 12px; box-shadow: var(--shadow); }

.avatar-intro { max-width: 640px; margin: 0 auto; text-align: center; }
.avatar-intro img {
	width: 130px; height: 130px;
	border-radius: 50%;
	object-fit: cover;
	margin: 0 auto 26px;
	box-shadow: var(--shadow);
	border: 4px solid var(--bg-elevated);
}
.avatar-intro p { text-align: left; }

.story-band {
	position: relative;
	background: #17181a;
	color: #fff;
	text-align: center;
	overflow: hidden;
}
.story-band .story-inner { position: relative; max-width: 760px; margin: 0 auto; }
.story-band h2 { color: #fff; font-weight: 400; font-size: clamp(30px, 4vw, 40px); margin-bottom: 30px; }
.story-band .avatar-intro img { margin-bottom: 18px; }
.story-band .client-name { font-size: 15px; font-weight: 700; letter-spacing: 0.02em; margin-bottom: 30px; }
.story-band .client-name .position { color: rgba(255,255,255,0.55); font-weight: 400; margin-left: 6px; }
.story-band p.bio-text { color: rgba(255,255,255,0.82); font-size: 16px; line-height: 1.8; text-align: center; }

.service-card {
	background: var(--bg-elevated);
	border: 1px solid var(--border);
	border-radius: 14px;
	padding: 40px 32px;
	transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: var(--accent); }
.service-card .icon {
	width: 56px; height: 56px;
	border-radius: 12px;
	background: rgba(197, 29, 35, 0.12);
	color: var(--accent);
	display: flex; align-items: center; justify-content: center;
	margin-bottom: 22px;
}
.service-card h3 { font-size: 20px; margin-bottom: 10px; }
.service-card p { color: var(--text-muted); font-size: 15px; margin-bottom: 16px; }
.tag-list { display: flex; flex-wrap: wrap; gap: 8px; }
.tag {
	font-size: 12px;
	font-weight: 600;
	padding: 6px 12px;
	border-radius: 20px;
	background: var(--bg-alt);
	color: var(--text-muted);
	border: 1px solid var(--border);
}

.portfolio-card {
	position: relative;
	border-radius: 14px;
	overflow: hidden;
	aspect-ratio: 4 / 3;
	box-shadow: var(--shadow);
}
.portfolio-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.portfolio-card:hover img { transform: scale(1.08); }
.portfolio-card .overlay {
	position: absolute; inset: 0;
	background: linear-gradient(0deg, rgba(10,8,8,0.85) 0%, rgba(10,8,8,0.05) 55%);
	display: flex; flex-direction: column; justify-content: flex-end;
	padding: 26px;
	color: #fff;
}
.portfolio-card .overlay h3 { color: #fff; font-size: 20px; margin-bottom: 6px; }
.portfolio-card .overlay span { font-size: 13px; color: rgba(255,255,255,0.8); }
.portfolio-card .overlay .count { font-size: 13px; font-weight: 600; color: var(--accent); background: #fff; display: inline-block; align-self: flex-start; padding: 3px 10px; border-radius: 20px; margin-bottom: 10px; width: fit-content; }

/* Masonry gallery for category pages */
.masonry {
	column-count: 3;
	column-gap: 18px;
}
.masonry .item {
	break-inside: avoid;
	margin-bottom: 18px;
	border-radius: 10px;
	overflow: hidden;
	box-shadow: var(--shadow);
	cursor: zoom-in;
	position: relative;
}
.masonry .item img { width: 100%; display: block; transition: transform 0.4s ease, filter 0.4s ease; }
.masonry .item:hover img { transform: scale(1.04); }
.masonry .item::after {
	content: "";
	position: absolute; inset: 0;
	background: rgba(0,0,0,0);
	transition: background 0.25s ease;
}
.masonry .item:hover::after { background: rgba(0,0,0,0.12); }

@media (max-width: 900px) { .masonry { column-count: 2; } .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } .about-grid { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .masonry { column-count: 1; } .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

/* ---------- Lightbox ---------- */
.lightbox {
	position: fixed; inset: 0;
	background: var(--overlay);
	display: none;
	align-items: center; justify-content: center;
	z-index: 1000;
	padding: 40px;
}
.lightbox.open { display: flex; }
.lightbox img { max-width: 100%; max-height: 85vh; border-radius: 8px; box-shadow: 0 20px 60px rgba(0,0,0,0.5); }
.lightbox .lb-close, .lightbox .lb-prev, .lightbox .lb-next {
	position: absolute;
	color: #fff;
	background: rgba(255,255,255,0.12);
	border: none;
	width: 46px; height: 46px;
	border-radius: 50%;
	display: flex; align-items: center; justify-content: center;
	transition: background 0.2s ease;
}
.lightbox .lb-close:hover, .lightbox .lb-prev:hover, .lightbox .lb-next:hover { background: rgba(255,255,255,0.25); }
.lightbox .lb-close { top: 24px; right: 24px; }
.lightbox .lb-prev { left: 24px; top: 50%; transform: translateY(-50%); }
.lightbox .lb-next { right: 24px; top: 50%; transform: translateY(-50%); }
.lightbox .lb-caption { position: absolute; bottom: 24px; left: 0; right: 0; text-align: center; color: #fff; font-size: 14px; }

/* ---------- Forms ---------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-grid .full { grid-column: 1 / -1; }
label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 8px; color: var(--text-muted); }
input, textarea {
	width: 100%;
	padding: 14px 16px;
	border-radius: 8px;
	border: 1px solid var(--border);
	background: var(--bg-alt);
	color: var(--text);
	font-family: inherit;
	font-size: 15px;
	transition: border-color 0.2s ease, background-color 0.2s ease;
}
input:focus, textarea:focus { outline: none; border-color: var(--accent); background: var(--bg-elevated); }
textarea { resize: vertical; min-height: 140px; }
.form-note { font-size: 13px; color: var(--text-muted); margin-top: 14px; }
.form-success, .form-error {
	padding: 16px 20px;
	border-radius: 8px;
	margin-bottom: 24px;
	font-size: 15px;
}
.form-success { background: rgba(46, 160, 67, 0.12); color: #2ea043; border: 1px solid rgba(46,160,67,0.3); }
.form-error { background: rgba(230, 56, 62, 0.1); color: var(--accent); border: 1px solid rgba(230,56,62,0.3); }

.contact-info-list { display: flex; flex-direction: column; gap: 22px; }
.contact-info-item { display: flex; gap: 16px; align-items: flex-start; }
.contact-info-item .icon {
	width: 44px; height: 44px; flex-shrink: 0;
	border-radius: 10px;
	background: rgba(197,29,35,0.12);
	color: var(--accent);
	display: flex; align-items: center; justify-content: center;
}
.contact-info-item h4 { font-size: 15px; margin-bottom: 4px; }
.contact-info-item p, .contact-info-item a { color: var(--text-muted); font-size: 15px; }
.contact-info-item a:hover { color: var(--accent); }
.social-row { display: flex; gap: 12px; margin-top: 8px; }
.social-row a {
	width: 40px; height: 40px;
	border-radius: 50%;
	border: 1px solid var(--border);
	display: flex; align-items: center; justify-content: center;
	transition: border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}
.social-row a:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-3px); }

/* ---------- Footer ---------- */
.site-footer { background: var(--bg-alt); border-top: 1px solid var(--border); padding-top: 64px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; padding-bottom: 48px; }
.footer-grid h4 { font-size: 15px; margin-bottom: 18px; }
.footer-grid p { color: var(--text-muted); font-size: 14px; }
.footer-links { display: flex; flex-direction: column; gap: 10px; }
.footer-links a { color: var(--text-muted); font-size: 14px; transition: color 0.2s ease; }
.footer-links a:hover { color: var(--accent); }
.footer-bottom {
	border-top: 1px solid var(--border);
	padding: 22px 0;
	text-align: center;
	font-size: 13px;
	color: var(--text-muted);
}
@media (max-width: 700px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- Utility ---------- */
.text-center { text-align: center; }
.mt-40 { margin-top: 40px; }
.cta-band {
	background: var(--accent);
	color: #fff;
	border-radius: 18px;
	padding: 56px;
	text-align: center;
}
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,0.9); margin-bottom: 26px; }
.cta-band .btn-outline { border-color: rgba(255,255,255,0.6); color: #fff; }
.cta-band .btn-outline:hover { border-color: #fff; background: rgba(255,255,255,0.12); }
