/* ============================================
   Boundary Line Fence — Shared Stylesheet
   Color Palette:
   Primary:   #2D5A27 (forest green)
   Secondary: #C9A227 (warm gold)
   Accent:    #1A3A17 (dark green)
   Neutral:   #F5F5F0 (warm off-white)
   Text:      #2C2C2C (charcoal)
   ============================================ */

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

html { scroll-behavior: smooth; }

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
  color: #2C2C2C;
  background: #F5F5F0;
  line-height: 1.65;
}

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

a { color: #2D5A27; text-decoration: none; }
a:hover { text-decoration: underline; }

/* ---------- Header & Nav ---------- */
.site-header {
  background: #1A3A17;
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 8px rgba(0,0,0,0.25);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.logo {
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo span { color: #C9A227; }

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

.nav-links a {
  color: #fff;
  font-weight: 500;
  font-size: 0.95rem;
  text-decoration: none;
  opacity: 0.9;
  transition: opacity 0.2s;
}

.nav-links a:hover,
.nav-links a.active { opacity: 1; color: #C9A227; }

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: #fff;
  font-size: 1.6rem;
  cursor: pointer;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 0.75rem 1.75rem;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.2s ease;
}

.btn-primary {
  background: #2D5A27;
  color: #fff;
  border-color: #2D5A27;
}

.btn-primary:hover {
  background: #1A3A17;
  border-color: #1A3A17;
  text-decoration: none;
}

.btn-secondary {
  background: #C9A227;
  color: #1A3A17;
  border-color: #C9A227;
}

.btn-secondary:hover {
  background: #b08d1f;
  border-color: #b08d1f;
  text-decoration: none;
}

.btn-outline {
  background: transparent;
  color: #fff;
  border-color: #fff;
}

.btn-outline:hover {
  background: #fff;
  color: #1A3A17;
  text-decoration: none;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 520px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  z-index: 0;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(26, 58, 23, 0.72);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  padding: 2rem 1.25rem;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 1rem;
  letter-spacing: -0.5px;
}

.hero p {
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  margin-bottom: 1.75rem;
  opacity: 0.95;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.hero-buttons { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ---------- Section Utilities ---------- */
.section {
  padding: 4rem 1.25rem;
  max-width: 1200px;
  margin: 0 auto;
}

.section-alt { background: #fff; }

.section-title {
  font-size: clamp(1.6rem, 3.5vw, 2.2rem);
  font-weight: 700;
  color: #1A3A17;
  margin-bottom: 0.5rem;
  text-align: center;
}

.section-subtitle {
  text-align: center;
  color: #555;
  max-width: 700px;
  margin: 0 auto 2.5rem;
  font-size: 1.05rem;
}

/* ---------- Cards / Grid ---------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.75rem;
}

.card {
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0,0,0,0.07);
  transition: transform 0.2s, box-shadow 0.2s;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}

.card img { width: 100%; height: 180px; object-fit: cover; }

.card-body { padding: 1.25rem; }

.card-body h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: #1A3A17;
  margin-bottom: 0.5rem;
}

.card-body p {
  font-size: 0.92rem;
  color: #444;
  line-height: 1.55;
}

/* ---------- Footer ---------- */
.site-footer {
  background: #1A3A17;
  color: #fff;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 3rem 1.25rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
}

.footer-col h4 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: #C9A227;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.footer-col p,
.footer-col a,
.footer-col li {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.85);
  line-height: 1.7;
}

.footer-col ul { list-style: none; }

.footer-col a:hover { color: #C9A227; text-decoration: none; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  text-align: center;
  padding: 1.25rem;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.6);
}

/* ---------- Mobile ---------- */
@media (max-width: 720px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 72px;
    left: 0; right: 0;
    background: #1A3A17;
    flex-direction: column;
    padding: 1rem 1.25rem;
    gap: 1rem;
    box-shadow: 0 4px 8px rgba(0,0,0,0.25);
  }
  .nav-links.open { display: flex; }
  .mobile-menu-btn { display: block; }
  .footer-inner { grid-template-columns: 1fr; }
}

/* ---------- Utility ---------- */
.text-center { text-align: center; }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
