/* Basic reset */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  min-height: 100vh;
  color: #222;
  background: #f7f7f7;
}

/* Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 56px;
  display: flex;
  align-items: center;
  padding: 0 1rem;
  border-bottom: 1px solid #e0e0e0;
  background: #ffffff;
  z-index: 1000;
}

.site-title {
  margin-left: 0.75rem;
  font-size: 1rem;
  font-weight: 600;
}

/* Hamburger button (top-left) */
.hamburger {
  width: 30px;
  height: 22px;
  border: none;
  background: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
}

.hamburger span {
  display: block;
  height: 3px;
  border-radius: 3px;
  background: #222;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

/* Hamburger animation (X state) */
.hamburger.is-active span:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
}

.hamburger.is-active span:nth-child(2) {
  opacity: 0;
}

.hamburger.is-active span:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
}

/* NAV: shared */
.site-nav {
  margin-left: auto;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 1.25rem;
}

.nav-links a {
  text-decoration: none;
  color: #444;
  font-size: 0.95rem;
  font-weight: 500;
  position: relative;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -3px;
  width: 0;
  height: 2px;
  background: #2e7d32;
  transition: width 0.2s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.nav-links a:hover {
  color: #111;
}

.nav-links a.active {
  color: #111;
}

/* Overlay for mobile nav */
.nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.3);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
  z-index: 900;
}

.nav-overlay.visible {
  opacity: 1;
  visibility: visible;
}

/* Main content spacing */
.page-content {
  padding-top: 56px;
}

/* Hero on home page */
.hero {
  height: 60vh;
  min-height: 320px;
  width: 100%;
  background-image: linear-gradient(
      rgba(0, 0, 0, 0.35),
      rgba(0, 0, 0, 0.4)
    ),
    url("images/hay-field.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-overlay {
  text-align: center;
  color: #ffffff;
  padding: 1rem 1.5rem;
}

.hero-overlay h1 {
  font-size: clamp(2.2rem, 5vw, 3rem);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.hero-overlay p {
  margin-top: 0.5rem;
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  opacity: 0.95;
}

/* Contact page */
.contact-section {
  max-width: 480px;
  margin: 3rem auto;
  background: #ffffff;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.06);
}

.contact-section h1 {
  margin-bottom: 1.5rem;
  font-size: 1.4rem;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.form-field label {
  font-size: 0.9rem;
  color: #555;
}

.form-field input,
.form-field textarea {
  padding: 0.6rem 0.75rem;
  border-radius: 4px;
  border: 1px solid #ccc;
  font: inherit;
  background: #fafafa;
}

.form-field input:focus,
.form-field textarea:focus {
  outline: none;
  border-color: #2e7d32;
  background: #fff;
}

.btn-primary {
  padding: 0.6rem 1.4rem;
  border-radius: 999px;
  border: none;
  background: #2e7d32;
  color: white;
  font-size: 0.95rem;
  cursor: pointer;
  align-self: flex-start;
  transition: background 0.2s ease, transform 0.1s ease;
}

.btn-primary:hover {
  background: #27662a;
}

.btn-primary:active {
  transform: scale(0.98);
}

/* Desktop layout */
@media (min-width: 769px) {
  .hamburger {
    display: none;
  }

  .nav-links {
    position: static;
    flex-direction: row;
    height: auto;
    background: transparent;
    transform: none;
    box-shadow: none;
  }

  .page-content {
    padding-top: 56px;
  }
}

/* Mobile: slide-out menu */
@media (max-width: 768px) {
  .site-header {
    justify-content: flex-start;
  }

  .site-title {
    margin-left: 0.75rem;
  }

  .nav-links {
    position: fixed;
    top: 56px;
    left: 0;
    height: calc(100vh - 56px);
    width: 220px;
    flex-direction: column;
    padding: 1.5rem 1rem;
    background: #ffffff;
    box-shadow: 3px 0 10px rgba(0, 0, 0, 0.1);
    transform: translateX(-100%);
    transition: transform 0.25s ease;
    z-index: 950;
  }

  .nav-links.nav-open {
    transform: translateX(0);
  }

  .nav-links li {
    margin-bottom: 0.5rem;
  }

  .page-content {
    padding-top: 56px;
  }
}
