html {
  font-size: 14px;
  position: relative;
  min-height: 100%;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
  color: var(--bs-secondary-color);
  text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
  text-align: start;
}

/* --- DogFocus design system --- */
:root {
  --df-red: #dc3545;
  --df-red-dark: #c02938;
  --df-green: #198754;
  --df-ink: #3f2b4f;
  --df-muted: #7a7285;
  --df-bg: #fcfcfc;
  --df-border: #eeebf1;
  --df-shadow: 0 0 20px rgba(63, 43, 79, .08);
  --df-shadow-lg: 0 6px 28px rgba(63, 43, 79, .13);
}

body {
  font-family: Montserrat, system-ui, -apple-system, "Segoe UI", sans-serif;
  background: var(--df-bg);
  color: var(--df-ink);
  overflow-x: clip; /* full-bleed hero uses 100vw; clip (not hidden) keeps the sticky navbar working */
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { font-weight: 800; letter-spacing: -0.02em; color: var(--df-ink); }

main h2 {
  font-size: 1.45rem;
  margin: 2.5rem 0 1rem;
}

a { color: var(--df-red-dark); }
a:hover { color: var(--df-red); }

/* Pill buttons everywhere */
.btn {
  border-radius: 999px;
  font-weight: 700;
}
.btn-lg { padding: 0.75rem 1.75rem; }
.btn-danger { background: var(--df-red); border-color: var(--df-red); }
.btn-danger:hover { background: var(--df-red-dark); border-color: var(--df-red-dark); }
.btn-danger, .btn-success { box-shadow: 0 4px 14px rgba(63, 43, 79, .18); }

.form-control, .form-select { border-radius: 10px; border-color: var(--df-border); }

/* Navbar (sticky on the header wrapper: sticky on the nav itself would be
   trapped inside the exactly-nav-sized <header>) */
header { position: sticky; top: 0; z-index: 1030; }
.navbar {
  box-shadow: 0 1px 12px rgba(63, 43, 79, .07);
}
.navbar .nav-link { font-weight: 600; color: var(--df-ink) !important; white-space: nowrap; }
.navbar .nav-link:hover { color: var(--df-red) !important; }
.navbar-brand { font-size: 1.2rem; }
.navbar-brand img { border-radius: 8px; }
.nav-cta {
  font-size: .9rem;
  padding: .45rem 1.1rem;
  margin-left: .75rem;
  white-space: nowrap;
}

/* Hero: full-bleed band */
.hero {
  width: 100vw;
  margin: 0 calc(50% - 50vw) 2.5rem;
  background:
    radial-gradient(60rem 24rem at 50% -8rem, #fdeef0 0%, rgba(253, 238, 240, 0) 70%),
    linear-gradient(180deg, #fff 0%, var(--df-bg) 100%);
  border-bottom: 1px solid var(--df-border);
  padding: 4rem 1.25rem 3.5rem;
  text-align: center;
}
.hero h1 {
  font-size: clamp(1.9rem, 4.5vw, 2.9rem);
  max-width: 820px;
  margin: 0 auto .75rem;
}
.hero .lead {
  max-width: 620px;
  margin: 0 auto 1.75rem;
  color: var(--df-muted);
  font-size: 1.1rem;
}

/* Reunited stat pill (hero social proof) */
.stat-pill {
  display: inline-block;
  background: #fff;
  color: var(--df-ink);
  border: 1px solid var(--df-border);
  border-radius: 999px;
  padding: .5rem 1.25rem;
  font-size: .95rem;
  margin-top: 1.5rem;
  box-shadow: var(--df-shadow);
}
.stat-pill strong { color: var(--df-green); }

/* "How it works" steps */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
  margin: 1.5rem 0 1rem;
}
.step {
  background: #fff;
  border-radius: 18px;
  box-shadow: var(--df-shadow);
  padding: 1.5rem 1.25rem;
  text-align: center;
}
.step .num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.4rem; height: 2.4rem;
  border-radius: 50%;
  background: var(--df-red);
  color: #fff;
  font-weight: 800;
  font-size: 1.1rem;
  margin-bottom: .75rem;
}
.step h3 { font-size: 1.05rem; margin-bottom: .4rem; }
.step p { color: var(--df-muted); font-size: .92rem; margin: 0; }

/* Reunited strip (home social proof) */
.reunited-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, 170px);
  justify-content: center;
  gap: 1rem;
  margin: 1.5rem 0 1rem;
}
.reunited-card {
  background: #fff;
  border-radius: 16px;
  box-shadow: var(--df-shadow);
  overflow: hidden;
  text-align: center;
  padding-bottom: .8rem;
}
.reunited-card img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.reunited-card .name { font-weight: 700; margin: .5rem .5rem .1rem; }
.reunited-card .after { color: var(--df-muted); font-size: .85rem; padding: 0 .5rem; }
.reunited-card .after strong { color: var(--df-green); }

/* Report cards (home + lists) */
.report-card {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1rem;
  border: none;
  border-radius: 16px;
  background: #fff;
  box-shadow: var(--df-shadow);
  transition: box-shadow .15s ease, transform .15s ease;
}
.report-card:hover { box-shadow: var(--df-shadow-lg); transform: translateY(-2px); }
.report-card img {
  width: 96px; height: 96px; object-fit: cover;
  border-radius: 12px; flex-shrink: 0;
}
.report-card .badge-type {
  display: inline-block;
  font-size: .72rem; font-weight: 700; letter-spacing: .03em;
  text-transform: uppercase; padding: .18rem .6rem; border-radius: 999px;
  color: #fff;
}
.badge-type.lost { background: var(--df-red); }
.badge-type.found { background: var(--df-green); }

/* Maps: framed instead of a raw tile rectangle */
.map-frame {
  border: none;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--df-shadow);
}
.map-legend { display: flex; gap: 1rem; align-items: center; margin: 0.6rem 0 0; color: var(--df-muted); font-size: .9rem; }
.map-legend .dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: .35rem; }
.map-legend .dot.lost { background: var(--df-red); }
.map-legend .dot.found { background: var(--df-green); }

/* Province chips */
.chip {
  display: inline-block;
  background: #fff;
  border: 1px solid var(--df-border);
  border-radius: 999px;
  padding: .4rem 1rem;
  margin: 0 .5rem .6rem 0;
  font-weight: 600;
  font-size: .9rem;
  color: var(--df-ink);
  text-decoration: none;
  box-shadow: var(--df-shadow);
  transition: box-shadow .15s ease, transform .15s ease;
}
.chip:hover { color: var(--df-red); box-shadow: var(--df-shadow-lg); transform: translateY(-1px); }

/* Photo strips on report/manage pages */
.photo-strip { display: flex; flex-wrap: wrap; gap: .5rem; }
.photo-strip img {
  width: 220px; height: 220px; object-fit: cover;
  border-radius: 14px; box-shadow: var(--df-shadow);
}
.photo-strip.small img { width: 130px; height: 130px; }
.photo-strip a { line-height: 0; cursor: zoom-in; }

/* Message cards (manage page) */
.message-card {
  border: none;
  border-left: 3px solid var(--df-red);
  border-radius: 12px;
  box-shadow: var(--df-shadow);
  padding: .75rem 1rem;
  margin-bottom: .75rem;
  max-width: 700px;
  background: #fff;
}

/* Gemeente autocomplete dropdown */
.autocomplete-list {
  position: absolute; left: 0; right: 0; z-index: 1000;
  background: #fff; border: 1px solid var(--df-border); border-top: none;
  border-radius: 0 0 10px 10px; max-height: 260px; overflow-y: auto;
  box-shadow: var(--df-shadow-lg); display: none;
}
.autocomplete-item { padding: .5rem .75rem; cursor: pointer; }
.autocomplete-item:hover, .autocomplete-item.active { background: #f5f2f7; }

/* Partner logo wall (only rendered when logos exist) */
.partner-grid { display: flex; flex-wrap: wrap; gap: 1.5rem 2rem; align-items: center; margin: 1rem 0; }
.partner-grid img { max-height: 70px; max-width: 170px; object-fit: contain; }

/* Footer */
footer.footer {
  margin-top: 4rem;
  padding: 2.5rem 0;
  background: var(--df-ink);
  color: rgba(255, 255, 255, .75);
  font-size: .9rem;
}
footer.footer strong.text-dark, footer.footer .footer-brand { color: #fff !important; }
footer.footer a { color: rgba(255, 255, 255, .75); text-decoration: none; margin-right: 1rem; }
footer.footer a:hover { color: #fff; }

/* Build credit: a quiet line under the footer columns, not competing with the nav links */
.footer-credit {
  margin-top: 1.75rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, .12);
  font-size: .82rem;
  color: rgba(255, 255, 255, .55);
}
.footer-credit a { margin-right: 0; }
