/* ==========================================================================
   Worcester — base: fonts, tokens, reset, type, buttons, shared components
   Figma frame is 1600px wide with a 1300px content column.
   ========================================================================== */

@font-face {
	font-family: "Google Sans Flex";
	src: url("../fonts/google-sans-flex-latin.woff2") format("woff2-variations"), url("../fonts/google-sans-flex-latin.woff2") format("woff2");
	font-weight: 100 1000;
	font-style: normal;
	font-display: swap;
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
	font-family: "Google Sans Flex";
	src: url("../fonts/google-sans-flex-latin-ext.woff2") format("woff2-variations"), url("../fonts/google-sans-flex-latin-ext.woff2") format("woff2");
	font-weight: 100 1000;
	font-style: normal;
	font-display: swap;
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
	--dark: #11110e;
	--brown: #302d23;
	--primary: #fde268;
	--primary-shade: #fff9d8;
	--shade: #f2efe9;
	--card: #f7f7f0;
	--white: #fff;
	--body: #595856;
	--body-text: #6f6f70;
	--body-2: #888887;
	--line: rgba(17, 17, 14, 0.1);

	--font: "Google Sans Flex", "Google Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

	--container: 1300px;
	--gutter: clamp(16px, 4vw, 40px);
	--section: clamp(80px, 10.6vw, 170px);
	--radius: 8px;

	--fs-h1: clamp(2.5rem, 6.5vw, 6.5rem);       /* 104 */
	--fs-h2: clamp(2.125rem, 4vw, 4rem);         /* 64 */
	--fs-h3: clamp(1.5rem, 2.2vw, 2rem);         /* 32 */
	--fs-card: clamp(1.375rem, 1.8vw, 1.75rem);  /* 28 */
	--fs-lg: clamp(1.0625rem, 1.15vw, 1.125rem); /* 18 */
	--ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

body {
	margin: 0;
	font-family: var(--font);
	font-size: var(--fs-lg);
	line-height: 1.5;
	color: var(--dark);
	background: var(--white);
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
	overflow-x: clip;
}

img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3, h4, h5, h6, p, figure, blockquote, dl, dd { margin: 0; }
h1, h2, h3, h4 { font-weight: 600; line-height: 1.2; letter-spacing: -0.02em; }
ul, ol { margin: 0; padding: 0; list-style: none; }
address { font-style: normal; }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; }
.section--dark :focus-visible { outline-color: var(--white); }

.icon { width: 1em; height: 1em; flex: none; }

.screen-reader-text {
	position: absolute !important;
	width: 1px; height: 1px;
	margin: -1px; padding: 0;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
	border: 0;
}
.skip-link:focus {
	position: fixed !important;
	top: 12px; left: 12px; z-index: 1000;
	width: auto; height: auto; clip: auto;
	padding: 12px 20px;
	background: var(--primary);
	color: var(--dark);
	font-weight: 600;
	border-radius: 4px;
}

.container {
	width: 100%;
	max-width: calc(var(--container) + 2 * var(--gutter));
	margin-inline: auto;
	padding-inline: var(--gutter);
}

.section { padding-block: var(--section); }
.section--dark { color: var(--white); background: var(--brown); }

.h2 { font-size: var(--fs-h2); line-height: 1.2; }

/* Section heading group */
.section-head { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.section-head--center { align-items: center; text-align: center; margin-inline: auto; max-width: 860px; }

/* Label chip ("OUR SERVICES") */
.tag {
	display: inline-flex;
	align-items: center;
	padding: 6px 16px 5px;
	border-radius: 4px;
	font-size: var(--fs-lg);
	font-weight: 600;
	line-height: 1.4;
	text-transform: uppercase;
	letter-spacing: 0;
	background: var(--white);
	color: var(--dark);
}
.tag--shade { background: var(--shade); }
.tag--glass {
	background: rgba(255, 255, 255, 0.1);
	color: var(--primary);
	-webkit-backdrop-filter: blur(12px);
	backdrop-filter: blur(12px);
}

/* Buttons */
.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 12px;
	min-height: 56px;
	padding: 15px 32px 16px;
	border: 0;
	border-radius: 4px;
	font-size: var(--fs-lg);
	font-weight: 600;
	line-height: 1.4;
	text-transform: uppercase;
	white-space: nowrap;
	background: var(--primary);
	color: var(--dark);
	transition: background-color 0.25s var(--ease), color 0.25s var(--ease), transform 0.25s var(--ease);
}
.btn__icon { width: 18px; height: 18px; transition: transform 0.25s var(--ease); }
.btn:hover .btn__icon, .btn:focus-visible .btn__icon { transform: translateX(3px); }
.btn--yellow:hover { background: #fbd73c; }
.btn--white { background: var(--white); }
.btn--white:hover { background: var(--primary); }
.btn--dark { background: var(--dark); color: var(--white); }
.btn--soft {
	min-height: 48px;
	padding: 11px 20px 12px;
	justify-content: space-between;
	background: rgba(253, 226, 104, 0.3);
}
.btn--soft:hover { background: var(--primary); }

.arrow-link {
	display: inline;
	font-size: var(--fs-lg);
	font-weight: 600;
	line-height: 1.4;
	text-transform: uppercase;
	color: var(--dark);
}
.arrow-link__icon { display: inline-block; width: 14px; height: 14px; margin-left: 6px; vertical-align: -1px; transition: transform 0.25s var(--ease); }
a.arrow-link:hover .arrow-link__icon, .service-card:hover .arrow-link__icon { transform: translateX(4px); }

/* Square icon buttons (sliders) */
.icon-btn {
	display: inline-grid;
	place-items: center;
	width: 80px;
	height: 80px;
	padding: 0;
	border: 0;
	border-radius: 4px;
	flex: none;
	transition: background-color 0.25s var(--ease), color 0.25s var(--ease), opacity 0.25s;
}
.icon-btn .icon { width: 24px; height: 24px; }
.icon-btn--dark { background: var(--dark); color: var(--primary); }
.icon-btn--dark:hover { background: #2b2a24; }
.icon-btn--yellow { background: var(--primary); color: var(--dark); }
.icon-btn--yellow:hover { background: #fbd73c; }
.icon-btn--glass { background: rgba(255, 255, 255, 0.1); color: var(--white); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.icon-btn--glass:hover { background: rgba(255, 255, 255, 0.2); }
@media (max-width: 767px) {
	.icon-btn { width: 56px; height: 56px; }
	.icon-btn .icon { width: 20px; height: 20px; }
}

/* Reveal on scroll (only when JS is running) */
.js [data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.js [data-reveal].is-visible { opacity: 1; transform: none; }

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
	position: sticky;
	top: 0;
	z-index: 50;
	padding-block: 24px;
	transition: padding 0.3s var(--ease), background-color 0.3s var(--ease), box-shadow 0.3s;
}
.site-header.is-scrolled { padding-block: 12px; background: rgba(255, 249, 216, 0.92); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); box-shadow: 0 1px 0 var(--line); }
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 0; } }

.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }

.brand { display: inline-flex; flex: none; }
.brand__badge {
	display: inline-grid;
	place-items: center;
	width: 240px;
	height: 56px;
	padding: 0 12px;
	border-radius: 6px;
	background: var(--primary);
	color: var(--dark);
}
.brand__mark { width: 216px; height: auto; }
.brand__img { max-height: 56px; width: auto; }

.navbar {
	position: relative;
	display: flex;
	align-items: center;
	gap: 32px;
	min-height: 56px;
	padding: 4px 4px 4px 24px;
	border-radius: 6px;
	background: var(--dark);
	color: var(--white);
}
.nav__list { display: flex; align-items: center; gap: 32px; }
.nav__item { position: relative; display: flex; align-items: center; }
.nav__link {
	display: block;
	padding-block: 8px;
	font-size: 1rem;
	font-weight: 500;
	line-height: 1.4;
	text-transform: uppercase;
	color: rgba(255, 255, 255, 0.7);
	transition: color 0.2s;
}
.nav__link:hover, .nav__link[aria-current="page"], .nav__item:focus-within > .nav__link { color: var(--white); }
.nav__toggle { display: none; }

.nav .sub-menu {
	position: absolute;
	top: calc(100% + 18px);
	left: -20px;
	min-width: 240px;
	padding: 10px;
	border-radius: 6px;
	background: var(--dark);
	box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
	opacity: 0;
	visibility: hidden;
	transform: translateY(6px);
	transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
}
.nav .sub-menu::before { content: ""; position: absolute; inset: -18px 0 auto; height: 18px; }
.nav__item:hover > .sub-menu, .nav__item:focus-within > .sub-menu, .nav__item.is-open > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.nav__sublink { display: block; padding: 10px 14px; border-radius: 4px; font-size: 1rem; color: rgba(255, 255, 255, 0.75); }
.nav__sublink:hover { color: var(--dark); background: var(--primary); }

.navbar__phone {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	min-height: 48px;
	padding: 11px 24px 12px;
	border-radius: 4px;
	background: var(--primary);
	color: var(--dark);
	font-size: var(--fs-lg);
	font-weight: 500;
	line-height: 1.4;
	white-space: nowrap;
}
.navbar__phone .icon { width: 20px; height: 20px; }
.navbar__phone:hover { background: #fbd73c; }
.navbar__menu-btn { display: none; }

@media (max-width: 1100px) {
	.navbar { gap: 8px; padding-left: 4px; }
	.navbar__menu-btn {
		display: inline-grid;
		place-items: center;
		width: 48px;
		height: 48px;
		border: 0;
		border-radius: 4px;
		background: transparent;
		color: var(--white);
	}
	.navbar__menu-btn .icon { width: 24px; height: 24px; }
	.navbar__close, .navbar.is-open .navbar__open { display: none; }
	.navbar.is-open .navbar__close { display: block; }

	.nav {
		position: absolute;
		top: calc(100% + 8px);
		right: 0;
		width: min(360px, calc(100vw - 2 * var(--gutter)));
		max-height: calc(100vh - 120px);
		overflow: auto;
		padding: 12px;
		border-radius: 6px;
		background: var(--dark);
		box-shadow: 0 24px 48px rgba(0, 0, 0, 0.25);
		opacity: 0;
		visibility: hidden;
		transform: translateY(-6px);
		transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
	}
	.navbar.is-open .nav { opacity: 1; visibility: visible; transform: none; }
	.nav__list { flex-direction: column; align-items: stretch; gap: 0; }
	.nav__item { flex-wrap: wrap; justify-content: space-between; }
	.nav__link { padding: 12px; flex: 1; }
	.nav__toggle {
		display: inline-grid;
		place-items: center;
		width: 44px;
		height: 44px;
		border: 0;
		background: none;
		color: var(--white);
	}
	.nav__caret { width: 14px; height: 14px; transform: rotate(90deg); transition: transform 0.2s; }
	.nav__toggle[aria-expanded="true"] .nav__caret { transform: rotate(-90deg); }
	.nav .sub-menu {
		position: static;
		display: none;
		width: 100%;
		min-width: 0;
		padding: 0 0 8px 12px;
		box-shadow: none;
		opacity: 1;
		visibility: visible;
		transform: none;
	}
	.nav .sub-menu::before { display: none; }
	.nav__item.is-open > .sub-menu { display: block; }
}
@media (max-width: 600px) {
	.site-header { padding-block: 16px; }
	.brand__badge { width: 168px; height: 48px; }
	.brand__mark { width: 148px; }
	.navbar { min-height: 48px; }
	.navbar__phone { width: 44px; min-height: 40px; padding: 0; justify-content: center; }
	.navbar__phone span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer { position: relative; isolation: isolate; color: var(--white); background: var(--brown); }
.site-footer__bg { position: absolute; inset: 0 0 64px; z-index: -1; overflow: hidden; }
.site-footer__bg img { width: 100%; height: 100%; object-fit: cover; object-position: center 70%; }
.site-footer__bg::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, var(--brown) 0%, rgba(48, 45, 35, 0.92) 45%, rgba(48, 45, 35, 0.55) 100%);
}
.site-footer__main {
	display: grid;
	grid-template-columns: minmax(0, 390px) minmax(0, 653px);
	justify-content: space-between;
	gap: 64px;
	padding-block: clamp(72px, 10.6vw, 170px);
}
.site-footer__cta { max-width: 560px; }
.site-footer__title { font-size: var(--fs-h3); line-height: 1.2; letter-spacing: -0.01em; }
.site-footer__text { margin: 12px 0 24px; opacity: 0.85; line-height: 1.5; }
.site-footer__cols { display: grid; grid-template-columns: 288px 285px; gap: 80px; }
.site-footer__heading { margin-bottom: 32px; font-size: 1.5rem; line-height: 1.35; letter-spacing: -0.01em; }
.site-footer__menus { display: flex; gap: 32px; }
.footer-menu { display: grid; gap: 16px; flex: 1; align-content: start; }
.footer-menu a, .site-footer__contact a, .site-footer__contact address { opacity: 0.7; transition: opacity 0.2s; line-height: 1.5; }
.footer-menu a:hover, .site-footer__contact a:hover { opacity: 1; }
.site-footer__contact { display: grid; gap: 16px; }
.socials { display: flex; gap: 10px; margin-top: 32px; }
.socials__link {
	display: grid;
	place-items: center;
	width: 40px;
	height: 40px;
	border: 1px solid rgba(255, 255, 255, 0.1);
	border-radius: 4px;
	background: rgba(255, 255, 255, 0.1);
	transition: background-color 0.2s, color 0.2s;
}
.socials__link .icon { width: 16px; height: 16px; }
.socials__link:hover { background: var(--primary); border-color: var(--primary); color: var(--dark); }
.site-footer__bar { background: rgba(255, 255, 255, 0.05); border-top: 1px solid rgba(255, 255, 255, 0.1); }
.site-footer__bar-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 24px; min-height: 64px; padding-block: 18px; }
.site-footer__bar p { font-size: var(--fs-lg); }
.legal-menu { display: flex; align-items: center; gap: 16px; }
.legal-menu li + li::before { content: ""; display: inline-block; width: 10px; height: 10px; margin-right: 16px; border-radius: 2px; background: rgba(255, 255, 255, 0.2); vertical-align: middle; }
.legal-menu a:hover { color: var(--primary); }

@media (max-width: 1100px) {
	.site-footer__main { grid-template-columns: 1fr; }
	.site-footer__cols { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 48px; }
}
@media (max-width: 600px) {
	.site-footer__cols { grid-template-columns: 1fr; }
	.footer-menu, .site-footer__contact { gap: 0; }
	.footer-menu a, .site-footer__contact a, .site-footer__contact address { display: inline-block; padding-block: 8px; }
	.legal-menu a { display: inline-block; padding-block: 10px; }
	.site-footer__heading { margin-bottom: 20px; }
}

/* ==========================================================================
   Post lists (shared)
   ========================================================================== */
.post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 560px), 1fr)); gap: 20px; }
.nav-links { display: flex; gap: 8px; margin-top: 48px; }
.page-numbers { display: grid; place-items: center; min-width: 44px; height: 44px; padding: 0 12px; border-radius: 4px; background: var(--shade); font-weight: 600; }
.page-numbers.current { background: var(--primary); }

/* Post card (used on the home page and in lists) */
.post-card {
	display: grid;
	grid-template-columns: 284px minmax(0, 1fr);
	gap: 28px;
	padding: 6px 26px 6px 6px;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	background: var(--white);
}
.post-card__media { display: block; overflow: hidden; border-radius: 4px; aspect-ratio: 284 / 290; }
.post-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
.post-card:hover .post-card__media img { transform: scale(1.05); }
.post-card__body { display: flex; flex-direction: column; justify-content: space-between; gap: 24px; padding-block: 22px; }
.post-card__meta { display: flex; flex-wrap: wrap; gap: 6px 24px; font-size: 1rem; color: var(--dark); opacity: 0.6; }
.post-card__meta span { display: inline-flex; align-items: center; gap: 8px; }
.post-card__meta .icon { width: 20px; height: 20px; }
.post-card__title { margin-top: 16px; font-size: var(--fs-card); font-weight: 500; line-height: 1.2; letter-spacing: -0.01em; }
.post-card__title a:hover { text-decoration: underline; text-decoration-color: var(--primary); text-decoration-thickness: 3px; text-underline-offset: 4px; }
.post-card__more { width: 100%; }
@media (max-width: 600px) {
	.post-card { grid-template-columns: 1fr; padding: 6px; }
	.post-card__body { padding: 8px 14px 14px; }
	.post-card__media { aspect-ratio: 16 / 10; }
}
