/* ==========================================================================
   Our Living Earth — shared site styles (site.css)
   Owns: CSS variables, reset, base typography, fixed NAV (+scrolled state),
   mobile menu, canonical BUTTONS, and the FOOTER.
   Page-specific section styles live inline in each page.
   Fonts (add to each page <head>): Cormorant Garamond / Cinzel / Lato.
   ========================================================================== */

:root {
  --forest: #3a5233;
  --forest-light: #5a7a52;
  --terracotta: #c4622d;
  --terracotta-dark: #a85224;   /* hover for orange CTAs */
  --sand: #c9b08a;
  --cream: #f0ebe0;
  --off-white: #faf7f2;
  --dark: #1e2a1a;
  --text: #1e2a1a;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  background: var(--off-white);
  color: var(--text);
  font-family: 'Lato', sans-serif;
  font-weight: 400;
  line-height: 1.6;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4, h5, h6 { font-family: 'Cormorant Garamond', serif; font-weight: 400; }

/* ==========================================================================
   NAV  (fixed, cream bar; matches the site design language)
   ========================================================================== */
nav.site-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 8px 56px;
  background: rgba(250, 247, 242, 0.97);
  backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 rgba(58, 82, 51, 0.08);
  transition: box-shadow 0.4s, padding 0.3s;
}
nav.site-nav.scrolled { box-shadow: 0 2px 16px rgba(58, 82, 51, 0.12); padding: 6px 56px; }

.nav-logo { display: flex; align-items: center; text-decoration: none; }
.nav-logo img { height: 64px; width: auto; }

.nav-links { display: flex; align-items: center; gap: 36px; list-style: none; margin: 0; }
.nav-links a {
  font-family: 'Cinzel', serif; font-size: 14px; letter-spacing: 2px;
  color: var(--forest); text-decoration: none; transition: opacity 0.2s;
}
.nav-links a:hover { opacity: 0.6; }

/* Primary CTA in the nav — terracotta bg, WHITE text, darker-orange hover */
.nav-cta {
  color: #fff !important; background: var(--terracotta);
  padding: 11px 24px; border-radius: 2px;
  box-shadow: 0 2px 14px rgba(196, 98, 45, 0.22);
  transition: background 0.2s, transform 0.2s;
}
.nav-cta:hover { background: var(--terracotta-dark); transform: translateY(-1px); opacity: 1 !important; }

/* Hamburger */
.hamburger {
  display: none; flex-direction: column; gap: 5px;
  cursor: pointer; padding: 8px; background: none; border: none; z-index: 110;
}
.hamburger span {
  display: block; width: 24px; height: 2px;
  background: var(--forest); border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile dropdown menu */
.mobile-menu {
  display: none; position: fixed; top: 0; left: 0; right: 0;
  background: rgba(250, 247, 242, 0.98); backdrop-filter: blur(14px);
  z-index: 99; flex-direction: column; align-items: stretch;
  padding-top: 68px;
  box-shadow: 0 4px 24px rgba(58, 82, 51, 0.12);
  border-bottom: 1px solid rgba(58, 82, 51, 0.1);
}
.mobile-menu.open { display: flex; }
.mobile-menu a.mobile-menu-item {
  font-family: 'Cinzel', serif; font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--forest); text-decoration: none;
  padding: 16px 24px; border-bottom: 1px solid rgba(58, 82, 51, 0.07); display: block;
}
.mobile-menu a.mobile-menu-cta {
  font-family: 'Cinzel', serif; font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase;
  color: #fff !important; background: var(--terracotta);
  padding: 18px 24px; text-decoration: none; display: block; text-align: center;
}

@media (max-width: 900px) {
  nav.site-nav { padding: 8px 24px; }
  nav.site-nav.scrolled { padding: 6px 24px; }
  .nav-logo img { height: 48px; }
  .nav-links { display: none; }
  .hamburger { display: flex; }
}

/* ==========================================================================
   BUTTONS  (canonical). Every button keeps WHITE text in every state.
   ========================================================================== */
.btn {
  font-family: 'Cinzel', serif; font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase;
  padding: 16px 36px; border: none; border-radius: 2px; cursor: pointer;
  text-decoration: none; display: inline-flex; align-items: center; justify-content: center;
  line-height: 1; text-align: center; white-space: nowrap;
  transition: background 0.25s, border-color 0.25s, transform 0.2s;
}
/* Primary: orange bg, white text */
.btn-primary {
  background: var(--terracotta); color: #fff !important;
  box-shadow: 0 4px 24px rgba(196, 98, 45, 0.26);
}
.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active { background: var(--terracotta-dark); color: #fff !important; transform: translateY(-2px); }

/* Secondary: transparent outline, white text (used over dark imagery) */
.btn-secondary {
  background: transparent; color: #fff !important;
  border: 1.5px solid rgba(240, 235, 224, 0.45);
}
.btn-secondary:hover,
.btn-secondary:focus,
.btn-secondary:active {
  background: rgba(240, 235, 224, 0.10); border-color: rgba(240, 235, 224, 0.75);
  color: #fff !important; transform: translateY(-2px);
}

/* ==========================================================================
   Scroll reveal (progressive; content is visible without JS via .no-js guard
   applied in site.js — if JS is off, .reveal stays fully visible).
   ========================================================================== */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.9s ease, transform 0.9s ease; }
.js .reveal.visible { opacity: 1; transform: none; }
/* Stagger helpers for reveals inside one section */
.js .reveal-d1 { transition-delay: 0.15s; }
.js .reveal-d2 { transition-delay: 0.3s; }
.js .reveal-d3 { transition-delay: 0.45s; }

/* Keyboard focus ring (mouse clicks don't trigger :focus-visible) */
a:focus-visible,
button:focus-visible,
input:focus-visible,
.btn:focus-visible,
.nav-cta:focus-visible {
  outline: 2px solid var(--terracotta);
  outline-offset: 3px;
  border-radius: 2px;
}

/* Respect reduced-motion: no hero zoom, fade-ups, or scroll reveals */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .js .reveal { opacity: 1 !important; transform: none !important; }
}

/* ==========================================================================
   FOOTER  (shared, dark)
   ========================================================================== */
.site-footer {
  background: var(--dark);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding: 40px 60px;
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 20px;
}
.footer-links { display: flex; gap: 28px; list-style: none; margin: 0; flex-wrap: wrap; }
.footer-links a {
  font-family: 'Cinzel', serif; font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase;
  color: rgba(240, 235, 224, 0.5); text-decoration: none; transition: color 0.2s;
}
.footer-links a:hover { color: rgba(240, 235, 224, 0.9); }
.footer-copy {
  font-family: 'Cinzel', serif; font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase;
  color: rgba(240, 235, 224, 0.4);
}
@media (max-width: 640px) {
  .site-footer { flex-direction: column; text-align: center; padding: 32px 24px; }
}
