:root {
	--md-sys-color-primary: #8d4b28;
	--md-sys-color-on-primary: #ffffff;
	--md-sys-color-primary-container: rgba(255, 220, 198, 0.9);
	--md-sys-color-on-primary-container: #331106;

	--md-sys-color-secondary: #6e5b52;
	--md-sys-color-on-secondary: #ffffff;

	--md-sys-color-surface: rgba(250, 244, 239, 0.92);
	--md-sys-color-surface-container: rgba(255, 255, 255, 0.86);
	--md-sys-color-surface-container-high: rgba(255, 255, 255, 0.96);
	--md-sys-color-on-surface: #251d1a;
	--md-sys-color-on-surface-variant: #5e544f;
	--md-sys-color-outline: rgba(109, 94, 86, 0.22);

	--md-elevation-1: 0 1px 2px rgba(29, 22, 18, 0.14), 0 1px 3px rgba(29, 22, 18, 0.08);
	--md-elevation-2: 0 2px 6px rgba(29, 22, 18, 0.14), 0 1px 2px rgba(29, 22, 18, 0.1);
	--md-elevation-3: 0 8px 20px rgba(29, 22, 18, 0.18);

	--md-radius-xs: 8px;
	--md-radius-sm: 12px;
	--md-radius-md: 16px;
	--md-radius-lg: 24px;
	--md-radius-xl: 28px;
}

* {
	-webkit-tap-highlight-color: transparent;
	box-sizing: border-box;
}

body {
	margin: 0;
	min-height: 100vh;
	font-family: 'Roboto', sans-serif;
	color: var(--md-sys-color-on-surface);
	background-color: #f1ece8;
	background-image: url('../../img/bg.jpg');
	background-size: cover;
	background-position: center;
	background-attachment: fixed;
}

a {
	color: inherit;
}

.page-shell {
	min-height: 100vh;
	background:
		radial-gradient(circle at top right, rgba(141, 75, 40, 0.1), transparent 30%),
		radial-gradient(circle at bottom left, rgba(110, 91, 82, 0.08), transparent 35%);
}

.page-shell .container {
	max-width: 880px;
}

.site-header {
	padding: 0.85rem 0 0.25rem;
}

.site-header .container > .d-flex {
	justify-content: center;
}

.brand-mark {
	display: inline-flex;
	justify-content: center;
	align-items: center;
	text-decoration: none;
}

.brand-logo {
	display: block;
	width: clamp(126px, 20vw, 190px);
	height: auto;
	max-width: 100%;
	filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.16));
}

@media (max-width: 767px) {
	.brand-logo {
		width: clamp(128px, 42vw, 172px);
	}
}

.hero {
	padding: 1rem 0 1.15rem;
}

.info-card,
.carousel-card,
.read-more-modal {
	background: var(--md-sys-color-surface-container-high);
	border: 1px solid var(--md-sys-color-outline);
	border-radius: var(--md-radius-lg);
	box-shadow: var(--md-elevation-2);
}

.hero-card,
.info-card {
	padding: 1rem;
}

.hero-rectangle {
	min-height: 320px;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	align-items: flex-start;
	padding: 2rem;
	border-radius: 4px;
	background:
		linear-gradient(90deg, rgba(70, 69, 69, 0.73) 0%, rgba(54, 54, 54, 0.2) 55%, rgba(61, 61, 61, 0.2) 100%),
		url('../../img/hero.png');
	background-color: #e6e2e0;
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
	box-shadow: 0 24px 60px rgba(24, 15, 10, 0.42), 0 10px 24px rgba(24, 15, 10, 0.24);
	position: relative;
	overflow: hidden;
}

.hero-rectangle::after {
	content: '';
	position: absolute;
	inset: 0;
	box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
	pointer-events: none;
}

.hero-rectangle h1,
.hero-rectangle p,
.hero-rectangle .lead,
.hero-rectangle .coverage-list li {
	color: #fff;
	text-shadow: 0 2px 10px rgba(0, 0, 0, 0.45);
}

.hero-copy h1,
.section-title,
.polaroid figcaption,
.read-more-modal .modal-title {
	font-family: 'Roboto', sans-serif;
}

.hero-copy h1 {
	font-size: clamp(1.42rem, 3.7vw, 2.18rem);
	line-height: 1.08;
	margin-bottom: 0.55rem;
	font-weight: 800;
}

.hero-copy .lead {
	font-size: 0.9rem;
	line-height: 1.45;
	color: var(--md-sys-color-on-surface-variant);
}

.hero-actions {
	display: flex;
	flex-wrap: wrap;
	justify-content: flex-end;
	gap: 0.5rem;
	margin-top: 1rem;
	width: 100%;
}

.hero-actions .btn {
	padding: 0.5rem 1rem;
	font-size: 1rem;
	line-height: 1.5;
	border-radius: 0.375rem;
	font-weight: 500;
	box-shadow: none;
}

.btn-wood {
	background: var(--md-sys-color-primary);
	border: 1px solid var(--md-sys-color-primary);
	color: var(--md-sys-color-on-primary);
}

.btn-wood:hover,
.btn-wood:focus {
	background: #7d4020;
	border-color: #7d4020;
	color: var(--md-sys-color-on-primary);
}

.btn-outline-wood {
	background: transparent;
	border: 1px solid #8d827c;
	color: #4b403b;
}

.btn-outline-wood:hover,
.btn-outline-wood:focus {
	background: rgba(141, 75, 40, 0.08);
	border-color: #7a6e67;
	color: #3d322d;
}

.coverage-list {
	display: flex;
	flex-wrap: wrap;
	gap: 0.45rem;
	padding: 0;
	margin: 0.95rem 0 0;
	list-style: none;
}

.coverage-list li {
	padding: 0.28rem 0.56rem;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.16);
	color: #fff;
	font-size: 0.73rem;
	font-weight: 600;
	border: 1px solid rgba(255, 255, 255, 0.28);
}

.polaroid-section {
	background: transparent;
	border: 0;
	box-shadow: none;
	backdrop-filter: none;
	padding: 0.2rem 0;
}

.eyebrow {
	display: inline-flex;
	align-items: center;
	margin-bottom: 0.62rem;
	padding: 0.27rem 0.66rem;
	border-radius: 999px;
	background: var(--md-sys-color-primary-container);
	color: var(--md-sys-color-on-primary-container);
	font-size: 0.7rem;
	font-weight: 700;
	letter-spacing: 0.05em;
	text-transform: uppercase;
}

.hero-card .lead {
	margin-bottom: 0;
}

.section-block {
	padding-bottom: 1.2rem;
}

.section-title {
	font-size: clamp(1.1rem, 2.5vw, 1.55rem);
	margin-bottom: 0.5rem;
	color: var(--md-sys-color-on-surface);
	font-weight: 700;
}

.contact-card {
	display: flex;
	flex-direction: column;
	gap: 0.85rem;
	height: 100%;
}

.contact-intro {
	margin: 0;
	color: var(--md-sys-color-on-surface-variant);
	font-size: 0.9rem;
	line-height: 1.55;
}

.contact-details {
	display: grid;
	gap: 0.55rem;
}

.contact-detail {
	display: flex;
	flex-direction: column;
	gap: 0.18rem;
	padding: 0.75rem 0.85rem;
	border-radius: var(--md-radius-sm);
	background: rgba(141, 75, 40, 0.06);
	border: 1px solid rgba(141, 75, 40, 0.12);
	text-decoration: none;
	transition: transform 160ms ease, background-color 160ms ease, border-color 160ms ease;
}

.contact-detail:hover,
.contact-detail:focus {
	text-decoration: none;
	transform: translateY(-1px);
	background: rgba(141, 75, 40, 0.1);
	border-color: rgba(141, 75, 40, 0.2);
}

.contact-detail-label {
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.04em;
	
	color: var(--md-sys-color-on-surface-variant);
}

.contact-detail-label .instagram-icon {
	width: 0.92rem;
	height: 0.92rem;
}

.contact-detail-value {
	font-size: 0.92rem;
	font-weight: 700;
	color: var(--md-sys-color-on-surface);
	word-break: break-word;
}

.contact-mail-btn {
	align-self: flex-start;
}

.instagram-link {
	display: inline-flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem;
	width: 100%;
	margin-top: auto;
	padding: 0.9rem 1rem;
	border-radius: var(--md-radius-sm);
	background: rgba(141, 75, 40, 0.06);
	border: 1px solid rgba(141, 75, 40, 0.12);
	font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
	font-weight: 700;
	text-decoration: none;
	color: #000;
	font-size: 0.86rem;
	line-height: 1.25;
	box-shadow: none;
	transition: transform 160ms ease, background-color 160ms ease, border-color 160ms ease;
}

.instagram-link:hover,
.instagram-link:focus {
	color: #000;
	text-decoration: none;
	transform: translateY(-1px);
	background: rgba(141, 75, 40, 0.1);
	border-color: rgba(141, 75, 40, 0.2);
}

.instagram-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 1.12rem;
	height: 1.12rem;
	flex-shrink: 0;
}

.instagram-icon svg {
	width: 100%;
	height: 100%;
	fill: currentColor;
	opacity: 0.8;
}

.contact-instagram-handle {
	margin-left: auto;
	font-size: 0.78rem;
	font-weight: 600;
	color: #000;
}

.brand-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 0.75rem;
	align-items: center;
}

.brand-tile {
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0.6rem;
	min-height: 78px;
	background: transparent;
	border: 0;
	border-radius: var(--md-radius-sm);
	text-decoration: none;
	transition: transform 160ms ease;
}

.brand-tile:hover,
.brand-tile:focus {
	text-decoration: none;
	transform: translateY(-2px);
}

.brand-tile img,
.brand-tile svg {
	max-width: 100%;
	max-height: 42px;
	object-fit: contain;
	transition: transform 160ms ease, filter 160ms ease;
}

.brand-logo--inverted {
	filter: invert(1);
}

.carousel-card {
	padding: 0.7rem;
}

.carousel-card .carousel-inner {
	border-radius: var(--md-radius-md);
	overflow: hidden;
}

.carousel-card .carousel-item img {
	aspect-ratio: 4 / 3;
	object-fit: cover;
}

.carousel-card .carousel-caption {
	left: 0;
	right: 0;
	bottom: 0;
	padding: 0.8rem 1rem;
	background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.65) 100%);
	text-align: left;
}

.carousel-card .carousel-caption h3 {
	margin: 0;
	font-size: 0.95rem;
	font-weight: 700;
	color: #fff;
}

.service-list {
	list-style: none;
	padding: 0;
	margin: 0;
	display: grid;
	gap: 0.65rem;
}

.service-list li {
	padding: 0.7rem 0.8rem;
	border-radius: var(--md-radius-sm);
	background: rgba(141, 75, 40, 0.06);
	border: 1px solid rgba(141, 75, 40, 0.12);
}

.service-list strong {
	display: block;
	margin-bottom: 0.2rem;
	color: var(--md-sys-color-on-surface);
	font-size: 0.9rem;
}

.service-list span {
	display: block;
	color: var(--md-sys-color-on-surface-variant);
	font-size: 0.8rem;
	line-height: 1.45;
}

.polaroid-grid {
	position: relative;
	min-height: 13.8rem;
}

.polaroid {
	position: absolute;
	width: min(176px, 68vw);
	background: #ffffff;
	padding: 0.42rem 0.42rem 0.62rem;
	border: 1px solid rgba(98, 84, 76, 0.2);
	border-radius: 10px;
	box-shadow: var(--md-elevation-3);
	transform: rotate(var(--rotation));
	user-select: none;
}

.polaroid:nth-child(1) {
	top: 0.3rem;
	left: 12%;
	--rotation: -5deg;
}

.polaroid:nth-child(2) {
	top: 0.85rem;
	left: 35%;
	--rotation: 3deg;
}

.polaroid:nth-child(3) {
	top: 1.65rem;
	left: 58%;
	--rotation: -3deg;
}

.polaroid img {
	display: block;
	width: 100%;
	aspect-ratio: 4 / 3;
	object-fit: cover;
	border-radius: 6px;
	box-shadow: none;
	pointer-events: none;
	-webkit-user-drag: none;
}

.polaroid figcaption {
	padding-top: 0.3rem;
	text-align: center;
	color: #4c3d36;
	font-size: 0.76rem;
	font-weight: 600;
	text-shadow: 0 1px 0 rgba(255, 255, 255, 0.4);
}

.read-more-modal {
	background: var(--md-sys-color-surface);
	color: var(--md-sys-color-on-surface);
	box-shadow: var(--md-elevation-3);
	border-radius: var(--md-radius-xl);
}

.read-more-modal .modal-title {
	font-size: 1.2rem;
	font-weight: 700;
	color: var(--md-sys-color-on-surface);
}

.read-more-modal .modal-body p,
.read-more-modal li {
	color: var(--md-sys-color-on-surface-variant);
	font-size: 0.9rem;
}

.modal-brand-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 0.72rem;
}

.modal-brand-item {
	display: flex;
	align-items: center;
	gap: 0.55rem;
	padding: 0.38rem 0.52rem;
	border-radius: var(--md-radius-sm);
	background: rgba(141, 75, 40, 0.06);
	border: 1px solid rgba(141, 75, 40, 0.12);
}

.modal-brand-item img,
.modal-brand-item svg {
	width: 1.28rem;
	height: 1.28rem;
	object-fit: contain;
}

.modal-brand-item span {
	font-weight: 700;
	font-size: 0.77rem;
	color: #4d3f39;
}

.reference-card-image {
	height: 180px;
	object-fit: cover;
	object-position: center;
}

footer {
	padding: 0.72rem 0 1.1rem;
}

.footer-copy {
	text-align: center;
	font-size: 0.73rem;
	color: #7f726b;
}

.footer-copy a {
	color: #8a7d74;
}

@media (max-width: 991.98px) {
	body {
		background-attachment: scroll;
	}

	.brand-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.polaroid-grid {
		min-height: auto;
		display: grid;
		gap: 0.4rem;
		justify-items: center;
	}

	.polaroid {
		position: relative;
		inset: auto;
		top: auto;
		left: auto;
		right: auto;
		margin: 0 auto;
		width: min(170px, 78vw);
	}

	.polaroid:nth-child(1),
	.polaroid:nth-child(2),
	.polaroid:nth-child(3) {
		left: auto;
		right: auto;
		top: auto;
	}
}

@media (max-width: 767.98px) {
	.site-header {
		padding-bottom: 0.2rem;
	}

	.brand-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 0.45rem;
	}

	.brand-tile {
		padding: 0.45rem;
		min-height: 64px;
	}

	.brand-tile img,
	.brand-tile svg {
		max-height: 34px;
	}

	.hero {
		padding-top: 0.65rem;
	}

	.hero-card,
	.info-card,
	.carousel-card,
	.read-more-modal {
		border-radius: var(--md-radius-md);
		padding: 0.8rem;
	}

	.hero-rectangle {
		min-height: 280px;
		padding: 1.2rem;
	}

	.hero-copy h1 {
		font-size: 1.48rem;
	}

	.hero-actions {
		justify-content: flex-start;
	}

	.contact-mail-btn {
		align-self: stretch;
		text-align: center;
	}

	.instagram-link {
		padding: 0.85rem 0.95rem;
	}

	.contact-instagram-handle {
		font-size: 0.74rem;
	}

	.reference-card-image {
		height: 160px;
	}
}
