/* Shared base styles for Wellness with Verity
   Used by index.html and recipes.html — palette, reset, nav, footer, animations. */

/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', sans-serif;
  color: #2d3436;
  background: #fefefe;
  overflow-x: hidden;
  line-height: 1.6;
}


/* ===== COLOUR PALETTE (matched to Hope & Sauté) ===== */
:root {
  --mint: #c8e6d0;
  --mint-light: #e8f5ec;
  --sage: #81B29A;
  --sage-dark: #5a8a6f;
  --terracotta: #E07A5F;
  --terracotta-dark: #c4603f;
  --gold: #F2CC8F;
  --navy: #2d3436;
  --cream: #fdf8f3;
  --white: #ffffff;
  --text: #2d3436;
  --text-light: #636e72;
}


/* ===== NAVIGATION ===== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 1rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  transition: box-shadow 0.3s, padding 0.3s;
}
.nav.scrolled {
  padding: 0.6rem 2rem;
  box-shadow: 0 2px 30px rgba(0,0,0,0.08);
}
.nav-brand {
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--navy);
  text-decoration: none;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}
.nav-links a {
  text-decoration: none;
  color: var(--text-light);
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.3s;
  position: relative;
}
.nav-links a:hover { color: var(--sage-dark); }
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--sage);
  transition: width 0.3s;
}
.nav-links a:hover::after { width: 100%; }

/* Recipes: a highlighted pill so it stands out from the other nav items.
   Terracotta matches the "View Packages" .btn-primary on the homepage.
   Selectors are prefixed with .nav to outrank `.nav-links a.active` in
   recipes.css, which loads after this file and would otherwise win. */
.nav .nav-links a.nav-recipes {
  display: inline-block;
  background: var(--terracotta);
  color: #fff;
  padding: 0.5rem 1.15rem;
  border-radius: 50px;
  font-weight: 600;
  transition: background 0.3s, transform 0.3s, box-shadow 0.3s;
}
.nav .nav-links a.nav-recipes:hover {
  background: var(--terracotta-dark);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(224,122,95,0.3);
}
/* The pill is its own indicator, so suppress the sliding underline. */
.nav .nav-links a.nav-recipes::after { display: none; }
.nav-cta {
  background: var(--sage);
  color: white;
  padding: 0.6rem 1.4rem;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.85rem;
  transition: transform 0.3s, background 0.3s;
}
.nav-cta:hover { background: var(--sage-dark); transform: translateY(-2px); }
.mobile-toggle {
  display: none;
  font-size: 1.5rem;
  cursor: pointer;
  background: none;
  border: none;
  color: var(--navy);
}


/* ===== SITE FOOTER (shared by recipes.html and 404.html) ===== */
.site-footer { background: var(--navy); color: rgba(255,255,255,0.85); text-align: center; padding: 2.5rem 5%; }
.site-footer .brand { font-family: 'Playfair Display', serif; font-size: 1.3rem; color: #fff; margin-bottom: 0.5rem; }
.site-footer a { color: var(--gold); text-decoration: none; }
.site-footer .small { font-size: 0.8rem; opacity: 0.7; margin-top: 0.8rem; }


/* ===== FOOTER ===== */
.footer {
  padding: 3rem 5%;
  text-align: center;
  background: var(--navy);
  color: rgba(255,255,255,0.6);
}
.footer-socials {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}
.footer-socials a {
  color: rgba(255,255,255,0.6);
  font-size: 1.3rem;
  transition: color 0.3s, transform 0.3s;
}
.footer-socials a:hover { color: var(--sage); transform: translateY(-3px); }
.footer p { font-size: 0.85rem; }


/* ===== RESPONSIVE NAV (shared) =====
   These live here rather than in index.css so every page that uses the nav
   shell gets a working mobile menu. Without them the links stay inline and
   the hamburger never appears. */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-cta { display: none; }
  .mobile-toggle { display: block; }
  .nav-links.open {
    display: flex; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0;
    background: #fff; padding: 1.2rem 2rem; gap: 1.1rem; box-shadow: 0 8px 30px rgba(45,52,54,0.08);
  }
}


/* ===== ANIMATIONS ===== */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
