/*
Theme Name: Goat Theme
Theme URI: https://example.com/goat-theme
Author: Your Name
Description: A simple responsive WordPress theme with a hamburger navigation menu.
Version: 1.0
Text Domain: goat-theme
*/

/* --- Reset and basics --- */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: system-ui, -apple-system, sans-serif;
  line-height: 1.6;
  color: #222;
  background: #fafafa;
}

a {
  text-decoration: none;
  color: inherit;
}

/* --- Header and navigation --- */
.site-header {
  background: #1e1e1e;
  color: #fff;
  padding: 0.8rem 1.5rem;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1100px;
  margin: 0 auto;
}

.site-title a {
  color: #fff;
  font-size: 1.3rem;
  font-weight: 700;
}

/* Desktop menu */
.main-navigation {
  display: flex;
}

.main-navigation ul {
  list-style: none;
  display: flex;
  gap: 1.5rem;
}

.main-navigation a {
  color: #ddd;
  padding: 0.4rem 0;
  transition: color 0.2s;
}

.main-navigation a:hover {
  color: #fff;
}

/* Hamburger button - hidden on desktop */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: #fff;
  font-size: 2rem;
  cursor: pointer;
  line-height: 1;
  padding: 0.2rem 0.5rem;
}

/* --- Responsive: below 768px --- */
@media (max-width: 768px) {
  .main-navigation {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #1e1e1e;
    padding: 1rem 1.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
  }

  /* Class added by JavaScript */
  .main-navigation.toggled {
    display: block;
  }

  .main-navigation ul {
    flex-direction: column;
    gap: 0.8rem;
  }

  .menu-toggle {
    display: block;
  }
}

/* --- Content and footer --- */
.site-content {
  max-width: 1100px;
  margin: 2rem auto;
  padding: 0 1.5rem;
}

.site-footer {
  text-align: center;
  padding: 1.5rem;
  background: #1e1e1e;
  color: #aaa;
  font-size: 0.9rem;
}
