/*Reset CSS*/
/* CSS RESET
================================================== 
================================================== */

html,
body,
div,
main,
span,
applet,
object,
iframe,
h1,
h2,
h3,
h4,
h5,
h6,
p,
blockquote,
pre,
a,
button,
abbr,
acronym,
address,
big,
cite,
code,
del,
dfn,
em,
img,
ins,
kbd,
q,
s,
samp,
small,
strike,
strong,
sub,
sup,
tt,
var,
b,
u,
i,
center,
dl,
dt,
dd,
ol,
ul,
li,
fieldset,
form,
label,
legend,
input,
textarea,
table,
caption,
tbody,
tfoot,
thead,
tr,
th,
td,
article,
aside,
canvas,
details,
embed,
figure,
figcaption,
footer,
header,
hgroup,
menu,
nav,
output,
ruby,
section,
summary,
time,
mark,
audio,
video,
::before,
::after {
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 100%;
  font: inherit;
  vertical-align: baseline;
  text-decoration: none;

  box-sizing: border-box;
}

/* HTML5 - Older browser support
================================================== */
article,
aside,
details,
figcaption,
figure,
footer,
header,
hgroup,
menu,
nav,
section {
  display: block;
}

/* BODY
================================================== */
body {
  line-height: 1;
}

/* LISTS - Clear bullets
================================================== */
ol,
ul {
  list-style: none;
}

/* QUOTES
================================================== */
blockquote,
q {
  quotes: none;
}
blockquote:before,
blockquote:after,
q:before,
q:after {
  content: "";
  content: none;
}

/* TABLES
================================================== */
table {
  border-collapse: collapse;
  border-spacing: 0;
}
/*End Resest CSS*/

* {
  border: 0;
  margin: 0;
  outline: 0;
  padding: 0;
}

html {
  font-size: 62.5%;
}

body {
  background-color: #ede7f1;
  color: #000;
  font-family: "Lato", Arial, sans-serif;
  font-size: 16px;
  font-weight: normal;
  position: relative;
}

header {
  align-items: center;
  display: flex;
  justify-content: center;
  margin-bottom: 60px;
  padding: 20px 0 0;
  width: 100%;
}

header img {
  width: 100px;
}

nav {
  background-color: #288880;
  border-bottom: 55px #b53434 inset;
  border-width: 5px;
  padding: 40px 20px;
  width: 100%;
}

a:hover {
  color: #FFF;
}

a:visited {
  color: #2dd6d6;
}

a:link {
  color: #ede7f1;
}

a:active {
  color: #73d878;
}

a:focus-visible {
  color: #73d878;
  outline: thin solid #FFF;
}

li:has(a:focus-visible):after {
  background: #b53434;
  width: 80%;
}

a {
  display: inline-block;
  height: inherit;
  position: relative;
}

.linkWrapper {
  align-items: center;
  color: #ede7f1;
  display: flex;
  flex-direction: row;
  font-size: 1.5rem;
  gap: 60px;
  justify-content: center;
  width: 100%;
}

@media (min-width: 615px) {
  .linkWrapper {
    font-size: 2rem;
    gap: 100px;
  } 
}

li {
  cursor: pointer;
}

li a {
  padding-bottom: 5%;
}

li:hover:not(.has-form) > a {
  transition: color .3s ease 0s;
}

li.currentLink a {
  color: #FFF;
}

li.currentLink a:after {
  background: #FFF;
  content: '';
  display: block;
  height: 3px;
  margin: auto;
  transition: width .5s ease, background-color .5s ease;
  width: 0px;
}

li:after {
  background: transparent;
  content: '';
  display: block;
  height: 3px;
  margin: 5px auto auto;
  transition: width .5s ease, background-color .5s ease;
  width: 0px;
}

li.currentLink:after {
  background: #b53434;
  width: 80%;
}

li:hover:after {
  background: #b53434;
  width: 80%;
}

main, section:nth-of-type(1) article h1, footer {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

main {
  align-items: center;
  width: 100%;
}

section {
  display: flex;
  width: inherit;
}

section p, footer p {
  color: #ede7f1;
}

article {
  align-items: center;
  display: flex;
  flex-direction: column;
  justify-content: space-evenly;
  text-align: center;
}

h1, h2 {
  font-family: Lora;
}

section:nth-of-type(3) {
  display: flex;
  flex-direction: column;
  justify-content: space-evenly;
}

section:nth-of-type(1) article {
  background: url('./assets/home_garden3_slider_bg.jpg') no-repeat;
  height: 780px;
  padding-top: 20px;
  width: inherit;
}

section:nth-of-type(1) article h1 {
  color: #FFF;
  font-size: 7rem;
  line-height: 109px;
  text-align: center;
  width: 100%;
}

hr {
  background-color: #b53434;
  margin: auto;
}

section:nth-of-type(1) article h1 hr {
  height: 10px;
  width: 100px;
}

section:nth-of-type(1) article p {
  background-color: #288880;
  font-size: 1.7rem;
  line-height: 30px;
  margin: 0 auto;
  padding: 20px;
  text-align: left;
  width: 100%;
}

section:nth-of-type(2) {
  background-color: #288880;
  border-top: 5px #b53434 inset;
  height: 350px;
  margin: auto auto 40px;
  overflow: hidden;
  padding-top: 20px;
  position: relative;
  width: 100%;
}

section:nth-of-type(2) img {
  left: 10%;
  opacity: .2;
  position: absolute;
  top: 0;
  width: 500px;
}

section:nth-of-type(2) p {
  font-size: 2.1rem;
  line-height: 36px;
  margin: auto;
  padding: 0 3%;
  width: 100%;
}

section:nth-of-type(3) {
  margin-bottom: 60px;
}

section:nth-of-type(3) article:nth-of-type(1), section:nth-of-type(3) article:nth-of-type(2) {
  border-bottom: solid 2px #288880;
  margin-bottom: 10px;
  padding-bottom: 30px;
}

h2 {
  font-size: 3rem;
  line-height: 50px;
  margin-bottom: 20px;
}

h2 hr {
  height: 5px;
  width: 70px;
}

figure {
  margin: 0;
  padding: 0;
  width: 90%;
}

figure img {
  margin-bottom: 10px;
  width: inherit;
}

figcaption {
  font-size: 2rem;
}

footer div:nth-of-type(1) ul, footer div:nth-of-type(2) {
  display: flex;
  flex-direction: row;
}

footer {
  align-items: center;
  background: #666;
  height: 200px;
  overflow: hidden;
  padding: 0 4%;
}

footer div:nth-of-type(1) {
  margin-bottom: 20px;
  width: 100%;
}

div:nth-of-type(1) ul {
  border-bottom: solid 2px #ede7f1;
  justify-content: space-between;
  padding-bottom: 15px;
  width: inherit;
}

footer div:nth-of-type(2) {
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

footer img {
  width: 40px;
}

@media (min-width: 615px) {
  section:nth-of-type(2) p {
    font-size: 2.5rem;
    width: 950px;
  }
}

@media (min-width: 915px) {
  section:nth-of-type(3) {
    display: flex;
    flex-direction: row;
  }

  section:nth-of-type(3) article {
    margin-bottom: 0px;
  }

  section:nth-of-type(3) article:nth-of-type(1), section:nth-of-type(3) article:nth-of-type(2) {
    border: 0;
    margin-bottom: 0;
    padding-bottom: 0;
  }
}

@media (min-width: 1000px) {
  .linkWrapper {
    font-size: 2rem;
    gap: 100px;
  }

  section:nth-of-type(1) article h1 {
    font-size: 9rem;
    line-height: 139px;
  }

  section:nth-of-type(1) article p {
    line-height: 24px;
    width: 600px;
  }

  section:nth-of-type(2) p {
    font-size: 3rem;
    line-height: 50px;
    padding: 0;
    width: 950px;
  }

  footer {
    padding: 0 20%;
  }
}