/*
Theme Name: Atelier Forma
Theme URI: https://atelierforma.adamkuzia.pl
Author: Adam Kuzia
Author URI: https://adamkuzia.pl
Description: Autorski, responsywny motyw premium dla studia projektowania wnętrz. Zawiera realizacje, ofertę, landing konsultacji, formularz, mapę i automatyczną konfigurację demo.
Version: 1.0.0
Requires at least: 6.2
Requires PHP: 7.4
Text Domain: atelier-forma
*/

:root {
	--af-orange: #d66a3a;
	--af-orange-dark: #b95026;
	--af-petrol: #173b3f;
	--af-petrol-light: #24565b;
	--af-cream: #f5f0e8;
	--af-paper: #fffdf8;
	--af-charcoal: #242424;
	--af-muted: #6c6a66;
	--af-line: rgba(36, 36, 36, .14);
	--af-white: #fff;
	--af-serif: "Playfair Display", Georgia, serif;
	--af-sans: "DM Sans", Arial, sans-serif;
	--af-shell: 1240px;
	--af-radius: 2px;
	--af-shadow: 0 24px 70px rgba(28, 35, 33, .13);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
	margin: 0;
	background: var(--af-paper);
	color: var(--af-charcoal);
	font-family: var(--af-sans);
	font-size: 16px;
	line-height: 1.7;
	-webkit-font-smoothing: antialiased;
}
body.nav-open { overflow: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
button { color: inherit; }
::selection { background: var(--af-orange); color: var(--af-white); }

h1, h2, h3, h4, p { margin-top: 0; }
h1, h2, h3 { font-family: var(--af-serif); font-weight: 500; line-height: 1.08; letter-spacing: -.025em; }
h1 { font-size: clamp(3rem, 7vw, 6.5rem); }
h2 { font-size: clamp(2.25rem, 4.8vw, 4.7rem); }
h3 { font-size: clamp(1.45rem, 2.2vw, 2rem); }
p { margin-bottom: 1.35rem; }

.af-shell { width: min(calc(100% - 64px), var(--af-shell)); margin-inline: auto; }
.af-main { overflow: hidden; }
.af-section { padding: clamp(84px, 10vw, 150px) 0; }
.af-content { padding-top: 80px; padding-bottom: 110px; }
.af-kicker {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	margin-bottom: 24px;
	color: var(--af-orange-dark);
	font-size: .76rem;
	font-weight: 700;
	letter-spacing: .17em;
	line-height: 1.3;
	text-transform: uppercase;
}
.af-kicker::before { width: 36px; height: 1px; background: currentColor; content: ""; }
.af-kicker--light { color: #f8d5c4; }
.af-lead { font-size: clamp(1.18rem, 1.7vw, 1.45rem); line-height: 1.55; }
.af-prose { font-size: 1.04rem; }
.af-prose > * { max-width: 760px; }
.af-prose h2, .af-prose h3 { margin-top: 2.2em; }
.af-prose a { color: var(--af-orange-dark); text-decoration: underline; text-underline-offset: 4px; }
.af-two-col { display: grid; grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr); gap: clamp(50px, 9vw, 140px); align-items: start; }
.af-two-col h2 { max-width: 650px; }
.af-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 26px; margin-top: 34px; }

.screen-reader-text {
	position: absolute !important;
	width: 1px; height: 1px; padding: 0; margin: -1px;
	overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.screen-reader-text:focus {
	top: 14px; left: 14px; z-index: 99999; width: auto; height: auto; padding: 10px 16px;
	clip: auto; background: var(--af-white); color: var(--af-charcoal); font-weight: 700;
}
:focus-visible { outline: 3px solid var(--af-orange); outline-offset: 4px; }

.af-button {
	display: inline-flex;
	min-height: 54px;
	align-items: center;
	justify-content: center;
	padding: 14px 25px;
	border: 1px solid transparent;
	background: var(--af-charcoal);
	color: var(--af-white);
	font-size: .88rem;
	font-weight: 700;
	letter-spacing: .02em;
	line-height: 1.2;
	transition: transform .25s ease, background .25s ease, color .25s ease, border-color .25s ease;
}
.af-button:hover { transform: translateY(-2px); }
.af-button--primary { background: var(--af-orange); color: var(--af-white); }
.af-button--primary:hover { background: var(--af-orange-dark); }
.af-button--outline { border-color: var(--af-charcoal); background: transparent; color: var(--af-charcoal); }
.af-button--outline:hover { background: var(--af-charcoal); color: var(--af-white); }
.af-button--small { min-height: 44px; padding: 11px 18px; font-size: .78rem; }
.af-text-link {
	display: inline-flex; align-items: center; gap: 12px;
	border-bottom: 1px solid currentColor; padding-bottom: 5px;
	font-size: .86rem; font-weight: 700; letter-spacing: .03em;
}
.af-text-link svg { width: 20px; transition: transform .2s ease; }
.af-text-link:hover svg { transform: translateX(5px); }
.af-text-link--light { color: var(--af-white); }

/* Header */
.af-header {
	position: relative; z-index: 1000; width: 100%;
	border-bottom: 1px solid var(--af-line);
	background: rgba(255, 253, 248, .95);
	transition: background .25s ease, box-shadow .25s ease, color .25s ease;
}
.af-is-home .af-header { position: absolute; border-color: rgba(255,255,255,.2); background: transparent; color: var(--af-white); }
.af-header.is-scrolled { position: fixed; top: 0; background: rgba(255,253,248,.96); color: var(--af-charcoal); box-shadow: 0 10px 34px rgba(22,31,29,.08); backdrop-filter: blur(14px); }
.admin-bar .af-header.is-scrolled { top: 32px; }
.af-header__inner { display: flex; min-height: 88px; align-items: center; justify-content: space-between; gap: 28px; }
.af-brand { display: inline-flex; align-items: center; gap: 14px; flex: 0 0 auto; }
.af-brand__mark {
	position: relative; display: grid; width: 48px; height: 48px; place-items: center;
	background: var(--af-orange); color: var(--af-white); font-family: var(--af-serif); font-size: 1.3rem;
}
.af-brand__mark i { position: absolute; right: 8px; bottom: 5px; font-size: .7rem; font-style: italic; opacity: .72; }
.af-brand__text { display: flex; flex-direction: column; line-height: 1; }
.af-brand__text strong { font-family: var(--af-serif); font-size: 1.08rem; letter-spacing: .08em; }
.af-brand__text small { margin-top: 7px; font-size: .53rem; font-weight: 600; letter-spacing: .16em; opacity: .72; }
.af-brand .custom-logo { width: auto; max-height: 58px; }
.af-nav { display: flex; align-items: center; gap: 28px; }
.af-menu, .af-menu ul { display: flex; align-items: center; gap: 28px; margin: 0; padding: 0; list-style: none; }
.af-menu a { position: relative; display: block; padding: 12px 0; font-size: .82rem; font-weight: 600; }
.af-menu a::after { position: absolute; right: 0; bottom: 5px; left: 0; height: 1px; background: var(--af-orange); content: ""; transform: scaleX(0); transform-origin: right; transition: transform .25s ease; }
.af-menu a:hover::after, .af-menu .current-menu-item > a::after, .af-menu .current_page_item > a::after { transform: scaleX(1); transform-origin: left; }
.af-is-home .af-header:not(.is-scrolled) .af-nav__cta { border-color: rgba(255,255,255,.55); background: transparent; }
.af-is-home .af-header:not(.is-scrolled) .af-nav__cta:hover { background: var(--af-orange); border-color: var(--af-orange); }
.af-menu-toggle { display: none; width: 46px; height: 46px; padding: 12px; border: 0; background: transparent; cursor: pointer; }
.af-menu-toggle i { display: block; width: 100%; height: 1px; margin: 6px 0; background: currentColor; transition: transform .2s ease, opacity .2s ease; }
.nav-open .af-menu-toggle i:nth-of-type(1) { transform: translateY(7px) rotate(45deg); }
.nav-open .af-menu-toggle i:nth-of-type(2) { opacity: 0; }
.nav-open .af-menu-toggle i:nth-of-type(3) { transform: translateY(-7px) rotate(-45deg); }

/* Hero */
.af-hero {
	position: relative; min-height: 100svh; display: grid; align-items: end;
	background: #233332 var(--af-hero) center/cover no-repeat; color: var(--af-white);
}
.af-hero__shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(11,23,24,.9) 0%, rgba(11,23,24,.68) 38%, rgba(11,23,24,.18) 72%, rgba(11,23,24,.08) 100%); }
.af-hero__inner { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1fr) 230px; align-items: end; gap: 80px; padding-top: 180px; padding-bottom: clamp(100px, 12vh, 150px); }
.af-hero__content { max-width: 800px; }
.af-hero h1 { max-width: 800px; margin-bottom: 28px; color: var(--af-white); }
.af-hero__content > p { max-width: 650px; color: rgba(255,255,255,.82); font-size: clamp(1.08rem, 1.6vw, 1.34rem); }
.af-hero__side { align-self: center; padding-left: 28px; border-left: 1px solid rgba(255,255,255,.4); }
.af-hero__side span { display: block; margin-bottom: 12px; color: #f3aa84; font-family: var(--af-serif); font-size: 2rem; }
.af-hero__side p { margin: 0; color: rgba(255,255,255,.75); font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; }
.af-scroll { position: absolute; right: 34px; bottom: 38px; z-index: 2; display: flex; align-items: center; gap: 12px; color: rgba(255,255,255,.72); font-size: .68rem; letter-spacing: .18em; text-transform: uppercase; writing-mode: vertical-rl; }
.af-scroll span { width: 1px; height: 44px; background: rgba(255,255,255,.6); }

.af-proof-strip { background: var(--af-petrol); color: var(--af-white); }
.af-proof-strip__grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.af-proof-strip__grid > div { min-height: 150px; padding: 34px 34px 28px; border-right: 1px solid rgba(255,255,255,.14); }
.af-proof-strip__grid > div:first-child { border-left: 1px solid rgba(255,255,255,.14); }
.af-proof-strip strong { display: block; margin-bottom: 8px; color: #f4b394; font-family: var(--af-serif); font-size: 2rem; font-weight: 500; }
.af-proof-strip span { display: block; max-width: 170px; color: rgba(255,255,255,.7); font-size: .78rem; line-height: 1.45; }

/* Intro */
.af-intro { background: var(--af-cream); }
.af-intro__grid { display: grid; grid-template-columns: .83fr 1.17fr; align-items: center; gap: clamp(60px, 10vw, 150px); }
.af-intro__copy h2 { max-width: 580px; }
.af-intro__copy p { max-width: 570px; color: #595752; }
.af-intro__copy .af-text-link { margin-top: 18px; }
.af-intro__visual { position: relative; padding: 0 0 80px 80px; }
.af-intro__visual::before { position: absolute; top: -34px; right: -34px; width: 46%; height: 50%; border: 1px solid rgba(214,106,58,.55); content: ""; }
.af-intro__visual img { position: relative; z-index: 1; width: 100%; aspect-ratio: 4/5; object-fit: cover; box-shadow: var(--af-shadow); }
.af-intro__note { position: absolute; right: -16px; bottom: 0; z-index: 2; min-width: 250px; padding: 25px 28px; background: var(--af-orange); color: var(--af-white); }
.af-intro__note span { font-family: var(--af-serif); font-size: 1.6rem; letter-spacing: .12em; }
.af-intro__note p { margin: 8px 0 0; color: rgba(255,255,255,.86); font-size: .78rem; line-height: 1.5; }

/* Section headings and services */
.af-section-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(260px, 420px); align-items: end; gap: 80px; margin-bottom: clamp(50px, 7vw, 90px); }
.af-section-head h2 { max-width: 750px; margin-bottom: 0; }
.af-section-head > p { margin-bottom: 8px; color: var(--af-muted); }
.af-section-head > .af-text-link { justify-self: end; margin-bottom: 12px; }
.af-services { background: var(--af-paper); }
.af-services__grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--af-line); border-left: 1px solid var(--af-line); }
.af-service-card { position: relative; min-height: 430px; display: flex; flex-direction: column; padding: 42px; border-right: 1px solid var(--af-line); border-bottom: 1px solid var(--af-line); background: var(--af-paper); transition: transform .25s ease, box-shadow .25s ease; }
.af-service-card:hover { z-index: 2; transform: translateY(-8px); box-shadow: var(--af-shadow); }
.af-service-card > span { color: var(--af-orange-dark); font-family: var(--af-serif); font-size: 1.3rem; }
.af-service-card h3 { margin-top: 80px; }
.af-service-card p { color: var(--af-muted); }
.af-service-card a { display: inline-flex; align-items: center; gap: 10px; margin-top: auto; font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.af-service-card a svg { width: 18px; }
.af-service-card--accent { background: var(--af-orange); color: var(--af-white); }
.af-service-card--accent > span, .af-service-card--accent p { color: rgba(255,255,255,.75); }

/* Projects */
.af-projects { background: var(--af-cream); }
.af-projects__grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 38px 28px; align-items: start; }
.af-project-card { grid-column: span 4; }
.af-project-card:nth-child(2) { margin-top: 90px; }
.af-project-card__image { position: relative; display: block; overflow: hidden; background: #d8d0c4; }
.af-project-card__image img { width: 100%; aspect-ratio: 4/5; object-fit: cover; transition: transform .7s cubic-bezier(.2,.7,.2,1); }
.af-project-card__image:hover img { transform: scale(1.035); }
.af-project-card__open { position: absolute; right: 0; bottom: 0; display: grid; width: 58px; height: 58px; place-items: center; background: var(--af-orange); color: var(--af-white); transform: translateY(100%); transition: transform .25s ease; }
.af-project-card__image:hover .af-project-card__open { transform: translateY(0); }
.af-project-card__open svg { width: 24px; }
.af-project-card__body { padding-top: 22px; }
.af-project-card__body > div { display: flex; gap: 12px; color: var(--af-muted); font-size: .68rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.af-project-card__body > div span + span::before { margin-right: 12px; content: "·"; }
.af-project-card h2 { margin: 10px 0; font-size: clamp(1.6rem, 2vw, 2.15rem); }
.af-project-card p { margin: 0; color: var(--af-muted); font-size: .9rem; }

/* Process */
.af-process { background: var(--af-petrol); color: var(--af-white); }
.af-process__grid { display: grid; grid-template-columns: .82fr 1.18fr; gap: clamp(70px, 12vw, 170px); }
.af-process__sticky { position: sticky; top: 145px; align-self: start; }
.af-process__sticky h2 { max-width: 540px; color: var(--af-white); }
.af-process__sticky p { max-width: 500px; color: rgba(255,255,255,.68); }
.af-process__steps { margin: 0; padding: 0; list-style: none; }
.af-process__steps li { display: grid; grid-template-columns: 74px 1fr; gap: 28px; padding: 36px 0; border-top: 1px solid rgba(255,255,255,.17); }
.af-process__steps li:last-child { border-bottom: 1px solid rgba(255,255,255,.17); }
.af-process__steps > li > span { color: #efac8b; font-family: var(--af-serif); font-size: 1.25rem; }
.af-process__steps h3 { margin-bottom: 10px; color: var(--af-white); font-family: var(--af-sans); font-size: 1.16rem; font-weight: 600; letter-spacing: 0; }
.af-process__steps p { margin: 0; color: rgba(255,255,255,.64); font-size: .9rem; }

/* Testimonials */
.af-testimonials { background: var(--af-paper); }
.af-testimonials__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.af-testimonials blockquote { margin: 0; padding: 38px; border: 1px solid var(--af-line); background: var(--af-paper); }
.af-testimonials blockquote div { margin-bottom: 24px; color: var(--af-orange); font-size: .75rem; letter-spacing: .2em; }
.af-testimonials blockquote p { font-family: var(--af-serif); font-size: 1.28rem; line-height: 1.5; }
.af-testimonials blockquote footer { color: var(--af-muted); font-size: .72rem; letter-spacing: .06em; text-transform: uppercase; }

/* Forms and consultation */
.af-consultation { background: var(--af-charcoal); color: var(--af-white); }
.af-consultation__grid { display: grid; grid-template-columns: .85fr 1.15fr; align-items: start; gap: clamp(60px, 10vw, 140px); }
.af-consultation__copy h2 { color: var(--af-white); }
.af-consultation__copy > p { max-width: 530px; color: rgba(255,255,255,.68); }
.af-consultation__copy ul, .af-landing-hero ul { margin: 36px 0 0; padding: 0; list-style: none; }
.af-consultation__copy li, .af-landing-hero li { display: flex; align-items: center; gap: 10px; margin: 10px 0; color: rgba(255,255,255,.78); font-size: .84rem; }
.af-consultation__copy li svg, .af-landing-hero li svg { width: 18px; color: #f1a47c; }
.af-form-wrap { padding: clamp(28px, 4vw, 52px); background: var(--af-cream); color: var(--af-charcoal); box-shadow: var(--af-shadow); }
.af-form-wrap--compact { box-shadow: none; }
.af-form { display: grid; gap: 20px; }
.af-form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.af-form label { display: grid; gap: 7px; }
.af-form label > span { color: #56544f; font-size: .72rem; font-weight: 700; letter-spacing: .045em; }
.af-form input:not([type="checkbox"]), .af-form textarea, .af-form select { width: 100%; min-height: 50px; padding: 12px 14px; border: 1px solid rgba(36,36,36,.18); border-radius: 0; background: var(--af-paper); color: var(--af-charcoal); outline: none; }
.af-form textarea { resize: vertical; }
.af-form input:focus, .af-form textarea:focus, .af-form select:focus { border-color: var(--af-orange); box-shadow: 0 0 0 2px rgba(214,106,58,.12); }
.af-checkbox { grid-template-columns: 18px 1fr !important; align-items: start; gap: 10px !important; }
.af-checkbox input { margin-top: 4px; accent-color: var(--af-orange); }
.af-checkbox span { font-weight: 400 !important; line-height: 1.45; }
.af-form .af-button { justify-self: start; gap: 10px; margin-top: 4px; }
.af-form .af-button svg { width: 20px; }
.af-form-message { margin-bottom: 22px; padding: 14px 16px; font-size: .85rem; }
.af-form-message--success { background: #dce9df; color: #214b2a; }
.af-form-message--error { background: #f5d9d3; color: #7a2718; }
.af-hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* Generic page heroes */
.af-page-hero { padding: clamp(100px, 12vw, 175px) 0 clamp(74px, 9vw, 125px); background: var(--af-cream); }
.af-page-hero__grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(280px, .7fr); align-items: end; gap: 90px; }
.af-page-hero h1 { max-width: 900px; margin-bottom: 0; font-size: clamp(3.3rem, 7vw, 7rem); }
.af-page-hero__grid > p { margin-bottom: 12px; color: var(--af-muted); font-size: 1.08rem; }
.af-page-hero--simple { padding-top: 90px; }
.af-page-hero--simple h1 { max-width: 850px; }
.af-page-hero--offer { background: #eadfd2; }
.af-page-hero--contact { background: #e7ece9; }
.af-page-hero--projects { background: var(--af-petrol); color: var(--af-white); }
.af-page-hero--projects h1 { color: var(--af-white); }
.af-page-hero--projects .af-kicker { color: #f4b394; }
.af-page-hero--projects .af-page-hero__grid > p { color: rgba(255,255,255,.7); }

/* About */
.af-about-collage { padding-top: 0; background: var(--af-cream); }
.af-about-collage .af-shell { display: grid; grid-template-columns: 1.45fr .55fr; align-items: end; gap: 28px; }
.af-about-collage__main img { width: 100%; height: min(72vw, 760px); object-fit: cover; }
.af-about-collage__side { display: grid; gap: 28px; }
.af-about-collage__side span { display: grid; aspect-ratio: 1; place-items: center; background: var(--af-orange); color: var(--af-white); font-family: var(--af-serif); font-size: clamp(1.5rem, 3vw, 2.8rem); }
.af-about-collage__side img { width: 100%; aspect-ratio: 1/1.5; object-fit: cover; }
.af-about-copy { background: var(--af-paper); }
.af-values { background: var(--af-cream); }
.af-values__grid { display: grid; grid-template-columns: repeat(4, 1fr); border-left: 1px solid var(--af-line); border-top: 1px solid var(--af-line); }
.af-values article { min-height: 300px; padding: 34px; border-right: 1px solid var(--af-line); border-bottom: 1px solid var(--af-line); }
.af-values article > span { color: var(--af-orange-dark); font-family: var(--af-serif); }
.af-values h3 { margin-top: 72px; font-size: 1.55rem; }
.af-values p { color: var(--af-muted); font-size: .88rem; }

/* Pricing */
.af-pricing { background: var(--af-paper); }
.af-pricing__note { margin: 0 0 28px; color: var(--af-muted); font-size: .76rem; }
.af-pricing__grid { display: grid; grid-template-columns: repeat(3, 1fr); align-items: stretch; }
.af-pricing__grid > article { position: relative; display: flex; flex-direction: column; padding: 42px 36px; border: 1px solid var(--af-line); }
.af-pricing__grid > article + article { border-left: 0; }
.af-pricing__grid article > span { color: var(--af-orange-dark); font-family: var(--af-serif); }
.af-pricing__grid h2 { margin: 45px 0 22px; font-size: 2.1rem; }
.af-price { min-height: 58px; color: var(--af-petrol); font-family: var(--af-serif); font-size: 1.65rem; }
.af-price small { font-family: var(--af-sans); font-size: .76rem; }
.af-pricing__grid article > p:not(.af-price) { color: var(--af-muted); font-size: .88rem; }
.af-pricing__grid ul { margin: 18px 0 34px; padding: 0; list-style: none; }
.af-pricing__grid li { display: flex; gap: 9px; margin: 10px 0; font-size: .84rem; }
.af-pricing__grid li svg { flex: 0 0 18px; width: 18px; color: var(--af-orange); }
.af-pricing__grid .af-button { align-self: stretch; margin-top: auto; }
.af-pricing__featured { z-index: 2; margin: -20px 0; background: var(--af-cream); box-shadow: var(--af-shadow); }
.af-badge { position: absolute; top: 0; right: 0; padding: 8px 12px; background: var(--af-orange); color: var(--af-white); font-size: .62rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.af-scope { background: var(--af-petrol); color: var(--af-white); }
.af-scope h2 { color: var(--af-white); }
.af-scope__list > div { display: grid; grid-template-columns: 60px 1fr; gap: 22px; padding: 25px 0; border-top: 1px solid rgba(255,255,255,.16); }
.af-scope__list > div:last-child { border-bottom: 1px solid rgba(255,255,255,.16); }
.af-scope__list strong { color: #f4b394; font-family: var(--af-serif); font-weight: 500; }
.af-scope__list span { display: grid; gap: 4px; }
.af-scope__list small { color: rgba(255,255,255,.62); }
.af-faq { background: var(--af-cream); }
.af-faq__list details { border-top: 1px solid var(--af-line); }
.af-faq__list details:last-child { border-bottom: 1px solid var(--af-line); }
.af-faq__list summary { position: relative; padding: 25px 42px 25px 0; font-weight: 600; cursor: pointer; list-style: none; }
.af-faq__list summary::-webkit-details-marker { display: none; }
.af-faq__list summary::after { position: absolute; top: 23px; right: 8px; content: "+"; color: var(--af-orange-dark); font-family: var(--af-serif); font-size: 1.5rem; }
.af-faq__list details[open] summary::after { content: "−"; }
.af-faq__list details p { padding-right: 50px; color: var(--af-muted); font-size: .9rem; }

/* Contact and landing */
.af-contact { background: var(--af-paper); }
.af-contact__grid { display: grid; grid-template-columns: .72fr 1.28fr; gap: clamp(50px, 9vw, 130px); align-items: start; }
.af-contact__details dl { margin: 42px 0 0; }
.af-contact__details dl > div { padding: 20px 0; border-top: 1px solid var(--af-line); }
.af-contact__details dl > div:last-child { border-bottom: 1px solid var(--af-line); }
.af-contact__details dt { margin-bottom: 4px; color: var(--af-muted); font-size: .67rem; font-weight: 700; letter-spacing: .11em; text-transform: uppercase; }
.af-contact__details dd { margin: 0; font-family: var(--af-serif); font-size: 1.18rem; }
.af-map iframe { display: block; width: 100%; height: 500px; border: 0; filter: saturate(.65) contrast(.95); }
.af-landing-hero { padding: 150px 0 100px; background: var(--af-petrol); color: var(--af-white); }
.af-landing-hero__grid { display: grid; grid-template-columns: .85fr 1.15fr; align-items: center; gap: clamp(60px, 10vw, 140px); }
.af-landing-hero h1 { color: var(--af-white); font-size: clamp(3.2rem, 6vw, 6rem); }
.af-landing-hero__grid > div:first-child > p { color: rgba(255,255,255,.7); font-size: 1.08rem; }
.af-after-form { background: var(--af-paper); }
.af-after-form__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.af-after-form article { padding: 34px; border: 1px solid var(--af-line); }
.af-after-form article > span { color: var(--af-orange-dark); font-family: var(--af-serif); }
.af-after-form h3 { margin-top: 55px; }
.af-after-form p { color: var(--af-muted); font-size: .9rem; }

/* SEO landing */
.af-seo-hero { padding: 90px 0; background: var(--af-petrol); color: var(--af-white); }
.af-seo-hero__grid { display: grid; grid-template-columns: .88fr 1.12fr; align-items: center; gap: 90px; }
.af-seo-hero h1 { color: var(--af-white); font-size: clamp(3rem, 5.7vw, 5.8rem); }
.af-seo-hero p { max-width: 620px; color: rgba(255,255,255,.72); }
.af-seo-hero img { width: 100%; aspect-ratio: 4/5; object-fit: cover; }
.af-local-services { padding-top: 0; background: var(--af-paper); }

/* Projects archive and single */
.af-project-archive { background: var(--af-cream); }
.af-projects__grid--archive .af-project-card:nth-child(2n) { margin-top: 90px; }
.af-projects__grid--archive .af-project-card:nth-child(3n) { margin-top: 0; }
.af-pagination { margin-top: 70px; }
.af-pagination .nav-links { display: flex; gap: 10px; }
.af-pagination a, .af-pagination span { display: grid; min-width: 42px; height: 42px; padding: 0 12px; place-items: center; border: 1px solid var(--af-line); }
.af-pagination .current { background: var(--af-orange); color: var(--af-white); }
.af-project-hero { padding-top: 90px; background: var(--af-cream); }
.af-project-hero__head { display: grid; grid-template-columns: 1fr .65fr; align-items: end; gap: 90px; padding-bottom: 60px; }
.af-project-hero h1 { margin: 24px 0 0; }
.af-project-hero__head > p { margin: 0 0 14px; color: var(--af-muted); font-size: 1.1rem; }
.af-back { color: var(--af-orange-dark); font-size: .76rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.af-project-hero__image { width: min(100% - 40px, 1520px); margin-inline: auto; }
.af-project-hero__image img { width: 100%; max-height: 850px; object-fit: cover; }
.af-project-details { padding: 90px 0 120px; background: var(--af-paper); }
.af-project-details__grid { display: grid; grid-template-columns: .65fr 1.35fr; gap: 110px; }
.af-project-details dl { margin: 0; }
.af-project-details dl > div { padding: 16px 0; border-top: 1px solid var(--af-line); }
.af-project-details dl > div:last-child { border-bottom: 1px solid var(--af-line); }
.af-project-details dt { color: var(--af-muted); font-size: .66rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.af-project-details dd { margin: 4px 0 0; font-family: var(--af-serif); font-size: 1.12rem; }
.af-project-story h2 { font-size: 2.3rem; }
.af-project-gallery { padding-bottom: 120px; background: var(--af-paper); }
.af-project-gallery__grid { display: grid; grid-template-columns: 1.2fr .8fr; align-items: start; gap: 28px; }
.af-project-gallery img { width: 100%; aspect-ratio: 4/5; object-fit: cover; }
.af-project-gallery img:last-child { margin-top: 110px; }
.af-mini-cta { padding: 50px 0; background: var(--af-orange); color: var(--af-white); }
.af-mini-cta .af-shell { display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.af-mini-cta p { margin: 0; font-family: var(--af-serif); font-size: clamp(1.5rem, 3vw, 2.7rem); }
.af-mini-cta .af-button { background: var(--af-petrol); }

/* Footer and floating contact */
.af-footer { padding: 88px 0 0; background: #182a2c; color: var(--af-white); }
.af-footer__grid { display: grid; grid-template-columns: 1.35fr .65fr .9fr .9fr; gap: 60px; padding-bottom: 70px; }
.af-brand--footer { margin-bottom: 25px; }
.af-footer__brand > p { max-width: 330px; color: rgba(255,255,255,.6); font-size: .85rem; }
.af-footer h2 { margin-bottom: 22px; color: #f1b08f; font-family: var(--af-sans); font-size: .7rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.af-footer-menu, .af-footer-contact { margin: 0; padding: 0; list-style: none; }
.af-footer-menu li, .af-footer-contact li { margin: 9px 0; color: rgba(255,255,255,.68); font-size: .83rem; }
.af-footer a:hover { color: #f3b494; }
.af-footer__cta > h2 { color: var(--af-white); font-family: var(--af-serif); font-size: 1.55rem; font-weight: 500; letter-spacing: 0; text-transform: none; }
.af-footer__bottom { display: flex; align-items: center; justify-content: space-between; gap: 30px; padding-top: 24px; padding-bottom: 24px; border-top: 1px solid rgba(255,255,255,.12); color: rgba(255,255,255,.45); font-size: .67rem; letter-spacing: .05em; }
.af-footer__bottom p { margin: 0; }
.af-footer__bottom > div { display: flex; gap: 26px; }
.af-float { position: fixed; z-index: 900; bottom: 22px; display: flex; align-items: center; justify-content: center; box-shadow: 0 10px 32px rgba(0,0,0,.2); transition: transform .2s ease; }
.af-float:hover { transform: translateY(-3px); }
.af-float--phone { left: 20px; min-height: 48px; gap: 9px; padding: 10px 16px; background: var(--af-petrol); color: var(--af-white); font-size: .78rem; font-weight: 700; }
.af-float--phone svg { width: 20px; }
.af-float--messenger { right: 20px; width: 50px; height: 50px; border-radius: 50%; background: var(--af-orange); color: var(--af-white); }
.af-float--messenger svg { width: 25px; }

/* Reveal */
.js .af-reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.js .af-reveal.is-visible { opacity: 1; transform: none; }

@media (max-width: 1100px) {
	.af-shell { width: min(calc(100% - 44px), var(--af-shell)); }
	.af-nav { gap: 16px; }
	.af-menu, .af-menu ul { gap: 18px; }
	.af-menu a { font-size: .74rem; }
	.af-nav__cta { display: none; }
	.af-hero__inner { grid-template-columns: 1fr 180px; }
	.af-proof-strip__grid > div { padding-inline: 22px; }
	.af-service-card { padding: 32px; }
	.af-contact__grid, .af-landing-hero__grid { gap: 60px; }
}

@media (max-width: 860px) {
	.admin-bar .af-header.is-scrolled { top: 46px; }
	.af-shell { width: min(calc(100% - 36px), var(--af-shell)); }
	.af-header__inner { min-height: 74px; }
	.af-brand__mark { width: 42px; height: 42px; }
	.af-brand__text strong { font-size: .96rem; }
	.af-brand__text small { font-size: .47rem; }
	.af-menu-toggle { display: block; }
	.af-nav { position: fixed; top: 0; right: 0; width: min(88vw, 420px); height: 100svh; display: flex; flex-direction: column; align-items: stretch; justify-content: center; padding: 90px 42px 42px; background: var(--af-petrol); color: var(--af-white); transform: translateX(105%); transition: transform .3s ease; }
	.nav-open .af-nav { transform: translateX(0); box-shadow: -30px 0 70px rgba(0,0,0,.22); }
	.af-menu, .af-menu ul { flex-direction: column; align-items: stretch; gap: 0; }
	.af-menu a { padding: 13px 0; border-bottom: 1px solid rgba(255,255,255,.15); font-family: var(--af-serif); font-size: 1.55rem; font-weight: 500; }
	.af-menu a::after { display: none; }
	.af-nav__cta { display: inline-flex; margin-top: 24px; background: var(--af-orange) !important; }
	.af-hero { min-height: 860px; background-position: 62% center; }
	.af-hero__shade { background: linear-gradient(90deg, rgba(12,27,29,.92), rgba(12,27,29,.42)); }
	.af-hero__inner { grid-template-columns: 1fr; padding-top: 160px; }
	.af-hero__side, .af-scroll { display: none; }
	.af-proof-strip__grid { grid-template-columns: repeat(2, 1fr); }
	.af-proof-strip__grid > div:nth-child(3) { border-left: 1px solid rgba(255,255,255,.14); }
	.af-intro__grid, .af-process__grid, .af-consultation__grid, .af-two-col, .af-contact__grid, .af-landing-hero__grid, .af-seo-hero__grid, .af-project-details__grid { grid-template-columns: 1fr; }
	.af-intro__copy { max-width: 680px; }
	.af-intro__visual { max-width: 650px; justify-self: end; }
	.af-section-head, .af-page-hero__grid, .af-project-hero__head { grid-template-columns: 1fr; gap: 28px; }
	.af-section-head > .af-text-link { justify-self: start; }
	.af-services__grid { grid-template-columns: 1fr; }
	.af-service-card { min-height: 300px; }
	.af-service-card h3 { margin-top: 45px; }
	.af-project-card { grid-column: span 6; }
	.af-project-card:nth-child(2), .af-projects__grid--archive .af-project-card:nth-child(2n) { margin-top: 60px; }
	.af-project-card:nth-child(3), .af-projects__grid--archive .af-project-card:nth-child(3n) { margin-top: 0; }
	.af-process__sticky { position: static; }
	.af-testimonials__grid { grid-template-columns: 1fr; }
	.af-values__grid { grid-template-columns: repeat(2, 1fr); }
	.af-pricing__grid { grid-template-columns: 1fr; gap: 20px; }
	.af-pricing__grid > article + article { border-left: 1px solid var(--af-line); }
	.af-pricing__featured { margin: 0; }
	.af-after-form__grid { grid-template-columns: 1fr; }
	.af-about-collage .af-shell { grid-template-columns: 1fr; }
	.af-about-collage__side { grid-template-columns: .5fr 1fr; align-items: stretch; }
	.af-about-collage__side img { aspect-ratio: 4/3; }
	.af-footer__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
	body { font-size: 15px; }
	.af-shell { width: min(calc(100% - 28px), var(--af-shell)); }
	.af-section { padding: 76px 0; }
	.af-brand__text small { display: none; }
	.af-header__inner { min-height: 68px; }
	.af-nav { width: 100%; padding-inline: 28px; }
	.af-hero { min-height: 790px; background-position: 68% center; }
	.af-hero__inner { padding-top: 130px; padding-bottom: 80px; }
	.af-hero h1 { font-size: clamp(3rem, 15vw, 4.4rem); }
	.af-actions { align-items: stretch; flex-direction: column; gap: 20px; }
	.af-actions .af-button { width: 100%; }
	.af-proof-strip__grid { grid-template-columns: 1fr; }
	.af-proof-strip__grid > div, .af-proof-strip__grid > div:nth-child(3) { min-height: auto; padding: 24px 14px; border-left: 1px solid rgba(255,255,255,.14); border-bottom: 1px solid rgba(255,255,255,.14); }
	.af-intro__visual { padding: 0 0 64px 18px; }
	.af-intro__visual::before { right: -14px; }
	.af-intro__note { right: 0; min-width: 210px; }
	.af-section-head { margin-bottom: 42px; }
	.af-projects__grid { display: block; }
	.af-project-card, .af-project-card:nth-child(2), .af-project-card:nth-child(3), .af-projects__grid--archive .af-project-card:nth-child(n) { margin: 0 0 52px; }
	.af-project-card__image img { aspect-ratio: 4/4.7; }
	.af-process__steps li { grid-template-columns: 48px 1fr; gap: 16px; }
	.af-testimonials blockquote { padding: 28px; }
	.af-form-grid { grid-template-columns: 1fr; }
	.af-form-wrap { padding: 24px 18px; }
	.af-form .af-button { width: 100%; }
	.af-page-hero { padding: 80px 0 64px; }
	.af-page-hero h1 { font-size: clamp(3rem, 14vw, 4.7rem); }
	.af-about-collage__main img { height: 125vw; }
	.af-about-collage__side { grid-template-columns: 1fr; }
	.af-about-collage__side span { aspect-ratio: auto; min-height: 150px; }
	.af-values__grid { grid-template-columns: 1fr; }
	.af-values article { min-height: 250px; }
	.af-pricing__grid > article { padding: 34px 24px; }
	.af-project-hero__image { width: 100%; }
	.af-project-details { padding: 70px 0; }
	.af-project-gallery__grid { grid-template-columns: 1fr; }
	.af-project-gallery img:last-child { margin-top: 0; }
	.af-mini-cta .af-shell { align-items: stretch; flex-direction: column; }
	.af-footer__grid { grid-template-columns: 1fr; gap: 38px; }
	.af-footer__bottom { align-items: flex-start; flex-direction: column; }
	.af-footer__bottom > div { flex-direction: column; gap: 6px; }
	.af-float--phone { width: 50px; height: 50px; padding: 0; border-radius: 50%; }
	.af-float--phone span { display: none; }
}

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
	.js .af-reveal { opacity: 1; transform: none; }
}
