@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,400;9..144,600;9..144,700&family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

/* ================= TOKENS ================= */
:root {
    --clay: #c2664b;
    --clay-deep: #a14f38;
    --clay-soft: #e8b39f;
    --sand: #f6efe6;
    --sand-deep: #ece0d1;
    --cream: #fffaf3;
    --ink: #241d1a;
    --ink-soft: #5f544e;
    --ink-mute: #8d8078;
    --sage: #7d9384;
    --gold: #d9a441;
    --line: rgba(36, 29, 26, .1);
    --glass: rgba(255, 255, 255, .58);
    --glass-strong: rgba(255, 255, 255, .78);
    --glass-line: rgba(255, 255, 255, .72);
    --shadow-sm: 0 6px 18px rgba(70, 47, 36, .08);
    --shadow: 0 18px 50px -18px rgba(70, 47, 36, .28);
    --shadow-lg: 0 40px 90px -30px rgba(70, 47, 36, .45);
    --radius-sm: 12px;
    --radius: 20px;
    --radius-lg: 30px;
    --radius-pill: 999px;
    --container: 1180px;
    --font-body: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --font-display: 'Fraunces', 'Georgia', serif;
    --ease: cubic-bezier(.22, 1, .36, 1);
}

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

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

body {
    margin: 0;
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.65;
    color: var(--ink);
    background:
        radial-gradient(1200px 700px at 12% -10%, #fdf3e7 0%, transparent 60%),
        radial-gradient(900px 600px at 92% 4%, #f4e6dc 0%, transparent 55%),
        linear-gradient(180deg, var(--cream) 0%, var(--sand) 45%, #f3ebe1 100%);
    background-attachment: fixed;
    min-height: 100vh;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, h5 {
    margin: 0 0 .5em;
    font-family: var(--font-display);
    font-weight: 600;
    line-height: 1.15;
    letter-spacing: -.015em;
}
h1 { font-size: clamp(2.1rem, 4.6vw, 3.6rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }
small { font-size: .8rem; }
hr { border: 0; border-top: 1px solid var(--line); margin: 1.6rem 0; }

::selection { background: var(--clay-soft); color: #fff; }

/* ================= LAYOUT ================= */
.container {
    width: min(100% - 2.6rem, var(--container));
    margin-inline: auto;
}

.section { padding: clamp(3rem, 6vw, 5.5rem) 0; position: relative; }
.section.tight { padding: 2.2rem 0; }

.section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1.6rem;
    margin-bottom: 2.2rem;
    flex-wrap: wrap;
}
.section-head .eyebrow { margin-bottom: .35rem; }
.section-head p { color: var(--ink-soft); margin: .4rem 0 0; max-width: 54ch; }

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--clay-deep);
}
.eyebrow::before {
    content: '';
    width: 26px; height: 1px;
    background: currentColor;
    opacity: .55;
}

.lead { font-size: 1.06rem; color: var(--ink-soft); }

/* ================= GLASS ================= */
.glass {
    background: var(--glass);
    border: 1px solid var(--glass-line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    -webkit-backdrop-filter: blur(18px) saturate(1.4);
    backdrop-filter: blur(18px) saturate(1.4);
}

.glass-panel {
    background: linear-gradient(150deg, rgba(255,255,255,.82), rgba(255,255,255,.42));
    border: 1px solid rgba(255,255,255,.8);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    -webkit-backdrop-filter: blur(26px) saturate(1.5);
    backdrop-filter: blur(26px) saturate(1.5);
}

/* ================= BUTTONS ================= */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .55rem;
    padding: .82rem 1.5rem;
    border: 1px solid transparent;
    border-radius: var(--radius-pill);
    font-weight: 700;
    font-size: .92rem;
    letter-spacing: .01em;
    line-height: 1;
    transition: transform .35s var(--ease), box-shadow .35s var(--ease), background .3s ease, color .3s ease;
    white-space: nowrap;
}
.btn:active { transform: translateY(1px) scale(.995); }

.btn-primary {
    background: linear-gradient(140deg, #d0775a, var(--clay-deep));
    color: #fff;
    box-shadow: 0 12px 26px -12px rgba(161, 79, 56, .8), inset 0 1px 0 rgba(255,255,255,.28);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 20px 34px -14px rgba(161, 79, 56, .85); }

.btn-ghost {
    background: rgba(255,255,255,.5);
    border-color: rgba(36,29,26,.14);
    color: var(--ink);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}
.btn-ghost:hover { background: #fff; transform: translateY(-2px); box-shadow: var(--shadow-sm); }

.btn-dark { background: var(--ink); color: var(--cream); }
.btn-dark:hover { background: #3a302b; transform: translateY(-2px); }

.btn-sm { padding: .55rem 1rem; font-size: .8rem; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .55; pointer-events: none; }

.link-arrow {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    font-weight: 700;
    font-size: .88rem;
    color: var(--clay-deep);
}
.link-arrow::after { content: '→'; transition: transform .3s var(--ease); }
.link-arrow:hover::after { transform: translateX(4px); }

/* ================= BADGES ================= */
.badge {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    padding: .3rem .7rem;
    border-radius: var(--radius-pill);
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    background: rgba(36,29,26,.07);
    color: var(--ink-soft);
    white-space: nowrap;
}
.badge-success { background: rgba(93, 148, 110, .16); color: #3d7452; }
.badge-warning { background: rgba(217, 164, 65, .18); color: #8a6317; }
.badge-danger  { background: rgba(185, 74, 60, .14); color: #a1382b; }
.badge-info    { background: rgba(90, 122, 150, .14); color: #3f6179; }
.badge-blue    { background: rgba(72, 110, 168, .14); color: #33578f; }

/* ================= FORMS ================= */
.field { display: grid; gap: .4rem; margin-bottom: 1.1rem; }
.field > label,
.form-label {
    font-size: .8rem;
    font-weight: 700;
    letter-spacing: .03em;
    color: var(--ink-soft);
}
.input, .select, .textarea,
input[type="text"], input[type="email"], input[type="password"],
input[type="number"], input[type="search"], input[type="tel"],
input[type="date"], input[type="datetime-local"], select, textarea {
    width: 100%;
    padding: .8rem 1rem;
    font: inherit;
    font-size: .93rem;
    color: var(--ink);
    background: rgba(255,255,255,.72);
    border: 1px solid rgba(36,29,26,.14);
    border-radius: 14px;
    outline: none;
    transition: border-color .25s ease, box-shadow .25s ease, background .25s ease;
}
input:focus, select:focus, textarea:focus {
    border-color: var(--clay);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(194, 102, 75, .13);
}
textarea { min-height: 130px; resize: vertical; line-height: 1.6; }
select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%235f544e'%3E%3Cpath d='M5.5 7.5 10 12l4.5-4.5' stroke='%235f544e' stroke-width='1.6' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right .9rem center;
    background-size: 18px;
    padding-right: 2.4rem;
}
.check { display: flex; align-items: center; gap: .6rem; font-size: .88rem; color: var(--ink-soft); }
.check input[type="checkbox"], .check input[type="radio"] { width: 18px; height: 18px; accent-color: var(--clay); }
.field-error { color: #a1382b; font-size: .78rem; }
.hint { font-size: .78rem; color: var(--ink-mute); }

.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 1.2rem; }
.form-grid .span-2 { grid-column: 1 / -1; }

/* ================= HEADER ================= */
.site-header {
    position: sticky;
    top: 0;
    z-index: 60;
    padding: .7rem 0;
    background: rgba(255, 250, 243, .72);
    border-bottom: 1px solid rgba(36,29,26,.06);
    -webkit-backdrop-filter: blur(20px) saturate(1.6);
    backdrop-filter: blur(20px) saturate(1.6);
}
.nav-inner { display: flex; align-items: center; gap: 1.4rem; }
.brand { display: flex; align-items: center; gap: .7rem; margin-right: auto; }
.brand-mark {
    width: 42px; height: 42px;
    display: grid; place-items: center;
    border-radius: 14px;
    background: linear-gradient(145deg, #d98a6c, var(--clay-deep));
    color: #fff;
    font-family: var(--font-display);
    font-size: 1.15rem;
    box-shadow: 0 10px 20px -10px rgba(161,79,56,.9), inset 0 1px 0 rgba(255,255,255,.4);
}
.brand-text { display: grid; line-height: 1.1; }
.brand-text strong { font-family: var(--font-display); font-size: 1.02rem; font-weight: 700; letter-spacing: -.01em; }
.brand-text span { font-size: .64rem; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-mute); }

.nav-links { display: flex; align-items: center; gap: .2rem; }
.nav-links a {
    padding: .5rem .8rem;
    border-radius: var(--radius-pill);
    font-size: .88rem;
    font-weight: 600;
    color: var(--ink-soft);
    transition: color .25s ease, background .25s ease;
}
.nav-links a:hover, .nav-links a.is-active { color: var(--ink); background: rgba(36,29,26,.06); }

.nav-actions { display: flex; align-items: center; gap: .55rem; }
.cart-pill {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    padding: .55rem 1rem;
    border-radius: var(--radius-pill);
    background: rgba(255,255,255,.7);
    border: 1px solid rgba(36,29,26,.1);
    font-size: .85rem;
    font-weight: 700;
    transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.cart-pill:hover { transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.cart-count {
    min-width: 20px; height: 20px;
    display: grid; place-items: center;
    padding: 0 .35rem;
    border-radius: var(--radius-pill);
    background: var(--clay);
    color: #fff;
    font-size: .68rem;
    font-weight: 800;
}
.nav-toggle {
    display: none;
    width: 42px; height: 42px;
    border-radius: 12px;
    border: 1px solid rgba(36,29,26,.12);
    background: rgba(255,255,255,.7);
    font-size: 1.1rem;
}

.user-chip {
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    padding: .35rem .8rem .35rem .35rem;
    border-radius: var(--radius-pill);
    background: rgba(255,255,255,.72);
    border: 1px solid rgba(36,29,26,.1);
    font-size: .82rem;
    font-weight: 700;
}
.avatar {
    width: 30px; height: 30px;
    display: grid; place-items: center;
    border-radius: 50%;
    background: linear-gradient(145deg, var(--sage), #5d7666);
    color: #fff;
    font-size: .8rem;
    font-weight: 800;
}

/* ================= FLASH ================= */
.flash-wrap {
    position: fixed;
    top: 82px;
    right: 1.4rem;
    z-index: 90;
    display: grid;
    gap: .55rem;
    max-width: min(380px, calc(100vw - 2rem));
}
.flash {
    padding: .85rem 1.1rem;
    border-radius: 16px;
    background: rgba(255,255,255,.92);
    border: 1px solid rgba(36,29,26,.08);
    box-shadow: var(--shadow);
    font-size: .86rem;
    font-weight: 600;
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    animation: flashIn .5s var(--ease) both;
}
.flash.success { border-left: 4px solid #5d946e; }
.flash.error   { border-left: 4px solid #b94a3c; }
.flash.info    { border-left: 4px solid #5a7a96; }

/* ================= FOOTER ================= */
.site-footer {
    margin-top: 4rem;
    padding: 3.4rem 0 1.6rem;
    background: linear-gradient(180deg, rgba(36,29,26,.97), #1b1613);
    color: rgba(255,250,243,.74);
    border-radius: 40px 40px 0 0;
}
.site-footer h4 { color: #fff; font-family: var(--font-body); font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; margin-bottom: 1rem; }
.site-footer a:hover { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 2.4rem; }
.footer-grid p { font-size: .87rem; line-height: 1.75; }
.footer-links { display: grid; gap: .5rem; font-size: .87rem; }
.footer-bottom {
    display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
    margin-top: 2.6rem; padding-top: 1.4rem;
    border-top: 1px solid rgba(255,255,255,.1);
    font-size: .78rem;
    color: rgba(255,250,243,.5);
}

/* ================= UTILITIES ================= */
.text-center { text-align: center; }
.muted { color: var(--ink-mute); }
.soft { color: var(--ink-soft); }
.mt-0 { margin-top: 0; }
.mt-1 { margin-top: .5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.8rem; }
.mb-0 { margin-bottom: 0; }
.mb-2 { margin-bottom: 1rem; }
.grid { display: grid; gap: 1.2rem; }
.flex { display: flex; align-items: center; gap: .7rem; }
.flex-between { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.hidden { display: none !important; }
@media (max-width: 720px) { .hidden-mobile { display: none !important; } }

/* ================= ANIMATION HELPERS ================= */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; }
.reveal.d2 { transition-delay: .16s; }
.reveal.d3 { transition-delay: .24s; }

@keyframes flashIn {
    from { opacity: 0; transform: translateY(-10px) scale(.97); }
    to { opacity: 1; transform: none; }
}
@keyframes floatY {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-14px); }
}
@keyframes spinSlow { to { transform: rotate(360deg); } }
@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
    .reveal { opacity: 1; transform: none; }
}

@media (max-width: 880px) {
    .nav-links {
        position: absolute; top: 100%; left: 0; right: 0;
        flex-direction: column;
        align-items: stretch;
        padding: .8rem 1.3rem 1.3rem;
        background: rgba(255,250,243,.97);
        border-bottom: 1px solid var(--line);
        box-shadow: var(--shadow);
        display: none;
    }
    .nav-links.open { display: flex; }
    .nav-toggle { display: grid; place-items: center; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .form-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
    .footer-grid { grid-template-columns: 1fr; }
    .brand-text span { display: none; }
}
