@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,400;9..144,500;9..144,600;9..144,700&family=Inter:wght@400;500;600;700&family=IBM+Plex+Mono:wght@500&display=swap');

:root {
  --navy: #0D2438;
  --navy-soft: #16394F;
  --blue: #123C5C;
  --blue-2: #0B2A42;
  --blue-light: #1E5A85;
  --gold: #C89B3C;
  --seafoam: #3F8F86;
  --sand: #EFEAE0;
  --white: #FFFFFF;
  --ink: #16232D;
  --ink-600: #57636C;
  --border: #DCD5C3;
  --danger: #B3452C;
  --radius: 10px;
  --max: 1140px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Inter', system-ui, sans-serif;
  color: var(--ink);
  background: var(--white);
  line-height: 1.55;
}
h1, h2, h3, h4 {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 .5em;
  color: var(--navy);
}
h1 { font-size: clamp(2.1rem, 4vw, 3.4rem); font-weight: 700; }
h2 { font-size: clamp(1.6rem, 2.6vw, 2.3rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; color: var(--ink-600); }
a { color: inherit; }
.container { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.eyebrow {
  font-family: 'IBM Plex Mono', monospace;
  font-size: .72rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--seafoam);
  font-weight: 500;
}

/* Nav */
.site-nav {
  border-bottom: 1px solid var(--blue-2);
  position: sticky; top: 0; background: rgba(18,60,92,.97);
  backdrop-filter: blur(6px);
  z-index: 50;
}
.site-nav .container {
  display: flex; align-items: center; justify-content: space-between;
  height: 68px;
}
.brand {
  font-family: 'Fraunces', serif;
  font-weight: 700;
  font-size: 1.15rem;
  color: #FFFFFF;
  text-decoration: none;
  display: flex; align-items: center; gap: 8px;
}
.brand .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--gold); display: inline-block; }
.nav-links { display: flex; gap: 28px; align-items: center; }
.nav-links a {
  text-decoration: none; color: rgba(255,255,255,.78); font-size: .92rem; font-weight: 500;
}
.nav-links a:hover { color: #FFFFFF; }
.nav-right { display: flex; align-items: center; gap: 14px; }
#nav-auth { display: flex; align-items: center; gap: 10px; }
.nav-toggle { display: none; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 20px; border-radius: 999px; font-weight: 600; font-size: .92rem;
  text-decoration: none; border: 1px solid transparent; cursor: pointer;
  font-family: inherit; transition: transform .12s ease, opacity .12s ease;
}
.btn:active { transform: scale(.97); }
.btn-primary { background: var(--gold); color: var(--navy); }
.btn-primary:hover { opacity: .88; }
.btn-gold { background: var(--gold); color: var(--navy); }
.btn-gold:hover { opacity: .88; }
.btn-ghost { background: transparent; color: var(--navy); border-color: var(--border); }
.btn-ghost:hover { background: var(--sand); }

/* Ghost buttons sitting directly on a blue background need light styling */
.site-nav .btn-ghost, .hero .btn-ghost, footer .btn-ghost, .bg-sand .btn-ghost {
  color: #FFFFFF; border-color: rgba(255,255,255,.4);
}
.site-nav .btn-ghost:hover, .hero .btn-ghost:hover, footer .btn-ghost:hover, .bg-sand .btn-ghost:hover {
  background: rgba(255,255,255,.12);
}
.btn-block { width: 100%; }
.btn[disabled] { opacity: .55; cursor: not-allowed; }
.btn-sm { padding: 7px 14px; font-size: .82rem; }

/* Hero */
.hero { padding: 84px 0 64px; background:
  radial-gradient(1100px 480px at 85% -10%, rgba(200,155,60,.18) 0%, transparent 60%), linear-gradient(160deg, var(--blue), var(--blue-2)); }
.hero-inner { max-width: 700px; }
.hero h1, .hero h2, .hero h3 { color: #FFFFFF; }
.hero p { color: rgba(255,255,255,.8); }
.hero .eyebrow { color: var(--gold); }
.hero-cta { display: flex; gap: 14px; margin-top: 28px; flex-wrap: wrap; }
.stat-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 64px; }
.stat b { font-family: 'IBM Plex Mono', monospace; font-size: 1.7rem; color: var(--gold); display: block; }
.stat span { font-size: .82rem; color: rgba(255,255,255,.7); }

/* Sections */
section { padding: 64px 0; }
.section-head { max-width: 620px; margin-bottom: 40px; }
.bg-sand { background: var(--blue-light); }
.bg-sand h1, .bg-sand h2, .bg-sand h3 { color: #FFFFFF; }
.bg-sand > .container > p,
.bg-sand .section-head p,
.bg-sand .step p { color: rgba(255,255,255,.78); }
.bg-sand .eyebrow { color: var(--gold); }
.bg-sand .step b { color: var(--gold); }
.bg-sand .step h3 { color: #FFFFFF; }
.bg-sand .fine { color: rgba(255,255,255,.7); }

/* Pricing / plan cards */
.plan-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; align-items: stretch; }
.plan-card {
  border: 1px solid var(--border); border-radius: var(--radius); padding: 28px;
  background: var(--white); display: flex; flex-direction: column; position: relative;
}
.plan-card.featured { border: 2px solid var(--gold); box-shadow: 0 12px 32px -18px rgba(200,155,60,.5); }
.plan-badge {
  position: absolute; top: -12px; left: 24px; background: var(--gold); color: var(--navy);
  font-size: .72rem; font-weight: 700; padding: 4px 12px; border-radius: 999px;
  font-family: 'IBM Plex Mono', monospace; letter-spacing: .03em;
}
.plan-icon { font-size: 1.6rem; }
.plan-price { font-family: 'Fraunces', serif; font-size: 1.9rem; color: var(--navy); margin: 10px 0 2px; }
.plan-sub { font-size: .82rem; color: var(--ink-600); margin-bottom: 18px; }
.plan-card ul { list-style: none; padding: 0; margin: 0 0 24px; flex: 1; }
.plan-card li { padding: 7px 0; font-size: .9rem; border-top: 1px dashed var(--border); }
.plan-card li:first-child { border-top: none; }

/* Addon grid */
.addon-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.addon-card { border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; background: var(--white); }
.addon-card .price { font-family: 'IBM Plex Mono', monospace; color: var(--seafoam); font-weight: 500; margin-top: 8px; display: block; }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.step b {
  font-family: 'IBM Plex Mono', monospace; color: var(--gold); font-size: .85rem;
  display: block; margin-bottom: 8px;
}

/* Forms */
.form-card {
  border: 1px solid var(--border); border-radius: var(--radius); padding: 32px; background: var(--white);
}
.field { margin-bottom: 18px; }
.field label { display: block; font-size: .86rem; font-weight: 600; margin-bottom: 6px; color: var(--navy); }
.field .hint { font-size: .78rem; color: var(--ink-600); margin-top: 4px; }
input, select, textarea {
  width: 100%; padding: 11px 13px; border: 1px solid var(--border); border-radius: 8px;
  font-family: inherit; font-size: .94rem; background: var(--white); color: var(--ink);
}
input:focus, select:focus, textarea:focus { outline: 2px solid var(--seafoam); outline-offset: 1px; }
textarea { resize: vertical; min-height: 90px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-actions { display: flex; justify-content: space-between; margin-top: 26px; gap: 12px; }
.checkbox-row { display: flex; gap: 10px; align-items: flex-start; font-size: .86rem; color: var(--ink-600); }
.checkbox-row input { width: auto; margin-top: 3px; }

/* Progress steps (listing wizard) */
.wizard-steps { display: flex; gap: 8px; margin-bottom: 32px; }
.wizard-steps .ws {
  flex: 1; text-align: center; padding: 10px 6px; border-radius: 8px; font-size: .8rem;
  font-weight: 600; color: var(--ink-600); background: var(--sand);
  border-bottom: 3px solid var(--border);
}
.wizard-steps .ws.active { color: var(--navy); background: #fff; border-bottom-color: var(--gold); }
.wizard-steps .ws.done { color: var(--seafoam); border-bottom-color: var(--seafoam); }

/* Cards / listings grid */
.listing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.listing-card { border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; background: #fff; }
.listing-card .photo {
  height: 170px; background: linear-gradient(135deg, var(--sand), #E4DCC5);
  display: flex; align-items: center; justify-content: center; color: var(--ink-600); font-size: .8rem;
}
.listing-card .photo img { width: 100%; height: 100%; object-fit: cover; }
.listing-card .body { padding: 16px 18px 20px; }
.listing-card h3 { margin-bottom: 2px; font-size: 1.05rem; }
.listing-card .loc { font-size: .82rem; color: var(--ink-600); margin-bottom: 10px; }
.listing-card .price { font-family: 'IBM Plex Mono', monospace; color: var(--navy); font-weight: 500; font-size: 1.05rem; }
.listing-card .meta { display: flex; gap: 12px; font-size: .78rem; color: var(--ink-600); margin: 8px 0 14px; }
.badge {
  display: inline-block; font-size: .7rem; font-weight: 700; padding: 3px 10px; border-radius: 999px;
  font-family: 'IBM Plex Mono', monospace; letter-spacing: .02em;
}
.badge-diy { background: #E4F0EE; color: var(--seafoam); }
.badge-full { background: #F4EAD3; color: #92701F; }
.badge-limited { background: #EFEAE0; color: var(--ink-600); }
.badge-pending { background: #F3E7E1; color: var(--danger); }
.badge-active { background: #E4F0EE; color: var(--seafoam); }
.badge-sold { background: #E7E2D6; color: var(--ink-600); }

.filters-bar {
  display: flex; gap: 12px; flex-wrap: wrap; align-items: flex-end;
  border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; margin-bottom: 28px; background: var(--sand);
}
.filters-bar .field { margin: 0; min-width: 170px; flex: 1; }

.empty-state { text-align: center; padding: 60px 20px; color: var(--ink-600); }
.empty-state .glyph { font-size: 2rem; margin-bottom: 10px; }

/* Dashboard table */
.dash-table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.dash-table th { text-align: left; font-family: 'IBM Plex Mono', monospace; font-size: .72rem; text-transform: uppercase;
  letter-spacing: .04em; color: var(--ink-600); padding: 10px 12px; border-bottom: 1px solid var(--border); }
.dash-table td { padding: 14px 12px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.dash-table tr:hover td { background: var(--sand); }

/* Alerts */
.alert { padding: 13px 16px; border-radius: 8px; font-size: .88rem; margin-bottom: 18px; }
.alert-error { background: #F6E7E1; color: var(--danger); border: 1px solid #E9C6B8; }
.alert-success { background: #E4F0EE; color: #245B54; border: 1px solid #B9DAD4; }

/* Auth pages */
.auth-wrap { max-width: 420px; margin: 70px auto; padding: 0 20px; }
.auth-wrap .form-card { text-align: left; }

/* Footer */
footer { border-top: 1px solid var(--blue-2); padding: 40px 0; margin-top: 40px; background: var(--blue-2); }
footer .container { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; }
footer .brand { color: #FFFFFF; }
.foot-links { display: flex; gap: 20px; }
footer .foot-links a { color: rgba(255,255,255,.75); }
footer .fine { color: rgba(255,255,255,.6); }
.foot-links a { font-size: .85rem; color: var(--ink-600); text-decoration: none; }
.fine { font-size: .78rem; color: var(--ink-600); }

@media (max-width: 880px) {
  .nav-links { display: none; }
  .plan-grid, .addon-grid, .steps, .listing-grid, .stat-row { grid-template-columns: 1fr 1fr; }
  .field-row { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .plan-grid, .addon-grid, .steps, .listing-grid, .stat-row { grid-template-columns: 1fr; }
}
