/* =============================================================
   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  */

	/* Sheet units — the design sheet is 508 mm = 1440 px wide.
	   Everything below scales with the window like the Squarespace sample. */
	/* The sheet is a 1440 x 900 screen (508 x 317.58 mm). One sheet-cm follows
	   whichever screen side is relatively smaller, so the first screen always
	   shows the same composition as the design — also on wide monitors. */
	--cm: min(calc(100vw / 50.8), calc(100vh / 31.758));
	--pt: calc(var(--cm) * 50.8 / 1440);

	/* Type (the max() floors stop text getting unreadable on small screens) */
	--font-base:  'Urbanist', 'Century Gothic', Futura, sans-serif;   /* typeface of the design sheets */
	--fs-body:    max(14px, calc(16 * var(--pt)));   /* 16 pt */
	--fs-small:   max(11px, calc(10 * var(--pt)));   /* 10 pt */
	--fs-caption: max(16px, calc(25 * var(--pt)));   /* 25 pt */
	--fs-h3:      max(18px, calc(30 * var(--pt)));   /* 30 pt */
	--fs-h1:      max(24px, calc(40 * var(--pt)));   /* 40 pt */
	--fs-h2:      max(28px, calc(50 * var(--pt)));   /* 50 pt */

	/* Layout */
	--header-h:  max(60px, calc(3 * var(--cm)));     /* 3 cm   */
	--footer-h:  calc(7.5 * var(--cm));              /* 7.5 cm */
	--container: none;                               /* fill the window */
	--gutter:    calc(2 * var(--cm));                /* 2 cm side margins */
	--grid-gap:  calc(0.8 * var(--cm));              /* 0.8 cm */

	/* 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;
}
body { display: flex; flex-direction: column; min-height: 100vh; min-height: 100dvh; }
.site-main { flex: 1 0 auto; }
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: calc(2 * var(--cm)); }
.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: 700; line-height: 1.1; margin-bottom: var(--cm); }
.page-title--spaced {
	font-size: var(--fs-h1);
	font-weight: 500;
	letter-spacing: .35em;
	text-transform: uppercase;
        margin-bottom: calc(2 * var(--cm));
}

/* =============================================================
   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 { width: max(120px, calc(5.5 * var(--cm))); height: auto; max-height: none; }

.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: var(--fs-body); letter-spacing: .02em; 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: auto;
	aspect-ratio: 50.8 / 24.5;      /* exactly the sheet's photo frame on every screen — same crop as the PDF */
	object-fit: cover;
}
.hero__overlay {
	position: absolute;
	display: grid;
	inset: 39.6% 0 auto 0;          /* 9.7 cm of 24.5 cm from the top of the photo */
	place-items: start center;
	pointer-events: none;
}
.hero__overlay img {
	width: 31.5%;                         /* logo width on the sheet: 16 of 50.8 cm */
	max-width: none; max-height: none; height: auto;
	filter: drop-shadow(0 2px 14px rgba(0,0,0,.12));
}

/* 2 ─ Tagline row */
.tagline { padding-block: var(--cm) 0; }
.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 { height: calc(1.3 * var(--cm)); max-height: none; width: auto; }

/* 3 ─ Projects carousel */
.projects-strip { padding-block: calc(7 * var(--cm)) 0; }
.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);
	scroll-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 calc((100% - 2 * var(--gutter) - var(--grid-gap)) / 2);   /* exactly 2 per screen, ≈17 cm tall */
	scroll-snap-align: start;
	user-select: none;
}
.carousel__item img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }
.carousel__caption {
	display: inline-block;
	padding-top: calc(0.5 * var(--cm));
	font-size: var(--fs-caption);                 /* 25 pt */
	font-weight: 300;
	transition: transform .2s var(--ease);
	transform-origin: left center;
}
.carousel__item:hover .carousel__caption { transform: scale(1.04); }
.carousel__arrow--prev { left: calc(var(--gutter) / 2 - 22px); }
.carousel__arrow--next { right: calc(var(--gutter) / 2 - 22px); }
.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; }

/* 4 ─ Services */
.services { padding-block: calc(7 * var(--cm)) 0; }
.services .section-title { margin-bottom: calc(2.5 * var(--cm)); }
.services__grid {
	display: grid;
	grid-template-columns: repeat(3, auto);
	justify-content: space-between;     /* first column left, last right, equal spacing — was max-width:1200px */
	column-gap: calc(2 * var(--cm));
	padding-inline: var(--cm);
}
.service__head { display: contents; }   /* wrapper (if present) must not affect layout */
.service__icon {
	display: block;
	height: calc(3 * var(--cm)); width: auto;
	margin: 0 auto calc(1.5 * var(--cm));   /* centred over the title + list below */
	transition: transform .25s var(--ease);
}
.service:hover .service__icon { transform: scale(1.07); }
.service__title {
	font-size: var(--fs-h3);                                   /* 30 pt */
	max-width: calc(12 * var(--cm));   /* "Szakértői szolgáltatások / és tanácsadás" wraps like the sheet */
	transition: transform .2s var(--ease);
	transform-origin: left center;
}
.service:hover .service__title { transform: scale(1.04); }
.service__list   { list-style: none; padding: 0; margin: calc(1.5 * var(--cm)) 0 0; font-size: var(--fs-body); }          /* 16 pt */
.service__list li { padding-block: 3px; }
.service__list li::before { content: '· '; }

/* 5 ─ Text strip */
.type-strip      { text-align: center; letter-spacing: .02em; padding-block: calc(3 * var(--cm)) calc(1.5 * var(--cm)); font-size: max(12px, calc(14 * var(--pt))); }
.type-strip__sep { color: var(--c-ink-soft); }
.type-strip__link,
.type-strip__item { display: inline-block; }
.type-strip__link { transition: transform .2s var(--ease), color .2s; }
.type-strip__link:hover,
.type-strip__link:focus-visible {
	transform: scale(1.06);
	color: var(--c-brand);
}

/* 6 ─ Logo marquee (slow left→right scroll, drag to speed up) */
.logo-marquee { overflow: hidden; border-top: 1px solid #f0f0f0; padding-block: 0; height: calc(3.5 * var(--cm)); display: flex; align-items: center; }
.logo-marquee__track {
	display: flex;
	width: max-content;
	animation: marquee 145s 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: calc(1.3 * var(--cm)); }
.logo-marquee__item img { width: calc(4.2 * var(--cm)); height: calc(2.2 * var(--cm)); max-width: none; object-fit: contain; }
@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: calc(4 * var(--cm));
	font-size: var(--fs-body);
	font-weight: 600;
	letter-spacing: .02em;
	text-transform: uppercase;
}
.portfolio-filter {
	text-transform: inherit;
	letter-spacing: inherit;
	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); }

.portfolio-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: var(--grid-gap);
}
.project-card {
	position: relative;
	display: block;
	transition: opacity .35s var(--ease), transform .35s var(--ease);
}
.project-card.is-hidden {
	opacity: 0;
	transform: translateY(14px) scale(.96);
	pointer-events: none;
}
.project-card__media { position: relative; 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 {
	position: absolute;
	left: 14px; bottom: 12px;
	color: #fff;
	font-size: var(--fs-body);
        font-weight: 500;
	text-shadow: 0 1px 2px rgba(0,0,0,.95), 0 3px 10px rgba(0,0,0,.7);
	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__cover-btn { display: block; width: 100%; overflow: hidden; cursor: zoom-in; }
.project-single__cover-btn img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .35s var(--ease); }
.project-single__cover-btn:hover img { transform: scale(1.02); }

.project-single__header {
	display: grid;
	grid-template-columns: minmax(0, 11fr) minmax(0, 9fr);   /* was 7fr 3fr — cover smaller */
	gap: calc(2 * var(--cm));
	margin-bottom: calc(3 * var(--cm));                      /* "legyen meg a nagyobb távolság" */
}
.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; 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 — measured from the PDF (sheet = 50.8 cm wide):
   titles at the left margin, content starts 1 cm under the title;
   team + awards: 3 × 7.2 cm columns, 2.7 cm gaps = 27 cm, centred
   on the page; text starts at the same left edge, max 32.8 cm wide.
   ============================================================= */
:root { --about-grid: calc(27 * var(--cm)); }
.about-page .section-title { font-size: var(--fs-h1); font-weight: 300; margin: 0 0 var(--cm); }
.about-intro, .about-team {
	display: grid;
	grid-template-columns: calc((100% - var(--about-grid)) / 2) minmax(0, 1fr);
}
.about-intro .section-title, .about-team .section-title { grid-column: 1 / -1; }
.about-intro__content, .team-grid { grid-column: 2; }
.about-team, .about-awards, .about-clients { margin-top: calc(3 * var(--cm)); }

.about-intro__content { max-width: calc(32.8 * var(--cm)); font-size: var(--fs-body); text-align: justify; }

.team-grid {
	display: grid;
	grid-template-columns: repeat(3, calc(7.2 * var(--cm)));
	gap: calc(1.2 * var(--cm)) calc(2.7 * var(--cm));
}
.team-card__photo { aspect-ratio: 1; background: var(--c-footer); overflow: hidden; }
.team-card__photo img { width: 100%; height: 100%; object-fit: cover; }
.team-card__name { font-size: max(12px, calc(10 * var(--pt))); font-weight: 500; margin: calc(0.6 * var(--cm)) 0 0; line-height: 1.3; }
.team-card__role { font-size: max(11px, calc(9 * var(--pt))); color: var(--c-ink-soft); margin: 0; line-height: 1.3; }

.about-awards__band { background: var(--c-footer); padding-block: calc(1.8 * var(--cm)) calc(1.1 * var(--cm)); }
.awards-grid {
	display: grid;
	grid-template-columns: repeat(3, calc(7.2 * var(--cm)));
	gap: calc(2.6 * var(--cm)) calc(2.7 * var(--cm));
	justify-content: center;            /* same 27 cm block as the team, centred */
}
.award-item img { width: 100%; height: calc(2.9 * var(--cm)); max-height: none; object-fit: contain; object-position: left top; }

/* Clients — centred block, equal X and Y spacing */
.clients-grid {
	display: grid;
	align-items: center;
	justify-items: center;
	grid-template-columns: repeat(6, calc(3 * var(--cm)));
	justify-content: space-between;
	gap: calc(1.2 * var(--cm)) 0;
	width: min(100%, calc(38.8 * var(--cm)));
	margin-inline: auto;
}
.client-item { display: block; width: 100%; }
.client-item img { width: 100%; height: auto; aspect-ratio: 1; object-fit: contain; max-height: none; 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: 15fr 22fr;
	column-gap: calc(7 * var(--cm));                 /* 7 cm between the columns */
	padding-inline: calc(4 * var(--cm));             /* 2 cm + 2 cm */
}
.contact-page .section-title { font-size: var(--fs-h1); font-weight: 300; }
.contact-page__rule   { border: 0; border-top: 1px solid var(--c-line); margin: calc(8.3 * var(--cm)) 0 calc(0.5 * var(--cm)); }
.contact-page__address { font-style: normal; line-height: 1.9; }
.contact-page__address,
.form-label           { font-size: var(--fs-small); }                         /* 10 pt */
.form-sublabel        { font-size: max(10px, calc(8 * var(--pt))); }         /*  8 pt */
.contact-page__form form { gap: calc(0.5 * var(--cm)); }
.form-field textarea  { height: calc(2.4 * var(--cm)); min-height: 0; }
.contact-page__details { display: flex; gap: 36px; align-items: flex-start; }
.contact-page__socials { margin-top: 22px; }
.contact-page__map { display: block; max-width: calc(9 * var(--cm)); 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; }
.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; margin-bottom: 2px; }
.form-sublabel { display: block; 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;
	font-size: var(--fs-small);
	padding: 4px 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; font-size: max(12px, calc(12 * var(--pt))); }   /* 12 pt */
.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 {
	display: flex;
	align-items: stretch;
	min-height: var(--footer-h);
	background-color: var(--c-footer);
	background-size: cover;
	background-position: center bottom;
	margin-top: calc(4 * var(--cm));
}
.site-footer__inner {
	width: 100%;
	display: grid;
	gap: 40px;
	color: var(--c-brand-dark);
	grid-template-columns: calc(11 * var(--cm)) 1fr auto;
	align-items: end;
	padding-block: calc(1.8 * var(--cm)) calc(1.5 * var(--cm));
	font-size: var(--fs-small);                                /* 10 pt */
}
.site-footer__brand { align-self: stretch; display: flex; flex-direction: column; justify-content: space-between; }
.site-footer__contact, .site-footer__cta { padding-top: 0; }   /* was 52px */
.btn--footer, .footer-menu { font-size: var(--fs-body); }      /* "Kapcsolat" 16 pt */
.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 a:hover { text-decoration: underline; }

/* =============================================================
   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) {
	.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; }
	.about-intro__content, .team-grid { grid-column: 1; }
	.team-grid, .awards-grid { grid-template-columns: repeat(2, 1fr); width: auto; }
	.clients-grid { grid-template-columns: repeat(3, 1fr); width: auto; gap: 24px; }
	.contact-page { padding-inline: var(--gutter); }
	.services__grid { padding-inline: 0; }
}

@media (max-width: 520px) {
	.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; }
}

/* Front page: the logo row sits directly on the footer (no gap) */
.home .site-footer { margin-top: 0; }
