/* Import Google Fonts in your HTML <head>:
<link href="https://fonts.googleapis.com/css2?family=Raleway&family=Roboto&display=swap" rel="stylesheet">
*/

/* Base Typography */
body {
  font-family: 'Raleway', sans-serif;
  color: #333333;
  background-color: #ffffff;
  font-size: 16px;
  line-height: 1.6;
  margin: 0;
  padding: 0;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Roboto', sans-serif;
}

/* Layout */
.site-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

/* Header */
.site-header {
  text-align: center;
  padding: 2rem 1rem;
  background-color: #f8f8f8;
}

.logo-title-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

.site-logo {
  height: 60px;
  width: auto;
  display: block;
}

.site-title {
  margin: 0;
  font-size: 2rem;
}

.site-header a,
.site-title a {
  text-decoration: none;
  color: inherit;
}

/* Navigation */
.site-nav {
  background-color: #eef3ed;
  padding: 1rem 0;
  overflow: visible;
}

.site-nav ul {
  list-style: none;
  padding: 0;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.site-nav li {
  margin: 0;
  position: relative;
}

.site-nav a {
  text-decoration: none;
  color: #4b6f4a;
  font-weight: bold;
  padding: 0.5rem 1rem;
  transition: background-color 0.3s, color 0.3s;
  display: block;
  white-space: nowrap;
}

.site-nav a:hover {
  background-color: #dcebd9;
  border-radius: 5px;
}

/* Dropdown Navigation */
.site-nav .sub-menu {
  display: none;
  position: absolute;
  background: #fff;
  padding: 0.5rem 0;
  border: 1px solid #ccc;
  border-radius: 5px;
  top: 100%;
  left: 0;
  z-index: 10;
  min-width: 160px;
}

.site-nav .sub-menu li {
  display: block;
  margin: 0;
}

.site-nav .sub-menu a {
  padding: 0.5rem 1rem;
  display: block;
  white-space: nowrap;
}

.site-nav li.has-children:hover > .sub-menu {
  display: block;
}

/* Categories */
.categories-grid {
  background-color: #fdfdfd;
  padding: 2rem;
  border-radius: 8px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin: 2rem 0;
}

.category-card {
  text-align: center;
  border: 1px solid #ddd;
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  min-width: 250px;
  flex-shrink: 0;
}

.category-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.category-card img {
  width: 100%;
  height: auto;
  display: block;
  border-bottom: 1px solid #eee;
  border-radius: 10px 10px 0 0;
}

.category-card h2 {
  font-size: 1.2rem;
  margin: 1rem 0;
  color: #333;
  padding: 0 1rem;
  overflow-wrap: break-word;
}

/* Footer */
.site-footer {
  text-align: center;
  padding: 2rem 1rem;
  font-size: 0.9rem;
  color: #333;
  background-color: #f0f0f0;
}

.footer-columns {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
}

.footer-column {
  flex: 1 1 30%;
  margin: 1rem 0;
}

.footer-column h4 {
  font-family: 'Roboto', sans-serif;
  margin-bottom: 1rem;
  color: #4b6f4a;
}

.footer-column ul {
  list-style: none;
  padding: 0;
}

.footer-column ul li {
  margin-bottom: 0.5rem;
}

.footer-column ul li a {
  color: #333;
  text-decoration: none;
}

.footer-column ul li a:hover {
  text-decoration: underline;
}

.footer-bottom {
  text-align: center;
  margin-top: 2rem;
  color: #666;
  font-size: 0.8rem;
}

/* Images */
img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
}

/* Responsive Enhancements */
@media (max-width: 768px) {
  .site-nav {
    overflow-x: auto;
    white-space: nowrap;
  }

  .site-nav ul {
    flex-direction: row;
    flex-wrap: nowrap;
    overflow-x: auto;
    justify-content: flex-start;
    gap: 1rem;
  }

  .site-nav li {
    flex: 0 0 auto;
    position: relative;
  }

  .site-nav li.has-children > a::after {
    content: " ▾";
    font-size: 0.8rem;
    margin-left: 5px;
  }

  .site-nav .sub-menu {
    position: static;
    display: none;
    padding-left: 1rem;
    background: transparent;
    border: none;
    box-shadow: none;
  }

  .site-nav li.has-children.open > .sub-menu {
    display: block;
  }

  .site-logo {
    height: 45px;
  }

  .site-title {
    font-size: 1.5rem;
  }

  .site-content {
    padding: 1rem;
  }

  .logo-title-wrapper {
    flex-direction: column;
  }

  .categories-grid {
    display: flex;
    overflow-x: auto;
    gap: 1rem;
    padding: 1rem;
    scroll-snap-type: x mandatory;
  }

  .category-card {
    flex: 0 0 auto;
    scroll-snap-align: start;
  }
}

