/* VetCare Marketplace — classy, subtle veterinary-marketplace styles.
   Deep forest green + warm cream + soft amber accent. System fonts only, no
   external assets. Mobile-first. */

:root {
  --teal: #2e5a3c;
  --teal-dark: #21402b;
  --teal-light: #e9f0e9;
  --accent: #b8892f;
  --accent-soft: #f7efdb;
  --ink: #263129;
  --muted: #5d6a5e;
  --line: #e2e0d2;
  --bg: #fdfbf4;
  --bg-soft: #f4efe0;
  --danger: #b91c1c;
  --success: #15803d;
  --radius: 10px;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
  font-size: 16px;
}
a { color: var(--teal); text-decoration: none; }
a:hover { text-decoration: underline; }
h1 { font-size: 1.9rem; line-height: 1.2; margin: 0.6em 0 0.4em; }
h2 { font-size: 1.35rem; margin: 1.4em 0 0.5em; }
h3 { font-size: 1.1rem; margin: 1em 0 0.4em; }
p { margin: 0.5em 0; }
.lead { font-size: 1.1rem; color: #374151; }
.muted { color: var(--muted); }
.small { font-size: 0.85rem; }
.container { max-width: 1080px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 640px; }

/* Emergency + notice bars */
.emergency-bar {
  background: #7f1d1d; color: #fff; text-align: center;
  font-size: 0.85rem; padding: 6px 12px; font-weight: 600;
}
.notice-bar {
  background: #fef3c7; color: #92400e; text-align: center;
  font-size: 0.9rem; padding: 8px 12px;
}

/* Header */
.site-header { border-bottom: 1px solid var(--line); background: #fff; }
.header-inner { display: flex; align-items: center; gap: 16px; padding: 12px 16px; flex-wrap: wrap; }
.brand { font-size: 1.25rem; font-weight: 700; color: var(--ink); }
.brand:hover { text-decoration: none; }
.brand-mark {
  display: inline-flex; align-items: center; justify-content: center;
  width: 30px; height: 30px; border-radius: 8px;
  background: var(--teal); color: #fff; font-size: 1.1rem; margin-right: 6px;
}
.main-nav { margin-left: auto; display: flex; gap: 4px; align-items: center; flex-wrap: wrap; }
.main-nav a { padding: 8px 10px; border-radius: 6px; color: var(--ink); }
.main-nav a:hover { background: var(--teal-light); text-decoration: none; }
.nav-toggle { display: none; margin-left: auto; background: none; border: 1px solid var(--line); border-radius: 6px; padding: 6px 10px; font-size: 1.1rem; cursor: pointer; }

/* Buttons */
.btn {
  display: inline-block; background: var(--teal); color: #fff; border: none;
  padding: 10px 18px; border-radius: 8px; font-size: 1rem; cursor: pointer;
  font-weight: 600; line-height: 1.2;
}
.btn:hover { background: var(--teal-dark); text-decoration: none; }
.btn-light { background: #fff; color: var(--teal-dark); }
.btn-ghost { background: transparent; color: var(--teal); border: 1px solid var(--teal); }
.btn-danger { background: var(--danger); }
.btn-small { padding: 6px 12px; font-size: 0.9rem; }
.btn-block { display: block; text-align: center; width: 100%; }
.btn-active { background: var(--teal-dark); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }

/* Flash messages */
.flash { padding: 12px 16px; border-radius: var(--radius); margin: 16px 0; border: 1px solid; }
.flash-success { background: #f0fdf4; border-color: #bbf7d0; color: var(--success); }
.flash-error { background: #fef2f2; border-color: #fecaca; color: var(--danger); }
.flash-warning { background: #fffbeb; border-color: #fde68a; color: #92400e; }

/* Hero + search */
.hero { padding: 36px 0 24px; }
.hero h1 { font-size: 2.2rem; }
.search-bar { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 16px; }
.search-bar select, .search-bar input { flex: 1 1 160px; }

/* Forms */
.form { max-width: 640px; }
.form label, .filters label { display: block; margin: 12px 0; font-weight: 600; }
.form input, .form select, .form textarea,
.filters input, .filters select {
  width: 100%; padding: 10px; margin-top: 4px; border: 1px solid #d1d5db;
  border-radius: 8px; font-size: 1rem; font-family: inherit; background: #fff;
}
.form input:focus, .form select:focus, .form textarea:focus { outline: 2px solid var(--teal); border-color: var(--teal); }
/* Uniform control height — inputs, selects and buttons all render 44px tall
   so rows line up (a <select> and an <input> with the same padding render at
   different heights without this). Checkboxes, radios and textareas excluded. */
.form input:not([type="checkbox"]):not([type="radio"]), .form select,
.filters input:not([type="checkbox"]):not([type="radio"]), .filters select,
.search-bar input, .search-bar select { height: 44px; }
/* Hide the number-input spinner so the price box matches the others. */
input[type="number"]::-webkit-outer-spin-button, input[type="number"]::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
input[type="number"] { -moz-appearance: textfield; appearance: textfield; }
.checkbox { font-weight: 400; }
.checkbox input { width: auto; margin-right: 6px; }
.checkbox-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 2px 12px; }
.checkbox-grid label { margin: 4px 0; font-weight: 400; }
fieldset { border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 16px; margin: 16px 0; }
legend { font-weight: 700; padding: 0 6px; }

/* Filters — uniform grid: every control (search, selects, price, buttons) is
   the same size in its cell, so the filter row reads as one tidy block. */
.filters { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 8px; margin: 16px 0; }
.filters input, .filters select { width: 100%; margin-top: 0; } /* no top margin: the base form rule's 4px margin pushed inputs 4px below the buttons in the grid */
.filters .btn { height: 44px; display: inline-flex; align-items: center; justify-content: center; }

/* Cards */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; margin: 16px 0; }
.card {
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px; background: #fff; display: flex; flex-direction: column; gap: 8px;
}
.card h3 { margin: 0; font-size: 1.15rem; }
/* Keep the card's action button pinned to the bottom so cards with different
   amounts of text still line their buttons up. */
.provider-card .btn-block { margin-top: auto; }
.card h3 a { color: var(--ink); }
.provider-head { display: flex; gap: 12px; align-items: flex-start; }
.avatar {
  flex: none; width: 52px; height: 52px; border-radius: 50%;
  background: var(--teal-light); color: var(--teal-dark);
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 1.1rem;
}
.avatar-lg { width: 76px; height: 76px; font-size: 1.6rem; }
.card-bio { color: #374151; }
.card-meta { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.price { font-weight: 700; color: var(--teal-dark); font-size: 1.05rem; }
.badge-verified {
  display: inline-block; background: #ecfdf5; color: #065f46;
  border: 1px solid #a7f3d0; border-radius: 999px; padding: 2px 10px; font-size: 0.8rem; font-weight: 600;
}
.badge-pending {
  display: inline-block; background: #fffbeb; color: #92400e;
  border: 1px solid #fde68a; border-radius: 999px; padding: 2px 10px; font-size: 0.8rem; font-weight: 600;
}
.badge-rejected {
  display: inline-block; background: #fef2f2; color: #991b1b;
  border: 1px solid #fecaca; border-radius: 999px; padding: 2px 10px; font-size: 0.8rem; font-weight: 600;
}
.stars { color: var(--accent); letter-spacing: 1px; }

/* Steps / chips / trust */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; margin: 16px 0; }
.step { border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; background: var(--bg-soft); }
.step-num {
  display: inline-flex; width: 34px; height: 34px; border-radius: 50%;
  background: var(--teal); color: #fff; align-items: center; justify-content: center; font-weight: 700;
}
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0; }
.chip { border: 1px solid var(--teal); border-radius: 999px; padding: 6px 14px; color: var(--teal-dark); background: #fff; }
.chip:hover { background: var(--teal-light); text-decoration: none; }
.trust-strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; margin: 32px 0; border-top: 1px solid var(--line); padding-top: 20px; }
.trust-strip div { display: flex; flex-direction: column; gap: 4px; }
.cta-band {
  background: var(--teal); color: #fff; border-radius: var(--radius);
  padding: 24px; margin: 28px 0; display: flex; gap: 20px; align-items: center; justify-content: space-between; flex-wrap: wrap;
}
.cta-band h2 { color: #fff; margin: 0 0 6px; }
.cta-band p { color: #e6f4f2; }

/* Profile / services / slots */
.profile-head { display: flex; gap: 16px; align-items: flex-start; margin: 20px 0; flex-wrap: wrap; }
.price-note { background: var(--teal-light); border-radius: var(--radius); padding: 12px 16px; }
.service-row, .slot-row, .booking-row {
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 14px 16px; margin: 10px 0; display: flex; gap: 16px; align-items: center; flex-wrap: wrap;
}
.service-row > div:first-child, .booking-row { flex: 1 1 300px; }
.service-price { font-weight: 700; font-size: 1.2rem; color: var(--teal-dark); }
.slot-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 16px; }
.slot-chip { border: 1px solid var(--teal); border-radius: 999px; padding: 6px 12px; background: #fff; color: var(--teal-dark); }
.slot-link:hover { background: var(--teal-light); text-decoration: none; }
.slot-disabled { opacity: 0.45; }
.slot-list h3 { margin-top: 20px; }
.review { border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 16px; margin: 10px 0; background: var(--bg-soft); }
.provider-reply { border-left: 3px solid var(--teal); padding-left: 10px; color: #374151; }
.disclaimer-box { background: #fffbeb; border: 1px solid #fde68a; border-radius: var(--radius); padding: 14px 18px; margin: 24px 0; }
.confirm-box { border: 1px solid var(--teal); border-radius: var(--radius); padding: 18px; margin: 16px 0; background: var(--teal-light); }
.booking-summary { border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 18px; margin: 16px 0; }
.status { font-weight: 600; text-transform: capitalize; }
.status-requested { color: #92400e; }
.status-confirmed { color: var(--success); }
.status-completed { color: var(--teal-dark); }
.status-cancelled, .status-no_show { color: var(--danger); }
.inline-form { display: inline; }
.row-actions { display: flex; gap: 6px; flex-wrap: wrap; }

/* Dashboard */
.dashboard-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; margin: 16px 0; }
.dash-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; background: #fff; }
.stat-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin: 16px 0; }
.stat-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; text-align: center; background: var(--bg-soft); }
.stat-card strong { display: block; font-size: 1.7rem; color: var(--teal-dark); }
.stat-list { list-style: none; padding: 0; }
.stat-list li { padding: 6px 0; border-bottom: 1px solid var(--line); }

/* Tables */
.table { width: 100%; border-collapse: collapse; margin: 16px 0; font-size: 0.95rem; }
.table th, .table td { border-bottom: 1px solid var(--line); padding: 10px 8px; text-align: left; vertical-align: top; }
.table th { background: var(--bg-soft); }

/* Footer */
.site-footer { border-top: 1px solid var(--line); margin-top: 48px; background: var(--bg-soft); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 24px; padding: 28px 16px 12px; }
.footer-grid ul { list-style: none; padding: 0; }
.footer-grid li { margin: 6px 0; }
.footer-bottom { padding: 0 16px 24px; font-size: 0.85rem; }

main { padding-bottom: 24px; }

/* Mobile */
@media (max-width: 720px) {
  .nav-toggle { display: block; }
  .main-nav { display: none; width: 100%; flex-direction: column; align-items: stretch; }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 10px 4px; border-top: 1px solid var(--line); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero h1 { font-size: 1.7rem; }
  .service-row, .slot-row, .booking-row { flex-direction: column; align-items: flex-start; }
}

/* v2: admin nav, analytics bar chart, wide tables */
.admin-nav { display: flex; flex-wrap: wrap; gap: 4px 16px; padding: 10px 16px; margin-bottom: 16px; background: var(--bg-soft); border: 1px solid var(--line); border-radius: 8px; }
.admin-nav a { font-weight: 600; text-decoration: none; }
.bar-chart { display: flex; align-items: flex-end; gap: 10px; padding: 12px 4px 0; border-bottom: 1px solid var(--line); }
.bar-col { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; }
.bar-value { font-size: 0.85rem; font-weight: 700; }
.bar { width: 100%; max-width: 44px; background: var(--teal, #0F766E); border-radius: 4px 4px 0 0; }
.bar-label { font-size: 0.75rem; color: var(--muted, #666); padding: 6px 0 10px; white-space: nowrap; }
.table-scroll { overflow-x: auto; }
.small { font-size: 0.85rem; }

/* Homepage — mission-first redesign (v4). Serif display headlines (Georgia
   system stack), generous whitespace, muted amber rules. */
.mission-hero {
  display: grid; grid-template-columns: 1.4fr 1fr; gap: 32px; align-items: center;
  padding: 48px 0 32px;
  background: radial-gradient(ellipse 60% 80% at 85% 20%, var(--accent-soft), transparent 70%);
}
.eyebrow {
  text-transform: uppercase; letter-spacing: 0.14em; font-size: 0.8rem; font-weight: 700;
  color: var(--teal-dark); margin: 0 0 10px;
}
.eyebrow::after { content: ""; display: block; width: 44px; height: 2px; background: var(--accent); margin-top: 8px; }
.mission-hero h1 {
  font-family: Georgia, 'Times New Roman', serif; font-weight: 600;
  font-size: 2.6rem; line-height: 1.12; margin: 0 0 16px; color: var(--teal-dark);
}
.mission-hero .lead { font-size: 1.15rem; color: #3d463d; }
.hero-note { font-size: 0.9rem; color: var(--muted); margin-top: 14px; letter-spacing: 0.02em; }
.mission-hero-art { display: flex; justify-content: center; }
.hero-emblem { width: 240px; height: 240px; max-width: 100%; }
.mission-stats {
  display: grid; grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--line); border-radius: var(--radius);
  background: #fff; margin: 8px 0; overflow: hidden;
}
.mission-stats .stat { padding: 22px 16px 18px; text-align: center; border-left: 1px solid var(--line); }
.mission-stats .stat:first-child { border-left: none; }
.mission-stats .stat strong {
  display: block; font-family: Georgia, 'Times New Roman', serif; font-weight: 600;
  font-size: 2.1rem; line-height: 1.1; color: var(--teal-dark);
}
.mission-stats .stat span { display: block; margin-top: 6px; font-size: 0.9rem; color: var(--muted); }
.stats-note { grid-column: 1 / -1; margin: 0; padding: 10px 18px 14px; font-size: 0.82rem; color: var(--muted); text-align: center; border-top: 1px solid var(--line); }
.stats-label { grid-column: 1 / -1; margin: 0; padding: 14px 18px 0; font-size: 0.8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.14em; color: var(--teal-dark); text-align: center; }

/* "In the US today" — public figures + where-the-money-goes visual. */
.money-figures { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 22px 0; text-align: center; }
.money-figures .figure { padding: 8px 4px; }
.money-figures .figure + .figure { border-left: 1px solid var(--line); }
.money-figures strong { display: block; font-family: Georgia, 'Times New Roman', serif; font-weight: 600; font-size: 2.1rem; line-height: 1.1; color: var(--teal-dark); }
.money-figures span { display: block; margin-top: 6px; font-size: 0.9rem; color: var(--muted); }
.split-compare { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; margin: 18px 0; align-items: start; }
.split-compare h3 { color: var(--teal-dark); margin-top: 0; }
.admin-bar { display: flex; height: 28px; border-radius: 6px; overflow: hidden; margin: 16px 0 8px; border: 1px solid var(--line); }
.bar-admin { background: var(--accent); }
.bar-care { background: var(--teal-light); }
.bar-legend { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 0.85rem; color: var(--muted); margin: 4px 0; }
.swatch { display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-right: 5px; vertical-align: -1px; }
.swatch-admin { background: var(--accent); }
.swatch-care { background: var(--teal-light); border: 1px solid var(--line); }
.source-note { font-size: 0.82rem; color: var(--muted); }
.here-panel { background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px; }
.here-panel ul { margin: 10px 0; padding-left: 20px; }
.here-panel li { margin: 8px 0; }
.price-list { margin: 14px 0; }
.price-list > div { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.price-list dt { font-weight: 600; }
.price-list dd { margin: 0; font-weight: 700; color: var(--teal-dark); text-align: right; white-space: nowrap; }
.price-list dd .muted { font-weight: 400; }
.home-section { padding: 8px 0 4px; }
.home-section h2 { font-family: Georgia, 'Times New Roman', serif; font-weight: 600; font-size: 1.7rem; color: var(--teal-dark); }
.value-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; margin: 18px 0; }
.value-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; background: #fff; }
.value-card h3 { margin-top: 0; color: var(--teal-dark); }
.value-card h3::before { content: ""; display: block; width: 28px; height: 2px; background: var(--accent); margin-bottom: 10px; }
.provider-value { background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 28px 24px; margin: 24px 0; }
.provider-figures { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 22px 0; text-align: center; }
.provider-figures .figure { padding: 8px 4px; }
.provider-figures .figure + .figure { border-left: 1px solid var(--line); }
.provider-figures strong { display: block; font-family: Georgia, 'Times New Roman', serif; font-weight: 600; font-size: 2.4rem; line-height: 1.1; color: var(--teal); }
.provider-figures strong small { font-size: 1.1rem; color: var(--muted); font-family: inherit; }
.provider-figures span { display: block; margin-top: 6px; font-size: 0.9rem; color: var(--muted); }
@media (max-width: 720px) {
  .mission-hero { grid-template-columns: 1fr; padding: 28px 0 20px; gap: 8px; }
  .mission-hero h1 { font-size: 2rem; }
  .hero-emblem { width: 180px; height: 180px; }
  .mission-stats { grid-template-columns: 1fr 1fr; }
  .mission-stats .stat:nth-child(3) { border-left: none; }
  .mission-stats .stat:nth-child(n+3) { border-top: 1px solid var(--line); }
  .provider-figures { grid-template-columns: 1fr; }
  .provider-figures .figure + .figure { border-left: none; border-top: 1px solid var(--line); padding-top: 16px; }
  .provider-value { padding: 22px 18px; }
  .money-figures { grid-template-columns: 1fr; }
  .money-figures .figure + .figure { border-left: none; border-top: 1px solid var(--line); padding-top: 16px; }
  .split-compare { grid-template-columns: 1fr; }
  .price-list dd { white-space: normal; }
}
