/* ===== Header, menus, carousels - Greentree Locksmith static site (hand-written; matches the Polo look) ===== */
:root{--accent:rgb(133,162,146);--ink:rgb(37,37,37)}
@font-face{font-family:FontAwesome;src:url(/fonts/fontawesome-webfont.woff2?v=4.7.0) format('woff2'),url(/fonts/fontawesome-webfont.woff?v=4.7.0) format('woff');font-weight:400;font-style:normal;font-display:block}

/* container widths of the Polo theme (Bootstrap 3 + Polo's 470px step) */
.wrap{margin:0 auto;padding:0 15px;width:1170px}
@media (max-width:1199.98px){.wrap{width:970px}}
@media (max-width:991.98px){.wrap{width:750px}}
@media (max-width:767.98px){.wrap{width:470px}}
@media (max-width:479.98px){.wrap{width:auto;padding:0 10px}}

/* ---------- header (in flow, 80px; fixed white bar with a shadow once scrolled at 992px and up) ---------- */
.gh{position:relative;height:80px;z-index:200;line-height:80px;font-weight:300;color:rgb(86,86,86)}
.gh-bar{background:#fff;border-bottom:1px solid transparent;transition:box-shadow .4s ease-in-out}
.gh-in{position:relative;height:80px}
.gh-logo{float:left;position:relative;height:80px;line-height:0}
.gh-logo a{display:inline-block}
.gh-logo img{display:block;width:140px;height:80px;max-width:none}
.gh-nav{float:right;margin-right:-30px}
.gh-nav ul{list-style:none;margin:0;padding:0;line-height:80px;font-weight:400;color:#000}
.gh-nav li{float:left;margin-left:6px}
.gh-nav a{position:relative;padding:11px 14px;font-size:12px;font-weight:700;letter-spacing:1px;text-transform:uppercase;color:var(--ink);transition:color .3s}
.gh-nav a:hover,.gh-nav li.current>a{color:var(--accent)}
.gh-toggle{display:none}
@media (min-width:992px){
  .gh.sticky .gh-bar{position:fixed;top:0;left:0;width:100%;box-shadow:rgba(0,0,0,.06) 0 12px 6px 0}
}
[id]{scroll-margin-top:0}
@media (min-width:992px){[id]{scroll-margin-top:80px}}

/* below 992: static white header, hamburger left, logo centred, menu drops down under the bar */
@media (max-width:991.98px){
  .gh-in{height:auto}
  .gh-logo{position:absolute;left:0;right:0;top:0;float:none;text-align:center}
  .gh-logo a{display:inline-block}
  .gh-toggle{display:flex;position:relative;z-index:2;width:16px;height:80px;padding:0;margin:0;border:0;background:none;align-items:center;cursor:pointer}
  .gh-toggle .lines{position:relative;display:block;width:16px;height:2px;background:rgb(17,17,17);transition:.3s}
  .gh-toggle .lines::before,.gh-toggle .lines::after{content:"";position:absolute;left:0;width:16px;height:2px;background:rgb(17,17,17);transition:.3s}
  .gh-toggle .lines::before{top:5px}.gh-toggle .lines::after{top:-5px}
  .gh.open .gh-toggle .lines{background:transparent}
  .gh.open .gh-toggle .lines::before{top:0;transform:rotate(-45deg)}
  .gh.open .gh-toggle .lines::after{top:0;transform:rotate(45deg)}
  .gh-nav{float:none;clear:both;margin:0;max-height:0;overflow:hidden;transition:max-height .8s cubic-bezier(.79,.14,.15,.86)}
  .gh.open .gh-nav{max-height:400px}
  .gh-nav ul{line-height:40px;padding-bottom:20px}
  .gh-nav li{float:none;margin:0;height:39px}
  .gh-nav a{display:block;padding:12px 0;font-size:13px;line-height:normal}
}
@media (max-width:479.98px){.gh .wrap{padding:0 10px}.gh-logo{padding:0 30px 0 20px}}

/* ---------- Polo hero: height from the window (inspiro slider) ---------- */
/* every level of the hero (slider, carousel viewport, slide) follows the window height, not the 900px capture window */
.hero,.hero .oc-view,.hero .hero-slide{height:calc(100vh / 1.33 - 80px)!important}
@media (orientation:portrait){.hero,.hero .oc-view,.hero .hero-slide{height:calc(100vh / 2.2 - 80px)!important}}
@media (max-width:767.98px){.hero,.hero .oc-view,.hero .hero-slide{height:360px!important}}

/* ---------- carousels (rebuilt Owl: hero slides and testimonials) ---------- */
.oc{position:relative;touch-action:pan-y}
.oc-view{overflow:hidden}
.oc-track{display:flex;align-items:flex-start;transition:transform 1.3s ease}
.oc-item{flex:0 0 100%;min-width:0}
.oc .caps>*{animation:none}
.oc-hero .oc-item.on .caps>*{animation:oc-up .6s both}
.oc-hero .oc-item.on .caps>:first-child{animation-name:oc-zoom}
@keyframes oc-up{from{opacity:0;transform:translate3d(0,40px,0)}to{opacity:1;transform:none}}
@keyframes oc-zoom{from{opacity:0;transform:scale(1.3)}to{opacity:1;transform:none}}
@media (prefers-reduced-motion:reduce){.oc-track{transition:none}.oc-hero .oc-item.on .caps>*{animation:none}}

.oc-btn{position:absolute;top:50%;margin-top:-23px;width:78px;height:78px;padding:0;border:0;background:transparent;color:#fff;font:28px/78px FontAwesome;text-align:center;cursor:pointer;opacity:0;z-index:10;transition:.2s}
.oc-prev{left:0}.oc-next{right:0}
.oc-prev::before{content:"\f104";margin-left:-2px}
.oc-next::before{content:"\f105";margin-right:-2px}
.oc:hover .oc-btn{opacity:1}
.oc:hover .oc-prev{left:10px}.oc:hover .oc-next{right:10px}
.oc-btn:hover{background:var(--accent)}

.oc-dots{display:flex;justify-content:center;align-items:flex-start;height:16px;line-height:16px}
.oc-dots button{display:block;padding:0;margin:0;border:0;background:none;cursor:pointer}
.oc-dots span{position:relative;display:block;margin:0 4px;transition:background .3s}
.oc-dots span::after{content:"";position:absolute;left:0;display:block}
.oc-hero .oc-dots{position:relative;top:-30px;padding-top:9px}
.oc-hero .oc-dots span{width:30px;height:4px;background:#fff;opacity:.5}
.oc-hero .oc-dots span::after{top:4px;width:30px;height:0;background:#fff;transition:.3s}
.oc-hero .oc-dots .on span{opacity:1}
.oc-hero .oc-dots .on span::after{top:0;height:4px}
.oc-testi .oc-dots{margin:20px 0;padding-top:3px}
.oc-testi .oc-dots span{width:10px;height:10px;border-radius:50%;box-shadow:inset 0 0 0 2px rgb(204,204,204)}
.oc-testi .oc-dots span::after{top:10px;width:10px;height:0;border-radius:50%;background:rgb(204,204,204);transition:height .3s}
.oc-testi .oc-dots .on span::after{top:0;height:10px}
.oc-btn:focus-visible,.oc-dots button:focus-visible,.gh-toggle:focus-visible{outline:2px solid var(--accent);outline-offset:2px}

/* ---------- legal pages links / content helpers ---------- */
main a:hover{color:var(--accent)}
