/* =============================================================
   Arkitektor — main stylesheet
   -------------------------------------------------------------
   Design tokens live in :root — change colours, fonts and key
   dimensions there and the whole site follows.
   The layout follows the 1440px design sheet:
   1 cm on the sheet ≈ 28px on screen (header 3cm→84px,
   footer 7.5cm→210px, side margins 2cm→56px, grid gaps 0.8cm→22px).
   ============================================================= */

:root {
	/* Colours */
	--c-brand:        #16789f;   /* Arkitektor petrol blue          */
	--c-brand-dark:   #0f5c7b;
	--c-ink:          #1c1c1c;   /* body text                       */
	--c-ink-soft:     #4f5560;   /* secondary text                  */
	--c-line:         #1c1c1c;   /* form / divider lines            */
	--c-bg:           #ffffff;
	--c-footer:       #dfe9f3;   /* light blue footer + award band  */

	/* Type */
	--font-base: 'Poppins', 'Century Gothic', Futura, sans-serif;
	--fs-body:   16px;
	--fs-small:  13px;
	--fs-h2:     34px;           /* section titles (~50pt on sheet) */
	--fs-h1:     40px;

	/* Layout */
	--header-h:     84px;
	--footer-h:     210px;
	--container:    1326px;
	--gutter:       56px;
	--grid-gap:     22px;

	/* Motion */
	--ease: cubic-bezier(.25,.7,.3,1);
}

/* ---------- Reset-ish ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
	margin: 0;
	font-family: var(--font-base);
	font-size: var(--fs-body);
	font-weight: 300;
	line-height: 1.7;
	color: var(--c-ink);
	background: var(--c-bg);
	-webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
h1, h2, h3 { font-weight: 400; line-height: 1.25; margin: 0 0 .6em; }

.container {
	max-width: var(--container);
	margin-inline: auto;
	padding-inline: var(--gutter);
}
.page-section { padding-block: 56px calc(56px); }
.screen-reader-text {
	position: absolute; width: 1px; height: 1px;
	clip-path: inset(50%); overflow: hidden; white-space: nowrap;
}
.skip-link:focus {
	position: fixed; top: 8px; left: 8px; z-index: 999;
	width: auto; height: auto; clip-path: none;
	background: #fff; padding: 8px 14px; border: 1px solid var(--c-ink);
}

/* ---------- Section titles ---------- */
.section-title { font-size: var(--fs-h2); font-weight: 500; margin-bottom: 40px; }
.page-title--spaced {
	font-size: var(--fs-h1);
	font-weight: 500;
	letter-spacing: .35em;
	text-transform: uppercase;
	margin-bottom: 36px;
}

/* =============================================================
   Header — always fixed on top (3 cm bar on the sheet)
   ============================================================= */
.site-header {
	position: sticky;
	top: 0;
	z-index: 100;
	height: var(--header-h);
	background: #fff;
	border-bottom: 1px solid #ececec;
}
.site-header__inner {
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
}
.site-logo--text,
.custom-logo-link {
	display: inline-flex;
	align-items: center;
	font-weight: 500;
	letter-spacing: .45em;
	text-transform: uppercase;
	color: var(--c-brand);
	font-size: 18px;
}
.custom-logo { max-height: 40px; width: auto; }

.site-nav { display: flex; align-items: center; gap: 28px; }
.site-nav .menu {
	display: flex; gap: 26px;
	list-style: none; margin: 0; padding: 0;
	font-size: 14px; letter-spacing: .12em; text-transform: uppercase; font-weight: 400;
}
.site-nav .menu a {
	display: inline-block;
	transition: transform .2s var(--ease), color .2s;
}
/* buttons grow slightly on hover — per spec */
.site-nav .menu a:hover,
.site-nav .menu a:focus-visible { transform: scale(1.08); color: var(--c-brand); }
.site-nav .current-menu-item > a,
.site-nav .current_page_item > a { text-decoration: underline; text-underline-offset: 5px; }

.social-icons { display: flex; gap: 12px; align-items: center; }
.social-icons a { display: inline-flex; transition: transform .2s var(--ease), color .2s; }
.social-icons a:hover { transform: scale(1.15); color: var(--c-brand); }

.lang-switcher {
	display: flex; gap: 10px; list-style: none; margin: 0; padding: 0;
	font-size: 13px; text-transform: uppercase; letter-spacing: .08em;
}
.lang-switcher .current-lang a,
.lang-switcher .is-active a { text-decoration: underline; text-underline-offset: 4px; }

/* Mobile nav */
.nav-toggle { display: none; flex-direction: column; gap: 5px; }
.nav-toggle span { width: 24px; height: 2px; background: var(--c-ink); }

/* =============================================================
   Front page
   ============================================================= */
/* 1 ─ Hero */
.hero { position: relative; }
.hero__image, .hero__placeholder {
	width: 100%;
	height: clamp(360px, 60vh, 700px);
	object-fit: cover;              /* focus point set inline from the Customizer */
}
.hero__placeholder { background: #e8edf1; }
.hero__overlay {                    /* logo (or any image) centred on the photo */
	position: absolute;
	inset: 0;
	display: grid;
	place-items: center;
	pointer-events: none;
}
.hero__overlay img {
	max-width: min(46%, 480px);
	max-height: 30%;
	width: auto; height: auto;
	filter: drop-shadow(0 2px 14px rgba(0,0,0,.12));
}

/* 2 ─ Tagline row */
.tagline { padding-block: 34px; }
.tagline__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.tagline__text { font-size: var(--fs-h2); font-weight: 300; margin: 0; }
.tagline__badge img { max-height: 64px; width: auto; }

/* 3 ─ Projects carousel */
.projects-strip { padding-block: 40px 20px; }
.carousel { position: relative; }
.carousel__track {
	display: flex;
	gap: var(--grid-gap);
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scrollbar-width: none;
	padding-inline: var(--gutter);
	cursor: grab;
}
.carousel__track::-webkit-scrollbar { display: none; }
.carousel__track.is-dragging { cursor: grabbing; scroll-snap-type: none; }
.carousel__item {
	flex: 0 0 min(46%, 640px);
	scroll-snap-align: start;
	user-select: none;
}
.carousel__item img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.carousel__caption { display: block; padding-top: 10px; font-size: 17px; }
.carousel__arrow {
	position: absolute;
	top: 42%;
	transform: translateY(-50%);
	z-index: 5;
	width: 44px; height: 44px;
	display: grid; place-items: center;
	background: rgba(255,255,255,.85);
	border-radius: 50%;
	font-size: 18px;
	transition: transform .2s var(--ease), background .2s;
}
.carousel__arrow:hover { transform: translateY(-50%) scale(1.1); background: #fff; }
.carousel__arrow--prev { left: 12px; }
.carousel__arrow--next { right: 12px; }

/* 4 ─ Services */
.services { padding-block: 48px 24px; }
.services__grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 48px;
}
.service__icon {
	height: 88px; width: auto;
	margin-bottom: 18px;
	transition: transform .25s var(--ease);
}
.service:hover .service__icon { transform: scale(1.07); }
.service__title {
	font-size: 21px; font-weight: 400;
	transition: transform .2s var(--ease);
	transform-origin: left center;
}
.service:hover .service__title { transform: scale(1.04); }
.service__list { list-style: none; margin: 14px 0 0; padding: 0; font-size: 14px; color: var(--c-ink-soft); }
.service__list li { padding-block: 3px; }
.service__list li::before { content: '· '; }

/* 5 ─ Text strip */
.type-strip { text-align: center; padding-block: 28px; letter-spacing: .14em; font-size: 14px; }

/* 6 ─ Logo marquee (slow left→right scroll, drag to speed up) */
.logo-marquee { overflow: hidden; padding-block: 26px; border-top: 1px solid #f0f0f0; }
.logo-marquee__track {
	display: flex;
	width: max-content;
	animation: marquee 45s linear infinite;
	will-change: transform;
}
.logo-marquee:hover .logo-marquee__track { animation-play-state: paused; }
.logo-marquee__track.is-manual { animation: none; }
.logo-marquee__group { display: flex; align-items: center; }
.logo-marquee__item { flex: 0 0 auto; padding-inline: 44px; }
.logo-marquee__item img { max-height: 44px; width: auto; filter: grayscale(1); opacity: .8; }
@keyframes marquee {
	from { transform: translateX(-50%); }  /* right-ward drift, seamless loop */
	to   { transform: translateX(0); }
}

/* =============================================================
   Portfolio
   ============================================================= */
.portfolio-filters {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 16px 28px;
	margin-bottom: 44px;
	font-size: 14px;
	letter-spacing: .1em;
	text-transform: uppercase;
}
.portfolio-filter {
	padding-bottom: 4px;
	border-bottom: 2px solid transparent;
	transition: transform .2s var(--ease), border-color .2s;
}
.portfolio-filter:hover { transform: scale(1.06); }
.portfolio-filter.is-active { border-color: var(--c-ink); font-weight: 500; }

.portfolio-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: var(--grid-gap);
}
.project-card { position: relative; display: block; }
.project-card.is-hidden { display: none; }
.project-card__media { display: block; overflow: hidden; }
.project-card__media img {
	width: 100%;
	aspect-ratio: 4 / 3;
	object-fit: cover;
	transition: transform .35s var(--ease);   /* grows from centre on hover */
}
.project-card:hover .project-card__media img,
.project-card:focus-visible .project-card__media img { transform: scale(1.06); }
.project-card__name {                          /* name appears bottom-left */
	position: absolute;
	left: 14px; bottom: 12px;
	color: #fff;
	font-size: 16px;
	text-shadow: 0 1px 6px rgba(0,0,0,.55);
	opacity: 0;
	transform: translateY(6px);
	transition: opacity .25s, transform .25s var(--ease);
	pointer-events: none;
}
.project-card:hover .project-card__name,
.project-card:focus-visible .project-card__name { opacity: 1; transform: none; }

/* =============================================================
   Single project
   ============================================================= */
.back-link { display: inline-flex; gap: 8px; align-items: center; font-size: 13px; margin-bottom: 22px; }
.back-link:hover { color: var(--c-brand); }

.project-single__header {
	display: grid;
	grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
	gap: 56px;
	margin-bottom: 64px;
}
.project-single__title { font-size: var(--fs-h1); font-weight: 300; }
.project-single__description { font-size: 15px; color: var(--c-ink-soft); }

.project-gallery {
	columns: 4;                                 /* mixed portrait/landscape grid */
	column-gap: var(--grid-gap);
}
.project-gallery__item {
	display: block;
	width: 100%;
	margin-bottom: var(--grid-gap);
	break-inside: avoid;
	overflow: hidden;
}
.project-gallery__item img { width: 100%; transition: transform .35s var(--ease); }
.project-gallery__item:hover img { transform: scale(1.04); }

.project-nav {
	display: flex;
	justify-content: space-between;
	gap: 24px;
	margin-top: 72px;
	font-size: 15px;
}
.project-nav a { display: inline-flex; gap: 8px; align-items: center; transition: color .2s; }
.project-nav a:hover { color: var(--c-brand); }

/* Lightbox */
.lightbox {
	position: fixed; inset: 0; z-index: 200;
	background: rgba(255,255,255,.94);
	display: grid; place-items: center;
	padding: clamp(16px, 6vw, 90px);
}
.lightbox[hidden] { display: none; }
.lightbox__image { max-width: 100%; max-height: calc(100vh - 140px); width: auto; height: auto; box-shadow: 0 10px 60px rgba(0,0,0,.18); }
.lightbox__close {
	position: absolute; top: 24px; right: 32px;
	font-size: 34px; line-height: 1;
	transition: transform .2s var(--ease);
}
.lightbox__close:hover { transform: scale(1.2); }
.lightbox__arrow {
	position: absolute; top: 50%;
	transform: translateY(-50%);
	font-size: 26px; padding: 18px;
	transition: transform .2s var(--ease);
}
.lightbox__arrow:hover { transform: translateY(-50%) scale(1.2); }
.lightbox__arrow--prev { left: 8px; }
.lightbox__arrow--next { right: 8px; }

/* =============================================================
   About page
   ============================================================= */
.about-intro__content { max-width: 900px; text-align: justify; font-size: 15px; }

.team-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 44px 56px;
	max-width: 900px;
}
.team-card__photo { aspect-ratio: 3 / 4; background: var(--c-footer); overflow: hidden; }
.team-card__photo img { width: 100%; height: 100%; object-fit: cover; }
.team-card__name { font-size: 15px; font-weight: 500; margin: 12px 0 2px; }
.team-card__role { font-size: 13px; color: var(--c-ink-soft); margin: 0; }

.about-awards__band { background: var(--c-footer); padding-block: 40px; }
.awards-grid { display: flex; flex-wrap: wrap; gap: 40px 72px; }
.award-item img { max-height: 72px; width: auto; }

.clients-grid {
	display: grid;
	grid-template-columns: repeat(6, 1fr);
	gap: 44px 40px;
	align-items: center;
	justify-items: center;
}
.client-item img { max-height: 52px; width: auto; filter: grayscale(1); opacity: .85; transition: opacity .2s, filter .2s; }
.client-item:hover img { filter: none; opacity: 1; }

/* =============================================================
   Contact page
   ============================================================= */
.contact-page {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
	gap: 80px;
}
.contact-page__rule { border: 0; border-top: 1px solid var(--c-line); margin: 48px 0 28px; }
.contact-page__details { display: flex; gap: 36px; align-items: flex-start; }
.contact-page__address { font-style: normal; font-size: 14px; line-height: 1.9; }
.contact-page__socials { margin-top: 22px; }
.contact-page__map { display: block; max-width: 260px; border: 1px solid #eee; transition: transform .2s var(--ease); }
.contact-page__map:hover { transform: scale(1.02); }

/* Underline-style form */
.contact-page__form form { display: flex; flex-direction: column; gap: 34px; }
.form-group { border: 0; margin: 0; padding: 0; }
.form-group--split { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.form-group--split .form-label { grid-column: 1 / -1; }
.form-label { display: block; font-size: 14px; margin-bottom: 2px; }
.form-sublabel { display: block; font-size: 11px; color: var(--c-ink-soft); }
.form-field input,
.form-field textarea {
	width: 100%;
	border: 0;
	border-bottom: 1px solid var(--c-line);   /* thin line …            */
	border-radius: 0;
	background: transparent;
	font: inherit;
	padding: 6px 0;
	outline: none;
	resize: vertical;
	transition: border-color .15s;
}
.form-field input:focus,
.form-field textarea:focus {
	border-bottom-width: 2.5px;               /* … thicker while typing */
	border-color: var(--c-ink);
}
.hp-field { position: absolute; left: -9999px; }

.form-notice { padding: 12px 16px; font-size: 14px; margin-bottom: 22px; }
.form-notice--ok { background: #e8f4ea; border-left: 3px solid #3d8b4f; }
.form-notice--error { background: #fbeaea; border-left: 3px solid #b3392f; }

/* Buttons */
.btn {
	display: inline-block;
	font-size: 15px;
	letter-spacing: .04em;
	padding: 6px 4px;
	transition: transform .2s var(--ease), color .2s;
	transform-origin: left center;
}
.btn:hover { transform: scale(1.07); color: var(--c-brand); }
.btn--submit { font-weight: 500; align-self: flex-start; }
.btn--footer { color: var(--c-brand); font-weight: 500; }

.footer-menu {
	list-style: none;
	margin: 0; padding: 0;
	display: flex;
	flex-direction: column;
	gap: 8px;
	text-align: right;
	font-size: 14px;
	font-weight: 500;
	color: var(--c-brand);
}
.footer-menu a { display: inline-block; transition: transform .2s var(--ease); transform-origin: right center; }
.footer-menu a:hover { transform: scale(1.07); }

/* =============================================================
   Footer — light blue band, every page (7.5 cm on the sheet)
   ============================================================= */
.site-footer {
	min-height: var(--footer-h);
	background-color: var(--c-footer);
	background-size: cover;
	background-position: center;
	display: flex;
	align-items: center;
	margin-top: 72px;
}
.site-footer__inner {
	width: 100%;
	display: grid;
	grid-template-columns: 1.2fr 1fr auto;
	gap: 40px;
	align-items: start;
	padding-block: 34px;
	font-size: 13px;
	color: var(--c-brand-dark);
}
.site-footer .site-logo--text,
.site-footer .custom-logo-link { margin-bottom: 14px; }
.site-footer__address { margin: 14px 0 0; line-height: 1.9; }
.site-footer__contact { padding-top: 52px; }
.site-footer__contact a:hover { text-decoration: underline; }
.site-footer__cta { padding-top: 52px; justify-self: end; }

/* =============================================================
   Blog fallback + misc
   ============================================================= */
.entry { margin-bottom: 48px; }
.entry__title { font-size: 24px; }
.entry-content p { margin-block: 0 1.2em; }

/* =============================================================
   Responsive
   ============================================================= */
@media (max-width: 1100px) {
	:root { --gutter: 32px; }
	.portfolio-grid { grid-template-columns: repeat(3, 1fr); }
	.project-gallery { columns: 3; }
	.clients-grid { grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 820px) {
	:root { --fs-h2: 26px; --fs-h1: 30px; --header-h: 68px; }
	.nav-toggle { display: flex; }
	.site-nav {
		position: fixed;
		inset: var(--header-h) 0 auto 0;
		background: #fff;
		border-bottom: 1px solid #eee;
		flex-direction: column;
		align-items: flex-start;
		padding: 24px var(--gutter) 32px;
		gap: 20px;
		display: none;
	}
	.site-nav.is-open { display: flex; }
	.site-nav .menu { flex-direction: column; gap: 16px; }

	.tagline__inner { flex-direction: column; align-items: flex-start; }
	.services__grid { grid-template-columns: 1fr; gap: 40px; }
	.carousel__item { flex-basis: 78%; }
	.portfolio-grid { grid-template-columns: repeat(2, 1fr); }
	.project-gallery { columns: 2; }
	.project-single__header { grid-template-columns: 1fr; gap: 28px; }
	.team-grid { grid-template-columns: repeat(2, 1fr); }
	.clients-grid { grid-template-columns: repeat(3, 1fr); }
	.contact-page { grid-template-columns: 1fr; gap: 48px; }
	.site-footer__inner { grid-template-columns: 1fr; gap: 8px; }
	.site-footer__contact, .site-footer__cta { padding-top: 0; justify-self: start; }
}

@media (max-width: 520px) {
	:root { --gutter: 20px; --grid-gap: 14px; }
	.portfolio-grid { grid-template-columns: 1fr; }
	.project-gallery { columns: 1; }
	.portfolio-filters { flex-direction: column; align-items: flex-start; }
	.form-group--split { grid-template-columns: 1fr; gap: 24px; }
}

/* ---------- Accessibility / motion ---------- */
:focus-visible { outline: 2px solid var(--c-brand); outline-offset: 3px; }

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { transition: none !important; animation: none !important; }
}
