/*
Theme Name: Kiwi Pilot Gear
Description: A custom block theme scaffolded by Studio Code.
Requires at least: 6.7
Tested up to: 6.9
Requires PHP: 7.2
Version: 0.1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: kiwi-pilot-gear
Tags: full-site-editing, block-patterns, block-styles, wide-blocks, accessibility-ready, style-variations
*/

/* WordPress inserts a margin-block-start equal to the block gap (24px unless
   theme.json sets styles.spacing.blockGap) between the template's top-level
   sections (header part, main, footer part) — a gap that exists even when no
   markup asks for it. Zero it so sections butt edge-to-edge and own their
   vertical rhythm via padding; this does not affect block gaps inside nested
   layouts. */
.wp-site-blocks > * + * {
	margin-block-start: 0;
}

/* With that gap gone, main carries its own vertical padding so templates this
   theme does not author (WooCommerce shop, product, cart…) still clear the
   header and footer. A descendant selector, not a child one: WooCommerce wraps
   the single-product main in an extra group. Templates built from full-bleed
   sections opt out with is-flush and let the sections own the rhythm. */
.wp-site-blocks main {
	padding-block: var(--wp--preset--spacing--60) var(--wp--preset--spacing--70);
}
.wp-site-blocks main.is-flush {
	padding-block: 0;
}
:root{--ink:var(--wp--preset--color--ink);--paper:var(--wp--preset--color--paper);--accent:var(--wp--preset--color--accent);--line:var(--wp--preset--color--line);--white:var(--wp--preset--color--white);--slate:var(--wp--preset--color--slate)}
*,*::before,*::after{box-sizing:border-box}
:where(a,button,input):focus-visible{outline:2px solid #a54b06;outline-offset:3px}
.kpg-shell{width:min(100% - 2.75rem,1280px);margin-inline:auto}
.kpg-top{background:var(--ink);color:var(--white);text-align:center;padding:.45rem 1rem}
.kpg-top-copy{margin:0;font-size:.75rem;letter-spacing:.045em}
.kpg-header,.kpg-nav{background:var(--paper)}
.kpg-mast{min-height:78px;display:grid;align-items:center;grid-template-columns:1fr minmax(240px,390px) auto;gap:2rem}
.kpg-logo{margin:0;font-size:clamp(1.12rem,2.6vw,1.74rem);font-weight:900;letter-spacing:-.045em;line-height:1.1}
.kpg-logo a{text-decoration:none;color:inherit}
.kpg-search{display:flex;background:#fff;border:1px solid var(--line);min-width:0}
.kpg-search input{min-width:0;flex:1;border:0;padding:.65rem .8rem;font:inherit;font-size:.85rem;color:var(--ink)}
.kpg-search button{border:0;border-left:1px solid var(--line);background:transparent;padding:.55rem .8rem;color:var(--ink);font-size:.8rem;font-weight:700;cursor:pointer}
.kpg-nav{border-top:1px solid var(--line);border-bottom:1px solid var(--line);padding:.69rem 0}
.kpg-nav .wp-block-navigation{font-size:.84rem;font-weight:700;--navigation-layout-justification-setting:flex-start;gap:1.4rem}
.kpg-nav .wp-block-navigation-item:first-child .wp-block-navigation-item__content{color:#8b3d09}
.kpg-hero{min-height:clamp(480px,53vw,660px);display:grid;align-items:center;color:var(--white);background:linear-gradient(90deg,rgba(11,24,37,.83),rgba(11,24,37,.55) 40%,rgba(11,24,37,.12) 72%),url("assets/high-country.jpg") 68% 58% / cover no-repeat;background-color:#243548}
.kpg-hero-inner{padding-block:4.75rem;margin-inline:auto}
.kpg-kicker{text-transform:uppercase;font-size:.75rem;font-weight:800;letter-spacing:.15em;margin:0 0 1.2rem;color:var(--accent)}
.kpg-display{font-size:clamp(3.25rem,8.4vw,8.1rem);letter-spacing:-.075em;line-height:.92;margin:0;color:inherit;font-weight:900}
.kpg-deck{font-size:clamp(1rem,1.8vw,1.2rem);max-width:31ch;margin:1.55rem 0 1.7rem;color:inherit}
.kpg-hero .wp-block-button__link,.kpg-training .wp-block-button__link{font-size:.92rem;padding:.93rem 1.25rem}
.kpg-collections,.kpg-feature{padding-block:clamp(2.8rem,6vw,5.4rem)}
.kpg-feature{background:var(--white)}
.kpg-section-head{display:flex;align-items:end;justify-content:space-between;gap:1rem;flex-wrap:wrap;margin-bottom:1.55rem}
.kpg-heading{font-size:clamp(1.95rem,4.6vw,3.45rem);margin:0;letter-spacing:-.06em}
.kpg-section-link{margin:0;font-size:.88rem;font-weight:800}
.kpg-section-link a{text-underline-offset:.25em}
.kpg-collection-grid{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:.8rem}
.kpg-collection{display:flex;flex-direction:column;background:var(--white);border:1px solid var(--line);text-decoration:none;min-width:0;transition:border-color .18s ease}
.kpg-collection:hover{border-color:var(--ink)}
.kpg-collection img{display:block;width:100%;height:auto;aspect-ratio:1.06;object-fit:cover}
.kpg-collection-label{display:flex;align-items:center;justify-content:space-between;gap:.35rem;padding:.85rem .72rem;font-size:.84rem;font-weight:800}
.kpg-collection-label span{color:#8b3d09}
.kpg-feature ul.products{margin:0}
.kpg-feature ul.products li.product,.woocommerce ul.products li.product{margin-bottom:1rem}
.woocommerce ul.products li.product a img,.wc-block-components-product-image img{background:#eeece5;aspect-ratio:1.08;object-fit:cover}
.woocommerce ul.products li.product .price,.wc-block-components-product-price{color:var(--ink);font-weight:700}
.woocommerce ul.products li.product .woocommerce-loop-product__title{font-size:1.03rem}
.kpg-feature .woocommerce ul.products li.product a.button{border:1px solid var(--line);background:#fff;color:var(--ink);font-size:.8rem;border-radius:3px}
.kpg-training{background:#1d3446;color:var(--white)}
.kpg-training-inner{padding-block:3.4rem;display:grid;grid-template-columns:1.7fr 1fr;align-items:center;gap:2rem}
.kpg-training-inner::after{content:"";height:100%;min-height:225px;background:url("assets/student-kit.jpg") center 54% / cover no-repeat}
.kpg-footer{background:var(--ink);color:var(--white);padding-block:2.5rem}
.kpg-footer-inner{display:grid;grid-template-columns:1fr auto;align-items:start;gap:.7rem 2rem}
.kpg-footer .wp-block-navigation-item a{color:var(--white);font-size:.84rem}
.kpg-footer-line,.kpg-footer-money{margin:.4rem 0 0;font-size:.82rem;color:#c4cbd2}
@media(max-width:900px){.kpg-collection-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.kpg-nav .wp-block-navigation{gap:.8rem}}
@media(max-width:620px){
.kpg-shell{width:calc(100% - 1.75rem)}
.kpg-mast{grid-template-columns:1fr auto;gap:.6rem;min-height:0;padding-block:.8rem}
.kpg-search{grid-row:2;grid-column:1/-1}
.kpg-nav .wp-block-navigation{column-gap:.83rem;row-gap:.4rem;font-size:.75rem}
.kpg-hero{min-height:455px;background-position:64% center}
.kpg-hero-inner{padding-block:3.5rem}
.kpg-display{font-size:clamp(3rem,12vw,4.8rem)}
.kpg-collection-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
.kpg-training-inner,.kpg-footer-inner{grid-template-columns:1fr}
.kpg-training-inner::after{min-height:140px}
}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto!important;transition:none!important}}

/* Founder story and catalogue preview. */
.kpg-story {
	background: var(--paper);
	border-top: 1px solid var(--line);
}
.kpg-story-inner {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, .95fr);
	align-items: stretch;
	gap: clamp(1.5rem, 4vw, 4rem);
	padding-block: clamp(2.8rem, 6vw, 5.4rem);
}
.kpg-story-inner::before {
	content: "";
	min-height: 335px;
	background: #253747 url("assets/pilot-story.jpg") center / cover no-repeat;
}
.kpg-story-copy { align-self: center; }
.kpg-story .kpg-kicker { color: #8b3d09; }
.kpg-story .kpg-heading { max-width: 17ch; }
.kpg-story-lead { font-size: clamp(1.08rem, 2vw, 1.32rem); font-weight: 700; }
.kpg-story-body { max-width: 55ch; color: var(--slate); }
.kpg-story-link a { font-weight: 700; text-underline-offset: .22em; }

.kpg-shop-guide {
	margin-block: 1rem 1.8rem;
}
.kpg-shop-guide p {
	margin-block: 0 .7rem;
	color: var(--slate);
	font-size: .9rem;
}
.kpg-shop-collections {
	display: flex;
	flex-wrap: wrap;
	gap: .45rem;
}
.kpg-shop-collections a {
	display: inline-block;
	border: 1px solid var(--line);
	border-radius: 3px;
	background: var(--white);
	padding: .4rem .68rem;
	font-size: .8rem;
	font-weight: 700;
	text-decoration: none;
}
.kpg-shop-collections a:hover { border-color: var(--ink); }
.kpg-shop-collections a[aria-current="page"] {
	background: var(--ink);
	color: var(--white);
	border-color: var(--ink);
}
.kpg-preview-photo { position: relative; }
.kpg-product-preview .woocommerce-product-gallery__image img.wp-post-image {
	aspect-ratio: 1;
	object-fit: contain;
	background: #e9e4dc;
}
.kpg-preview-badge {
	position: absolute;
	top: .6rem;
	left: .6rem;
	padding: .24rem .47rem;
	border-radius: 2px;
	background: var(--ink);
	color: var(--white);
	font-size: .69rem;
	font-weight: 700;
	letter-spacing: .04em;
	pointer-events: none;
}
.woocommerce-shop .wp-block-woocommerce-product-template .wp-block-post-title,
.tax-product_cat .wp-block-woocommerce-product-template .wp-block-post-title {
	font-size: clamp(.94rem, 1.5vw, 1.1rem);
}
.woocommerce-shop .wp-block-woocommerce-product-template .wp-block-post-title a,
.tax-product_cat .wp-block-woocommerce-product-template .wp-block-post-title a {
	text-decoration: none;
}
.woocommerce-shop .wp-block-woocommerce-product-template .wp-block-post-title a:hover,
.tax-product_cat .wp-block-woocommerce-product-template .wp-block-post-title a:hover {
	text-decoration: underline;
}
.kpg-contact .forminator-ui { max-width: 720px; }
@media (max-width: 700px) {
	.kpg-story-inner { grid-template-columns: 1fr; }
	.kpg-story-inner::before { min-height: 0; aspect-ratio: 16 / 9; }
}


/* Place the Location control level with the Phone number control and its character counter. */
@media (min-width: 782px) {
	#forminator-module-77 #select-1 .forminator-field > .select2-container {
		margin-top: 23px;
	}
}


#forminator-module-77 #select-1 .forminator-select .select2-selection--single {
	background-color: var(--wp--preset--color--white);
}
