/* ============================================================
   VALLEY BEAR FARMS — BASE STYLESHEET
   ------------------------------------------------------------
   NOTE FOR REVIEW: The original VBF Source Code references
   `css/style.css` and `js/main.js` but those base files were NOT
   included in the provided source. This stylesheet reconstructs
   the global design system (tokens, header, nav, mobile menu,
   fade-in, CTA) from the class names, CSS variables, and values
   used in the source page's inline blog-specific styles so the
   page renders as a faithful, publish-ready match. Swap in the
   canonical VBF style.css before launch if one exists.
   ============================================================ */

/* ===== DESIGN TOKENS ===== */
:root {
  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans: 'Source Sans 3', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --orange: #d4753a;
  --orange-hover: #bd6430;

  --green-dark: #1e3a2b;
  --white: #ffffff;
  --cream: #faf6ee;
  --gray-bg: #f4f2ed;
  --gray-light: #e7e3db;

  --text-dark: #1f211e;
  --text-body: #474a47;
  --text-muted: #74786f;
}

/* ===== RESET / BASE ===== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--sans);
  font-weight: 400;
  color: var(--text-body);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: var(--orange); }
h1, h2, h3, h4 { margin: 0; }
p { margin: 0 0 1rem; }
ul { margin: 0; padding: 0; }

/* ===== FADE-IN ON SCROLL ===== */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.25,0.46,0.45,0.94);
  will-change: opacity, transform;
}
.fade-in.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .fade-in { opacity: 1 !important; transform: none !important; transition: none; }
  html { scroll-behavior: auto; }
}

/* ===== SITE HEADER ===== */
.site-header {
  position: sticky; top: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.1rem clamp(1.5rem, 6vw, 7rem);
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: padding 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.site-header.scrolled {
  padding-top: 0.75rem; padding-bottom: 0.75rem;
  box-shadow: 0 2px 20px rgba(0,0,0,0.07);
  border-bottom-color: var(--gray-light);
}
.header-logo { display: inline-flex; align-items: center; flex-shrink: 0; }
.header-logo img { height: 46px; width: auto; }

.header-nav { display: flex; align-items: center; gap: 2rem; }
.nav-link {
  font-family: var(--sans); font-size: 0.92rem; font-weight: 600;
  letter-spacing: 0.03em; color: var(--text-dark); text-decoration: none;
  transition: color 0.2s;
}
.nav-link:hover { color: var(--orange); }

/* dropdown */
.nav-dropdown { position: relative; }
.nav-dropdown-trigger {
  display: inline-flex; align-items: center; gap: 0.4rem;
  font-family: var(--sans); font-size: 0.92rem; font-weight: 600;
  letter-spacing: 0.03em; color: var(--text-dark);
  background: none; border: none; cursor: pointer; padding: 0;
  transition: color 0.2s;
}
.nav-dropdown-trigger:hover { color: var(--orange); }
.nav-dropdown-caret {
  width: 7px; height: 7px; border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor; transform: rotate(45deg) translateY(-2px);
  transition: transform 0.25s;
}
.nav-dropdown-trigger[aria-expanded="true"] .nav-dropdown-caret { transform: rotate(225deg) translateY(-2px); }
.nav-dropdown-menu {
  position: absolute; top: calc(100% + 0.85rem); left: 50%; transform: translateX(-50%) translateY(8px);
  min-width: 230px; background: var(--white);
  border: 1px solid var(--gray-light); border-radius: 10px;
  box-shadow: 0 12px 34px rgba(0,0,0,0.12);
  padding: 0.5rem; opacity: 0; visibility: hidden; transition: opacity 0.2s, transform 0.2s;
  display: flex; flex-direction: column;
}
.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown-trigger[aria-expanded="true"] + .nav-dropdown-menu {
  opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0);
}
.nav-dropdown-menu a {
  font-size: 0.9rem; font-weight: 500; color: var(--text-body);
  text-decoration: none; padding: 0.6rem 0.85rem; border-radius: 6px;
  transition: background 0.2s, color 0.2s;
}
.nav-dropdown-menu a:hover { background: var(--gray-bg); color: var(--orange); }

.header-cta {
  font-family: var(--sans); font-size: 0.82rem; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--white); background: var(--orange);
  padding: 0.7rem 1.5rem; border-radius: 4px; text-decoration: none;
  transition: background 0.25s, transform 0.25s; white-space: nowrap;
}
.header-cta:hover { background: var(--orange-hover); transform: translateY(-1px); }

/* hamburger */
.header-hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 6px; }
.header-hamburger span {
  width: 26px; height: 2px; background: var(--text-dark); border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

/* ===== MOBILE MENU ===== */
.mobile-menu-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.5);
  opacity: 0; visibility: hidden; transition: opacity 0.3s; z-index: 200;
}
.mobile-menu-overlay.open { opacity: 1; visibility: visible; }
.mobile-menu {
  position: fixed; top: 0; right: 0; height: 100%; width: min(86vw, 360px);
  background: var(--white); z-index: 210;
  transform: translateX(100%); transition: transform 0.35s cubic-bezier(0.4,0,0.2,1);
  box-shadow: -8px 0 30px rgba(0,0,0,0.15); overflow-y: auto;
}
.mobile-menu.open { transform: translateX(0); }
.mobile-menu-close {
  position: absolute; top: 1rem; right: 1.25rem;
  background: none; border: none; font-size: 2rem; line-height: 1;
  color: var(--text-dark); cursor: pointer;
}
.mobile-menu-inner { padding: 4.5rem 1.75rem 2rem; display: flex; flex-direction: column; }
.mobile-menu-section { margin-bottom: 1.75rem; }
.mobile-menu-label {
  font-family: var(--sans); font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.2em; text-transform: uppercase; color: var(--orange);
  margin-bottom: 0.85rem;
}
.mobile-menu-link {
  display: block; font-size: 1.02rem; font-weight: 500; color: var(--text-dark);
  text-decoration: none; padding: 0.55rem 0; border-bottom: 1px solid var(--gray-light);
}
.mobile-menu-link:hover { color: var(--orange); }
.mobile-menu-cta {
  margin-top: 1rem; text-align: center;
  font-family: var(--sans); font-size: 0.85rem; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--white); background: var(--orange);
  padding: 0.95rem 1.5rem; border-radius: 4px; text-decoration: none;
}
.mobile-menu-cta:hover { background: var(--orange-hover); }

/* ===== FINAL CTA ===== */
.final-cta {
  padding: clamp(4.5rem, 8vw, 7.5rem) clamp(1.5rem, 6vw, 7rem);
  background: var(--green-dark); text-align: center;
}
.final-cta-content { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; align-items: center; }
.final-cta-eyebrow {
  font-family: var(--sans); font-size: 0.78rem; font-weight: 700;
  letter-spacing: 0.2em; text-transform: uppercase; color: var(--orange);
  margin-bottom: 1.25rem;
}
.final-cta h2 {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(2.4rem, 5vw, 3.8rem); line-height: 1.08;
  color: var(--white); margin-bottom: 1.5rem;
}
.final-cta h2 em { font-style: italic; color: rgba(255,255,255,0.72); }
.final-cta-sub {
  font-size: clamp(1rem, 1.1vw, 1.1rem); color: rgba(255,255,255,0.74);
  line-height: 1.8; margin-bottom: 2.5rem;
}
.btn-cta-large {
  display: inline-flex; align-items: center;
  font-family: var(--sans); font-size: 0.92rem; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase;
  padding: 1.15rem 2.75rem; background: var(--orange); color: var(--white);
  border-radius: 40px; text-decoration: none;
  box-shadow: 0 6px 24px rgba(212,117,58,0.34);
  transition: background 0.25s, transform 0.25s, box-shadow 0.25s; min-height: 52px;
}
.btn-cta-large:hover {
  background: var(--orange-hover); transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(212,117,58,0.44);
}

/* ===== RESPONSIVE: HEADER ===== */
@media (max-width: 900px) {
  .header-nav { display: none; }
  .header-hamburger { display: flex; }
}
