@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;600;700&family=Outfit:wght@300;400;500;600;700&display=swap');

:root {
    --bg:        #F7F5F0;
    --white:     #FFFFFF;
    --ink:       #0D0D0D;
    --ink2:      #2A2A2A;
    --muted:     #6B6B6B;
    --border:    #E2DDD6;
    --gold:      #B8860B;
    --gold-light:#F0C040;
    --gold-bg:   #FBF6E9;
    --danger:    #C0392B;
    --success:   #1A6B3A;
    --radius:    4px;
    --radius-lg: 10px;
    --shadow:    0 1px 3px rgba(0,0,0,.06), 0 4px 16px rgba(0,0,0,.06);
    --shadow-lg: 0 8px 40px rgba(0,0,0,.10);
    --transition:.22s cubic-bezier(.4,0,.2,1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
    font-family: 'Outfit', sans-serif;
    background: var(--bg);
    color: var(--ink);
    font-size: 16px;
    line-height: 1.7;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ── TOPBAR ── */
.topbar {
    background: var(--ink);
    color: rgba(255,255,255,.55);
    font-size: 12px;
    font-weight: 400;
    letter-spacing: .06em;
    padding: 8px 64px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.topbar a { color: rgba(255,255,255,.55); text-decoration: none; }
.topbar a:hover { color: var(--gold-light); }
.topbar-right { display: flex; gap: 20px; align-items: center; }

/* ── HEADER ── */
header {
    background: var(--white);
    border-bottom: 1px solid var(--border);
    padding: 0 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow);
}

.header-brand {
    display: flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
}
.header-brand img {
    width: 42px;
    height: 42px;
    border-radius: var(--radius);
    object-fit: cover;
}
.header-brand h1 {
    font-family: 'Playfair Display', serif;
    font-size: 20px;
    font-weight: 700;
    color: var(--ink);
    letter-spacing: .02em;
}
.header-brand h1 span {
    color: var(--gold);
}

/* ── NAV ── */
nav {
    display: flex;
    align-items: center;
    gap: 2px;
}
nav a {
    color: var(--muted);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: var(--radius);
    transition: color var(--transition), background var(--transition);
    letter-spacing: .01em;
    white-space: nowrap;
}
nav a:hover { color: var(--ink); background: var(--bg); }
nav a.active { color: var(--gold); }

.nav-cta {
    margin-left: 12px;
    background: var(--ink) !important;
    color: var(--white) !important;
    border-radius: var(--radius) !important;
    padding: 9px 20px !important;
    font-weight: 600 !important;
    transition: background var(--transition) !important;
}
.nav-cta:hover { background: var(--gold) !important; color: var(--ink) !important; }

.nav-logout {
    margin-left: 8px;
    background: transparent !important;
    color: var(--danger) !important;
    border: 1px solid #EDCFCC !important;
    border-radius: var(--radius) !important;
    padding: 8px 16px !important;
    font-size: 13px !important;
    font-weight: 500 !important;
}
.nav-logout:hover { background: #FDF0EF !important; }

.nav-user {
    font-size: 13px;
    color: var(--muted);
    padding: 8px 14px;
    border-left: 1px solid var(--border);
    margin-left: 8px;
    white-space: nowrap;
}
.nav-user strong { color: var(--ink); font-weight: 600; }

/* ── MAIN ── */
main {
    flex: 1;
    padding: 72px 64px;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

/* ── TYPOGRAPHY ── */
h2 {
    font-family: 'Playfair Display', serif;
    font-size: 38px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -.01em;
    color: var(--ink);
    margin-bottom: 12px;
}
h3 {
    font-family: 'Playfair Display', serif;
    font-size: 20px;
    font-weight: 600;
    color: var(--ink);
    margin-bottom: 8px;
}
p { color: var(--muted); margin-bottom: 12px; }

.section-title { margin-bottom: 6px; }
.section-sub {
    font-size: 17px;
    color: var(--muted);
    margin-bottom: 48px;
    max-width: 560px;
}

.eyebrow {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 16px;
}

/* ── DIVIDER ── */
.divider {
    height: 1px;
    background: var(--border);
    margin: 20px 0 40px;
}
.divider-gold {
    height: 2px;
    width: 48px;
    background: var(--gold);
    margin: 16px 0 32px;
}

/* ── CARD ── */
.card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px;
    transition: box-shadow var(--transition), transform var(--transition), border-color var(--transition);
}
.card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
    border-color: transparent;
}

/* ── BUTTONS ── */
button, .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: var(--ink);
    border: none;
    border-radius: var(--radius);
    color: var(--white);
    cursor: pointer;
    font-family: 'Outfit', sans-serif;
    font-size: 14px;
    font-weight: 600;
    padding: 13px 28px;
    text-decoration: none;
    letter-spacing: .03em;
    transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
}
button:hover, .btn:hover {
    background: var(--gold);
    color: var(--ink);
    transform: translateY(-1px);
    box-shadow: 0 4px 20px rgba(184,134,11,.25);
}
button:active { transform: translateY(0); }

.btn-outline {
    background: transparent;
    border: 1.5px solid var(--ink);
    color: var(--ink);
}
.btn-outline:hover {
    background: var(--ink);
    color: var(--white);
    box-shadow: none;
}

.btn-gold {
    background: var(--gold);
    color: var(--ink);
}
.btn-gold:hover {
    background: var(--ink);
    color: var(--white);
    box-shadow: none;
}

/* ── FORMS ── */
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label {
    font-size: 13px;
    font-weight: 600;
    color: var(--ink2);
    letter-spacing: .03em;
}

form { display: flex; flex-direction: column; gap: 18px; }

input, textarea, select {
    background: var(--white);
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    color: var(--ink);
    font-family: 'Outfit', sans-serif;
    font-size: 15px;
    padding: 12px 16px;
    width: 100%;
    transition: border-color var(--transition), box-shadow var(--transition);
    outline: none;
}
input::placeholder, textarea::placeholder { color: #B0A898; }
input:focus, textarea:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(184,134,11,.10);
}
textarea { min-height: 130px; resize: vertical; }

/* ── ALERTS ── */
.alert {
    padding: 14px 18px;
    border-radius: var(--radius);
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 20px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}
.alert-success {
    background: #EAF6EF;
    border: 1px solid #A8D5B8;
    color: var(--success);
}
.alert-error {
    background: #FDF0EF;
    border: 1px solid #EDCFCC;
    color: var(--danger);
}

/* ── FOOTER ── */
footer {
    background: var(--ink);
    color: rgba(255,255,255,.45);
    padding: 48px 64px;
    margin-top: auto;
}
.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    flex-wrap: wrap;
    gap: 24px;
}
.footer-brand {
    font-family: 'Playfair Display', serif;
    font-size: 18px;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 6px;
}
.footer-brand span { color: var(--gold-light); }
.footer-links { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-links a {
    color: rgba(255,255,255,.45);
    text-decoration: none;
    font-size: 13px;
    transition: color var(--transition);
}
.footer-links a:hover { color: var(--gold-light); }
.footer-copy { font-size: 12px; margin-top: 32px; border-top: 1px solid rgba(255,255,255,.1); padding-top: 24px; }

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
    .topbar { display: none; }
    header { padding: 0 24px; height: 68px; }
    main { padding: 40px 24px; }
    footer { padding: 40px 24px; }
    h2 { font-size: 28px; }
    nav a { padding: 8px 10px; font-size: 13px; }
}
