/* Home Page Builder — front-end */
.hpb-layout { width: 100%; }

.hpb-zone { width: 100%; }
.hpb-zone-inner { max-width: 1180px; margin: 0 auto; padding-left: 20px; padding-right: 20px; display: grid; gap: 28px; }
.hpb-pad-none   { padding-top: 0; padding-bottom: 0; }
.hpb-pad-small  { padding-top: 24px; padding-bottom: 24px; }
.hpb-pad-normal { padding-top: 48px; padding-bottom: 48px; }
.hpb-pad-large  { padding-top: 84px; padding-bottom: 84px; }

.hpb-cols-1 { grid-template-columns: 1fr; }
.hpb-cols-2 { grid-template-columns: repeat(2, 1fr); }
.hpb-cols-3 { grid-template-columns: repeat(3, 1fr); }
.hpb-cols-4 { grid-template-columns: repeat(4, 1fr); }
.hpb-cols-5 { grid-template-columns: repeat(5, 1fr); }

.hpb-col { min-width: 0; }
.hpb-col:empty { display: none; }
.hpb-block { margin-bottom: 20px; }
.hpb-block:last-child { margin-bottom: 0; }
.hpb-block-title { margin: 0 0 14px; font-size: 1.3rem; }

/* Category / posts */
/* Category / posts */
.hpb-cat { text-align: left; }
.hpb-cat-thumb img { display: block; }

/* List layout: title spans full width on top; below it image (left) + text (right) */
.hpb-cat--list .hpb-cat-item { display: block; padding: 28px 0; border-bottom: 1px solid rgba(0,0,0,.08); }
.hpb-cat--list .hpb-cat-header { margin-bottom: 8px; }
.hpb-cat--list .hpb-cat-row { display: flex; gap: 28px; align-items: flex-start; }
.hpb-cat--list .hpb-cat-body { padding-top: 4px; }
.hpb-cat--list .hpb-cat-thumb { flex: 0 0 50%; max-width: 50%; }
.hpb-cat--list .hpb-cat-thumb img { width: 100%; aspect-ratio: 16/10; object-fit: cover; border-radius: 6px; display: block; }
.hpb-cat--list .hpb-cat-body { flex: 1 1 50%; min-width: 0; text-align: left; padding-top: 4px; }

/* Single-element row (image only, or text only): element fills the width */
.hpb-cat--list .hpb-cat-row.is-single .hpb-cat-thumb { flex: 1 1 100%; max-width: 100%; }
.hpb-cat--list .hpb-cat-row.is-single .hpb-cat-body { flex: 1 1 100%; }
.hpb-cat--list .hpb-cat-row.is-single .hpb-cat-thumb img { aspect-ratio: 16/9; }

/* Grid layout */
.hpb-cat--grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 24px; }
.hpb-cat--grid .hpb-cat-thumb { display: block; }
.hpb-cat--grid .hpb-cat-thumb img { width: 100%; aspect-ratio: 3/2; object-fit: cover; border-radius: 8px; margin-bottom: 10px; }

/* Compact layout */
.hpb-cat--compact .hpb-cat-item { padding: 8px 0; border-bottom: 1px solid rgba(0,0,0,.08); }

/* Empty image placeholder: transparent, no broken-image icon, no fill */
.hpb-cat-thumb.is-empty { background: transparent; border: 0; display: block; }
.hpb-cat--list .hpb-cat-thumb.is-empty { aspect-ratio: 16/10; }
.hpb-cat--grid .hpb-cat-thumb.is-empty { width: 100%; aspect-ratio: 3/2; margin-bottom: 10px; }

/* Text */
.hpb-cat-title { display: inline-block; font-weight: 700; line-height: 1.1; font-size: clamp(2rem, 4vw, 3.2rem); letter-spacing: .08em; color: #1a1a1a; text-decoration: none; padding-bottom: 14px; position: relative; }
.hpb-cat-title::after { content: ""; position: absolute; left: 0; bottom: 0; width: 56px; height: 3px; background: #d98c2b; }
.hpb-cat-title:hover { text-decoration: none; color: #000; }
.hpb-cat-date { display: block; font-size: .8rem; color: #999; margin: 10px 0 16px; }
.hpb-cat-text { font-size: 1.05rem; color: #555; line-height: 1.7; }
.hpb-cat-text p { margin: 0 0 1em; }
.hpb-cat-more { display: inline-block; margin-top: 14px; font-weight: 600; font-size: 1.05rem; color: #d98c2b; text-decoration: none; }
.hpb-cat-more:hover { text-decoration: underline; }

.hpb-posts { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 18px; }
.hpb-post-card { color: inherit; text-decoration: none; display: block; }
.hpb-post-thumb img { width: 100%; aspect-ratio: 3/2; object-fit: cover; border-radius: 6px; margin-bottom: 8px; }
.hpb-post-date { font-size: .75rem; opacity: .6; }
.hpb-post-title { display: block; font-weight: 700; margin: 3px 0; }
.hpb-post-excerpt { font-size: .9rem; opacity: .8; }

/* Photo / banner */
.hpb-photo { margin: 0; }
.hpb-photo img { width: 100%; border-radius: 6px; }
.hpb-photo figcaption { font-size: .85rem; opacity: .7; margin-top: 6px; text-align: center; }
.hpb-banner img { width: 100%; border-radius: 6px; display: block; }

/* Hero */
.hpb-hero { display: flex; align-items: center; border-radius: 8px; overflow: hidden; color: #fff; }
.hpb-hero--small { min-height: 240px; }
.hpb-hero--medium { min-height: 420px; }
.hpb-hero--full { min-height: 88vh; }
.hpb-hero-inner { padding: 40px; max-width: 760px; }
.hpb-hero-eyebrow { text-transform: uppercase; letter-spacing: .2em; font-size: .78rem; font-weight: 700; opacity: .9; }
.hpb-hero-title { color: #fff; font-size: clamp(1.8rem, 4vw, 3.2rem); margin: 10px 0; }
.hpb-hero-text { font-size: 1.1rem; opacity: .92; margin-bottom: 20px; }
.hpb-hero-btn { display: inline-block; background: #a8442a; color: #fff; padding: 12px 26px; border-radius: 3px; text-decoration: none; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; font-size: .9rem; }
.hpb-hero-btn:hover { filter: brightness(1.1); color: #fff; }

/* Video */
.hpb-video { position: relative; }
.hpb-video iframe, .hpb-video video { width: 100%; aspect-ratio: 16/9; border: 0; border-radius: 8px; display: block; }

/* Gallery */
.hpb-gallery { display: grid; grid-template-columns: repeat(var(--hpb-gal-cols, 3), 1fr); gap: 8px; }
.hpb-gallery-item { display: block; aspect-ratio: 1; overflow: hidden; border-radius: 6px; }
.hpb-gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.hpb-gallery-item:hover img { transform: scale(1.06); }
.hpb-lightbox { position: fixed; inset: 0; background: rgba(15,12,10,.92); display: none; align-items: center; justify-content: center; z-index: 9999; padding: 2rem; }
.hpb-lightbox.open { display: flex; }
.hpb-lightbox img { max-width: 92vw; max-height: 86vh; border-radius: 6px; }
.hpb-lb-close { position: absolute; top: 1.2rem; right: 1.6rem; background: none; border: 0; color: #fff; font-size: 2.4rem; cursor: pointer; }

.hpb-empty { opacity: .6; font-style: italic; }

/* Accordion / List */
.hpb-accordion { display: grid; gap: 0 60px; }
.hpb-accordion--cols1 { grid-template-columns: 1fr; }
.hpb-accordion--cols2 { grid-template-columns: 1fr 1fr; }
.hpb-acc-item { border-bottom: 1px solid rgba(0,0,0,.1); }
.hpb-acc-head {
	width: 100%; display: flex; align-items: flex-start; gap: 16px;
	background: none; border: 0; cursor: pointer; padding: 18px 0; text-align: left;
}
.hpb-acc-chevron {
	flex: 0 0 auto; width: 14px; height: 14px; margin-top: 3px;
	border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
	transform: rotate(45deg); transition: transform .3s ease; opacity: .6;
}
.hpb-acc-head[aria-expanded="true"] .hpb-acc-chevron { transform: rotate(-135deg); }
.hpb-acc-title { font-weight: 700; text-transform: uppercase; letter-spacing: .08em; font-size: .92rem; line-height: 1.5; }
.hpb-acc-body { max-height: 0; overflow: hidden; transition: max-height .35s ease; }
.hpb-acc-body-inner { padding: 0 0 20px 30px; }
.hpb-acc-logo { max-width: 160px; height: auto; margin-bottom: 12px; display: block; }
.hpb-acc-text { font-size: .98rem; line-height: 1.65; opacity: .9; }
.hpb-acc-text p { margin: 0 0 .7em; }
.hpb-acc-link { display: inline-block; margin-top: 8px; font-weight: 600; color: #d98c2b; text-decoration: none; }
.hpb-acc-link:hover { text-decoration: underline; }
@media (max-width: 700px) { .hpb-accordion--cols2 { grid-template-columns: 1fr; gap: 0; } }

/* Feature Tiles */
.hpb-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 4px; }
.hpb-tile {
	position: relative; display: flex; align-items: flex-end; justify-content: center;
	background-size: cover; background-position: center; overflow: hidden;
	text-decoration: none; transition: transform .4s ease;
}
.hpb-tiles--short .hpb-tile { min-height: 240px; }
.hpb-tiles--medium .hpb-tile { min-height: 340px; }
.hpb-tiles--tall .hpb-tile { min-height: 440px; }
a.hpb-tile:hover { transform: scale(1.02); }
a.hpb-tile:hover .hpb-tile-label { letter-spacing: .28em; }
.hpb-tile-label {
	color: #fff; text-align: center; padding: 0 1rem 2rem;
	font-size: 1rem; font-weight: 600; text-transform: uppercase; letter-spacing: .22em;
	line-height: 1.4; transition: letter-spacing .4s ease;
	text-shadow: 0 1px 12px rgba(0,0,0,.5);
}

/* Slideshow */
.hpb-slideshow { position: relative; width: 100%; overflow: hidden; border-radius: 8px; background: #2c2a26; }
.hpb-slideshow--small { height: 300px; }
.hpb-slideshow--medium { height: 460px; }
.hpb-slideshow--full { height: 84vh; min-height: 460px; }
.hpb-slides { width: 100%; height: 100%; position: relative; }
.hpb-slide { position: absolute; inset: 0; display: flex; align-items: center; opacity: 0; visibility: hidden; transition: opacity .9s ease; z-index: 1; }
.hpb-slide.is-active { opacity: 1; visibility: visible; z-index: 2; }
.hpb-slide-inner { position: relative; z-index: 3; color: #fff; max-width: 760px; margin: 0 auto; padding: 40px; width: 100%; }
.hpb-slide-eyebrow { text-transform: uppercase; letter-spacing: .2em; font-size: .78rem; font-weight: 700; opacity: .92; display: inline-block; margin-bottom: 12px; }
.hpb-slide-title { color: #fff; font-size: clamp(1.9rem, 4.5vw, 3.4rem); margin: 0 0 12px; line-height: 1.12; }
.hpb-slide-text { font-size: clamp(1rem, 2vw, 1.3rem); opacity: .92; margin-bottom: 22px; max-width: 56ch; }
.hpb-slide-btn { display: inline-block; background: #a8442a; color: #fff; padding: 13px 30px; border-radius: 3px; text-decoration: none; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; font-size: .9rem; }
.hpb-slide-btn:hover { filter: brightness(1.1); color: #fff; }

.hpb-slide-arrow { position: absolute; top: 50%; transform: translateY(-50%); z-index: 5; width: 48px; height: 48px; display: grid; place-items: center; background: rgba(255,255,255,.14); color: #fff; border: 1px solid rgba(255,255,255,.3); border-radius: 50%; font-size: 1.7rem; line-height: 1; cursor: pointer; backdrop-filter: blur(4px); transition: background .3s; }
.hpb-slide-arrow:hover { background: rgba(255,255,255,.28); }
.hpb-slide-prev { left: 16px; } .hpb-slide-next { right: 16px; }
.hpb-slide-dots { position: absolute; bottom: 18px; left: 50%; transform: translateX(-50%); z-index: 5; display: flex; gap: 8px; }
.hpb-slide-dot { width: 11px; height: 11px; border-radius: 50%; background: rgba(255,255,255,.45); border: 0; cursor: pointer; transition: all .3s; }
.hpb-slide-dot.is-active { background: #fff; transform: scale(1.25); }
@media (max-width: 600px) { .hpb-slide-arrow { width: 38px; height: 38px; font-size: 1.3rem; } .hpb-slide-prev { left: 6px; } .hpb-slide-next { right: 6px; } }

@media (max-width: 900px) {
	.hpb-cols-3, .hpb-cols-4, .hpb-cols-5 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
	.hpb-cols-2, .hpb-cols-3, .hpb-cols-4, .hpb-cols-5 { grid-template-columns: 1fr; }
}
