/* Kids' Directory Charlotte — rebuilt static site.
   Brand: pink #D7044D, Quicksand/Open Sans system fallbacks (fonts self-hosted later if wanted). */
:root {
  --brand: #D7044D;
  --brand-dark: #a80039;
  --ink: #2a2a2a;
  --paper: #ffffff;
  --soft: #f7f4f5;
  --line: #e6dde0;
}
* { box-sizing: border-box; }
body {
  margin: 0; color: var(--ink); background: var(--paper);
  font-family: "Open Sans", "Segoe UI", system-ui, sans-serif;
  font-size: 16px; line-height: 1.55;
}
h1, h2, h3 { font-family: Quicksand, "Segoe UI", system-ui, sans-serif; line-height: 1.2; }
h1 { color: var(--brand); }
a { color: var(--brand-dark); }
img { max-width: 100%; height: auto; }
.wrap { max-width: 1100px; margin: 0 auto; padding: 0 16px; }

.header { padding: 10px 0; }
.header-grid { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.header-logo { max-height: 90px; width: auto; }
.header-banner img { border: 1px solid var(--line); max-height: 90px; width: auto; }

.navigation { background: var(--brand); }
.nav-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.menu { list-style: none; display: flex; margin: 0; padding: 0; flex-wrap: wrap; }
.menu a { display: block; padding: 12px 14px; color: #fff; text-decoration: none; font-weight: 600; font-size: .95rem; }
.menu a:hover { background: var(--brand-dark); }
.tagline { margin-left: auto; color: #fff; font-size: .9rem; }
.nav-toggle { display: none; }

.main { padding: 24px 16px 48px; min-height: 55vh; }

.footer { background: var(--soft); border-top: 3px solid var(--brand); padding: 28px 0; font-size: .9rem; }
.footer-grid { display: grid; grid-template-columns: auto 1fr auto auto; gap: 24px; align-items: start; }
.footer-logo { max-height: 70px; }
.footer a { text-decoration: none; }
.footer-legal { grid-column: 1 / -1; color: #777; font-size: .8rem; }

/* Directory */
.dir-controls { display: flex; gap: 12px; flex-wrap: wrap; margin: 16px 0 24px; }
.dir-controls input, .dir-controls select {
  padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; font-size: 1rem;
}
.dir-controls input { flex: 1; min-width: 220px; }
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px; }
.card {
  border: 1px solid var(--line); border-radius: 12px; padding: 16px; background: #fff;
  display: flex; flex-direction: column; gap: 6px;
}
.card h3 { margin: 0; font-size: 1.05rem; }
.card h3 a { text-decoration: none; color: var(--ink); }
.card h3 a:hover { color: var(--brand); }
.card .cats { font-size: .78rem; color: #888; }
.listing-contact { background: var(--soft); border-radius: 12px; padding: 16px; }
.listing-grid { display: grid; grid-template-columns: 280px 1fr; gap: 24px; align-items: start; }
.button {
  display: inline-block; background: var(--brand); color: #fff !important; text-decoration: none;
  padding: 10px 18px; border-radius: 8px; font-weight: 700; border: 0; cursor: pointer;
}
.button:hover { background: var(--brand-dark); }

/* Flipbook */
.fb-stage { display: flex; justify-content: center; margin: 12px 0; padding: 28px 20px 34px;
  background: linear-gradient(#ece8e1, #d9d3c9); border: 1px solid #c9c2b6; border-radius: 10px;
  box-shadow: inset 0 2px 10px rgba(0, 0, 0, .12); overflow: hidden; }
@media (max-width: 768px) { .fb-stage { padding: 14px 8px 18px; } }
#flipbook .fb-page { background: #fff; overflow: hidden; outline: 1px solid rgba(0, 0, 0, .28);
  box-shadow: 0 10px 26px rgba(0, 0, 0, .38); }
/* the fold down the middle of an open spread */
#flipbook .fb-page::after { content: ""; position: absolute; top: 0; bottom: 0; width: 7%; pointer-events: none; }
#flipbook .fb-page.--left::after { right: 0; background: linear-gradient(to left, rgba(0, 0, 0, .22), rgba(0, 0, 0, 0)); }
#flipbook .fb-page.--right::after { left: 0; background: linear-gradient(to right, rgba(0, 0, 0, .22), rgba(0, 0, 0, 0)); }
#flipbook .fb-page img { width: 100%; height: 100%; object-fit: contain; display: block; }
.fb-hotspot { position: absolute; display: block; }
.fb-hotspot:hover { outline: 2px solid rgba(215, 4, 77, .55); border-radius: 4px; }
.fb-bar { display: flex; gap: 12px; align-items: center; justify-content: center; margin: 10px 0; }
#fb-thumbs { display: flex; gap: 8px; overflow-x: auto; padding: 8px 0; }
#fb-thumbs img { height: 84px; border: 1px solid var(--line); border-radius: 4px; cursor: pointer; flex: 0 0 auto; }
#fb-thumbs img:hover { border-color: var(--brand); }

@media (max-width: 768px) {
  .nav-toggle {
    display: block; background: none; border: 1px solid #fff; color: #fff;
    padding: 8px 14px; margin: 8px 0; border-radius: 8px; font-size: 1rem;
  }
  .menu { display: none; flex-direction: column; width: 100%; }
  .menu.open { display: flex; }
  .tagline { margin: 0 0 8px auto; }
  .listing-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .header-banner { display: none; }
}
