
/* Reset and base styles */

* {
	box-sizing: border-box;
	margin: 0;
	padding: 0;
}

body {
	font-family: Arial, Helvetica, sans-serif;
	min-height: 100vh;
	display: flex;
	flex-direction: column;
	background: white;
	color: #fff;
}

main {
	flex: 1 0 auto;
}
a {
	text-decoration: none;
	color: inherit;
}
/* Logo (fixed top-left)        */

.logo-link {
	position: absolute;
	left: 24px;
	top: 16px;
	z-index: 1200;
}

@media (max-width: 480px) {
	.logo-link {
		left: 12px;
		top: 12px;
	}
}

.logo {
	display: block;
	width: 350px;
	height: auto;
}

@media (max-width: 768px) {
	.logo {
		width: 180px;
	}
}

@media (max-width: 480px) {
	.logo {
		width: 120px;
	}
}

/* Hero / frontpage             */


.hero {
	min-height: 100vh;
	background-image: url('bilder/hus.jpeg');
	background-size: cover;
	background-position: center;
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	
}

.hero-content {
	position: relative;
	z-index: 10;
	padding: 20px;
}

/* Gray section under the hero with same height */
.sub-hero {
    min-height: 100vh;
    background: #2d2d2d;
	position: relative;
}

@media (max-width: 900px) {
	.sub-hero {
		min-height: auto;
		display: flex;
		flex-direction: column;
		padding: 40px 0;
	}
}

@media (max-width: 600px) {
	.sub-hero {
		padding: 30px 0;
	}
}

/* Left green stripe beside the sub-hero */
.sub-hero .side-stripe {
	position: absolute;
	left: 90px;
	top: 50%;
	transform: translateY(-50%);
	width: 370px;
	height: 100%;
	background: #d2d2ac;
	box-shadow: 0 6px 18px rgba(0,0,0,0.15);
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 8px;
}

.sub-hero .stripe-text {
	color: #2d2d2d;
	font-weight: 700;
	writing-mode: horizontal-tb;
	text-orientation: mixed;
	transform: none;
	font-size: 1rem;
	white-space: nowrap;
	line-height: 1.4;
}

@media (max-width: 1200px) {
	.sub-hero .side-stripe {
		width: 300px;
		left: 50px;
	}
}

@media (max-width: 900px) {
	.sub-hero .side-stripe {
		position: static;
		transform: none;
		width: 100%;
		height: auto;
		padding: 30px 20px;
		margin-bottom: 20px;
		order: 1;
	}
	
	.sub-hero .stripe-text {
		white-space: normal;
		text-align: center;
		font-size: 0.95rem;
		line-height: 1.5;
	}
}

@media (max-width: 600px) {
	.sub-hero .side-stripe {
		padding: 20px 15px;
		margin-bottom: 15px;
	}
	
	.sub-hero .stripe-text {
		font-size: 0.85rem;
		line-height: 1.4;
	}
}

/* Right-side images in sub-hero */
.sub-hero-right {
	position: absolute;
	right: 104px;
	top: 50%;
	transform: translateY(-50%);
	display: flex;
	flex-direction: column;
	gap: 100px;
	align-items: flex-end;
}

.sub-hero-right img {
	width: 470px;
	height: auto;
	box-shadow: 0 8px 24px rgba(0,0,0,0.25);
	object-fit: cover;
	display: block;
}

@media (max-width: 1200px) {
	.sub-hero-right img {
		width: 350px;
	}
	.sub-hero-right {
		right: 50px;
	}
}

@media (max-width: 900px) {
	.sub-hero-right {
		position: static;
		transform: none;
		flex-direction: column;
		gap: 15px;
		align-items: center;
		justify-content: center;
		width: 100%;
		padding: 20px;
		order: 2;
	}

	.sub-hero-right img {
		width: 100%;
		max-width: 400px;
		height: auto;
	}
}

@media (max-width: 600px) {
	.sub-hero-right {
		padding: 15px;
		gap: 12px;
	}

	.sub-hero-right img {
		max-width: 100%;
		max-height: 250px;
	}
}

/* Photo gallery */

		.sub-hero-right img {
			max-width: 100%;
			max-height: 250px
		
	}

	/* Photo gallery */
	.photo-gallery {
		max-width: 1200px;
		margin: 40px auto;
		padding: 0 20px;
	}
	.photo-gallery { text-align: center; }
	.gallery-title{
		text-align:center;
		font-size:2.6rem;
		color:#2d2d2d;
		margin-bottom:60px;
		display:inline-block;
		padding-bottom:8px;
		margin-top:38px;
	}
	.gallery-grid {
		display: grid;
		grid-template-columns: repeat(3, 1fr);
		row-gap: 100px;
		column-gap: 70px;
	}

	.gallery-item {
		background: #fff;
		overflow: visible; /* allow pseudo-element to show */
		
		text-align: center;
		position: relative;
	}

	.gallery-item img {
		width: 100%;
		height: 220px;
		object-fit: cover;
		display: block;
	}

	/* Thin floating line above each image */
	.gallery-item::before {
		content: "";
		position: absolute;
		top: -15px; /* distance from top of item */
		left: 50%;
		transform: translateX(-50%);
		width: 100%;
		height: 2px;
		background: #2d2d2d;
		border-radius: 1px;
	    z-index: 5;
        color: #2d2d2d;
	}

	.gallery-caption {
		padding: 10px 12px 18px;
		font-size: 14px;
		color: #2d2d2d;
		display: flex;
		flex-direction: column;
		gap: 4px;
		align-items: center;
	}

	.gallery-caption .caption-street {
		font-weight: 700;
		color: #222;
	}

	.gallery-caption .caption-size,
	.gallery-caption .caption-beds {
		font-size: 13px;
		color: #555;
	}

	@media (max-width: 900px) {
		.gallery-grid {
			grid-template-columns: repeat(2, 1fr);
		}
		.gallery-grid img { height: 200px; }
	}

	@media (max-width: 600px) {
		.gallery-grid {
			grid-template-columns: 1fr;
		}
		.gallery-grid img { height: 180px; }
	}

.hero-box {
	background: #f8f6f1;
	color: black;
	padding: 28px 30px;
	border-radius: 10px;
	max-width: 550px;
	text-align: center;
	box-shadow: 0 12px 30px rgba(0,0,0,0.5);
	transform: translateY(30px);
	opacity: 0;
	animation: floatUp 800ms cubic-bezier(.2,.9,.3,1) 300ms forwards;
}

.hero-box h1 {
	font-size: 2.4rem;
	margin-bottom: 10px;
}

.hero-box p {
	color: #eee;
	margin: 8px 0;
}

.cta {
	display: inline-block;
	margin-top: 8px;
	padding: 10px 18px;
	background:white;
	color: #222;
	border-radius: 6px;
	text-decoration: none;
    border: 1px solid black;
}

.actions {
	display: flex;
	gap: 12px;
	justify-content: center;
	align-items: center;
	flex-wrap: wrap;
	margin-top: 12px;
}

.cta:hover {
	background: black;
	color: white;
	
}


@keyframes floatUp {
	to {
		transform: none;
		opacity: 1;
	}
}

/* Footer                       */


.site-footer {
	background: #111;
	color: #bbb;
}

.site-footer .footer-inner {
 	max-width: 1100px;
    min-height: 10vh;
 	margin: 0 auto;
 	display: flex;
 	gap: 28px;
 	align-items: flex-start;
 	justify-content: space-between;
 	padding: 28px 20px;
 	border-bottom: 1px solid rgba(255,255,255,0.04);
}

.footer-col {
 	flex: 1 1 200px;
 	min-width: 160px;
}

.footer-col h3 {
 	color: #fff;
 	margin-bottom: 8px;
 	font-size: 1rem;
}

.footer-col p,
.footer-col li,
.footer-col a {
 	color: #bbb;
 	font-size: 0.95rem;
 	text-decoration: none;
}

.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col ul li { margin: 6px 0; }
.footer-col a:hover { color: #fff; text-decoration: underline; }

.site-footer .footer-bottom {
 	text-align: center;
 	font-size: 0.9rem;
 	padding: 14px 10px 24px;
 	color: #888;
}

@media (max-width: 700px) {
	.logo {
		width: 86px;
	}

	.hero-box {
		padding: 20px;
		font-size: 0.95rem;
		margin: 0 12px;
	}

	.header-inner h1 {
		white-space: normal;
	}
}


	