/* =========================
   RESET
========================= */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  font-family: "Lato", sans-serif;
  overflow-x: hidden;
}

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

/* =========================
   HEADER / NAVIGATION
========================= */

.site-header {
  position: fixed;
  top: 0;
  width: 100%;
  background: #607d8b;
  z-index: 1000;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  color: #fff;
  text-decoration: none;
  font-size: 1.1rem;
  font-weight: 600;
  white-space: nowrap;
}

.nav-links {
  display: flex;
  gap: 1rem;
}

.nav-links a {
  color: #fff;
  text-decoration: none;
  font-size: 0.95rem;
  padding: 0.5rem 0.25rem;
}

.nav-links a:hover {
  text-decoration: underline;
}

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: none;
  border: none;
  cursor: pointer;
}

.nav-toggle span {
  width: 22px;
  height: 2px;
  background: #fff;
  display: block;
}

/* =========================
   MOBILE NAV
========================= */

@media (max-width: 768px) {

  .nav-toggle {
    display: flex;
  }

  .nav-links {
    position: absolute;
    top: 52px;
    left: 0;
    width: 100%;
    background: #ffffff;
    flex-direction: column;
    display: none;
    border-bottom: 1px solid #ddd;
  }

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

  .nav-links a {
    padding: 14px 20px;
    border-top: 1px solid #eee;
    color: #333;
  }

  .nav-links a:hover {
    background: #f1f1f1;
  }
}

/* Space for fixed header */
body {
  padding-top: 52px;
}

/* =========================
   HERO SECTION
========================= */

.hero {
  padding: 3rem 1rem;
  text-align: center;
}

.hero h1 {
  font-size: clamp(1.5rem, 4vw, 2.4rem);
  margin-bottom: 0.5rem;
}

.hero p {
  font-size: clamp(1rem, 3vw, 1.2rem);
  color: #555;
}

/* =========================
   CATEGORIES
========================= */

.categories {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  justify-content: center;
  padding: 1rem;
}

.categories a {
  padding: 0.5rem 0.9rem;
  background: #eceff1;
  border-radius: 20px;
  font-size: 0.9rem;
  text-decoration: none;
  color: #333;
  transition: 0.2s ease;
}

.categories a:hover {
  background: #607d8b;
  color: #fff;
}

/* =========================
   SLIDER
========================= */

.slider-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem;
}

.slide img {
  width: 100%;
  border-radius: 6px;
}

/* =========================
   GALLERY (Mobile First)
========================= */

.gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.7rem;
  padding: 1rem;
  max-width: 1400px;
  margin: 0 auto;
}

.gallery a {
  display: block;
  overflow: hidden;
  border-radius: 6px;
}

.gallery img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  transition: transform 0.25s ease;
}

.gallery a:hover img {
  transform: scale(1.05);
}

/* Tablet */
@media (min-width: 600px) {
  .gallery {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Desktop */
@media (min-width: 900px) {
  .gallery {
    grid-template-columns: repeat(4, 1fr);
  }

  .hero {
    padding: 4rem 1rem;
  }
}

/* =========================
   PAGINATION
========================= */

.pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin: 30px 0;
  flex-wrap: wrap;
}

.page-link {
  padding: 10px 16px;
  text-decoration: none;
  border: 1px solid #ccc;
  color: #333;
  border-radius: 4px;
  font-size: 14px;
  min-width: 36px;
  text-align: center;
}

.page-link:hover {
  background: #607d8b;
  color: #fff;
  border-color: #607d8b;
}

.page-link.active {
  background: #607d8b;
  color: #fff;
  border-color: #607d8b;
}

/* =========================
   FOOTER
========================= */

.site-footer {
  background: #333;
  color: #fff;
  text-align: center;
  padding: 2.5rem 1rem;
  margin-top: 3rem;
}

.site-footer .socials {
  margin-bottom: 1rem;
}

.site-footer .socials a {
  color: #fff;
  font-size: 1.4rem;
  margin: 0 0.5rem;
  transition: 0.3s;
}

.site-footer .socials a:hover {
  color: #607d8b;
}

.footer-links {
  margin-top: 1rem;
}

.footer-links a {
  color: #fff;
  text-decoration: none;
  margin: 0 10px;
  font-size: 0.9rem;
}

.footer-links a:hover {
  text-decoration: underline;
}
