@import url('https://fonts.googleapis.com/css2?family=Anton&display=swap');

:root {
--toughbrown: #ab9f6f;
--black: #000000;
--white: #ffffff;
}

html, body {
font-family: Poppins, sans-serif;
width: 100%;
height: 100%;
margin: 0px;
padding: 0px;
overflow-x: hidden;
scroll-behavior: smooth;
}

* {
margin: 0;
padding: 0;
box-sizing: border-box;
text-decoration: none;
outline: none;
transition: all 0.2s ease-in;
scroll-behavior: smooth;
}

@keyframes fade {
  0% {
    opacity: 0;
    transform: translate(0, 3rem);
  }
  100% {
    opacity: 1;
    transform: translate(0, 0);
  }
}

.aboutDiv, .servicelist div {
animation: fade both;
animation-duration: 5.5s;
animation-timing-function: linear;
animation-delay: 4.9s;
animation-timeline: view(y);
animation-range-start: cover 22.5vh;
animation-range-end: cover 51.2vh;
/* animation: fade 1s 1s both; */
}

body {
overflow-x: visible;
}

.newclass {
background-image: url("barber1.jpg");
width: 100%;
object-fit: cover;
background-attachment: fixed;
background-size: cover;
object-position: center;
background-repeat: none;
position: relative;
height: 105svh;
}

.overlay {
border-image:
linear-gradient(#00000098, #00000098) fill 1;
}

header {
display: flex;
flex-direction: row;
align-items: center;
justify-content: space-between;
padding-top: 16px;
padding-bottom: 6px;
padding-left: 50px;
padding-right: 44px;
justify-content: space-between;
width: 100%;
}

.logo-container {
display: flex;
flex-direction: row;
justify-content: center;
align-items: center;
gap: 16px;
}

.logo {
height: 105px;
background-repeat: no-repeat;
background-size: cover;
object-fit: cover;
}

.links {
display: flex;
flex-direction: row;
gap: 28px;
font-size: 16px;
height: 100%;
align-items: center;
}

.links a:not(.active) {
cursor: pointer;
letter-spacing: 0.8px;
color: var(--white);
}

.links a {
text-align: center;
color: red;
}

.links a:hover {
color: red;
}

.active {
color: red;
text-decoration: red underline;
text-underline-offset: 4px;
font-weight: bold;
}

.button {
background-color: red;
color: white;
border: 1px solid transparent;
padding: 14px 35px;
border-radius: 28px;
font-size: 16px;
cursor: pointer;
z-index: 2;
animation-delay: 1.6s;
}

.button:hover {
background-color: transparent;
border: 1px solid red;
}

.menu-bar {
display: none;
}

.menu-bar div {
height: 3px;
width: 32px;
background-color: red;
transition: .45;
position: relative;
right: -1px;
border-radius: 52px;
cursor: pointer;
}

.menu-bar div:not(:last-child) {
margin-bottom: 6px;
}

.menuAccordion {
height: 100%;
width: 90%;
position: fixed;
top: 0;
bottom: 0;
background-color: white;
z-index: 10000;
right: -700px;
overflow-y: auto;
scroll-behavior: smooth;
transition: 0.5s;
display: none;
box-shadow: 0 8px 16px 0 rgba(0,0,0,0.2), 0 6px 20px 0 rgba(0,0,0,0.19);
}

body.activeSlide .menuAccordion {
right: 0;
}

.menuHeader {
padding: 0.9rem;
padding-left: 14px;
padding-right: 21px;
height: 75px;
display: flex;
flex-direction: row;
justify-content: space-between;
align-items: center;
font-weight: bold;
border-bottom: 1px solid #000000;
overflow: hidden;
}

.menuHeader p {
font-size: 22px;
color: black;
}

.menu-cross div {
height: 4px;
width: 26px;
background-color: red;
transition: .45;
position: relative;
border-radius: 68px;
cursor: pointer;
}

.menulinks {
display: flex;
flex-direction: column;
padding-top: 8px;
gap: 3px;
padding-left: 10px;
}

.menulinks a, .sturborn a {
font-weight: normal;
color: #000000;
}

.one {
transform: rotate(132deg);
position: relative;
background-color: white;
top: 4px;
}

.twO {
transform: rotate(-134deg);
position: relative;
}

.goto {
display: flex;
flex-direction: column;
gap: 24px;
padding-left: 24px;
padding-top: 36px;
padding-bottom: 32px;
}

.goto a {
font-size: 18px;
font-weight: bold;
color: red;
text-underline-offset: 4px;
}

.goto a:hover {
text-decoration: 3px solid #874f26 underline;
}

.btns {
padding-inline: 24px;
display: flex;
flex-wrap: wrap;
gap: 32px;
}

.btns .button {
width: 100%;
text-align: center;
}

.accord {
text-align: center;
align-items: center;
justify-content: center;
width: 100%;
}

h1, h2, h3, h4 {
font-family: "Anton", sans-serif;
z-index: 2;
}

p {
text-wrap: pretty;
}

a {
color: blue;
}

h1 {
font-size: 74px;
text-align: center;
letter-spacing: 6px;
line-height: 72px;
/* padding-inline: 120px; */
padding-top: 110px;
padding-bottom: 20px;
color: white;
}

.kings h1, .kings {
position: relative;
}

.kings::after {
content: "";
background-image: url("redcrown4.png");
object-fit:scale-down;
background-size: cover;
object-position: center;
background-repeat: none;
height: 80px;
width: 100px;
position: absolute;
transform: rotate(11deg);
bottom: 92px;
left: 45px;
}

.hero p {
text-align: center;
color: white;
font-size: 17px;
padding-bottom: 32px;
padding-inline: 120px;
}

.hero div {
text-align: center;
}

.about {
background-color: var(--toughbrown);
padding-block: 72px;
padding-inline: 80px;
display: flex;
flex-direction: row;
justify-content: space-between;
align-items: center;
gap: 36px;
}

h2 {
font-size: 60px;
letter-spacing: 6px;
padding-bottom: 10px;
color: white;
position: relative;
}

.abouth2::after {
content: "";
background-image: url("redcut2.png");
object-fit: scale-down;
background-size: cover;
object-position: center;
background-repeat: none;
height: 115px;
width: 115px;
position: absolute;
transform: rotate(11deg);
bottom: 45px;
left: 208px;
z-index: -1;
}

.about p {
font-size: 17px;
line-height: 27px;
font-weight: 400;
color: white;
max-width: 65ch;
}

.aboutp {
padding-top: 18px;
}

.about img {
background-repeat: no-repeat;
background-size: cover;
object-fit: cover;
height: 460px;
width: 460px;
border-radius: 10px;
}

.services {
padding-block: 64px;
padding-inline: 80px;
}

.services h2 {
text-align: center;
color: black;
}

.servicelist {
display: flex;
flex-wrap: wrap;
gap: 36px;
}

.servicelist i {
font-size: 64px;
color: red;
}

.services p {
font-size: 17px;
line-height: 27px;
text-align: center;
padding-inline: 50px;
margin-bottom: 46px;
}

.servicelist div {
width: 400px;
flex-grow: 1;
flex-shrink: 1;
flex-basis: auto;
text-align: center;
padding: 24px;
}

.servicelist h3 {
font-size: 28px;
letter-spacing: 4px;
padding-bottom: 10px;
}

.servicelist p {
padding-inline: 5px;
margin-bottom: 0px;
}

.calltoaction {
padding-block: 50px;
padding-inline: 80px;
background-image: url("barber5.jpg");
object-fit: cover;
background-size: cover;
object-position: center;
background-repeat: none;
width: 100%;
/* height: 100svh; */
display: flex;
flex-wrap: wrap;
row-gap: 30px;
}

.calltoaction div {
flex-grow: 1;
flex-shrink: 1;
flex-basis: auto;
}

.calltoaction h3 {
font-size: 44px;
letter-spacing: 6px;
padding-bottom: 18px;
color: white;
position: relative;
}
.calltoaction h3::after {
content: "";
background-image: url("redclock.png");
object-fit: scale-down;
background-size: cover;
object-position: center;
background-repeat: none;
height: 68px;
width: 68px;
position: absolute;
right: -18px;
bottom: 30px;
transform: rotate(11deg);
z-index: -1;
}

.calltoaction div:last-of-type {
text-align: center;
padding: 32px;
background-color: rgba(255, 255, 255, 0.05);
backdrop-filter: blur(10px);
border-radius: 20px;
}

.calltoaction p {
color: white;
margin-bottom: 40px;
max-width: 65ch;
}

.testimonials {
padding-block: 20px;
padding-inline: 80px;
background-color: var(--toughbrown);
}

#name {
font-weight: bold;
}

.testimony {
height: auto;
text-align: center;
}

.person {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
gap: 10px;
padding-top: 60px;
padding-bottom: 65px;
padding-inline: 140px;
color: white;
}

.person img {
height: 160px;
width: 160px;
background-repeat: no-repeat;
background-size: cover;
object-fit: cover;
border-radius: 50%;
transition: none;
}

.person p:first-of-type {
font-size: 21px;
}

.person p:not(:first-of-type) {
font-size: 18px;
}

.quote {
font-size: 28px;
font-weight: bold;
}

.prev, .next {
display: flex;
align-items: center;
justify-content: center;
text-align: center;
padding: 20px;
border-radius: 50%;
background-color: red;
height: 56px;
width: 56px;
color: #fff;
font-weight: bold;
}

.prev:hover, .next:hover {
cursor: pointer;
}

.carousels {
display: flex;
flex-direction: row;
gap: 36px;
}

footer {
padding-top: 70px;
padding-bottom: 50px;
padding-inline: 100px;
}

.linkwrap {
display: flex;
gap: 50px;
flex-wrap: wrap;
}

.footerIntro {
font-size: 17px;
line-height: 27px;
flex-grow: 1;
flex-shrink: 1;
flex-basis: auto;
}

.footerIntro p {
max-width: 45ch;
}

.socials {
display: flex;
flex-direction: row;
gap: 16px;
margin-top: 20px;
}

.socials a {
background-color: red;
border: 1px solid transparent;
display: flex;
align-items: center;
justify-content: center;
padding: 1px;
text-align: center;
border-radius: 50%;
height: 50px;
width: 50px;
color: white;
font-size: 17px;
}

.socials a:hover {
background-color: transparent;
border: 1px solid red;
color: #000000;
}

.footerIntro img {
height: 190px;
}

.footerlink {
display: flex;
flex-direction: column;
flex-grow: 1;
flex-shrink: 1;
flex-basis: auto;
}

.footerlink i {
font-size: 24px;
padding-right: 6px;
color: black;
}

.footerlink h3 {
font-size: 24px;
letter-spacing: 3px;
padding-bottom: 16px;
}

.footerlink a {
color: red;
width: fit-content;
}

.footerlink a:not(:last-child), .footerlink p:not(:last-child) {
margin-bottom: 12px;
}

.rights {
position: relative;
bottom: 0;
left: 0;
right: 0;
display: flex;
align-items: center;
justify-content: center;
flex-wrap: wrap;
padding: 18px 1px;
/* padding: 20px; */
/* height: 50px; */
background-color: white;
color: grey;
font-size: 17px;
}

@media screen and (max-width: 475px){
    body {
    overflow-x: hidden;
    }

    .newclass {
    background-position: center;
    background-attachment: scroll;
    height: auto;
    padding-bottom: 15px;
    }

    header {
    padding-left: 18px;
    padding-right:12px;
    }

    .links {
    display: none;
    }

    .menuAccordion {
    display: block;
    }

    .menu-bar {
    display: block;
    }

    .cta {
    display: none;
    }

    .logo-container {
    gap: 8px;
    }

    .logo {
    height: 95px;
    }

    h1 {
    font-size: 52px;
    padding-top: 50px;
    line-height: 74px;
    }

    .kings::after {
    bottom: 58px;
    height: 60px;
    width: 80px;
    }

    .hero p {
    padding-inline: 15px;
    font-size: 17.5px;
    }

    .hero {
    text-align: center;
    padding-bottom: 24px;
    height: auto;
    padding-inline: 8px;
    }

    .about, .services, .calltoaction, .testimonials, footer {
    padding-inline: 13px;
    padding-block: 22px;
    }

    .about {
    padding-top: 50px;
    padding-bottom: 36px;
    flex-direction: column;
    }

    .abouth2::after {
    height: 94px;
    width: 94px;
    }

    .services h2, .calltoaction h2 {
    font-size: 48px;
    line-height: 70px;
    }

    .services p:first-of-type {
    padding-inline: 0px;
    margin-bottom: 32px;
    }

    .servicelist {
    row-gap: 12px;
    }

    .servicelist div {
    padding: 24px;
    padding-top: 12px;
    padding-bottom: 8px;
    }

    .calltoaction h3 {
    font-size: 38px;
    letter-spacing: 4px;
    }

    .calltoaction div:last-of-type {
    padding: 28px;
    padding-top: 32px;
    }

    .calltoaction h3::after {
    height: 61px;
    width: 61px;
    }

    .person {
    padding-top: 32px;
    padding-bottom: 30px;
    padding-inline: 12px;
    }

    .person img {
    height: 140px;
    width: 140px;
    }
        
    .person p:first-of-type {
    font-size: 16px;
    }

    .person p:not(:first-of-type) {
    font-size: 17px;
    }
    
    .prev, .next {
    height: 51px;
    width: 51px;
    padding: 18px;
    }
}

@media screen and (min-width: 475px) and (max-width: 640px) {
    body {
    overflow-x: hidden;
    }

    header {
    padding-left: 20px;
    padding-right: 20px;
    }

    .links {
    display: none;
    }

    .menuAccordion {
    display: block;
    width: 65%;
    }

    .menuHeader {
    height: 70px;
    }

    .menu-bar {
    display: block;
    }

    .cta {
    display: none;
    }

    .newclass {
    padding-bottom: 48px;
    padding-inline: 10px;
    height: auto;
    background-position: center;
    background-attachment: scroll;
    }

    h1 {
    font-size: 64px;
    line-height: 82px;
    padding-top: 40px;    
    padding-inline: 0;
    }

    .kings::after {
    bottom: 70px;
    height: 58px;
    width: 76px;
    }

    .hero p {
    padding-inline: 15px;
    }

    .about, .services, .calltoaction, .testimonials, footer {
    padding-inline: 20px;
    padding-block: 50px;
    /* padding-top: 50px; */
    }

    .about {
    padding-top: 70px;
    padding-bottom: 40px;
    flex-direction: column;
    }

    .abouth2::after {
    height: 95px;
    width: 95px;
    bottom: 36px;
    left: 180px;
    }

    h2 {
    font-size: 52px;
    line-height: 70px;
    }

    .about img {
    width: 100%;
    }

    /* .servicesIntro {
    padding-inline: 0px;
    margin-bottom: 20px;
    } */

    .services p {
    padding-inline: 0px;
    margin-bottom: 20px;
    }

    .servicelist {
    row-gap: 10px;
    }

    .servicelist div {
    padding-inline: 28px;
    }

    .servicelist p {
    margin-bottom: 0px;
    }
    
    .calltoaction h3::after {
    right: 57px;
    height: 60px;
    width: 60px;
    }

    .person {
    padding-top: 32px;
    padding-bottom: 30px;
    padding-inline: 20px;
    }

    .testimonials {
    padding-block: 30px;
    }

}

@media screen and (min-width: 640px) and (max-width: 768px){
    body {
    overflow-x: hidden;
    }

    .newclass {
    background-position: center;
    background-attachment: scroll;
    height: auto;
    padding-bottom: 15px;
    }

    header {
    padding-left: 24px;
    padding-right: 24px;
    }

    .links {
    display: none;
    }

    .menuAccordion {
    display: block;
    width: 60%;
    }

    .menuHeader {
    height: 94px;
    }

    .menu-bar {
    display: block;
    }

    .cta {
    display: none;
    }

    .hero {
    height: auto;
    padding-bottom: 40px;
    padding-inline: 20px;
    }

    h1 {
    font-size: 68px;
    line-height: 90px;
    }

    .kings::after {
    bottom: 76px;
    height: 60px;
    width: 78px;
    }

    .hero p {
    padding-inline: 15px;
    }

    .about, .services, .calltoaction, .testimonials, footer {
    padding-inline: 24px;
    padding-block: 50px;
    padding-top: 50px;
    }

    .about {
    padding-top: 70px;
    padding-bottom: 20px;
    flex-direction: column;
    }

    .abouth2::after {
    height: 93px;
    width: 93px;
    bottom: 52px;
    }

    .about img {
    width: 100%;
    }

    .calltoaction h3::after {
    right: 120px;
    height: 60px;
    width: 60px;
    }

    .person {
    padding-top: 32px;
    padding-bottom: 30px;
    padding-inline: 30px;
    }

    .linkwrap {
    gap: 100px;
    }

    footer {
    padding-inline: 32px;
    }
}

@media screen and (min-width: 769px) and (max-width: 1024px) {
    body {
    overflow-x: hidden;
    }

    header {
    padding-left: 16px;
    padding-right: 10px;
    }

    .button, .button2 {
    padding: 12px 32px;
    }

    .links {
    gap: 22px;
    }

    h1 {
    font-size: 68px;
    }

    .kings::after {
    bottom: 80px;
    }

    .about, .services, .calltoaction, .testimonials, footer {
    padding-inline: 24px;
    }

    .calltoaction div:last-of-type {
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    }

    .calltoaction h3::after {
    right: -30px;
    }

    .footerIntro {
    width: 100%;
    }

}

/* OFFSIDE OFFSIDE OFFSIDE OFFSIDE OFFSIDE OFFSIDE OFFSIDE */

@media screen and (min-width: 1536px) and (max-width: 1866px) {
    header {
    padding-left: 155px;
    padding-right: 142px;
    height: 112px;
    }

    h1 {
    font-size: 74px;
    }

    .hero {
    padding-top: 40px;
    padding-inline: 190px;
    }

    .hero-secondary {
    padding-inline: 200px;
    height: auto;
    }

    .contact-hero {
    height: 20svh;
    }

    .about, .services, .calltoaction, .testimonials, footer {
    padding-inline: 224px;
    }

    .about {
    justify-content: space-between;
    }

    .about p:not(:first-of-type), .donate p:not(:first-of-type), .vision-mission p:not(:first-of-type), .applications p:not(:first-of-type) {
    max-width: 70ch;
    }

    .footerlinks{
    gap: 120px;
    }
}

@media screen and (min-width: 1866px) {
    header {
    padding-top: 28px;
    padding-left: 170px;
    padding-right: 150px;
    /* height: 112px; */
    }

    h1 {
    padding-top: 200px;
    font-size: 76px;
    }

    .hero {
    padding-top: 50px;
    padding-inline: 320px;
    }

    .hero p {
    font-size: 18px;
    padding-bottom: 40px;
    }

    .calltoaction div:last-of-type {
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    }

    .hero-secondary {
    padding-inline: 320px;
    height: auto;
    }

    .contact-hero {
    height: 20svh;
    }

    .about, .services, .calltoaction, .testimonials ,footer {
    padding-inline: 452px;
    }

    .about p:not(:first-of-type), .donate p:not(:first-of-type), .vision-mission p:not(:first-of-type), .applications p:not(:first-of-type) {
    max-width: 70ch;
    }

    .footerlinks{
    gap: 120px;
    }
}

/* @media (prefers-reduced-motion: no-preference) { */
  .in-view {
    animation: fade 1s 1s both;
  }

  .not-in-view {
    opacity: 0;
  }
/* } */
