/* =====================================================================
   COLORS & BASICS — change these to re-theme the whole site
   ===================================================================== */
:root {
  --navy: #1d1b3a;        /* dark outline color from the logo */
  --orange: #ff7a3d;      /* squid orange */
  --coral: #f2545b;       /* squid spots */
  --yellow: #ffc94a;      /* "Squidnie" letters */
  --blue: #2bb3e6;        /* water splashes */
  --sky: #e8f7fd;         /* light blue background */
  --white: #ffffff;
  --text: #2a2846;
  --radius: 18px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Fredoka", "Trebuchet MS", system-ui, sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
}

img { max-width: 100%; height: auto; display: block; }

.container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Offset so section headings aren't hidden under the sticky navbar */
section { scroll-margin-top: 70px; }

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

h2 {
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  color: var(--navy);
  text-align: center;
  margin-bottom: 32px;
}

/* =====================================================================
   NAVIGATION BAR
   ===================================================================== */
.navbar {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--navy);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
}

.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 10px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--yellow);
  font-weight: 700;
  font-size: 1.25rem;
  text-decoration: none;
  white-space: nowrap;
}

.brand img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--white);
}

.brand-sub { color: var(--white); font-weight: 500; }

.nav-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-links a,
.dropdown summary {
  display: block;
  padding: 8px 14px;
  border-radius: 999px;
  color: var(--white);
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
}

.nav-links a:hover,
.dropdown summary:hover,
.dropdown[open] summary {
  background: rgba(255, 255, 255, 0.12);
  color: var(--yellow);
}

/* --- Games dropdown --- */
.dropdown { position: relative; }

.dropdown summary {
  list-style: none;          /* hide the default triangle */
}
.dropdown summary::-webkit-details-marker { display: none; }

.dropdown summary::after {   /* small arrow after "Games" */
  content: " \25BE";
  font-size: 0.8em;
}

.dropdown-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  min-width: 200px;
  padding: 8px;
  background: var(--white);
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.dropdown-menu a,
.dropdown-menu .soon {
  display: block;
  padding: 10px 12px;
  border-radius: 8px;
  color: var(--navy);
}

.dropdown-menu a:hover { background: var(--sky); color: var(--navy); }

.dropdown-menu .soon { color: #8a88a3; cursor: default; }

.dropdown-menu .soon em {
  font-style: normal;
  font-size: 0.75rem;
  margin-left: 6px;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--yellow);
  color: var(--navy);
}

/* =====================================================================
   HOME / HERO SECTION
   ===================================================================== */
.hero {
  position: relative;
  background: var(--white);   /* matches the logo's white background */
  text-align: center;
  padding: 32px 20px 110px;
}

.hero-inner { max-width: 640px; margin: 0 auto; }

.hero-logo {
  width: min(420px, 85vw);
  margin: 0 auto 8px;
  mix-blend-mode: multiply;   /* blends the logo's off-white edges into the page */
}

.hero h1 {
  font-size: clamp(2rem, 6vw, 3.2rem);
  color: var(--navy);
}

.tagline {
  font-size: clamp(1.05rem, 2.5vw, 1.3rem);
  margin: 0 0 28px;
}

.button {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 999px;
  background: var(--orange);
  color: var(--white);
  font-weight: 600;
  font-size: 1.1rem;
  text-decoration: none;
  box-shadow: 0 5px 0 var(--coral);
  transition: transform 0.1s, box-shadow 0.1s;
}

.button:hover { transform: translateY(2px); box-shadow: 0 3px 0 var(--coral); }

.wave {
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 100%;
  height: 80px;
  fill: var(--sky);
}

/* =====================================================================
   GAMES SECTION
   ===================================================================== */
.games {
  background: var(--sky);
  padding: 40px 0 80px;
}

.game-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  max-width: 360px;           /* widen this when you have more games */
  margin: 0 auto;
}

.game-card {
  position: relative;
  background: var(--white);
  border: 3px solid var(--navy);
  border-radius: var(--radius);
  padding: 28px 24px;
  text-align: center;
  box-shadow: 0 6px 0 var(--navy);
}

.game-card h3 { font-size: 1.6rem; color: var(--orange); }
.game-card p { margin: 0; }

.badge {
  display: inline-block;
  margin-bottom: 12px;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--yellow);
  color: var(--navy);
  font-size: 0.85rem;
  font-weight: 600;
}

/* =====================================================================
   ABOUT SECTION
   ===================================================================== */
.about {
  background: var(--white);
  padding: 80px 0;
  text-align: center;
}

.about p {
  font-size: 1.25rem;
  max-width: 600px;
  margin: 0 auto;
}

/* =====================================================================
   FOOTER
   ===================================================================== */
.footer {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.8);
  text-align: center;
  padding: 24px 20px;
}

.footer p { margin: 0; }

/* =====================================================================
   PHONE LAYOUT (screens narrower than 560px)
   ===================================================================== */
@media (max-width: 560px) {
  .nav-inner { padding: 8px 12px; }
  .brand { font-size: 1.1rem; }
  .brand-sub { display: none; }        /* show just "Squidnie" on phones */
  .brand img { width: 34px; height: 34px; }
  .nav-links a,
  .dropdown summary { padding: 8px 10px; }
  .hero { padding-bottom: 90px; }
}
