/* General Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --color-red: #8C2E24;
  --color-eggshell: #FFEFDC;
  --color-yellow: #D49141;
  font-size: 16px;
}

body {
  background-color: var(--color-eggshell);
  color: #3A3A3A;
  line-height: 1.6;
  height: 100vh;
  width: 100vw;
  overflow: hidden;
  font-family: "Inter", sans-serif;
}

.container {
  display: grid;
  grid-template-columns: 2fr 26vw;
  grid-template-rows: auto;
  gap: 0;
  height: calc(100vh - 7rem);
  min-height: 100%;
  padding-bottom:100px;
  overflow: auto;
}

header {
  background-color: var(--color-red);
  color: var(--color-eggshell);  
  display: flex;
  flex-direction: column;  
  padding: 5rem;
}

.text-section {
  background-color: var(--color-red);
}

.header__title {
  position: relative;
}

.header__title img {
  position: absolute;
  top: 0;
  left: -5rem;
}

header .logo {
  margin-bottom: 5rem;
}

header .logo img {
  height: 7rem;
  width: auto;
}

header h1 {
  font-size: 5rem;
  font-weight: bold;
  font-family: "Playfair Display", serif;
  z-index: 20;
  position: relative;
  color: var(--color-eggshell);
  line-height: 1.3;
  display: inline;
  left: 4rem;
  bottom: 1.4rem;
}

header h1 span {
  background-color: var(--color-red);
  padding: 0 2rem;
}

header h1 span:nth-of-type(2) {
    position: relative;
    left: 4rem;
    z-index: 10;
}

.pattern img {
  width: 100%;
  height: auto;
}

main {
  background-color: var(--color-red);
  color: var(--color-eggshell);
  font-size: 1.4rem;
  line-height: 2rem;
  font-weight: 300;
  grid-column: 1;
  padding: 5rem;
  padding-top: 0;
  max-width: 940px;
  min-height: 500px;
}

main p {
  margin-bottom: 1rem;;
}

footer {
  background-color: var(--color-eggshell);
	-webkit-animation:slide-in-bottom .5s cubic-bezier(.25,.46,.45,.94) both;animation:slide-in-bottom .5s cubic-bezier(.25,.46,.45,.94) both;
	animation-delay:1s;
  color: #3A3A3A;
  padding: 0 5rem;
  font-size: 0.9rem;  
  width: 100vw;
  height: 7rem;
  z-index: 50;
  display: flex;
  justify-content: space-between;
  position:fixed;
  bottom: 0px;
}

footer .contact {
  display: flex;
  gap: 2rem;
}

footer .pay-off {
  display: flex;
  align-items: center;
  font-size: 1.2rem;
  font-family: 'Playfair Display';
  color: var(--color-yellow);
}


footer .contact a,
footer .address {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: #3A3A3A;
}

footer img {
  margin-right: 10px;
  width: 20px;
  height: 20px;
  object-fit: contain;
}

.image-section {
  z-index: 20;
  position: relative;
}

.image-section img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.image-section img:nth-of-type(2) {
  position: absolute;
  right: 60%;
  top: 50%;
  height: 50vh;
  width: 27vw;
  box-shadow: 4px 4px 20px #00000052
}

/* Media Queries */


@media (max-width: 1400px) {
  main {
    font-size: 0.6rem;
    max-width: 60vw;
    line-height: 1.4rem;
  }
  header h1 {
    left: 0;
  }
}

@media (max-width: 1200px) {
  .container {
    grid-template-columns: 1fr;
  }
  main {
    font-size: 1rem;
    max-width: 100%;
  }
  footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 2rem;
  }
}


@media (max-width: 1000px) {
  header h1 {
    font-size: 4rem;
  }
  .header__title img {
    height: 9rem;
  }
  
}


@media (max-width: 800px) { 
  header, main {
    padding: 2rem;
  }
  main {
    padding-top: 0;
  }
  header .logo {
    margin-bottom: 4rem;
    display: flex;
    justify-content: center;
  }
  header .logo img { 
    height: 4rem;
  }

  header h1 {
    font-size: 3rem;
  }

  header h1 span {
    padding: 0 1rem;
  }
  .header__title {
    display: flex;
    justify-content: center;
  }
  .header__title img {
    height: 6rem;
  }


  .image-section {
    display: flex;
    width: 100vw;
  }

  .image-section img, .image-section img:nth-of-type(2) {
    position: relative;
    top: auto;
    left: auto;
    right: auto;
    flex: 1;
    width: auto;
    height: 20vh;
    box-shadow: none;
  }

  .container {
    height: auto;
  }

  footer {
    height: auto;
    text-align: center;
  }
}

@media (max-width: 700px) { 
  :root {
    font-size: 14px;
  }
  .header__title {
    justify-content: flex-start;
  }
  header h1 {
    font-size: 2.5rem;
    bottom: 0.5rem;
  }
  header h1 span {
    padding: 0 0.5rem;
  }
  .header__title img {
    height: 6rem;
  }
  body {
    overflow-y: visible;
  }
  footer .contact {
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 0.4rem;
  }
  footer img {
    height: 15px;
    width: 15px;
  }
}

@-webkit-keyframes slide-in-bottom{0%{-webkit-transform:translateY(1000px);transform:translateY(1000px);opacity:0}100%{-webkit-transform:translateY(0);transform:translateY(0);opacity:1}}@keyframes slide-in-bottom{0%{-webkit-transform:translateY(1000px);transform:translateY(1000px);opacity:0}100%{-webkit-transform:translateY(0);transform:translateY(0);opacity:1}}