/*
 * FreshFlip Luxury Theme — Shared Base
 * Include on every page: <link rel="stylesheet" href="/css/luxury.css">
 *
 * Provides: CSS variables, typography, body background, buttons,
 * form inputs, cards, badges, links, dark mode.
 * Pages add their own layout CSS on top of this.
 */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@400;500;600;700&family=Inter:wght@400;500;600;700;800;900&display=swap');

:root {
    /* ── White Marble + Gold ── */
    --gold: #C9A84C;
    --gold-dark: #B08A3A;
    --gold-glow: rgba(201, 168, 76, .10);
    --surface: rgba(255, 253, 250, .94);
    --glass: rgba(255, 253, 250, .72);
    --bg: #FAF9F6;
    --text: #2A2520;
    --muted: #8B8178;
    --border: rgba(201, 168, 76, .16);
    --border-strong: rgba(201, 168, 76, .30);
    --shadow-sm: 0 4px 20px -4px rgba(160, 130, 50, .08);
    --shadow: 0 12px 40px -12px rgba(160, 130, 50, .12);
    --shadow-lg: 0 20px 60px -15px rgba(160, 130, 50, .16);
    --radius: 20px;
    --red: #C04040;
    --yellow: #C49A20;
    --green: #3A9B55;
    --blue: #6B8EC4;
    --marble: rgba(201, 168, 76, .035);
    --serif: 'Cormorant Garamond', Georgia, serif;
    --sans: 'Inter', system-ui, -apple-system, sans-serif;
}

@media (prefers-color-scheme: dark) {
    :root {
        --gold: #D4A853;
        --gold-dark: #C9A84C;
        --gold-glow: rgba(212, 168, 83, .08);
        --surface: rgba(16, 14, 12, .94);
        --glass: rgba(16, 14, 12, .72);
        --bg: #0A0908;
        --text: #F5F3EF;
        --muted: #9B9690;
        --border: rgba(212, 168, 83, .12);
        --border-strong: rgba(212, 168, 83, .25);
        --shadow-sm: 0 4px 20px -4px rgba(0, 0, 0, .2);
        --shadow: 0 12px 40px -12px rgba(0, 0, 0, .35);
        --shadow-lg: 0 20px 60px -15px rgba(0, 0, 0, .45);
        --marble: rgba(212, 168, 83, .02);
    }
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--sans);
    background: var(--bg);
    background-image:
        repeating-linear-gradient(115deg, var(--marble) 0px, transparent 1px, transparent 90px),
        repeating-linear-gradient(65deg, var(--marble) 0px, transparent 1px, transparent 130px),
        radial-gradient(ellipse 800px 400px at 8% 0%, rgba(201, 168, 76, .05), transparent);
    color: var(--text);
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    color: var(--gold);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* ── Typography ── */
h1,
h2,
h3 {
    font-family: var(--serif);
}

h1 {
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: -.02em;
}

h2 {
    font-size: 1.4rem;
    font-weight: 600;
}

h3 {
    font-size: 1.05rem;
    font-weight: 600;
}

/* ── Card ── */
.card {
    background: var(--surface);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px 24px;
    box-shadow: var(--shadow);
}

/* ── Buttons ── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 13px 20px;
    border-radius: 14px;
    border: none;
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    color: #fff;
    font-family: var(--sans);
    font-weight: 800;
    font-size: .92rem;
    cursor: pointer;
    letter-spacing: .02em;
    box-shadow: 0 8px 20px -10px rgba(201, 168, 76, .35);
    transition: transform .12s, box-shadow .12s;
}

.btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 28px -12px rgba(201, 168, 76, .5);
    text-decoration: none;
}

.btn:active {
    transform: translateY(0);
}

.btn--ghost {
    background: transparent;
    color: var(--text);
    border: 1px solid var(--border-strong);
    box-shadow: none;
}

.btn--ghost:hover {
    background: var(--glass);
    border-color: var(--gold);
    transform: none;
    box-shadow: none;
}

/* ── Form inputs ── */
label {
    display: block;
    margin: 14px 0 6px;
    color: var(--muted);
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
}

input,
select,
textarea {
    width: 100%;
    padding: 13px 14px;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: var(--glass);
    color: var(--text);
    font-size: 1rem;
    font-family: var(--sans);
    outline: none;
    transition: border-color .15s, box-shadow .15s;
}

input:focus,
select:focus,
textarea:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 3px var(--gold-glow);
}

/* ── Brand header ── */
.brand {
    text-align: center;
    margin-bottom: 24px;
}

.brand h1 {
    font-family: var(--serif);
    font-size: 1.8rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 4px;
}

.brand p {
    color: var(--muted);
    font-weight: 700;
    font-size: .78rem;
    text-transform: uppercase;
    letter-spacing: .1em;
}

/* ── Messages ── */
.msg {
    margin-top: 14px;
    font-size: .88rem;
    text-align: center;
    color: var(--muted);
    min-height: 20px;
}

.err {
    color: var(--red);
}

.ok {
    color: var(--green);
}

/* ── Footer links ── */
.footer {
    text-align: center;
    margin-top: 20px;
    font-size: .88rem;
    color: var(--muted);
    font-weight: 600;
}

.footer a {
    color: var(--gold);
    font-weight: 700;
}

/* ── Divider ── */
.divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 18px 0;
    color: var(--muted);
    font-size: .72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border);
}