:root {
  --bg: #f7f6f2;
  --card: #ffffff;
  --ink: #1b2537;
  --muted: #6b7688;
  --line: #e7e6df;
  --brand: #1f2c4d;      /* navy from the logo */
  --brand-dark: #14203a;
  --accent: #1f2c4d;     /* navy for links & accents */
  --gold: #b8935a;       /* tan/gold from the logo */
  --green: #17924a;
  --shadow: 0 6px 24px rgba(24, 40, 72, 0.08);
  --radius: 16px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Segoe UI", system-ui, -apple-system, Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

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

img { max-width: 100%; }

.container {
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  padding: 0 18px;
}

/* Header / nav */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}
.brand:hover { text-decoration: none; }
.brand-logo {
  height: 56px;
  width: auto;
  display: block;
}
.nav-links { display: flex; align-items: center; gap: 16px; }
.nav-links a { color: var(--muted); font-weight: 600; }
.nav-links a:hover { color: var(--ink); text-decoration: none; }
.nav-links span { color: var(--muted); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: none;
  cursor: pointer;
  font-weight: 700;
  font-size: 1rem;
  padding: 13px 20px;
  border-radius: 12px;
  background: var(--brand);
  color: #fff;
  transition: transform .05s ease, background .15s ease, box-shadow .15s ease;
  box-shadow: 0 4px 14px rgba(31, 44, 77, .28);
}
.btn:hover { background: var(--brand-dark); text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn.block { width: 100%; }
.btn.secondary {
  background: #fff;
  color: var(--ink);
  border: 1.5px solid var(--line);
  box-shadow: none;
}
.btn.secondary:hover { border-color: var(--gold); color: var(--brand-dark); }
.btn.big { font-size: 1.08rem; padding: 15px 26px; }
.btn:disabled { opacity: .55; cursor: not-allowed; }

/* Hero */
.hero-wrap {
  background: linear-gradient(180deg, #ffffff 0%, #f4f1e9 100%);
  border-bottom: 1px solid var(--line);
}
.hero {
  padding: 26px 0 40px;
  text-align: center;
}
.hero-logo {
  width: min(300px, 68%);
  height: auto;
  display: block;
  margin: 0 auto 10px;
  filter: drop-shadow(0 12px 26px rgba(20, 32, 58, 0.18));
}
.hero h1 {
  font-size: 2.1rem;
  line-height: 1.15;
  margin: 0 0 12px;
  letter-spacing: -0.5px;
  color: var(--ink);
}
.hero p { color: var(--muted); font-size: 1.1rem; margin: 0 auto 22px; max-width: 560px; }
.hero .cta-row { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.pill {
  display: inline-block;
  background: #f1ead9;
  color: #8a6a34;
  font-weight: 700;
  font-size: .85rem;
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 16px;
}

/* Sections */
.section { padding: 26px 0; }
.section h2 { font-size: 1.4rem; margin: 0 0 4px; }
.section .sub { color: var(--muted); margin: 0 0 18px; }

/* Cards grid */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow);
  transition: transform .12s ease, box-shadow .12s ease;
}
.card.link:hover { transform: translateY(-3px); box-shadow: 0 12px 30px rgba(24,40,72,.12); }

.hm-top { display: flex; align-items: center; gap: 12px; }
.avatar {
  width: 52px; height: 52px;
  border-radius: 50%;
  display: grid; place-items: center;
  color: #fff; font-weight: 800; font-size: 1.2rem;
  flex: 0 0 auto;
}
.hm-name { font-weight: 800; font-size: 1.08rem; }
.hm-city { color: var(--muted); font-size: .9rem; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0; }
.tag {
  background: #eef2f8; color: #3a475a;
  font-size: .8rem; font-weight: 600;
  padding: 4px 10px; border-radius: 999px;
}
.hm-meta { display: flex; align-items: center; justify-content: space-between; margin-top: 8px; }
.rate { font-weight: 800; }
.rate span { color: var(--muted); font-weight: 500; font-size: .85rem; }

.badge {
  font-size: .72rem; font-weight: 700;
  padding: 3px 9px; border-radius: 999px;
}
.badge.ready { background: #e5f6ec; color: var(--green); }
.badge.pending { background: #fff0e0; color: var(--brand-dark); }

/* How it works */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px,1fr)); gap: 16px; }
.step { background: #fff; border:1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.step .num {
  width: 34px; height: 34px; border-radius: 10px;
  background: var(--accent); color:#fff; font-weight:800;
  display:grid; place-items:center; margin-bottom: 10px;
}

/* Forms */
.form-card {
  background: #fff; border:1px solid var(--line);
  border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow);
}
.field { margin-bottom: 16px; }
.field label { display:block; font-weight:700; margin-bottom:6px; font-size:.95rem; }
.field .hint { color: var(--muted); font-size:.82rem; font-weight:500; }
.input, textarea, select {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  font-size: 1rem;
  font-family: inherit;
  background: #fff;
  color: var(--ink);
}
.input:focus, textarea:focus, select:focus {
  outline: none; border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(31,44,77,.15);
}
textarea { min-height: 90px; resize: vertical; }

/* Two-column field layout (stacks on small screens) */
.grid-2 { display:grid; grid-template-columns:1fr 1fr; gap:0 14px; }
@media (max-width:520px){ .grid-2 { grid-template-columns:1fr; } }

/* Price summary */
.summary {
  background: #f4f7ff;
  border: 1px solid #dbe6ff;
  border-radius: 12px;
  padding: 14px 16px;
  margin: 8px 0 18px;
}
.summary .row { display:flex; justify-content: space-between; padding: 3px 0; color: var(--ink); }
.summary .row.total { font-weight: 800; border-top: 1px dashed #c9d6f5; margin-top:6px; padding-top:8px; }
.summary .muted { color: var(--muted); font-size:.9rem; }

/* Notices */
.notice {
  border-radius: 12px; padding: 12px 16px; margin: 14px 0; font-weight: 600;
}
.notice.warn { background: #fff6e6; color: #8a5a00; border:1px solid #ffe3ac; }
.notice.error { background: #fdecec; color: #b02525; border:1px solid #f6c6c6; }
.notice.ok { background: #e8f7ee; color: #14713d; border:1px solid #bfe8cd; }
.notice.info { background: #eef4ff; color: #1a4fb0; border:1px solid #cfe0ff; }

/* Ratings */
.stars { color: var(--gold); letter-spacing: 1px; line-height: 1; }
.stars .empty { color: #d9d6cc; }
.rating-line { display: flex; align-items: center; gap: 6px; }
.rating-count { color: var(--muted); font-size: .85rem; }
.rating-none { color: var(--muted); font-size: .85rem; }
.star-input { display: flex; gap: 8px; justify-content: center; font-size: 2.4rem; line-height: 1; margin: 6px 0 4px; }
.star-input .st { color: #d9d6cc; cursor: pointer; transition: color .1s, transform .1s; }
.star-input .st:hover { transform: scale(1.12); }
.star-input .st.on { color: var(--gold); }
.review-item { text-align: left; border-top: 1px solid var(--line); padding: 12px 0; }
.review-item:first-child { border-top: none; }
.review-item .meta { color: var(--muted); font-size: .82rem; }

/* Empty state */
.empty {
  text-align:center; padding: 40px 20px; color: var(--muted);
  border: 2px dashed var(--line); border-radius: var(--radius); background:#fff;
}

/* Footer */
.footer {
  margin-top: 40px; padding: 26px 0; border-top:1px solid var(--line);
  color: var(--muted); font-size:.9rem; text-align:center;
}
/* Service category tiles (home hero) */
.cat-row {
  display:flex; gap:10px; flex-wrap:wrap; justify-content:center; margin-top:26px;
}
.cat-tile {
  display:flex; flex-direction:column; align-items:center; gap:8px; padding:6px 4px;
  border-radius:16px; text-decoration:none;
  transition:transform .15s ease, filter .15s ease;
}
.cat-tile img { width:92px; height:92px; display:block; }
.cat-label { font-weight:800; font-size:.82rem; color:var(--ink); letter-spacing:.02em; }
.cat-tile:hover { transform:translateY(-5px) scale(1.04); }
.cat-tile:hover .cat-label { color:var(--brand); }
.cat-tile.active { transform:translateY(-3px); }
.cat-tile.active img { filter:drop-shadow(0 8px 18px rgba(31,44,77,.35)); }
.cat-tile.active .cat-label { color:var(--brand); }
@media (max-width:560px){ .cat-tile img { width:76px; height:76px; } }
@media (max-width:380px){ .cat-tile img { width:66px; height:66px; } }

/* Active category filter chip */
.filter-bar { display:flex; align-items:center; gap:10px; margin:4px 0 16px; flex-wrap:wrap; }
.filter-chip {
  display:inline-flex; align-items:center; gap:8px; background:#eef1f8; color:var(--brand);
  border:1px solid var(--line); border-radius:999px; padding:6px 14px; font-weight:700; font-size:.9rem;
}
.filter-chip a { color:var(--muted); text-decoration:none; font-weight:800; }
.filter-chip a:hover { color:var(--brand); }

/* Auth: tabs, social buttons, dividers */
.auth-tabs { display:flex; gap:6px; background:#eef1f8; border-radius:12px; padding:4px; margin-bottom:16px; }
.auth-tabs button {
  flex:1; border:0; background:transparent; padding:10px; border-radius:9px;
  font-weight:700; color:var(--muted); cursor:pointer; font-size:.95rem;
}
.auth-tabs button.active { background:#fff; color:var(--brand); box-shadow:var(--shadow); }
.btn.social {
  display:flex; align-items:center; justify-content:center; gap:10px;
  background:#fff; color:var(--ink); border:1px solid var(--line); font-weight:700;
}
.btn.social:hover { background:#f7f6f2; }
.btn.social img, .btn.social svg { width:18px; height:18px; }
.btn.apple { background:#000; color:#fff; border-color:#000; }
.btn.apple:hover { background:#111; }
.auth-divider { display:flex; align-items:center; gap:12px; color:var(--muted); font-size:.85rem; margin:16px 0; }
.auth-divider::before, .auth-divider::after { content:""; flex:1; height:1px; background:var(--line); }
.role-toggle { display:flex; gap:8px; margin-bottom:14px; }
.role-toggle label {
  flex:1; text-align:center; border:1px solid var(--line); border-radius:10px;
  padding:10px; font-weight:700; cursor:pointer; color:var(--muted); font-size:.9rem;
}
.role-toggle input { display:none; }
.role-toggle input:checked + span { color:var(--brand); }
.role-toggle label:has(input:checked) { border-color:var(--brand); background:#eef1f8; }

.footer .disclaimer {
  max-width: 620px; margin: 0 auto 12px; font-size: .82rem;
  color: var(--muted); line-height: 1.5;
}
.footer a { color: var(--muted); text-decoration: underline; }
.footer a:hover { color: var(--brand); }

/* Page title */
.page-head { padding: 24px 0 8px; }
.back { color: var(--muted); font-weight:600; font-size:.9rem; }

.center-narrow { max-width: 560px; margin: 0 auto; }

/* Loading */
.skeleton { color: var(--muted); text-align:center; padding: 30px; }

@media (max-width: 600px) {
  .hero h1 { font-size: 1.7rem; }
  .nav-links a.hide-sm { display: none; }
  .btn { width: 100%; }
  .hero .cta-row .btn { width: 100%; }
}
