/*
Theme Name: Hella Vegan Eats
Theme URI: https://hellaveganeats.com/
Author: Hella Vegan Eats
Author URI: https://hellaveganeats.com/
Description: A modern, recipe-first theme for Hella Vegan Eats. Built to work with Elementor Pro (via elementor_theme_do_location header/footer support), tuned for Core Web Vitals, and structured for recipe SEO. Includes homepage sections for recipe rails, a collection filter, a KDP book promotion, and newsletter capture, all editable from the Customizer.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: hella-vegan-eats
*/

/* =========================================================
   0. Custom Properties & Reset
   ========================================================= */
:root {
  --hve-bg: #FAF6EF;
  --hve-surface: #FFFFFF;
  --hve-panel: #F2EDE0;
  --hve-text: #22251F;
  --hve-text-muted: #5B5D52;
  --hve-border: #E7E1D3;
  --hve-accent: #3F6B4F;
  --hve-accent-dark: #2E5039;
  --hve-terracotta: #C1653C;
  --hve-terracotta-bg: #F5E7DC;
  --hve-green-bg: #E4EBE1;
  --hve-footer-bg: #22251F;
  --hve-footer-text: #D8D4C4;
  --hve-footer-muted: #A9A599;
  --hve-font-display: 'Instrument Serif', Georgia, 'Times New Roman', serif;
  --hve-font-body: 'Karla', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --hve-radius: 6px;
  --hve-max: 1200px;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--hve-bg);
  color: var(--hve-text);
  font-family: var(--hve-font-body);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3 {
  font-family: var(--hve-font-display);
  font-weight: 400;
  line-height: 1.15;
  margin: 0 0 0.5em;
}

p { margin: 0 0 1em; }

a { color: var(--hve-accent); text-decoration: none; }
a:hover, a:focus { color: var(--hve-accent-dark); }

ul { margin: 0; padding: 0; list-style: none; }

button { font-family: inherit; }

.wrap { max-width: var(--hve-max); margin: 0 auto; padding: 0 32px; }

.screen-reader-text {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px);
  white-space: nowrap;
}
.skip-link.screen-reader-text:focus {
  position: fixed; top: 8px; left: 8px;
  width: auto; height: auto; clip: auto;
  background: var(--hve-text); color: #fff;
  padding: 12px 18px; z-index: 10000; border-radius: 3px;
}

/* =========================================================
   1. Buttons & Chips
   ========================================================= */
.btn {
  display: inline-block;
  font-size: 15px;
  font-weight: 600;
  padding: 14px 28px;
  border-radius: 3px;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: filter 0.15s ease, background 0.15s ease;
  text-align: center;
}
.btn-primary {
  background: var(--hve-accent);
  color: #fff !important;
}
.btn-primary:hover { filter: brightness(0.92); color: #fff !important; }
.btn-outline {
  border-color: var(--hve-text);
  color: var(--hve-text) !important;
  background: transparent;
}
.btn-outline:hover { background: rgba(34,37,31,0.06); }
.btn-sm { padding: 11px 20px; font-size: 14px; }

.chip {
  display: inline-block;
  border: 1.5px solid #C9C2A0;
  background: var(--hve-surface);
  padding: 10px 18px;
  border-radius: 24px;
  font-size: 14px;
  font-weight: 600;
  color: var(--hve-text) !important;
  transition: border-color 0.15s ease;
}
.chip:hover { border-color: var(--hve-text); }

.badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 3px 9px;
  border-radius: 20px;
  margin-bottom: 10px;
}
.badge-terracotta { color: var(--hve-terracotta); background: var(--hve-terracotta-bg); }
.badge-green { color: var(--hve-accent); background: var(--hve-green-bg); }

/* =========================================================
   2. Header / Navigation
   ========================================================= */
.site-header {
  background: var(--hve-bg);
  border-bottom: 1px solid var(--hve-border);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: 18px;
  padding-bottom: 18px;
}
.site-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--hve-text) !important;
}
.site-logo:hover { color: var(--hve-text) !important; opacity: 0.85; }
.site-logo svg { flex-shrink: 0; }
.site-title {
  font-family: var(--hve-font-display);
  font-size: 24px;
  line-height: 1;
}

.main-navigation { display: flex; }
.primary-menu {
  display: flex;
  align-items: center;
  gap: 30px;
}
.primary-menu > li { position: relative; }
.primary-menu > li > a {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 15px;
  font-weight: 500;
  color: var(--hve-text) !important;
  padding-bottom: 6px;
  border-bottom: 2px solid transparent;
}
.primary-menu > li > a:hover { opacity: 0.65; }
.primary-menu > li.current-menu-item > a,
.primary-menu > li.current_page_item > a {
  font-weight: 600;
  border-bottom-color: var(--hve-accent);
}
.primary-menu > li.menu-item-has-children > a::after {
  content: "";
  width: 8px; height: 8px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg);
  margin-top: -4px;
}
.primary-menu .sub-menu {
  display: none;
  position: absolute;
  top: 100%; left: 0;
  min-width: 180px;
  background: var(--hve-surface);
  border: 1px solid var(--hve-border);
  border-radius: 4px;
  padding: 8px;
  box-shadow: 0 12px 24px rgba(34,37,31,0.1);
  z-index: 50;
}
.primary-menu li.menu-item-has-children:hover > .sub-menu,
.primary-menu li.menu-item-has-children:focus-within > .sub-menu {
  display: block;
}
.primary-menu .sub-menu a {
  display: block;
  padding: 8px 10px;
  font-size: 14px;
  color: var(--hve-text) !important;
  border-radius: 3px;
}
.primary-menu .sub-menu a:hover { background: var(--hve-panel); }

.header-cta { white-space: nowrap; padding: 11px 22px; font-size: 14px; }

.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px; height: 40px;
  background: transparent;
  border: none;
  cursor: pointer;
}
.menu-toggle span {
  display: block;
  height: 2px;
  background: var(--hve-text);
  border-radius: 2px;
}

/* =========================================================
   3. Hero
   ========================================================= */
.hero {
  padding: 96px 32px 84px;
  text-align: center;
}
.hero-inner { max-width: 760px; margin: 0 auto; }
.hero-eyebrow {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--hve-terracotta);
  margin-bottom: 18px;
}
.hero h1 { font-size: 56px; margin-bottom: 22px; }
.hero-sub {
  font-size: 19px;
  line-height: 1.6;
  color: var(--hve-text-muted);
  max-width: 600px;
  margin: 0 auto 34px;
}
.hero-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

/* =========================================================
   4. Sections & Grids
   ========================================================= */
.section { padding: 0 32px 88px; }
.section-inner { max-width: var(--hve-max); margin: 0 auto; }
.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 28px;
}
.section-head h2 { font-size: 32px; }
.section-link { font-size: 14px; font-weight: 600; }

.pillars-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}
.pillar-card {
  background: var(--hve-surface);
  border: 1px solid var(--hve-border);
  border-radius: var(--hve-radius);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.pillar-card h3 { font-size: 22px; }
.pillar-card p { font-size: 15px; line-height: 1.6; color: var(--hve-text-muted); margin: 0; }
.pillar-card .section-link { color: var(--hve-accent) !important; }

.card-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
}
.card-grid.card-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.post-card { border-radius: var(--hve-radius); overflow: hidden; transition: transform 0.18s ease, box-shadow 0.18s ease; }
.post-card:hover { transform: translateY(-4px); box-shadow: 0 14px 28px rgba(34,37,31,0.12); }
.post-card-media {
  width: 100%;
  aspect-ratio: 4/3;
  background: linear-gradient(135deg, #E7DCC0, #C9C2A0);
  display: flex;
  align-items: center;
  justify-content: center;
  background-size: cover;
  background-position: center;
}
.post-card-media svg { opacity: 0.6; }
.post-card-body {
  background: var(--hve-surface);
  padding: 16px;
  border: 1px solid var(--hve-border);
  border-top: none;
}
.post-card-body h3 {
  font-size: 17px;
  line-height: 1.3;
  font-family: var(--hve-font-body);
  font-weight: 700;
  margin: 0;
}
.post-card-body h3 a { color: var(--hve-text) !important; }

.lifestyle-card { background: var(--hve-surface); border: 1px solid var(--hve-border); border-radius: var(--hve-radius); overflow: hidden; }
.lifestyle-card-media {
  width: 100%;
  aspect-ratio: 16/10;
  background: linear-gradient(135deg, #DCE3CB, #B7C2A0);
  background-size: cover;
  background-position: center;
}
.lifestyle-card-body { padding: 22px; }
.lifestyle-card-body h3 {
  font-size: 18px;
  line-height: 1.35;
  font-family: var(--hve-font-body);
  font-weight: 700;
  margin-bottom: 8px;
}
.lifestyle-card-body h3 a { color: var(--hve-text) !important; }
.lifestyle-card-body p { font-size: 14px; color: var(--hve-text-muted); margin: 0; }

/* =========================================================
   5. Collection Filter
   ========================================================= */
.collection-panel {
  background: var(--hve-panel);
  border-radius: 10px;
  padding: 40px 44px;
}
.collection-panel h2 { font-size: 26px; margin-bottom: 8px; }
.collection-panel > p { font-size: 15px; color: var(--hve-text-muted); margin: 0 0 24px; }
.collection-chips { display: flex; flex-wrap: wrap; gap: 10px; }

/* =========================================================
   6. Book Promotion
   ========================================================= */
.book-section {
  background: var(--hve-footer-bg);
  border-radius: 10px;
  padding: 56px;
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 48px;
  align-items: center;
}
.book-cover {
  width: 220px;
  aspect-ratio: 3/4.5;
  background: linear-gradient(150deg, var(--hve-accent), var(--hve-footer-bg));
  border-radius: 4px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  text-align: center;
  overflow: hidden;
}
.book-cover img { width: 100%; height: 100%; object-fit: cover; }
.book-cover span {
  font-family: var(--hve-font-display);
  font-size: 15px;
  color: var(--hve-bg);
  line-height: 1.4;
}
.book-eyebrow {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--hve-terracotta);
  margin-bottom: 14px;
}
.book-section h2 { font-size: 34px; color: var(--hve-bg); margin-bottom: 16px; }
.book-section p { font-size: 16px; line-height: 1.65; color: var(--hve-footer-text); max-width: 520px; margin-bottom: 26px; }
.book-actions { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.book-note { font-size: 13px; color: var(--hve-footer-muted); }

/* =========================================================
   7. Newsletter
   ========================================================= */
.newsletter-panel {
  background: var(--hve-panel);
  border-radius: 10px;
  padding: 48px 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}
.newsletter-copy { max-width: 460px; }
.newsletter-copy h2 { font-size: 28px; margin-bottom: 10px; }
.newsletter-copy p { font-size: 15px; line-height: 1.6; color: var(--hve-text-muted); margin: 0; }
.newsletter-form {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  flex: 1;
  min-width: 280px;
  max-width: 440px;
}
.newsletter-form input[type="email"] {
  flex: 1;
  min-width: 200px;
  padding: 14px 16px;
  border: 1.5px solid #C9C2A0;
  border-radius: 3px;
  font-size: 14px;
  font-family: var(--hve-font-body);
  background: var(--hve-surface);
}
.newsletter-form button { border: none; }

/* =========================================================
   8. Footer
   ========================================================= */
.site-footer { background: var(--hve-footer-bg); padding: 64px 32px 32px; }
.footer-columns {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 44px;
  border-bottom: 1px solid #3A3D34;
}
.footer-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.footer-brand span { font-family: var(--hve-font-display); font-size: 20px; color: var(--hve-bg); }
.footer-desc { font-size: 14px; line-height: 1.6; color: var(--hve-footer-muted); max-width: 280px; margin: 0 0 18px; }
.footer-social { display: flex; gap: 14px; }
.footer-social a { opacity: 1; transition: opacity 0.15s ease; }
.footer-social a:hover { opacity: 0.6; }
.footer-heading {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #8FAF98;
  margin-bottom: 16px;
}
.footer-columns ul { display: flex; flex-direction: column; gap: 11px; }
.footer-columns a { font-size: 14px; color: var(--hve-footer-text) !important; }
.footer-bottom {
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}
.footer-bottom span { font-size: 12.5px; color: #7C7A6E; }

/* =========================================================
   9. Standard content templates (single/page/archive)
   ========================================================= */
.content-wrap { max-width: 760px; margin: 0 auto; padding: 64px 32px 96px; }
.content-wrap .entry-title { font-size: 42px; margin-bottom: 20px; }
.content-wrap .entry-meta { font-size: 14px; color: var(--hve-text-muted); margin-bottom: 32px; }
.content-wrap .entry-content { font-size: 17px; line-height: 1.75; }
.content-wrap .entry-content h2 { font-size: 28px; margin-top: 1.4em; }
.content-wrap .entry-content h3 { font-size: 22px; margin-top: 1.2em; }
.content-wrap .entry-content img { border-radius: var(--hve-radius); }
.archive-grid { max-width: var(--hve-max); margin: 0 auto; padding: 64px 32px 96px; display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 24px; }
.archive-title { max-width: var(--hve-max); margin: 0 auto; padding: 48px 32px 0; font-size: 38px; }

/* =========================================================
   10. Responsive
   ========================================================= */
@media (max-width: 960px) {
  .pillars-grid { grid-template-columns: 1fr; }
  .card-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .card-grid.card-grid-3 { grid-template-columns: 1fr; }
  .book-section { grid-template-columns: 1fr; text-align: center; justify-items: center; }
  .book-section p { margin-left: auto; margin-right: auto; }
  .archive-grid { grid-template-columns: 1fr; }
  .footer-columns { grid-template-columns: 1fr 1fr; gap: 32px 24px; }
}

@media (max-width: 780px) {
  .menu-toggle { display: flex; }
  .main-navigation {
    display: none;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--hve-bg);
    border-bottom: 1px solid var(--hve-border);
    padding: 12px 32px 24px;
    z-index: 100;
  }
  .main-navigation.is-open { display: block; }
  .site-header { position: relative; }
  .primary-menu { flex-direction: column; align-items: flex-start; gap: 4px; }
  .primary-menu > li { width: 100%; }
  .primary-menu > li > a { padding: 10px 0; width: 100%; }
  .primary-menu .sub-menu { position: static; box-shadow: none; border: none; display: none; padding-left: 12px; }
  .primary-menu li.menu-item-has-children.is-open > .sub-menu { display: block; }
  .header-cta { display: none; }
  .hero h1 { font-size: 38px; }
  .hero-sub { font-size: 16px; }
  .card-grid { grid-template-columns: 1fr; }
  .book-section { padding: 40px 28px; }
  .newsletter-panel { padding: 36px 28px; }
  .footer-columns { grid-template-columns: 1fr; }
  .collection-panel { padding: 32px 24px; }
}
