/* =======================
   BASE STYLES
   ======================= */

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

html {
  scroll-behavior: smooth; /* modern browser support */
}

body {
  font-family: "Segoe UI", system-ui, Roboto, Arial, sans-serif;
  color: #333;
  background-color: #fafafa;
  line-height: 1.6;
}

/* Container */
.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

/* =======================
   COLOR VARIABLES
   ======================= */
:root {
  --green: #2e7d32;
  --green-dark: #256b29;
  --gold: #f5c542;
  --gold-soft: #f5d96c;
  --text: #2a2a2a;
}

/* =======================
   TYPOGRAPHY & UTILITIES
   ======================= */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  color: var(--green);
}

.text-center { text-align: center; }
.hidden { display: none !important; }

/* =======================
   BUTTONS
   ======================= */
.btn-primary,
.btn-secondary {
  display: inline-block;
  padding: 12px 30px;
  border-radius: 6px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: 0.3s;
  text-decoration: none;
}

.btn-primary {
  background: var(--gold);
  color: var(--text);
}
.btn-primary:hover { background: #ffe066; }

.btn-secondary {
  background: var(--green);
  color: #fff;
}
.btn-secondary:hover { background: var(--green-dark); }

/* =======================
   HEADER
   ======================= */
.site-header {
  background: #fff;
  border-bottom: 1px solid #e9e9e9;
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-flex {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
}

.logo-banner { height: 56px; }
.logo-icon { height: 40px; width: 40px; }
.farm-name { font-weight: 700; font-size: 1.05rem; }

/* Navigation */
.nav ul {
  list-style: none;
  display: flex;
  gap: 18px;
}

.nav a {
  text-decoration: none;
  color: var(--text);
  font-weight: 600;
  padding: 8px 10px;
  border-radius: 6px;
  transition: 0.3s;
}
.nav a:hover {
  color: var(--green-dark);
  background: #f6f6f6;
}

/* ===== MOBILE MENU ===== */
.desktop-logo { display: block; }
.mobile-logo { display: none; }
.menu-btn {
  display: none;
  font-size: 1.6rem;
  background: transparent;
  border: none;
  cursor: pointer;
}

@media (max-width: 900px) {
  .desktop-logo { display: none; }
  .mobile-logo { display: flex; align-items: center; }
  .menu-btn { display: inline-block; }

  .nav {
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: #fff;
    border-top: 1px solid #eee;
    display: none;
    padding: 12px 0;
  }
  .nav.show { display: block; }
  .nav ul { flex-direction: column; gap: 6px; }
  .nav a { display: block; padding: 12px 16px; }
}

/* =======================
   HERO (GLOBAL TRANSPARENT BOX)
   ======================= */
/* ===== UNIFIED HERO STYLE (ALL PAGES) ===== */
.page-hero {
  position: relative;
  background-size: cover;
  background-position: center;
  height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  overflow: hidden;
}

/* Darken all banner images slightly */
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.35); /* uniform darkness for better contrast */
  z-index: 1;
}

/* Transparent overlay box (text container) */
.hero-overlay {
  position: relative;
  z-index: 2;
  background: rgba(0, 0, 0, 0.45);
  padding: 30px 40px;
  border-radius: 12px;
  width: auto;             /* allow full width of text */
  max-width: 95%;          /* prevent overflow on small screens */
  display: inline-block;   /* fit to text width */
  white-space: nowrap;     /* prevent line break in heading */
}

/* Headings and paragraph inside hero */
.hero-overlay h1,
.hero-overlay h2 {
  font-size: 2.5rem;
  margin-bottom: 12px;
  color: #d7ac2e; /* gold heading */
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.4);
}
.hero-overlay p {
  font-size: 1.1rem;
  color: #c6f6c6; /* soft green subtext */
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

/* Responsive scaling */
@media (max-width: 768px) {
  .hero-overlay {
    white-space: normal; /* allow wrapping on mobile */
    width: 90%;
  }
  .hero-overlay h1,
  .hero-overlay h2 {
    font-size: 2rem;
  }
  .hero-overlay p {
    font-size: 1rem;
  }
}

/* =======================
   FOOTER
   ======================= */
.site-footer {
  background: var(--green);
  color: #fff;
  text-align: center;
  padding: 25px 0;
  font-size: 0.95rem;
  margin-top: 60px;
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  justify-content: center;
}

.footer-links a {
  color: #ffe066;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}
.footer-links a:hover { text-decoration: underline; }

.social-icons {
  display: flex;
  gap: 15px;
  font-size: 1.2rem;
}
.social-icons a {
  color: #fff;
  transition: color 0.3s ease;
}
.social-icons a:hover { color: #ffe066; }
