html {
  scroll-behavior: smooth;
  --margin: 90px;
  --padding: 5vh;
  --regular-red: #E51A17;
  --dark-red: #BF2826;
  --light-color-2: #fffaface;
  --light-color: #fffded;
  --dark-gray: #534747;
}

*{
  max-width: 100%;
}

body{
  font-family: 'Work Sans', sans-serif;
  font-weight: 200;
  margin: 0;
  padding: 0;
  height: 230vh;
}

section, footer {
  border-top: solid 13px var(--dark-red);
}

* b {
  font-weight: 600;
}

h1 b, h2 b {
  font-weight: bold;
}



/* NAVIGATION MENU */
nav#nav-bar {
  height: 10vh;
  padding-block: 5px;
  padding-inline-start: var(--margin);
  display: flex;
  justify-content: space-between;
  align-items: center;  
  align-self: normal;
  background-color: var(--dark-gray);
}   


img.logo {
  width: 144px;
  height: auto;
  align-self: center;
  overflow-clip-margin: unset;

}

.logo:hover {
  cursor: pointer;
}

div.desktop-nav{
  width: fit-content;
  height: fit-content;
  box-sizing: border-box;
  display: flex;
  align-items: end;
  gap: 55px;
  justify-content: space-around;
  border-bottom: solid 1px #ffeded81;
  border-inline-start: solid 1px #ffeded81;
  padding-block: 13px;
  padding-inline-start: 55px;
  padding-inline-end: var(--margin);
}

a.nav-item {
  width: 90px;
  height: 100%;
  line-height: 40px;
  font-size: 16px;
  font-weight: 300;
  color: var(--light-color);
  list-style: none;
  text-align: center;
  text-decoration: none;
}

a.nav-item:last-child {
  width: 157px;
  font-weight: bold;
  color: var(--regular-red);
  background-color: var(--light-color);
  border-radius: 145px;
}


/* HAMBURGER NAV */

div.hamburger-nav {
  display: none;
  margin-inline: var(--margin);
}

.hamburger-menu {
  position: relative;
  display: inline-block;
}

.hamburger-icon {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 24px;
  width: 30px;
  cursor: pointer;
}

.hamburger-icon span {
  width: 100%;
  height: 2px;
  background-color: var(--light-color);
  transition: all 0.3 ease-in-out;
}

.menu-links {
  position: absolute;
  top: 10vh;
  right: 0;
  background-color: var(--dark-gray);
  width: 100%;
  max-height: 0;
  overflow: hidden;
  transition: all 0.3 ease-in-out;
}

.menu-links a {
  display: block;
  padding: 25px;
  font-size: 18px;
  text-align: center;
  color: var(--light-color);
  text-decoration: none;
  transition: all 2.0 ease-in-out;
}

.menu-links li {
  list-style: none;
}

.menu-links.open {
  max-height: 369px;
  margin-block: 0px;
}


.hamburger-icon.open span:first-child {
  transform: rotate(45deg) translate(10px, 5px);
}

.hamburger-icon.open span:nth-child(2) {
  opacity: 0;
}

.hamburger-icon.open span:last-child {
  transform: rotate(-45deg) translate(10px, -5px);
}

.hamburger-icon span:first-child {
  transform: none;
}

.hamburger-icon span:first-child {
  opacity: 1;
}

.hamburger-icon span:first-child {
  transform: none;
}
/* HERO SECTION */

section#hero {
  background-image: linear-gradient( rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.05) ), url("../assets/photos/roof-under-construction.webp");
  box-shadow: inset 0 0 0 1000px rgba(229, 26, 23, 0.062);
  background-size: cover;
  background-position: 20% 15%;
  background-repeat: no-repeat;
  display: flex;
  flex-direction: column;
  align-items: end;
}


div.banner {
  font-size: 64px;
  background-color: var(--dark-red);
  padding-block: 80px;
  padding-inline: var(--margin);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  justify-self: self-end;
  box-sizing: border-box;
}

.banner {
  width: fit-content;
  height: fit-content;

}

.banner#side-banner {
  padding-block: 0px;
  height: 110px;
}

.banner#bottom-banner {
  width: 616px;
  height: fit-content;

}

.banner-text {
  width: 100%;
  color: var(--light-color);
  text-align: start;
}

h1.banner-text {
  font-size: 1em;
  margin-block-start: 8px;
  margin-block-end: 0.5vw;
}

h2.banner-text {
  font-weight: 400;
  font-size: 0.5em;
  margin-top: 0px;
  margin-bottom: 10px;  
}

h3.banner-text {
  font-weight: 300;
  font-size: 0.6em;
  margin-bottom: 10px;
}

p.banner-text {
  font-family: 'Roboto Serif', serif;
  font-size: 0.4em;
  margin-block: 0px;
  color: #fffaface;
}

a.banner-button {
  width: fit-content;
  padding-inline: 1.3em;
  line-height: 55px;
  font-size: 0.45em;
  color: var(--dark-red);
  background-color: var(--light-color);
  font-weight: 600;
  align-self: center;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 5vh;
  text-decoration: none;
  border: solid 2px var(--light-color);
  border-radius: 20px;
}

/* SERVICES SECTION */

section#services{
  background-color: var(--light-color);
  padding-block-start: 21px;
  padding-block-end: 55px;
  display: flex;
  flex-direction: column;
  gap: 13px;
}

#services h1 {
  margin-inline: var(--margin);
  text-align: center;
  font-size: 20px;
}

h1.text {
  font-weight: 400;
  color: var(--dark-gray);
}

h2.text {
  font-size: 32px;
  font-weight: 300;
  color: var(--dark-red);
  margin-block-start: 21px;
  margin-block-end: 10px;
 }

ul.list {
  align-self: flex-start;
  list-style-type: square;
  list-style-position: inside;
  padding: 0px;
  line-height: 34px;
  font-size: 16px;
  font-weight: 400;
  margin-block-start: 0px;
  margin-block-end: 13px;
}

div.cards-container {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  column-gap: 13px;
  row-gap: 21px;
  padding-inline: var(--margin);
  box-sizing: border-box;
} 


div.card {
  width: 369px;
  height: 708px;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: 0px 1px 3px 1px rgba(0, 0, 0, 0.10);
  overflow: hidden;
  border-radius: 0.3rem;
  background-color: var(--light-color);
  box-sizing: border-box; 
  padding-bottom: 55px;
}

div.card-image {
  width: inherit;
  height: 369px;
  overflow: hidden;
}

div.card-image img {
  height: 100%;
  width: 100%;
  object-fit: cover;
  overflow-clip-margin: unset;
}

div.card-text {
  margin-inline: 34px;
  color: var(--dark-gray);
}

.card-text .more-button {
  font-size: 20px;
  color: var(--dark-red);
  width: 100%;
  font-weight: 300;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-decoration-color: var(--dark-red);
  display: flex;
  justify-content: flex-end;
  display: none; /* Comment this line to switch the button back on. */
}

/*CTA */

#cta-section {
  background-size: cover;
  background-image: url("../assets/photos/geometric-wallpaper.webp");  
  display: flex;
  justify-content: center; 
}

#cta-section div.banner {
  margin-inline:var(--margin);
  padding-inline: 5vw;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 55px;  
  border: solid 1px var(--light-color);
}

#cta-section .banner-text {
  width: inherit;
  text-align: center;

}

/* FOOTER */

footer {
  background-color: var(--dark-gray);
  height: fit-content;
  min-height: 90vh;
  width: 100%;
  box-sizing: border-box;
  display: flex;
  flex-direction: row;
  align-content: start;
  justify-content: space-evenly;
  padding: var(--margin);
  column-gap: 3vw;
  row-gap: 55px;
  padding-block-start: 90px;
  padding-block-end: 250px;
}

.footer-content {
  width: 20vw;
  min-width: 250px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  text-align: start;
  gap: 10vh;
  color: var(--light-color-2);
}

.footer-content *{
  width: 100%;
}

h4.footer-text{
  font-weight: 500;
  margin-block: 0px;
}

h3.footer-text{
  margin-block: 0px;
}
.footer-icons  {
  display: flex;
  justify-content: center ;
  gap: 2rem;
}

.footer-icons a {
  width: 2rem;
  height: 2rem;
}

footer .logo {
  width: 15vw;
  min-width: 150px;
  height: fit-content;
  display: flex;
}
