:root {
  --navy: #152238;
  --navy-light: #1e3354;
  --gold: #f5b020;
  --gold-dark: #d9960e;
  --bg: #f4f6f9;
  --white: #ffffff;
  --text: #1a2332;
  --muted: #64748b;
  --border: #e2e8f0;
  --green: #16a34a;
  --radius: 12px;
  --shadow: 0 4px 24px rgba(21, 34, 56, 0.08);
}

* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: Inter, system-ui, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.5;
}
a { color: var(--navy-light); text-decoration: none; }
a:hover { color: var(--gold-dark); }
img { max-width: 100%; height: auto; }
.container { max-width: 1180px; margin: 0 auto; padding: 0 1.25rem; }

.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  min-height: 72px;
}
.logo img { height: 42px; width: auto; }
.main-nav {
  display: flex;
  gap: 1.25rem;
  flex: 1;
}
.main-nav a {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text);
  padding-bottom: 4px;
  border-bottom: 2px solid transparent;
}
.main-nav a.active, .main-nav a:hover {
  color: var(--navy);
  border-bottom-color: var(--gold);
}
.header-actions { display: flex; gap: 0.6rem; align-items: center; }

.account-menu { position: relative; }
.account-menu summary {
  list-style: none;
  cursor: pointer;
}
.account-menu summary::-webkit-details-marker { display: none; }
.account-menu-dropdown {
  position: absolute;
  right: 0;
  top: calc(100% + 0.35rem);
  min-width: 190px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 0.35rem 0;
  z-index: 200;
}
.account-menu-label {
  display: block;
  padding: 0.45rem 1rem 0.25rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--muted);
}
.account-menu-dropdown a {
  display: block;
  padding: 0.55rem 1rem;
  color: var(--text);
  font-weight: 500;
}
.account-menu-dropdown a:hover {
  background: var(--bg);
  color: var(--navy);
}
.account-menu-divider {
  border-top: 1px solid var(--border);
  margin: 0.35rem 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.65rem 1.1rem;
  border-radius: 8px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  font-size: 0.95rem;
}
.btn-sm { padding: 0.45rem 0.85rem; font-size: 0.875rem; }
.btn-primary { background: var(--gold); color: var(--navy); }
.btn-primary:hover { background: var(--gold-dark); color: var(--navy); }
.btn-navy { background: var(--navy); color: var(--white); }
.btn-navy:hover { background: var(--navy-light); color: var(--white); }
.btn-outline {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
}
.badge {
  background: var(--navy);
  color: var(--white);
  border-radius: 999px;
  padding: 0.1rem 0.45rem;
  font-size: 0.75rem;
  margin-left: 0.25rem;
}

.hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  color: var(--white);
  padding: 3.5rem 0 4rem;
}
.hero h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); margin: 0 0 0.75rem; line-height: 1.15; }
.hero p { font-size: 1.1rem; opacity: 0.9; max-width: 560px; margin: 0 0 1.5rem; }
.hero .hero-lead { max-width: 42rem; }
.point-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
}
.point-grid .content-card { margin-bottom: 0; }
.point-grid .content-card p { margin: 0; color: var(--muted); }
@media (max-width: 700px) {
  .point-grid { grid-template-columns: 1fr; }
}
.hero-actions { display: flex; gap: 0.75rem; flex-wrap: wrap; }

.section { padding: 3rem 0; }
.section-title { font-size: 1.6rem; margin: 0 0 0.35rem; }
.section-sub { color: var(--muted); margin: 0 0 1.5rem; }

.trade-pills { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.trade-pill {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.45rem 1rem;
  font-weight: 600;
  font-size: 0.9rem;
}
.trade-pill:hover, .trade-pill.active {
  border-color: var(--gold);
  background: #fff8e6;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
}
.worker-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.15s;
}
.worker-card:hover { transform: translateY(-2px); }
.worker-card__photo {
  height: 200px;
  background: #e2e8f0;
  object-fit: cover;
  width: 100%;
}
.worker-card__body { padding: 1rem 1.1rem 1.2rem; }
.worker-card__name { font-size: 1.1rem; font-weight: 700; margin: 0; }
.worker-card__trade { color: var(--gold-dark); font-weight: 600; font-size: 0.9rem; }
.worker-card__meta { color: var(--muted); font-size: 0.875rem; margin: 0.4rem 0 0.75rem; }
.worker-card__rate { font-weight: 700; color: var(--navy); }
.stars { color: var(--gold); font-size: 0.9rem; }

.profile-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 1.5rem;
  padding: 1.5rem 0 3rem;
}
@media (max-width: 900px) {
  .profile-layout { grid-template-columns: 1fr; }
  .main-nav { display: none; }
}
.profile-header {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 1.25rem;
  margin-bottom: 1.25rem;
}
.profile-photo-wrap { position: relative; }
.profile-photo {
  width: 180px;
  height: 180px;
  border-radius: var(--radius);
  object-fit: cover;
}
.availability-badge {
  position: absolute;
  bottom: 8px;
  left: 8px;
  background: var(--green);
  color: white;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.5rem;
  border-radius: 6px;
}
.profile-name { font-size: 1.75rem; margin: 0; }
.verified { color: #2563eb; font-size: 0.9rem; font-weight: 600; }
.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
  margin: 1rem 0;
}
.stat-box {
  background: var(--bg);
  border-radius: 8px;
  padding: 0.65rem;
  text-align: center;
}
.stat-box strong { display: block; font-size: 1.1rem; }
.stat-box span { font-size: 0.75rem; color: var(--muted); }

.sidebar-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.25rem;
  box-shadow: var(--shadow);
  margin-bottom: 1rem;
}
.sidebar-card--hire {
  background: var(--navy);
  color: var(--white);
}
.sidebar-card--hire .price { font-size: 2rem; font-weight: 800; margin: 0.25rem 0; }
.sidebar-card--hire ul { padding-left: 1.1rem; opacity: 0.9; font-size: 0.9rem; }
.checklist { list-style: none; padding: 0; margin: 0; }
.checklist li::before { content: "✓ "; color: var(--green); font-weight: 700; }

.content-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.25rem;
  box-shadow: var(--shadow);
  margin-bottom: 1.25rem;
}
.content-card h2 { margin: 0 0 1rem; font-size: 1.15rem; }
.skills-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.4rem 1rem;
}
.skill-item::before { content: "✓ "; color: var(--green); }
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 0.75rem;
}
.portfolio-grid img,
.portfolio-frame,
.video-card {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 8px;
}
.video-card {
  position: relative;
  display: block;
  padding: 0;
  border: 0;
  background: #0f172a;
  cursor: pointer;
  overflow: hidden;
}
.play-badge {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  background: var(--gold);
  color: var(--navy);
  font-weight: 700;
  font-size: 0.8rem;
  border-radius: 999px;
  padding: 0.35rem 0.7rem;
}
.portfolio-frame { border: 0; background: #0f172a; }
.visit-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}
.visit-card { height: 100%; display: flex; flex-direction: column; }
.visit-card .price { font-size: 1.8rem; font-weight: 800; color: var(--navy); margin: 0.35rem 0; }
.visit-card p { color: var(--muted); flex: 1; }
.visit-card.is-selected { outline: 2px solid var(--gold); }
.how-step { height: 100%; display: flex; flex-direction: column; }
.how-step__num {
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  background: var(--navy);
  color: white;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.75rem;
}
.how-step h2 { margin: 0 0 0.5rem; font-size: 1.15rem; }
.how-step p { color: var(--muted); flex: 1; margin-top: 0; }
.how-tiers { list-style: none; margin: 0.75rem 0 0; padding: 0; }
.how-tiers li + li { margin-top: 0.35rem; }
.how-tiers a {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  align-items: baseline;
  font-weight: 600;
}
.how-tiers span { font-size: 0.85rem; font-weight: 500; color: var(--muted); }
@media (max-width: 800px) {
  .visit-grid { grid-template-columns: 1fr; }
}

.review { border-bottom: 1px solid var(--border); padding: 0.85rem 0; }
.review:last-child { border-bottom: none; }

.breadcrumbs {
  padding: 0.85rem 0;
  color: var(--muted);
  font-size: 0.875rem;
}
.breadcrumbs a { color: var(--muted); }

.checkout-grid {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 1.5rem;
  padding: 2rem 0;
}
@media (max-width: 800px) { .checkout-grid { grid-template-columns: 1fr; } }

.form-group { margin-bottom: 1rem; }
.form-group label { display: block; font-weight: 600; margin-bottom: 0.35rem; font-size: 0.9rem; }
.form-group input, .form-group select, .form-group textarea {
  width: 100%;
  padding: 0.6rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  font: inherit;
}
.payment-options { display: flex; gap: 0.75rem; }
.payment-option {
  flex: 1;
  border: 2px solid var(--border);
  border-radius: 8px;
  padding: 0.75rem;
  text-align: center;
  cursor: pointer;
}
.payment-option input { display: none; }
.payment-option.selected { border-color: var(--gold); background: #fff8e6; }

.summary-row {
  display: flex;
  justify-content: space-between;
  padding: 0.4rem 0;
}
.summary-row.total {
  border-top: 2px solid var(--border);
  margin-top: 0.5rem;
  padding-top: 0.75rem;
  font-weight: 800;
  font-size: 1.1rem;
}

.testimonial-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.25rem;
  box-shadow: var(--shadow);
}
.testimonial-card p { margin: 0.5rem 0; font-style: italic; }
.testimonial-author { font-weight: 700; font-size: 0.9rem; }

.site-footer {
  background: var(--navy);
  color: rgba(255,255,255,0.85);
  margin-top: 3rem;
  padding: 2.5rem 0 1rem;
}
.footer-logo { height: 36px; filter: brightness(0) invert(1); opacity: 0.95; }
.footer-tagline { opacity: 0.75; font-size: 0.9rem; }
.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-bottom: 1.5rem;
}
.footer-stats { display: flex; gap: 2rem; }
.footer-stats strong { display: block; color: var(--gold); }
.footer-stats span { font-size: 0.85rem; opacity: 0.7; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.15);
  padding-top: 1rem;
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
}
.footer-bottom a { color: rgba(255,255,255,0.7); }

.alert {
  padding: 0.75rem 1rem;
  border-radius: 8px;
  margin-bottom: 1rem;
}
.alert-success { background: #dcfce7; color: #166534; }
.alert-error { background: #fee2e2; color: #991b1b; }

.tab-bar {
  display: flex;
  gap: 0;
  border-bottom: 1px solid var(--border);
  margin-bottom: 1.5rem;
}
.tab-bar a {
  padding: 0.75rem 1.25rem;
  font-weight: 600;
  color: var(--muted);
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
}
.tab-bar a.active {
  color: var(--navy);
  border-bottom-color: var(--gold);
}

.team-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
  color: inherit;
  transition: box-shadow 0.15s ease;
}
.team-card:hover {
  box-shadow: var(--shadow);
  color: inherit;
}

.status-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  background: var(--border);
  color: var(--muted);
  margin-left: 0.35rem;
  vertical-align: middle;
}
.status-badge-green { background: #dcfce7; color: #166534; }
.status-badge-muted { background: #f1f5f9; color: #64748b; }

.admin-layout { display: grid; grid-template-columns: 220px 1fr; min-height: 100vh; }
.admin-sidebar {
  background: var(--navy);
  color: white;
  padding: 1.25rem;
}
.admin-sidebar a {
  display: block;
  color: rgba(255,255,255,0.85);
  padding: 0.5rem 0;
  font-weight: 500;
}
.admin-sidebar a:hover { color: var(--gold); }
.admin-logo-link {
  display: inline-block;
  margin-bottom: 1rem;
}
.admin-logo-link:hover { opacity: 0.9; }
.admin-main { padding: 1.5rem; }
.admin-table { width: 100%; border-collapse: collapse; background: white; border-radius: var(--radius); overflow: hidden; }
.admin-table th, .admin-table td { padding: 0.65rem 0.85rem; text-align: left; border-bottom: 1px solid var(--border); }
.admin-table th { background: var(--bg); font-size: 0.85rem; }

.filter-bar {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 1.25rem;
}
.filter-bar input, .filter-bar select {
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: 8px;
}

.onboarding-wrap { max-width: 720px; margin: 2rem auto; }
.onboarding-wrap .content-card { padding: 1.5rem; }
.hidden { display: none !important; }
