/*
Theme Name: Aurelius Real Estate
Theme URI: https://aurelius.lauera.com/
Author: Aurelius & Co.
Description: Custom luxury real estate WordPress theme.
Version: 1.0.0
Text Domain: aurelius-realestate
*/

/*
=========================================================
AURELIUS DESIGN TOKENS
=========================================================
*/

:root {

    /* Core colors */
    --aurelius-ink: #171714;
    --aurelius-paper: #f8f5ec;
    --aurelius-stone: #e8e2d6;
    --aurelius-muted: #716f69;
    --aurelius-bronze: #a68966;
    --aurelius-line: #cfc8bb;

    /* Typography */
    --font-sans: "Inter", sans-serif;
    --font-serif: "Playfair Display", serif;

    /* Layout */
    --container-width: 1440px;

    /* Spacing */
    --section-space: clamp(5rem, 10vw, 9rem);

    /* Effects */
    --transition-fast: 0.25s ease;
    --transition-medium: 0.35s ease;
    --transition-slow: 0.8s ease;

    /* Navigation */
    --nav-height: 80px;
}


/*
=========================================================
RESET
=========================================================
*/

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--aurelius-paper);
    color: var(--aurelius-ink);
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

img {
    display: block;
    max-width: 100%;
}

button,
input,
select,
textarea {
    font: inherit;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

button {
    cursor: pointer;
}

a {
    color: inherit;
    text-decoration: none;
}


/*
=========================================================
TYPOGRAPHY
=========================================================
*/

.serif {
    font-family: var(--font-serif);
}

.eyebrow {
    margin: 0;
    font-size: 11px;
    line-height: 1.2;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    margin-top: 0;
    font-family: var(--font-serif);
    font-weight: 400;
}

p {
    margin-top: 0;
}


/*
=========================================================
LAYOUT
=========================================================
*/

.aurelius-container {
    width: min(
        calc(100% - 40px),
        var(--container-width)
    );

    margin-inline: auto;
}

.aurelius-section {
    padding-block: var(--section-space);
}


/*
=========================================================
HEADER
=========================================================
*/

#mainNav {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    z-index: 1000;

    border-bottom: 1px solid transparent;

    background: transparent;

    color: #ffffff;

    transition:
        background-color 0.5s ease,
        color 0.5s ease,
        box-shadow 0.5s ease,
        border-color 0.5s ease;
}

#mainNav.nav-scrolled {
    border-bottom-color: var(--aurelius-line);

    background: rgba(248, 245, 236, 0.94);

    color: var(--aurelius-ink);

    box-shadow:
        0 1px 0 rgba(113, 111, 105, 0.12);

    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.site-header {
    width: min(
        calc(100% - 40px),
        var(--container-width)
    );

    min-height: var(--nav-height);

    margin-inline: auto;

    display: flex;
    align-items: center;
    justify-content: space-between;
}

.site-header > a {
    font-family: var(--font-serif);
    font-size: 26px;
    line-height: 1;
    letter-spacing: -0.02em;
}

.site-header > a span {
    opacity: 0.6;
}


/*
=========================================================
BUTTON SYSTEM
=========================================================
*/

.aurelius-btn {
    position: relative;

    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;

    min-height: 48px;
    padding: 0.9rem 1.5rem;

    overflow: hidden;
    isolation: isolate;

    border: 1px solid transparent;

    font-size: 12px;
    font-weight: 600;
    line-height: 1;
    letter-spacing: 0.14em;
    text-transform: uppercase;

    transition:
        color var(--transition-medium),
        border-color var(--transition-medium),
        transform var(--transition-medium);
}

.aurelius-btn::before {
    content: "";

    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;

    height: 0;

    background: var(--aurelius-bronze);

    transition: height var(--transition-medium);

    z-index: -1;
}

.aurelius-btn:hover::before {
    height: 100%;
}

.aurelius-btn:hover {
    transform: translateY(-1px);
}


/*
=========================================================
IMAGE SYSTEM
=========================================================
*/

.image-wrap {
    overflow: hidden;
}

.image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;

    transition:
        transform 0.9s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.image-wrap:hover img {
    transform: scale(1.045);
}


/*
=========================================================
REVEAL ANIMATION
=========================================================
*/

.reveal {
    opacity: 0;

    transform: translateY(24px);

    transition:
        opacity var(--transition-slow),
        transform var(--transition-slow);
}

.reveal.is-visible {
    opacity: 1;
    transform: none;
}


/*
=========================================================
FORM FIELDS
=========================================================
*/

.search-field {
    border-bottom: 1px solid
        rgba(113, 111, 105, 0.28);

    transition:
        border-color var(--transition-fast);
}

.search-field:focus-within {
    border-color: var(--aurelius-ink);
}


/*
=========================================================
HAIRLINES
=========================================================
*/

.hairline {
    border-color: rgba(
        113,
        111,
        105,
        0.28
    );
}


/*
=========================================================
FOOTER
=========================================================
*/

#site-footer {
    background: var(--aurelius-stone);
}

.site-footer {
    width: min(
        calc(100% - 40px),
        var(--container-width)
    );

    margin-inline: auto;

    padding-block: 4rem;
}


/*
=========================================================
TEST PAGE
=========================================================
*/

.aurelius-test {
    min-height: 100vh;

    display: flex;
    flex-direction: column;

    align-items: center;
    justify-content: center;

    padding: 40px;

    text-align: center;
}

.aurelius-test p:first-child {
    margin-bottom: 1rem;

    font-size: 11px;
    font-weight: 600;

    letter-spacing: 0.16em;
    text-transform: uppercase;

    color: var(--aurelius-muted);
}

.aurelius-test h1 {
    max-width: 900px;

    margin-bottom: 1.5rem;

    font-size: clamp(
        3rem,
        7vw,
        78px
    );

    line-height: 1;

    letter-spacing: -0.03em;
}

.aurelius-test p:last-child {
    color: var(--aurelius-muted);
}


/*
=========================================================
RESPONSIVE
=========================================================
*/

@media (max-width: 767px) {

    :root {
        --nav-height: 72px;
    }

    .aurelius-container,
    .site-header,
    .site-footer {
        width: min(
            calc(100% - 40px),
            var(--container-width)
        );
    }

    .site-header > a {
        font-size: 24px;
    }

    .aurelius-test h1 {
        font-size: clamp(
            2.8rem,
            13vw,
            4.4rem
        );

        line-height: 1.03;
    }
}