/*
Theme Name: HoneyPear
Author: HoneyPear
Description: Recreation of the honeypear.co design as a native WordPress theme. Pages are regular block-editor content.
Version: 1.2.0
Requires at least: 6.4
Requires PHP: 7.4
License: GPL-2.0-or-later
Text Domain: honeypear
*/
:root{--honey:#f6bc01;--pear:#01443e;--cream:#fdf0e6;--gutter:4vw;--max:1400px;--u:min(1.2vw,16.8px);--small:min(calc(1rem - .12vw),.9rem);--header-h:197px}
*,*::before,*::after{box-sizing:border-box}
html{font-size:16px;-webkit-text-size-adjust:100%}
body{margin:0;background:var(--cream);color:var(--honey);font:400 16px/1.5 Poppins,sans-serif;overflow-x:clip;-webkit-font-smoothing:antialiased}
img{max-width:100%;height:auto;vertical-align:top}
a{color:inherit}
.screen-reader-text{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
.hp-skip{position:absolute;left:-9999px;top:8px;background:var(--pear);color:#fff;padding:12px 20px;z-index:200}
.hp-skip:focus{left:8px}

/* type */
h1,h2,h3,h4{font-family:Sansita,serif;font-weight:700;letter-spacing:-.02em;margin:2rem 0}
h1{font-size:calc(var(--u)*3 + 1rem);line-height:1.056}
h2{font-size:calc(var(--u)*1.8 + 1rem);line-height:1.1136}
h3{font-size:calc(var(--u)*1.2 + 1rem);line-height:1.1424}
h4{font-size:calc(var(--u)*.6 + 1rem);line-height:1.1712}
p{margin:1rem 0}
ul,ol{margin:1em 0}
.has-large-font-size{font-size:calc(var(--u)*.4 + 1rem)!important}
.has-small-font-size{font-size:var(--small)!important}
mark.has-inline-color{background:none}

/* section themes: --h1-3, --h4, --p */
.hp-section{position:relative;display:flex;align-items:center;background:var(--cream)}
.hp-section>*{width:100%}
.hp-theme-default{--c13:var(--pear);--c4:var(--pear);--cp:var(--honey)}
.hp-theme-light,.hp-theme-light-bold{--c13:var(--honey);--c4:#000;--cp:#000}
.hp-theme-bright{--c13:#fff;--c4:#fff;--cp:#fff;background:var(--pear)}
.hp-theme-black{--c13:#fff;--c4:#fff;--cp:#fff;background:#000}
.hp-section h1,.hp-section h2,.hp-section h3{color:var(--c13)}
.hp-section h4{color:var(--c4)}
.hp-section{color:var(--cp)}
.hp-section .has-cream-color{color:var(--cream)}.hp-section .has-honey-color{color:var(--honey)}.hp-section .has-pear-color{color:var(--pear)}
/* section heights */
main>.hp-section:first-child{padding-top:var(--header-h)}
.hp-grid{padding-top:var(--pt,var(--pad,0px));padding-bottom:var(--pb,var(--pad,0px))}
.hp-h-small{min-height:33vh}.hp-h-medium{min-height:66vh}.hp-h-large{min-height:100vh}
.hp-h-small.hp-v-middle{--pt:3.3vmax;--pb:3.3vmax}.hp-h-medium.hp-v-middle{--pt:6.6vmax;--pb:6.6vmax}
.hp-v-top:not(.hp-h-custom){align-items:flex-start;--pt:var(--gutter)}.hp-h-small.hp-v-top{--pb:6.6vmax}.hp-h-medium.hp-v-top{--pb:13.2vmax}
.hp-v-bottom:not(.hp-h-custom){align-items:flex-end;--pb:var(--gutter)}.hp-h-small.hp-v-bottom{--pt:6.6vmax}.hp-h-medium.hp-v-bottom{--pt:13.2vmax}
.hp-gallery-section{min-height:0;display:block}
.hp-inset{padding:0 var(--gutter) var(--gutter)}
main>.hp-inset:not(:first-child){padding-top:var(--gutter)}
/* background image */
.hp-has-bg .hp-bg{position:absolute;inset:0;margin:0;z-index:0}
.hp-has-bg .hp-bg img{width:100%;height:100%;object-fit:cover}
.hp-has-bg .hp-bg::after{content:"";position:absolute;inset:0;background:#000;opacity:var(--ov,.15)}
.hp-has-bg>.hp-grid{position:relative;z-index:1}
/* wavy divider */
.hp-wave{padding-bottom:6vw;z-index:2;background:linear-gradient(var(--cream),var(--cream)) top/100% calc(100% - 6vw + 1px) no-repeat}
.hp-wave+.hp-section.hp-has-bg .hp-bg{top:-6vw}
.hp-wave+.hp-wave{z-index:1}
.hp-wave-svg{position:absolute;left:0;bottom:0;width:100%;height:6vw;overflow:visible;pointer-events:none}
.hp-wave-svg path{vector-effect:non-scaling-stroke;stroke-width:6px}

/* grid */
.hp-grid{display:grid;position:relative;width:100%;row-gap:var(--gap);column-gap:var(--gap);--cols:8;--mg:calc(6vw - var(--gap));
 grid-template-columns:minmax(var(--mg),1fr) repeat(8,minmax(0,calc((var(--max) - var(--gap)*7)/8))) minmax(var(--mg),1fr);
 grid-template-rows:repeat(var(--rows-m),minmax(24px,auto));overflow-x:clip}
.hp-cell{grid-area:var(--am);display:flex;flex-direction:column;justify-content:var(--jm);min-width:0;min-height:0;position:relative;white-space:pre-wrap;overflow-wrap:break-word}
.hp-cell>*{margin-left:0;margin-right:0}
.hp-cell>*{margin-top:1rem;margin-bottom:0}
.hp-cell>:is(h1,h2,h3,h4),.hp-cell>:is(h1,h2,h3,h4)+*{margin-top:2rem}
.hp-cell>:first-child{margin-top:0}
.hp-section :is(ul,ol){padding-left:40px;white-space:normal}.hp-section li+li{margin-top:.5rem}
.hp-imagefluid,.hp-video,.hp-button,.hp-form{white-space:normal}
.hp-fill{position:absolute;inset:0;margin:0!important}
.hp-fill a{display:block;height:100%}
.hp-fill img{width:100%;height:100%;object-fit:cover}
.hp-video .wp-block-embed{width:100%;margin:0}
.hp-video .wp-block-embed__wrapper,.hp-video .wp-block-embed.wp-has-aspect-ratio .wp-block-embed__wrapper{position:relative;padding-bottom:56.5%}
.hp-video .wp-block-embed__wrapper::before{display:none!important}
.hp-video iframe{position:absolute;inset:0;width:100%;height:100%;border:0}
.hp-button .wp-block-buttons,.hp-button .wp-block-button{width:100%;height:100%;margin:0;display:flex}
.hp-btn,.wp-block-button__link{display:flex;align-items:center;justify-content:center;border-radius:300px;padding:1.2rem 2rem;background:var(--pear);color:#fff;font-size:1rem;line-height:normal;text-transform:uppercase;text-decoration:none;text-align:center;border:0;cursor:pointer;transition:opacity .1s}
.hp-btn:hover,.wp-block-button__link:hover{opacity:.8}
.hp-button .wp-block-button__link{width:100%;height:100%;padding:0 1rem}
.hp-theme-bright .wp-block-button__link{background:#fff;color:var(--pear)}
@media(min-width:768px){
 .hp-grid{--cw:min(var(--max),calc(100vw - var(--gutter)*2 - var(--ip,0vw)));--mg:calc(var(--gutter) - var(--gap));
  grid-template-columns:minmax(var(--mg),1fr) repeat(24,minmax(0,calc((var(--max) - var(--gap)*23)/24))) minmax(var(--mg),1fr);
  grid-template-rows:repeat(var(--rows),minmax(calc(var(--cw)*.0215),auto))}
 .hp-inset .hp-grid{--ip:calc(var(--gutter)*2)}
 .hp-cell{grid-area:var(--a);justify-content:var(--j)}
}

/* header */
.hp-header{position:absolute;top:0;left:0;right:0;z-index:50;--tone:var(--honey);--btn:var(--pear);--btnc:#fff;color:var(--tone)}
.admin-bar .hp-header{top:32px}.admin-bar main{margin-top:0}
.hp-header.tone-bright{--btn:#fff;--btnc:var(--pear)}
.hp-header.tone-black{--btn:#fff;--btnc:#000}
.hp-header-in{display:grid;grid-template-columns:1fr auto 1fr;align-items:center;padding:.2vw var(--gutter)}
.hp-nav ul{list-style:none;margin:0;padding:0;display:flex;gap:2vw;flex-wrap:wrap}
.hp-nav a{display:block;text-decoration:none;padding:1.6px 0}
.hp-nav .current-menu-item>a,.hp-nav .current-menu-ancestor>a,.hp-nav a:hover{background:linear-gradient(currentColor,currentColor) 0 calc(100% - 1.6px)/100% 1px no-repeat}
.hp-logo{display:block;line-height:0}.hp-logo img{width:auto;height:193px}
.hp-actions{display:flex;justify-content:flex-end;align-items:center;gap:2vw}
.hp-social{display:flex;gap:2vw}
.hp-social a{display:block;line-height:0}.hp-social svg{width:32px;height:32px;fill:currentColor}
.hp-header .hp-btn{background:var(--btn);color:var(--btnc);font-family:"Nunito Sans",sans-serif}
.hp-burger{display:none;background:none;border:0;padding:0;width:47px;height:37px;cursor:pointer;color:inherit;position:relative}
.hp-burger i{position:absolute;left:6px;right:6px;height:2px;background:currentColor;transition:transform .25s,opacity .25s,top .25s}
.hp-burger i:nth-child(1){top:7px}.hp-burger i:nth-child(2){top:17.5px}.hp-burger i:nth-child(3){top:28px}
.hp-menu{position:fixed;inset:0;background:var(--cream);color:var(--honey);display:none;flex-direction:column;align-items:center;z-index:-1;padding:var(--header-h) 6vw 24px;overflow:auto}
.hp-menu ul{list-style:none;margin:auto;padding:0;text-align:center}
.hp-menu li{padding:3vw 0}
.hp-menu li a{display:block;font-size:clamp(28px,8.5vw,56px);line-height:1;text-decoration:none}
.hp-menu .hp-social{gap:15px;margin:24px 0 54px}.hp-menu .hp-social svg{width:25px;height:25px}
.hp-menu .hp-btn{min-width:210px;background:var(--honey);color:#fff;font-size:1.2rem;padding:1.2em 2em}
.hp-open .hp-menu{display:flex}.hp-open .hp-header{position:fixed}
.hp-open{overflow:hidden}
.hp-open .hp-burger i:nth-child(1){top:17.5px;transform:rotate(45deg)}.hp-open .hp-burger i:nth-child(2){opacity:0}.hp-open .hp-burger i:nth-child(3){top:17.5px;transform:rotate(-45deg)}
:root{--header-h:calc(193px + .4vw)}
@media(max-width:799px){
 :root{--header-h:calc(193px + 22vw)}
 .hp-header-in{padding:11vw var(--gutter)}
 .hp-nav,.hp-header-in>.hp-actions .hp-social,.hp-header-in>.hp-actions>.hp-btn{display:none}
 .hp-logo{grid-column:2}.hp-burger{display:block}
}
@media(max-width:767px){
 :root{--u:calc(.012*min(100vh,900px));--small:calc(1rem - .1*var(--u));--header-h:calc(89px + 22vw)}
 .hp-logo img{height:89px}
 .hp-header-in{padding:11vw 6vw}
}

/* footer */
.hp-footer{position:relative;background:var(--cream);color:#000;text-align:center}
.hp-footer h4{margin:0 0 2rem;color:#000}.hp-footer p{margin:0}
.hp-footer .hp-grid{--gap:0px;--rows:12;--rows-m:20}
.hp-f1{--am:2/2/7/10;--a:3/9/8/13;--jm:flex-start;--j:flex-start}
.hp-f2{--am:7/2/12/10;--a:3/15/8/19;--jm:flex-start;--j:flex-start;z-index:2}
.hp-f3{--am:14/2/21/10;--a:9/11/12/17;--jm:flex-start;--j:center;z-index:3;mix-blend-mode:overlay;padding:6%;text-align:left}
.hp-footer .hp-cell{white-space:normal}.hp-cell.hp-f3>figure{margin:1rem 0}.hp-f3 blockquote{margin:0;font-size:calc(var(--u)*.4 + 1rem)}
.hp-f3 figcaption{font-family:"Nunito Sans",sans-serif;text-align:right}

.hp-flinks ul{list-style:none;margin:0;padding:0 6vw 28px;display:flex;flex-wrap:wrap;justify-content:center;gap:8px 28px}
.hp-flinks a{text-decoration:none;font-size:var(--small)}.hp-flinks a:hover{text-decoration:underline}
.hp-section>h1.screen-reader-text{width:1px;margin:0;top:0}
/* headings promoted to H1 for search engines keep their original look */
h1.hp-as-2{font-size:calc(var(--u)*1.8 + 1rem);line-height:1.1136}
h1.hp-as-3{font-size:calc(var(--u)*1.2 + 1rem);line-height:1.1424}
h1.hp-as-4{font-size:calc(var(--u)*.6 + 1rem);line-height:1.1712}

/* galleries */
.hp-gallery.wp-block-gallery{display:block;margin:0;position:relative;padding:0}
.hp-gallery.wp-block-gallery.hp-w-inset{margin:0 var(--gutter);width:auto}
.hp-gallery-section{padding-bottom:var(--gutter)}
.hp-gallery-section:has(.hp-w-full){padding-bottom:0}
.hp-gallery-section:has(.hp-w-inset){padding-top:var(--gutter)}
main>.hp-gallery-section:first-child:has(.hp-w-inset){padding-top:calc(var(--header-h) + var(--gutter))}
.hp-gallery-section.hp-wave{padding-bottom:calc(var(--gutter) + 6vw)}
.hp-gallery.wp-block-gallery figure.wp-block-image:not(#individual-image){margin:0;width:100%;max-width:none;flex:none;display:block}
.hp-gallery.wp-block-gallery figure.wp-block-image:not(#individual-image) img{display:block;width:100%;height:100%;object-fit:cover;flex:none}
.hp-gallery.hp-tiles.wp-block-gallery{display:grid;grid-template-columns:repeat(var(--n,1),1fr);gap:1.3vw}
.hp-tiles.hp-cols-2{--n:2}.hp-tiles.hp-cols-3{--n:3}
.hp-tiles figure.wp-block-image{aspect-ratio:16/9}
.hp-masonry:not(.is-laid){columns:3}.hp-masonry.hp-cols-2:not(.is-laid){columns:2}
.hp-gallery.is-laid figure.wp-block-image:not(#individual-image){position:absolute}
.hp-scale-up.is-anim figure img{opacity:0;transform:scale(.9);transition:opacity .8s ease,transform .8s ease}
.hp-scale-up.is-anim figure.is-in img{opacity:1;transform:none}
.hp-lightbox-on figure{cursor:zoom-in}
@media(max-width:767px){
 .hp-gallery.wp-block-gallery.hp-w-inset:not(.hp-tiles){margin:0 6vw}
 .hp-gallery-section:has(.hp-w-inset.hp-masonry){padding-top:6vw;padding-bottom:6vw}
 .hp-gallery-section.hp-wave:has(.hp-masonry){padding-bottom:12vw}
 main>.hp-gallery-section:first-child:has(.hp-masonry.hp-w-inset){padding-top:calc(var(--header-h) + 6vw)}
 .hp-strips{padding-top:20px!important}
}
/* lightbox */
.hp-lightbox{position:fixed;inset:0;z-index:300;background:rgba(253,240,230,.9);border:0;padding:0;width:100vw;height:100dvh;max-width:none;max-height:none;color:#000}
.hp-lightbox::backdrop{background:none}
.hp-lightbox img{position:absolute;inset:7vh 140px;margin:auto;max-width:calc(100% - 280px);max-height:86vh;width:auto;height:auto}
.hp-lightbox button{position:absolute;background:none;border:0;cursor:pointer;padding:14px;color:#000;line-height:0}
.hp-lightbox svg{fill:none;stroke:currentColor;stroke-width:1.5}
.hp-lb-x{top:5px;right:10px}.hp-lb-p{left:36px;top:calc(50% - 25px)}.hp-lb-n{right:24px;top:calc(50% - 25px)}
@media(max-width:767px){.hp-lightbox img{inset:60px 12px;max-width:calc(100% - 24px)}.hp-lb-p{left:0;top:auto;bottom:4px}.hp-lb-n{right:0;top:auto;bottom:4px}}

/* portfolio index + pagination */
.hp-portfolio-section>p{display:contents}
.hp-portfolio{display:grid;grid-template-columns:repeat(3,1fr);gap:30px;padding:10vw var(--gutter)}
.hp-portfolio a{text-decoration:none;display:block}
.hp-portfolio .ph{aspect-ratio:1;overflow:hidden}
.hp-portfolio img{width:100%;height:100%;object-fit:cover;transition:opacity .2s}
.hp-portfolio a:hover img{opacity:.7}
.hp-section .hp-portfolio h3{font-size:calc(var(--u)*.6 + 1rem);line-height:1.2;margin:20px 0 calc(.5em - .01px);color:var(--pear)}
.hp-pager{display:flex;justify-content:space-between;align-items:center;padding:3vw var(--gutter);color:#000;background:var(--cream)}
.hp-pager a{max-width:50%;display:flex;align-items:center;text-decoration:none}
.hp-pager .t{display:block;font-family:Sansita,serif;font-weight:700;letter-spacing:-.02em;margin:0;color:#000;font-size:calc(var(--u)*1.2 + 1rem);line-height:1}
.hp-pager svg{width:18px;height:32px;fill:none;stroke:#000;stroke-width:1;flex:none}
.hp-pager .prev svg{margin-right:25px}.hp-pager .next{margin-left:auto;text-align:right}.hp-pager .next svg{margin-left:25px}
@media(max-width:767px){
 .hp-portfolio{grid-template-columns:1fr;padding:10vw 6vw}
 
 .hp-pager{padding:3vw 6vw}
}

/* contact form */
.hp-form form{color:#000;width:100%}
.hp-form fieldset{border:0;margin:0 0 20px;padding:0;min-width:0}
.hp-form legend,.hp-form .lbl{display:block;padding:0 0 4px;line-height:24px}
.hp-form .two{display:flex;gap:10px}.hp-form .two>label{flex:1;min-width:0}
.hp-form .cap{display:flex;flex-wrap:wrap;align-content:center;font-size:12px;line-height:19px;min-height:27px;padding-bottom:4px}
.hp-form small{font-size:var(--small);opacity:.7;margin-left:4px}
.hp-form input:not([type=submit]),.hp-form textarea{display:block;width:100%;border:2px solid #000;border-radius:6.4px;background:transparent;font:400 16px/24px Poppins,sans-serif;padding:8px 15px;color:#000;margin:0}
.hp-form input:not([type=submit]){height:44px}.hp-form textarea{height:100px;resize:vertical}
.hp-form :focus-visible{outline:2px solid var(--pear);outline-offset:2px}
.hp-form .hp-btn{margin:0 auto;font-family:Poppins,sans-serif;min-height:63px}
.hp-hny{position:absolute!important;left:-5000px}
.hp-form-err{border:2px solid #b00020;border-radius:6px;padding:8px 14px;margin:0 0 20px;color:#b00020}
.hp-thanks{color:#000;text-align:center}
/* plain pages / posts / 404 created later in WordPress */
.hp-plain{max-width:860px;margin:0 auto;padding:calc(var(--header-h) + 40px) 6vw 80px;color:#000}
.hp-plain h1,.hp-plain h2,.hp-plain h3{color:var(--pear)}
@media(prefers-reduced-motion:reduce){*{transition:none!important}}
@media screen and (max-width:782px){.admin-bar .hp-header{top:46px}}

/* intro text */
.hp-text{justify-content:center;padding:clamp(32px,4vw,64px) 6vw}
main>.hp-text:first-child{padding-top:calc(var(--header-h) + 1rem)}
.hp-section.hp-text p,.hp-section p.hp-text-in{max-width:760px;margin:0 auto;color:var(--pear)}
.hp-section p.hp-text-in{margin-top:1.25rem!important}
.hp-text+.hp-section.hp-h-medium{min-height:0}
