/* ============================================================
   VALLEY BEAR FARMS — BASE STYLESHEET
   ============================================================
   NOTE FOR REVIEW: The original Blog 5 Source Code referenced an
   external css/style.css and js/main.js that were not included in
   the source folder (only the HTML markup was provided). This file
   reconstructs the shared design system — color tokens, typography,
   header/nav, mobile menu, vanish/why section, final CTA, footer,
   and shared animations — from the class names and design tokens
   used throughout the source markup. Token values are matched to
   the rgba() colors found in the source's inline styles.
   ============================================================ */

/* ===== DESIGN TOKENS ===== */
:root {
  --serif: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --sans: 'Source Sans 3', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --orange: #d4753a;
  --orange-hover: #bd6430;

  --green-dark: #16301f;

  --white: #ffffff;
  --cream: #f7f2e9;
  --gray-bg: #f4f2ed;
  --gray-light: #e6e2da;

  --text-dark: #1f2620;
  --text-body: #45484a;
  --text-muted: #74766f;
}

/* ===== 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;
  -moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; }
h1, h2, h3, h4, p, ul { margin: 0; }
ul { padding: 0; }
a { color: inherit; }
strong { font-weight: 600; color: var(--text-dark); }

/* ===== HEADER ===== */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem clamp(1.5rem, 6vw, 7rem);
  background: rgba(13, 26, 17, 0.18);
  backdrop-filter: blur(6px);
  transition: background 0.35s ease, box-shadow 0.35s ease, padding 0.35s ease;
}
.site-header.scrolled {
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 2px 18px rgba(0, 0, 0, 0.08);
  padding-top: 0.8rem;
  padding-bottom: 0.8rem;
}
.header-logo { display: inline-flex; align-items: center; text-decoration: none; }
.header-logo img { height: 46px; width: auto; display: block; }
/* Text-logo fallback (vbf-logo.png was not provided in source assets) */
.header-logo-text {
  font-family: var(--serif);
  font-size: 1.45rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.05;
  color: var(--white);
  text-decoration: none;
  transition: color 0.35s ease;
}
.header-logo-text span {
  display: block;
  font-family: var(--sans);
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  opacity: 0.8;
}
.site-header.scrolled .header-logo-text { color: var(--green-dark); }

.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.04em;
  color: rgba(255, 255, 255, 0.92);
  text-decoration: none;
  transition: color 0.25s ease;
}
.site-header.scrolled .nav-link { color: var(--text-dark); }
.nav-link:hover { color: var(--orange); }

.header-cta {
  font-family: var(--sans);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--white);
  background: var(--orange);
  padding: 0.7rem 1.6rem;
  border-radius: 4px;
  text-decoration: none;
  transition: background 0.25s ease, transform 0.25s ease;
}
.header-cta:hover { background: var(--orange-hover); transform: translateY(-1px); }

/* ===== NAV 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.04em;
  color: rgba(255, 255, 255, 0.92);
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  transition: color 0.25s ease;
}
.site-header.scrolled .nav-dropdown-trigger { color: var(--text-dark); }
.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 ease;
}
.nav-dropdown-trigger[aria-expanded="true"] .nav-dropdown-caret {
  transform: rotate(-135deg) translateY(-1px);
}
.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 0.9rem);
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  min-width: 240px;
  background: var(--white);
  border-radius: 8px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.16);
  padding: 0.6rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s;
}
.nav-dropdown-menu::before {
  content: '';
  position: absolute;
  bottom: 100%;
  left: 0; right: 0;
  height: 0.9rem;
}
.nav-dropdown.open .nav-dropdown-menu,
.nav-dropdown:hover .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}
.nav-dropdown-menu a {
  display: block;
  font-family: var(--sans);
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-body);
  text-decoration: none;
  padding: 0.6rem 0.85rem;
  border-radius: 5px;
  transition: background 0.2s ease, color 0.2s ease;
}
.nav-dropdown-menu a:hover { background: var(--cream); color: var(--orange); }

/* ===== HAMBURGER ===== */
.header-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 30px; height: 30px;
  cursor: pointer;
}
.header-hamburger span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--white);
  border-radius: 2px;
  transition: background 0.35s ease;
}
.site-header.scrolled .header-hamburger span { background: var(--text-dark); }

/* ===== MOBILE MENU ===== */
.mobile-menu-overlay {
  position: fixed;
  inset: 0;
  background: rgba(8, 16, 11, 0.55);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s;
  z-index: 200;
}
.mobile-menu-overlay.active { opacity: 1; visibility: visible; }
.mobile-menu {
  position: fixed;
  top: 0; right: 0;
  height: 100%;
  width: min(86vw, 360px);
  background: var(--white);
  box-shadow: -8px 0 40px rgba(0, 0, 0, 0.18);
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 210;
  overflow-y: auto;
}
.mobile-menu.active { 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 2rem 2.5rem; }
.mobile-menu-section { margin-bottom: 2rem; }
.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.9rem;
}
.mobile-menu-link {
  display: block;
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 500;
  color: var(--text-dark);
  text-decoration: none;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--gray-light);
  transition: color 0.2s ease;
}
.mobile-menu-link:hover { color: var(--orange); }
.mobile-menu-cta {
  display: block;
  text-align: center;
  font-family: var(--sans);
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--white);
  background: var(--orange);
  padding: 1rem;
  border-radius: 4px;
  text-decoration: none;
  margin-top: 1rem;
  transition: background 0.25s ease;
}
.mobile-menu-cta:hover { background: var(--orange-hover); }

/* ===== FADE-IN ANIMATION ===== */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  .fade-in { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ===== "VANISH" / WHY SECTION (two-column with at-a-glance) ===== */
.vanish {
  padding: clamp(4rem, 7vw, 6.5rem) clamp(1.5rem, 6vw, 7rem);
  background: var(--white);
}
.vanish-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: clamp(3rem, 6vw, 5.5rem);
  align-items: start;
}
.vanish-inner h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  color: var(--text-dark);
  line-height: 1.1;
  margin-bottom: 1.5rem;
}
.vanish-inner h2 em { font-style: italic; color: var(--green-dark); }
.vanish-body {
  font-size: clamp(1rem, 1.1vw, 1.1rem);
  color: var(--text-body);
  line-height: 1.8;
  margin-bottom: 1.5rem;
}
.vanish-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.05rem, 1.3vw, 1.25rem);
  color: var(--green-dark);
  text-decoration: none;
  margin-top: 0.75rem;
  padding-bottom: 0.35rem;
  border-bottom: 1px solid rgba(22, 48, 31, 0.3);
  transition: gap 0.3s ease, color 0.25s ease, border-color 0.25s ease;
}
.vanish-cta:hover { gap: 1.1rem; color: var(--orange); border-bottom-color: var(--orange); }
.vanish-cta svg { width: 20px; height: 20px; transition: transform 0.3s ease; }
.vanish-cta:hover svg { transform: translateX(4px); }

.at-a-glance {
  background: var(--green-dark);
  border-radius: 12px;
  padding: 2rem 2rem 2.25rem;
  position: sticky;
  top: 6rem;
}
.at-a-glance-title {
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--orange);
  padding-bottom: 1rem;
  margin-bottom: 0.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}
.glance-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding: 0.7rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.glance-label {
  font-family: var(--sans);
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.62);
}
.glance-value {
  font-family: var(--serif);
  font-size: 1.05rem;
  color: var(--white);
  text-align: right;
}
.glance-value.highlight { color: var(--orange); font-style: italic; }

/* ===== FINAL CTA ===== */
.final-cta {
  position: relative;
  padding: clamp(5rem, 9vw, 8rem) clamp(1.5rem, 6vw, 7rem);
  background: var(--green-dark);
  text-align: center;
  overflow: hidden;
}
.final-cta-content {
  position: relative;
  z-index: 1;
  max-width: 760px;
  margin: 0 auto;
}
.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, 4rem);
  color: var(--white);
  line-height: 1.08;
  margin-bottom: 1.5rem;
}
.final-cta h2 em { font-style: italic; color: rgba(255, 255, 255, 0.72); }
.final-cta-sub {
  font-family: var(--sans);
  font-size: clamp(1rem, 1.15vw, 1.1rem);
  color: rgba(255, 255, 255, 0.74);
  line-height: 1.85;
  margin-bottom: 2.5rem;
}
.btn-cta-large {
  display: inline-flex;
  align-items: center;
  font-family: var(--sans);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--white);
  background: var(--orange);
  padding: 1.15rem 3rem;
  border-radius: 40px;
  text-decoration: none;
  box-shadow: 0 6px 26px rgba(212, 117, 58, 0.36);
  transition: background 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
  min-height: 54px;
}
.btn-cta-large:hover {
  background: var(--orange-hover);
  transform: translateY(-2px);
  box-shadow: 0 9px 34px rgba(212, 117, 58, 0.46);
}

/* ===== FOOTER ===== */
.site-footer {
  position: relative;
  padding: clamp(4rem, 7vw, 6rem) clamp(1.5rem, 6vw, 7rem) 2.5rem;
  background: #0d1f14;
  color: rgba(255, 255, 255, 0.7);
  overflow: hidden;
}
.site-footer-bg {
  position: absolute;
  inset: 0;
  background-image: url('../images/hero-and-footer.webp');
  background-size: cover;
  background-position: center;
  opacity: 0.16;
}
.site-footer-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(13, 31, 20, 0.85), rgba(13, 31, 20, 0.95));
}
.site-footer-inner {
  position: relative;
  z-index: 1;
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 3rem;
}
.footer-brand-name {
  font-family: var(--serif);
  font-size: 1.7rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 0.75rem;
}
.footer-brand-name span {
  display: block;
  font-family: var(--sans);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  opacity: 0.7;
}
.footer-tagline {
  font-size: 0.95rem;
  line-height: 1.7;
  max-width: 340px;
  color: rgba(255, 255, 255, 0.62);
}
.footer-col-title {
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 1.1rem;
}
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 0.7rem; }
.footer-links a {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: color 0.2s ease;
}
.footer-links a:hover { color: var(--orange); }
.site-footer-bottom {
  position: relative;
  z-index: 1;
  max-width: 1280px;
  margin: 3rem auto 0;
  padding-top: 1.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.5);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .vanish-inner { grid-template-columns: 1fr; }
  .at-a-glance { position: static; }
  .site-footer-inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 880px) {
  .header-nav { display: none; }
  .header-hamburger { display: flex; }
}
@media (max-width: 768px) {
  .site-footer-inner { grid-template-columns: 1fr; gap: 2.25rem; }
  .site-footer-bottom { flex-direction: column; text-align: center; }
}
