/* =========================================================
   Global base styles + Preloader
   ========================================================= */

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

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: var(--font-body);
    color: var(--text-color);
    background-color: var(--site-bg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

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

/* Locks scrolling while a full-bleed overlay (mobile menu) is open */
body.no-scroll { overflow: hidden; }

/* Accessible focus ring */
:focus-visible {
    outline: 3px solid var(--accent-gold);
    outline-offset: 2px;
    border-radius: 2px;
}

/* Visually-hidden helper for screen-reader-only text */
.sr-only {
    position: absolute; width: 1px; height: 1px;
    padding: 0; margin: -1px; overflow: hidden;
    clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* =========================================================
   Preloader — elegant, lightweight, guaranteed to dismiss
   ========================================================= */
.preloader-overlay {
    position: fixed; inset: 0;
    background-color: var(--site-bg);
    z-index: var(--z-preloader);
    display: flex; justify-content: center; align-items: center;
    transition: opacity 0.7s var(--ease-out), visibility 0.7s var(--ease-out);
}
.preloader-overlay.fade-out {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.loader-content {
    display: flex; flex-direction: column; align-items: center;
    gap: 22px; padding: 0 24px; text-align: center;
}

.preloader-logo {
    height: 110px; width: auto;
    animation: soft-pulse 2.4s var(--ease-in-out) infinite;
}

/* Slim indeterminate progress bar in brand gold */
.preloader-progress {
    position: relative;
    width: 180px; height: 3px;
    background: rgba(118, 51, 26, 0.12);
    border-radius: 99px; overflow: hidden;
}
.preloader-progress::before {
    content: "";
    position: absolute; top: 0; left: 0;
    width: 40%; height: 100%;
    border-radius: 99px;
    background: linear-gradient(90deg, var(--accent-tan), var(--accent-gold));
    animation: progress-sweep 1.2s var(--ease-in-out) infinite;
}

.loader-text {
    margin: 0;
    color: var(--primary-brown);
    font-family: var(--font-display);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

/* =========================================================
   Footer
   ========================================================= */
.site-footer {
    background: var(--dark-navy);
    color: rgba(255,255,255,0.8);
    margin-top: 60px;
    border-top: 3px solid var(--accent-gold);
}
.footer-inner {
    width: var(--container-width); max-width: var(--container-max);
    margin: 0 auto; padding: 32px 0; text-align: center;
}
.footer-name {
    font-family: var(--font-display); font-weight: 700;
    letter-spacing: 0.04em; margin: 0 0 6px; color: #fff;
}
.footer-copy { margin: 0; font-size: 0.82rem; color: rgba(255,255,255,0.6); }
