
/* =========================================================
   Aroha
   GLOBAL DESIGN SYSTEM
   ========================================================= */


/* =========================================================
   01 — ROOT / DESIGN TOKENS
   ========================================================= */

:root {

    /* BACKGROUNDS */

    --color-white: #FFFFFF;
    --color-paper: #F7F5F2;
    --color-sand: #EFECE8;
    --color-stone: #E5DED6;

    /* DARK EARTH TONES */

    --color-ink: #201815;
    --color-earth: #30231D;
    --color-earth-dark: #1D1512;

    /* TEXT */

    --color-text: #211C19;
    --color-text-secondary: #615A55;
    --color-text-muted: #8B837C;

    /* BORDERS */

    --color-border: rgba(33, 28, 25, 0.17);
    --color-border-light: rgba(33, 28, 25, 0.08);

    /* TYPOGRAPHY */

    --font-heading: "Instrument Serif", Georgia, serif;
    --font-body: "Inter", Arial, sans-serif;

    /* LAYOUT */

    --container-width: 1440px;
    --page-gutter: clamp(24px, 5.2vw, 100px);

    --header-height: 86px;

    /* TRANSITIONS */

    --ease-out: cubic-bezier(.22, 1, .36, 1);

    --transition-fast: 250ms ease;
    --transition-normal: 450ms var(--ease-out);

}


/* =========================================================
   02 — RESET
   ========================================================= */

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--header-height);
}

body {
    min-width: 320px;

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

    font-family: var(--font-body);
    font-size: 15px;
    font-weight: 400;

    line-height: 1.6;

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

body.menu-open {
    overflow: hidden;
}

img,
picture,
video,
svg {
    display: block;
    max-width: 100%;
}

img {
    height: auto;
}

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

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

button {
    color: inherit;
    background: none;
    border: 0;
    cursor: pointer;
}

ul,
ol {
    list-style: none;
}

::selection {
    background: var(--color-stone);
    color: var(--color-ink);
}


/* =========================================================
   03 — GLOBAL TYPOGRAPHY
   ========================================================= */

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 400;
    line-height: 0.98;
    letter-spacing: -0.025em;
}

h1 {
    font-size: clamp(64px, 7vw, 128px);
}

h2 {
    font-size: clamp(48px, 5.2vw, 96px);
}

h3 {
    font-size: clamp(30px, 3vw, 54px);
}

h4 {
    font-size: clamp(24px, 2vw, 36px);
}

em {
    font-family: var(--font-heading);
    font-style: italic;
    font-weight: 400;
}

p {
    line-height: 1.65;
}

strong {
    font-weight: 600;
}


/* =========================================================
   04 — GLOBAL LAYOUT
   ========================================================= */

.container {
    width: min(
        var(--container-width),
        calc(100% - (var(--page-gutter) * 2))
    );

    margin-inline: auto;
}

.section {
    position: relative;
    width: 100%;
}

.section-white {
    background: var(--color-white);
}

.section-paper {
    background: var(--color-paper);
}

.section-sand {
    background: var(--color-sand);
}

.section-dark {
    background: var(--color-earth-dark);
    color: var(--color-white);
}


/* =========================================================
   05 — SECTION LABELS
   ========================================================= */

.section-kicker,
.section-label {
    display: block;

    font-family: var(--font-body);
    font-size: 10px;
    font-weight: 500;

    letter-spacing: 0.32em;
    line-height: 1.5;

    text-transform: uppercase;

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

.section-dark .section-kicker,
.section-dark .section-label {
    color: var(--color-white);
}


/* =========================================================
   06 — BUTTONS
   ========================================================= */

.button {
    min-height: 44px;

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

    padding: 0 28px;

    font-family: var(--font-body);
    font-size: 10px;
    font-weight: 500;

    line-height: 1.2;
    letter-spacing: 0.08em;

    text-transform: uppercase;
    text-align: center;

    white-space: nowrap;

    cursor: pointer;

    transition:
        background var(--transition-normal),
        color var(--transition-normal),
        border-color var(--transition-normal);
}

.button-outline {
    color: var(--color-text);
    border: 1px solid var(--color-text);
    background: transparent;
}

.button-outline:hover {
     background: var(--color-earth-dark);
    border-color: var(--color-earth-dark);
    color: #fff;
}

.button-dark {
    color: var(--color-white);
    background: var(--color-earth-dark);
    border: 1px solid var(--color-earth-dark);
}

.button-dark:hover {
    background: transparent;
    color: var(--color-earth-dark);
}

.button-light {
    color: var(--color-earth-dark);
    background: var(--color-white);
    border: 1px solid var(--color-white);
}

.button-light:hover {
    color: var(--color-white);
    background: transparent;
}

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

    gap: 14px;

    font-size: 10px;
    font-weight: 500;

    letter-spacing: 0.1em;
    text-transform: uppercase;

    transition: opacity var(--transition-fast);
}

.text-link:hover {
    opacity: 0.55;
}


/* =========================================================
   07 — HEADER MOUNT
   ========================================================= */

#site-header {
    position: relative;
    z-index: 1000;
}


/* =========================================================
   08 — HEADER
   ========================================================= */

.site-header {
    position: relative;
    z-index: 1000;

    width: 100%;
    height: var(--header-height);

    background: var(--color-white);
}

.header-inner {
    width: min(
        var(--container-width),
        calc(100% - (var(--page-gutter) * 2))
    );

    height: 100%;

    margin-inline: auto;

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

    gap: 48px;
}


/* =========================================================
   09 — LOGO
   ========================================================= */

.site-logo {
    position: relative;

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

    flex-shrink: 0;

    width: 158px;
}

.logo-image {
    display: block;

    width: 100%;
    height: auto;

    object-fit: contain;
}


/* =========================================================
   10 — DESKTOP NAVIGATION
   ========================================================= */

.main-nav {
    display: flex;
    align-items: center;
    justify-content: flex-end;

    gap: clamp(24px, 3vw, 56px);
}

.main-nav a {
    position: relative;

    display: inline-block;

    padding: 8px 0;

    font-family: var(--font-body);
    font-size: 10px;
    font-weight: 500;

    letter-spacing: 0.075em;

    text-transform: uppercase;

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

.main-nav a::after {
    content: "";

    position: absolute;

    left: 0;
    right: 0;
    bottom: 3px;

    height: 1px;

    background: currentColor;

    transform: scaleX(0);
    transform-origin: right;

    transition: transform var(--transition-normal);
}

.main-nav a:hover::after,
.main-nav a.active::after {
    transform: scaleX(1);
    transform-origin: left;
}


/* =========================================================
   11 — STICKY HEADER
   ========================================================= */

.site-header.scrolled {
    background: rgba(255, 255, 255, 0.96);

    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);

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


/* =========================================================
   12 — MOBILE MENU BUTTON
   ========================================================= */

.menu-toggle {
    display: none;

    position: relative;
    z-index: 1003;

    width: 44px;
    height: 44px;

    flex-shrink: 0;
}

.menu-toggle span {
    position: absolute;

    left: 9px;

    width: 26px;
    height: 1px;

    background: var(--color-ink);

    transition:
        top var(--transition-normal),
        transform var(--transition-normal);
}

.menu-toggle span:first-child {
    top: 17px;
}

.menu-toggle span:last-child {
    top: 25px;
}

.menu-toggle.active span:first-child {
    top: 21px;
    transform: rotate(45deg);
}

.menu-toggle.active span:last-child {
    top: 21px;
    transform: rotate(-45deg);
}


/* =========================================================
   13 — MOBILE MENU DEFAULT
   ========================================================= */

.mobile-menu {
    display: none;
}


/* =========================================================
   14 — FOOTER MOUNT
   ========================================================= */

#site-footer {
    position: relative;
    width: 100%;
}


/* =========================================================
   15 — FOOTER
   ========================================================= */

.site-footer {
    width: 100%;

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

    padding: 66px 0 28px;
}

.footer-container {
    width: min(
        var(--container-width),
        calc(100% - (var(--page-gutter) * 2))
    );

    margin-inline: auto;
}

.footer-main {
    display: grid;

    grid-template-columns:
        minmax(300px, 2.4fr)
        minmax(110px, 0.8fr)
        minmax(110px, 0.8fr)
        60px;

    gap: clamp(32px, 4vw, 80px);

    align-items: start;

    padding-bottom: 72px;
}


/* =========================================================
   16 — FOOTER BRAND
   ========================================================= */

.footer-brand {
    max-width: 370px;
}

.footer-logo {
    display: inline-block;

    width: 190px;

    margin-bottom: 16px;
}

.footer-logo-image {
    width: 100%;
    height: auto;

    object-fit: contain;
}

.footer-tagline {
    margin-bottom: 12px;

    font-size: 10px;
    font-weight: 500;

    letter-spacing: 0.015em;
    line-height: 1.5;
}

.footer-description {
    font-size: 12px;
    line-height: 1.5;
}

.footer-locations {
    margin-top: 4px;

    font-size: 10px;
    line-height: 1.6;
    color: var(--color-text-secondary);
}


/* =========================================================
   17 — FOOTER NAVIGATION
   ========================================================= */

.footer-nav {
    display: flex;
    flex-direction: column;
    align-items: flex-start;

    gap: 8px;

    padding-top: 25px;
}

.footer-nav a {
    font-family: var(--font-body);
    font-size: 11px;
    font-weight: 500;

    letter-spacing: 0.05em;
    line-height: 1.5;

    text-transform: uppercase;

    transition: opacity var(--transition-fast);
}

.footer-nav a:hover {
    opacity: 0.5;
}


/* =========================================================
   18 — FOOTER SOCIAL
   ========================================================= */

.footer-social {
    display: flex;
    flex-direction: column;
    align-items: flex-end;

    gap: 10px;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 32px;
    height: 32px;

    flex-shrink: 0;

    background: var(--color-earth-dark);
    color: var(--color-white);

    border-radius: 50%;

    transition:
        background var(--transition-fast),
        transform var(--transition-fast);
}

.social-icon svg {
    width: 14px;
    height: 14px;
}

.social-icon:hover {
    background: #634A3C;
    transform: translateY(-2px);
}


/* =========================================================
   19 — FOOTER BOTTOM
   ========================================================= */

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;

    min-height: 35px;

    padding-top: 18px;

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

.footer-bottom p {
    font-size: 10px;
    font-weight: 400;

    color: var(--color-text-muted);
}


/* =========================================================
   20 — SCROLL REVEAL
   ========================================================= */

.reveal {
    opacity: 0;

    transform: translateY(24px);

    transition:
        opacity 900ms var(--ease-out),
        transform 900ms var(--ease-out);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}


/* =========================================================
   21 — TABLET / MOBILE NAVIGATION
   ========================================================= */

@media (max-width: 960px) {

    :root {
        --header-height: 76px;
        --page-gutter: 32px;
    }

    .main-nav {
        display: none;
    }

    .menu-toggle {
        display: block;
    }

    /* Fullscreen menu */

    .mobile-menu {
        position: fixed;

        inset: 0;

        z-index: 1001;

        display: block;

        width: 100%;
        height: 100vh;
        height: 100dvh;

        background: var(--color-paper);

        overflow-y: auto;

        opacity: 0;
        visibility: hidden;
        pointer-events: none;

        transition:
            opacity 350ms ease,
            visibility 350ms ease;
    }

    .mobile-menu.active {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }

    .mobile-nav {
        width: 100%;
        min-height: 100%;

        display: flex;
        flex-direction: column;
        justify-content: center;

        padding:
            110px
            var(--page-gutter)
            60px;

        gap: 4px;
    }

    .mobile-nav a {
        display: block;

        width: 100%;

        padding: 12px 0;

        font-family: var(--font-heading);
        font-size: clamp(42px, 7vw, 74px);

        font-weight: 400;

        letter-spacing: -0.025em;
        line-height: 1;

        border-bottom: 1px solid var(--color-border-light);

        transition:
            opacity var(--transition-fast),
            padding-left var(--transition-normal);
    }

    .mobile-nav a:hover,
    .mobile-nav a.active {
        opacity: 0.55;
        padding-left: 12px;
    }

    /* Footer */

    .footer-main {
        grid-template-columns:
            minmax(0, 2fr)
            minmax(0, 1fr)
            minmax(0, 1fr);

        gap: 42px;
    }

    .footer-social {
        grid-column: 1 / -1;

        flex-direction: row;
        align-items: center;
        justify-content: flex-start;
    }

}


/* =========================================================
   22 — MOBILE
   ========================================================= */

@media (max-width: 600px) {

    :root {
        --page-gutter: 22px;
        --header-height: 70px;
    }

    body {
        font-size: 14px;
    }

    h1 {
        font-size: clamp(54px, 13vw, 82px);
    }

    h2 {
        font-size: clamp(43px, 10vw, 68px);
    }

    h3 {
        font-size: clamp(30px, 8vw, 46px);
    }

    .site-logo {
        width: 132px;
    }

    .mobile-nav {
        padding-top: 100px;
        padding-bottom: 40px;
    }

    .mobile-nav a {
        font-size: clamp(40px, 11vw, 58px);
        padding: 10px 0;
    }

    .footer-main {
        grid-template-columns: 1fr 1fr;

        gap: 36px 24px;

        padding-bottom: 44px;
    }

    .footer-brand {
        grid-column: 1 / -1;
    }

    .footer-logo {
        width: 170px;
    }

    .footer-nav {
        padding-top: 0;
    }

    .footer-social {
        grid-column: 1 / -1;
    }

    .footer-bottom {
        padding-top: 20px;
    }

}


/* =========================================================
   23 — ACCESSIBILITY / REDUCED MOTION
   ========================================================= */

:focus-visible {
    outline: 2px solid var(--color-text);
    outline-offset: 5px;
}

@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 {
        opacity: 1;
        transform: none;
    }

}

/* =========================================================
   11B — SMART HEADER MOTION
   Hides while scrolling down and softly returns on scroll up.
   ========================================================= */

.site-header {
    transition:
        transform 460ms cubic-bezier(.22, 1, .36, 1),
        opacity 320ms ease,
        background-color 320ms ease,
        border-color 320ms ease,
        box-shadow 320ms ease;
    will-change: transform, opacity;
}

.site-header.header-floating {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;

    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--color-border-light);
    box-shadow: 0 8px 30px rgba(32, 24, 21, 0.035);
}

.site-header.header-floating.header-hidden {
    transform: translateY(calc(-100% - 8px));
    opacity: 0;
    pointer-events: none;
}

.site-header.header-floating.header-visible {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
}

body.menu-open .site-header.header-floating {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
}

@media (prefers-reduced-motion: reduce) {
    .site-header {
        transition: none;
    }
}

/* =========================================================
   SMART HEADER — TOP JUMP FIX
   Keep the header mount's layout height reserved while the
   actual header switches to fixed positioning.
   ========================================================= */
#site-header {
    min-height: var(--header-height);
}
