/* ============================================================
   MFALME LUXURY LIVING — BASE & RESET
   ============================================================ */

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

html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
    scroll-padding-top: 96px;
}

body {
    margin: 0;
    font-family: var(--font-sans);
    font-size: var(--text-body);
    font-weight: 400;
    line-height: 1.7;
    letter-spacing: 0.005em;
    color: var(--text-body);
    background-color: var(--surface);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

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

img {
    height: auto;
    font-style: italic;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color var(--speed-fast) ease;
}

a:hover {
    color: var(--mfalme-gold-dark);
}

button {
    font-family: inherit;
    cursor: pointer;
}

ul[role="list"],
ol[role="list"] {
    list-style: none;
    margin: 0;
    padding: 0;
}

figure {
    margin: 0;
}

::selection {
    background: var(--mfalme-gold);
    color: var(--mfalme-white);
}

:focus-visible {
    outline: 2px solid var(--mfalme-gold-dark);
    outline-offset: 3px;
    border-radius: 2px;
}

/* Accessible "visually hidden but available to screen readers" utility */
.sr-only {
    position: absolute !important;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

::-webkit-scrollbar {
    width: 10px;
}
::-webkit-scrollbar-track {
    background: var(--mfalme-cream);
}
::-webkit-scrollbar-thumb {
    background: var(--mfalme-sand);
    border-radius: 8px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--mfalme-gold);
}

/* --- Layout helpers --- */
.container-xl {
    max-width: var(--container-max);
    padding-inline: var(--gutter);
}

.section {
    padding-block: var(--section-pad);
}

.section--tight {
    padding-block: var(--section-pad-sm);
}

/* --- Eyebrow label --- */
.eyebrow {
    font-family: var(--font-sans);
    font-size: var(--text-eyebrow);
    font-weight: 600;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--accent-strong);
    margin-bottom: 1.1rem;
    display: inline-block;
}

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

.eyebrow-light {
    color: var(--mfalme-gold-light);
}

/* --- Text variation helpers --- */
.text-lg {
    font-size: var(--text-body-lg);
    color: var(--text-body);
}

.text-caption {
    font-size: var(--text-caption);
    color: var(--text-muted);
}

/* --- Section headers --- */
.section-head {
    margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

.section-head--row {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 2rem;
}

.section-head--center {
    text-align: center;
    max-width: 46rem;
    margin-inline: auto;
}

.section-head .section-sub {
    max-width: 38rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
    margin-bottom: 0;
}

.section-head--center .section-sub {
    margin-inline: auto;
}

.section-sub--right {
    max-width: 22rem;
    flex-shrink: 0;
    margin-bottom: 0.35rem;
}

/* --- Inline link with arrow --- */
.link-arrow {
    font-size: var(--text-small);
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    white-space: nowrap;
}

.link-arrow::after {
    content: "\2192";
    font-size: 1.05em;
    transition: transform var(--speed-fast) var(--ease-out);
}

.link-arrow:hover::after {
    transform: translateX(5px);
}

.link-arrow--dark {
    color: var(--ink-soft);
}
.link-arrow--dark:hover,
.link-arrow--dark:focus-visible {
    color: var(--accent-strong);
}

/* --- Generic reveal state (see animations.css) --- */
.reveal {
    opacity: 0;
    transform: translateY(26px);
}

/* --- Toast host constraint --- */
.toast-container {
    z-index: var(--z-toast);
}