/* =======================================================================
   Fonts
   ======================================================================= */

@font-face {
  font-family: "NotoSans";
  src: url("../fonts/NotoSans-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
}

@font-face {
  font-family: "NotoSans";
  src: url("../fonts/NotoSans-Italic.ttf") format("truetype");
  font-weight: 400;
  font-style: italic;
}

@font-face {
  font-family: "NotoSans";
  src: url("../fonts/NotoSans-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
}

/* =======================================================================
   Global
   ======================================================================= */

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
	color: #432818;
	background-color: #fefae0;
	font-family: "NotoSans";
    line-height: 1.65;
}

h1 {
    font-size: 38px;
    margin: 0 0 20px;
}

h2 {
    font-size: 32px;
    margin: 32px 0 18px;
}

h3 {
    font-size: 26px;
    margin: 32px 0 16px;
}

h4 {
    font-size: 22px;
    margin: 32px 0 14px;
}

h5 {
    font-size: 19px;
    margin: 32px 0 12px;
}

a {
    color: #432818;
}

ul {
    padding-left: 42px;
}

li {
    margin-bottom: 8px;
    padding-left: 8px;
}

.container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 20px;
}

.border-radius {
    border-radius: 26px;
}

/* =======================================================================
   Header
   ======================================================================= */

body[data-mobilemenu="active"] {
    overflow: hidden;
}

header#header {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 20px 0;
}

.logo-container {
    display: flex;
    align-items: center;
}

.logo-container a {
    display: flex;
    text-decoration: none;
}

.logo-container .logo-image {
    width: 92px;
    height: 95px;
}

.logo-container .logo-copy-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0 24px;
}

.logo-container .logo-copy-container .logo-title {
    font-weight: 700;
    font-size: 30px;
    color: #432818;
}

.logo-container .logo-copy-container .logo-description {
    font-size: 18px;
    color: #432818;
}

nav.navigation {
    display: flex;
    gap: 42px;
}

nav.navigation a {
    font-weight: 700;
    color: #432818;
    text-decoration: none;
    border-bottom: 2px solid transparent;
}

nav.navigation a:hover {
    border-bottom: 2px solid #432818;
}

nav.navigation a.active {
    border-bottom: 2px solid #432818;
}

header#header #hamburger-menu {
    display: none;
    padding: 12px;
    margin: 0;
    border: none;
    background-color: transparent;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

#header #hamburger-menu span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: #432818;
    margin: 5px 0;
    transition: all 0.3s ease-in-out;
}

main#main {
    padding-top: 76px;
}

/* =======================================================================
   Footer
   ======================================================================= */

footer#footer {
    display: flex;
    justify-content: space-between;
    gap: 42px;
    padding: 54px 0;
}

footer#footer .footer-contact {
    display: flex;
    gap: 42px;
}

footer#footer .footer-contact a {
    font-weight: 700;
    color: #432818;
    text-decoration: none;
    border-bottom: 2px solid transparent;
}

footer#footer .footer-contact a:hover {
    text-decoration: none;
    border-bottom: 2px solid #432818;
}

/* =======================================================================
   Content – Hero
   ======================================================================= */

section.hero {
    display: flex;
    align-items: center;
    flex-direction: row;
    justify-content: space-evenly;
    padding-bottom: 110px;
}

section.hero .main-content-box-image-container {
    width: 38%;
}

section.hero .main-content-box-image-container img {
    width: 100%;
}

section.hero .main-content-box-copy-container {
    width: 55%;
    padding-left: 7%;
}

section.hero .main-content-box-copy-container.full-width {
    width: 100%;
    padding-left: 0;
}

/* =======================================================================
   Content – Cards
   ======================================================================= */

.card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-start;
    background-color: #fbe5c9;
    border-radius: 26px;
    padding: 40px 42px;
}

.card[data-bg="1"] {
    background-color: #f1e0c2;
}

.card[data-bg="2"] {
    background-color: #ffeec4;
}

.card[data-bg="3"] {
    background-color: #faedcd;
}

.card-main {
    grid-column: span 2;
}

/* =======================================================================
   Content – Top Grid
   ======================================================================= */

.top-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 32px;
    margin-bottom: 40px;
}

.card-image {
    padding: 0;
    position: relative;
    overflow: hidden;
}

.card-image__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 26px;
    position: absolute;
}

.card-image__label {
    position: absolute;
    left: 40px;
    bottom: 45px;
    color: #ffffff;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.85rem;
}

.card-image__label a {
    position: relative;
    padding-bottom: 6px;
    color: #ffffff;
    text-decoration: none;
}

.card-image__label a:hover {
    text-decoration: none;
}

.card-image__label a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 2px;
    background-color: #ffffff;
}

.card-title {
    margin-top: 0;
}

/* =======================================================================
   Content – Card List
   ======================================================================= */

.card-list {
    list-style: none;
    padding: 0;
    margin: 12px 0 30px;
}

.card-list li {
    position: relative;
    padding-left: 22px;
}

.card-list li::before {
    content: "⇒";
    position: absolute;
    left: 0;
    top: 0;
}

/* =======================================================================
   Content – Text Button
   ======================================================================= */

.text-button {
    display: inline-block;
    margin-top: 8px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 0.85rem;
    text-decoration: none;
    color: #432818;
    padding-bottom: 6px;
    position: relative;
}

.text-button::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40%;
    height: 2px;
    background-color: #432818;
    transition: width 250ms ease-out;
}

.text-button:hover::after {
    width: 100%;
}

/* =======================================================================
   Responsive – 1024px
   ======================================================================= */

@media only screen and (max-width: 1024px) {

    .logo-container .logo-image {
        width: 72px;
        height: 74px;
    }

    .logo-container .logo-copy-container {
        padding: 0px 12px;
    }

    .logo-container .logo-copy-container .logo-title {
        font-size: 22px;
    }

    .logo-container .logo-copy-container .logo-description {
        font-size: 14px;
    }

    nav.navigation,
    footer#footer .footer-contact {
        gap: 20px;
    }

    header#header nav.navigation a {
        font-size: 14px;
    }

    .top-grid article.card:nth-of-type(1) {
        order: 1;
    }

    .top-grid article.card:nth-of-type(3),
    .top-grid article.card:nth-of-type(4),
    .top-grid article.card:nth-of-type(5) {
        order: 2;
    }

    .top-grid {
        grid-template-columns: repeat(2, 1fr);
    }

}

/* =======================================================================
   Responsive – 820px
   ======================================================================= */

@media only screen and (max-width: 820px) {

    footer#footer {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }

}

/* =======================================================================
   Responsive – 768px
   ======================================================================= */

@media only screen and (max-width: 768px) {

    h1 {
        font-size: 32px;
        margin: 0 0 20px;
    }

    h2 {
        font-size: 28px;
        margin: 32px 0 18px;
    }

    h3 {
        font-size: 24px;
        margin: 32px 0 16px;
    }

    h4 {
        font-size: 21px;
        margin: 32px 0 14px;
    }

    h5 {
        font-size: 19px;
        margin: 32px 0 12px;
    }

    header#header {
        position: fixed;
        width: 100%;
        top: 0;
        left: 0;
        padding: 20px;
        background: #fefae0;
        z-index: 9999;
    }

    main#main {
        padding-top: 164px;
    }

    header#header #hamburger-menu {
        display: block;
    }

    header#header #hamburger-menu span {
        transition: all 250ms ease-out;
    }

    body[data-mobilemenu="active"] header#header #hamburger-menu span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    body[data-mobilemenu="active"] header#header #hamburger-menu span:nth-child(2) {
        opacity: 0;
    }

    body[data-mobilemenu="active"] header#header #hamburger-menu span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    header#header nav.navigation {
        display: none;
        position: fixed;
        background: #fefae0;
        width: 100%;
        left: 0;
        top: 114px;
        height: calc(100vh - 114px);
        flex-direction: column;
        padding: 32px;
    }

    body[data-mobilemenu="active"] header#header nav.navigation {
        display: flex;
        align-items: flex-start;
    }

    section.hero .main-content-box-image-container {
        width: 80%;
        order: 2;
        margin-top: 48px;
    }

    section.hero .main-content-box-copy-container {
        width: 100%;
        padding-left: 0;
    }

    section.hero {
        padding-bottom: 84px;
        flex-direction: column;
    }

}

/* =======================================================================
   Responsive – 650px
   ======================================================================= */

@media only screen and (max-width: 650px) {

    .top-grid {
        grid-template-columns: 1fr;
    }

    .card-main {
        grid-column: span 1;
    }

    .card-image__img {
        position: static;
    }

}

/* =======================================================================
   Responsive – 425px
   ======================================================================= */

@media only screen and (max-width: 425px) {

    nav.navigation {
        flex-direction: column;
        align-items: center;
    }

    footer#footer .footer-contact {
        flex-direction: column;
        align-items: center;
        margin-top: 48px;
    }

}
