/* ============================================================
   SK TOWER — Base Styles
   Design tokens, reset, typography and shared primitives.
   ============================================================ */

:root {
    /* Brand palette */
    --emerald:        #123B36;
    --emerald-deep:   #0C2B27;
    --emerald-ink:    #081E1B;
    --bronze:         #B8894A;
    --bronze-dark:    #9A6F37;
    --champagne:      #D6B77A;
    --charcoal:       #171717;
    --ivory:          #F7F4EE;
    --muted:          #777E7C;
    --white:          #FFFFFF;

    /* Semantic */
    --bg:             var(--ivory);
    --text:           #23302D;
    --heading:        var(--emerald);
    --border:         rgba(18, 59, 54, 0.14);
    --border-light:   rgba(255, 255, 255, 0.22);
    --shadow-soft:    0 24px 60px -24px rgba(8, 30, 27, 0.28);
    --shadow-card:    0 18px 50px -20px rgba(8, 30, 27, 0.35);

    /* Typography */
    --font-serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
    --font-sans:  "Manrope", "Segoe UI", system-ui, -apple-system, sans-serif;

    /* Spacing rhythm */
    --section-space: clamp(80px, 10vw, 136px);
    --gutter: clamp(20px, 4.5vw, 64px);
    --container: 1440px;
    --container-narrow: 1180px;

    /* Motion */
    --ease-lux: cubic-bezier(0.16, 1, 0.3, 1);
    --dur: 0.7s;

    /* Misc */
    --header-h: 96px;
    --header-h-scrolled: 74px;
}

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

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

body {
    margin: 0;
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.75;
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

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

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-serif);
    font-weight: 500;
    color: var(--heading);
    line-height: 1.12;
    margin: 0 0 0.6em;
}

p { margin: 0 0 1.25em; }

a {
    color: var(--bronze-dark);
    text-decoration: none;
    transition: color var(--dur) var(--ease-lux);
}
a:hover { color: var(--bronze); }

ul, ol { padding-left: 1.25em; }

figure { margin: 0; }

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

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

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

:focus-visible {
    outline: 2px solid var(--bronze);
    outline-offset: 3px;
}

/* Consistent reduced-motion handling */
@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;
    }
}

/* ---------- Layout utilities ---------- */
.sk-container {
    width: 100%;
    max-width: var(--container);
    margin-inline: auto;
    padding-inline: var(--gutter);
}
.sk-container--narrow { max-width: var(--container-narrow); }

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

.sk-section--tight { padding-block: calc(var(--section-space) * 0.62); }

.sk-bg-dark {
    background: var(--emerald-ink);
    color: rgba(247, 244, 238, 0.82);
}
.sk-bg-dark h1, .sk-bg-dark h2, .sk-bg-dark h3 { color: var(--ivory); }

.sk-bg-ivory { background: var(--ivory); }
.sk-bg-white { background: var(--white); }

.sk-tone-dark { --heading: var(--ivory); --text: rgba(247,244,238,0.86); --border: rgba(255,255,255,0.16); }

/* ---------- Typography primitives ---------- */
.sk-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.38em;
    text-transform: uppercase;
    color: var(--bronze);
    margin: 0 0 22px;
}
.sk-eyebrow::before {
    content: "";
    width: 34px;
    height: 1px;
    background: currentColor;
    opacity: 0.7;
}

.sk-h1 {
    font-size: clamp(2.6rem, 6.2vw, 5.25rem);
    font-weight: 500;
    line-height: 1.05;
    letter-spacing: 0.01em;
}

.sk-h2 {
    font-size: clamp(1.9rem, 3.4vw, 3.1rem);
    font-weight: 500;
    line-height: 1.12;
    margin-bottom: 0.5em;
}

.sk-h3 {
    font-size: clamp(1.35rem, 2vw, 1.75rem);
    font-weight: 500;
}

.sk-lead {
    font-size: clamp(1.05rem, 1.4vw, 1.2rem);
    line-height: 1.85;
    color: var(--muted);
}
.sk-bg-dark .sk-lead { color: rgba(247, 244, 238, 0.72); }

.sk-serif-quote {
    font-family: var(--font-serif);
    font-size: clamp(1.35rem, 2.2vw, 1.9rem);
    line-height: 1.45;
    font-style: italic;
    color: var(--emerald);
}
.sk-bg-dark .sk-serif-quote { color: var(--ivory); }

.sk-caption {
    font-size: 12px;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--muted);
}

.sk-num {
    font-family: var(--font-serif);
    font-size: 1rem;
    letter-spacing: 0.14em;
    color: var(--bronze);
}

/* ---------- Buttons ---------- */
.sk-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 17px 34px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--emerald);
    background: var(--ivory);
    border: 1px solid var(--ivory);
    transition: color var(--dur) var(--ease-lux), background var(--dur) var(--ease-lux),
                border-color var(--dur) var(--ease-lux), transform var(--dur) var(--ease-lux);
    will-change: transform;
}
.sk-btn .bi { font-size: 12px; transition: transform var(--dur) var(--ease-lux); }
.sk-btn:hover .bi { transform: translateX(5px); }

.sk-btn:hover {
    background: var(--champagne);
    border-color: var(--champagne);
    color: var(--emerald-ink);
    transform: translateY(-1px);
}

.sk-btn--solid {
    background: var(--emerald);
    border-color: var(--emerald);
    color: var(--ivory);
}
.sk-btn--solid:hover {
    background: var(--emerald-ink);
    border-color: var(--emerald-ink);
    color: var(--ivory);
}

.sk-btn--champagne {
    background: var(--champagne);
    border-color: var(--champagne);
    color: var(--emerald-ink);
}
.sk-btn--champagne:hover {
    background: var(--ivory);
    border-color: var(--ivory);
    color: var(--emerald);
}

.sk-btn--outline-light {
    background: transparent;
    border-color: rgba(255, 255, 255, 0.55);
    color: var(--white);
}
.sk-btn--outline-light:hover {
    background: var(--white);
    border-color: var(--white);
    color: var(--emerald);
}

.sk-btn--outline-dark {
    background: transparent;
    border-color: rgba(18, 59, 54, 0.35);
    color: var(--emerald);
}
.sk-btn--outline-dark:hover {
    background: var(--emerald);
    border-color: var(--emerald);
    color: var(--ivory);
}

.sk-btn--textlink {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 6px 0;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: var(--bronze-dark);
    background: none;
    border: 0;
    border-bottom: 1px solid transparent;
}
.sk-btn--textlink::after {
    content: "";
    position: absolute;
    left: 0; bottom: 4px;
    width: 100%; height: 1px;
    background: currentColor;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.55s var(--ease-lux);
}
.sk-btn--textlink:hover { color: var(--bronze); }
.sk-btn--textlink:hover::after { transform: scaleX(1); transform-origin: left; }
.sk-btn--textlink:hover .bi { transform: translateX(5px); }
.sk-btn--textlink.is-light { color: var(--champagne); }
.sk-btn--textlink.is-light:hover { color: var(--white); }

/* ---------- Reveal animation utilities ---------- */
.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity var(--dur) var(--ease-lux), transform var(--dur) var(--ease-lux);
    transition-delay: var(--reveal-delay, 0s);
    will-change: opacity, transform;
}
.reveal.is-visible { opacity: 1; transform: none; }

.reveal-img {
    opacity: 0;
    transform: scale(1.06);
    transition: opacity 1.1s var(--ease-lux), transform 1.4s var(--ease-lux);
}
.reveal-img.is-visible { opacity: 1; transform: none; }

/* Image zoom container */
.img-zoom {
    position: relative;
    overflow: hidden;
    display: block;
}
.img-zoom img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1.4s var(--ease-lux);
}
.img-zoom:hover img { transform: scale(1.06); }

/* ---------- Inputs (shared) ---------- */
.sk-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.sk-field label {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.26em;
    text-transform: uppercase;
    color: var(--muted);
}
.sk-field input,
.sk-field select,
.sk-field textarea {
    width: 100%;
    border: 0;
    border-bottom: 1px solid var(--border);
    background: transparent;
    padding: 12px 2px;
    font-size: 15px;
    color: var(--text);
    border-radius: 0;
    transition: border-color var(--dur) var(--ease-lux);
    appearance: none;
}
.sk-field input:focus,
.sk-field select:focus,
.sk-field textarea:focus {
    outline: none;
    border-bottom-color: var(--bronze);
}
.sk-field textarea { resize: vertical; min-height: 120px; }

.sk-field.is-error input,
.sk-field.is-error textarea,
.sk-field.is-error select { border-bottom-color: #B4503C; }
.sk-field .field-error {
    display: none;
    font-size: 12px;
    color: #B4503C;
}
.sk-field.is-error .field-error { display: block; }

/* ---------- Skip link & a11y helpers ---------- */
.sk-skip {
    position: fixed;
    top: -80px; left: 16px;
    z-index: 3000;
    padding: 14px 22px;
    background: var(--emerald);
    color: var(--ivory);
    font-size: 13px;
    letter-spacing: 0.1em;
    transition: top 0.3s ease;
}
.sk-skip:focus { top: 16px; }

.visually-hidden {
    position: absolute !important;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}