/* ============================================================
   Hazpira Exclusive — Soft Luxury Design System (Phase 1)
   Palette: Ivory / Cream / Beige / Sand / Taupe / Warm Brown /
            Charcoal / White / Subtle Gold
   ============================================================ */

:root {
    /* Colors */
    --haz-ivory: #F9F6F2;
    --haz-cream: #FCF9F5;
    --haz-beige: #F0EDE9;
    --haz-sand: #C9BDB0;
    --haz-taupe: #8E8279;
    --haz-warm-brown: #5E5249;
    --haz-charcoal: #2D2926;
    --haz-ink: #1C1C1A;
    --haz-white: #FFFFFF;
    --haz-gold: #C5A059;
    --haz-gold-soft: #D9BE85;
    --haz-line: #E5DED4;
    --haz-line-strong: #D1C4BC;
    --haz-danger: #B23A48;
    --haz-success: #547265;

    /* Typography */
    --haz-serif: "Playfair Display", "Cormorant Garamond", Georgia, serif;
    --haz-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

    /* Radius */
    --haz-r-sm: 2px;
    --haz-r: 4px;
    --haz-r-md: 6px;
    --haz-r-lg: 12px;
    --haz-r-pill: 999px;

    /* Shadows */
    --haz-shadow-sm: 0 1px 2px rgba(45, 41, 38, 0.04);
    --haz-shadow-md: 0 8px 24px rgba(142, 130, 121, 0.08);
    --haz-shadow-lg: 0 24px 60px rgba(142, 130, 121, 0.12);

    /* Layout */
    --haz-container: 1280px;
    --haz-gutter: 24px;
    --haz-margin: clamp(16px, 4vw, 64px);
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
    -moz-tab-size: 4;
    tab-size: 4;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--haz-ivory);
    color: var(--haz-charcoal);
    font-family: var(--haz-sans);
    font-size: 16px;
    line-height: 1.6;
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img,
svg {
    max-width: 100%;
    display: block;
}

a {
    color: var(--haz-warm-brown);
    text-decoration: none;
    transition: color 0.2s ease;
}
a:hover {
    color: var(--haz-charcoal);
}

button {
    font: inherit;
    border: 0;
    background: transparent;
    cursor: pointer;
    color: inherit;
}

/* ---------- Container ---------- */
.haz-container {
    width: 100%;
    max-width: var(--haz-container);
    padding: 0 var(--haz-margin);
    margin: 0 auto;
}

/* ---------- Typography ---------- */
.haz-h1,
.haz-h2,
.haz-h3 {
    font-family: var(--haz-serif);
    color: var(--haz-ink);
    margin: 0;
    letter-spacing: -0.01em;
    font-weight: 600;
    line-height: 1.15;
}
.haz-h1 { font-size: clamp(2rem, 5vw, 3.75rem); }
.haz-h2 { font-size: clamp(1.5rem, 3vw, 2.25rem); line-height: 1.25; }
.haz-h3 { font-size: clamp(1.25rem, 2.4vw, 1.75rem); line-height: 1.3; }

.haz-eyebrow {
    display: inline-flex;
    align-items: center;
    font-family: var(--haz-sans);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--haz-cream);
    background: var(--haz-ink);
    padding: 7px 18px;
    border-radius: var(--haz-r-pill);
}
.haz-eyebrow--invert {
    background: rgba(255, 255, 255, 0.12);
    color: var(--haz-cream);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.haz-link {
    color: var(--haz-warm-brown);
    text-decoration: none;
}
.haz-link:hover { color: var(--haz-charcoal); }
.haz-link--underline { border-bottom: 1px solid currentColor; padding-bottom: 2px; }

/* ---------- Buttons ---------- */
.haz-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: var(--haz-r);
    font-family: var(--haz-sans);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    text-decoration: none;
    cursor: pointer;
    border: 1px solid transparent;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
    line-height: 1;
}
.haz-btn--primary {
    background: var(--haz-warm-brown);
    color: var(--haz-white);
}
.haz-btn--primary:hover {
    background: var(--haz-charcoal);
    color: var(--haz-white);
}
.haz-btn--ghost {
    background: transparent;
    color: var(--haz-warm-brown);
    border-color: var(--haz-warm-brown);
}
.haz-btn--ghost:hover {
    background: var(--haz-warm-brown);
    color: var(--haz-white);
}
.haz-btn--dark {
    background: var(--haz-ink);
    color: var(--haz-cream);
}
.haz-btn--dark:hover {
    background: var(--haz-charcoal);
}
.haz-btn--block { display: flex; width: 100%; }
.haz-btn.is-loading { opacity: 0.6; pointer-events: none; }
.haz-btn.is-loading::after {
    content: "";
    width: 12px;
    height: 12px;
    border: 2px solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    animation: haz-spin 0.7s linear infinite;
}
@keyframes haz-spin { to { transform: rotate(360deg); } }

/* ---------- Alerts ---------- */
.haz-alert {
    display: flex;
    gap: 12px;
    padding: 14px 16px;
    border-radius: var(--haz-r);
    background: var(--haz-beige);
    color: var(--haz-charcoal);
    border: 1px solid var(--haz-line);
    margin-bottom: 16px;
    font-size: 14px;
}
.haz-alert i { font-size: 20px; color: var(--haz-warm-brown); }
.haz-alert--success { background: #EEF3EF; border-color: #CFDDD1; }
.haz-alert--success i { color: var(--haz-success); }
.haz-alert--danger,
.haz-alert--error { background: #FBECEE; border-color: #E7C7CC; }
.haz-alert--danger i,
.haz-alert--error i { color: var(--haz-danger); }
.haz-alert--warning { background: #FBF3E4; border-color: #ECD9AF; }

/* ---------- Forms ---------- */
.haz-form { display: flex; flex-direction: column; gap: 16px; }
.haz-form--inline { flex-direction: row; align-items: center; }
.haz-form__row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
}

.haz-field { display: flex; flex-direction: column; gap: 6px; }
.haz-field__label {
    font-size: 11px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--haz-taupe);
    font-weight: 600;
}
.haz-field__input {
    padding: 12px 14px;
    border: 1px solid var(--haz-line-strong);
    background: var(--haz-white);
    border-radius: var(--haz-r);
    font-size: 15px;
    color: var(--haz-ink);
    font-family: inherit;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    width: 100%;
}
.haz-field__input:focus {
    outline: 0;
    border-color: var(--haz-warm-brown);
    box-shadow: 0 0 0 3px rgba(94, 82, 73, 0.08);
}
.haz-field__error {
    color: var(--haz-danger);
    font-size: 12px;
    margin: 0;
}

.haz-checkbox {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--haz-charcoal);
    cursor: pointer;
}
.haz-checkbox input { accent-color: var(--haz-warm-brown); }

/* ---------- Utility classes ---------- */
.haz-empty {
    text-align: center;
    padding: 96px 0 120px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}
