@font-face {
    font-family: "Cinzel";
    src: url("/assets/font/Cinzel-VariableFont_wght.ttf") format("truetype");
    font-weight: 400 900;
    font-display: swap;
}

@font-face {
    font-family: "Source Sans 3";
    src: url("/assets/font/SourceSans3-VariableFont_wght.ttf") format("truetype");
    font-weight: 200 900;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Source Sans 3";
    src: url("/assets/font/SourceSans3-Italic-VariableFont_wght.ttf") format("truetype");
    font-weight: 200 900;
    font-style: italic;
    font-display: swap;
}

*,
::before,
::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    min-height: 100vh;
    position: relative;
    font-family: "Cinzel", serif;
    display: flex;
    flex-direction: column;
}

a {
    text-decoration: none;
}

p {
    font-family: "Source Sans 3", sans-serif;
    font-weight: 200;
    color: #f0f0f0;
}

@media (min-width: 1024px) {
    p {
        font-size: 1.125rem;
    }
}

#panel {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 100;
    width: 100%;
    min-height: var(--header-mobile-height);
    background: #171C22;
    scrollbar-width: none;
    -webkit-box-shadow: 0px 2px 8px 4px rgba(0, 0, 0, 0.36);
    -moz-box-shadow: 0px 2px 8px 4px rgba(0, 0, 0, 0.36);
    box-shadow: 0px 2px 8px 4px rgba(0, 0, 0, 0.36);
}

#panel header {
    display: flex;
    align-items: center;
    padding-inline: 1rem;
    min-height: var(--header-mobile-height);
    position: relative;
    justify-content: space-between;
    column-gap: 0.5rem;
}

#menu-button {
    display: flex;
    flex-direction: column;
    gap: 0.3125rem;
    width: 2rem;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    flex-shrink: 0;
    /* position: absolute;
    left: 50%;
    transform: translateX(-50%); */
}

#menu-button span {
    display: block;
    width: 100%;
    height: 4px;
    background-color: var(--color-base);
}

.phone-number-mobile {
    color: var(--color-base);
    font-size: 0.875rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-transform: uppercase;
    letter-spacing: .1em;
    font-weight: 500;
    margin-left: auto;
    margin-right: 0.5rem;
}

#role-container,
#avatar,
#brand {
    display: none;
}

.name {
    font-family: "Cinzel", serif;
    color: var(--color-active);
    font-size: 1.1rem; /*1.625rem lub 1.25rem */
    text-transform: uppercase;
    font-weight: 400;
    letter-spacing: 0.05em;
    line-height: 1.2;
}

.role {
    display: none;
    font-family: "Cinzel", serif;
    color: var(--color-base);
    font-size: 1.1rem; /*1.5625rem */
    margin-top: 2px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

nav {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    background: transparent;
}

nav.visible {
    max-height: 300px;
}

nav li {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-block: 0.8rem;
    position: relative;
    width: fit-content;
    margin-inline: auto;
}

nav a {
    font-size: 1.2rem;
    text-transform: uppercase;
    color: var(--color-base);
    transition: 0.3s ease-out;
    letter-spacing: 0.05em;
    position: relative;
    padding: 0.25rem;
}

nav a:active,
nav a:hover,
nav a.active {
    color: var(--color-active);
}

#avatar {
    border-radius: 50%;
    overflow: hidden;
    margin-inline: auto;
    /* background: rgba(255, 255, 255, .04); */
    max-width: 228px;
    max-height: 228px;
    min-height: 114px;
    min-width: 114px;
    aspect-ratio: 1;
}

#avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    filter: grayscale(100%) contrast(1.05);
}

#brand {
    user-select: none;
    text-align: center;
    line-height: 1.1;
    height: fit-content;
    flex-shrink: 0;
}

#panel-content {
    display: flex;
    flex-direction: column;
    flex: 1;
    justify-content: space-between;
}

#logo {
    width: 4.6125rem;
    height: 4.6125rem;
}

footer {
    display: none;
}

footer p,
footer a {
    text-transform: uppercase;
    font-size: 1.4rem;
    letter-spacing: 0.05em;
    text-align: center;
}

.make-an-appointment {
    color: var(--color-base);
    margin-bottom: 0.5rem;
    transition: color 0.3s ease-out;
}

.make-an-appointment:hover,
.make-an-appointment:active,
.make-an-appointment.active {
    color: var(--color-active);
}

.phone-number {
    color: var(--color-active);
    display: block;
}

#role-container {
    margin-top: 1rem;
}

.copyright {
    font-size: 0.625rem;
    color: #474747;
    text-align: center;
    margin-top: 2rem;
}

.panel-title {
    font-family: "Cinzel", serif;
    color: var(--color-active);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
    flex: 1;
}

main {
    padding: 1rem;
    padding-top: var(--header-mobile-height);
    background: radial-gradient(900px 1000px at 0% 0%, rgba(156, 131, 108, 0.15), transparent 70%), linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.02)), url("/assets/images/bg-loop.jpg");
    flex: 1;
}

h1 {
    color: var(--color-base);
    margin-top: 1.5rem;
    margin-bottom: 1.8rem;
    font-weight: 400;
    letter-spacing: 0.1rem;
    font-size: 2.2rem;
    font-family: "Cinzel", serif !important;
}

.submit-btn,
.portfolio-btn,
.home-session {
    background: linear-gradient(to right, #a98d73 0%, #b79f86 50%, #a98d73 100%);
    color: #070707;
    border: none;
    padding: 0.3rem;
    padding-right: 1.75rem;
    padding-left: 0.75rem;
    font-family: "Cinzel", serif;
    font-size: 1.2rem;
    letter-spacing: 0.05em;
    cursor: pointer;
    clip-path: polygon(0 0, calc(100% - 20px) 0, 100% 50%, calc(100% - 20px) 100%, 0 100%);
    transition: filter 0.3s ease-out;
    width: fit-content;
    font-weight: 600;
}

.portfolio-btn {
    margin-left: auto;
}

.submit-btn:hover,
.portfolio-btn:hover {
    filter: brightness(1.15);
}

.desktop-hidden {
    display: block;
}

.mobile-hidden {
    display: none;
}

@media (min-width: 1024px) {
    nav li::before,
    nav li::after {
        content: '';
        position: absolute;
        width: 8px;
        height: 8px;
        opacity: 0;
        transition: opacity 0.3s ease-out;
    }

    nav li::before {
        top: 0;
        left: 0;
        border-top: 1px solid var(--color-active);
        border-left: 1px solid var(--color-active);
    }

    nav li::after {
        top: 0;
        right: 0;
        border-top: 1px solid var(--color-active);
        border-right: 1px solid var(--color-active);
    }

    nav a::before,
    nav a::after {
        content: '';
        position: absolute;
        width: 8px;
        height: 8px;
        opacity: 0;
        transition: opacity 0.3s ease-out;
    }

    nav a::before {
        bottom: 0;
        left: 0;
        border-bottom: 1px solid var(--color-active);
        border-left: 1px solid var(--color-active);
    }

    nav a::after {
        bottom: 0;
        right: 0;
        border-bottom: 1px solid var(--color-active);
        border-right: 1px solid var(--color-active);
    }

    nav li:has(a:hover)::before,
    nav li:has(a:hover)::after,
    nav li:has(a:active)::before,
    nav li:has(a:active)::after,
    nav a:active::before,
    nav a:active::after,
    nav a:hover::before,
    nav a:hover::after,
    nav li:has(a.corner-borders)::before,
    nav li:has(a.corner-borders)::after,
    nav a.corner-borders::before,
    nav a.corner-borders::after {
        opacity: 1;
    }
}

@media (min-width: 1024px) {
    body {
        display: grid;
        grid-template-columns: 22.5rem 1fr;
        position: relative;
    }

    #panel {
        position: sticky;
        left: auto;
        width: auto;
        grid-column: 1 / 2;
        grid-row: 1 / 2;
        top: 0;
        height: 100vh;
        overflow-y: auto;
        padding: 3.75rem;
        padding-bottom: 1.5rem;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        background: linear-gradient(180deg, #171b23 0%, #161b22 40%, #0d1014 90%);
        z-index: 50;
        -webkit-box-shadow: 3px 0px 11px 9px rgba(0, 0, 0, 0.4);
        -moz-box-shadow: 3px 0px 11px 9px rgba(0, 0, 0, 0.4);
        box-shadow: 3px 0px 11px 9px rgba(0, 0, 0, 0.4);
    }

    #avatar {
        display: block;
        flex-shrink: 1;
        min-width: 114px;
        min-height: 114px;
        max-width: 228px;
        max-height: 228px;
        aspect-ratio: 1;
        margin-inline: auto;
    }

    #avatar.hidden {
        display: none;
    }

    #content {
        grid-column: 2 / 3;
        grid-row: 1 / 2;
        min-height: 100vh;
    }

    footer {
        display: block;
    }

    .make-an-appointment {
        position: relative;
        display: inline-block;
    }

    .make-an-appointment::before {
        content: '';
        position: absolute;
        inset: -0.25rem;
        pointer-events: none;
        opacity: 0;
        transition: opacity 0.3s ease-out;
        background:
            linear-gradient(var(--color-active), var(--color-active)) 0 0 / 8px 1px no-repeat,
            linear-gradient(var(--color-active), var(--color-active)) 0 0 / 1px 8px no-repeat,
            linear-gradient(var(--color-active), var(--color-active)) 100% 0 / 8px 1px no-repeat,
            linear-gradient(var(--color-active), var(--color-active)) 100% 0 / 1px 8px no-repeat,
            linear-gradient(var(--color-active), var(--color-active)) 0 100% / 8px 1px no-repeat,
            linear-gradient(var(--color-active), var(--color-active)) 0 100% / 1px 8px no-repeat,
            linear-gradient(var(--color-active), var(--color-active)) 100% 100% / 8px 1px no-repeat,
            linear-gradient(var(--color-active), var(--color-active)) 100% 100% / 1px 8px no-repeat;
    }

    .make-an-appointment:hover::before,
    .make-an-appointment:active::before,
    .make-an-appointment.active::before {
        opacity: 1;
    }

    #panel header {
        padding-inline: 0;
        flex-direction: column;
        height: fit-content;
    }

    #menu-button,
    .phone-number-mobile {
        display: none;
    }

    #avatar,
    #brand,
    #role-container,
    .role {
        display: block;
    }

    #role-container {
        text-align: center;
    }

    nav {
        max-height: none;
        overflow: visible;
        background: transparent;
        padding-top: 1.75rem;
        margin-bottom: 1.75rem;
    }

    nav li {
        margin-block: 0.75rem;
        width: fit-content;
        margin-inline: auto;
    }

    .mobile-home-link {
        display: none;
    }

    nav a {
        font-size: 1.4rem;
    }

    #panel-content {
        margin-top: 2.5rem;
    }

    #panel-content.no-margin {
        margin-top: 0;
    }

    .panel-title {
        display: none;
    }

    main {
        padding: 3.75rem;
        background: radial-gradient(900px 1000px at 0% 0%, rgba(156, 131, 108, 0.15), transparent 70%), linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.02)), url("/assets/images/bg-loop.jpg");
    }

    h1 {
        margin-top: 0;
        margin-bottom: 0;
        line-height: 1.0;
    }

    #opinions {
        width: 100%;
    }

    #session-opinions {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 2rem;
    }

    .desktop-hidden {
        display: none;
    }
    .mobile-hidden {
        display: block;
    }
}