/*
Theme Name: Kendrick Internal
Description: Editable Kendrick Plastics approved November 2 baseline with shared navigation, section patterns and original interactions.
Requires at least: 6.7
Tested up to: 7.1
Requires PHP: 8.0
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: kendrick-internal
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;
}

.wp-site-blocks{padding:0}.wp-site-blocks>*+*{margin-block-start:0}.wp-site-blocks main.is-flush{padding:0}.wp-block-post-content{margin:0}.wp-block-post-content>*{max-width:none}.wp-site-blocks .wp-block-template-part{margin-block:0}.wp-block-post-content>.alignfull{margin:0}

.wp-block-post-content.is-layout-flow > *{margin-block-start:0}


/* Native shared WordPress navigation preserves the approved six-link header. */
.site-header nav.kendrick-navigation{position:static;padding:0;box-shadow:none;display:flex;background:transparent;gap:0;flex:1;color:var(--ink);font-size:14px;font-weight:600}
.kendrick-navigation .wp-block-navigation__container{gap:28px;align-items:center}
.kendrick-navigation .wp-block-navigation-item__content{font-size:14px;line-height:1.2;font-weight:600;white-space:nowrap;padding:20px 0;text-decoration:none}
.kendrick-navigation .wp-block-navigation-item__content:hover{color:var(--red)}
.kendrick-navigation .current-menu-item:not(.kp-nav-contact)>a{box-shadow:0 3px var(--red)}
.site-header .kendrick-navigation .kp-nav-contact>a{background:var(--red);color:#fff;display:flex;align-items:center;gap:30px;padding:18px 24px;min-height:55px}
.site-header .kendrick-navigation .kp-nav-contact>a:after{content:'';width:18px;height:18px;background: url('frontend/assets/button-arrow-red.svg') center/contain no-repeat}
.site-header .kendrick-navigation .kp-nav-contact>a:hover{background:#ae0b26;color:#fff}
.kendrick-navigation .wp-block-navigation__responsive-container-open{display:none}
.kendrick-footer-navigation .wp-block-navigation__container{gap:0;display:block}
.kendrick-footer-navigation .wp-block-navigation-item__content{display:block;font-size:14px;margin-bottom:10px;text-decoration:none}
.kp-new-page-content{padding-top:80px;padding-bottom:100px;min-height:60vh}
.kp-new-page-content>.wp-block-post-title{font-family:var(--display);font-size:clamp(42px,5vw,72px);line-height:1.05;margin-bottom:36px}
.kp-new-page-content .wp-block-image img{height:auto;max-width:100%}.kp-page-section{padding:28px 0}
@media(max-width:1200px) and (min-width:901px){.kendrick-navigation .wp-block-navigation__container{gap:19px}.kendrick-navigation .wp-block-navigation-item__content{font-size:12px}.site-header .kendrick-navigation .kp-nav-contact>a{padding:14px 18px;min-height:48px;gap:24px}}
@media(max-width:900px){
 .site-header nav.kendrick-navigation{display:flex;top:auto;left:auto;right:auto;align-items:center;justify-content:flex-end}
 .kendrick-navigation .wp-block-navigation__responsive-container-open{display:flex;align-items:center;gap:10px;font-size:13px}
 .kendrick-navigation .wp-block-navigation__responsive-container-open:before{content:'Menu'}
 .kendrick-navigation .wp-block-navigation__responsive-container:not(.is-menu-open){display:none!important}
 .kendrick-navigation .wp-block-navigation__responsive-container.is-menu-open{display:flex!important;padding:30px;color:var(--ink);background:#fff}
 .kendrick-navigation .wp-block-navigation__responsive-container-content{align-items:stretch!important;width:100%}
 .kendrick-navigation .wp-block-navigation__container{display:flex;flex-direction:column!important;align-items:stretch!important;width:100%;gap:0}
 .kendrick-navigation .wp-block-navigation-item{width:100%}
 .kendrick-navigation .wp-block-navigation-item__content{font-size:17px;padding:18px 0;border-bottom:1px solid var(--line)}
 .site-header .kendrick-navigation .kp-nav-contact>a{padding:18px 24px;margin-top:23px;width:100%;justify-content:space-between}
 .kp-new-page-content{padding-top:44px;padding-bottom:64px}
}
