/* Book Nook Library — marketing site
   Palette and type match the Book Nook app and the wooden chalkboard logo. */

:root {
  --brown: #5b3a29;
  --brown-dark: #3d2517;
  --cream: #fbf6ee;
  --card: #ffffff;
  --green: #3f7d5c;
  --green-light: #e8f3ec;
  --amber: #b8862b;
  --amber-light: #fbf1de;
  --red: #c14b3a;
  --text: #2b211c;
  --muted: #8a7a6e;
  --border: #ece2d4;
  --radius: 16px;
  --shadow: 0 10px 30px rgba(61, 37, 23, 0.08);
  --serif: "Lora", Georgia, serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  padding: 0;
  background: var(--cream);
  color: var(--text);
  font-family: var(--sans);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; }

.wrap {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 20px;
}

h1, h2, h3, .serif {
  font-family: var(--serif);
  color: var(--brown-dark);
  font-weight: 600;
  line-height: 1.2;
  margin: 0 0 14px;
}
h1 { font-size: clamp(30px, 6vw, 48px); }
h2 { font-size: clamp(24px, 4vw, 32px); }
h3 { font-size: 19px; margin-bottom: 8px; }
p { margin: 0 0 12px; }
.eyebrow {
  font-family: var(--sans);
  font-weight: 700;
  font-size: 12.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 10px;
  display: block;
}
.lead { font-size: 17.5px; color: var(--muted); max-width: 60ch; }
.center { text-align: center; margin-left: auto; margin-right: auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 22px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--green); color: #fff; box-shadow: 0 8px 20px rgba(63,125,92,0.28); }
.btn-primary:hover { box-shadow: 0 10px 24px rgba(63,125,92,0.35); }
.btn-outline { background: transparent; border-color: rgba(255,255,255,0.5); color: inherit; }
.btn-outline.dark { border-color: var(--brown); color: var(--brown-dark); }
.btn-amber { background: var(--amber); color: #fff; box-shadow: 0 8px 20px rgba(184,134,43,0.28); }
.btn-row { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  /* No backdrop-filter here: on Chrome/Android it makes this element a
     "containing block" for the fixed-position mobile menu below it, so
     the menu sizes itself against this 72px header instead of the full
     screen (nine-tenths of the menu gets clipped away). */
  background: var(--cream);
  border-bottom: 1px solid var(--border);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img { width: 40px; height: 40px; border-radius: 10px; }
.brand-name { font-family: var(--serif); font-weight: 700; font-size: 19px; color: var(--brown-dark); }
.brand-name span { display: block; font-family: var(--sans); font-weight: 600; font-size: 10.5px; letter-spacing: 0.1em; color: var(--amber); text-transform: uppercase; }

nav.main-nav { display: flex; align-items: center; gap: 28px; }
nav.main-nav a.nav-link {
  text-decoration: none;
  color: var(--brown-dark);
  font-weight: 600;
  font-size: 14.5px;
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
}
@media (hover: hover) {
  nav.main-nav a.nav-link:hover { border-color: var(--amber); }
}
nav.main-nav a.nav-link.active { border-color: var(--amber); }
.header-cta { display: flex; align-items: center; gap: 10px; }
.header-cta .btn { padding: 10px 18px; font-size: 14px; }
.nav-toggle { display: none; }

@media (max-width: 780px) {
  html.nav-open, html.nav-open body { overflow: hidden; height: 100%; }
  nav.main-nav {
    position: fixed;
    top: 72px; right: 0; bottom: 0; left: 0;
    z-index: 60;
    background: var(--cream);
    flex-direction: column; align-items: flex-start;
    padding: 24px 20px; gap: 4px;
    transform: translateX(100%);
    transition: transform 0.25s ease;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    visibility: hidden;
  }
  nav.main-nav.open { transform: translateX(0); visibility: visible; }
  nav.main-nav a.nav-link { width: 100%; padding: 14px 0; border-bottom: 1px solid var(--border); font-size: 17px; touch-action: manipulation; }
  nav.main-nav .header-cta { flex-direction: column; align-items: stretch; margin-top: 14px; width: 100%; }
  nav.main-nav .header-cta .btn { justify-content: center; }
  .site-header .header-cta.desktop-only { display: none; }
  .nav-toggle {
    display: flex; align-items: center; justify-content: center;
    width: 42px; height: 42px; border-radius: 10px; border: 1.5px solid var(--border);
    background: var(--card); font-size: 20px; cursor: pointer;
    position: relative; z-index: 61;
    touch-action: manipulation;
  }
}
@media (min-width: 781px) {
  .nav-toggle { display: none; }
}

/* ---------- Hero ---------- */
.hero {
  background: radial-gradient(circle at 15% 0%, rgba(63,125,92,0.10), transparent 55%),
              radial-gradient(circle at 100% 10%, rgba(184,134,43,0.14), transparent 50%),
              var(--cream);
  padding: 64px 0 56px;
  border-bottom: 1px solid var(--border);
}
.hero-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 40px; align-items: center; }
@media (max-width: 860px) { .hero-grid { grid-template-columns: 1fr; } }

.rating-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--card); border: 1px solid var(--border);
  padding: 8px 14px; border-radius: 999px; font-size: 13.5px; font-weight: 700;
  color: var(--brown-dark); box-shadow: var(--shadow); margin-bottom: 18px;
}
.rating-badge .stars { color: var(--amber); letter-spacing: 1px; }

.hero-panel {
  background: var(--brown-dark);
  color: var(--cream);
  border-radius: 22px;
  padding: 30px;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}
.hero-panel::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(circle at 100% 0%, rgba(184,134,43,0.35), transparent 55%);
}
.hero-panel > * { position: relative; }
.hero-panel .panel-logo { width: 64px; height: 64px; border-radius: 14px; margin-bottom: 16px; box-shadow: 0 6px 18px rgba(0,0,0,0.35); }
.hero-fact { display: flex; gap: 12px; padding: 11px 0; border-bottom: 1px solid rgba(251,246,238,0.14); font-size: 14.5px; }
.hero-fact:last-child { border-bottom: none; }
.hero-fact .ic { font-size: 18px; }
.hero-fact b { display: block; color: #fff; font-family: var(--serif); font-size: 15px; }
.hero-fact span.muted2 { color: #d8c9b8; }

/* ---------- Sections ---------- */
section { padding: 64px 0; }
section.tight { padding: 44px 0; }
.section-head { max-width: 640px; margin: 0 auto 40px; text-align: center; }

.card-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
@media (max-width: 940px) { .card-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .card-grid { grid-template-columns: 1fr; } }

.feature-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 22px;
  box-shadow: var(--shadow);
}
.feature-card .ic {
  width: 46px; height: 46px; border-radius: 12px;
  background: var(--green-light); color: var(--green);
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; margin-bottom: 14px;
}
.feature-card p { color: var(--muted); font-size: 14.5px; margin: 0; }

.amenity-row {
  display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 30px;
}
.amenity-pill {
  display: inline-flex; align-items: center; gap: 7px;
  background: var(--card); border: 1px solid var(--border);
  padding: 9px 16px; border-radius: 999px; font-size: 13.5px; font-weight: 600;
  color: var(--brown-dark); box-shadow: var(--shadow);
}

.band {
  background: var(--green-light);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.band-amber { background: var(--amber-light); }

.stat-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
@media (max-width: 700px) { .stat-strip { grid-template-columns: repeat(2, 1fr); } }
.stat-strip .stat { text-align: center; }
.stat-strip .stat .num { font-family: var(--serif); font-size: 30px; color: var(--brown-dark); font-weight: 700; }
.stat-strip .stat .label { font-size: 12.5px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; margin-top: 4px; }

/* Testimonials */
.testi-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 860px) { .testi-grid { grid-template-columns: 1fr; } }
.testi-card {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 24px; box-shadow: var(--shadow);
}
.testi-card .stars { color: var(--amber); letter-spacing: 2px; margin-bottom: 10px; display: block; }
.testi-card p.quote { font-family: var(--serif); font-size: 16.5px; color: var(--brown-dark); margin-bottom: 12px; }
.testi-card .who { font-size: 13px; color: var(--muted); font-weight: 600; }

/* FAQ */
.faq-item {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  margin-bottom: 12px; overflow: hidden;
}
.faq-item summary {
  padding: 18px 22px; cursor: pointer; font-weight: 700; font-size: 15.5px;
  color: var(--brown-dark); list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 12px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-size: 22px; color: var(--amber); font-weight: 400; flex-shrink: 0; }
.faq-item[open] summary::after { content: "–"; }
.faq-item .faq-a { padding: 0 22px 20px; color: var(--muted); font-size: 14.5px; }

/* Plans */
.plan-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 860px) { .plan-grid { grid-template-columns: 1fr; } }
.plan-card {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 26px; text-align: center; box-shadow: var(--shadow);
}
.plan-card.highlight { border: 2px solid var(--amber); position: relative; }
.plan-card .tag { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); background: var(--amber); color: #fff; font-size: 11.5px; font-weight: 700; padding: 4px 12px; border-radius: 999px; }
.plan-card .when { font-family: var(--serif); font-size: 20px; color: var(--brown-dark); margin-bottom: 6px; }
.plan-card .desc { color: var(--muted); font-size: 13.5px; }

.plan-illustration {
  max-width: 640px; margin: 0 auto 30px;
  border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); border: 1px solid var(--border);
}
.plan-illustration img { width: 100%; display: block; }

/* Floors */
.floor-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 860px) { .floor-grid { grid-template-columns: 1fr; } }
.floor-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); border-top: 4px solid var(--dot, var(--green)); }
.floor-card.first { --dot: #3b6ea5; }
.floor-card.second { --dot: #7c5cbf; }
.floor-card.third { --dot: #1f8f7a; }
.floor-card .dot { width: 12px; height: 12px; border-radius: 50%; background: var(--dot); display: inline-block; margin-right: 8px; }

/* Map + contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: stretch; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }
.map-frame { border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); min-height: 340px; }
.map-frame iframe { width: 100%; height: 100%; min-height: 340px; border: 0; display: block; }
.info-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
.info-row { display: flex; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--border); }
.info-row:last-child { border-bottom: none; }
.info-row .ic { width: 38px; height: 38px; border-radius: 10px; background: var(--green-light); color: var(--green); display: flex; align-items: center; justify-content: center; font-size: 18px; flex-shrink: 0; }
.info-row b { display: block; color: var(--brown-dark); font-size: 14.5px; }
.info-row span { color: var(--muted); font-size: 13.5px; }
.hours-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.hours-table td { padding: 6px 0; border-bottom: 1px solid var(--border); }
.hours-table td:last-child { text-align: right; font-weight: 600; color: var(--brown-dark); }
.hours-table tr:last-child td { border-bottom: none; }

.social-row { display: flex; gap: 10px; margin-top: 16px; }
.social-pill {
  display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px;
  border-radius: 999px; border: 1.5px solid var(--border); background: var(--card);
  font-size: 13.5px; font-weight: 700; text-decoration: none; color: var(--brown-dark);
}
.social-pill:hover { border-color: var(--amber); }

/* CTA band */
.cta-band { background: var(--brown-dark); color: var(--cream); text-align: center; }
.cta-band h2 { color: #fff; }
.cta-band p.lead { color: #d8c9b8; margin: 0 auto 26px; }

/* Footer */
footer.site-footer { background: var(--brown-dark); color: #d8c9b8; padding: 44px 0 24px; font-size: 13.5px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 30px; margin-bottom: 30px; }
@media (max-width: 700px) { .footer-grid { grid-template-columns: 1fr; } }
footer.site-footer h4 { color: #fff; font-family: var(--serif); font-size: 16px; margin-bottom: 12px; }
footer.site-footer a { color: #d8c9b8; text-decoration: none; display: block; margin-bottom: 8px; }
footer.site-footer a:hover { color: var(--amber); }
.footer-bottom { border-top: 1px solid rgba(251,246,238,0.14); padding-top: 18px; text-align: center; color: #a9998a; font-size: 12.5px; }

/* WhatsApp floating button */
.wa-float {
  position: fixed; bottom: 20px; right: 20px; z-index: 50;
  width: 56px; height: 56px; border-radius: 50%;
  background: #25D366; color: #fff; display: flex; align-items: center; justify-content: center;
  font-size: 27px; box-shadow: 0 10px 24px rgba(37,211,102,0.45); text-decoration: none;
}

/* Page hero (non-home) */
.page-hero { background: var(--brown-dark); color: var(--cream); padding: 56px 0 44px; text-align: center; }
.page-hero h1 { color: #fff; margin-bottom: 8px; }
.page-hero p { color: #d8c9b8; max-width: 56ch; margin: 0 auto; }
.crumb { font-size: 12.5px; color: var(--amber); text-transform: uppercase; letter-spacing: 0.1em; font-weight: 700; margin-bottom: 10px; display: block; }

.rule-list { list-style: none; padding: 0; margin: 0; }
.rule-list li { display: flex; gap: 10px; padding: 8px 0; font-size: 14.5px; color: var(--muted); }
.rule-list li::before { content: "✓"; color: var(--green); font-weight: 800; flex-shrink: 0; }
