/*** General CSS ***/
body {
    line-height: 1.9em;
}

/*** Header Area ***/
/* Header Top */
#sp-top-bar {
    position: relative;
    z-index: 9999;
}

/* Header Menu */
#sp-header {
    top: 0;
    height: auto; /* was `inherit`; the flex row below establishes the height */
}
#sp-header.header-sticky {
    position: fixed;
    top: 0;
    padding: 0;
  	background: rgba(0,0,0,.85);
  	box-shadow: 0 0 4px 0 rgb(0 0 0 / 10%);
}
body:not(.home) #sp-header {
    background: rgba(0,0,0,.85);
    position: static;
}
body:not(.home) #sp-header.header-sticky {
    position: fixed;    
}
.sp-megamenu-parent .sp-dropdown li.sp-menu-item>a {
  	font-size: 14px !important;
    font-weight: 400 !important;
    padding: 10px 0;
}
.sp-megamenu-parent > li > a, .sp-megamenu-parent > li > span {
    text-transform: uppercase;
    position: relative;
}
.sp-megamenu-parent>li.active>a {
    font-weight: 600;
}
.sp-megamenu-parent > li > span {
  	color: #fff;
}

/* Canvas Menu */
.offcanvas-menu .offcanvas-inner .menu-child > li a {
    padding: 12px 10px !important;
    border-bottom: 1px solid rgba(197, 153, 153, 0.21);
    display: inherit;
}
.offcanvas-menu .offcanvas-inner ul.menu>li>a, .offcanvas-menu .offcanvas-inner ul.menu>li>span {
    font-size: 15px;
    font-weight: 500;
}
.burger-icon>span {
    background-color: #fff;
}
.offcanvas-menu > .align-items-center {
    background: rgba(0,0,0,.85);
}
.offcanvas-active .burger-icon>span, #modal-menu-toggler.active .burger-icon>span {
    background-color: #fff;
}

/*** Block Styles ***/
/* Button */
.btn {
    display: inline-block;
    border: 2px solid;
    padding-right: 10px;
    padding-left: 10px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    border-radius: 2px;
    transition: all .5s;
    min-width: 170px;
    text-align: center;
}
.btn.sppb-btn-custom {
    line-height: 28px;
}
.btn:hover {
    color: #222 !important;
}
.login .btn-primary {
    color: #fff !important;
}

/* Title */
.title h2.sppb-title-heading {
    position: relative;
    display: inline;
}
.title h2.sppb-title-heading:before {
    content: '';
    position: absolute;
    height: 6px;
    width: 60px;
    top: 100%;
    left: 0;
}
.title h2.sppb-title-heading:after {
    content: '';
    position: absolute;
    height: 6px;
    width: 6px;
    top: 100%;
    left: 69px;
}

/* Slider */
.slider {
  	margin-top: -90px!important; 
}
.slider .sppb-row-overlay {
    background: url(../images/pattern.png);
    opacity:  .2;
}
.slider {
    position: relative;
}
.slider:before {
    content: "";
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: 100%;
    position: absolute;
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, .0));
}
.slider #particles-js {
    position: absolute;
    width: 100%;
    height: 100%;
}
.slider h1 {
    margin: 0 0 40px 0;
    text-transform: capitalize;
    font-size: 50px;
    font-weight: 800;
    line-height: 70px;
    position: relative;
    letter-spacing: 3px;
}
.slider h4 {
    letter-spacing: 2px;
    display: inline-block;
    position: relative;
    text-transform: capitalize;
    font-size: 15px;
    font-weight: 700;
    line-height: 27px;
    padding: 10px 30px;
    margin: 0 0 50px;
    background: rgba(0, 0, 0, .7);
}
.slider .btn {
    position: relative;
    padding: 12px;
}

/* About */
.about {
	  position: relative;
}
.about-img {
    position: relative;
}
.about-img:before {
    content: '';
    position: absolute;
    height: 80%;
    width: 80%;
    opacity: .7;
    bottom: -30px;
    right: -30px;
    z-index: -1;
}
.about-img:after {
    content: '';
    position: absolute;
    z-index: 3;
    top: -30px;
    left: -30px;
    height: 25%;
    width: 15%;
    opacity: .7;
    border-left: 2px solid transparent;
    border-top: 2px solid transparent;
}
.about-content-title p strong {
    font-weight: 300;
}
.about-content .sppb-addon-text {
    text-align: left!important;
}
.about-content a strong {
    display: none;
}
.about-content .sppb-icon-container {
    padding-right: 5px!important;
}
.about-content p {
    font-weight: 400;
    letter-spacing: 1px;
}
.about-content a {
    color: #fff;
    margin: 0 5px;
}

/* Timeline */
.timeline-item {
    padding: 20px 60px;
    border-radius: 0 30px 0 0;
    border-top: 7px solid #181718;
    border-right: 7px solid #181718;
    position: relative;
    right: -3.5px;
    margin: 20px 0;
}
.timeline-item.right {
    margin-top: 130px;
    border-right: none;
    border-left: 7px solid #181718;
    border-radius: 30px 0 0 0;
    right: auto;
    left: -3.5px;
}
.timeline-item.last {
    margin-top: 60px;
}
.timeline-item .timeline-content {
    display: block;
    padding: 30px;
    border-radius: 20px;
    background: #181718;
    position: relative;
}
.timeline-item .timeline-content:before, 
.timeline-item .timeline-content:after {
    content: '';
    display: block;
    width: 10px;
    height: 50px;
    border-radius: 10px;
    background: #181718;
    position: absolute;
    top: -35px;
    left: 50px;
}
.timeline-item .timeline-content:after {
    left: auto;
    right: 50px;
}
.timeline-item h5 {
    position: relative;
    color: #fff;
    margin-bottom: 25px;
    font-size: 18px;
    font-weight: 600;
    letter-spacing: 1px;
}
.timeline-item h5:before {
    content: '';
    position: absolute;
    height: 4px;
    width: 60px;
    background: #f68e13;
    top: 120%;
    left: 0;
}
.timeline-item h5:after {
    content: '';
    position: absolute;
    height: 4px;
    width: 4px;
    background: #f68e13;
    top: 120%;
    left: 65px;
}
.timeline-item h6 {
    margin-bottom: 10px;
    color: #f68e13;
}

/* Service */
.service .clearfix {
    -webkit-transition: all 0.4s ease-in-out;
    transition: all 0.4s ease-in-out;
}
.service .clearfix:hover {
    -webkit-box-shadow: 0px 10px 25px rgba(0, 0, 0, 0.1);
    -moz-box-shadow: 0px 10px 25px rgba(0, 0, 0, 0.1);
    -o-box-shadow: 0px 10px 25px rgba(0, 0, 0, 0.1);
    box-shadow: 0px 10px 25px rgba(0, 0, 0, 0.1);
    position: relative;
    transform: translate(0, -5px);
    cursor: pointer;
}
.service-item {
    position: relative;
}
.service-item h2 {
    position: absolute;
    font-size: 50px;
    font-weight: 700;
    top: 0;
    right: 40px;
    color: #eee;
    opacity: .1;
    line-height: 30px;
}
.service-item h5 {
    position: relative;
}
.service-item h5:before {
    content: '';
    position: absolute;
    height: 4px;
    width: 40px;
    top: 120%;
    left: 0;
}
.service-item h5:after {
    content: '';
    position: absolute;
    height: 4px;
    width: 4px;
    top: 120%;
    left: 45px;
}

/* Skill */
.skills,
.skills .skill,
.skills .skill .skill-title,
.skills .skill .skill-bar {
    width: 100%;
    float: left;
}
.skills {
    padding:15px;
}
.skills .skill {
    margin-bottom: 30px;
}
.skills .skill .skill-title {
    color: #fff;
    margin-bottom: 10px;
    font-weight: 600;
    font-size: 12px;
}
.skills .skill .skill-bar {
    height: 5px;
    border-radius: 3px;
    background: #eaeaea;
    transition: 1s cubic-bezier(1, 0, .5, 1);
    -webkit-transition: 1s cubic-bezier(1, 0, .5, 1);
    -ms-transition: 1s cubic-bezier(1, 0, .5, 1);
}
.skills.active .skill .skill-bar {
    width: 100%;
}
.skills .skill .skill-bar span {
    float: left;
    width: 0%;
    height: 5px;
    border-radius: 3px;
    position: relative;
    transition: 1s cubic-bezier(1, 0, .5, 1);
    -webkit-transition: 1s cubic-bezier(1, 0, .5, 1);
    -ms-transition: 1s cubic-bezier(1, 0, .5, 1);
}
.skills .skill .skill-bar span b {
    float: left;
    width: 100%;
    position: relative;
    text-align: right;
    opacity: 0;
    font-size: 12px;
    color: #fff;
    font-weight: 600;
    top: -22px;
}

/* Counter */
.counter-item h1 {
    font-weight: 700;
}
.counter-item h6 {
   	letter-spacing: 1px;
    margin-top: 30px;
    margin-left: 30px;
    margin-bottom: 30px;
    padding: 15px;
    background: rgba(255, 235, 105, .1);
    position: relative;
}
.counter-item h6:before {
    content: '';
    position: absolute;
    height: 6px;
    width: 40px;
    background: #f68e13;
    top: 50%;
    left: -30px;
}
.counter-item h6:after {
    content: '';
    position: absolute;
    height: 6px;
    width: 6px;
    background: #f68e13;
    top: 50%;
    left: 17px;
}

/* Portfolio */
.sp-simpleportfolio .sp-simpleportfolio-filter > ul > li > a {
    background: none;
    color: #fff;
    font-size: 16px;
    position: relative;
    font-weight: 600;
    padding: 11px;
}
body:not(.home) .sp-simpleportfolio .sp-simpleportfolio-filter > ul > li > a {
    color: #847e7e;
}
.sp-simpleportfolio .sp-simpleportfolio-filter > ul > li.active > a {
	  background: none;
}

/* Client */
.client-item img {
    width: 65px;
    height: 65px;
    border-radius: 50%;
    display: inline-block;
    border: 2px solid #444;
    padding: 3px;
    background: #1b1c1e;
}
.client-item p {
    margin-top: 25px;
    margin-bottom: 25px;
    color: #E1E8E1;
    font-size: 14px;
}
.client-item h5 {
    font-size: 18px;
    letter-spacing: 1px;
    text-transform: capitalize;
    margin-bottom: 10px;
}
.client-item h6 {
    font-weight: 500;
    font-size: 14px;
    color: #fff;
    font-family: 'open sans', sans-serif;
}

/* Blog */
.jmm-item .jmm-image.mod-article-image {
  	overflow: hidden;
}
.jmm-image.mod-article-image img {
  	transform: scale(1);
  	-webkit-transition: .5s ease-in-out;
    -o-transition: .5s ease-in-out;
    transition: .5s ease-in-out;
}
.jmm-item:hover .jmm-image.mod-article-image img {
  	transform: scale(1.12);
  	filter: grayscale(100%);
}
.blog .jm-category-module.default .jmm-intortext {
    color: #ffffffad;
}

/* Contact Info */
.contact-info h2, .contact-info h3 {
    font-size: 25px;
}
button.btn.btn-primary.validate {
    color: #fff !important;
    padding: 13px 20px;
}

/* Bottom */
#sp-bottom1 {
    text-align: center;
}
#sp-bottom .logo {
    font-size: 20px;
    font-weight: 800;
    letter-spacing: 1px;
    padding: 15px 0;
}
#sp-bottom .social-media {
    margin: 15px 0;
}
#sp-bottom .social-media a {
    margin: 10px 20px;
}
#sp-bottom .social-media a i {
    color: #fff;
}
#sp-bottom .social-media i {
  	font-family: 'Font Awesome 5 Brands';
}
#sp-bottom .social-media a strong {
    display: none;
}
#sp-bottom .sp-module {
    margin-bottom: 0px;
}

/* Footer Copyright */
#sp-footer {
    text-align: center;
}
#sp-footer {
    display: inline-block;
    width: 100%;
}

/*** Responsive Layout ***/
/* Tablet Landscape Layout */
@media (min-width: 1400px) {
    .sppb-row-container {
      	max-width: 1320px;
    }
}

/* Mobile Standard Layout */
@media (max-width: 768px) {
	#sp-header, #sp-header .logo {
        height: auto;      /* was 70px: a hard height re-clipped the logo on mobile */
        min-height: 70px;
    }
  	#sp-footer p {
  		text-align: center;
	}
  	body #sp-header {
      	padding: 0;
        background: #000;
	}
}

/* Mobile Small Resolution */
@media (max-width: 480px) {
  	.event-tag .sppb-tab-content ul li {
    	width: 100%;
	}
}

/* General color defination
Color value depend on preset color that picking on template settings > Presets
*/

:root {
  --background-color: currentColor;
  --background: currentColor;
  --text-color: currentColor;
}
.page-item.active .page-link,
.slider-item .sppb-btn-success, .sp-simpleportfolio .sp-simpleportfolio-item .sp-simpleportfolio-info:hover,
.sp-simpleportfolio .sp-simpleportfolio-item .sp-simpleportfolio-overlay-wrapper .sp-simpleportfolio-overlay, 
.btn:hover, .title h2.sppb-title-heading:before, .testimonial:before,
.title h2.sppb-title-heading:after, .skills .skill .skill-bar span, .about-img:before {
 	background-color: var(--background-color) !important;
}
.sp-simpleportfolio .sp-simpleportfolio-filter > ul > li.active > a,
.article-list .article .readmore a:hover, .article-list .article .readmore a:active, .article-list .article .article-header h2 a:hover,
.about-content-title h4, .about-content p > strong, .service-item .sppb-icon i, 
.client-item h5, .title h2.sppb-title-heading span, .slider h1 span, .slider h4, .btn {
  	color: var(--text-color) !important; 
}
.btn:hover, .about-img:after, .btn {
  	border-color: var(--text-color) !important;
}

/* =====================================================================
   Logo clipping fix (header only) - gregloucks.blog

   CAUSE
   1. template.css: `#sp-header .logo { height: 80px }` - a fixed box.
   2. Helix injects, inline from the logo-height template param:
        .logo-image { height: 120px; }
      A 120px image centred in an 80px box overflows 20px above and below,
      and the overflow is painted over at the section boundary - so the
      globe, sun and mountain peaks were sliced off the top.
   3. LOGO.png is 2172x724 (aspect 3.0) and trims to 2161x693 at +0+31:
      it carries 31px of transparent padding at the TOP and none at the
      BOTTOM, so the two edges need different treatment. At 92px rendered
      height that padding is worth only ~4px, which is why the clearance
      below has to come from CSS rather than from the artwork.

   FIX
   Constrain the IMAGE (max-height + height:auto, ratio preserved) instead
   of pinning the BOX, pad the box, and let the row set the header height.
   Navigation, colours and branding are untouched.
   ===================================================================== */
:root {
    --glb-logo-h:    56px;  /* max logo height; width follows, ratio kept */
    --glb-header-h:  72px;  /* 56 + 8 above + 8 below */
}

#sp-header {
    height: auto;
    min-height: var(--glb-header-h);
}

/* the real header row only - not the megamenu's inner .row divs */
#sp-header > .container > .container-inner > .row {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;            /* complete logo vertically centred */
    min-height: var(--glb-header-h);
}

/* nothing in the logo's ancestor chain may clip it */
#sp-header,
#sp-header > .container,
#sp-header > .container > .container-inner,
#sp-header #sp-logo,
#sp-header #sp-logo > .sp-column,
#sp-header .logo {
    overflow: visible;
}

#sp-header #sp-logo,
#sp-header #sp-logo > .sp-column {
    display: flex;
    align-items: center;
}

#sp-header .logo {
    height: auto;                   /* was the fixed 80px */
    min-height: 0;
    display: flex;
    align-items: center;
    padding: 20px 0;                /* visible space above AND below artwork */
    line-height: 1;
}
#sp-header .logo a {
    display: flex;
    align-items: center;
    line-height: 1;
}

/* beats the inline `.logo-image { height: 120px }` on specificity;
   !important kept because that rule is injected inline in <head> */
#sp-header .logo img,
#sp-header .logo img.logo-image {
    height: auto !important;        /* no stretching */
    width: auto;                    /* intrinsic 3:1 ratio preserved */
    max-height: var(--glb-logo-h);
    max-width: 100%;
    object-fit: contain;            /* fits, never crops */
    display: block;
    margin: 0;
}

/* --- tablet --- */
@media (max-width: 991.98px) {
    :root { --glb-logo-h: 48px; --glb-header-h: 64px; }
}

/* --- mobile: existing burger/offcanvas behaviour untouched --- */
@media (max-width: 768px) {
    :root { --glb-logo-h: 40px; --glb-header-h: 56px; }
    #sp-header,
    #sp-header .logo { height: auto; min-height: 0; }
    #sp-header > .container > .container-inner > .row { min-height: var(--glb-header-h); }
    #sp-header .logo { padding: 8px 0; }
}

/* =====================================================================
   The strip at the top is BLACK, on the home page too - gregloucks.blog

   CAUSE OF THE WHITE BAND
   preset6.css sets `#sp-header { background: rgba(0,0,0,0) }`, and the
   black background further up this file is scoped to `body:not(.home)`.
   So every inner page had a black header and the HOME page had a
   transparent one - which, because the header is `position: relative` and
   therefore occupies its own space, painted as a tall white band above the
   slider rather than as nothing.

   FIX
   One background for every page, and the strip made narrow: the header is
   72px instead of 132px (see --glb-header-h above). The logo is SCALED to
   fit it, not cropped - the clipping fix above still governs, so max-height
   plus height:auto keeps the full artwork with its ratio intact.

   Solid black rather than the rgba(0,0,0,.85) used for the sticky state:
   translucent over a photographic slider is what made the top of the page
   look accidental in the first place.
   ===================================================================== */
#sp-header,
body:not(.home) #sp-header {
    background: #000;
}

/* The sticky state keeps its slight transparency - there it reads as the
   page moving underneath, which is the point of it. */
#sp-header.header-sticky,
body:not(.home) #sp-header.header-sticky {
    background: rgba(0, 0, 0, .85);
}

/* =====================================================================
   BLACK TEXT ON A NEAR-BLACK BAND
   2026-10-01. Greg: "cabt read the text of the blog samples at
   gregloucks.blog its black text on a near black background".

   #sp-bottom on this template is rgb(27,28,30). Every Articles Plus module
   placed there paints the ink it would use on a light card - rgb(26,32,44) -
   so the headings measured 1.05:1 and the blog-sample titles 3.25:1. The
   subscribe form has the inverse fault: its own fieldset is rgb(246,247,249)
   with white labels, 1.07:1.

   Measured with a text-contrast walker over every text node on /en/ and
   /en/about: 101 and 99 unreadable nodes respectively, in 11 and 14 kinds.

   The fix is the one the component CSS already assumes: give these panels the
   light card they were drawn for, rather than restating every colour inside
   them.
   ===================================================================== */
#sp-bottom .ap-showcase,
#sp-bottom .ap-follow,
#sp-bottom .ap-comments,
#sp-bottom .ap-reactions,
#sp-bottom .apr,
#sp-bottom .ap-subscribe,
#sp-bottom .mod-articlesplus-subscribe {
    background: #fffdfa;
    color: #14171f;
    padding: 18px;
    border-radius: 6px;
}

#sp-bottom .ap-showcase a,
#sp-bottom .ap-follow a,
#sp-bottom .ap-comments a,
#sp-bottom .apr a,
#sp-bottom .ap-showcase a span,
#sp-bottom .ap-follow a span,
#sp-bottom .apr a span {
    color: #1b4f7d;
}

/* The subscribe fieldset is already light; its labels were white. */
.ap-subscribe__topics legend,
.ap-subscribe__topics label,
.ap-subscribe__all,
fieldset.ap-subscribe__topics {
    color: #14171f !important;
}

/* ⚠ WHITE ON A MID-TONE FILL IS NOT READABLE EITHER: the orange call to
   action measured 2.39:1 and the blue support button 2.24:1. Dark ink on the
   same fill keeps the colour and passes. */
.ap-subscribe .btn-primary,
.ap-subscribe .btn-primary span,
button.btn.btn-primary span {
    color: #241d05 !important;
}

.mdon__btn .mdon__btntext,
.mdon__btn span.mdon__btntext {
    color: #04212c !important;
}
