/* amita-regular - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Eagle Lake';
  font-style: normal;
  font-weight: 400;
  src: url('../fonts/eagle-lake-v26-latin-regular.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* texturina-regular - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Texturina';
  font-style: normal;
  font-weight: 400;
  src: url('../fonts/texturina-v32-latin-regular.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

:root {
    --primary: #A01E0D;
    --secondary: #BB501B;
    --background: #F4E9D3;
    --text: #111111;
    --highlight: #E3BB5A;
}

body {
    background-color: var(--background);
    color: var(--text);
    font-family: 'Texturina', serif;
    font-size: 1.2rem;
    margin: 0
}

a {
    color: var(--primary);
    text-decoration: underline;
    transition: color 0.2s ease-in-out;
}
a:hover {
    color: var(--secondary);
}

h1,
h2,
h3,
h4,
h5 {
    font-family: 'Eagle Lake', Garamond, serif
}

h1 {
    font-size: calc(2em + 1.25vw)
}

h2 {
    font-size: calc(1.75em + 0.75vw)
}

h3 {
    font-size: calc(1.5em + 0.5vw)
}

h4 {
    font-size: calc(1.2em + 0.25vw)
}

h5 {
    font-size: 1.1em
}

p {
    line-height: 1.5
}

.invert-color {
    background-color: var(--primary);
    color: var(--background)
}

.invert-color h1,
.invert-color h2,
.invert-color h3,
.invert-color h4,
.invert-color h5 {
    color: var(--background)
}

nav {
    align-items: center;
    background-color: var(--primary);
    box-shadow: #222 0 2px 4px;
    display: flex;
    height: 100%;
    max-height: 4em;
    position: fixed;
    top: 0;
    transition: all 0.1s ease-in-out;
    width: 100%;
    z-index: 100
}

nav ul {
    align-items: center;
    display: flex;
    gap: 48px;
    justify-content: flex-end;
    list-style: none;
    margin: 0em 2em;
    padding: 0
}

nav li {
    cursor: pointer;
    padding: .5em 0em;
    position: relative;
    text-align: center;
    transition: all 0.25s ease-in-out, --navBorder1 0.3s linear, --navBorder2 1s linear
}

nav li>a,
nav li>span {
    border-bottom: 2px solid var(--primary);
    color: var(--background);
    display: block;
    font-family: 'abhayalibre-regular', 'Times New Roman', serif;
    font-size: 1.25em;
    font-weight: 400;
    padding-top: 3px;
    text-decoration: none;
    transition: all 0.25s ease-in-out
}

nav>a:first-child {
    display: block;
    font-size: 1em;
    margin-left: 2em;
    margin-right: auto;
    min-height: 4em;
    padding: initial;
    position: relative
}

nav li:hover>a,
nav li:hover>span {
    border-color: var(--highlight);
    color: var(--highlight)
}

.nav-logo {
    filter: drop-shadow(0 6px 4px #222);
    height: 5em;
    padding: 4px 0 0 0;
    position: absolute;
    top: 0%;
    transition: all 0.25s ease-in-out;
}

.nav-logo:hover {
    filter: drop-shadow(0 6px 4px #CCC)
}

.nav-submenu-header {
    align-items: center;
    cursor: default;
    display: flex;
    position: relative
}

.nav-submenu-header span {
    color: var(--background) !important
}

.nav-submenu-header img {
    transform: rotate(0deg);
    transition: all 0.35s;
    width: 2em
}

.nav-submenu-header:hover span {
    border-color: var(--primary);
}
.nav-submenu-header:hover img {
    transform: rotate(180deg)
}

.nav-submenu {
    align-items: end;
    background-color: var(--primary);
    box-shadow: #222 2px 3px 3px;
    display: none;
    flex-direction: column;
    gap: 0;
    margin: 0;
    padding: 0em 1em 1em .5em;
    position: absolute;
    right: 0;
    top: 100%;
    width: 150%
}

.nav-submenu li {
    border-right: 1px solid var(--background);
    padding-right: 1em;
    text-align: right
}

.nav-submenu-header:hover .nav-submenu {
    display: flex
}

.burger-wrapper {
    position: absolute;
    right: 0;
    top: 0
}

.nav-burger {
    color: var(--background);
    cursor: pointer;
    display: none;
    height: 4em;
    position: relative;
    width: 5em;
    margin-left: auto
}

.nav-burger span {
    background-color: currentColor;
    display: block;
    height: 2px;
    position: absolute;
    right: 8px;
    transform-origin: center;
    transition-duration: 86ms;
    transition-property: background-color, opacity, transform;
    transition-timing-function: ease-out;
    width: 20px
}

.nav-burger span:nth-child(1) {
    top: 8px
}

.nav-burger span:nth-child(2) {
    top: 13px
}

.nav-burger span:nth-child(3) {
    top: 18px
}

.nav-burger.is-active span:nth-child(1) {
    transform: translateY(5px) rotate(45deg)
}

.nav-burger.is-active span:nth-child(2) {
    opacity: 0
}

.nav-burger.is-active span:nth-child(3) {
    transform: translateY(-5px) rotate(-45deg)
}

@media screen and (max-width:960px) {
    nav {
        flex-direction: column;
        height: 100%;
        max-height: 3em;
        padding: .25em 0em .5em 0em
    }

    nav>a:first-child {
        margin-left: 1em
    }

    nav.is-active {
        max-height: 100vh;
        overflow-y: scroll
    }

    nav ul {
        display: none;
        flex-direction: column;
        gap: 24px;
        justify-content: flex-start
    }

    nav.is-active>ul {
        display: flex;
        margin-bottom: 2em;
        margin-top: 5em
    }

    .nav-burger {
        display: block
    }

    .nav-logo {
        height: 3em;
        padding: unset;
    }

    .nav-submenu-header {
        flex-wrap: wrap;
        justify-content: center
    }

    .nav-submenu-header>span {
        padding-left: 2em
    }

    .nav-submenu {
        align-items: center;
        border-left: 1px solid var(--background);
        border-right: 1px solid var(--background);
        box-shadow: none;
        margin-top: 12px;
        padding: 0;
        position: initial
    }

    .nav-submenu li {
        border-right: none;
        padding-right: 0
    }
}

.center {
    text-align: center
}

.button {
    background-color: var(--background);
    border: 2.5px solid var(--secondary);
    border-radius: 12px;
    color: var(--secondary);
    cursor: pointer;
    display: inline-block;
    font-family: 'Trebuchet MS', serif;
    font-size: 1.2em;
    font-weight: 700;
    letter-spacing: 2px;
    margin: .5em .5em;
    padding: 1em 2em;
    text-decoration: none;
    transition: all 0.25s ease-in-out;
    width: fit-content
}

.button:hover {
    background-color: var(--secondary);
    border-color: var(--highlight);
    color: var(--text)
}

.glyphic {
    align-items: center;
    display: flex;
    gap: 1em;
    justify-content: space-around
}

.glyphic>img {
    background-color: var(--secondary);
    border: 5px solid var(--secondary);
    border-radius: 10%;
    height: 1em;
    transition: all 0.25s ease-in-out;
    width: 1em
}

.glyphic:hover>img {
    transform: rotate(45deg)
}

@media screen and (max-width:960px) {
    .button {
        padding: .3em .5em
    }
}

.flex-center {
    align-items: center;
    justify-content: center
}

.flex-column {
    display: flex;
    flex-direction: column
}

.flex-gap {
    gap: 20px
}

.flex-row {
    display: flex
}

.flex-wrap {
    flex-wrap: wrap
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem 3rem
}

@media screen and (max-width:960px) {
    .grid-3 {
        grid-template-columns: 100%
    }
}

.grid-3>div {
    background-color: #FFF;
    border-radius: 10px;
    box-shadow: 0 5px 30px 0 rgb(28 26 51 / .1);
    color: var(--text);
    padding: 10%
}

.grid-3 h3 {
    color: var(--text);
    margin: 0
}

.side-by-side {
    overflow: hidden;
    padding: 0;
    position: relative;
    text-align: center
}

.side-by-side>div {
    max-width: 50%;
    min-height: 400px;
    order: 1;
    width: 100%
}

.side-by-side .side-text {
    align-items: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 2em 0em
}

.side-by-side .side-text p,
.side-by-side .side-text ul {
    padding: 0 5vw;
    text-align: left
}

.side-by-side .side-image {
    line-height: 0;
    min-height: unset
}

.side-by-side .side-image img {
    width: 100%
}

@media screen and (max-width:960px) {
    .side-by-side>div {
        max-width: 100%
    }

    .side-by-side .side-image {
        order: 0
    }
}

.flex-row.pair-view {
    align-items: center;
    gap: 2em;
    justify-content: center
}

.flex-row.pair-view>div {
    display: flex
}

.pair-view .flex-column {
    align-items: center;
    justify-content: center
}

.pair-view .flex-column .flex-column {
    background-color: #fbfef6;
    box-shadow: 2px 2px 5px #383635;
    padding: 1em
}

.pair-view p,
.pair-view ul {
    max-width: calc(400px + 10vw)
}

.pair-view img {
    border-radius: 40px;
    filter: drop-shadow(2px 4px 6px black);
    width: 100%
}

@media screen and (max-width:960px) {
    .flex-row.pair-view {
        gap: 0em
    }

    .pair-view img {
        border-radius: 0;
        filter: unset
    }
}

.tab {
    position: relative
}

.tab input {
    position: absolute;
    opacity: 0;
    z-index: -1
}

.tab_content {
    border-bottom: 2px solid var(--primary);
    max-height: 0;
    overflow: hidden;
    transition: none
}

.tab input:checked~.tab_content {
    max-height: 200vh;
    transition: all 0.35s ease-in-out
}

.accordion {
    color: var(--primary);
    border: 2px solid;
    border-radius: .5rem;
    overflow: hidden
}

.tab_label,
.tab_close {
    align-items: center;
    background: var(--primary);
    color: var(--background);
    cursor: pointer;
    display: flex
}

.tab_label {
    justify-content: space-between;
    padding: 1rem
}

.tab_label img {
    transform: rotate(0deg);
    transition: all 0.35s;
    width: 2em
}

.tab input:checked+.tab_label img {
    transform: rotate(180deg)
}

.tab_content p {
    margin: 0;
    padding: 1rem !important
}

.tab_close {
    justify-content: flex-end;
    padding: .5rem 1rem;
    font-size: .75rem
}

.accordion-radio {
    --theme: var(--secondary)
}

.tab {
    max-width: 80%
}

@media screen and (max-width:960px) {
    .tab {
        max-width: 100%
    }
}

footer {
    background-color: var(--primary);
    box-shadow: #222 0 -2px 4px;
    color: var(--background);
    gap: 2em;
    justify-content: center
}

footer>div {
    order: 2;
    padding: 2%;
    text-align: center;
    width: 400px
}

footer h1 {
    font-size: 1.25em
}

footer h1,
footer a {
    color: var(--background)
}

@media screen and (max-width:1024px) {
    footer>div:first-child {
        order: 0
    }

    footer>div:last-child {
        order: 1
    }
}

.social-button {
    background-color: var(--background);
    border: 2px solid var(--secondary);
    border-radius: 50%;
    display: inline-block;
    height: 32px;
    padding: 16px;
    transition: all 0.2s ease-in-out;
    width: 32px
}

.social-button>img {
    aspect-ratio: 1 / 1;
    transition: all 0.2s ease-in-out;
    width: 32px
}

.social-button:hover {
    background-color: var(--secondary);
    border-color: var(--highlight)
}

.social-button:hover>img {
    filter: brightness(10)
}

.footer-logo {
    filter: drop-shadow(0 0 0 transparent);
    transition: all 0.25s ease-in-out
}

.footer-logo:hover {
    filter: drop-shadow(0 6px 4px #CCC)
}

.delay-animation {
    animation-play-state: paused;
    opacity: 0
}

.delay-animation.visible {
    opacity: 1
}

.activate {
    animation-play-state: running
}

.fadeUp.activate {
    animation-delay: 0.1s;
    animation-duration: 1s;
    animation-fill-mode: forwards;
    animation-name: fadeUp;
    opacity: 0;
    transform: translateY(20px);
    will-change: transform
}

@keyframes fadeUp {
    0% {}

    100% {
        transform: translateY(0);
        opacity: 1
    }
}

.fadeLeft.activate {
    animation-delay: 0.1s;
    animation-duration: 1s;
    animation-fill-mode: forwards;
    animation-name: fadeLeft;
    opacity: 0;
    transform: translateX(20px);
    will-change: transform
}

@keyframes fadeLeft {
    0% {}

    100% {
        transform: translateX(0);
        opacity: 1
    }
}

.fadeRight.activate {
    animation-delay: 0.1s;
    animation-duration: 1s;
    animation-fill-mode: forwards;
    animation-name: fadeRight;
    opacity: 0;
    transform: translateX(-20px);
    will-change: transform
}

@keyframes fadeRight {
    0% {}

    100% {
        transform: translateX(0);
        opacity: 1
    }
}