/*
 Theme Name: Isopaint GeneratePress Child
 Theme URI: https://isopaint.gr/
 Description: Custom lightweight GeneratePress child theme for Isopaint.
 Author: Isopaint
 Template: generatepress
 Version: 1.0.0
*/

/*
 * ISOPAINT
 * Custom styles will be added here.
 * Keep the parent GeneratePress theme untouched.
 */
/* =========================================================
   ISOPAINT PRODUCT TEMPLATE
   ========================================================= */

.isopaint-product {
	background: #fff;
	color: #171717;
}

.isopaint-product-container {
	width: min(1320px, calc(100% - 48px));
	margin: 0 auto;
	padding: 70px 0 100px;
}


/* HERO */

.isopaint-product-hero {
	display: grid;
	grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
	gap: clamp(50px, 7vw, 110px);
	align-items: center;
	padding-bottom: 90px;
}

.isopaint-product-image {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 560px;
	background: #f7f7f5;
	padding: clamp(30px, 5vw, 70px);
}

.isopaint-main-product-image {
	display: block;
	width: 100%;
	height: auto;
	max-height: 600px;
	object-fit: contain;
}

.isopaint-product-brand {
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	margin-bottom: 20px;
}

.isopaint-product-title {
	font-size: clamp(42px, 5vw, 72px);
	line-height: 1;
	letter-spacing: -0.035em;
	margin: 0 0 22px;
}

.isopaint-product-subtitle {
	font-size: clamp(20px, 2vw, 26px);
	line-height: 1.4;
	margin-bottom: 25px;
	max-width: 650px;
}

.isopaint-short-description {
	font-size: 17px;
	line-height: 1.7;
	color: #555;
	max-width: 650px;
	margin-bottom: 40px;
}


/* PRODUCT FACTS */

.isopaint-product-facts {
	border-top: 1px solid #dedede;
}

.isopaint-fact {
	display: grid;
	grid-template-columns: 150px 1fr;
	gap: 20px;
	padding: 14px 0;
	border-bottom: 1px solid #dedede;
}

.isopaint-fact span {
	color: #777;
}

.isopaint-fact strong {
	font-weight: 500;
}


/* SECTIONS */

.isopaint-product-section {
	border-top: 1px solid #dedede;
	padding: 70px 0;
}

.isopaint-product-section h2 {
	font-size: clamp(28px, 3vw, 40px);
	letter-spacing: -0.025em;
	margin: 0 0 40px;
}

.isopaint-product-content {
	max-width: 900px;
	font-size: 17px;
	line-height: 1.75;
}

.isopaint-product-content > *:first-child {
	margin-top: 0;
}


/* TECHNICAL DATA */

.isopaint-tech-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	column-gap: 70px;
}

.isopaint-tech-item {
	display: grid;
	grid-template-columns: minmax(130px, 0.7fr) 1.3fr;
	gap: 25px;
	padding: 17px 0;
	border-bottom: 1px solid #dedede;
}

.isopaint-tech-item span {
	color: #777;
}

.isopaint-tech-item strong {
	font-weight: 500;
}


/* DOWNLOADS */

.isopaint-download-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 15px;
}

.isopaint-download-grid a {
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	min-height: 145px;
	padding: 25px;
	border: 1px solid #dedede;
	color: inherit;
	text-decoration: none;
	transition:
		border-color 0.2s ease,
		transform 0.2s ease;
}

.isopaint-download-grid a:hover {
	border-color: #171717;
	transform: translateY(-2px);
}

.isopaint-download-grid span {
	font-size: 13px;
	color: #777;
}

.isopaint-download-grid strong {
	font-size: 17px;
	font-weight: 500;
}


/* VIDEO */

.isopaint-product-video {
	max-width: 1000px;
}

.isopaint-product-video iframe {
	width: 100%;
	aspect-ratio: 16 / 9;
	height: auto;
}


/* TABLET */

@media (max-width: 900px) {

	.isopaint-product-container {
		width: min(100% - 36px, 1320px);
		padding-top: 40px;
	}

	.isopaint-product-hero {
		grid-template-columns: 1fr;
		gap: 45px;
		padding-bottom: 60px;
	}

	.isopaint-product-image {
		min-height: auto;
	}

	.isopaint-tech-grid {
		grid-template-columns: 1fr;
	}

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

}


/* MOBILE */

@media (max-width: 600px) {

	.isopaint-product-container {
		width: calc(100% - 30px);
		padding: 25px 0 60px;
	}

	.isopaint-product-image {
		padding: 25px;
	}

	.isopaint-product-title {
		font-size: 40px;
	}

	.isopaint-fact {
		grid-template-columns: 115px 1fr;
	}

	.isopaint-product-section {
		padding: 50px 0;
	}

	.isopaint-tech-item {
		grid-template-columns: 1fr;
		gap: 5px;
	}

	.isopaint-download-grid {
		grid-template-columns: 1fr;
	}

}
/* ISOPAINT V2 - VISUAL REFINEMENTS */

/* Product image */
.isopaint-product-image {
    background: #ffffff;
}

/* Product hero spacing */
.isopaint-product-hero {
    padding-bottom: 45px;
}

/* Product section spacing */
.isopaint-product-section {
    padding: 45px 0;
}

/* Colour swatches */
.isopaint-colour-grid,
.isopaint-swatches,
.isopaint-colour-swatches {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
}

.isopaint-colour-item,
.isopaint-swatch {
    min-width: 0;
}

.isopaint-colour-item .isopaint-colour-sample,
.isopaint-swatch .isopaint-swatch-colour {
    display: block;
    width: 100%;
    height: 75px;
    border: 1px solid #e5e5e5;
    border-radius: 3px;
    margin-bottom: 10px;
}

@media (max-width: 900px) {
    .isopaint-colour-grid,
    .isopaint-swatches,
    .isopaint-colour-swatches {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 600px) {
    .isopaint-colour-grid,
    .isopaint-swatches,
    .isopaint-colour-swatches {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
/* ISOPAINT CATALOGUE - LAYOUT FIX */

/* Catalogue container */
.post-type-archive-product .site-main {
    max-width: 1280px;
    margin: 0 auto;
}

/* Product grid */
.post-type-archive-product .isopaint-products-grid,
.post-type-archive-product .isopaint-catalogue-grid,
.post-type-archive-product .isopaint-product-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px;
    margin-top: 35px;
}

/* Product cards */
.post-type-archive-product .isopaint-product-card,
.post-type-archive-product .isopaint-catalogue-card {
    min-width: 0;
    background: #fff;
    border: 1px solid #e9e9e9;
    border-radius: 6px;
    overflow: hidden;
    transition: box-shadow .2s ease, transform .2s ease;
}

.post-type-archive-product .isopaint-product-card:hover,
.post-type-archive-product .isopaint-catalogue-card:hover {
    box-shadow: 0 12px 30px rgba(0,0,0,.07);
    transform: translateY(-3px);
}

/* Product images */
.post-type-archive-product .isopaint-product-card img,
.post-type-archive-product .isopaint-catalogue-card img {
    display: block;
    width: 100%;
    height: 260px;
    object-fit: contain;
    background: #fff;
}

/* Responsive */
@media (max-width: 900px) {
    .post-type-archive-product .isopaint-products-grid,
    .post-type-archive-product .isopaint-catalogue-grid,
    .post-type-archive-product .isopaint-product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 600px) {
    .post-type-archive-product .isopaint-products-grid,
    .post-type-archive-product .isopaint-catalogue-grid,
    .post-type-archive-product .isopaint-product-grid {
        grid-template-columns: 1fr;
    }
}
/* ISOPAINT CATALOGUE - CARD REFINEMENTS */

/* Product card text spacing */
.post-type-archive-product .isopaint-product-card,
.post-type-archive-product .isopaint-catalogue-card {
    padding-bottom: 20px;
}

/* Brand, title and description */
.post-type-archive-product .isopaint-product-card > :not(a),
.post-type-archive-product .isopaint-catalogue-card > :not(a) {
    margin-left: 20px;
    margin-right: 20px;
}

/* Product title */
.post-type-archive-product .isopaint-product-card h2,
.post-type-archive-product .isopaint-catalogue-card h2,
.post-type-archive-product .isopaint-product-card h3,
.post-type-archive-product .isopaint-catalogue-card h3 {
    font-size: 22px;
    line-height: 1.3;
    margin-top: 8px;
    margin-bottom: 10px;
}

/* Product title link */
.post-type-archive-product .isopaint-product-card h2 a,
.post-type-archive-product .isopaint-catalogue-card h2 a,
.post-type-archive-product .isopaint-product-card h3 a,
.post-type-archive-product .isopaint-catalogue-card h3 a {
    color: #1a1a1a;
    text-decoration: none;
}

.post-type-archive-product .isopaint-product-card h2 a:hover,
.post-type-archive-product .isopaint-catalogue-card h2 a:hover,
.post-type-archive-product .isopaint-product-card h3 a:hover,
.post-type-archive-product .isopaint-catalogue-card h3 a:hover {
    color: #777;
}

/* Product description */
.post-type-archive-product .isopaint-product-card p,
.post-type-archive-product .isopaint-catalogue-card p {
    font-size: 14px;
    line-height: 1.6;
    color: #666;
}

/* Catalogue brand filter links */
.post-type-archive-product .isopaint-brand-filters a,
.post-type-archive-product .isopaint-catalogue-filters a {
    display: inline-block;
    padding: 9px 16px;
    margin-right: 8px;
    margin-bottom: 8px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    color: #333;
    text-decoration: none;
    font-size: 14px;
}

.post-type-archive-product .isopaint-brand-filters a:hover,
.post-type-archive-product .isopaint-catalogue-filters a:hover {
    background: #222;
    color: #fff;
}
/* Isopaint catalogue combined filters — append to existing child style.css */
.post-type-archive-product .isopaint-catalogue-filters {
  background: #fff; border: 1px solid #e7e7e7; border-radius: 8px;
  padding: 24px; margin: 26px 0 24px;
}
.post-type-archive-product .isopaint-catalogue-filter-grid {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px;
}
.post-type-archive-product .isopaint-filter-field { min-width: 0; }
.post-type-archive-product .isopaint-filter-field label {
  display: block; font-size: 13px; font-weight: 600; margin: 0 0 7px; color: #454545;
}
.post-type-archive-product .isopaint-filter-field input,
.post-type-archive-product .isopaint-filter-field select {
  width: 100%; max-width: none; min-height: 44px; margin: 0; padding: 9px 12px;
  background: #fff; border: 1px solid #d9d9d9; border-radius: 4px;
  color: #242424; font-size: 14px;
}
.post-type-archive-product .isopaint-filter-actions {
  display: flex; flex-wrap: wrap; gap: 18px; align-items: center; margin-top: 20px;
}
.post-type-archive-product .isopaint-filter-actions button {
  border: 0; border-radius: 4px; padding: 12px 20px; background: #242424; color: #fff;
  font-size: 14px; cursor: pointer;
}
.post-type-archive-product .isopaint-filter-actions a {
  color: #555; text-decoration: underline; font-size: 14px;
}
.post-type-archive-product .isopaint-catalogue-results {
  font-size: 14px; color: #666; margin: 10px 0 18px;
}
.post-type-archive-product .isopaint-catalogue-grid {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px;
}
.post-type-archive-product .isopaint-catalogue-card { padding-bottom: 0; }
.post-type-archive-product .isopaint-catalogue-card-body { padding: 18px 20px 22px; }
.post-type-archive-product .isopaint-catalogue-card-body > * { margin-left: 0; margin-right: 0; }
.post-type-archive-product .isopaint-catalogue-image { display: block; background: #fff; }
.post-type-archive-product .isopaint-catalogue-image img { display: block; width: 100%; height: 250px; object-fit: contain; }
.post-type-archive-product .isopaint-catalogue-pagination { margin: 36px 0; }
.post-type-archive-product .isopaint-catalogue-pagination .page-numbers { display: inline-block; padding: 8px 12px; margin-right: 5px; }
.post-type-archive-product .isopaint-no-results { padding: 26px; background: #fff; border: 1px solid #eee; }
@media (max-width: 900px) {
  .post-type-archive-product .isopaint-catalogue-filter-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .post-type-archive-product .isopaint-catalogue-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  .post-type-archive-product .isopaint-catalogue-filters { padding: 16px; }
  .post-type-archive-product .isopaint-catalogue-filter-grid,
  .post-type-archive-product .isopaint-catalogue-grid { grid-template-columns: 1fr; }
}


/* =========================================================
   ISOPAINT CATALOGUE V3 — VISUAL & RESPONSIVE REFINEMENTS
   Additive overrides: existing product-page styling retained.
   ========================================================= */

.post-type-archive-product .isopaint-catalogue {
  color: #202322;
  background: #fff;
}

.post-type-archive-product .isopaint-catalogue-container {
  width: min(1280px, calc(100% - 48px));
  margin-inline: auto;
  padding: clamp(34px, 5vw, 72px) 0 90px;
}

.post-type-archive-product .isopaint-catalogue-heading {
  max-width: 780px;
  margin-bottom: 30px;
}

.post-type-archive-product .isopaint-catalogue-heading h1 {
  font-size: clamp(36px, 4.5vw, 58px);
  line-height: 1.08;
  letter-spacing: -.035em;
  margin: 0 0 14px;
  color: #202322;
}

.post-type-archive-product .isopaint-catalogue-heading p {
  color: #68706c;
  font-size: clamp(15px, 1.4vw, 18px);
  line-height: 1.65;
  margin: 0;
}

.post-type-archive-product .isopaint-catalogue-filters {
  background: #f8f9f7;
  border: 1px solid #e4e8e3;
  border-radius: 12px;
  padding: clamp(18px, 2.5vw, 30px);
  margin: 0 0 24px;
}

.post-type-archive-product .isopaint-filter-field label {
  color: #424a44;
  font-size: 13px;
  font-weight: 650;
  margin-bottom: 8px;
}

.post-type-archive-product .isopaint-filter-field input,
.post-type-archive-product .isopaint-filter-field select {
  min-height: 48px;
  border: 1px solid #d5dbd4;
  border-radius: 6px;
  background-color: #fff;
  color: #222923;
  font-size: 14px;
  line-height: 1.4;
  box-shadow: none;
}

.post-type-archive-product .isopaint-filter-field input:focus,
.post-type-archive-product .isopaint-filter-field select:focus {
  border-color: #4f6757;
  outline: 2px solid #4f6757;
  outline-offset: 2px;
}

.post-type-archive-product .isopaint-filter-actions {
  gap: 14px;
  margin-top: 22px;
}

.post-type-archive-product .isopaint-filter-actions button {
  min-height: 46px;
  padding: 11px 22px;
  border-radius: 6px;
  background: #293a30;
  color: #fff;
  font-weight: 600;
  transition: background-color .2s ease;
}

.post-type-archive-product .isopaint-filter-actions button:hover,
.post-type-archive-product .isopaint-filter-actions button:focus-visible {
  background: #405947;
}

.post-type-archive-product .isopaint-filter-actions a {
  padding: 10px 4px;
  border: 0;
  background: transparent;
  color: #46554b;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.post-type-archive-product .isopaint-catalogue-results {
  margin: 0 0 20px;
  color: #68706c;
  font-size: 14px;
}

.post-type-archive-product .isopaint-catalogue-grid {
  gap: clamp(16px, 2vw, 28px);
  margin-top: 0;
}

.post-type-archive-product .isopaint-catalogue-card {
  display: flex;
  flex-direction: column;
  padding: 0;
  border: 1px solid #e8ebe6;
  border-radius: 10px;
  background: #fff;
  overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.post-type-archive-product .isopaint-catalogue-card:hover {
  border-color: #d2dcd1;
  box-shadow: 0 14px 32px rgba(28, 40, 31, .08);
  transform: translateY(-3px);
}

.post-type-archive-product .isopaint-catalogue-image {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 280px;
  padding: 22px;
  background: #fafbf9;
  overflow: hidden;
}

.post-type-archive-product .isopaint-catalogue-image img {
  display: block;
  width: 100%;
  height: 100%;
  max-height: 236px;
  object-fit: contain;
  background: transparent;
}

.post-type-archive-product .isopaint-catalogue-no-image {
  color: #8b958c;
  font-size: 15px;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.post-type-archive-product .isopaint-catalogue-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 8px;
  padding: 22px 23px 25px;
}

.post-type-archive-product .isopaint-catalogue-card-body > * {
  margin-left: 0;
  margin-right: 0;
}

.post-type-archive-product .isopaint-catalogue-brand {
  color: #526a58;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .09em;
  line-height: 1.4;
  text-transform: uppercase;
}

.post-type-archive-product .isopaint-catalogue-card h2 {
  font-size: clamp(18px, 1.6vw, 21px);
  line-height: 1.35;
  letter-spacing: -.015em;
  margin: 2px 0 0;
}

.post-type-archive-product .isopaint-catalogue-card h2 a {
  color: #202923;
  text-decoration: none;
}

.post-type-archive-product .isopaint-catalogue-card h2 a:hover {
  color: #526a58;
}

.post-type-archive-product .isopaint-catalogue-card-body p {
  color: #68706c;
  font-size: 14px;
  line-height: 1.6;
  margin: 0;
}

.post-type-archive-product .isopaint-catalogue-card a:focus-visible,
.post-type-archive-product .isopaint-catalogue-pagination a:focus-visible {
  outline: 2px solid #4f6757;
  outline-offset: 3px;
}

.post-type-archive-product .isopaint-catalogue-pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 42px 0 0;
}

.post-type-archive-product .isopaint-catalogue-pagination .page-numbers {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-width: 42px;
  min-height: 42px;
  padding: 8px 12px;
  margin: 0;
  border: 1px solid #e1e6df;
  border-radius: 6px;
  color: #293a30;
  text-decoration: none;
}

.post-type-archive-product .isopaint-catalogue-pagination .page-numbers.current {
  background: #293a30;
  border-color: #293a30;
  color: #fff;
}

.post-type-archive-product .isopaint-catalogue-pagination a.page-numbers:hover {
  border-color: #526a58;
}

@media (max-width: 900px) {
  .post-type-archive-product .isopaint-catalogue-container {
    width: calc(100% - 36px);
    padding-top: 42px;
  }
  .post-type-archive-product .isopaint-catalogue-image {
    height: 240px;
  }
  .post-type-archive-product .isopaint-catalogue-image img {
    max-height: 200px;
  }
}

@media (max-width: 600px) {
  .post-type-archive-product .isopaint-catalogue-container {
    width: calc(100% - 30px);
    padding: 28px 0 64px;
  }
  .post-type-archive-product .isopaint-catalogue-heading {
    margin-bottom: 22px;
  }
  .post-type-archive-product .isopaint-catalogue-filters {
    padding: 16px;
    margin-bottom: 20px;
  }
  .post-type-archive-product .isopaint-filter-actions {
    align-items: stretch;
    flex-direction: column;
    gap: 8px;
  }
  .post-type-archive-product .isopaint-filter-actions button {
    width: 100%;
  }
  .post-type-archive-product .isopaint-filter-actions a {
    align-self: center;
  }
  .post-type-archive-product .isopaint-catalogue-image {
    height: 260px;
  }
  .post-type-archive-product .isopaint-catalogue-image img {
    max-height: 220px;
  }
  .post-type-archive-product .isopaint-catalogue-card-body {
    padding: 18px 19px 22px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .post-type-archive-product .isopaint-catalogue-card,
  .post-type-archive-product .isopaint-filter-actions button {
    transition: none;
  }
  .post-type-archive-product .isopaint-catalogue-card:hover {
    transform: none;
  }
}
/* Isopaint: consistent full-width product archive */

body.post-type-archive-product .site-content {
    display: block;
}

body.post-type-archive-product .content-area {
    width: 100%;
    float: none;
    margin: 0;
}

body.post-type-archive-product #primary {
    width: 100%;
    max-width: none;
    float: none;
    margin: 0;
}

body.post-type-archive-product .widget-area {
    display: none;
}

/* =========================================================
   ISOPAINT HOMEPAGE — PREMIUM COVER HERO
   Add "isopaint-home-hero" to the OUTER WordPress Cover block.
   ========================================================= */

body.home .wp-block-cover.isopaint-home-hero {
    min-height: 78vh;
    padding: 80px clamp(28px, 7vw, 130px);
    display: flex;
    align-items: center;
    position: relative;
    box-sizing: border-box;
}

/* Cover's overlay element, not the background photograph. */
body.home .wp-block-cover.isopaint-home-hero .wp-block-cover__background {
    background: linear-gradient(90deg,
        rgba(16, 24, 20, .72) 0%,
        rgba(16, 24, 20, .40) 48%,
        rgba(16, 24, 20, .08) 100%) !important;
    opacity: 1 !important;
}

body.home .wp-block-cover.isopaint-home-hero .wp-block-cover__inner-container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    text-align: left;
    color: #fff;
    position: relative;
    z-index: 1;
}

body.home .wp-block-cover.isopaint-home-hero h1,
body.home .wp-block-cover.isopaint-home-hero h2 {
    color: #fff;
    font-size: clamp(38px, 4.4vw, 68px);
    line-height: 1.12;
    font-weight: 400;
    letter-spacing: -.035em;
    max-width: 760px;
    margin: 0 0 24px;
}

body.home .wp-block-cover.isopaint-home-hero p {
    color: rgba(255, 255, 255, .93);
    max-width: 580px;
    line-height: 1.7;
}

body.home .wp-block-cover.isopaint-home-hero a {
    color: #fff;
    text-decoration: none;
}

/* Style the CTA even if WordPress nests the link in a Group block. */
body.home .wp-block-cover.isopaint-home-hero p a[href*="/products/"] {
    display: inline-block;
    padding: 14px 25px;
    border: 1px solid rgba(255, 255, 255, .85);
    border-radius: 2px;
    margin-top: 14px;
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.4;
    transition: background-color .2s ease, color .2s ease;
}

body.home .wp-block-cover.isopaint-home-hero p a[href*="/products/"]:hover,
body.home .wp-block-cover.isopaint-home-hero p a[href*="/products/"]:focus-visible {
    background: #fff;
    color: #25372e;
}

@media (max-width: 768px) {
    body.home .wp-block-cover.isopaint-home-hero {
        min-height: 70vh;
        padding: 65px 25px;
    }

    body.home .wp-block-cover.isopaint-home-hero .wp-block-cover__background {
        background: linear-gradient(90deg,
            rgba(16, 24, 20, .78),
            rgba(16, 24, 20, .35)) !important;
    }

    body.home .wp-block-cover.isopaint-home-hero h1,
    body.home .wp-block-cover.isopaint-home-hero h2 {
        font-size: clamp(34px, 8vw, 48px);
    }
}

@media (prefers-reduced-motion: reduce) {
    body.home .wp-block-cover.isopaint-home-hero p a[href*="/products/"] {
        transition: none;
    }
}
/* ISOPAINT — HOTEL INSPIRATION SECTION */

.isopaint-hotel-text {
    background-color: #F5F2EC;
    padding: clamp(30px, 5vw, 80px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    box-sizing: border-box;
}

.isopaint-hotel-text h2 {
    font-size: clamp(30px, 3vw, 42px);
    font-weight: 400;
    line-height: 1.2;
    margin-bottom: 24px;
}

.isopaint-hotel-text p {
    line-height: 1.7;
    margin-bottom: 20px;
}
/* ISOPAINT — HOTEL IMAGE REFINEMENT */

.isopaint-hotel-image {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center;
}
/* ISOPAINT — MATCH HOTEL IMAGE AND TEXT HEIGHTS */

.isopaint-hotel-row {
    display: flex;
    align-items: stretch;
}

.isopaint-hotel-row > * {
    min-width: 0;
    flex: 1 1 50%;
}

.isopaint-hotel-row .isopaint-hotel-image {
    width: 100%;
    height: 100%;
    min-height: 440px;
    object-fit: cover;
    object-position: center;
    display: block;
}

@media (max-width: 768px) {
    .isopaint-hotel-row {
        flex-direction: column;
    }

    .isopaint-hotel-row .isopaint-hotel-image {
        height: 300px;
        min-height: 0;
    }
}
/* ISOPAINT — BOUTIQUE HOTEL TWO-COLUMN LAYOUT */

.isopaint-hotel-columns {
    display: flex;
    align-items: stretch;
    gap: 0;
}

.isopaint-hotel-columns > .wp-block-column {
    flex: 1 1 50%;
    min-width: 0;
}

/* Make the image fill its entire column */
.isopaint-hotel-columns > .wp-block-column:first-child {
    position: relative;
    overflow: hidden;
    min-height: 440px;
}

.isopaint-hotel-columns > .wp-block-column:first-child .wp-block-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    margin: 0;
}

.isopaint-hotel-columns > .wp-block-column:first-child img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Text panel */
.isopaint-hotel-columns > .wp-block-column:last-child {
    background: #F5F2EC;
    padding: clamp(30px, 5vw, 80px);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Mobile layout */
@media (max-width: 768px) {
    .isopaint-hotel-columns {
        flex-direction: column;
    }

    .isopaint-hotel-columns > .wp-block-column:first-child {
        min-height: 320px;
    }

    .isopaint-hotel-columns > .wp-block-column:last-child {
        padding: 35px 25px;
    }
}
/* ISOPAINT — FEATURED BRANDS */

.isopaint-brands-section {
    padding: 100px clamp(24px, 6vw, 110px);
    background: #ffffff;
}

.isopaint-brands-section > h2 {
    text-align: center;
    font-size: clamp(34px, 3.5vw, 52px);
    font-weight: 400;
    line-height: 1.2;
    margin-bottom: 20px;
}

.isopaint-brands-section > p {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 55px;
    color: #666b65;
    line-height: 1.7;
}

.isopaint-brands-grid {
    display: flex;
    align-items: stretch;
    gap: 28px;
}

.isopaint-brands-grid > .wp-block-column {
    min-width: 0;
}

.isopaint-brands-grid .wp-block-image {
    margin-bottom: 24px;
    overflow: hidden;
}

.isopaint-brands-grid .wp-block-image img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.isopaint-brands-grid .wp-block-column:hover img {
    transform: scale(1.035);
}

.isopaint-brands-grid h3 {
    font-size: 26px;
    font-weight: 500;
    margin-bottom: 12px;
}

.isopaint-brands-grid p {
    color: #626760;
    line-height: 1.7;
    font-size: 15px;
}

@media (max-width: 768px) {
    .isopaint-brands-section {
        padding: 65px 24px;
    }

    .isopaint-brands-grid {
        flex-direction: column;
        gap: 40px;
    }
}
/* ISOPAINT — EQUAL BRAND IMAGE HEIGHTS */

.isopaint-brands-grid .wp-block-image {
    margin: 0 0 22px;
    overflow: hidden;
}

.isopaint-brands-grid .wp-block-image img {
    display: block;
    width: 100%;
    height: 320px;
    aspect-ratio: auto;
    object-fit: cover;
}

@media (max-width: 768px) {
    .isopaint-brands-grid .wp-block-image img {
        height: 260px;
    }
}
/* ISOPAINT — FORCE EQUAL BRAND IMAGE HEIGHTS */

.isopaint-brands-section .isopaint-brands-grid
.wp-block-column > figure.wp-block-image {
    width: 100% !important;
    height: 320px !important;
    margin: 0 0 22px !important;
    overflow: hidden;
}

.isopaint-brands-section .isopaint-brands-grid
.wp-block-column > figure.wp-block-image img {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    max-height: none !important;
    object-fit: cover !important;
    object-position: center !important;
}

@media (max-width: 768px) {
    .isopaint-brands-section .isopaint-brands-grid
    .wp-block-column > figure.wp-block-image {
        height: 260px !important;
    }
}
/* ISOPAINT — EQUAL BRAND IMAGE HEIGHTS */

.isopaint-brands-section .isopaint-brands-grid
.wp-block-column > img {
    display: block !important;
    width: 100% !important;
    height: 320px !important;
    max-height: none !important;
    object-fit: cover !important;
    object-position: center !important;
    margin: 0 0 20px !important;
}

@media (max-width: 768px) {
    .isopaint-brands-section .isopaint-brands-grid
    .wp-block-column > img {
        height: 240px !important;
    }
}

/* ISOPAINT — BRANDS PAGE LOGO REFINEMENTS */

/* Keep brand logos proportional */
body.page .isopaint-brand-card img {
    display: block;
    width: 100%;
    height: 190px;
    object-fit: contain;
    object-position: center;
}

/* Give the wide Borma Wachs logo more visual space */
body.page .isopaint-brand-card img[alt="Borma Wachs logo"] {
    width: 100%;
    max-width: 350px;
    height: 190px;
    margin-left: auto;
    margin-right: auto;
}

/* Subtle card interaction */
body.page .isopaint-brand-card {
    transition: transform 0.25s ease,
                box-shadow 0.25s ease;
}

body.page .isopaint-brand-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.07);
}

/* Hide the extra featured image on solution detail pages */
body.page-template-template-solution-detail
.inside-article > .featured-image,
body.page-template-template-solution-detail
.inside-article > .post-image {
    display: none !important;
}

/* ISOPAINT — Hide duplicate Featured Image on Solution Detail pages */

/* Hide featured images outside our custom solution layout */
body.page-template-template-solution-detail img.wp-post-image:not(.iso-solution__hero img) {
    display: none !important;
}

/* ========================================
   ISOPAINT CUSTOM FOOTER
   ======================================== */

.iso-footer,
.iso-footer * {
    box-sizing: border-box;
}

.iso-footer {
    background: #27352e;
    color: #c2ccc3;
    padding: 75px 24px 28px;
}

.iso-footer__inner {
    max-width: 1320px;
    margin: 0 auto;
}

.iso-footer__grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.4fr;
    gap: 55px;
    padding-bottom: 65px;
}

.iso-footer h2 {
    color: #fff;
    font-size: 29px;
    font-weight: 500;
    letter-spacing: .08em;
    margin: 0 0 14px;
}

.iso-footer h3 {
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .14em;
    margin: 0 0 24px;
}

.iso-footer p {
    color: #c2ccc3;
    font-size: 14px;
    line-height: 1.85;
    margin: 0 0 10px;
}

.iso-footer__tagline {
    color: #fff !important;
    font-size: 15px !important;
    margin-bottom: 18px !important;
}

.iso-footer__about > p:last-child {
    max-width: 320px;
}

.iso-footer ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.iso-footer li {
    margin-bottom: 13px;
}

.iso-footer a {
    color: #c2ccc3;
    text-decoration: none;
    font-size: 14px;
    transition: color .2s ease;
}

.iso-footer a:hover {
    color: #fff;
}

.iso-footer__bottom {
    border-top: 1px solid #536459;
    padding-top: 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    color: #c2ccc3;
    font-size: 12px;
}

.iso-footer__legal {
    display: flex;
    gap: 24px;
}

.iso-footer__legal a {
    font-size: 12px;
}

@media (max-width: 1000px) {
    .iso-footer__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 45px;
    }
}

@media (max-width: 600px) {
    .iso-footer {
        padding: 55px 20px 25px;
    }

    .iso-footer__grid {
        grid-template-columns: 1fr;
        gap: 35px;
        padding-bottom: 45px;
    }

    .iso-footer__bottom {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* ISOPAINT HEADER & MENU */

.site-header,
.main-navigation {
    background-color: #f8f6f1;
}

/* Desktop navigation */
.main-navigation .main-nav ul li a {
    font-size: 14px;
    font-weight: 400;
    color: #27352e;
    letter-spacing: 0.2px;
}

/* Menu hover */
.main-navigation .main-nav ul li:hover > a,
.main-navigation .main-nav ul li:focus-within > a {
    color: #657a6c;
    background-color: transparent;
}

/* Active menu item */
.main-navigation .main-nav ul li.current-menu-item > a,
.main-navigation .main-nav ul li.current_page_item > a {
    color: #27352e;
    background-color: transparent;
    font-weight: 600;
}

/* Mobile menu toggle */
.main-navigation .menu-toggle {
    background-color: #f8f6f1;
    color: #27352e;
}

/* ====================================
   ISOPAINT MOBILE NAVIGATION
   ==================================== */

@media (max-width: 768px) {

    /* Mobile menu background */
    .main-navigation,
    .main-navigation .main-nav ul {
        background-color: #f8f6f1;
    }

    /* Compact menu items */
    .main-navigation .main-nav ul li a {
        font-size: 14px;
        line-height: 1.4;
        padding: 13px 20px;
        color: #27352e;
        background-color: transparent;
    }

    /* Hover and selected items */
    .main-navigation .main-nav ul li:hover > a,
    .main-navigation .main-nav ul li.current-menu-item > a {
        color: #657a6c;
        background-color: transparent;
    }

    /* Mobile menu button */
    .main-navigation .menu-toggle {
        color: #27352e;
        background-color: #f8f6f1;
    }
}

/* ISOPAINT MOBILE MENU FINISHING */

@media (max-width: 768px) {
    .main-navigation.toggled .main-nav {
        border-top: 1px solid #e5e3dd;
    }

    .main-navigation .main-nav ul li.current-menu-item > a {
        font-weight: 600;
        color: #27352e;
    }
}

/* ISOPAINT FOOTER LOGO */

.iso-footer__logo {
    display: inline-block;
    margin-bottom: 22px;
}

.iso-footer__logo img {
    display: block;
    width: 220px;
    max-width: 100%;
    height: auto;
}

/* Convert black logo to white for dark footer */
.iso-footer__logo img {
    filter: brightness(0) invert(1);
}

@media (max-width: 600px) {
    .iso-footer__logo img {
        width: 200px;
    }
}

/* ==========================================
   ISOPAINT FOOTER — PREMIUM REFINEMENT
   ========================================== */

/* Logo spacing */
.iso-footer__logo {
    display: inline-block;
    margin-bottom: 24px;
}

.iso-footer__logo img {
    display: block;
    width: 220px;
    max-width: 100%;
    height: auto;
}

/* Elegant divider below the logo and tagline */
.iso-footer__tagline {
    position: relative;
    padding-bottom: 26px;
    margin-bottom: 24px !important;
}

.iso-footer__tagline::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 65px;
    height: 1px;
    background-color: rgba(255, 255, 255, 0.35);
}

/* More breathing room */
.iso-footer__grid {
    column-gap: 65px;
}

.iso-footer__about > p:last-child {
    line-height: 1.9;
}

/* Refined footer headings */
.iso-footer h3 {
    letter-spacing: 0.16em;
    margin-bottom: 28px;
}

/* Mobile adjustments */
@media (max-width: 600px) {
    .iso-footer__logo {
        margin-bottom: 20px;
    }

    .iso-footer__logo img {
        width: 200px;
    }

    .iso-footer__tagline {
        padding-bottom: 22px;
        margin-bottom: 20px !important;
    }

    .iso-footer__grid {
        gap: 38px;
    }
}

/* ISOPAINT FOOTER - FINAL DESIGN */

.iso-footer .iso-footer__about {
    padding-bottom: 30px !important;
    border-bottom: 1px solid rgba(255,255,255,0.35) !important;
}

.iso-footer .iso-footer__logo {
    display: block !important;
    margin-bottom: 35px !important;
}

.iso-footer .iso-footer__tagline {
    margin-bottom: 22px !important;
}

/* Remove previous small divider */
.iso-footer .iso-footer__tagline::after {
    display: none !important;
}

@media (min-width: 1001px) {
    .iso-footer .iso-footer__about {
        padding-right: 35px;
    }
}

/* ISOPAINT FOOTER - SPACING REFINEMENT */

@media (min-width: 1001px) {
    .iso-footer {
        padding-top: 65px;
        padding-bottom: 25px;
    }

    .iso-footer__grid {
        padding-bottom: 40px;
    }

    .iso-footer__about {
        padding-bottom: 22px !important;
    }
}

/* ISOPAINT FOOTER BRAND STATEMENT */

.iso-footer__statement {
    text-align: center;
    padding: 10px 20px 38px;
    margin: 0 auto;
}

.iso-footer__statement h3 {
    color: #ffffff;
    font-size: 22px;
    font-weight: 400;
    letter-spacing: 0.02em;
    margin: 0 0 10px;
}

.iso-footer__statement p {
    color: #c2ccc3;
    font-size: 14px;
    line-height: 1.7;
    margin: 0;
}

@media (max-width: 600px) {
    .iso-footer__statement {
        padding: 10px 0 30px;
    }

    .iso-footer__statement h3 {
        font-size: 19px;
    }
}

/* Final footer spacing */
.iso-footer__grid {
    padding-bottom: 25px;
}

.iso-footer__statement {
    padding-top: 0;
    padding-bottom: 30px;
}

/* ==========================================
   ISOPAINT — CONSISTENT PAGE BACKGROUNDS
   ========================================== */

/* Support and Company pages */
body.page-template-page-support,
body.page-template-page-company {
    background-color: #f8f6f1;
}

/* Remove white GeneratePress content backgrounds */
body.page-template-page-support .site,
body.page-template-page-company .site,
body.page-template-page-support .site-content,
body.page-template-page-company .site-content,
body.page-template-page-support .content-area,
body.page-template-page-company .content-area,
body.page-template-page-support .site-main,
body.page-template-page-company .site-main,
body.page-template-page-support .inside-article,
body.page-template-page-company .inside-article {
    background-color: transparent !important;
}


/* ISOPAINT SUPPORT & COMPANY BACKGROUND FIX */

body:has(.iso-support),
body:has(.iso-company) {
    background-color: #f8f6f1 !important;
}

body:has(.iso-support) #page,
body:has(.iso-company) #page {
    background-color: #f8f6f1 !important;
}

/* ==========================================
   ISOPAINT — UNIFIED PAGE TOP SPACING
   Contact / Company / Support
   ========================================== */

/* Same distance from navigation on all three pages */
body:has(.iso-contact) .iso-contact,
body:has(.iso-company) .iso-company,
body:has(.iso-support) .iso-support {
    padding-top: 75px !important;
}

/* Remove extra spacing from the first label */
.iso-contact__eyebrow,
.iso-company__eyebrow,
.iso-support__eyebrow {
    margin-top: 0 !important;
}

/* Mobile spacing */
@media (max-width: 768px) {
    body:has(.iso-contact) .iso-contact,
    body:has(.iso-company) .iso-company,
    body:has(.iso-support) .iso-support {
        padding-top: 45px !important;
    }
}
