/* ==========================================================
   OnePage Theme – base styles
   ========================================================== */

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    margin: 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.65;
    color: #1a1a1a;
    background: #fff;
}

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

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

.nav {
    position: fixed;
    inset-block-start: 0;
    inset-inline: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    gap: 2rem;
    height: 64px;
    padding-inline: clamp(1rem, 5vw, 3rem);
    background: rgba(255 255 255 / 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-block-end: 1px solid rgba(0 0 0 / 0.08);
    transition: background 0.3s;
}

.nav__brand {
    font-weight: 700;
    font-size: 1.15rem;
    letter-spacing: -0.01em;
    color: inherit;
    text-decoration: none;
    white-space: nowrap;
    flex-shrink: 0;
}

.nav__list {
    display: flex;
    list-style: none;
    margin: 0 0 0 auto;
    padding: 0;
    gap: clamp(1rem, 3vw, 2.5rem);
}

.nav__link {
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    color: #555;
    position: relative;
    transition: color 0.2s;
}

.nav__link::after {
    content: '';
    position: absolute;
    inset-block-end: -3px;
    inset-inline: 0;
    height: 2px;
    background: currentColor;
    border-radius: 1px;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.2s;
}

.nav__link:hover,
.nav__link.is-active {
    color: #000;
}

.nav__link.is-active::after {
    transform: scaleX(1);
}

/* Burger (mobile) */
.nav__burger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    margin-inline-start: auto;
}

.nav__burger span {
    display: block;
    width: 22px;
    height: 2px;
    background: #333;
    border-radius: 1px;
    transition: transform 0.2s, opacity 0.2s;
}

/* ----------------------------------------------------------
   Sections
   ---------------------------------------------------------- */

.onepage-section {
    min-height: 100svh;
    padding-block: calc(64px + 4rem) 4rem; /* clear fixed nav */
    padding-inline: clamp(1rem, 5vw, 3rem);
    display: flex;
    align-items: center;
    scroll-margin-block-start: 64px; /* so #hash scroll lands below nav */
}

.onepage-section:nth-child(even) {
    background: #f7f7f7;
}

.onepage-section__inner {
    max-width: 860px;
    width: 100%;
    margin-inline: auto;
}

.onepage-section__eyebrow {
    margin: 0 0 0.5rem;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #888;
}

.onepage-section__title {
    margin: 0 0 1.5rem;
    font-size: clamp(1.8rem, 4vw, 3rem);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.02em;
    color: #111;
}

.onepage-section__content {
    font-size: 1.05rem;
    color: #444;
}

.onepage-section__content p {
    margin-block: 0 1rem;
    max-width: 68ch;
}

.onepage-section__content h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-block: 2rem 0.75rem;
    color: #111;
}

/* Default page (non-onepage) */
.page-content {
    padding-block: calc(64px + 3rem) 4rem;
    padding-inline: clamp(1rem, 5vw, 3rem);
}

.page-content__inner {
    max-width: 860px;
    margin-inline: auto;
}

.page-content__title {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-block: 0 2rem;
    color: #111;
}

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

.footer {
    background: #111;
    color: rgba(255 255 255 / 0.5);
    text-align: center;
    padding: 2rem 1rem;
    font-size: 0.85rem;
}

.footer p { margin: 0; }

/* ----------------------------------------------------------
   Fluid styled content adjustments
   ---------------------------------------------------------- */

.ce-textpic,
.ce-image { margin-block: 1.5rem; }

.ce-textpic figcaption,
.ce-image figcaption {
    font-size: 0.8rem;
    color: #888;
    margin-block-start: 0.4rem;
}

/* ----------------------------------------------------------
   Responsive
   ---------------------------------------------------------- */

@media (max-width: 680px) {
    .nav__list {
        position: fixed;
        inset-block-start: 64px;
        inset-inline: 0;
        flex-direction: column;
        gap: 0;
        background: #fff;
        border-block-end: 1px solid rgba(0 0 0 / 0.08);
        padding: 1rem 0;
        margin: 0;
        display: none;
    }

    .nav__list.is-open { display: flex; }

    .nav__item { padding: 0; }

    .nav__link {
        display: block;
        padding: 0.75rem clamp(1rem, 5vw, 3rem);
        font-size: 1rem;
    }

    .nav__link::after { display: none; }

    .nav__burger { display: flex; }
}
