/* ==========================================================================
   Hambleton Roofing Ltd - 2026 redesign layer
   Presentation only. Loaded after stylesheet.css. No content is changed by
   this file; it restyles and re-lays the existing markup.
   ========================================================================== */

:root{
    --slate:#1C2024;
    --lead:#39414A;
    --mist:#EBEEF0;
    --paper:#FFFFFF;
    --brick:#A11017;
    --deep:#7E0C12;
    --ink:#565E66;
    --rule:rgba(28,32,36,.16);
    --rule-light:rgba(255,255,255,.18);
    --disp:"Space Grotesk",sans-serif;
    --body:"Manrope",sans-serif;
}

/* --------------------------------------------------------------------------
   1. Shared - the course line marker and the button
   -------------------------------------------------------------------------- */

.global .jp-rule{position:relative;}

.section-b .content-1 h2,
.section-c .content-2 h2,
.section-d .content-1 h2,
.section-e .content-1 h2{
    font-family:var(--disp);
    font-weight:600;
    font-size:42px;
    line-height:1.08;
    letter-spacing:-.02em;
    text-transform:none;
    text-align:left;
    color:var(--slate);
    padding-top:28px;
    padding-bottom:38px;
    position:relative;
    width:100%;
}
.section-b .content-1 h2::before,
.section-c .content-2 h2::before,
.section-d .content-1 h2::before,
.section-e .content-1 h2::before{
    content:"";position:absolute;top:0;left:0;
    width:100%;height:1px;background:var(--rule);
}
.section-b .content-1 h2::after,
.section-c .content-2 h2::after,
.section-d .content-1 h2::after,
.section-e .content-1 h2::after{
    content:"";position:absolute;top:-2px;left:0;
    width:64px;height:5px;background:var(--brick);
}

.global .custom-button .global-btn{
    padding:17px 42px;
    border-radius:0;
    background-color:var(--brick);
    font-family:var(--disp);
    font-weight:500;
    font-size:17px;
    letter-spacing:.01em;
    transition:background-color .35s linear,padding .4s linear;
}
.global .custom-button .global-btn:hover{
    background-color:var(--deep);
    padding:17px 62px 17px 22px;
}
.global .custom-button .global-btn:hover::after{right:30px;}

/* --------------------------------------------------------------------------
   2. Header - slate contact band, brick nav bar
   -------------------------------------------------------------------------- */

.top-section{background-color:var(--slate);}
.top-section::after{
    width:100%;
    background:none;
    clip-path:none;
    top:auto;bottom:0;height:1px;
    background-color:rgba(255,255,255,.12);
}
.top-section .content-1{padding-top:18px;padding-bottom:18px;}
.top-section .content-2{padding-top:26px;padding-bottom:26px;gap:34px;}
.top-section .box i{
    background-color:var(--brick);
    color:#fff;
    width:38px;height:38px;
}
.top-section .box p{font-size:13px;font-weight:600;letter-spacing:.04em;color:rgba(255,255,255,.62);}
.top-section .box a{font-family:var(--disp);font-weight:500;font-size:17px;}

.navbar-section{
    padding-top:0;padding-bottom:0;
    background-color:var(--brick);
    box-shadow:inset 0 -1px 0 rgba(0,0,0,.18);
}
.navbar-section .navbar-nav{justify-content:flex-start;gap:4px;}
.navbar-section .navbar-nav a{
    font-family:var(--disp);
    font-weight:500;
    font-size:15px;
    letter-spacing:.01em;
    padding:19px 20px;
    border-radius:0;
    position:relative;
    color:rgba(255,255,255,.86);
}
.navbar-section .navbar-nav a::after{
    content:"";position:absolute;left:20px;right:20px;bottom:0;
    height:4px;background:#fff;
    transform:scaleX(0);transform-origin:left center;
    transition:transform .3s ease-out;
}
.navbar-section .navbar-nav a:hover{color:#fff;background-color:rgba(0,0,0,.14);}
.navbar-section .navbar-nav a.active{color:#fff;background-color:rgba(0,0,0,.2);}
.navbar-section .navbar-nav a.active::after,
.navbar-section .navbar-nav a:hover::after{transform:scaleX(1);}

/* --------------------------------------------------------------------------
   3. Hero slider - caption moves off centre
   -------------------------------------------------------------------------- */

.slider-section{padding-top:22px;padding-bottom:0;}
.slider-section .carousel-inner{border-radius:4px;}
.slider-section .carousel-inner::after{
    background:linear-gradient(188deg,rgba(21,16,16,0) 14%,rgba(21,16,16,.42) 46%,rgba(18,14,14,.88) 82%,rgb(15,12,12) 100%);
}
.slider-section .caption{
    top:0;bottom:0;
    height:auto;
    align-items:flex-start;
    justify-content:flex-end;
    padding:0 56px 64px 56px;
}
.slider-section h1{
    font-family:var(--disp);
    font-weight:600;
    font-size:48px;
    line-height:1.12;
    letter-spacing:-.025em;
    text-align:left;
    width:56%;
    padding-bottom:34px;
    position:relative;
    text-shadow:0 2px 20px rgba(12,9,9,.55);
}
.slider-section h1::before{
    content:"";position:absolute;top:-30px;left:0;
    width:64px;height:5px;background:var(--brick);
}
.slider-section .circle-text{
    position:absolute;
    top:36px;right:36px;
    margin-bottom:0;
}
.slider-section .carousel-btn{
    width:50px;height:50px;
    border-radius:0;
    border:1px solid rgba(255,255,255,.45);
    color:#fff;
    opacity:.8;
}
.slider-section .btn-box{
    top:auto;bottom:34px;
    left:auto;right:34px;
    width:auto;
    transform:none;
    gap:12px;
    justify-content:flex-end;
}
.slider-section .carousel-btn:hover{background:var(--brick);border-color:var(--brick);opacity:1;}

/* --------------------------------------------------------------------------
   4. Marquee - slate band, brick kept on the icons
   -------------------------------------------------------------------------- */

.marquee{
    background-color:var(--slate);
    padding-top:17px;padding-bottom:17px;
    border-top:5px solid var(--brick);
}
.marquee ul p{
    font-family:var(--disp);
    font-weight:500;
    font-size:26px;
    letter-spacing:.02em;
    color:rgba(255,255,255,.92);
}
.marquee ul img{width:26px;}
.marquee .marquee-content{gap:34px;padding-right:34px;}
.marquee ul,
.marquee ul li{gap:34px;}

/* --------------------------------------------------------------------------
   5. Section A - asymmetric intro
   -------------------------------------------------------------------------- */

.section-a{padding-top:96px;padding-bottom:92px;}
.section-a::after{display:none;}
.section-a .content-1{
    display:grid;
    grid-template-columns:1.12fr .88fr;
    gap:0 72px;
    align-items:start;
}
.section-a .content-1 .part-1{padding-bottom:0;}
.section-a .content-1 .part-1 p{
    font-family:var(--body);
    font-weight:500;
    font-size:26px;
    line-height:1.5;
    letter-spacing:-.01em;
    color:var(--slate);
    text-align:left;
    width:100%;
}
.section-a .content-1 > p{
    font-size:17px;
    line-height:1.85;
    color:var(--ink);
    text-align:left;
    width:100%;
    padding-top:26px;
    position:relative;
}
.section-a .content-1 > p::before{
    content:"";position:absolute;top:0;left:0;
    width:100%;height:1px;background:var(--rule);
}
.section-a .content-1 > p::after{
    content:"";position:absolute;top:-2px;left:0;
    width:64px;height:5px;background:var(--brick);
}
.section-a .content-1 .inner-img{
    display:block;
    float:right;
    margin:6px 0 14px 26px;
    border-radius:4px;
}
.section-a .content-1 .inner-link{
    color:var(--brick);
    font-weight:600;
    border-bottom:1px solid rgba(161,16,23,.32);
}
.section-a .content-1 .inner-link:hover{color:var(--slate);border-bottom-color:var(--slate);text-decoration:none;}

/* --------------------------------------------------------------------------
   6. Section B - services as a staggered grid
   -------------------------------------------------------------------------- */

.section-b{
    padding-top:92px;
    padding-bottom:104px;
    background-color:var(--mist);
}
.section-b .content-1{
    max-width:1140px;
    margin-left:auto;margin-right:auto;
    padding-left:15px;padding-right:15px;
}
.section-b .jp-grid{
    display:grid;
    grid-template-columns:repeat(2,1fr);
    gap:34px 34px;
    padding-bottom:62px;
}
.section-b .jp-grid .item{height:auto;position:relative;}
.section-b .jp-grid .item:nth-child(even){transform:translateY(58px);}
.section-b .jp-grid .item img{
    width:100%;height:auto;
    aspect-ratio:620/399;
    object-fit:cover;
    border-radius:4px 4px 0 0;
}
.section-b .jp-grid .item .inner-box{
    position:relative;
    width:auto;height:auto;
    top:auto;left:auto;right:auto;
    padding:0 26px 0 0;
    margin-top:-66px;
    display:block;
}
.section-b .jp-grid .item .box{
    padding:26px 28px 28px;
    border-radius:0 4px 4px 0;
    box-shadow:0 20px 40px -22px rgba(28,32,36,.5);
    border-left:5px solid var(--brick);
    transition:background-color .35s linear,border-color .35s linear;
}
.section-b .jp-grid .item .box:hover{background-color:var(--slate);border-left-color:#fff;}
.section-b .jp-grid .item .box:hover h3{color:#fff;}
.section-b .jp-grid .item .box:hover p{color:rgba(255,255,255,.76);}
.section-b .jp-grid .item .box:hover i{background-color:#fff;color:var(--slate);}
.section-b .jp-grid .item .header{padding-bottom:14px;align-items:center;}
.section-b .jp-grid .item .header h3{
    font-family:var(--disp);
    font-weight:600;
    font-size:25px;
    letter-spacing:-.015em;
    color:var(--slate);
}
.section-b .jp-grid .item .header i{
    width:42px;height:42px;
    border-radius:0;
    font-size:15px;
}
.section-b .jp-grid .item p{
    font-size:16px;
    letter-spacing:0;
    line-height:1.78;
    color:var(--ink);
}
.section-b .jp-grid .item .inner-link{
    color:var(--brick);
    font-weight:600;
}
.section-b .jp-grid .item .box:hover .inner-link{color:#fff;}
.section-b .jp-grid .item .inner-link:hover{text-decoration:underline;}

/* --------------------------------------------------------------------------
   7. Section C - text first, sticky graphic second
   -------------------------------------------------------------------------- */

.section-c{padding-top:96px;padding-bottom:150px;}
.section-c .row{display:flex;flex-wrap:wrap;}
.section-c .content-1{order:2;padding-top:0;padding-right:15px;padding-left:70px;}
.section-c .content-2{order:1;padding-top:0;}
.section-c .content-1 .box{top:120px;padding-left:40px;}
.section-c .content-2 .sub-content{margin-left:0;margin-right:16px;}
.section-c .content-2 p{
    font-size:17px;
    line-height:1.85;
    letter-spacing:0;
    color:var(--ink);
    padding-bottom:46px;
    max-width:62ch;
}
.section-c .content-2 ul{margin-bottom:46px;gap:26px;}
.section-c .content-2 ul li{padding-left:46px;}
.section-c .content-2 ul h3{
    font-family:var(--disp);
    font-weight:600;
    font-size:22px;
    letter-spacing:-.01em;
    color:var(--slate);
    margin-bottom:8px;
}
.section-c .content-2 ul h3::before{
    content:"";
    font-family:inherit;
    top:11px;left:-46px;
    transform:none;
    width:26px;height:5px;
    background-color:var(--brick);
}
.section-c .content-2 ul p{padding-bottom:0;line-height:1.75;}
.section-c .content-1 .box .experience h3{font-family:var(--disp);letter-spacing:-.03em;}
.section-c .content-1 .box .company h3{font-family:var(--disp);font-weight:600;letter-spacing:-.01em;}

/* --------------------------------------------------------------------------
   8. Section D - gallery mosaic on slate
   -------------------------------------------------------------------------- */

.section-d{
    padding-top:94px;padding-bottom:98px;
    background-color:var(--slate);
}
.section-d .content-1{
    align-items:stretch;
    max-width:1140px;
    margin-left:auto;margin-right:auto;
    padding-left:15px;padding-right:15px;
}
.section-d .content-1 h2{color:#fff;}
.section-d .content-1 h2::before{background:var(--rule-light);}
.section-d .jp-grid{
    display:grid;
    grid-template-columns:repeat(4,1fr);
    grid-auto-rows:172px;
    gap:14px;
    margin-bottom:46px;
}
.section-d .jp-grid .item{overflow:hidden;border-radius:4px;}
.section-d .jp-grid .item img{
    width:100%;height:100%;
    object-fit:cover;
    transition:transform .6s ease-out;
}
.section-d .jp-grid .item:hover img{transform:scale(1.05);}
.section-d .jp-grid .item:nth-child(1){grid-column:span 2;grid-row:span 2;}
.section-d .jp-grid .item:nth-child(6),
.section-d .jp-grid .item:nth-child(7){grid-column:span 2;}
.section-d .content-1 .custom-button{align-self:flex-start;}

/* --------------------------------------------------------------------------
   9. Section E - the one bold moment
   -------------------------------------------------------------------------- */

.section-e{padding-top:110px;padding-bottom:120px;}
.section-e .content-1{align-items:flex-start;}
.section-e .content-1 .box{
    height:520px;
    border-radius:4px;
    padding-left:76px;
    margin-bottom:54px;
}
.section-e .content-1 .box::before{
    background:linear-gradient(90deg,rgb(16,19,22) 0%,rgba(16,19,22,.86) 44%,rgba(16,19,22,.05) 100%);
}
.section-e .content-1 h2{
    color:#fff;
    padding-top:0;
    padding-bottom:22px;
}
.section-e .content-1 h2::before{display:none;}
.section-e .content-1 h2::after{top:-26px;}
.section-e .content-1 p{
    font-size:16px;
    line-height:1.82;
    letter-spacing:0;
    color:rgba(255,255,255,.76);
    width:52%;
    padding-bottom:40px;
}
.section-e .content-1 h3{
    font-family:var(--disp);
    font-weight:500;
    font-size:15px;
    letter-spacing:.08em;
    color:rgba(255,255,255,.6);
    padding-bottom:14px;
}
.section-e .content-1 .mobile{
    background-color:var(--brick);
    padding:16px 30px 16px 20px;
    width:-moz-fit-content;
    width:fit-content;
    transition:background-color .35s linear;
}
.section-e .content-1 .mobile:hover{background-color:var(--deep);}
.section-e .content-1 .mobile i{
    width:44px;height:44px;
    background-color:#fff;
    border:0;
    color:var(--brick);
    margin-right:18px;
}
.section-e .content-1 .mobile a{
    font-family:var(--disp);
    font-weight:600;
    font-size:30px;
    letter-spacing:-.01em;
}
.section-e .content-1 h4{
    font-family:var(--body);
    font-weight:400;
    font-size:19px;
    line-height:1.72;
    letter-spacing:0;
    color:var(--ink);
    text-align:left;
    width:100%;
    max-width:66ch;
    padding-top:26px;
    padding-bottom:30px;
    position:relative;
}
.section-e .content-1 h4::before{
    content:"";position:absolute;top:0;left:0;
    width:100%;max-width:66ch;height:1px;background:var(--rule);
}
.section-e .content-1 h4::after{
    content:"";position:absolute;top:-2px;left:0;
    width:64px;height:5px;background:var(--brick);
}

/* --------------------------------------------------------------------------
   10. Footer - flat slate, brick top bar
   -------------------------------------------------------------------------- */

.footer-section{
    background:var(--slate);
    border-top-left-radius:0;
    border-top-right-radius:0;
    border-top:6px solid var(--brick);
    padding-top:76px;
}
.footer-section h4{
    font-family:var(--disp);
    font-weight:600;
    font-size:18px;
    letter-spacing:-.005em;
    color:#fff;
    padding-bottom:34px;
}
.footer-section .content-1{padding-bottom:66px;}
.footer-section .content-2 .box i{
    background-color:var(--brick);
    color:#fff;
    border-radius:0;
    width:38px;height:38px;
}
.footer-section .content-2 .box h5{font-family:var(--disp);font-weight:500;font-size:16px;}
.footer-section .content-2 .box p,
.footer-section .content-2 .box a,
.footer-section .content-3 ul a{font-weight:300;color:rgba(255,255,255,.76);}
.footer-section .content-3 ul li::before{
    content:"";
    font-family:inherit;
    width:7px;height:7px;
    background-color:var(--brick);
    top:10px;
}
.footer-section .content-3 ul li:has(a.active)::before,
.footer-section .content-3 ul li:has(a:hover)::before{background-color:#fff;}
.footer-section .content-3 ul a:hover,
.footer-section .content-2 .box a:hover{color:#fff;}
.footer-section .content-4 p{font-weight:400;font-size:16px;color:rgba(255,255,255,.76);padding-bottom:30px;}
.footer-section .content-6{margin-top:18px;}
.footer-section .content-6::before{background:rgba(255,255,255,.14);}
.footer-section .content-6 p{font-family:var(--body);font-size:14px;color:rgba(255,255,255,.6);}

/* --------------------------------------------------------------------------
   11. Inner pages
   -------------------------------------------------------------------------- */

.layout-full{padding:0 0 86px 0;}
.layout-full h1{
    font-family:var(--disp);
    font-weight:600;
    font-size:44px;
    line-height:1.1;
    letter-spacing:-.025em;
    color:var(--slate);
    text-shadow:none;
    display:block;
    padding-top:34px;
    margin-top:56px;
    margin-bottom:44px;
    position:relative;
    max-width:24ch;
}
.layout-full h1::before{
    content:"";position:absolute;top:0;left:0;
    width:100%;height:1px;background:var(--rule);
}
.layout-full h1::after{
    content:"";position:absolute;top:-2px;left:0;
    width:64px;height:5px;background:var(--brick);
}
.layout-full h2{
    font-family:var(--disp);
    font-weight:600;
    font-size:30px;
    line-height:1.2;
    letter-spacing:-.02em;
    color:var(--slate);
    padding-top:26px;
    padding-bottom:18px;
}
.layout-full h3{
    font-family:var(--disp);
    font-weight:600;
    font-size:23px;
    line-height:1.25;
    letter-spacing:-.015em;
    color:var(--slate);
    padding-top:18px;
    padding-bottom:12px;
}
.layout-full h4{
    font-family:var(--disp);
    font-weight:500;
    font-size:21px;
    line-height:1.35;
    letter-spacing:-.01em;
    color:var(--ink);
}
.layout-full p{
    font-family:var(--body);
    font-size:17px;
    font-weight:400;
    line-height:1.88;
    color:var(--ink);
    padding-bottom:20px;
    max-width:70ch;
}
.layout-full p a,
.layout-full ul li a,
.layout-full ol li a{
    color:var(--brick);
    font-weight:600;
    border-bottom:1px solid rgba(161,16,23,.3);
    transition:color .3s linear,border-color .3s linear;
}
.layout-full p a:hover,
.layout-full ul li a:hover,
.layout-full ol li a:hover{color:var(--slate);border-bottom-color:var(--slate);text-decoration:none;}
.layout-full p span{color:var(--brick);}
.layout-full ul{padding-left:0;list-style:none;}
.layout-full ul li{
    font-family:var(--body);
    font-size:17px;
    line-height:1.9;
    color:var(--ink);
    padding-left:26px;
    position:relative;
}
.layout-full ul li::before{
    content:"";position:absolute;left:0;top:14px;
    width:9px;height:9px;background-color:var(--brick);
}
.layout-full ol li{
    font-family:var(--body);
    font-size:17px;
    line-height:1.88;
    color:var(--ink);
}
.layout-full .row{margin-bottom:34px;}
.layout-full .row img{
    border-radius:4px;
    box-shadow:0 26px 50px -24px rgba(28,32,36,.45);
    padding:0;
    margin:12px 0;
}
.layout-full .button{padding-bottom:26px;}
.layout-full .button a{
    font-family:var(--disp);
    font-size:17px;
    font-weight:500;
    color:#fff;
    background-color:var(--brick);
    border:0;
    border-radius:0;
    padding:16px 34px;
    width:-moz-fit-content;
    width:fit-content;
    display:inline-flex;
    align-items:center;
    transition:background-color .35s linear;
}
.layout-full .button a:hover{background-color:var(--deep);color:#fff;}
.layout-full .button a i{
    rotate:-45deg;
    color:#fff;
    background-color:rgba(255,255,255,.16);
    border-radius:0;
    padding:9px 10px;
    margin-right:12px;
}
.layout-full .button a:hover i{background-color:rgba(255,255,255,.26);color:#fff;}

/* blog list */
.layout-full .blog .blog-post{
    padding-top:30px;
    padding-bottom:34px;
    border-top:1px solid var(--rule);
    position:relative;
}
.layout-full .blog .blog-post::after{
    content:"";position:absolute;top:-2px;left:0;
    width:48px;height:5px;background:var(--brick);
}
.layout-full .blog .blog-meta{
    display:flex;gap:22px;
    font-family:var(--body);font-size:14px;color:var(--ink);
    padding-bottom:10px;
}
.layout-full .blog .blog-post h2{padding-top:0;padding-bottom:12px;}
.layout-full .blog .blog-post h2 a{color:var(--slate);border-bottom:0;}
.layout-full .blog .blog-post h2 a:hover{color:var(--brick);}
.layout-full .blog .read-more-btn{
    display:inline-block;
    font-family:var(--disp);font-weight:500;font-size:16px;
    color:var(--brick);
    border-bottom:1px solid rgba(161,16,23,.3);
}
.layout-full .blog .read-more-btn:hover{color:var(--slate);border-bottom-color:var(--slate);text-decoration:none;}

/* --------------------------------------------------------------------------
   12. Higher-design pass - full-bleed hero, sticky nav, finer detail
   -------------------------------------------------------------------------- */

/* 12.1 Full-bleed hero -------------------------------------------------- */
.slider-section{padding-top:0;padding-bottom:0;}
.slider-section .container{max-width:100%;padding-left:0;padding-right:0;}
.slider-section .row{margin-left:0;margin-right:0;}
.slider-section .content-1{padding-left:0;padding-right:0;}
.slider-section .main-slider{position:relative;}
.slider-section .carousel-inner{
    border-radius:0;
    height:84vh;
    min-height:540px;
    max-height:880px;
}
.slider-section .carousel-item{height:100%;}
.slider-section .carousel-item img{
    width:100%;
    height:100%;
    -o-object-fit:cover;
    object-fit:cover;
}
@keyframes jpKenBurns{
    from{transform:scale(1.001);}
    to{transform:scale(1.085);}
}
.slider-section .carousel-item.active img{
    animation:jpKenBurns 11s ease-out forwards;
    will-change:transform;
}
.slider-section .carousel-inner::after{
    background:linear-gradient(100deg,rgba(10,8,8,.9) 0%,rgba(10,8,8,.6) 36%,rgba(10,8,8,.1) 68%,rgba(10,8,8,0) 100%),
                linear-gradient(180deg,rgba(10,8,8,.35) 0%,rgba(10,8,8,0) 30%,rgba(10,8,8,0) 52%,rgba(10,8,8,.72) 100%);
}
.slider-section .caption{
    padding-left:max(24px,calc((100% - 1140px) / 2));
    padding-right:max(24px,calc((100% - 1140px) / 2));
    padding-bottom:86px;
}
.slider-section h1{
    font-size:60px;
    line-height:1.06;
    letter-spacing:-.03em;
    width:auto;
    max-width:740px;
    padding-bottom:38px;
}
.slider-section h1::before{top:-34px;width:72px;}
.slider-section .circle-text{top:46px;bottom:auto;right:max(24px,calc((100% - 1140px) / 2));}
.slider-section .btn-box{
    bottom:92px;
    right:max(24px,calc((100% - 1140px) / 2));
}
.slider-section .carousel-btn{
    border-color:rgba(255,255,255,.35);
    -webkit-backdrop-filter:blur(6px);
    backdrop-filter:blur(6px);
    background:rgba(255,255,255,.06);
}

/* inner-page banner, same language at a calmer height */
.slider-section .carousel-inner-layout{
    height:46vh;
    min-height:320px;
    max-height:520px;
}

/* 12.2 Sticky nav ------------------------------------------------------- */
.navbar-section.jp-fixed{
    position:fixed;
    top:0;left:0;right:0;
    z-index:1030;
    box-shadow:0 10px 30px -12px rgba(0,0,0,.55);
}
.navbar-section.jp-fixed .navbar-nav a{padding-top:15px;padding-bottom:15px;}

/* 12.3 Larger, tighter display type ------------------------------------- */
.section-b .content-1 h2,
.section-c .content-2 h2,
.section-d .content-1 h2,
.section-e .content-1 h2{
    font-size:48px;
    letter-spacing:-.028em;
    padding-bottom:44px;
}
.section-b .content-1 h2::after,
.section-c .content-2 h2::after,
.section-d .content-1 h2::after,
.section-e .content-1 h2::after{width:72px;}
.layout-full h1{font-size:48px;}
.layout-full h1::after{width:72px;}

/* 12.4 Buttons - fill slides in, arrow always present ------------------- */
.global .custom-button .global-btn{
    padding:18px 56px 18px 32px;
    background-color:var(--brick);
    background-image:linear-gradient(90deg,var(--slate) 0 50%,var(--brick) 50% 100%);
    background-size:200% 100%;
    background-position:100% 0;
    transition:background-position .5s cubic-bezier(.4,0,.2,1);
}
.global .custom-button .global-btn::after{opacity:.55;right:30px;transition:opacity .35s linear,right .35s cubic-bezier(.4,0,.2,1);}
.global .custom-button .global-btn:hover{
    padding:18px 56px 18px 32px;
    background-color:var(--brick);
    background-position:0 0;
}
.global .custom-button .global-btn:hover::after{opacity:1;right:23px;}

/* 12.5 Service cards lift ----------------------------------------------- */
.section-b .jp-grid .item .box{
    transition:transform .45s cubic-bezier(.2,.6,.2,1),box-shadow .45s cubic-bezier(.2,.6,.2,1),background-color .35s linear;
}
.section-b .jp-grid .item:hover .box{
    transform:translateY(-8px);
    box-shadow:0 34px 60px -28px rgba(28,32,36,.62);
}

/* 12.6 Gallery tiles ----------------------------------------------------- */
.section-d .jp-grid .item{position:relative;}
.section-d .jp-grid .item::after{
    content:"";
    position:absolute;inset:0;
    background:linear-gradient(180deg,rgba(161,16,23,0) 42%,rgba(161,16,23,.6) 100%);
    opacity:0;
    transition:opacity .45s linear;
    pointer-events:none;
}
.section-d .jp-grid .item:hover::after{opacity:1;}

/* 12.7 Grain on the dark bands ------------------------------------------ */
.marquee,
.section-d,
.footer-section{
    background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.04'/%3E%3C/svg%3E");
    background-repeat:repeat;
}

/* 12.8 Marquee, finer ---------------------------------------------------- */
.marquee ul p{font-size:22px;letter-spacing:.07em;}
.marquee ul img{width:20px;}

@media (prefers-reduced-motion:reduce){
    .slider-section .carousel-item.active img{animation:none;}
    .section-b .jp-grid .item:hover .box{transform:none;}
}

/* --------------------------------------------------------------------------
   15. About panel and footer - third pass
   -------------------------------------------------------------------------- */

/* 15.1 About / Why choose us - the composite becomes a dark fact panel ---- */
.section-c{padding-bottom:130px;}
.section-c .content-1{padding-left:46px;}
.section-c .content-1 .box{
    position:sticky;
    top:110px;
    display:flex;
    flex-direction:column;
    gap:0;
    min-height:600px;
    padding:44px 34px 40px 38px;
    background-color:var(--slate);
    background-image:url(../images/section-c-1.webp);
    background-repeat:no-repeat;
    background-position:right -38px bottom -8px;
    background-size:auto 46%;
    border-radius:4px;
    overflow:hidden;
}
.section-c .content-1 .box .part-1{
    position:relative;
    z-index:2;
    width:100%;
    max-width:58%;
    padding-top:0;
    gap:0;
}
.section-c .content-1 .box .part-2{
    position:relative;
    z-index:2;
    width:100%;
    max-width:56%;
    margin-top:auto;
    display:block;
}

/* the 18+ figure */
.section-c .content-1 .box .experience{
    padding-left:0;
    padding-top:20px;
    padding-bottom:28px;
}
.section-c .content-1 .box .experience::before{
    top:0;
    left:0;
    transform:none;
    width:52px;
    height:5px;
    clip-path:none;
}
.section-c .content-1 .box .experience h3{
    font-size:76px;
    font-weight:700;
    letter-spacing:-.04em;
    color:#fff;
}
.section-c .content-1 .box .experience p{
    font-size:14px;
    line-height:1.5;
    color:rgba(255,255,255,.58);
    padding-top:6px;
}
.section-c .content-1 .box .experience p span{
    font-size:16px;
    font-weight:500;
    color:rgba(255,255,255,.82);
}

/* the company block - plain type, no stacked triangles */
.section-c .content-1 .box .company{
    height:auto;
    background-color:transparent;
    padding-top:26px;
    border-top:1px solid rgba(255,255,255,.14);
}
.section-c .content-1 .box .company::before,
.section-c .content-1 .box .company::after{display:none;}
.section-c .content-1 .box .company h3{
    font-size:25px;
    letter-spacing:-.015em;
    line-height:1.25;
    color:#fff;
    text-shadow:none;
    padding:0;
}
.section-c .content-1 .box .company h4{
    font-family:var(--body);
    font-weight:400;
    font-size:16px;
    line-height:1.5;
    color:rgba(255,255,255,.6);
    background:none;
    padding:8px 0 0 0;
}

/* service areas */
.section-c .content-1 .box .service{
    padding-left:0;
    padding-top:26px;
    border-top:1px solid rgba(255,255,255,.14);
}
.section-c .content-1 .box .service::before{
    top:0;
    left:0;
    width:52px;
    height:5px;
    clip-path:none;
}
.section-c .content-1 .box .service h3{
    font-family:var(--disp);
    font-weight:600;
    font-size:20px;
    letter-spacing:-.01em;
    color:#fff;
    margin-bottom:10px;
}
.section-c .content-1 .box .service p{
    font-size:15px;
    letter-spacing:0;
    line-height:1.65;
    color:rgba(255,255,255,.62);
    font-weight:400;
}

/* 15.2 Footer - logo on its own rail, column markers, framed map -------- */
.footer-section{padding-top:0;}
.footer-section .content-1{
    padding-top:62px;
    padding-bottom:40px;
    position:relative;
}
.footer-section .content-1 figure{
    width:286px;
    margin:0;
}
.footer-section .content-1::after{
    content:"";
    position:absolute;
    left:15px;right:15px;bottom:0;
    height:1px;
    background:rgba(255,255,255,.13);
}
.footer-section .content-2,
.footer-section .content-3,
.footer-section .content-4,
.footer-section .content-5{padding-top:48px;}
.footer-section h4{
    font-size:17px;
    letter-spacing:-.005em;
    padding-top:20px;
    padding-bottom:28px;
    position:relative;
}
.footer-section h4::before{
    content:"";
    position:absolute;
    top:0;left:0;
    width:38px;height:4px;
    background:var(--brick);
}
.footer-section .content-5 .map{
    height:258px;
    border-radius:4px;
    overflow:hidden;
    border:1px solid rgba(255,255,255,.14);
    margin-bottom:34px;
}
.footer-section .content-5::after{opacity:.45;}
.footer-section .content-4 p:last-of-type{padding-bottom:40px;}
.footer-section .content-6{margin-top:30px;padding-top:22px;padding-bottom:22px;}

/* --------------------------------------------------------------------------
   13. Responsive
   -------------------------------------------------------------------------- */

@media screen and (min-width:992px) and (max-width:1199px){
    .slider-section h1{font-size:42px;width:76%;}
    .section-b .content-1 h2,.section-c .content-2 h2,
    .section-d .content-1 h2,.section-e .content-1 h2{font-size:34px;}
    .section-a .content-1 .part-1 p{font-size:22px;}
    .section-c .content-1{padding-left:20px;}
    .section-d .jp-grid{grid-auto-rows:140px;}
    .layout-full h1{font-size:38px;}
}

@media screen and (min-width:768px) and (max-width:991px){
    .slider-section .caption{padding:0 32px 40px 32px;}
    .slider-section h1{font-size:34px;width:92%;}
    .slider-section .circle-text{top:22px;right:22px;width:84px;height:84px;}
    .marquee ul p{font-size:20px;}
    .section-a{padding-top:64px;padding-bottom:64px;}
    .section-a .content-1{grid-template-columns:1fr;gap:34px;}
    .section-a .content-1 .part-1 p{font-size:21px;}
    .section-b,.section-c,.section-d,.section-e{padding-top:64px;padding-bottom:70px;}
    .section-b .content-1 h2,.section-c .content-2 h2,
    .section-d .content-1 h2,.section-e .content-1 h2{font-size:30px;padding-bottom:28px;}
    .section-b .jp-grid{grid-template-columns:1fr;gap:26px;padding-bottom:0;}
    .section-b .jp-grid .item:nth-child(even){transform:none;}
    .section-c .content-1{order:1;padding-left:15px;padding-top:40px;}
    .section-c .content-2{order:2;padding-top:48px;}
    .section-c .content-1 .box{position:static;}
    .section-d .jp-grid{grid-template-columns:repeat(2,1fr);grid-auto-rows:168px;}
    .section-d .jp-grid .item:nth-child(1),
    .section-d .jp-grid .item:nth-child(6),
    .section-d .jp-grid .item:nth-child(7){grid-column:span 2;grid-row:span 1;}
    .section-e .content-1 .box{height:auto;padding:54px 40px;}
    .section-e .content-1 p{width:100%;}
    .layout-full h1{font-size:33px;margin-top:40px;}
    .layout-full h2{font-size:26px;}
    .layout-full h3{font-size:21px;}
}

@media screen and (max-width:767px){
    .top-section{text-align:left;}
    .top-section .content-1{padding-top:14px;padding-bottom:10px;}
    .top-section .content-2{padding-top:0;padding-bottom:16px;gap:14px;}
    .navbar-section .navbar-nav a{padding:13px 14px;}
    .navbar-section .navbar-nav a::after{left:14px;right:14px;}
    .slider-section{padding-top:14px;}
    .slider-section .caption{padding:0 20px 26px 20px;}
    .slider-section h1{font-size:25px;width:100%;padding-bottom:22px;}
    .slider-section h1::before{display:none;}
    .container-fluid.global.top-section .d-flex.d-lg-none::after{background-image:none;background-color:transparent;}
    .slider-section .circle-text{position:relative;top:auto;right:auto;bottom:auto;left:auto;width:72px;height:72px;margin:0 0 12px 0;}
    .slider-section .btn-box{top:14px;right:14px;bottom:auto;left:auto;}
    .slider-section .carousel-btn{width:40px;height:40px;font-size:15px;}
    .container-fluid.global.top-section::after{background:rgba(255,255,255,.1);clip-path:none;top:auto;bottom:0;height:1px;width:100%;}
    .slider-section .circle-text .icon{width:24px;}
    .marquee{border-top-width:4px;}
    .marquee ul p{font-size:17px;}
    .marquee ul img{width:18px;}
    .marquee .marquee-content,.marquee ul,.marquee ul li{gap:20px;}
    .section-a{padding-top:46px;padding-bottom:46px;}
    .section-a .content-1{grid-template-columns:1fr;gap:26px;}
    .section-a .content-1 .part-1 p{font-size:19px;line-height:1.58;}
    .section-a .content-1 .inner-img{float:none;display:block;margin:14px 0;width:110px;}
    .section-a .content-1 > p{font-size:16px;}
    .section-b,.section-c,.section-d,.section-e{padding-top:48px;padding-bottom:52px;}
    .section-b .content-1 h2,.section-c .content-2 h2,
    .section-d .content-1 h2,.section-e .content-1 h2{
        font-size:25px;padding-top:22px;padding-bottom:24px;
    }
    .section-b .content-1 h2::after,.section-c .content-2 h2::after,
    .section-d .content-1 h2::after,.section-e .content-1 h2::after{width:48px;height:4px;}
    .section-b .jp-grid{grid-template-columns:1fr;gap:22px;padding-bottom:0;}
    .section-b .jp-grid .item:nth-child(even){transform:none;}
    .section-b .jp-grid .item .inner-box{padding-right:16px;margin-top:-44px;}
    .section-b .jp-grid .item .box{padding:20px 20px 22px;}
    .section-b .jp-grid .item .header h3{font-size:21px;}
    .section-c{padding-bottom:52px;}
    .section-c .content-1{order:1;padding-left:15px;padding-top:0;padding-bottom:34px;}
    .section-c .content-2{order:2;padding-top:0;}
    .section-c .content-1 .box{position:static;padding-left:18px;}
    .section-c .content-2 p{padding-bottom:30px;font-size:16px;}
    .section-c .content-2 ul li{padding-left:34px;}
    .section-c .content-2 ul h3{font-size:19px;}
    .section-c .content-2 ul h3::before{left:-34px;width:20px;height:4px;top:9px;}
    .section-d .jp-grid{grid-template-columns:repeat(2,1fr);grid-auto-rows:116px;gap:10px;}
    .section-d .jp-grid .item:nth-child(1),
    .section-d .jp-grid .item:nth-child(6),
    .section-d .jp-grid .item:nth-child(7){grid-column:span 2;grid-row:span 1;}
    .section-e .content-1 .box{height:auto;padding:38px 22px;margin-bottom:34px;}
    .section-e .content-1 p{width:100%;font-size:15px;padding-bottom:28px;}
    .section-e .content-1 .mobile{padding:12px 18px 12px 14px;}
    .section-e .content-1 .mobile i{width:38px;height:38px;margin-right:12px;}
    .section-e .content-1 .mobile a{font-size:22px;}
    .section-e .content-1 h4{font-size:17px;padding-top:22px;}
    .footer-section{padding-top:48px;border-top-width:5px;}
    .footer-section h4{padding-bottom:22px;}
    .footer-section .content-1{padding-bottom:36px;}
    .layout-full{padding-bottom:54px;}
    .layout-full h1{font-size:27px;margin-top:30px;padding-top:24px;margin-bottom:28px;max-width:none;}
    .layout-full h1::after{width:48px;height:4px;}
    .layout-full h2{font-size:23px;}
    .layout-full h3{font-size:20px;}
    .layout-full h4{font-size:18px;}
    .layout-full p,.layout-full ul li,.layout-full ol li{font-size:16px;}
    .global .custom-button .global-btn{padding:15px 30px;font-size:16px;}
    .global .custom-button .global-btn:hover{padding:15px 46px 15px 18px;}
}

@media screen and (max-width:340px){
    .slider-section h1{font-size:21px;}
    .marquee ul p{font-size:15px;}
    .section-e .content-1 .mobile a{font-size:19px;}
}


/* --------------------------------------------------------------------------
   14. Responsive - higher-design pass
   -------------------------------------------------------------------------- */

@media screen and (min-width:992px) and (max-width:1199px){
    .slider-section h1{font-size:46px;max-width:620px;}
    .section-b .content-1 h2,.section-c .content-2 h2,
    .section-d .content-1 h2,.section-e .content-1 h2{font-size:38px;}
    .layout-full h1{font-size:40px;}
}

@media screen and (min-width:768px) and (max-width:991px){
    .slider-section .carousel-inner{height:62vh !important;min-height:420px;}
    .slider-section .carousel-inner-layout{height:36vh !important;min-height:260px;}
    .slider-section .caption{padding-left:28px;padding-right:28px;padding-bottom:52px;}
    .slider-section h1{font-size:36px;max-width:520px;padding-bottom:28px;}
    .slider-section h1::before{top:-24px;width:56px;}
    .slider-section .circle-text{bottom:auto;top:26px;right:26px;}
    .slider-section .btn-box{bottom:54px;right:28px;}
    .section-b .content-1 h2,.section-c .content-2 h2,
    .section-d .content-1 h2,.section-e .content-1 h2{font-size:32px;padding-bottom:30px;}
    .layout-full h1{font-size:34px;}
    .marquee ul p{font-size:19px;}
}

@media screen and (max-width:767px){
    .slider-section .carousel-inner{height:auto !important;min-height:0;max-height:none !important;}
    .slider-section .carousel-item{height:auto;}
    .slider-section .carousel-item img{height:auto;}
    .slider-section .carousel-item.active img{animation:none;}
    .slider-section .caption{padding-left:20px;padding-right:20px;padding-bottom:26px;}
    .slider-section h1{font-size:25px;max-width:none;padding-bottom:22px;}
    .slider-section .circle-text{bottom:auto;top:auto;right:auto;}
    .slider-section .btn-box{bottom:auto;}
    .section-b .content-1 h2,.section-c .content-2 h2,
    .section-d .content-1 h2,.section-e .content-1 h2{font-size:26px;padding-bottom:24px;}
    .section-b .content-1 h2::after,.section-c .content-2 h2::after,
    .section-d .content-1 h2::after,.section-e .content-1 h2::after{width:52px;}
    .layout-full h1{font-size:28px;}
    .layout-full h1::after{width:52px;}
    .global .custom-button .global-btn,
    .global .custom-button .global-btn:hover{padding:15px 52px 15px 24px;font-size:16px;}
    .global .custom-button .global-btn::after{right:26px;}
    .global .custom-button .global-btn:hover::after{right:21px;}
    .marquee ul p{font-size:16px;}
    .marquee ul img{width:16px;}
    .section-b .jp-grid .item:hover .box{transform:none;}
}

@media screen and (min-width:992px) and (max-width:1199px){
    .section-c .content-1{padding-left:24px;}
    .section-c .content-1 .box{min-height:540px;background-size:auto 56%;padding:34px 26px 32px 28px;}
    .section-c .content-1 .box .experience h3{font-size:60px;}
    .section-c .content-1 .box .company h3{font-size:21px;}
    .footer-section .content-1 figure{width:240px;}
}

@media screen and (min-width:768px) and (max-width:991px){
    .section-c .content-1{padding-left:15px;}
    .section-c .content-1 .box{min-height:0;background-size:auto 48%;background-position:right -18px bottom -4px;padding:32px 24px 30px 26px;}
    .section-c .content-1 .box .part-1,
    .section-c .content-1 .box .part-2{max-width:66%;}
    .section-c .content-1 .box .part-2{margin-top:0;}
    .section-c .content-1 .box .experience h3{font-size:56px;}
    .section-c .content-1 .box .company h3{font-size:21px;}
    .footer-section .content-1{padding-top:44px;padding-bottom:30px;}
    .footer-section .content-1 figure{width:230px;}
    .footer-section .content-2,
    .footer-section .content-3,
    .footer-section .content-4,
    .footer-section .content-5{padding-top:36px;}
}

@media screen and (max-width:767px){
    .section-c .content-1{padding-left:15px;}
    .section-c .content-1 .box{
        min-height:0;
        padding:28px 20px 26px 22px;
        background-size:auto 40%;
        background-position:right -14px bottom -4px;
    }
    .section-c .content-1 .box .part-1,
    .section-c .content-1 .box .part-2{max-width:72%;}
    .section-c .content-1 .box .part-2{margin-top:0;}
    .section-c .content-1 .box .experience h3{font-size:50px;}
    .section-c .content-1 .box .experience{padding-bottom:22px;}
    .section-c .content-1 .box .company h3{font-size:19px;}
    .section-c .content-1 .box .company,
    .section-c .content-1 .box .service{padding-top:20px;}
    .footer-section .content-1{padding-top:36px;padding-bottom:26px;}
    .footer-section .content-1 figure{width:210px;}
    .footer-section .content-2,
    .footer-section .content-3,
    .footer-section .content-4,
    .footer-section .content-5{padding-top:30px;}
    .footer-section h4{font-size:16px;padding-bottom:20px;}
    .footer-section .content-5 .map{height:220px;}
}


/* --------------------------------------------------------------------------
   16. Fixes - hidden <br> tags were joining words together
   -------------------------------------------------------------------------- */

@media screen and (max-width:767px){
    /* the cut-out roofer crowds the text at phone width - text gets the panel */
    .section-c .content-1 .box{
        background-image:none;
        padding:30px 22px 28px 22px;
    }
    .section-c .content-1 .box .part-1,
    .section-c .content-1 .box .part-2{max-width:100%;}
    /* stylesheet.css hides these line breaks, which runs the words together
       ("customersthroughout", "York,and", "ExpertRoofingCompany") */
    .section-c .content-1 .box .company h3 br,
    .section-c .content-1 .box .company h4 br,
    .section-c .content-1 .box .service p br{display:revert !important;}
    .section-c .content-1 .box .service{margin-top:18px;}
}

@media screen and (min-width:992px) and (max-width:1199px){
    .section-c .content-1 .box .service p br{display:revert !important;}
}

@media screen and (min-width:1280px) and (max-width:1365px){
    .section-a .content-1 .part-1 p br{display:revert !important;}
}


/* --------------------------------------------------------------------------
   17. Alignment and visibility fixes
   -------------------------------------------------------------------------- */

/* the site container is 1550px wide - the full-width sections were capped at
   1140px, which left them narrower than every other section */
.section-b .content-1,
.section-d .content-1{max-width:1550px;}

.slider-section .caption{
    padding-left:max(24px,calc((100% - 1520px) / 2));
    padding-right:max(24px,calc((100% - 1520px) / 2));
}
.slider-section .circle-text{right:max(24px,calc((100% - 1520px) / 2));}
.slider-section .btn-box{right:max(24px,calc((100% - 1520px) / 2));}

/* inner pages - headings and copy use the whole column, no dead space right */
.layout-full h1{max-width:none;}
.layout-full p{max-width:none;}

/* blog list - Read More was brand red text sitting on the red pill */
.layout-full .blog .read-more-btn{
    color:#fff;
    background-color:var(--brick);
    border-radius:0;
    border-bottom:0;
}
.layout-full .blog .read-more-btn:hover{
    color:#fff;
    background-color:var(--slate);
    border-bottom-color:transparent;
}


/* --------------------------------------------------------------------------
   18. Logo legibility and a true full-bleed slider
   -------------------------------------------------------------------------- */

/* The logo is drawn for light backgrounds - red wordmark plus a dark
   strapline - so the contact band goes light and the logo reads properly.
   The red nav bar below keeps the brand colour in the header. */
.top-section{background-color:var(--paper);}
.container-fluid.global.top-section::after{background:rgba(28,32,36,.14);}
.top-section .content-1 img{width:auto;max-width:100%;}
.top-section .box p{color:var(--ink);}
.top-section .box a{color:var(--slate);}
.top-section .box a::before{background:var(--slate);}
.top-section .box i{background-color:var(--brick);color:#fff;}

/* .container-fluid carries 15px of Bootstrap side padding, which was keeping
   the hero and the inner banners 15px off each edge */
.slider-section{padding-left:0;padding-right:0;}


/* --------------------------------------------------------------------------
   19. Blog post page and testimonials
   -------------------------------------------------------------------------- */

/* 19.1 Blog post - a centred reading column ----------------------------- */
main.container.my-5{max-width:910px;}
main.container article h1{
    font-family:var(--disp);
    font-weight:600;
    font-size:44px;
    line-height:1.1;
    letter-spacing:-.025em;
    color:var(--slate);
    padding-top:30px;
    margin:0 0 18px 0;
    position:relative;
}
main.container article h1::before{
    content:"";position:absolute;top:0;left:0;
    width:100%;height:1px;background:var(--rule);
}
main.container article h1::after{
    content:"";position:absolute;top:-2px;left:0;
    width:64px;height:5px;background:var(--brick);
}
main.container article > p{
    font-family:var(--body);
    font-size:14px;
    letter-spacing:.02em;
    color:var(--ink);
    margin:0 0 38px 0;
    padding:0 0 28px 0;
    border-bottom:1px solid var(--rule);
}
.post-content p{
    font-family:var(--body);
    font-size:17.5px;
    line-height:1.9;
    color:var(--ink);
    margin:0;
    padding-bottom:22px;
}
.post-content h2,
.post-content h3,
.post-content h4{
    font-family:var(--disp);
    font-weight:600;
    letter-spacing:-.02em;
    color:var(--slate);
}
.post-content h2{font-size:30px;padding:26px 0 14px;}
.post-content h3{font-size:24px;padding:24px 0 12px;}
.post-content h4{font-size:20px;padding:20px 0 10px;}
.post-content ul{padding-left:0;list-style:none;margin:0 0 22px 0;}
.post-content ul li{
    font-family:var(--body);
    font-size:17.5px;
    line-height:1.9;
    color:var(--ink);
    padding-left:26px;
    position:relative;
}
.post-content ul li::before{
    content:"";position:absolute;left:0;top:14px;
    width:9px;height:9px;background:var(--brick);
}
.post-content ol{padding-left:22px;margin:0 0 22px 0;}
.post-content ol li{
    font-family:var(--body);
    font-size:17.5px;
    line-height:1.9;
    color:var(--ink);
}
.post-content a{
    color:var(--brick);
    font-weight:600;
    border-bottom:1px solid rgba(161,16,23,.3);
    transition:color .3s linear,border-color .3s linear;
}
.post-content a:hover{color:var(--slate);border-bottom-color:var(--slate);text-decoration:none;}
.post-content strong{color:var(--slate);}
.post-content img{max-width:100%;height:auto;border-radius:4px;margin:16px 0;}
main.container > a{
    display:inline-block;
    font-family:var(--disp);
    font-weight:500;
    font-size:16px;
    color:#fff;
    background-color:var(--brick);
    padding:15px 34px;
    margin-top:16px;
    transition:background-color .35s linear;
}
main.container > a:hover{background-color:var(--slate);color:#fff;text-decoration:none;}

/* 19.2 Testimonials - quote cards instead of a long stack --------------- */
.layout-full .testimonials > div{
    display:grid;
    grid-template-columns:repeat(2,1fr);
    gap:24px;
    align-items:start;
}
.layout-full .testimonials > div > p{grid-column:1 / -1;}
.layout-full .testimonials blockquote{
    margin:0;
    padding:30px 32px 32px;
    background:var(--paper);
    border:1px solid rgba(28,32,36,.1);
    border-left:5px solid var(--brick);
    box-shadow:0 18px 40px -26px rgba(28,32,36,.35);
}
.layout-full .testimonials blockquote h3{
    font-family:var(--disp);
    font-weight:600;
    font-size:20px;
    line-height:1.35;
    color:var(--slate);
    padding:0 0 12px 0;
}
.layout-full .testimonials blockquote img{
    max-width:124px;
    margin:0 0 14px 0 !important;
    padding:0 !important;
}
.layout-full .testimonials blockquote p{
    font-size:16px;
    line-height:1.8;
    color:var(--ink);
    padding-bottom:0;
}

@media screen and (max-width:991px){
    .layout-full .testimonials > div{grid-template-columns:1fr;}
}

@media screen and (max-width:767px){
    main.container article h1{font-size:28px;padding-top:24px;}
    main.container article h1::after{width:52px;height:4px;}
    main.container article > p{margin-bottom:26px;padding-bottom:20px;}
    .post-content p,.post-content ul li,.post-content ol li{font-size:16px;}
    .post-content h2{font-size:23px;}
    .post-content h3{font-size:20px;}
    .post-content h4{font-size:18px;}
    main.container > a{padding:14px 26px;font-size:15px;}
    .layout-full .testimonials blockquote{padding:22px 20px 24px;}
    .layout-full .testimonials blockquote h3{font-size:18px;}
}


/* --------------------------------------------------------------------------
   20. Footer watermark - footer-hr.webp is dark red at ~30% alpha, which
   disappears against the slate footer. Rendered light instead so it reads
   as a watermark.
   -------------------------------------------------------------------------- */
.footer-section .content-5::after{
    opacity:1;
    -webkit-filter:brightness(0) invert(1);
    filter:brightness(0) invert(1);
    width:208px;
    height:150px;
    right:15px;
    bottom:0;
}

@media screen and (max-width:767px){
    .footer-section .content-5::after{width:140px;height:101px;}
}


/* --------------------------------------------------------------------------
   21. Split hero, nav call-to-action, softer surfaces
   -------------------------------------------------------------------------- */

/* 21.1 Contact Us becomes the header call to action --------------------- */
.navbar-section .navbar-nav li:last-child{margin-left:auto;}
.navbar-section .navbar-nav li:last-child a{
    background-color:#fff;
    color:var(--brick);
    font-weight:600;
    border-radius:6px;
    padding:12px 26px;
    margin:7px 0 7px 18px;
    transition:background-color .35s linear,color .35s linear;
}
.navbar-section .navbar-nav li:last-child a::after{display:none;}
.navbar-section .navbar-nav li:last-child a:hover,
.navbar-section .navbar-nav li:last-child a.active{
    background-color:var(--slate);
    color:#fff;
}

/* 21.2 Softer surfaces -------------------------------------------------- */
.global .custom-button .global-btn{border-radius:6px;}
.section-b .jp-grid .item img{border-radius:10px 10px 0 0;}
.section-b .jp-grid .item .box{border-radius:0 10px 10px 0;}
.section-b .jp-grid .item .header i{border-radius:6px;}
.section-c .content-1 .box{border-radius:10px;}
.section-d .jp-grid .item{border-radius:10px;}
.section-e .content-1 .box{border-radius:10px;}
.section-e .content-1 .mobile{border-radius:8px;}
.footer-section .content-5 .map{border-radius:10px;}
.layout-full .row img{border-radius:10px;}
.layout-full .button a{border-radius:6px;}
.layout-full .blog .read-more-btn{border-radius:6px;}
.layout-full .testimonials blockquote{border-radius:0 10px 10px 0;}
.post-content img{border-radius:10px;}
main.container > a{border-radius:6px;}

/* 21.3 Split hero - headline on a light panel, photography beside it ----- */
@media screen and (min-width:992px){
    .slider-section .content-1{
        display:grid;
        grid-template-columns:minmax(0,1fr) minmax(0,1fr);
        align-items:stretch;
    }
    .slider-section .main-slider{grid-column:2;grid-row:1;height:100%;}
    .slider-section .carousel-inner{
        height:100% !important;
        min-height:0;
        max-height:none !important;
        border-radius:0;
    }
    .slider-section .carousel-item{height:100%;}
    .slider-section .carousel-item img{height:100%;-o-object-fit:cover;object-fit:cover;}
    .slider-section .carousel-inner::after{
        background:linear-gradient(180deg,rgba(10,8,8,0) 62%,rgba(10,8,8,.3) 100%);
    }
    .slider-section .caption{
        position:static;
        grid-column:1;
        grid-row:1;
        height:auto;
        min-height:620px;
        display:flex;
        flex-direction:column;
        align-items:flex-start;
        justify-content:center;
        background-color:var(--mist);
        padding:70px 7% 70px max(28px,calc((100vw - 1520px) / 2));
    }
    .slider-section h1{
        color:var(--slate);
        text-shadow:none;
        font-size:54px;
        max-width:none;
        width:100%;
        padding-bottom:34px;
    }
    .slider-section h1::before{display:none;}
    .slider-section .circle-text{
        position:relative;
        top:auto;right:auto;bottom:auto;left:auto;
        margin:0 0 26px 0;
        width:92px;
        height:92px;
    }
    .slider-section .btn-box{
        bottom:24px;
        right:24px;
        left:auto;
        top:auto;
    }
    .slider-section .carousel-btn{
        border-color:rgba(255,255,255,.55);
        background:rgba(0,0,0,.18);
        border-radius:6px;
    }
}

@media screen and (min-width:992px) and (max-width:1199px){
    .slider-section h1{font-size:40px;}
    .slider-section .caption{min-height:480px;padding-left:28px;padding-right:5%;}
    .slider-section .circle-text{width:76px;height:76px;margin-bottom:20px;}
}


/* --------------------------------------------------------------------------
   22. Service icons - Font Awesome is already loaded, so these are drawn in
   CSS rather than added to the markup. No content is added.
   -------------------------------------------------------------------------- */
.section-b .jp-grid .item .header h3{
    display:flex;
    align-items:center;
}
.section-b .jp-grid .item .header h3::before{
    font-family:"Font Awesome 6 Free";
    font-weight:900;
    font-size:17px;
    line-height:1;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    flex-shrink:0;
    width:42px;
    height:42px;
    margin-right:15px;
    border-radius:8px;
    background-color:rgba(161,16,23,.09);
    color:var(--brick);
    transition:background-color .35s linear,color .35s linear;
}
.section-b .jp-grid .item:nth-child(1) .header h3::before{content:"\f0ad";}
.section-b .jp-grid .item:nth-child(2) .header h3::before{content:"\f5fd";}
.section-b .jp-grid .item:nth-child(3) .header h3::before{content:"\f015";}
.section-b .jp-grid .item:nth-child(4) .header h3::before{content:"\f043";}
.section-b .jp-grid .item .box:hover .header h3::before{
    background-color:rgba(255,255,255,.16);
    color:#fff;
}

@media screen and (max-width:767px){
    .section-b .jp-grid .item .header h3::before{
        width:36px;height:36px;margin-right:12px;font-size:15px;
    }
}


/* --------------------------------------------------------------------------
   23. Inner page banner - heading sits in the caption beside the photo
   -------------------------------------------------------------------------- */

/* the heading moved into the caption needs the article styles, not the
   layout-full ones */
.slider-section .caption h1{
    font-family:var(--disp);
    font-weight:600;
    letter-spacing:-.025em;
    line-height:1.08;
    padding-top:0;
    margin:0;
    max-width:none;
    text-shadow:none;
}
.slider-section .caption h1::before,
.slider-section .caption h1::after{display:none;}

/* the heading has moved to the banner, so the content column needs its own
   top spacing instead of relying on the h1 margin */
.layout-full{padding-top:62px;}

/* blog post meta line and the back link, now inside layout-full */
.layout-full > .container > p{
    font-family:var(--body);
    font-size:14px;
    letter-spacing:.02em;
    color:var(--ink);
    max-width:none;
    margin:0 0 34px 0;
    padding:0 0 26px 0;
    border-bottom:1px solid var(--rule);
}
.layout-full > .container > a{
    display:inline-block;
    font-family:var(--disp);
    font-weight:500;
    font-size:16px;
    color:#fff;
    background-color:var(--brick);
    border-radius:6px;
    padding:15px 34px;
    margin-top:18px;
    transition:background-color .35s linear;
}
.layout-full > .container > a:hover{background-color:var(--slate);color:#fff;text-decoration:none;}

@media screen and (min-width:992px){
    /* the inner banner photo must fill its column like the home page one */
    .slider-section .carousel-inner-layout{
        height:100% !important;
        min-height:0;
        max-height:none !important;
    }
    /* inner banners sit lower than the home hero */
    .slider-section:has(.carousel-inner-layout) .caption{min-height:440px;}
    .slider-section .caption h1{font-size:42px;}
    .slider-section:has(.carousel-inner-layout) .circle-text{
        width:76px;height:76px;margin-bottom:22px;
    }
}

@media screen and (min-width:992px) and (max-width:1199px){
    .slider-section .caption h1{font-size:34px;}
}

@media screen and (max-width:991px){
    .slider-section .caption h1{font-size:30px;padding-bottom:0;}
}

@media screen and (max-width:767px){
    .slider-section .caption h1{font-size:25px;}
    .layout-full > .container > p{font-size:13px;margin-bottom:24px;padding-bottom:18px;}
    .layout-full > .container > a{padding:14px 26px;font-size:15px;}
}


/* ===================================================================
   24. Banner caption on phones - light panel under the photo
   =================================================================== */

@media screen and (max-width:767px){
    .slider-section .caption{
        position:static !important;
        height:auto !important;
        min-height:0 !important;
        background:var(--mist) !important;
        padding:30px 24px 34px !important;
        display:flex;
        flex-direction:column;
        align-items:flex-start;
        justify-content:flex-start;
        text-align:left;
    }
    .slider-section .caption h1,
    .slider-section h1{
        color:var(--slate) !important;
        text-shadow:none !important;
        font-family:var(--disp);
        font-weight:600;
        font-size:28px;
        line-height:1.14;
        letter-spacing:-.02em;
        max-width:none;
        padding:0 !important;
        margin:0 0 16px 0;
    }
    .slider-section .caption h1::before,
    .slider-section .caption h1::after{display:none;}
    .slider-section .caption p{color:var(--ink);margin:0 0 16px 0;}
    .slider-section .caption .circle-text{
        position:relative;
        top:auto;right:auto;bottom:auto;left:auto;
        width:66px;height:66px;
        margin:0 0 16px 0;
    }
    .slider-section .caption .global-btn,
    .slider-section .caption .button a{margin-top:2px;}
}

@media screen and (max-width:480px){
    .slider-section .caption h1{font-size:25px;}
}
