/* ==================================================
   VARIABLES
================================================== */

:root {
    --paper: #f2ede4;
    --ink: #292620;
    --muted: #817a70;

    --font: "Vazirmatn", Tahoma, sans-serif;

    --side-space: 20px;
    --motion-size: 100svh;
}


/* ==================================================
   RESET
================================================== */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;

    background: var(--paper);
    color: var(--ink);

    font-family: var(--font);
    font-weight: 400;

    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

main {
    width: 100%;
}

img,
video {
    display: block;
    width: 100%;
}

img {
    object-fit: cover;
}

video {
    object-fit: cover;
}

figure {
    margin: 0;
}

a {
    color: inherit;
    text-decoration: none;
}


/* ==================================================
   MOTION SECTIONS
================================================== */

.motion-section {
    position: relative;

    width: 100%;
    height: var(--motion-size);

    min-height: 560px;

    overflow: hidden;
    isolation: isolate;

    color: #fff;
}


/* Video */

.motion-video {
    position: absolute;
    inset: 0;

    width: 100%;
    height: 100%;

    object-fit: cover;

    filter:
        saturate(0.55)
        brightness(0.68)
        contrast(0.94);

    z-index: -2;
}


/* Overlay */

.motion-overlay {
    position: absolute;
    inset: 0;

    background:
        linear-gradient(
            to bottom,
            rgba(41, 38, 32, 0.28),
            rgba(41, 38, 32, 0.08) 45%,
            rgba(41, 38, 32, 0.40)
        );

    z-index: -1;

    pointer-events: none;
}


/* ==================================================
   HEADER
================================================== */

.site-header {
    position: absolute;

    top: 0;
    right: 0;
    left: 0;

    z-index: 2;

    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 26px var(--side-space);
}

.brand-link {
    display: flex;
    align-items: center;
}


/* Enlarged logo */

.brand-logo {
    width: 42px;
    height: 42px;

    border-radius: 50%;

    object-fit: cover;

    transition: transform 250ms ease;
}

.brand-link:hover .brand-logo {
    transform: scale(1.04);
}


/* Menu */

.landing-menu-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 10px 18px;

    border: 1px solid rgba(255, 255, 255, 0.62);
    border-radius: 100px;

    color: #fff;

    font-size: 0.76rem;
    font-weight: 400;

    transition:
        background 250ms ease,
        color 250ms ease,
        border-color 250ms ease;
}

.landing-menu-link:hover {
    background: #fff;
    border-color: #fff;

    color: var(--ink);
}


/* ==================================================
   HERO
================================================== */

.hero-content {
    position: absolute;

    top: 50%;
    left: 50%;

    width: calc(100% - 44px);

    text-align: center;

    transform: translate(-50%, -50%);
}

.hero-content h1 {
    margin: 0;

    font-size: clamp(5rem, 25vw, 8rem);
    font-weight: 400;

    line-height: 0.95;
    letter-spacing: -0.08em;
}

.hero-content p {
    margin: 24px 0 0;

    font-size: 0.78rem;
    opacity: 0.86;
}


/* ==================================================
   PLACE SECTION
================================================== */

.place-content {
    position: absolute;
    inset: 0;

    display: flex;
    align-items: flex-end;
    justify-content: space-between;

    gap: 20px;

    padding:
        24px
        var(--side-space)
        30px;
}

.place-image {
    width: 52%;

    overflow: hidden;
}

.place-image img {
    aspect-ratio: 0.78;

    object-fit: cover;
}

.place-info {
    width: 40%;

    padding-bottom: 4px;

    font-size: 0.72rem;
    line-height: 2;

    text-align: right;
}

.place-info p {
    margin: 0 0 12px;
}

.place-info p:last-of-type {
    margin-bottom: 0;
}


/* ==================================================
   CONTACT LINKS
================================================== */

.place-contact {
    display: flex;
    flex-direction: column;

    align-items: flex-start;

    gap: 10px;

    margin-top: 22px;
}

.contact-link {
    display: inline-flex;
    align-items: center;

    gap: 8px;

    color: #fff;

    font-family: Arial, Tahoma, sans-serif;
    font-size: 0.66rem;

    line-height: 1.5;

    opacity: 0.88;

    transition:
        opacity 200ms ease,
        transform 200ms ease;
}

.contact-link:hover {
    opacity: 1;

    transform: translateX(-2px);
}

.contact-icon {
    width: 15px;
    height: 15px;

    flex-shrink: 0;
}


/* ==================================================
   CLOSING
================================================== */

.closing-content {
    position: absolute;
    inset: 0;

    display: flex;
    flex-direction: column;

    align-items: center;
    justify-content: center;

    text-align: center;
}

.closing-content h2 {
    margin: 0;

    font-size: clamp(5rem, 25vw, 8rem);
    font-weight: 400;

    line-height: 1;
    letter-spacing: -0.08em;
}

.closing-content p {
    margin: 20px 0 0;

    font-size: 0.78rem;
    opacity: 0.82;
}


/* ==================================================
   FOOTER
================================================== */

.site-footer {
    display: flex;
    justify-content: space-between;

    padding: 20px var(--side-space);

    background: var(--paper);
    color: var(--muted);

    font-size: 0.62rem;
}


/* ==================================================
   SCROLL REVEAL
================================================== */

.reveal-section {
    opacity: 0;

    transform:
        translateY(35px)
        scale(0.985);

    transition:
        opacity 900ms ease,
        transform 1100ms cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal-section.is-visible {
    opacity: 1;

    transform:
        translateY(0)
        scale(1);
}


/* ==================================================
   MOBILE
================================================== */

@media (max-width: 699px) {

    :root {
        --side-space: 20px;
        --motion-size: 100svh;
    }

    .motion-section {
        min-height: 560px;
    }

    .site-header {
        padding-top: 24px;
        padding-bottom: 24px;
    }

    .brand-logo {
        width: 40px;
        height: 40px;
    }

    .landing-menu-link {
        padding: 9px 16px;

        font-size: 0.74rem;
    }

    .hero-content h1,
    .closing-content h2 {
        font-size: 23vw;
    }

    .place-content {
        padding-bottom: 26px;
    }

    .place-info {
        font-size: 0.68rem;
    }

    .place-contact {
        gap: 9px;
        margin-top: 20px;
    }

    .contact-link {
        gap: 7px;
        font-size: 0.61rem;
    }

    .contact-icon {
        width: 14px;
        height: 14px;
    }

}


/* ==================================================
   SMALL PHONES
================================================== */

@media (max-width: 360px) {

    :root {
        --side-space: 17px;
    }

    .site-header {
        padding-right: 17px;
        padding-left: 17px;
    }

    .brand-logo {
        width: 37px;
        height: 37px;
    }

    .landing-menu-link {
        padding: 8px 14px;
        font-size: 0.7rem;
    }

    .hero-content p {
        font-size: 0.7rem;
    }

    .place-info {
        font-size: 0.64rem;
    }

    .contact-link {
        font-size: 0.57rem;
    }

}


/* ==================================================
   DESKTOP
================================================== */

@media (min-width: 700px) {

    body {
        max-width: 480px;
        margin: 0 auto;

        box-shadow:
            0 0 50px rgba(0, 0, 0, 0.08);
    }

    :root {
        --motion-size: 100svh;
    }

    .motion-section {
        min-height: 700px;
    }

}


/* ==================================================
   REDUCED MOTION
================================================== */

@media (prefers-reduced-motion: reduce) {

    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .reveal-section {
        opacity: 1;
        transform: none;
    }

}