/*
|--------------------------------------------------------------------------
| Cravéa Core Styles
|--------------------------------------------------------------------------
*/

:root {
    --page-width: 1200px;
    --header-height: 72px;

    --background: #ffffff;
    --surface: #ffffff;
    --surface-soft: #f7f7f7;

    --text: #181818;
    --text-muted: #6f6f6f;

    --border: #e5e5e5;

    --accent: #111111;
    --accent-hover: #333333;
    --accent-text: #ffffff;

    --radius: 6px;
}

/*
|--------------------------------------------------------------------------
| Reset
|--------------------------------------------------------------------------
*/

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

html,
body {
    width: 100%;
    min-height: 100%;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    min-width: 320px;
    min-height: 100vh;

    background: var(--background);
    color: var(--text);

    font-family: Arial, Helvetica, sans-serif;
    font-size: 16px;
    line-height: 1.5;

    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img {
    display: block;
    max-width: 100%;
    height: auto;
}

a {
    color: inherit;
}

button,
input,
select,
textarea {
    font: inherit;
}

/*
|--------------------------------------------------------------------------
| Site Structure
|--------------------------------------------------------------------------
*/

.site-shell {
    width: 100%;
    min-height: 100vh;

    display: flex;
    flex-direction: column;
}

.site-main {
    width: 100%;

    flex: 1 0 auto;

    display: flex;
    flex-direction: column;
}

/*
|--------------------------------------------------------------------------
| Header
|--------------------------------------------------------------------------
*/

.site-header {
    width: 100%;
    min-height: var(--header-height);

    background: var(--surface);

    border-bottom: 1px solid var(--border);
}

.site-header__inner {
    width: min(
        var(--page-width),
        calc(100% - 40px)
    );

    min-height: var(--header-height);

    margin: 0 auto;

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

    gap: 20px;
}

/*
|--------------------------------------------------------------------------
| Header Logo / Icon
|--------------------------------------------------------------------------
*/

.site-brand {
    display: flex;
    align-items: center;

    flex: 0 0 auto;

    text-decoration: none;
}

.site-brand__logo {
    display: block;

    width: auto;
    height: 42px;

    max-width: 220px;

    object-fit: contain;
}

/*
|--------------------------------------------------------------------------
| Navigation
|--------------------------------------------------------------------------
*/

.site-nav {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-end;

    flex-wrap: nowrap;

    margin-left: auto;

    gap: 22px;
}

.site-nav a {
    color: var(--text);

    font-size: 15px;
    font-weight: 600;

    text-decoration: none;

    white-space: nowrap;

    transition:
        opacity 0.15s ease,
        color 0.15s ease;
}

.site-nav a:hover {
    opacity: 0.65;
}

.site-nav a:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 4px;

    border-radius: 2px;
}

/*
|--------------------------------------------------------------------------
| Standard Container
|--------------------------------------------------------------------------
*/

.container {
    width: min(
        var(--page-width),
        calc(100% - 40px)
    );

    margin-left: auto;
    margin-right: auto;
}

/*
|--------------------------------------------------------------------------
| Standard Page
|--------------------------------------------------------------------------
*/

.page {
    width: 100%;

    padding-top: 48px;
    padding-bottom: 48px;
}

.page h1 {
    margin-top: 0;
    margin-bottom: 20px;

    font-size: clamp(
        30px,
        4vw,
        44px
    );

    line-height: 1.15;
}

.page h2 {
    margin-top: 32px;
    margin-bottom: 14px;

    font-size: 26px;
}

.page h3 {
    margin-top: 24px;
    margin-bottom: 12px;

    font-size: 20px;
}

.page p {
    margin-top: 0;
    margin-bottom: 16px;
}

/*
|--------------------------------------------------------------------------
| Landing Page
|--------------------------------------------------------------------------
*/

.landing-page {
    width: 100%;

    flex: 1 0 auto;

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

    padding: 40px 20px;
}

.landing-page__inner {
    width: 100%;

    max-width: 800px;

    margin: 0 auto;

    text-align: center;
}

/*
|--------------------------------------------------------------------------
| Main Landing Logo
|--------------------------------------------------------------------------
*/

.landing-logo {
    display: block;

    width: min(
        600px,
        90vw
    );

    max-width: 100%;

    height: auto;

    margin-left: auto;
    margin-right: auto;
}

/*
|--------------------------------------------------------------------------
| Landing Actions
|--------------------------------------------------------------------------
*/

.landing-actions {
    margin-top: 30px;

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

    flex-wrap: wrap;

    gap: 12px;
}

/*
|--------------------------------------------------------------------------
| Buttons
|--------------------------------------------------------------------------
*/

.button {
    min-width: 140px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 11px 20px;

    border: 1px solid var(--accent);
    border-radius: var(--radius);

    font-size: 15px;
    font-weight: 700;

    line-height: 1.2;

    text-align: center;
    text-decoration: none;

    cursor: pointer;

    transition:
        background-color 0.15s ease,
        color 0.15s ease,
        border-color 0.15s ease,
        opacity 0.15s ease;
}

.button--primary {
    background: var(--accent);
    color: var(--accent-text);
}

.button--primary:hover {
    background: var(--accent-hover);
    border-color: var(--accent-hover);
}

.button--secondary {
    background: var(--surface);
    color: var(--accent);
}

.button--secondary:hover {
    background: var(--surface-soft);
}

.button:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
}

/*
|--------------------------------------------------------------------------
| Footer
|--------------------------------------------------------------------------
*/

.site-footer {
    width: 100%;

    margin-top: auto;

    background: var(--surface);

    border-top: 1px solid var(--border);
}

.site-footer__inner {
    width: min(
        var(--page-width),
        calc(100% - 40px)
    );

    margin: 0 auto;

    padding-top: 20px;
    padding-bottom: 20px;

    color: var(--text-muted);

    font-size: 14px;

    text-align: center;
}

.site-footer p {
    margin: 0;
}

/*
|--------------------------------------------------------------------------
| Utility Classes
|--------------------------------------------------------------------------
*/

.text-center {
    text-align: center;
}

.text-left {
    text-align: left;
}

.text-right {
    text-align: right;
}

.hidden {
    display: none !important;
}

.full-width {
    width: 100%;
}

/*
|--------------------------------------------------------------------------
| Tablet
|--------------------------------------------------------------------------
*/

@media (max-width: 900px) {

    .site-header__inner {
        width: calc(100% - 32px);
    }

    .site-brand__logo {
        height: 38px;
        max-width: 200px;
    }

    .site-nav {
        gap: 16px;
    }

    .site-nav a {
        font-size: 14px;
    }

    .container {
        width: calc(100% - 32px);
    }

    .site-footer__inner {
        width: calc(100% - 32px);
    }
}

/*
|--------------------------------------------------------------------------
| Mobile
|--------------------------------------------------------------------------
*/

@media (max-width: 700px) {

    .site-header {
        min-height: 60px;
    }

    .site-header__inner {
        width: calc(100% - 24px);

        min-height: 60px;

        padding-top: 8px;
        padding-bottom: 8px;

        flex-direction: row;
        align-items: center;
        justify-content: space-between;

        gap: 12px;
    }

    .site-brand {
        flex: 0 0 auto;
    }

    .site-brand__logo {
        height: 36px;
        max-width: 150px;
    }

    .site-nav {
        width: auto;

        flex: 0 0 auto;

        margin-left: auto;

        flex-direction: row;
        flex-wrap: nowrap;

        justify-content: flex-end;

        gap: 14px;
    }

    .site-nav a {
        font-size: 14px;
        white-space: nowrap;
    }

    .page {
        padding-top: 32px;
        padding-bottom: 32px;
    }

    .landing-page {
        padding-top: 40px;
        padding-bottom: 40px;
    }

    .landing-logo {
        width: min(
            520px,
            90vw
        );
    }
}

/*
|--------------------------------------------------------------------------
| Small Mobile
|--------------------------------------------------------------------------
*/

@media (max-width: 480px) {

    .site-header__inner {
        width: calc(100% - 20px);

        min-height: 56px;

        padding-top: 7px;
        padding-bottom: 7px;

        flex-direction: row;
        align-items: center;
        justify-content: space-between;

        gap: 10px;
    }

    .site-brand {
        flex: 0 0 auto;

        justify-content: flex-start;
    }

    .site-brand__logo {
        height: 32px;
        max-width: 120px;
    }

    .site-nav {
        width: auto;

        flex: 0 0 auto;

        margin-left: auto;

        flex-direction: row;
        flex-wrap: nowrap;

        justify-content: flex-end;

        gap: 12px;
    }

    .site-nav a {
        font-size: 13px;
        white-space: nowrap;
    }

    .container {
        width: calc(100% - 24px);
    }

    .site-footer__inner {
        width: calc(100% - 24px);
    }

    .landing-page {
        padding-left: 12px;
        padding-right: 12px;
    }

    .landing-actions {
        width: 100%;

        flex-direction: column;
    }

    .button {
        width: 100%;
        max-width: 300px;
    }
}

/*
|--------------------------------------------------------------------------
| Very Small Mobile
|--------------------------------------------------------------------------
*/

@media (max-width: 360px) {

    .site-header__inner {
        width: calc(100% - 16px);

        gap: 8px;
    }

    .site-brand__logo {
        height: 28px;
        max-width: 100px;
    }

    .site-nav {
        gap: 9px;
    }

    .site-nav a {
        font-size: 12px;
    }
}

/*
|--------------------------------------------------------------------------
| Accessibility
|--------------------------------------------------------------------------
*/

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

    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;

        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
}