/* Home page (inc/home.php) */
:root {
	--kovo-orange: #c0562a;
	/* modern take on the old site's warm brown + gold palette */
	--kovo-ink: #2a2118;          /* text, hero backdrop */
	--kovo-cream: #faf6ed;        /* intro */
	--kovo-sand: #efe6d2;         /* products */
	--kovo-paper: #fffdf8;        /* work */
	--kovo-espresso: #2c2017;     /* contact (dark) */
	--kovo-gold: #e0a030;         /* accent on dark */
	--kovo-stone: #e6dcc6;        /* image placeholders */
}

/* the front-page template renders the content full width; each section manages its own width */
.kovo-home { overflow-x: clip; }
.kovo-wrap { box-sizing: border-box; max-width: 1100px; margin: 0 auto; padding: 0 16px; }
/* one rhythm for all home sections: the same space above and below, less than before */
:root { --kovo-pad: clamp(2rem, 4.2vw, 3.2rem); }
.kovo-section { padding: var(--kovo-pad) 0; }
.kovo-intro { background: var(--kovo-cream); }
.kovo-section--alt { background: var(--kovo-sand); }
.kovo-work { background: var(--kovo-paper); }
.kovo-section h2 { margin: 0 0 1.4rem; font-size: clamp(1.6rem, 3.2vw, 2.2rem); line-height: 1.15; }
.kovo-more { margin: 1.6rem 0 0; text-align: right; }
.kovo-more a { text-decoration: none; font-weight: 600; }
.kovo-more a:hover { text-decoration: underline; text-underline-offset: 4px; }

/* buttons */
.kovo-btn { display: inline-block; padding: .8rem 1.4rem; border-radius: 6px; font: inherit; font-size: 1rem; font-weight: 600; line-height: 1.2; text-decoration: none; cursor: pointer; border: 2px solid transparent; transition: background .2s, color .2s; }
.kovo-btn--primary { background: var(--kovo-orange); color: #fff; }
.kovo-btn--primary:hover { background: #d4632f; color: #fff; }
.kovo-btn--ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .75); }
.kovo-btn--ghost:hover { background: rgba(255, 255, 255, .15); color: #fff; }

/* hero: slideshow, no user input needed */
.kovo-hero { position: relative; height: 100vh; height: 100svh; min-height: 520px;   /* fills the whole first screen */
  overflow: hidden; background: var(--kovo-ink); color: #fff; }
.kovo-hero__slides, .kovo-hero__slide, .kovo-hero__shade { position: absolute; inset: 0; }
.kovo-hero__slide { width: 100%; height: 100%; object-fit: cover; object-position: center; opacity: 0; transition: opacity 1.2s ease; }
.kovo-hero__slide.is-active { opacity: 1; animation: kovo-zoom 8s ease-out both; }
@keyframes kovo-zoom { from { transform: scale(1.05); } to { transform: scale(1); } }
.kovo-hero__shade { background: linear-gradient(90deg, rgba(28, 19, 10, .72) 0%, rgba(28, 19, 10, .25) 65%, rgba(28, 19, 10, .05) 100%), linear-gradient(0deg, rgba(28, 19, 10, .5) 0%, rgba(28, 19, 10, 0) 40%); }
.kovo-hero__text { position: absolute; left: 0; right: 0; bottom: clamp(3rem, 9vh, 5.5rem); box-sizing: border-box; max-width: 1100px; margin: 0 auto; padding: 0 16px; }
.kovo-hero__text h1 { margin: 0 0 .6rem; font-size: clamp(2.2rem, 6vw, 4.2rem); line-height: 1.05; color: #fff; text-shadow: 0 2px 12px rgba(0, 0, 0, .35); }
/* tagline + buttons on the left, phone on the right edge of the column */
.kovo-hero__row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 1.4rem 2rem; }
.kovo-hero__phone { margin: .2rem 0 0 auto; text-align: right; color: #fff; text-decoration: none; font-size: clamp(1.4rem, 2.6vw, 2rem); font-weight: 700; line-height: 1.1; white-space: nowrap; text-shadow: 0 1px 8px rgba(0, 0, 0, .45); }
.kovo-hero__phone span { display: block; margin-bottom: .35rem; font-size: .8rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; opacity: .8; }
.kovo-hero__phone:hover { text-decoration: underline; text-underline-offset: 5px; }
@media (max-width: 700px) { .kovo-hero__phone { margin: 0; text-align: left; } }
.kovo-hero__text p { margin: 0 0 1.4rem; max-width: 34rem; font-size: clamp(1.05rem, 2vw, 1.3rem); line-height: 1.4; text-shadow: 0 1px 6px rgba(0, 0, 0, .4); }
.kovo-hero__cta, .kovo-contact__cta { display: flex; flex-wrap: wrap; gap: .8rem; }
.kovo-hero__dots { position: absolute; left: 0; right: 0; bottom: 1.3rem; display: flex; justify-content: center; gap: 7px; }
.kovo-hero__dot { width: 7px; height: 7px; padding: 0; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .45); cursor: pointer; }
.kovo-hero__dot.is-active { background: #fff; }
@media (prefers-reduced-motion: reduce) { .kovo-hero__slide.is-active { animation: none; } .kovo-hero__slide { transition: none; } }

/* intro text */
.kovo-intro .kovo-wrap { max-width: 900px; font-size: 1.05rem; line-height: 1.7; color: #4a3f33; }
.kovo-intro p:first-child { margin-top: 0; font-size: clamp(1.2rem, 2.3vw, 1.55rem); line-height: 1.5; color: var(--kovo-ink); }   /* lead paragraph */
.kovo-intro p { text-align: left; }
.kovo-intro p:last-child { margin-bottom: 0; }
@media (min-width: 800px) { .kovo-intro p { text-align: justify; } }   /* justified only where the lines are long enough */

/* product tiles */
.kovo-tiles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
@media (min-width: 800px) { .kovo-tiles { grid-template-columns: repeat(4, 1fr); } }
.kovo-tile { position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 8px; background: var(--kovo-stone); text-decoration: none; }
.kovo-tile img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; transition: transform .3s ease; }
.kovo-tile:hover img, .kovo-tile:focus-visible img { transform: scale(1.06); }
.kovo-tile span { position: absolute; left: 0; right: 0; bottom: 0; padding: 2rem .9rem .8rem; color: #fff; font-weight: 600; font-size: 1.05rem; line-height: 1.2; background: linear-gradient(to top, rgba(28, 19, 10, .8), rgba(28, 19, 10, 0)); }

/* photo strip */
.kovo-strip { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
@media (min-width: 800px) { .kovo-strip { grid-template-columns: repeat(4, 1fr); } }
.kovo-strip a { position: relative; display: block; aspect-ratio: 1 / 1; overflow: hidden; border-radius: 8px; background: var(--kovo-stone); }
.kovo-strip img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; transition: transform .25s ease; }
.kovo-strip a:hover img, .kovo-strip a:focus-visible img { transform: scale(1.06); }

/* contact */
.kovo-section--dark { background: var(--kovo-espresso); color: #fff; }
.kovo-section--dark h2, .kovo-section--dark h3 { color: #fff; }
.kovo-contact__grid { display: grid; gap: 1.4rem 2rem; grid-template-columns: 1fr; margin-bottom: 1.6rem; }
/* 600-799px: phone above e-mail in the first column, address in the second */
@media (min-width: 600px) {
	.kovo-contact__grid { grid-template-columns: repeat(2, auto); justify-content: start; gap: 1.4rem 4rem; }
	.kovo-contact__grid > div:nth-child(1) { grid-column: 1; grid-row: 1; }
	.kovo-contact__grid > div:nth-child(2) { grid-column: 1; grid-row: 2; }
	.kovo-contact__grid > div:nth-child(3) { grid-column: 2; grid-row: 1 / span 2; }
}
/* 800px and up: three columns side by side */
@media (min-width: 800px) {
	.kovo-contact__grid { grid-template-columns: repeat(3, auto); gap: 2rem 4rem; }
	.kovo-contact__grid > div:nth-child(n) { grid-column: auto; grid-row: auto; }
}
.kovo-contact h3 { margin: 0 0 .4rem; font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; color: var(--kovo-gold) !important; opacity: 1; font-weight: 600; }
.kovo-contact p { margin: 0; font-size: 1.05rem; line-height: 1.6; }
.kovo-contact a:not(.kovo-btn) { color: #fff; text-decoration: underline; text-underline-offset: 4px; text-decoration-color: rgba(255, 255, 255, .45); }
.kovo-contact a:not(.kovo-btn):hover { text-decoration-color: #fff; }
.kovo-contact p.kovo-contact__cta { margin: 0; }

/* Header on top of the hero (front page only): transparent, white text, dark gradient for legibility */
body.kovo-home-page .wp-site-blocks > header { position: absolute; top: 0; left: 0; right: 0; z-index: 30; padding-bottom: 3.5rem; background: linear-gradient(to bottom, rgba(28, 19, 10, .72) 0%, rgba(28, 19, 10, .35) 55%, rgba(28, 19, 10, 0) 100%); }
body.kovo-home-page .wp-site-blocks > main { margin-top: 0 !important; }
body.kovo-home-page header .wp-block-site-title a,
body.kovo-home-page header .wp-block-navigation__responsive-container:not(.is-menu-open) a,
body.kovo-home-page header .wp-block-navigation__responsive-container-open { color: #fff; text-shadow: 0 1px 6px rgba(0, 0, 0, .35); }
body.kovo-home-page header .wp-block-navigation__responsive-container-open svg { fill: #fff; }
