/* Bobology Learning Center — Museum Homepage */
:root {
  --blue: #1f6fa8;
  --blue-dark: #174f79;
  --blue-soft: #eaf4fb;
  --orange: #f28c28;
  --orange-soft: #fff1df;
  --ink: #1f2f3b;
  --muted: #60717c;
  --surface: #ffffff;
  --background: #f7f9fb;
  --border: #d7e1e7;
  --focus: #ffbf47;
  --shadow: 0 18px 45px rgba(31, 47, 59, 0.10);
  --radius: 24px;
  --content: 1180px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 20px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--background);
}

a { color: inherit; }

button, a { -webkit-tap-highlight-color: transparent; }

button:focus-visible,
a:focus-visible {
  outline: 4px solid var(--focus);
  outline-offset: 4px;
}

.container {
  width: min(var(--content), calc(100% - 2rem));
  margin: 0 auto;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  z-index: 1000;
  background: #000;
  color: white;
  padding: .75rem 1rem;
}

.skip-link:focus { top: 1rem; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,.96);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(10px);
}

.header-inner {
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: .7rem;
  text-decoration: none;
}

.brand-mark {
  width: 50px;
  height: 50px;
  display: grid;
  place-items: center;
  border-radius: 15px;
  background: var(--blue);
  color: white;
  font-weight: 800;
  font-size: 1.7rem;
}

.brand-text {
  display: flex;
  align-items: baseline;
  gap: .45rem;
}

.brand-text strong {
  color: var(--blue-dark);
  font-size: 1.55rem;
  letter-spacing: -.03em;
}

.brand-text small {
  color: #b85f11;
  font-size: 1rem;
  font-weight: 700;
}

.main-nav {
  display: flex;
  gap: 1.4rem;
}

.main-nav a {
  text-decoration: none;
  font-weight: 700;
  font-size: .95rem;
}

.main-nav a:hover { color: var(--blue); }

.menu-button {
  display: none;
  min-width: 50px;
  min-height: 50px;
  border: 2px solid var(--border);
  border-radius: 12px;
  background: white;
  font-size: 1.4rem;
}

.museum-hero {
  padding: clamp(4rem, 9vw, 7rem) 0 5rem;
  background:
    radial-gradient(circle at 85% 18%, rgba(242,140,40,.14), transparent 25rem),
    linear-gradient(180deg, #f2f8fc 0%, var(--background) 100%);
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.08fr .92fr;
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
}

.eyebrow {
  margin: 0 0 .6rem;
  color: var(--blue-dark);
  text-transform: uppercase;
  letter-spacing: .08em;
  font-weight: 800;
  font-size: .82rem;
}

.eyebrow.light { color: #cde9f8; }

h1, h2, h3 {
  line-height: 1.15;
  margin-top: 0;
}

h1 {
  margin-bottom: 1.2rem;
  font-size: clamp(2.8rem, 6vw, 5.2rem);
  letter-spacing: -.05em;
}

h2 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  letter-spacing: -.03em;
}

h3 { font-size: 1.45rem; }

.hero-lead {
  max-width: 750px;
  color: var(--muted);
  font-size: 1.25rem;
}

.hero-actions {
  display: flex;
  gap: .9rem;
  flex-wrap: wrap;
  margin-top: 1.8rem;
}

.button {
  min-height: 54px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: .85rem 1.25rem;
  border-radius: 14px;
  text-decoration: none;
  font-weight: 800;
}

.button-primary {
  background: var(--blue);
  color: white;
}

.button-primary:hover { background: var(--blue-dark); }

.button-secondary {
  background: white;
  color: var(--blue-dark);
  border: 2px solid var(--border);
}

.button-secondary:hover {
  background: var(--blue-soft);
  border-color: var(--blue);
}

.button-accent {
  background: var(--orange);
  color: #222;
}

.button-accent:hover { background: #f4a24e; }

.museum-display {
  position: relative;
  min-height: 430px;
}

.display-glow {
  position: absolute;
  inset: 20% 15%;
  border-radius: 50%;
  background: rgba(31,111,168,.10);
  filter: blur(10px);
}

.display-card,
.display-center {
  position: absolute;
  background: white;
  border: 1px solid var(--border);
  border-radius: 20px;
  box-shadow: var(--shadow);
  display: grid;
  place-items: center;
  text-align: center;
}

.display-card {
  width: 130px;
  min-height: 110px;
  padding: 1rem;
}

.display-card span {
  font-size: 2.2rem;
}

.display-center {
  width: 250px;
  min-height: 170px;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  padding: 1.4rem;
  background: var(--blue-dark);
  color: white;
  z-index: 2;
}

.display-center span {
  font-size: 3rem;
}

.card-ai { top: 0; left: 8%; }
.card-phone { top: 22px; right: 4%; }
.card-wifi { bottom: 20px; left: 3%; }
.card-safety { bottom: 0; right: 9%; }

.gallery-section,
.featured-section,
.museum-guide,
.connect-section {
  padding: 5rem 0;
}

.section-heading {
  max-width: 780px;
  margin-bottom: 2.2rem;
}

.section-heading p:last-child { color: var(--muted); }

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.2rem;
}

.gallery-card {
  min-height: 300px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.2rem;
  align-items: start;
  padding: 1.6rem;
  border-radius: var(--radius);
  border: 2px solid transparent;
  text-decoration: none;
  box-shadow: 0 10px 25px rgba(31,47,59,.06);
  transition: transform .2s ease, border-color .2s ease;
}

.gallery-card:hover {
  transform: translateY(-4px);
  border-color: var(--blue);
}

.gallery-icon {
  width: 76px;
  height: 76px;
  display: grid;
  place-items: center;
  border-radius: 20px;
  background: white;
  font-size: 2.3rem;
  box-shadow: 0 6px 16px rgba(31,47,59,.08);
}

.gallery-label {
  margin: 0 0 .35rem;
  text-transform: uppercase;
  letter-spacing: .07em;
  font-size: .75rem;
  font-weight: 800;
  color: var(--blue-dark);
}

.gallery-card h3 {
  margin-bottom: .6rem;
  font-size: 1.65rem;
}

.gallery-card p:not(.gallery-label) {
  color: var(--muted);
}

.explore-link {
  display: inline-block;
  margin-top: .6rem;
  font-weight: 800;
  color: var(--blue-dark);
}

.gallery-ai { background: #edf5fb; }
.gallery-internet { background: #f1f7f2; }
.gallery-phones { background: #fff5e8; }
.gallery-safety { background: #f7f0fb; }
.gallery-computers { background: #eef3f8; }
.gallery-photos { background: #fff0f0; }

.featured-section { background: #eef4f7; }

.featured-panel {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 2rem;
  align-items: center;
  border-radius: 30px;
  background: var(--blue-dark);
  color: white;
  padding: clamp(2rem, 6vw, 4rem);
}

.featured-copy p,
.featured-copy li { color: #e4f1f7; }

.featured-copy ul {
  padding-left: 1.3rem;
}

.featured-diagram {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .8rem;
  flex-wrap: wrap;
}

.diagram-node {
  width: 135px;
  min-height: 135px;
  display: grid;
  place-items: center;
  padding: 1rem;
  text-align: center;
  border-radius: 22px;
  background: white;
  color: var(--ink);
}

.diagram-node span { font-size: 2.4rem; }

.diagram-arrow {
  color: #bfe3f6;
  font-size: 1.7rem;
}

.guide-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.guide-grid article {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
}

.guide-number {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  margin-bottom: 1rem;
  border-radius: 50%;
  background: var(--orange);
  color: #222;
  font-weight: 900;
}

.guide-grid p {
  margin-bottom: 0;
  color: var(--muted);
}

.connect-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.connect-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1rem;
  padding: 1.5rem;
  border-radius: var(--radius);
  background: white;
  border: 1px solid var(--border);
  text-decoration: none;
}

.connect-card:hover {
  border-color: var(--blue);
  background: var(--blue-soft);
}

.connect-icon { font-size: 2rem; }

.connect-card strong {
  display: block;
  font-size: 1.2rem;
}

.connect-card small {
  display: block;
  color: var(--muted);
  font-size: .9rem;
}

.site-footer {
  padding: 2.5rem 0;
  background: #182733;
  color: white;
}

.footer-inner {
  display: grid;
  gap: .7rem;
  text-align: center;
}

.footer-brand {
  display: flex;
  justify-content: center;
  gap: .6rem;
  flex-wrap: wrap;
}

.footer-brand strong {
  color: #91d4f4;
  font-size: 1.25rem;
}

.footer-inner p {
  margin: 0;
  color: #c0ced6;
}

@media (max-width: 900px) {
  .hero-inner,
  .featured-panel {
    grid-template-columns: 1fr;
  }

  .museum-display { min-height: 360px; }
}

@media (max-width: 760px) {
  body { font-size: 18px; }

  .menu-button {
    display: grid;
    place-items: center;
  }

  .main-nav {
    display: none;
    position: absolute;
    top: 82px;
    left: 0;
    right: 0;
    padding: 1rem;
    background: white;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow);
    flex-direction: column;
  }

  .main-nav.open { display: flex; }

  .main-nav a {
    padding: .7rem;
    border-radius: 10px;
  }

  .gallery-grid,
  .guide-grid,
  .connect-grid {
    grid-template-columns: 1fr;
  }

  .hero-actions {
    display: grid;
  }

  .button { width: 100%; }

  .gallery-card {
    min-height: auto;
  }
}

@media (max-width: 520px) {
  .brand-text small { display: none; }

  .museum-display {
    min-height: 300px;
  }

  .display-card {
    width: 105px;
    min-height: 95px;
    font-size: .85rem;
  }

  .display-center {
    width: 205px;
    min-height: 145px;
  }

  .card-ai { left: 0; }
  .card-phone { right: 0; }
  .card-wifi { left: 0; }
  .card-safety { right: 0; }

  .gallery-card {
    grid-template-columns: 1fr;
  }

  .diagram-arrow {
    transform: rotate(90deg);
    width: 100%;
    text-align: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
