/**
 * AF Developers — header, page polish & responsive overrides
 */

.top-bar, .main-header, .header-brand, .header-nav { display: none !important; }

/* ─── Header ─── */
.header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 2rem;
	min-height: 80px;
}

.header__logo { flex-shrink: 0; }
.header__logo img { max-height: 56px; width: auto; }

.site-logo__title {
	font-size: 1.35rem;
	font-weight: 500;
	letter-spacing: 0.08em;
}

.main-nav {
	flex: 1;
	display: flex;
	justify-content: center;
}

.main-nav__list { gap: 2.25rem; }

.main-nav__list a {
	position: relative;
	font-size: 0.8rem;
	padding-bottom: 0.25rem;
}

.main-nav__list a::after {
	content: '';
	position: absolute;
	left: 0;
	bottom: 0;
	width: 0;
	height: 2px;
	background: var(--color-gold);
	transition: width var(--transition);
}

.main-nav__list a:hover::after,
.main-nav__list .current-menu-item > a::after,
.main-nav__list .current_page_item > a::after {
	width: 100%;
}

.header__actions {
	display: flex;
	align-items: center;
	gap: 1rem;
	flex-shrink: 0;
}

.header__phone {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	color: var(--color-text);
	font-size: 0.85rem;
	font-weight: 500;
}

.header__phone:hover { color: var(--color-gold); }

.header__phone-icon {
	width: 16px;
	height: 16px;
	background: var(--color-gold);
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Cpath d='M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72 12.84 12.84 0 0 0 .7 2.81 2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45 12.84 12.84 0 0 0 2.81.7A2 2 0 0 1 22 16.92z'/%3E%3C/svg%3E") center/contain no-repeat;
}

.menu-toggle { display: none; }

.header-cta {
	padding: 0.75rem 1.35rem;
	font-size: 0.72rem;
	min-width: 0;
}

.header-cta:hover {
	box-shadow: 0 4px 16px rgba(20, 18, 16, 0.2);
}

/* ─── Section header variants ─── */
.section-header--split {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 2rem;
	text-align: left;
}

.section-header--split .section-header__desc { margin-left: 0; }
.section-header__cta { flex-shrink: 0; }

.section-label {
	font-weight: 600;
	color: var(--color-gold);
	margin-bottom: 0.75rem;
}

/* ─── News feature cards ─── */
.news-feature {
	background: var(--color-white);
	border: 1px solid var(--color-border);
	border-radius: var(--radius);
	overflow: hidden;
	transition: box-shadow var(--transition);
}

.news-feature:hover { box-shadow: var(--shadow-md); }

.news-feature__media {
	display: block;
	aspect-ratio: 16 / 10;
	overflow: hidden;
}

.news-feature__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.5s ease;
}

.news-feature:hover .news-feature__media img { transform: scale(1.04); }

.news-feature__body { padding: 1.75rem; }

.news-feature__date {
	font-size: 0.72rem;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	color: var(--color-gold);
	margin-bottom: 0.75rem;
}

.news-feature__title {
	font-size: clamp(1.25rem, 2vw, 1.6rem);
	line-height: 1.35;
	margin-bottom: 0.75rem;
}

.news-feature__title a { color: var(--color-text); }
.news-feature__title a:hover { color: var(--color-gold); }

.news-feature__excerpt {
	color: var(--color-muted);
	line-height: 1.7;
	margin-bottom: 1rem;
}

.news-feature__link {
	font-size: 0.78rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: var(--color-gold);
}

.news-feature__link:hover { color: var(--color-dark); }

/* ─── Values icon ─── */
.values-section__icon {
	font-size: 1.5rem;
	color: var(--color-gold);
	margin-bottom: 1.25rem;
}

/* ─── Contact strip extended ─── */
.contact-strip {
	padding-block: clamp(5rem, 10vw, 7rem);
}

.contact-strip__label { color: var(--color-gold); margin-bottom: 1rem; }

.contact-strip__sub {
	color: rgba(255, 255, 255, 0.72);
	max-width: 520px;
	margin: 0 auto 2.5rem;
	font-size: 1.05rem;
}

.contact-strip__details {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 2.5rem;
	margin-bottom: 2.5rem;
}

.contact-strip__link {
	display: flex;
	flex-direction: column;
	gap: 0.25rem;
	color: var(--color-white);
	text-decoration: none;
}

.contact-strip__link:hover { color: var(--color-gold); }

.contact-strip__link-label {
	font-size: 0.7rem;
	text-transform: uppercase;
	letter-spacing: 0.12em;
	opacity: 0.65;
}

.contact-strip__link-value {
	font-family: var(--font-heading);
	font-size: clamp(1.25rem, 2.5vw, 1.75rem);
}

.contact-strip__actions {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	align-items: stretch;
	gap: 1rem;
}

.contact-strip__actions .btn {
	min-width: 170px;
}

.featured-projects__more,
.all-projects__more {
	text-align: center;
	margin-top: 3rem;
}

.featured-projects__more .btn,
.all-projects__more .btn {
	min-width: 200px;
}

.section-header--split .section-header__cta.btn {
	min-width: 140px;
	white-space: nowrap;
}

/* ─── About page ─── */
.about-eee {
	text-align: center;
	padding-bottom: 0;
	background: var(--color-surface);
}

.about-eee__label {
	font-size: 0.72rem;
	text-transform: uppercase;
	letter-spacing: 0.2em;
	color: var(--color-gold);
	margin: 0 0 0.5rem;
}

.about-mission__grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 2rem;
}

.about-mission__block {
	padding: 2.5rem;
	background: var(--color-surface);
	border-radius: var(--radius);
	border: 1px solid var(--color-border);
}

.about-projects { background: var(--color-white); }

.container.narrow { width: min(100% - 2rem, 780px); margin-inline: auto; }

/* ─── Contact page ─── */
.contact-bar {
	background: var(--color-dark);
	color: var(--color-white);
	padding-block: 0;
}

.contact-bar__inner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 2rem 3rem;
	padding-block: 1.75rem;
}

.contact-bar__cta { flex-shrink: 0; }

.contact-bar__item {
	display: flex;
	flex-direction: column;
	gap: 0.2rem;
	color: var(--color-white);
	text-decoration: none;
}

.contact-bar__item:hover { color: var(--color-gold); }

.contact-bar__label {
	font-size: 0.68rem;
	text-transform: uppercase;
	letter-spacing: 0.14em;
	opacity: 0.65;
}

.contact-bar__value {
	font-family: var(--font-heading);
	font-size: 1.2rem;
}

.contact-bar__cta.btn {
	min-width: 200px;
}

.contact-page {
	background: var(--color-surface);
}

.contact-page__grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 3rem;
	align-items: start;
}

.contact-page__info h2 {
	font-size: clamp(1.75rem, 3vw, 2.5rem);
	margin-bottom: 1rem;
}

.contact-page__lead {
	color: var(--color-muted);
	font-size: 1.05rem;
	line-height: 1.75;
	margin-bottom: 2rem;
}

.contact-page__cards {
	display: grid;
	gap: 1rem;
	margin-bottom: 2rem;
}

.contact-page__card {
	display: flex;
	align-items: flex-start;
	gap: 1rem;
	padding: 1.35rem 1.5rem;
	background: var(--color-white);
	border: 1px solid var(--color-border);
	border-radius: var(--radius);
	transition: border-color var(--transition), box-shadow var(--transition);
}

.contact-page__card:hover {
	border-color: var(--color-gold);
	box-shadow: var(--shadow-sm);
}

.contact-page__card-icon {
	flex-shrink: 0;
	width: 2.5rem;
	height: 2.5rem;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(196, 165, 116, 0.12);
	border-radius: 50%;
	color: var(--color-gold);
	font-size: 0.7rem;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.contact-page__card-icon::before {
	content: '';
	width: 0.5rem;
	height: 0.5rem;
	background: currentColor;
	border-radius: 50%;
}

.contact-page__card-label {
	display: block;
	font-size: 0.68rem;
	text-transform: uppercase;
	letter-spacing: 0.12em;
	color: var(--color-gold);
	margin-bottom: 0.35rem;
	font-weight: 600;
}

.contact-page__card address,
.contact-page__card a {
	font-style: normal;
	color: var(--color-text);
	font-size: 1.05rem;
	line-height: 1.6;
}

.contact-page__social {
	margin-bottom: 1.5rem;
}

.contact-page__social a {
	display: inline-block;
	margin-right: 1rem;
	font-weight: 600;
	text-transform: uppercase;
	font-size: 0.75rem;
	letter-spacing: 0.08em;
}

.contact-page__trust {
	list-style: none;
	margin: 0;
	padding: 0;
}

.contact-page__trust li {
	position: relative;
	padding-left: 1.5rem;
	margin-bottom: 0.65rem;
	color: var(--color-muted);
	font-size: 0.95rem;
}

.contact-page__trust li::before {
	content: '✓';
	position: absolute;
	left: 0;
	color: var(--color-gold);
	font-weight: 700;
}

.contact-page__form-wrap {
	position: sticky;
	top: calc(var(--header-height) + 1rem);
}

.contact-page__form {
	padding: 0;
	background: var(--color-white);
	border: 1px solid var(--color-border);
	border-radius: var(--radius);
	box-shadow: var(--shadow-md);
	overflow: hidden;
}

.contact-page__form-header {
	padding: 2.25rem 2.5rem 0;
	border-top: 4px solid var(--color-gold);
}

.contact-page__form .interest-form {
	padding: 1.75rem 2.5rem 2.5rem;
}

.contact-page__form h2 {
	font-size: 1.75rem;
	margin-bottom: 0.5rem;
}

.contact-page__form-lead {
	color: var(--color-muted);
	margin-bottom: 0;
	line-height: 1.65;
}

/* ─── Inner pages ─── */
.not-found,
.error-page {
	text-align: center;
	max-width: 560px;
	margin-inline: auto;
	padding-block: 4rem;
}

.not-found h1,
.error-page h1 {
	font-size: clamp(2rem, 4vw, 3rem);
	margin-bottom: 1rem;
}

.not-found p,
.error-page p {
	color: var(--color-muted);
	margin-bottom: 2rem;
	font-size: 1.1rem;
}

.not-found__actions,
.error-page__actions {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 1rem;
}

.page-article__header {
	text-align: center;
	margin-bottom: 2.5rem;
	padding-bottom: 2rem;
	border-bottom: 1px solid var(--color-border);
}

.page-article__content {
	max-width: 780px;
	margin-inline: auto;
}

.single-post__header {
	text-align: center;
	max-width: 780px;
	margin: 0 auto 2rem;
}

/* ─── Project card grid polish ─── */
.all-projects__grid .project-card {
	border-radius: var(--radius);
	overflow: hidden;
	box-shadow: var(--shadow-sm);
	transition: box-shadow var(--transition), transform var(--transition);
}

.all-projects__grid .project-card:hover {
	box-shadow: var(--shadow-md);
	transform: translateY(-4px);
}

.all-projects__grid .project-card__link-text {
	opacity: 1;
	transform: none;
}

/* ─── Scroll reveal (only when JS enabled) ─── */
html.js .luxdev-reveal {
	opacity: 0;
	transform: translateY(16px);
	transition: opacity 0.6s ease, transform 0.6s ease;
}

html.js .luxdev-reveal.is-visible {
	opacity: 1;
	transform: none;
}

@media (prefers-reduced-motion: reduce) {
	html.js .luxdev-reveal {
		opacity: 1;
		transform: none;
		transition: none;
	}
}

/* ─── Mobile menu ─── */
.mobile-menu__list a {
	font-family: var(--font-heading);
	font-size: 1.25rem;
	text-transform: none;
	padding: 1rem 0;
}

.mobile-menu__cta .btn { width: 100%; }

/* ─── Interest modal ─── */
.interest-modal {
	position: fixed;
	inset: 0;
	z-index: 4000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 1.5rem;
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.25s ease;
}

.interest-modal.is-open {
	opacity: 1;
	pointer-events: auto;
}

.interest-modal__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(20, 18, 16, 0.72);
	backdrop-filter: blur(4px);
}

.interest-modal__panel {
	position: relative;
	width: min(100%, 520px);
	max-height: min(90vh, 720px);
	overflow-y: auto;
	background: var(--color-white);
	border-radius: calc(var(--radius) + 2px);
	box-shadow: 0 24px 80px rgba(20, 18, 16, 0.28);
	padding: 2.5rem 2rem 2rem;
	transform: translateY(16px) scale(0.98);
	transition: transform 0.25s ease;
}

.interest-modal.is-open .interest-modal__panel {
	transform: translateY(0) scale(1);
}

.interest-modal__close {
	position: absolute;
	top: 0.75rem;
	right: 0.75rem;
	width: 40px;
	height: 40px;
	border: none;
	background: var(--color-surface);
	border-radius: 50%;
	font-size: 1.5rem;
	line-height: 1;
	cursor: pointer;
	color: var(--color-dark);
}

.interest-modal__header { margin-bottom: 1.5rem; padding-right: 2rem; }

.interest-modal__header h2 {
	font-size: 1.75rem;
	margin-bottom: 0.5rem;
}

.interest-modal__subtitle {
	color: var(--color-muted);
	margin: 0;
	line-height: 1.65;
}

.interest-modal__success { margin-bottom: 1rem; }

body.interest-modal-open { overflow: hidden; }

/* ─── Responsive ─── */
@media (max-width: 992px) {
	.main-nav { display: none !important; }
	.menu-toggle { display: flex !important; }
	.header__phone-text { display: none; }
	.header-cta { display: none; }
	.header__inner { min-height: 72px; }
	.hero-slide__caption {
		left: 1.5rem;
		right: 1.5rem;
		max-width: none;
	}
	.intro-section__stats { grid-template-columns: 1fr; }
	.all-projects__grid { grid-template-columns: repeat(2, 1fr); }
	.services-section__grid { grid-template-columns: 1fr; }
	.section-header--split {
		flex-direction: column;
		align-items: flex-start;
	}
	.about-mission__grid { grid-template-columns: 1fr; }
	.contact-page__grid { grid-template-columns: 1fr; }
	.contact-page__form-wrap { position: static; }
	.contact-bar__inner { flex-direction: column; text-align: center; }
	.projects-showcase__blocks { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
	.all-projects__grid { grid-template-columns: 1fr; }
	.showcase-block__media,
	.hero-slide__media { aspect-ratio: 4 / 3; }
	.hero-slide__actions,
	.intro-section__actions,
	.contact-strip__actions,
	.not-found__actions { flex-direction: column; }
	.hero-slide__actions .btn,
	.intro-section__actions .btn,
	.contact-strip__actions .btn,
	.not-found__actions .btn,
	.contact-bar__cta.btn { width: 100%; min-width: 0; }
	.site-footer__main { grid-template-columns: 1fr; }
	.site-footer__bottom-inner { flex-direction: column; text-align: center; }
	.site-footer__legal-nav { justify-content: center; }
	.site-footer__cta-actions { flex-direction: column; }
	.site-footer__cta-actions .btn { width: 100%; min-width: 0; }
}

/* ─── Footer ─── */
.site-footer {
	position: relative;
	padding-top: 0;
	margin-top: 0;
}

.site-footer__accent {
	height: 4px;
	background: linear-gradient(90deg, var(--color-gold) 0%, #d4bc94 50%, var(--color-gold) 100%);
}

.site-footer__main {
	display: grid;
	grid-template-columns: 1.35fr 0.85fr 0.85fr 1.1fr;
	gap: 2.5rem 2rem;
	padding-block: 4rem 3rem;
	align-items: start;
}

.site-footer__brand {
	max-width: 340px;
}

.site-footer__logo {
	margin-bottom: 1rem;
}

.site-footer .site-logo__title {
	color: var(--color-white);
	font-size: 1.4rem;
	letter-spacing: 0.06em;
}

.site-footer .site-logo__tagline {
	color: rgba(255, 255, 255, 0.55);
	font-size: 0.8rem;
	margin-top: 0.25rem;
}

.site-footer__tagline {
	color: rgba(255, 255, 255, 0.65);
	font-size: 0.95rem;
	line-height: 1.65;
	margin: 0 0 1.25rem;
}

.site-footer__address {
	font-style: normal;
	line-height: 1.75;
	color: rgba(255, 255, 255, 0.72);
	margin-bottom: 1.25rem;
	font-size: 0.92rem;
}

.site-footer__contact-lines {
	display: flex;
	flex-direction: column;
	gap: 0.65rem;
	margin-bottom: 1.5rem;
}

.site-footer__contact-link {
	display: flex;
	flex-direction: column;
	gap: 0.15rem;
	color: rgba(255, 255, 255, 0.88);
}

.site-footer__contact-link:hover {
	color: var(--color-gold);
}

.site-footer__contact-label {
	font-size: 0.65rem;
	text-transform: uppercase;
	letter-spacing: 0.14em;
	color: var(--color-gold);
	font-weight: 600;
}

.site-footer__social {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
}

.site-footer__social a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 36px;
	padding: 0.4rem 0.85rem;
	border: 1px solid rgba(255, 255, 255, 0.22);
	border-radius: 999px;
	font-size: 0.72rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: rgba(255, 255, 255, 0.88);
}

.site-footer__social a:hover {
	background: var(--color-gold);
	border-color: var(--color-gold);
	color: var(--color-dark);
}

.site-footer__heading {
	color: var(--color-gold);
	font-family: var(--font-body);
	font-size: 0.68rem;
	font-weight: 700;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	margin: 0 0 1.35rem;
}

.site-footer__links {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 0.65rem;
}

.site-footer__links a {
	font-size: 0.92rem;
	color: rgba(255, 255, 255, 0.78);
	line-height: 1.4;
}

.site-footer__links a:hover {
	color: var(--color-gold);
	padding-left: 0.15rem;
}

.site-footer__col--cta {
	padding: 1.75rem;
	background: rgba(255, 255, 255, 0.04);
	border: 1px solid rgba(255, 255, 255, 0.08);
	border-radius: var(--radius);
}

.site-footer__cta-text {
	color: rgba(255, 255, 255, 0.72);
	font-size: 0.92rem;
	line-height: 1.65;
	margin: 0 0 1.25rem;
}

.site-footer__cta-actions {
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
}

.site-footer__cta-actions .btn {
	min-width: 0;
	width: 100%;
}

.site-footer__bottom {
	border-top: 1px solid rgba(255, 255, 255, 0.1);
	padding-block: 1.35rem;
	background: rgba(0, 0, 0, 0.18);
}

.site-footer__bottom-inner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 1rem 1.5rem;
	font-size: 0.8rem;
}

.site-footer__copyright {
	margin: 0;
	color: rgba(255, 255, 255, 0.55);
}

.site-footer__legal-nav {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.35rem 0.5rem;
}

.site-footer__legal-nav a {
	font-size: 0.75rem;
	color: rgba(255, 255, 255, 0.55);
}

.site-footer__legal-nav a:hover {
	color: var(--color-gold);
}

.site-footer__legal-sep {
	color: rgba(255, 255, 255, 0.25);
}

.back-to-top {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	border: 1px solid rgba(255, 255, 255, 0.2);
	background: transparent;
	color: var(--color-gold);
	cursor: pointer;
	font-size: 0.72rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	padding: 0.5rem 0.85rem;
	border-radius: 999px;
	transition: background var(--transition), color var(--transition), border-color var(--transition);
}

.back-to-top:hover {
	background: var(--color-gold);
	border-color: var(--color-gold);
	color: var(--color-dark);
}

/* ─── Legal pages ─── */
.legal-page .page-content {
	padding-block: var(--section-spacing);
}

.legal-page .page-article__content,
.legal-page .entry-content {
	max-width: 780px;
	margin-inline: auto;
}

.legal-meta {
	padding: 1.25rem 1.5rem;
	margin-bottom: 2rem;
	background: var(--color-surface);
	border-left: 4px solid var(--color-gold);
	border-radius: 0 var(--radius) var(--radius) 0;
}

.legal-meta__updated {
	font-size: 0.85rem;
	color: var(--color-muted);
	margin-bottom: 0.75rem;
}

.legal-page .entry-content h2 {
	font-size: 1.35rem;
	margin-top: 2.25rem;
	margin-bottom: 0.85rem;
	padding-bottom: 0.5rem;
	border-bottom: 1px solid var(--color-border);
}

.legal-page .entry-content h2:first-of-type {
	margin-top: 0;
}

.legal-page .entry-content p,
.legal-page .entry-content li {
	color: var(--color-muted);
	line-height: 1.8;
}

.legal-page .entry-content ul {
	margin: 0 0 1.25rem 1.25rem;
	padding: 0;
}

.legal-page .entry-content li {
	margin-bottom: 0.5rem;
}

@media (max-width: 1024px) {
	.site-footer__main {
		grid-template-columns: 1fr 1fr;
	}
	.site-footer__brand {
		grid-column: 1 / -1;
		max-width: none;
	}
}
