*,
*::before,
*::after {
    box-sizing: border-box;
}
        
body {
    margin: 0;
}
#pg-container {
    display: grid;
    width: 100%;
    grid-template-areas:
    "header header header header"
    "nav nav nav nav"
    "main-col-lft main-col-lft main-col-lft main-col-rt"
    "footer footer footer footer";
    grid-row: 1fr 1fr 1fr 1fr;
    grid-column: 1fr 1fr 1fr 1fr;
}
header {
    grid-area: header;
    display: block;
    background-color: ##2c6657;
    height: 240px;
    width: 100%;
}
#hdrBlnkt {
    display: block;
    position: absolute;
    background-color: rgb(44, 102, 87);
    opacity: 0;
    top:0;
    width: 100%;
    height: 240px;
    animation: hdrFade 6s ease-out 0s;
}

@keyframes fadeSequence {
    from{opacity: 1;}
    to{opacity: 0;}
    0% { opacity: 1; }
  20% { opacity: 0; }
  40% { opacity: 1; }
  60% { opacity: 0; }
  80% { opacity: 1; }
  100% { opacity: 1; }
}
/* keyframes for header */
@keyframes hdrFade {
    0% {opacity: 1;}
    20% {opacity: .75;}
    40% {opacity: .6;}
    60% {opacity: .35;}
    80% {opacity: .1;}
    100% {opacity: 0;}
}

header > h1#hdr-title {
    grid-area: header;
    display: block;
    grid-column-start: 1;
    position: relative;
    width: 100vw;
    top: -110px;
    left: 30px;
    color: #FFFFFF;
    margin-top: 0;
    margin-right: 0;
    padding-right: 0;
    font-family: Georgia;
    font-size: 3em;
    font-weight: 400;
    font-style: italic;
    opacity: 1.0;
    z-index: 10;
    animation: fadeInOut 2s ease-in-out 2; / total cycle 2s /
    animation-delay: 1s; / wait 1s before starting /
}
#sub-title {
    grid-area: header;
    display: block;
    position: absolute;
    top: 190px;
    left: 38px;
    margin-left: 5px;
    color: #FFFFFF;
    font-size: 24px;
    z-index:10;
  animation: fadeSequence 4s ease-in-out 2;
  animation-delay: 3s; / wait 3s before starting /
}

/*
Great question, Ervin 👍. What your jQuery script is doing is timed fade in/out animations on two elements:

- h1#hdr-title: waits 1 second, fades out, then fades back in.  
- #sub-title: waits 3 seconds, fades out → in → out → in (a sequence).  

You can replicate this behavior with CSS animations using @keyframes and animation-delay.  

---

✨ CSS Equivalent

`css
/ Fade animation reusable /
@keyframes fadeInOut {
  0% { opacity: 1; }
  25% { opacity: 0; }
  50% { opacity: 1; }
  100% { opacity: 1; }
}

/ For hdr-title: fade out then back in once /
h1#hdr-title {
  animation: fadeInOut 2s ease-in-out 1; / total cycle 2s /
  animation-delay: 1s; / wait 1s before starting /
}

/ For sub-title: fade out/in/out/in sequence /
@keyframes fadeSequence {
  0% { opacity: 1; }
  20% { opacity: 0; }
  40% { opacity: 1; }
  60% { opacity: 0; }
  80% { opacity: 1; }
  100% { opacity: 1; }
}

sub-title {
  animation: fadeSequence 4s ease-in-out 1;
  animation-delay: 3s; / wait 3s before starting /
}
`

---

🔍 Notes
- animation-delay mimics the .delay() in jQuery.  
- opacity transitions simulate .fadeOut() and .fadeIn().  
- You can tweak the percentages in @keyframes to control how long each fade lasts.  
- If you want smoother fades, add transition: opacity 1s; inside the selectors, but usually ease-in-out in the animation handles it.  

---

👉 This CSS runs automatically once the page loads, no JavaScript needed.  

Would you like me to also show you a pure CSS looping version (so the subtitle keeps fading in/out forever), or do you want it to behave exactly like your script (run once and stop)?
*/
#hdr-bg {
    width: 100%;
    height: 240px;
    background-image: url("images/pexels-olly-3865557.jpg");
    background-size: 110% 260px;
    /*
    background-position: 10% 40%; */
    border-bottom: 4px double #000;
    z-index: -2;
    animation: shift-bk 6s infinite;
}
#pg-container > nav {
    grid-area: nav;
    grid-column: 2 span 3;
    margin-top: 10px;
    margin-bottom: 0;
    height: 30px;
    padding-top: 0;
    padding-bottom: 0;
}
#pg-container > nav > #menu {
    list-style-type: none;
    height: 20px;
    margin-top: 4px;
    margin-bottom: 0;
    padding-top:0;
}
#pg-container > nav > ul > li {
    display: inline;
    margin-left: 30px;
}
#pg-container > nav > ul > li > a:link {
    text-decoration: none;
    color: black;
}
#pg-container > nav > ul > li > a:hover {
    text-decoration: underline double black;
}
#pg-container > nav > hr {
    position: relative;
    top: 5px;
}


#l-body {
    grid-area: main-col-lft;
    grid-column: 1/4;
    padding-left: 15px;
    padding-right: 10px;
    min-height: 500px;
}

#site-inquiry {
    width: 100%;
}
.label {
    display: inline-block;
    border: 1px solid black;
    padding: 10px 20px;
    width: 90%;
    
}
.frmErr {
    color: #FF0000;
}
.frmSucces {
    color:#00FF00;
}
#web-cost {
    background-color: #EDEDED;
    border-radius: 50px 30px;
}
#web-cost > li {
    margin-left: 40px;
    padding-top: 10px;
}
input[type=text] {
    border: none;
    border-bottom: 1px dotted black;
    width: 100%;
}
textarea {
    width: 100%;
}
button {
    width: 100%;
}
#r-body {
    grid-area: main-col-rt;
    grid-column: 4/5;
    margin-right: 15px;
    min-height: 500px;
}
footer {
    grid-area: footer;
    background-color: #b8ccca;
    width: 100vw;
}
footer > p {
    text-align: center; 
}
footer > p:nth-child(2) {
    font-size: .6em;
}
.b500 {
    color:#FF4466;
}
@media screen and (max-width: 750px){
    header {
        grid-area: header;
        height: 240px;
    }
#hdr-title {
    display: block;
    grid-area: header;
    grid-column-start: 1;
    grid-column-end: 2;
    position: absolute;
    color: #FFFFFF;
    margin-top: 0;
    margin-left: -20px;
    padding-right: 0;
    font-family: Courier;
    font-size: 12px;
    font-weight: 400;
    font-style: italic;
    opacity: 1.0;
    z-index: 10;
    animation: fadeInOut 2s ease-in-out 1; / total cycle 2s /
    animation-delay: 1s; / wait 1s before starting /
}
#sub-title {
    grid-area: header;
    position: absolute;
    top: 190px;
    color: #FFFFFF;
    margin-left: 45px;
    font-size: 20px;
    z-index:20;
}
#pg-container > nav {
    display: block;
    grid-area: nav;
    grid-column: 1 span 3;
    margin-top: 20px;
    margin-left: -10px;
    margin-bottom: 0;
    height: 40px;
    padding-top: 0;
    padding-bottom: 0;
}
#pg-container > nav > ul > li {
    display: inline;
    margin-left: 10px;
}
#pg-container > #l-body {
        grid-area: main-col-lft;
        display: block;
        width: 98vw;
        padding-right:10px;
}
#web-cost {
        display: none;
    }
#w-cost {
    display: block;
}

    #r-body {
        grid-area: main-col-rt;
        width: 100%;
        height: auto;
        margin-left: 15px;
        padding-bottom: 10px;
        
    }
    footer {
        grid-area: footer;
        bottom: 0;
        height: 160px;
    }
    footer > p {
    text-align: center; 
    }
    footer > p:nth-child(2) {
        font-size: .6em;
    }
    #pg-container {
        display: grid;
        width: 10vw;
        grid-template-areas:
        "header"
        "nav"
        "main-col-lft"
        "main-col-rt"
        "footer";
    grid-row: 160px 30px minmax(500px, auto) 1fr minmax(150px, auto);
    grid-column: 1fr;
    }
    
}