*,
*::before,
*::after {
    box-sizing: border-box;
}

:root {
    --bg-color: #ffffff;
    --elements-bg-color: rgb(100,123,100);
    --elements-tx-color: #333333;
    --elements-tx-second-color: #4F4F4F;
    --goldenrod-color: hsla(34, 86%, 67%, 1);
    
    --error-color: #b3261e;
    --spacing: 30px;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: "Lato", sans-serif;
}

.btn {
    width: 350px;
    color: var(--bg-color);
    background: rgb(100,123,100);
    background: linear-gradient(90deg, rgba(100,123,100,1) 35%, rgba(102,172,102,1) 100%);
    text-transform: uppercase;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5em;
    border: none;
    margin-top: 2em;
    cursor: pointer;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1), 0 1px 3px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease-in-out;
}

.btn:hover {
    transform: scale(1.04);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1), 0 4px 6px rgba(0, 0, 0, 0.08);
}

.btn:active {
    transform: scale(0.96);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1), 0 1px 3px rgba(0, 0, 0, 0.08);
}
.container {
  max-width: 1500px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1em;
  padding-right: 1em;
}
.page{
    z-index: 20;
}

/*// HEADER */
header {
    color: var(--elements-bg-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 3em;
    /* gap: 390px; */
}

/*?? HEADER K */
.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo img {
    height: 50px;
    margin-left: 8.7em;
}

.logo h2 {
    font-size: 14.88px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    white-space: nowrap;
}

/*??HEADER D */
nav {
  margin-right: 8.7em;
}

nav ul {
    display: flex;
    gap: 3em;
    align-items: center;
}

nav ul li {
    list-style-type: none;

}
nav ul li a {
    text-decoration: none;
    color: var(--elements-tx-color);
    font-size: 20px;
    font-weight: 500;
    text-transform: capitalize;
    transition: .5s ease-in-out;
}

nav ul li a:hover {
    color: var(--elements-bg-color);
}

.reg-btn{
    background-color: var(--elements-bg-color);
    color: var(--bg-color);
    width: 93px;
    margin: 0;
    border: none;
    border-radius: 3px;
    padding: 10px 15px;
    text-transform: capitalize;
}
.hamburger {
    display: none;
    cursor: pointer;
}

.hamburger img {
    height: 1.75em;
}




/* MAIN */
/* main {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: space-between;
    margin-top: 30px;
   
} */

/*// A-SECTION */
.a-section {
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: space-around;
    background: rgb(255,255,255);
    background: linear-gradient(180deg, rgba(255,255,255,1) 0%, rgb(248, 236, 230) 35%, rgb(249, 238, 234) 70%, rgba(255,255,255,1) 100%);
    
}

.hero {
    width: 34.5%;
    margin-top: 3.3em;
    margin-left: 2.5em;
    background-image: url("./img/Ellipse\ 116.svg");
    background-repeat: no-repeat;
    background-position: 40% 0;


    /* border: 1px solid var(--elements-bg-color); */
}

.hero h1 {
    font-weight: 500;
    color: var(--elements-tx-color);
    text-transform: uppercase;
    line-height: 1.2;
    font-size: 2.5em;
}
.hero h1::first-letter {
    font-size: 1.4em;
    font-weight: 300;
}

.hero p {
    font-size: 1.250em;
    font-weight: 400;
    color: var(--elements-tx-second-color);
    line-height: 1.7;
    letter-spacing: 1.2px;
    margin: 0;
}

/* .hero button { 
} */

.cool-svg{
    margin-top:2.5em;
    margin-right: 5em;

    /* background-color: #4F4F4F; */
}

/*// B-SECTION */
.b-section {
    display: flex;
    width: 100%;
    justify-content: space-between;
    gap: 90px;
    margin-top: 8.5em;

    /* background-color: rgb(244, 245, 242); */

}

/* ??Left side B */
.accent-card{
    width: calc(50%);
    /* overflow: hidden; */

    /* border: 1px solid var(--elements-bg-color); */
}

.accent-card-top{
    background: rgb(235,220,212);
    background: linear-gradient(180deg, rgba(235,220,212,1) 23%, rgba(247,241,238,1) 82%);
    width: 717px;
    height: 153px;
    text-align: left;
    padding-left: 8.5em;
} 

.accent-card-top span{
    color: var(--goldenrod-color);
    font-size: 24px;
    text-transform: uppercase;
    display: inline-block;
    margin-top: 40px;
    margin-bottom: 17px;

    /* background-color: #333333; */
}
.accent-card-top h2{
    color: var(--elements-bg-color);
    font-size: 41px;
    text-transform: uppercase;
    margin: 0;

    /* background-color: #333333; */
}

/* // */
.accent-card-bottom{
    text-align: left;
    padding-left: 8.5em;
}
.accent-card-bottom p{
    color: var(--elements-tx-second-color);
    font-size: 16px;
    line-height: 1.1;
    letter-spacing: 1px;
    word-wrap: break-word;
    margin-bottom: 2.5em;

    /* background-color: #333333; */
}
.accent-card .accent-card-bottom-btn{
    padding: 1.7em;
 
}
/*?? Right side B */
.cards-ctn {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    column-gap: 7em;
    row-gap: 6em;
    margin-right: 11em;
    margin-top: 5em;
}

.card {
    max-width: 13.75em;
    width: 100%;
    transition: transform 0.3s, padding 0.4s;
    border-radius: 0.5em;
}

.card:hover {
    /* transform: scale(1.2); */
    box-shadow: 0 5px 5px rgba(155, 148, 148, 0.1);
    z-index: 1;
    padding: 1em;
    background-color: #fff;
    cursor: pointer;
}
.card img {
    width: 48px;
    padding: 0.5em;
    background-color: #ffffff;
    border-radius: 0.5em;
    box-shadow: 0 4px 4px rgba(0, 0, 0, 0.1);
}
.card:hover img {
    background-color: var(--elements-bg-color);

}

.card h3 {
    font-size: 1.5em;
    color: var(--elements-tx-color);
    font-weight: 500;
    margin: 0.5em 0 0.2em;
}

.card p {
    font-size: 0.8125em;
    color: var(--elements-tx-second-color);
    font-weight: 400; 
    margin-top: 0;
}




/*// C-SECTION */
.c-section {
    display: flex;
    flex-direction: column;
    width: 100%;
    align-items: center;
    margin-top: 9.2em;
}
.c-section small {
    color: var(--goldenrod-color);
    font-size: 1.5em;

    /* background-color: #333333; */
}
.c-section h2{
    font-size: 2.5625em;
    font-weight: 500;
    text-transform: uppercase;
    color: var(--elements-bg-color);
    margin-top: .4em;

    /* background-color: #333333; */
}


/* // D-SECTION */
.d-section {
    margin-top: 1.5em;
    width: 100%;
    height: 100%;


    /* background-color: rgb(244, 245, 242); */
}

.d-section-ctn {
    display: flex;
    justify-content: center;
    gap: 2.5em;
    width: 100%;


    /* background-color: rgb(60, 80, 20); */
}

.d-section-evcard {
    width: 100%;
    max-width: 354px;
    height: 340px;
    background: rgb(0,0,0);
    background: linear-gradient(180deg, rgb(255, 255, 255) 0%, rgb(255, 255, 255) 1%, rgba(255,255,255,1) 1%, rgba(255,255,255,1) 2%, rgba(237,239,237,1) 99%, rgb(251, 251, 251) 99%);
    border-radius: .5em;
    margin: 0;
    padding: 3.125em;
    transition: background .5s ease-in-out; 
    position: relative;
}

.d-section-evcard .extra-img {
    position: absolute;
    bottom: -40px; 
    left: 20%;
    transform: translateX(-50%);
    z-index: -10;
    display: block; 
}

.d-section-evcard .extra-img-right {
    position: absolute;
    bottom: -40px; 
    left: 91%;
    transform: translateX(-50%);
    z-index: -10;
    display: block; 
}

.d-section-evcard:hover {
    background: var(--elements-bg-color);
    cursor: pointer;
    transition: background .5s ease-in-out; 
}

.d-section-evcard:hover h2,
.d-section-evcard:hover p {
    color: white;
    transition: color .5s ease-in-out; 
    cursor: pointer;
}

.d-section-evcard:hover .extra-img {
    display: none; 
}

.d-section-evcard h2 {
    font-size: 1.5em;
    font-weight: 500;
    text-transform: uppercase;
    color: var(--elements-tx-color);
}

.d-section-evcard:not(:last-child) h2 span {
    font-size: 1.3em;
}

.d-section-evcard p {
    font-size: 1em;
    font-weight: 500;
    color: var(--elements-tx-second-color);
}



/* // E-SECTION */
.e-section {
    margin-top: 10.5em;
}

.e-section-ctn {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 3em ;
}

.e-section-img-ctn{
    width: 50%;
    margin-left: 5.7em;
    

}




.e-section-txt-ctn{
    width: 31%;
    margin-right: 7em;
}
.e-section-txt-ctn small{
    color: var(--goldenrod-color);
    font-size: 1.5em;
    text-transform: uppercase;
    display: block;
    margin-bottom: 17px;

}

.e-section-txt-ctn h2{
    color: var(--elements-bg-color);
    font-size: 2.5625em;
    font-weight: 500;
    text-transform: uppercase;
    margin: 0 0 24px 0;
}

.e-section-txt-ctn p{
    font-weight: 500;
    color: var(--elements-tx-color);
    text-transform: uppercase;
    line-height: 1.5;
    font-size: 1em;
}
.e-section-txt-ctn button{
   margin-top: 2.5em;
}



/* // F-SECTION */
.f-section {
    margin-top: 8.4em;
}
/* .f-section-ctn{
  background-color: #5c2424;
} */

.f-section-top{
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 8.5em;


    /* background-color: #5c2424; */
}

.f-section-top-right small{
    color: var(--goldenrod-color);
    font-size: 1.5em;
    text-transform: uppercase;
    display: block;
    margin-bottom: 17px;
    
}
.f-section-top-right h2{
    color: var(--elements-bg-color);
    font-size: 2.5625em;
    text-transform: uppercase;
    font-weight: 500;
    margin: 0;
    
}

.f-section-top-left .button-container{
    height: 75px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1em;
  
 
}
.f-section-top-left .button-container button{
    height: 100%;
    width: 75px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    background-color: var(--elements-bg-color);
 
}
.f-section-top-left .button-container button img{
    background-color: white;
    padding: 2em; 
    border-radius: 50%;
}
.f-section-top-left .button-container .back:hover img{
    background-color: #648864;
    padding: 1.3em;


}
.f-section-top-left .button-container .forward:hover img{
    background-color: #648864;
    padding: .9em;


}


.f-section-bottom{
    margin-top: 3.4em;
   
    display: grid;
    grid-template-columns: repeat(4, 360px);
    gap: 2em;
    margin-left: 8.75em;
    overflow: hidden;
    height: 420px;


    /* background-color: #5c2424; */
    /* margin-bottom: 200px; */
}

.f-section-bottom-card {
    display: grid;
    height: 100%;
    grid-template-columns: 140px 1fr;
    grid-template-rows: 50px 50px 185px 50px;
    padding: 2em 2.5em;
    overflow: visible;
    border-radius: .5em;
    background: rgb(234,237,234);
    background: linear-gradient(0deg, rgba(234,237,234,1) 0%, rgba(255,255,255,1) 100%);
    transition: background .55s ease-in-out, box-shadow .55s ease-in-out, transform .55s ease-in-out;
}

.f-section-bottom-card:hover {
    transform: scale(1.05);
    background: rgb(234, 237, 234);
    background: linear-gradient(0deg, rgba(230, 230, 230, 1) 3%, rgba(255, 255, 255, 1) 100%);
    box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.1);
    background-color: #648864;
}



.f-section-bottom-card img {
    grid-column-start: 1;
    grid-column-end: 2;
    grid-row-start: 1;
    grid-row-end: 4;
}

.f-section-bottom-card img {
    grid-column: 1 ;
    grid-row: 1 / 4;
}

.f-section-bottom-card h3 {
    grid-column: 2 ;
    grid-row: 1;
    margin-top: 2.5em;
    font-size: 0.8125em;
    font-weight: 400;
    color: var(--elements-tx-second-color);

    /* background-color: #191f19; */
}

.f-section-bottom-card span {
    grid-column: 2 ;
    grid-row: 1 ;
    margin-top: .8em;
    padding: 0;
    font-size: 1em;
    font-weight: 500;
    color: var(--elements-tx-color);


    /* background-color: #648864; */
}

.f-section-bottom-card p {
    grid-column: 1 / -1;
    grid-row: 4 ;
    font-style: italic;
    color: var(--elements-tx-second-color);
    margin: 0;
}




/* //FOOTER */
.footer-section {
    margin-top: 10.6em;
    line-height: 1.5;
    background-color: #f0dcc5;
    padding: 40px ;
    display: flex;
    justify-content: space-between;
}

.footer-ctn {
    display: flex;
    justify-content: space-between;
    width: 100%;
    padding-bottom: 3em;
}

.footer-midle{
    display: flex;
    flex-direction: row;
    width:35%;
    gap: 30%;
}


.footer-section-a{
    width: 22%;
    margin-left: 6.1em;
    margin-right: 2em;
}

.footer-section-a .footer-logo {
    margin-top: 3.5em;
    display: flex;
    flex-direction: row;
    align-items: center;
}

.footer-section-a .footer-logo img {
    margin-right: 10px;
    height: 2.1875em;
}


.footer-section-a h2 {
    font-size: 1em;
    font-weight: 700;
    color: var(--elements-bg-color);
    text-transform: uppercase;

}

.footer-section-a p {
    margin-top: .7em;
    font-size:  0.875em;
    color: var(--elements-tx-second-color);
}
.footer-section-a p:nth-child(3){    
    margin:1em 0 .5em 0;
}

.social-icons {
    margin-top: 1.1875em;
    display: flex;
    gap: 1em; 
}

.social-icons a {
    width: 32px;
    height: 32px;
    color:var(--elements-bg-color);
    transition: all .5s ease-in-out;
}
.social-icons a i{
    width: 32px;
    height: 32px;
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    background-color: rgba(100, 123, 100, 0.101);
    border-radius: 50%;
}

.social-icons a:hover {
    color:rgb(61, 71, 61);
    background-color: rgba(100, 123, 100, 0.311);
    border-radius: 50%;
    transform: scale(1.2);
}


.footer-section-b, .footer-section-c {
    margin-top: 2.5em;
    width: 160px;
}

.footer-section-b h2, .footer-section-c h2 {
    text-transform: capitalize;
    margin-bottom: 24px;
    font-size: 20px;
    color: var(--elements-bg-color);
}

.footer-section-b ul, .footer-section-c ul {
    
    list-style: none;
    padding: 0;
}

.footer-section-b ul li, .footer-section-c ul li {
    margin: 0.75em 0;
    line-height: 1.5;
    
}

.footer-section-b ul li a, .footer-section-c ul li a {
    text-decoration: none;
    color: var(--elements-tx-second-color);
    font-size: 1em;
}



.footer-section-d {
    margin-top: 2.5em;
    width: 21%;
    margin-right: 6.5em;
}

.footer-section-d input {
    height: 3.5em;
}

.footer-section-d h2 {
    color: var(--elements-bg-color);
    font-size: 20px;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 13px;
}

.footer-section-d input {
    border: none;
    padding:1em 2em; 
    width: 100%; 
}

.footer-section-d input::placeholder {
    color: var(--elements-tx-second-color);
    font-size: 0.875em;

}
.footer-section-d input:focus {
    outline-color: var(--elements-bg-color);
    color: var(--elements-bg-color);


}

.footer-section-d .btn {
    height: 55px;
    width: 100%;
    margin-top: 20px;
   
}








/* DESKTOP FIRST */
@media screen and (max-width: 1300px) {

    /* Header */
    nav {
        margin: auto;
    }

    nav ul {
        gap: 1.7em;
    }



}

@media (max-width: 900px) {

    /* Header */
    .logo img {
        margin-left: 10%;
    }

    nav {
        margin: 0 10%;
    }

    nav ul {
        gap: 1em;
    }

    nav ul .reg-btn {
        padding: 5px 5px 5px 17px;
    }

    nav ul li a {
        gap: 1em;
        font-size: 1em;
    }

    /* A section */
    .hero {
        margin-left: 1.8125em;
        width: 80%;
    }
    .hero h1 {
        font-size: 1.5em;
    }
    .hero p {
        font-size: 0.625em;
    }
    .hero .btn {
        border-radius: 1px;
        font-size: 0.625em;
        font-weight: 600;
        width: 80%;
    }

    .cool-svg {
        margin-left: 0;
        width:10%;
    }
    .cool-svg img {
       height: 304px;
        overflow: hidden;
    }

    /* Footer */
    .footer-section-a {
        width: 30%;
        margin-left: 0;
    }

    .footer-section-d {
        width: 30%;
        margin-right: 0;
    }

}


@media screen and (max-width: 800px) {

    /* Header */
    .logo img {
        margin-left: 20%;
    }

    nav {
        margin: 0 10%;
    }

    .nav-links {
        padding: 0;
        margin-right: 20%;
        display: none;
        flex-direction: column;
    }

    .hamburger {
        display: block;
        position: absolute;
        top: 2.625em;
        right: 2em;
    }

    .nav-links.active {
        display: flex;
        flex-direction: column-reverse;
    }



    /* Footer */
    .footer-section {
        margin: 0;
        padding: 0;
    }

    .footer-ctn {
        flex-direction: column;
        padding: 2.5em 3.75em 2.525em 2em;

    }
    .footer-ctn h2{
        margin: 0;
    }

    .footer-section-a .footer-logo{
        margin: 0;
        padding: 0;
    }

    .social-icons{
        gap: 0;
    }
    .footer-section-a .social-icons a{
        margin: 0;
        margin-right: 1em;
    }

    .footer-midle{
        display: flex;
        flex-direction: row;
        gap: 2em;
    }

    .footer-section-a,
    .footer-section-d {
        width: 100%;
    }

    .footer-section-b,
    .footer-section-c {
        width: 100%;
        display: flex;
        flex-direction: column;
        margin: 0;
        margin-top: 2.5em;
    }

    .social-icons a {
        display: inline-block;
        margin: 0 10px;
    }
}

@media screen and (max-width: 500px) {

    /* Header */
    .logo {
        justify-content: start;
    }
    .logo img{
        height: 33px;
    }
    .logo h2 {
        font-size: 10px;
        margin: 0;
        white-space: nowrap;
    }

    /* A section */
    .hero {
        margin-top: 0;
        margin-left: 1.8125em;
        width: 100%;
    }
    .hero h1 {
        font-size: 1.5em;

    }
    .hero p {
        font-size: 0.625em;
    }
    .hero .btn {
        border-radius: 1px;
        font-size: 0.625em;
        font-weight: 600;
        width: 70%;
    }

    .cool-svg {
        margin-left: 0;
        width:4%;
    }
    .cool-svg img {
       height: 304px;
        overflow: hidden;
    }

    /* B section */
    .b-section {
        flex-direction: column;
        gap: 2em;
        margin-top: 2em;
    }

    .accent-card-top {
        padding-left: 2em;
        height: 4.25em;
        margin-right: 200em;
        width: 140%;
    }
    
    .accent-card-top span {
        font-size: 0.8125em;
        font-weight: 500;
        margin: 10px 0 0;
    }
    .accent-card-top h2 {
        font-size: 1.25em;
        font-weight: 500;
        margin: 5px 0;
    }

    .accent-card-bottom {
        padding-left: 2em;
        width: 170%;
    }
    .accent-card-bottom p{
        font-size: 0.625em;
    }

    .accent-card-bottom .accent-card-bottom-btn{
        border-radius: 1px;
        font-size: 0.625em;
        width: 80%;
        height: 5em;
    }

    .cards-ctn {
        gap: 2em;
        margin: 0;
        margin-top: 3em;
        padding: 1em;
    }

    /* C section */
    .c-section {
        margin-top: 2em;
    } 

    .c-section small {
        font-size: 0.8125em;
    }
    .c-section h2 {
        font-size: 1.25em;
        font-weight: 500;
    }

    /* D section */
    .d-section {
        margin-top: 1em;
        overflow: hidden;
        margin-bottom: 2em;
    }
    
    .d-section-ctn {
        justify-content: flex-start;
        gap: 1em;
        margin-left: 3em;
    }

    .d-section-evcard{
    
        width: 400px;
        height: 150px;
        padding: 1em 3em;
    
    }
    .d-section-evcard img{
        height: 28px;
    
    }
    .d-section-evcard h2{
        font-size: 0.625em;
        font-weight: 500;
    
    }
    .d-section-evcard p{
        font-size: 0.5em;
        font-weight: 500;
    
    }

   .d-section-evcard .extra-img img {
        height: 100px;
        width: 100px;
        overflow:visible;
    }   
    .extra-img-right {
        display: none;
    } 
    
    /* E section */
    .e-section {
        margin-top: 2em;
    }
    
    .e-section-img-ctn{
        margin: 0;
    }
    .e-section-img-ctn img{
        margin: 0;
        display: none;
    }

    .e-section-txt-ctn{
        width: 100%;
        margin: 0;
        
    }
    .e-section-txt-ctn small{
        font-size: 13px;
        
    }
    .e-section-txt-ctn h2{
        font-size: 20px;
        
    }
    .e-section-txt-ctn p{
        font-size: 10px;
        
    }
    .e-section-txt-ctn button{
        font-size: 10px;
        border-radius: 1px;
        width: 100%;
        
    }

    /* F section */ 
    .f-section {
        margin: 0;
        margin-top: 5em;


        padding: 0;
    }

    .f-section-ctn, .f-section-top, .f-section-bottom{
        margin: 0;
        padding: 0;
    }

    .f-section-top small{
        font-size: 13px;
        
    }
    .f-section-top h2{
        font-size: 20px;
        
    }


}

@media screen and (max-width: 350px) {

    /* Header */
    .logo {
        justify-content: center;
    }
}

/* =========================================================
   FIXES
   ========================================================= */

/* Text only for screen readers (was used in HTML but never defined) */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Visible keyboard focus */
a:focus-visible,
button:focus-visible,
input:focus-visible {
    outline: 3px solid var(--goldenrod-color);
    outline-offset: 3px;
}

/* Register is now a link, keep the old button look */
nav ul li a.reg-btn {
    display: inline-block;
    width: auto;
    color: var(--bg-color);
    font-size: 13px;
}

/* Hamburger is now a real button */
.hamburger {
    background: none;
    border: none;
    padding: 0;
}

/* Review arrows */
.f-section-top-left .button-container button {
    border: none;
    padding: 0;
    cursor: pointer;
}

/* Reviews scroll sideways, arrows move them */
.f-section-bottom {
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    height: auto;
    padding: 1em 0.5em 1.5em;
    scrollbar-width: thin;
    scrollbar-color: var(--elements-bg-color) transparent;
}

.f-section-bottom-card {
    height: 420px;
    scroll-snap-align: start;
}

/* Decorative pink rectangle made the page scroll sideways */
.d-section {
    overflow-x: clip;
}

/* Newsletter form messages */
.form-msg {
    min-height: 1.5em;
    margin: 0.5em 0 0;
    font-weight: 600;
}

.form-msg.is-error {
    color: var(--error-color);
}

.form-msg.is-success {
    color: var(--elements-bg-color);
}

.footer-section-d input[aria-invalid="true"] {
    outline: 2px solid var(--error-color);
}

@media screen and (max-width: 800px) {
    .nav-links.active {
        position: absolute;
        top: 5em;
        right: 1em;
        z-index: 30;
        margin: 0;
        padding: 1em 1.5em;
        gap: 1em;
        background-color: var(--bg-color);
        border-radius: 8px;
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
    }

    .f-section-bottom {
        grid-template-columns: repeat(4, min(85vw, 360px));
    }
}

@media screen and (max-width: 500px) {
    /* Hero: picture below the text so it fits the screen */
    .a-section {
        flex-direction: column;
    }

    .hero {
        width: auto;
        margin: 0 1.5em;
    }

    .cool-svg {
        width: auto;
        margin: 1em auto 2em;
    }

    .cool-svg img {
        height: 260px;
    }

    /* Accent card was wider than the screen */
    .accent-card {
        width: 100%;
    }

    .accent-card-top,
    .accent-card-bottom {
        width: auto;
        margin-right: 0;
        padding-right: 2em;
    }

    .accent-card-bottom .accent-card-bottom-btn {
        height: auto;
    }

    /* Job title overlapped the name on narrow cards */
    .f-section-bottom-card {
        grid-template-columns: 110px 1fr;
        padding: 2em 1.5em;
    }

    .f-section-bottom-card span {
        font-size: 0.875em;
    }

    .f-section-bottom-card img {
        max-width: 100%;
        align-self: end;
    }

    /* Reviews heading touched the screen edge */
    .f-section-top {
        gap: 1em;
        padding: 0 1em;
    }

    .f-section-bottom {
        padding: 1em;
    }

    .f-section-top-left .button-container {
        height: 48px;
    }

    .f-section-top-left .button-container button {
        width: 48px;
    }

    .f-section-top-left .button-container button img {
        padding: 1em;
    }

    /* Third card was cut off: now they scroll sideways */
    .d-section-ctn {
        width: auto;
        margin-left: 0;
        padding: 0 1em 3em;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
    }

    .d-section-evcard {
        flex: 0 0 75%;
        scroll-snap-align: start;
    }
}
