/* ===========================
   GLOBAL BASE
=========================== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: Arial, sans-serif;
}

body {
  background: #ffffff;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* ===========================
   HEADER
=========================== */
header {
  position: sticky;
  top: 0;
  z-index: 10;
  width: 100%;
  background: black;
  display: flex;
  flex-direction: column;
  box-shadow: 0 3px 6px rgba(0,0,0,0.1);
}

.header-banner {
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
}

/* ===========================
   NAV BAR
=========================== */
.nav-container {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.25rem 1rem;
  background: #000;
  border-bottom: 2px solid #222;
}

.logo a {
  color: #FFD700;
  text-decoration: none;
  font-size: 1.2rem;
  font-weight: bold;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 1rem;
}

.nav-links a {
  color: #FFD700;
  text-decoration: none;
  font-weight: bold;
  font-size: 1rem;
}

/* ===========================
   HAMBURGER
=========================== */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 4px;
  cursor: pointer;
}

.hamburger div {
  width: 25px;
  height: 3px;
  background: #FFD700;
  border-radius: 2px;
}

/* ===========================
   3‑TILE GRID (ALL PAGES)
=========================== */
.three-col-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  width: 100%;
  margin: 40px auto;
}

.tile.square {
  background: #ffffff;
  border-radius: 8px;
  overflow: hidden;
  aspect-ratio: 1 / 1;
}

.tile-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tile-text {
  padding: 20px;
  text-align: center;
  color: #000;
  font-size: 18px;
  line-height: 1.4;
}

/* ===========================
   FOOTER
=========================== */
footer {
  text-align: center;
  padding: 1rem 0;
  background: #ffffff;
}

footer .footer-banner {
  width: 100%;
  height: auto;
  display: block;
}

footer .copyright {
  font-size: 0.85rem;
  color: #555;
}

/* ===========================
   MOBILE RULES
=========================== */
@media (max-width: 768px) {

  /* Header */
  .header-banner {
    max-height: 180px;
    object-fit: cover;
  }

  /* Grid becomes 1 column */
  .three-col-grid {
    grid-template-columns: 1fr;
    margin: 10px auto;
    gap: 20px;
  }

  /* Remove forced square tiles */
  .tile.square {
    aspect-ratio: auto;
    height: auto;
  }

  /* Mobile nav */
  .nav-links {
    position: absolute;
    top: 100%;
    right: 0;
    background: #000;
    flex-direction: column;
    width: 200px;
    display: none;
    padding: 1rem;
    border-radius: 0 0 0 8px;
    border: 1px solid #222;
    z-index: 20;
  }

  .nav-links.show {
    display: flex;
  }

  .hamburger {
    display: flex;
  }
}
