/* ============================================================
   Premium domain portfolio — Phase 1
   Aesthetic: quiet luxury. Warm off-black, gold accent, serif display.
   ============================================================ */
:root {
    --bg: #0e0f11;
    --bg-2: #16181b;
    --card: #1b1e22;
    --line: #2a2e34;
    --ink: #f4f1ea;
    --muted: #a2a6ad;
    --gold: #c9a86a;
    --gold-2: #e4cf9b;
    --green: #4a9d6b;
    --radius: 14px;
    --wrap: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
a { color: inherit; text-decoration: none; }
.muted { color: var(--muted); }

h1, h2, h3 { font-family: 'Fraunces', Georgia, serif; font-weight: 600; line-height: 1.1; margin: 0 0 .4em; }
h1 { font-size: clamp(2.4rem, 5vw, 4.2rem); letter-spacing: -0.5px; }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); }

/* ---------- Header ---------- */
.site-header {
    position: sticky; top: 0; z-index: 20;
    background: rgba(14,15,17,.82);
    backdrop-filter: saturate(160%) blur(12px);
    border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { font-family: 'Fraunces', serif; font-size: 1.3rem; font-weight: 600; letter-spacing: .3px; }
.brand.small { font-size: 1.05rem; margin-bottom: .5rem; }
.nav-links a { color: var(--muted); margin-left: 28px; font-size: .95rem; transition: color .2s; }
.nav-links a:hover { color: var(--ink); }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 13px 26px; border-radius: 10px; font-weight: 600; font-size: .98rem;
    border: 1px solid transparent; cursor: pointer; transition: transform .12s, background .2s, border-color .2s;
}
.btn:active { transform: translateY(1px); }
.btn-gold { background: linear-gradient(180deg, var(--gold-2), var(--gold)); color: #241d0c; }
.btn-gold:hover { filter: brightness(1.05); }
.btn-ghost { background: transparent; border-color: var(--line); color: var(--ink); }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold-2); }
.btn-lg { padding: 16px 32px; font-size: 1.05rem; }
.btn-block { width: 100%; }

/* ---------- Hero ---------- */
.hero { padding: 92px 0 64px; text-align: center; background:
    radial-gradient(900px 380px at 50% -10%, rgba(201,168,106,.14), transparent 70%); }
.hero p.lead { font-size: 1.2rem; color: var(--muted); max-width: 640px; margin: 0 auto 8px; }
.eyebrow { display:inline-block; letter-spacing:.22em; text-transform:uppercase; font-size:.72rem;
    color: var(--gold); border:1px solid var(--line); border-radius:999px; padding:6px 14px; margin-bottom:22px; }

/* ---------- Search / filter bar ---------- */
.toolbar { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; justify-content: center; margin: 34px 0 8px; }
.toolbar input, .toolbar select {
    background: var(--bg-2); border: 1px solid var(--line); color: var(--ink);
    padding: 12px 14px; border-radius: 10px; font-size: .95rem; font-family: inherit; min-width: 220px;
}
.toolbar input:focus, .toolbar select:focus { outline: none; border-color: var(--gold); }

/* ---------- Portfolio grid ---------- */
.section { padding: 64px 0; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; margin-top: 32px; }
.card {
    background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
    padding: 26px; display: flex; flex-direction: column; transition: transform .15s, border-color .15s;
}
.card:hover { transform: translateY(-3px); border-color: var(--gold); }
.card .dom { font-family: 'Fraunces', serif; font-size: 1.5rem; margin-bottom: 4px; word-break: break-word; }
.card .cat { font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); margin-bottom: 14px; }
.card .tag { color: var(--muted); font-size: .95rem; flex: 1; }
.card .price-row { display: flex; align-items: baseline; justify-content: space-between; margin-top: 20px; }
.card .price { font-size: 1.35rem; font-weight: 600; }
.card .price.offer { font-size: 1.05rem; color: var(--gold-2); }

/* ---------- Domain lander ---------- */
.lander-hero { padding: 88px 0 40px; text-align: center;
    background: radial-gradient(1000px 420px at 50% -10%, rgba(201,168,106,.16), transparent 70%); }
.lander-hero .dom { font-size: clamp(2.6rem, 7vw, 5.2rem); word-break: break-word; }
.lander-hero .price-badge { display: inline-block; margin-top: 14px; font-size: 1.5rem; font-weight: 600;
    padding: 10px 22px; border: 1px solid var(--line); border-radius: 999px; }
.cta-row { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 30px; }
.two-col { display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: start; }
.panel { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; }
.chip-list { list-style: none; padding: 0; margin: 12px 0 0; display: flex; flex-wrap: wrap; gap: 10px; }
.chip-list li { background: var(--bg-2); border: 1px solid var(--line); border-radius: 999px; padding: 8px 15px; font-size: .9rem; }
.escrow-note { display: flex; gap: 14px; align-items: flex-start; background: rgba(74,157,107,.08);
    border: 1px solid rgba(74,157,107,.35); border-radius: 12px; padding: 18px 20px; margin-top: 22px; }
.escrow-note .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--green); margin-top: 7px; flex: none; }

/* ---------- How-it-works steps ---------- */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 18px; margin-top: 30px; }
.step { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.step .n { font-family: 'Fraunces', serif; font-size: 1.6rem; color: var(--gold); }

/* ---------- Forms ---------- */
.field { margin-bottom: 16px; }
.field label { display: block; font-size: .88rem; color: var(--muted); margin-bottom: 6px; }
.field input, .field textarea, .field select {
    width: 100%; background: var(--bg-2); border: 1px solid var(--line); color: var(--ink);
    padding: 12px 14px; border-radius: 10px; font-size: .98rem; font-family: inherit;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--gold); }
.form-note { font-size: .85rem; color: var(--muted); }
.alert { padding: 14px 18px; border-radius: 10px; margin-bottom: 18px; }
.alert-ok { background: rgba(74,157,107,.12); border: 1px solid rgba(74,157,107,.4); }
.alert-err { background: rgba(201,86,86,.12); border: 1px solid rgba(201,86,86,.4); }

/* ---------- FAQ ---------- */
.faq details { border-bottom: 1px solid var(--line); padding: 18px 0; }
.faq summary { cursor: pointer; font-weight: 600; font-size: 1.05rem; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq p { color: var(--muted); margin: 10px 0 0; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); margin-top: 60px; padding: 48px 0 30px; background: var(--bg-2); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 30px; }
.footer-grid a, .footer-grid span { display: block; color: var(--muted); font-size: .92rem; margin-bottom: 6px; }
.footer-grid a:hover { color: var(--ink); }
.foot-head { color: var(--ink); font-weight: 600; margin-bottom: 12px; }
.copyright { margin-top: 34px; padding-top: 20px; border-top: 1px solid var(--line); font-size: .85rem; }

/* ---------- Admin ---------- */
.admin-wrap { max-width: 1000px; margin: 40px auto; padding: 0 24px; }
.table { width: 100%; border-collapse: collapse; margin-top: 18px; }
.table th, .table td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); font-size: .92rem; }
.table th { color: var(--muted); font-weight: 600; }
.badge { font-size: .75rem; padding: 3px 9px; border-radius: 999px; border: 1px solid var(--line); }
.badge.active { color: var(--green); border-color: rgba(74,157,107,.5); }
.badge.hidden { color: var(--muted); }
.badge.sold { color: var(--gold); border-color: var(--gold); }

/* ---------- Utility ---------- */
.center { text-align: center; }
.mt-40 { margin-top: 40px; }
.stack-sm > * + * { margin-top: 10px; }
.divider { height: 1px; background: var(--line); margin: 26px 0; }

@media (max-width: 820px) {
    .two-col { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .nav-links a:first-child { margin-left: 0; }
}
