/* =========================================================
   OfficeMassage — base.css
   Reset, layout, base typography, utilities
   Theme variables live in themes.css (scoped to [data-theme])
   ========================================================= */

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

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-body);
    color: var(--text);
    background: var(--bg);
    line-height: 1.6;
    font-size: 17px;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
    transition: background-color 0.5s ease, color 0.5s ease;
}

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

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

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
    color: inherit;
}

input,
textarea,
select {
    font-family: inherit;
    font-size: inherit;
    color: inherit;
}

ul {
    list-style: none;
}

/* ---------- Layout ---------- */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 clamp(20px, 5vw, 48px);
}

.container--narrow {
    max-width: 880px;
}

.section {
    padding: clamp(64px, 9vw, 120px) 0;
    position: relative;
}

.section--tint {
    background: var(--surface-2);
}

/* ---------- Typography ---------- */
.display {
    font-family: var(--font-display);
    font-weight: var(--display-weight);
    line-height: 1.05;
    letter-spacing: var(--display-tracking);
    color: var(--text);
    text-wrap: balance;
}

h1.display {
    font-size: clamp(2.6rem, 6vw, 4.6rem);
}

h2.display {
    font-size: clamp(2rem, 4.2vw, 3.2rem);
}

h3 {
    font-family: var(--font-display);
    font-weight: var(--display-weight);
    line-height: 1.15;
    letter-spacing: var(--display-tracking);
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.78rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--accent-ink);
}

.eyebrow::before {
    content: "";
    width: 22px;
    height: 1.5px;
    background: var(--accent);
    display: inline-block;
}

.lead {
    font-size: clamp(1.05rem, 1.6vw, 1.3rem);
    color: var(--muted);
    line-height: 1.6;
    text-wrap: pretty;
}

.section-head {
    max-width: 680px;
    margin-bottom: clamp(36px, 5vw, 64px);
}

.section-head--center {
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.section-head h2 {
    margin: 14px 0 18px;
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 15px 30px;
    border-radius: var(--radius-pill);
    font-weight: 600;
    font-size: 1rem;
    letter-spacing: 0.01em;
    line-height: 1;
    transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease),
        background-color 0.25s var(--ease), color 0.25s var(--ease),
        border-color 0.25s var(--ease);
    white-space: nowrap;
    border: 1.5px solid transparent;
}

.btn--primary {
    background: var(--accent);
    color: var(--accent-on);
    box-shadow: var(--shadow-accent);
}

.btn--primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-accent-hover);
}

.btn--ghost {
    background: transparent;
    color: var(--text);
    border-color: var(--line);
}

.btn--ghost:hover {
    border-color: var(--accent);
    color: var(--accent-ink);
    transform: translateY(-2px);
}

.btn--lg {
    padding: 18px 38px;
    font-size: 1.08rem;
}

.btn--sm {
    padding: 11px 20px;
    font-size: 0.9rem;
}

.btn--block {
    width: 100%;
}

/* ---------- Generic cards ---------- */
.card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
}

/* ---------- Reveal animation ---------- */
.reveal {
    opacity: 0;
    transform: translateY(26px);
    transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
    will-change: opacity, transform;
}

.reveal.is-visible {
    opacity: 1;
    transform: none;
}

.reveal[data-delay="1"] {
    transition-delay: 0.08s;
}
.reveal[data-delay="2"] {
    transition-delay: 0.16s;
}
.reveal[data-delay="3"] {
    transition-delay: 0.24s;
}
.reveal[data-delay="4"] {
    transition-delay: 0.32s;
}
.reveal[data-delay="5"] {
    transition-delay: 0.4s;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
    * {
        animation-duration: 0.001ms !important;
        transition-duration: 0.001ms !important;
    }
}

/* ---------- Image placeholder (no real photos yet) ---------- */
.ph {
    position: relative;
    background-color: var(--surface-2);
    background-image: repeating-linear-gradient(
        135deg,
        var(--ph-stripe) 0,
        var(--ph-stripe) 1px,
        transparent 1px,
        transparent 11px
    );
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    color: var(--muted);
}

.ph__label {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 100px;
    padding: 6px 14px;
    color: var(--muted);
}

/* ---------- Visually hidden ---------- */
.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;
}

/* ---------- Scroll progress ---------- */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    width: 0%;
    background: var(--accent);
    z-index: 1000;
    transition: width 0.1s linear;
}
