/* Reset & Base */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --blue: #9b8578;
  --blue-dark: #7a6459;
  --blue-light: #f0e8e4;
  --green: #059669;
  --green-light: #d1fae5;
  --orange: #d97706;
  --orange-light: #fef3c7;
  --red: #dc2626;
  --red-light: #fee2e2;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-500: #6b7280;
  --gray-700: #374151;
  --gray-900: #111827;
  --radius: 8px;
  --shadow: 0 1px 3px rgba(0,0,0,.1);
  --shadow-md: 0 4px 6px rgba(0,0,0,.1);
  --max-width: 1100px;
}

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--gray-900);
  background: var(--gray-50);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

/* Layout */
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 1rem; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }

/* Header */
.site-header {
  background: #fff;
  border-bottom: 1px solid var(--gray-200);
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
}

.site-header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: .5rem;
}

.logo {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--gray-900);
}

.logo span { color: var(--blue); }

.site-nav { display: flex; gap: 1.5rem; align-items: center; }
.site-nav a { color: var(--gray-700); font-weight: 500; font-size: .95rem; }
.site-nav a:hover { color: var(--blue); text-decoration: none; }

/* Hero */
.hero {
  background: linear-gradient(135deg, var(--blue-dark) 0%, #3d2e27 100%);
  color: #fff;
  padding: 8rem 0 7.5rem;
  text-align: center;
}

/* Video hero */
.hero-video { position: relative; overflow: hidden; background: var(--gray-900); }

.hero-bg-video {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  transform: translate(-50%, -50%);
  object-fit: cover;
  z-index: 0;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(40, 30, 25, 0.55);
  z-index: 1;
}

.hero-content { position: relative; z-index: 2; }

.hero h1 { font-size: 2.25rem; margin-bottom: 1rem; line-height: 1.2; text-shadow: 0 2px 8px rgba(0,0,0,.4); }
.hero p { font-size: 1.15rem; opacity: .95; max-width: 600px; margin: 0 auto 2rem; text-shadow: 0 1px 4px rgba(0,0,0,.3); }

/* Buttons */
.btn {
  display: inline-block;
  padding: .75rem 1.75rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  text-align: center;
  transition: background .15s, transform .1s;
}

.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-dark); }
.site-nav .btn-primary { background: var(--blue-dark); color: #fff; }
.site-nav .btn-primary:hover { background: #5c4a40; }
.btn-white { background: #fff; color: var(--gray-500); }
.btn-white:hover { background: var(--gray-100); color: var(--gray-500); }
.btn-green { background: var(--green); color: #fff; }
.btn-green:hover { background: #047857; }
.btn-orange { background: var(--orange); color: #fff; }
.btn-orange:hover { background: #b45309; }
.btn-red { background: var(--red); color: #fff; }
.btn-red:hover { background: #b91c1c; }
.btn-outline { background: transparent; border: 2px solid var(--gray-300); color: var(--gray-700); }
.btn-outline:hover { border-color: var(--blue); color: var(--blue); }
.btn-sm { padding: .5rem 1rem; font-size: .875rem; }
.btn-block { display: block; width: 100%; }

/* Cards */
.card {
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
}

.card + .card { margin-top: 1rem; }

/* Sections */
.section { padding: 3rem 0; }
.section-title { font-size: 1.75rem; text-align: center; margin-bottom: .5rem; }
.section-subtitle { text-align: center; color: var(--gray-500); margin-bottom: 2rem; font-size: 1.05rem; }

/* Services Grid */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
}

.service-card {
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 1.5rem;
  text-align: center;
  transition: box-shadow .15s;
}

.service-card:hover { box-shadow: var(--shadow-md); }
.service-card h3 { margin-bottom: .5rem; }
.service-card p { color: var(--gray-500); font-size: .95rem; }

/* Areas Grid */
.areas-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: .75rem;
}

.area-link {
  display: block;
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  font-weight: 500;
  transition: border-color .15s;
}

.area-link:hover { border-color: var(--blue); text-decoration: none; }

/* Trust Bar */
.trust-bar {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
  padding: 2rem 0;
  text-align: center;
}

.trust-item { font-weight: 600; color: var(--gray-700); }
.trust-item span { display: block; font-size: 1.5rem; color: var(--blue); }

/* Forms */
.form-group { margin-bottom: 1.25rem; }
.form-group label { display: block; font-weight: 600; margin-bottom: .35rem; font-size: .95rem; }
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: .65rem .85rem;
  border: 1px solid var(--gray-300);
  border-radius: var(--radius);
  font-size: 1rem;
  font-family: inherit;
  background: #fff;
  transition: border-color .15s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px var(--blue-light);
}

.form-group textarea { resize: vertical; min-height: 80px; }
.form-hint { font-size: .85rem; color: var(--gray-500); margin-top: .25rem; }
.form-error { font-size: .85rem; color: var(--red); margin-top: .25rem; display: none; }

/* Checkbox / Radio groups */
.checkbox-group { display: flex; flex-wrap: wrap; gap: .5rem; }
.checkbox-group label {
  display: flex;
  align-items: center;
  gap: .4rem;
  padding: .5rem .85rem;
  border: 1px solid var(--gray-300);
  border-radius: var(--radius);
  cursor: pointer;
  font-weight: 400;
  font-size: .95rem;
  transition: border-color .15s, background .15s;
}

.checkbox-group label:has(input:checked) {
  border-color: var(--blue);
  background: var(--blue-light);
}

.checkbox-group input { width: auto; }

/* Steps indicator */
.steps {
  display: flex;
  justify-content: center;
  gap: .5rem;
  margin-bottom: 2rem;
}

.step {
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: var(--gray-200);
  color: var(--gray-500);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: .875rem;
}

.step.active { background: var(--blue); color: #fff; }
.step.done { background: var(--green); color: #fff; }

/* Alerts */
.alert {
  padding: 1rem 1.25rem;
  border-radius: var(--radius);
  margin-bottom: 1rem;
  font-size: .95rem;
}

.alert-success { background: var(--green-light); color: #065f46; }
.alert-warning { background: var(--orange-light); color: #92400e; }
.alert-error { background: var(--red-light); color: #991b1b; }
.alert-info { background: var(--blue-light); color: var(--blue-dark); }

/* Badges */
.badge {
  display: inline-block;
  padding: .2rem .6rem;
  border-radius: 999px;
  font-size: .75rem;
  font-weight: 600;
  text-transform: uppercase;
}

.badge-new { background: var(--blue-light); color: var(--blue); }
.badge-offered { background: var(--orange-light); color: var(--orange); }
.badge-marketplace { background: var(--green-light); color: var(--green); }
.badge-claimed { background: var(--orange-light); color: var(--orange); }
.badge-paid { background: var(--green-light); color: var(--green); }
.badge-accepted { background: var(--green-light); color: var(--green); }
.badge-declined { background: var(--red-light); color: var(--red); }

/* Tables */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: .75rem 1rem; text-align: left; border-bottom: 1px solid var(--gray-200); }
th { background: var(--gray-50); font-weight: 600; font-size: .875rem; color: var(--gray-500); text-transform: uppercase; letter-spacing: .05em; }

/* Footer */
.site-footer {
  background: var(--gray-900);
  color: var(--gray-300);
  padding: 3rem 0 1.5rem;
  margin-top: 3rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-col h4 { color: #fff; margin-bottom: .75rem; }
.footer-col a { display: block; color: var(--gray-300); padding: .2rem 0; font-size: .95rem; }
.footer-col a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid var(--gray-700); padding-top: 1.5rem; text-align: center; font-size: .875rem; }

/* Dashboard layout */
.dash-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 1.5rem;
  min-height: 60vh;
}

.dash-sidebar {
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 1rem;
  height: fit-content;
  position: sticky;
  top: 80px;
}

.dash-sidebar a {
  display: block;
  padding: .6rem .75rem;
  border-radius: var(--radius);
  color: var(--gray-700);
  font-weight: 500;
  font-size: .95rem;
}

.dash-sidebar a:hover { background: var(--gray-100); text-decoration: none; }
.dash-sidebar a.active { background: var(--blue-light); color: var(--blue); }

.dash-content { min-width: 0; }

/* Lead cards */
.lead-card {
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 1.25rem;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  box-shadow: var(--shadow);
}

.lead-card + .lead-card { margin-top: .75rem; }
.lead-card-info h3 { font-size: 1rem; margin-bottom: .25rem; }
.lead-card-meta { font-size: .875rem; color: var(--gray-500); }
.lead-card-services { display: flex; flex-wrap: wrap; gap: .35rem; margin-top: .5rem; }
.lead-card-services span {
  background: var(--gray-100);
  padding: .15rem .5rem;
  border-radius: var(--radius);
  font-size: .8rem;
}

/* Image upload */
.image-upload-area {
  border: 2px dashed var(--gray-300);
  border-radius: var(--radius);
  padding: 2rem;
  text-align: center;
  cursor: pointer;
  transition: border-color .15s, background .15s;
  color: var(--gray-500);
}

.image-upload-area:hover { border-color: var(--blue); background: var(--blue-light); }

.image-previews {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-top: .75rem;
}

.image-preview {
  position: relative;
  width: 80px;
  height: 80px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--gray-200);
}

.image-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.image-preview-remove {
  position: absolute;
  top: 2px;
  right: 2px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(0,0,0,.6);
  color: #fff;
  border: none;
  cursor: pointer;
  font-size: 12px;
  line-height: 20px;
  text-align: center;
  padding: 0;
}

/* Room table */
.room-row { display: grid; grid-template-columns: 1fr 1fr 1fr 1fr 2fr auto; gap: .5rem; margin-bottom: .5rem; align-items: end; }
.room-row input, .room-row textarea { font-size: .875rem; padding: .4rem .6rem; }

/* Utility */
.text-center { text-align: center; }
.text-muted { color: var(--gray-500); }
.mt-1 { margin-top: .5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.flex { display: flex; }
.flex-between { display: flex; justify-content: space-between; align-items: center; }
.gap-1 { gap: .5rem; }
.gap-2 { gap: 1rem; }
.hidden { display: none; }

/* Loading spinner */
.spinner {
  display: inline-block;
  width: 1.25rem;
  height: 1.25rem;
  border: 2px solid var(--gray-300);
  border-top-color: var(--blue);
  border-radius: 50%;
  animation: spin .6s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* Responsive */
@media (prefers-reduced-motion: reduce) {
  .hero-bg-video { display: none; }
}

@media (max-width: 768px) {
  .hero h1 { font-size: 1.75rem; }
  .hero { padding: 3.5rem 0 3rem; }
  .hero-bg-video { display: none; }
  .hero-video { background: linear-gradient(135deg, var(--blue-dark) 0%, var(--gray-900) 100%); }
  .section { padding: 2rem 0; }
  .dash-layout { grid-template-columns: 1fr; }
  .dash-sidebar { position: static; display: flex; gap: .5rem; overflow-x: auto; padding: .5rem; }
  .dash-sidebar a { white-space: nowrap; }
  .lead-card { flex-direction: column; }
  .room-row { grid-template-columns: 1fr 1fr; }
  .site-nav { gap: 1rem; font-size: .875rem; }
  .trust-bar { gap: 1.5rem; }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 1.5rem; }
  .steps { gap: .35rem; }
  .step { width: 1.75rem; height: 1.75rem; font-size: .75rem; }
}
