/* Mondo Pizzaiolo - shared styles */

:root {
  --crust: #e8a33d;
  --tomato: #c0392b;
  --tomato-dark: #9c2a1f;
  --basil: #2e7d52;
  --dough: #fdf6ec;
  --dough-dark: #f4e8d6;
  --ink: #2b2320;
  --ink-soft: #6b5f56;
  --border: #e6d9c4;
  --white: #ffffff;
  --radius: 14px;
  --shadow: 0 4px 18px rgba(43, 35, 32, 0.08);
  --shadow-lg: 0 12px 32px rgba(43, 35, 32, 0.14);
  --max-width: 1120px;
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
}

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--dough);
  color: var(--ink);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 0.5em;
  color: var(--ink);
}

p { margin: 0 0 1em; }

a { color: var(--tomato); text-decoration: none; }
a:hover { text-decoration: underline; }

img { max-width: 100%; display: block; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Header ---------- */

header.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 50;
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: "Fraunces", Georgia, serif;
  font-weight: 700;
  font-size: 1.35rem;
  color: var(--ink);
}
.brand:hover { text-decoration: none; }
.brand .slice { font-size: 1.5rem; }

nav.main-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
}

nav.main-nav a {
  color: var(--ink);
  font-weight: 500;
  font-size: 0.96rem;
}
nav.main-nav a:hover { color: var(--tomato); text-decoration: none; }

.nav-auth {
  display: flex;
  align-items: center;
  gap: 12px;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px 4px 6px;
  border-radius: 999px;
  background: var(--dough-dark);
  font-size: 0.88rem;
  font-weight: 600;
}
.pill .dot {
  width: 22px; height: 22px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  color: white; font-size: 0.75rem; font-weight: 700;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: none;
  border-radius: 999px;
  padding: 11px 22px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: transform 0.08s ease, box-shadow 0.15s ease, background 0.15s ease;
  font-family: inherit;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: scale(0.98); }

.btn-primary { background: var(--tomato); color: var(--white); }
.btn-primary:hover { background: var(--tomato-dark); color: var(--white); }

.btn-secondary { background: var(--basil); color: var(--white); }
.btn-secondary:hover { background: #235f3f; color: var(--white); }

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

.btn-sm { padding: 7px 16px; font-size: 0.85rem; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: 0.55; cursor: not-allowed; }

/* ---------- Hero ---------- */

.hero {
  background: radial-gradient(circle at 15% 20%, #fff 0%, var(--dough) 55%),
    linear-gradient(180deg, var(--dough) 0%, var(--dough-dark) 100%);
  padding: 72px 0 60px;
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: center;
}

@media (max-width: 860px) {
  .hero-inner { grid-template-columns: 1fr; }
}

.eyebrow {
  display: inline-block;
  background: var(--crust);
  color: #3f2a00;
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 18px;
}

.hero h1 {
  font-size: clamp(2.1rem, 4vw, 3.2rem);
  margin-bottom: 18px;
}

.hero p.lead {
  font-size: 1.15rem;
  color: var(--ink-soft);
  max-width: 46ch;
}

.hero-actions {
  display: flex;
  gap: 14px;
  margin-top: 28px;
  flex-wrap: wrap;
}

.hero-art {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #f4d29a, var(--crust) 60%, #c9791f 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-lg);
  max-width: 380px;
  margin: 0 auto;
}
.hero-art span { font-size: 7rem; filter: drop-shadow(0 8px 12px rgba(0,0,0,0.18)); }

.stats-row {
  display: flex;
  gap: 40px;
  margin-top: 44px;
  flex-wrap: wrap;
}
.stat .num {
  font-family: "Fraunces", Georgia, serif;
  font-size: 1.9rem;
  font-weight: 700;
  color: var(--tomato);
}
.stat .label {
  font-size: 0.85rem;
  color: var(--ink-soft);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* ---------- Sections ---------- */

section { padding: 64px 0; }
section.tight { padding: 40px 0; }
.section-head { max-width: 640px; margin-bottom: 36px; }
.section-head p { color: var(--ink-soft); }

.two-col-cta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
@media (max-width: 720px) { .two-col-cta { grid-template-columns: 1fr; } }

.role-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.role-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.role-card .icon { font-size: 2.4rem; margin-bottom: 14px; }
.role-card h3 { margin-bottom: 8px; }
.role-card p { color: var(--ink-soft); }
.role-card ul { padding-left: 20px; color: var(--ink-soft); margin: 14px 0 22px; }
.role-card ul li { margin-bottom: 4px; }

/* ---------- Cards / Grids ---------- */

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.card-top { display: flex; align-items: center; gap: 12px; }

.avatar {
  width: 46px; height: 46px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: white; font-weight: 700; font-size: 1.05rem;
  flex-shrink: 0;
}
.avatar-lg { width: 84px; height: 84px; font-size: 1.9rem; }

.card-title { font-weight: 700; font-size: 1.05rem; }
.card-sub { color: var(--ink-soft); font-size: 0.88rem; }

.badge-row { display: flex; flex-wrap: wrap; gap: 6px; }
.badge {
  background: var(--dough-dark);
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
}
.badge.green { background: #e3f1e8; color: var(--basil); }
.badge.red { background: #fbe6e2; color: var(--tomato); }

.card-desc {
  color: var(--ink-soft);
  font-size: 0.92rem;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}

.card-foot {
  margin-top: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 8px;
}

/* ---------- Filters bar ---------- */

.filters {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 28px;
  align-items: end;
}

.field { display: flex; flex-direction: column; gap: 6px; }
.field label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--ink-soft);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

input, select, textarea {
  font-family: inherit;
  font-size: 0.95rem;
  padding: 10px 12px;
  border-radius: 9px;
  border: 1.5px solid var(--border);
  background: var(--white);
  color: var(--ink);
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--tomato);
}
textarea { resize: vertical; min-height: 90px; }

.field-search { flex: 1; min-width: 200px; }

/* ---------- Forms ---------- */

.form-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
  max-width: 560px;
  margin: 0 auto;
}

.form-row { display: flex; flex-direction: column; gap: 6px; margin-bottom: 18px; }
.form-row label { font-weight: 600; font-size: 0.9rem; }
.form-row .hint { font-size: 0.8rem; color: var(--ink-soft); }
.form-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 520px) { .form-grid-2 { grid-template-columns: 1fr; } }

.role-toggle {
  display: flex;
  border: 1.5px solid var(--border);
  border-radius: 999px;
  padding: 4px;
  margin-bottom: 26px;
}
.role-toggle button {
  flex: 1;
  border: none;
  background: transparent;
  padding: 10px;
  border-radius: 999px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  color: var(--ink-soft);
}
.role-toggle button.active { background: var(--tomato); color: white; }

.checkbox-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}
.checkbox-grid label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
  font-size: 0.9rem;
  background: var(--dough-dark);
  padding: 8px 10px;
  border-radius: 8px;
  cursor: pointer;
}
.checkbox-grid input { width: auto; padding: 0; }

.alert {
  padding: 12px 16px;
  border-radius: 10px;
  font-size: 0.9rem;
  margin-bottom: 18px;
}
.alert-error { background: #fbe6e2; color: var(--tomato-dark); }
.alert-success { background: #e3f1e8; color: var(--basil); }

/* ---------- How it works ---------- */

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
@media (max-width: 780px) { .steps { grid-template-columns: 1fr; } }
.step {
  background: var(--white);
  border-radius: var(--radius);
  padding: 26px;
  border: 1px solid var(--border);
}
.step .step-num {
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--crust); color: #3f2a00; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 14px;
}

/* ---------- Profile / job detail ---------- */

.detail-header {
  display: flex;
  gap: 22px;
  align-items: center;
  margin-bottom: 28px;
  flex-wrap: wrap;
}
.detail-header .meta { color: var(--ink-soft); }

.detail-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 28px;
}
@media (max-width: 820px) { .detail-grid { grid-template-columns: 1fr; } }

.panel {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
  margin-bottom: 20px;
}
.panel h3 { font-size: 1.05rem; margin-bottom: 12px; }

.kv { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px dashed var(--border); font-size: 0.92rem; }
.kv:last-child { border-bottom: none; }
.kv .k { color: var(--ink-soft); }
.kv .v { font-weight: 600; }

/* ---------- Empty state ---------- */

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

/* ---------- Tabs ---------- */

.tab-row { display: flex; gap: 8px; border-bottom: 1.5px solid var(--border); margin-bottom: 24px; }
.tab-btn {
  background: none; border: none; font-family: inherit; cursor: pointer;
  padding: 10px 4px; font-weight: 600; color: var(--ink-soft);
  border-bottom: 2px solid transparent; margin-bottom: -2px; font-size: 0.95rem;
}
.tab-btn.active { color: var(--tomato); border-bottom-color: var(--tomato); }

/* ---------- Footer ---------- */

footer.site-footer {
  background: #241a15;
  color: #d9c9ba;
  padding: 48px 0 28px;
  margin-top: 60px;
}
footer.site-footer .footer-inner {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
}
footer.site-footer .brand { color: white; }
footer.site-footer a { color: #d9c9ba; }
footer.site-footer .footer-cols { display: flex; gap: 60px; flex-wrap: wrap; }
footer.site-footer .footer-cols h4 { color: white; font-size: 0.9rem; margin-bottom: 10px; }
footer.site-footer .footer-cols a { display: block; font-size: 0.88rem; margin-bottom: 8px; }
footer.site-footer .fine-print {
  margin-top: 36px;
  padding-top: 20px;
  border-top: 1px solid #3a2c24;
  font-size: 0.8rem;
  color: #a2907f;
}

/* ---------- Messages ---------- */

.msg-layout {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 20px;
  align-items: stretch;
}
@media (max-width: 720px) { .msg-layout { grid-template-columns: 1fr; } }

.msg-inbox { padding: 8px; max-height: 560px; overflow-y: auto; }
.inbox-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  border: none;
  background: transparent;
  padding: 10px;
  border-radius: 10px;
  cursor: pointer;
  font-family: inherit;
  text-align: left;
}
.inbox-item:hover { background: var(--dough-dark); }

.msg-thread { display: flex; flex-direction: column; min-height: 420px; }
.msg-scroll { flex: 1; overflow-y: auto; max-height: 420px; padding-right: 4px; }

.msg-bubble {
  max-width: 78%;
  background: var(--dough-dark);
  border-radius: 14px;
  padding: 10px 14px;
  margin-bottom: 10px;
  font-size: 0.92rem;
}
.msg-bubble.mine { background: var(--tomato); color: white; margin-left: auto; }
.msg-bubble .msg-time { font-size: 0.7rem; opacity: 0.65; margin-top: 4px; }

/* ---------- Utility ---------- */

.mt-0 { margin-top: 0; }
.text-center { text-align: center; }
.loading { color: var(--ink-soft); padding: 40px 0; text-align: center; }
.flex { display: flex; }
.gap-8 { gap: 8px; }
.gap-16 { gap: 16px; }
.wrap { flex-wrap: wrap; }
.mb-24 { margin-bottom: 24px; }

/* ---------- Mobile ---------- */

@media (max-width: 880px) {
  .header-inner { flex-wrap: wrap; padding: 12px 16px; gap: 10px; }
  nav.main-nav { order: 3; width: 100%; gap: 14px; justify-content: center; padding-top: 8px; border-top: 1px solid var(--border); }
  .nav-auth { gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
}

@media (max-width: 640px) {
  .container { padding: 0 16px; }
  section { padding: 40px 0; }
  section.tight { padding: 24px 0; }
  .hero { padding: 44px 0 36px; }
  .form-card { padding: 22px; }
  .panel { padding: 18px; }
  .checkbox-grid { grid-template-columns: 1fr; }
  .kv { flex-direction: column; align-items: flex-start; gap: 4px; }
  .kv .v { font-weight: 600; }
  .detail-header { flex-direction: column; align-items: flex-start; text-align: left; }
  .filters { flex-direction: column; align-items: stretch; }
  .field-search { min-width: 0; }
  .tab-row { overflow-x: auto; flex-wrap: nowrap; -webkit-overflow-scrolling: touch; }
  .tab-btn { flex-shrink: 0; }
  .stats-row { gap: 24px; }
  .grid { grid-template-columns: 1fr; }
  .nav-auth .btn-sm { padding: 6px 12px; font-size: 0.8rem; }
}
