@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600;700;800;900&family=ABeeZee&family=Inter:wght@400;700&display=swap');

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { height: 100%; border-top: 7px solid #01a1dd; }

body {
  font-family: 'Inter', Arial, sans-serif;
  font-size: 16px; line-height: 1.7; color: #222; background: #fff;
  min-height: 100vh; display: flex; flex-direction: column;
}
a { text-decoration: none; }
main { flex: 1; display: flex; flex-direction: column; min-height: 0; }

/* NAV - 100px, sticky */
header { background: #000; height: 100px; z-index: 100; }
.header-inner { position: relative; display: flex; align-items: center; height: 100px; padding: 0 3rem; overflow: visible; }

/* Logo - absolute inside header, z-index above everything, touches top of header
   which is flush with top of window (just below the 7px html border) */
.logo-center {
  position: absolute; left: 50%; transform: translateX(-50%);
  top: -7px;
  z-index: 999;
  display: flex; align-items: flex-start; justify-content: center;
}
.logo-center img { height: 200px; width: auto; filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3)); }

.nav-left { display: flex; flex: 1; justify-content: flex-end; padding-right: 120px; gap: 2.5rem; align-items: center; }
.nav-right { display: flex; flex: 1; justify-content: flex-start; padding-left: 120px; gap: 2.5rem; align-items: center; }

.nav-left a, .nav-right a { color: #fff; font-family: 'ABeeZee', sans-serif; font-size: 1.15rem; white-space: nowrap; padding-bottom: 3px; border-bottom: 2px solid transparent; transition: border-color 0.2s; }
.nav-left a:hover, .nav-right a:hover { color: #fff; border-bottom-color: #009fdf; }
.nav-left a.active, .nav-right a.active { color: #fff; border-bottom-color: #009fdf; }

/* HERO */
.hero { flex: 1;
  background-color: #009fdf;
  background-image: url('/images/TapestryGBanner-4.svg');
  background-size: cover; background-position: top center; background-repeat: no-repeat;
  padding: 5rem 3rem 4rem; text-align: center;
  display: flex; align-items: center; justify-content: center; min-height: 260px;
}
.hero-content { position: relative; z-index: 1; width: 100%; }
.hero-sub { font-family: 'Poppins', sans-serif; font-size: 42px; font-weight: 400; color: #fff; margin-bottom: 0; display: block; }
.hero h1 { font-family: .Poppins., sans-serif; font-size: clamp(3.5rem, 9vw, 7rem); font-weight: 600; color: #fff; line-height: 1.1; }

/* CONTENT */
.content-section { padding: 4rem 3rem; background: #fff; }
.content-section h2 { font-family: 'Poppins', sans-serif; font-size: 2rem; font-weight: 800; margin-bottom: 1rem; color: #111; }
.content-section p { color: #333; margin-bottom: 1rem; font-size: 1rem; }

/* GAMES CTA */
.games-cta { background: rgb(0,159,223); padding: 5rem 3rem; text-align: center; display: flex; align-items: center; justify-content: center; min-height: 200px; }
.games-cta a { font-family: 'Poppins', sans-serif; font-size: clamp(3.5rem, 9vw, 6rem); font-weight: 900; color: #fff; letter-spacing: 0.04em; }
.games-cta a:hover { opacity: 0.85; }

/* GAMES PAGE */
.page-header { padding: 2.5rem 3rem 0; }
.page-header h1 { font-family: 'Poppins', sans-serif; font-size: 2rem; font-weight: 700; color: #111; }
.games-section { padding: 2rem 3rem 5rem; }
.games-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; margin-top: 2rem; }

.game-card { background: #b3e5fc; display: flex; flex-direction: column; overflow: hidden; transition: transform 0.2s, box-shadow 0.2s; }
.game-card:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(0,0,0,0.12); }
.game-card-image { width: 100%; aspect-ratio: 16/9; overflow: hidden; }
.game-card-image img { width: 100%; height: 100%; object-fit: cover; display: block; }
.game-card-body { padding: 1.4rem; display: flex; flex-direction: column; flex: 1; }
.game-title { font-family: 'Poppins', sans-serif; font-size: 1.15rem; font-weight: 700; color: #111; margin-bottom: 0.5rem; }
.game-desc { font-size: 0.95rem; color: #333; margin-bottom: 1.2rem; flex: 1; }
.game-play-btn { display: inline-block; background: #009fdf; color: #fff; font-family: 'Poppins', sans-serif; font-weight: 600; font-size: 0.8rem; letter-spacing: 0.08em; padding: 0.55rem 1.4rem; align-self: flex-start; transition: background 0.2s; }
.game-card:hover .game-play-btn { background: #007bb5; }

/* FOOTER - 170px, centred content, copyright left, to top centred */
footer { background: #000; height: 170px; display: flex; align-items: center; justify-content: center; position: relative; padding: 0 3rem; }
.footer-inner { width: 100%; display: flex; align-items: center; justify-content: center; position: relative; }
.footer-copy { color: #aaa; font-size: 0.85rem; position: absolute; left: 0; }
.footer-totop { color: #aaa; font-size: 0.85rem; display: flex; align-items: center; gap: 0.5rem; }
.footer-totop:hover { color: #009fdf; }
.totop-arrow { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; background: #009fdf; border-radius: 4px; color: #fff; font-size: 1.1rem; font-weight: 700; }

@media (max-width: 900px) {
  .games-grid { grid-template-columns: 1fr; }
  .logo-center img { height: 110px; }
  .nav-left { padding-right: 26%; gap: 1.2rem; }
  .nav-right { padding-left: 26%; gap: 1.2rem; }
  .nav-left a, .nav-right a { font-size: 0.85rem; }
  .hero, .content-section, .games-section, .page-header, footer { padding-left: 1.5rem; padding-right: 1.5rem; }
}
.footer-email { color: #aaa; font-size: 0.85rem; position: absolute; right: 0; }
.footer-email:hover { color: #009fdf; }

@media (max-width: 768px) {


  /* Intro heading - tighten line height */
  .content-section h2 {
    line-height: 1.1;
  }

  /* Footer - stack items vertically, centred */
  footer {
    height: auto;
    padding: 2rem 1.5rem;
  }
  .footer-inner {
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
  }
  .footer-copy {
    position: static;
  }
  .footer-email {
    position: static;
  }
  .footer-totop {
    position: static;
  }
}