/* Simple responsive CSS */
.root-placeholder{}
:root{
	--maxw:1100px;
	--accent:#2b7a2b;
	/* Hero controls (editable) */
	--hero-height: 75vh; /* change to control hero vertical size */
	--hero-pos-x: center; /* background-position x (left/center/right or %) */
	--hero-pos-y: center; /* background-position y (top/center/bottom or %) */
	--hero-overlay: rgba(0,0,0,0.35); /* dark overlay on hero */
}
*{box-sizing:border-box}
body{font-family:system-ui,-apple-system,Segoe UI,Roboto,'Helvetica Neue',Arial;margin:0;color:#222}
.wrap{max-width:var(--maxw);margin:0 auto;padding:1rem}
.site-header{
	background: transparent; /* header overlays the hero */
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	z-index: 50;
}
.site-header .wrap{display:flex;align-items:center;justify-content:space-between;padding:1rem 0}
.logo{margin:0;font-size:1.25rem}
nav a{margin-left:1rem;color:inherit;text-decoration:none}
.hero{
	position: relative;
	min-height: var(--hero-height);
	display: flex;
	align-items: center;
	justify-content: center;
	text-align: center;
	padding: 0;
	overflow: hidden;
}
.btn{display:inline-block;padding:.6rem 1rem;border-radius:8px;background:var(--accent);color:#fff;text-decoration:none;border:none}
.cards{display:flex;gap:1rem;flex-wrap:wrap}
.card{flex:1 1 200px;border:1px solid #eee;padding:.5rem}
.card img{width:100%;height:150px;object-fit:cover}
.products{display:flex;gap:1rem;flex-wrap:wrap}
.product{flex:1 1 200px;border:1px solid #eee;padding:.5rem;text-align:center}
.product img{width:100%;height:140px;object-fit:cover}
form{max-width:700px}
label{display:block;margin-bottom:.6rem}
input[type=text],input[type=email],textarea{width:100%;padding:.5rem;border:1px solid #ccc;border-radius:6px}
.result{margin-top:1rem}
.site-footer{background:#f7f7f7;padding:1rem;border-top:1px solid #eee}

/* Territory section styles */
.territory-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:1rem;margin-top:1rem}
.territory-card{position:relative;overflow:hidden;border-radius:10px;box-shadow:0 6px 18px rgba(0,0,0,0.08);cursor:pointer;transition:transform .25s ease,box-shadow .25s ease;border:1px solid rgba(0,0,0,0.06)}
.territory-card img{width:100%;height:220px;object-fit:cover;display:block;transition:transform .35s ease}
.territory-card:hover img,.territory-card:focus img{transform:scale(1.05)}
.card-caption{position:absolute;left:0;right:0;bottom:0;padding:.8rem 1rem;background:linear-gradient(180deg,transparent,rgba(0,0,0,0.5));color:#fff;font-weight:600}

/* Modal preview */
.image-modal{position:fixed;inset:0;display:flex;align-items:center;justify-content:center;background:rgba(0,0,0,0.6);z-index:200}
.image-modal .modal-inner{max-width:1000px;width:94%;background:#fff;border-radius:8px;overflow:hidden}
.image-modal img{width:100%;height:auto;display:block}
.image-modal .modal-caption{padding:1rem;background:#fafafa}
.image-modal .modal-close{position:absolute;top:10px;right:12px;background:rgba(255,255,255,0.9);border-radius:20px;border:0;padding:.4rem .6rem;cursor:pointer}

/* Gallery modal styles */
.gallery-modal .modal-inner{position:relative;max-width:1100px}
.gallery-modal .modal-body{display:flex;align-items:flex-start;gap:1rem;padding:1rem;background:#fff}
.gallery-modal .modal-left{display:flex;flex-direction:column;align-items:center;gap:.6rem;flex:1;min-width:320px}
.gallery-modal .modal-right{width:420px;max-width:45%;padding:0.5rem 1rem}
.gallery-modal .modal-main-img{max-height:70vh;width:100%;object-fit:contain;display:block;border-radius:6px}
.gallery-modal .modal-prev,.gallery-modal .modal-next{background:var(--accent);color:#fff;border:0;padding:.6rem 1rem;border-radius:8px;cursor:pointer}
.gallery-modal .modal-thumbs{display:flex;gap:.4rem;padding-top:0.8rem;background:transparent;overflow-x:auto}
.gallery-modal .thumb-btn{border:0;padding:0;background:transparent;cursor:pointer;border-radius:6px;outline:none}
.gallery-modal .thumb-btn img{height:62px;width:110px;object-fit:cover;border-radius:6px;opacity:.85}
.gallery-modal .thumb-btn.active img{box-shadow:0 6px 20px rgba(0,0,0,0.16);opacity:1}
.gallery-modal .modal-title{margin:0 0 .6rem 0;font-size:1.25rem}
.gallery-modal .modal-desc{margin:0;color:#444;line-height:1.5}
.gallery-modal .modal-right .modal-thumbs{margin-top:1rem}
@media (max-width:700px){
.cards,.products{flex-direction:column}
}

/* Territory descriptions panel (under the cards) */
.territory-descriptions{margin-top:1rem;padding:1rem;border-radius:8px;background:#fafafa;border:1px solid rgba(0,0,0,0.04)}
.territory-descriptions .desc-title{margin:0 0 .5rem 0;font-size:1.1rem;color:var(--accent);font-weight:700}
.territory-descriptions .desc-list{display:flex;flex-direction:column;gap:.6rem}
.territory-descriptions .desc-item{margin:0;color:#333;line-height:1.5}
.territory-descriptions .desc-item small{display:block;color:#666;margin-top:.25rem}
@media (max-width:900px){
	.gallery-modal .modal-right{width:40%}
	.territory-descriptions .desc-title{font-size:1rem}
}
