/*
Theme Name: Primordia
Theme URI: https://primordiaskincare.com
Author: Primordia Skincare
Author URI: https://primordiaskincare.com
Description: Official theme for Primordia — Grass-Fed Tallow Balm. Built for WooCommerce.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: primordia
Tags: e-commerce, woocommerce, clean, minimal
*/

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

:root {
  --bg: #F5F0E8;
  --dark: #1C1A14;
  --gold: #B8935A;
  --gold-light: #D4A96A;
  --muted: #6B6455;
  --border: #C8BFA8;
  --surface: #EDE8DC;
  --deep: #2C2416;
  --card-bg: #D8CEB8;
}

html { scroll-behavior: smooth; }
body {
  font-family: 'Jost', sans-serif;
  background: var(--bg);
  color: var(--dark);
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
}

/* ── NAV ── */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg);
  border-bottom: 0.5px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 60px;
}
.nav-logo {
  font-family: 'Cormorant Garamond', serif;
  font-size: 24px;
  font-weight: 300;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--dark);
  text-decoration: none;
}
.nav-links {
  display: flex;
  gap: 36px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links li { margin: 0; }
.nav-links a {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--dark); }
.nav-cart {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--dark);
  border: 0.5px solid var(--dark);
  padding: 9px 20px;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}
.nav-cart:hover { background: var(--dark); color: var(--bg); }

/* ── HERO ── */
.hero {
  position: relative;
  background: var(--deep);
  min-height: 92vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, rgba(61,46,24,0.7) 0%, rgba(28,26,20,0.95) 100%);
  background-size: cover;
  background-position: center;
  z-index: 1;
}
.hero-bg-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, rgba(61,46,24,0.7) 0%, rgba(28,26,20,0.95) 100%);
  z-index: 1;
}
.hero-glow {
  position: absolute;
  top: 15%;
  right: 5%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(184,147,90,0.07) 0%, transparent 70%);
  pointer-events: none;
  z-index: 1;
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 760px;
  padding: 80px 80px 100px;
}
.hero-eyebrow {
  font-size: 10px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 22px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.hero-eyebrow::after {
  content: '';
  display: block;
  width: 48px;
  height: 0.5px;
  background: var(--gold);
  opacity: 0.4;
}
.hero h1 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 76px;
  font-weight: 300;
  line-height: 1.0;
  color: var(--bg);
  margin-bottom: 26px;
  letter-spacing: -0.01em;
}
.hero h1 em {
  font-style: italic;
  color: var(--gold-light);
}
.hero-sub {
  font-size: 15px;
  color: #B8A98A;
  line-height: 1.85;
  max-width: 480px;
  margin-bottom: 40px;
  font-weight: 300;
}
.hero-buttons {
  display: flex;
  gap: 16px;
  align-items: center;
}
.btn-primary {
  display: inline-block;
  background: var(--gold);
  color: var(--bg);
  font-family: 'Jost', sans-serif;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 16px 40px;
  text-decoration: none;
  transition: background 0.25s;
}
.btn-primary:hover { background: var(--gold-light); }
.btn-ghost {
  display: inline-block;
  background: transparent;
  color: #B8A98A;
  font-family: 'Jost', sans-serif;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 16px 32px;
  text-decoration: none;
  border: 0.5px solid rgba(184,163,138,0.3);
  transition: border-color 0.25s, color 0.25s;
}
.btn-ghost:hover { border-color: var(--gold); color: var(--gold); }
.hero-badges {
  display: flex;
  gap: 36px;
  margin-top: 60px;
  padding-top: 36px;
  border-top: 0.5px solid rgba(184,147,90,0.18);
}
.hero-badge { display: flex; flex-direction: column; gap: 5px; }
.hero-badge-icon { font-size: 14px; color: var(--gold); }
.hero-badge-label {
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #6B6050;
}

/* ── TRUST BAR ── */
.trust-bar {
  background: var(--dark);
  padding: 22px 60px;
  display: flex;
  justify-content: center;
  gap: 80px;
}
.trust-item { text-align: center; }
.trust-item strong {
  display: block;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 4px;
}
.trust-item span { font-size: 11px; color: #4A4438; letter-spacing: 0.05em; }

/* ── SOURCING ── */
.sourcing {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 520px;
  border-bottom: 0.5px solid var(--border);
}
.sourcing-text {
  padding: 90px 80px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-right: 0.5px solid var(--border);
  background: var(--bg);
}
.section-eyebrow {
  font-size: 10px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 22px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.section-eyebrow::before {
  content: '';
  display: block;
  width: 28px;
  height: 0.5px;
  background: var(--gold);
}
.sourcing-text h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 44px;
  font-weight: 300;
  line-height: 1.15;
  color: var(--dark);
  margin-bottom: 22px;
}
.sourcing-text p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.95;
  max-width: 420px;
  margin-bottom: 32px;
  font-weight: 300;
}
.link-underline {
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  text-decoration: none;
  border-bottom: 0.5px solid var(--gold);
  padding-bottom: 3px;
  transition: opacity 0.2s;
  display: inline-block;
}
.link-underline:hover { opacity: 0.65; }
.sourcing-visual {
  background: var(--surface);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px;
}
.sourcing-stats {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  width: 100%;
  max-width: 280px;
}
.sourcing-stat { text-align: center; padding: 32px 0; width: 100%; }
.sourcing-stat:not(:last-child) { border-bottom: 0.5px solid var(--border); }
.sourcing-stat-num {
  font-family: 'Cormorant Garamond', serif;
  font-size: 72px;
  font-weight: 300;
  color: var(--dark);
  line-height: 1;
  margin-bottom: 6px;
}
.sourcing-stat-label {
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ── PRODUCTS ── */
.products {
  padding: 90px 60px;
  background: var(--bg);
  border-bottom: 0.5px solid var(--border);
}
.products-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 48px;
}
.products-header h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 40px;
  font-weight: 300;
  color: var(--dark);
}
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}
.product-card {
  background: var(--surface);
  border: 0.5px solid var(--border);
  transition: border-color 0.25s;
  cursor: pointer;
}
.product-card:hover { border-color: var(--gold); }
.product-img-wrap {
  width: 100%;
  height: 320px;
  background: var(--card-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.product-img-wrap img { width: 100%; height: 100%; object-fit: cover; }
.product-img-placeholder {
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #8A7D68;
}
.product-info { padding: 28px; }
.product-category {
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 10px;
}
.product-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 24px;
  font-weight: 400;
  color: var(--dark);
  margin-bottom: 8px;
  line-height: 1.2;
}
.product-desc {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.75;
  margin-bottom: 20px;
  font-weight: 300;
}
.product-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 20px;
  border-top: 0.5px solid var(--border);
}
.product-price { font-size: 16px; font-weight: 400; color: var(--dark); }
.product-price small { font-size: 12px; color: var(--muted); font-weight: 300; }
.btn-shop {
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--dark);
  text-decoration: none;
  border-bottom: 0.5px solid var(--dark);
  padding-bottom: 2px;
  transition: color 0.2s, border-color 0.2s;
}
.btn-shop:hover { color: var(--gold); border-color: var(--gold); }

/* ── WHY TALLOW ── */
.why {
  background: var(--deep);
  padding: 90px 60px;
  text-align: center;
}
.why .section-eyebrow { justify-content: center; }
.why .section-eyebrow::before { display: none; }
.why .section-eyebrow::after {
  content: '';
  display: block;
  width: 28px;
  height: 0.5px;
  background: var(--gold);
}
.why h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 46px;
  font-weight: 300;
  color: var(--bg);
  margin-bottom: 14px;
}
.why-sub {
  font-size: 14px;
  color: #6B6050;
  margin-bottom: 64px;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.8;
}
.why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: rgba(184,147,90,0.08);
  max-width: 1000px;
  margin: 0 auto;
}
.why-item {
  background: var(--deep);
  padding: 44px 32px;
  text-align: left;
}
.why-item-icon { font-size: 22px; color: var(--gold); margin-bottom: 18px; }
.why-item h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 21px;
  font-weight: 400;
  color: var(--bg);
  margin-bottom: 12px;
}
.why-item p { font-size: 12px; color: #6B6050; line-height: 1.85; font-weight: 300; }

/* ── REVIEWS ── */
.reviews {
  padding: 90px 60px;
  background: var(--deep);
  border-top: 0.5px solid rgba(184,147,90,0.12);
}
.reviews-header { text-align: center; margin-bottom: 56px; }
.reviews-header h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 40px;
  font-weight: 300;
  color: var(--bg);
  margin-bottom: 10px;
}
.reviews-header p { font-size: 12px; color: #6B6050; letter-spacing: 0.06em; }
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
  max-width: 1200px;
  margin: 0 auto;
}
.review-card {
  border: 0.5px solid rgba(184,147,90,0.2);
  padding: 32px;
  background: rgba(28,26,20,0.6);
  transition: border-color 0.2s;
}
.review-card:hover { border-color: rgba(184,147,90,0.5); }
.review-stars { color: var(--gold); font-size: 13px; letter-spacing: 3px; margin-bottom: 16px; }
.review-text {
  font-family: 'Cormorant Garamond', serif;
  font-size: 18px;
  font-style: italic;
  font-weight: 300;
  color: var(--bg);
  line-height: 1.7;
  margin-bottom: 20px;
}
.review-author {
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  padding-top: 18px;
  border-top: 0.5px solid rgba(184,147,90,0.15);
}
.review-source { color: #4A4438; margin-top: 2px; font-size: 10px; }

/* ── EMAIL ── */
.email-section {
  background: var(--surface);
  border-top: 0.5px solid var(--border);
  padding: 90px 60px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 100px;
  align-items: center;
}
.email-text h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 42px;
  font-weight: 300;
  line-height: 1.15;
  color: var(--dark);
  margin-bottom: 14px;
}
.email-text p { font-size: 13px; color: var(--muted); line-height: 1.85; font-weight: 300; }
.email-form { display: flex; flex-direction: column; gap: 14px; }
.email-input-row { display: flex; }
.email-input {
  flex: 1;
  background: var(--bg);
  border: 0.5px solid var(--border);
  border-right: none;
  color: var(--dark);
  font-family: 'Jost', sans-serif;
  font-size: 13px;
  font-weight: 300;
  padding: 15px 20px;
  outline: none;
  transition: border-color 0.2s;
}
.email-input:focus { border-color: var(--gold); }
.email-input::placeholder { color: #A89E8E; }
.email-submit {
  background: var(--dark);
  color: var(--bg);
  border: none;
  font-family: 'Jost', sans-serif;
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 15px 24px;
  cursor: pointer;
  transition: background 0.2s;
  white-space: nowrap;
}
.email-submit:hover { background: var(--gold); }
.email-fine { font-size: 10px; color: #A89E8E; letter-spacing: 0.05em; }
.email-offer {
  display: inline-block;
  background: var(--gold);
  color: var(--bg);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 6px 14px;
  margin-bottom: 20px;
}

/* ── FOOTER ── */
footer {
  background: var(--dark);
  padding: 48px 60px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 40px;
  border-top: 0.5px solid rgba(184,147,90,0.15);
}
.footer-logo {
  font-family: 'Cormorant Garamond', serif;
  font-size: 18px;
  font-weight: 300;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #4A4438;
}
.footer-links {
  display: flex;
  gap: 24px;
  justify-content: center;
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer-links li { margin: 0; }
.footer-links a {
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #3A3830;
  text-decoration: none;
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--gold); }
.footer-contact {
  font-size: 11px;
  color: #3A3830;
  text-align: right;
  letter-spacing: 0.04em;
}
.footer-contact a { color: #3A3830; text-decoration: none; }
.footer-contact a:hover { color: var(--gold); }

/* ── INNER PAGES ── */
.page-header {
  background: var(--deep);
  padding: 80px 60px 60px;
  border-bottom: 0.5px solid rgba(184,147,90,0.15);
}
.page-header h1 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 52px;
  font-weight: 300;
  color: var(--bg);
  line-height: 1.1;
}
.page-content {
  padding: 60px;
  max-width: 820px;
  margin: 0 auto;
}
.page-content h2, .page-content h3 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 300;
  color: var(--dark);
  margin: 32px 0 14px;
}
.page-content h2 { font-size: 32px; }
.page-content h3 { font-size: 24px; }
.page-content p { font-size: 15px; color: var(--muted); line-height: 1.95; margin-bottom: 20px; }
.page-content a { color: var(--gold); }
.page-content ul, .page-content ol { padding-left: 20px; color: var(--muted); font-size: 15px; line-height: 2; }

/* ── SINGLE POST ── */
.post-header {
  background: var(--deep);
  padding: 80px 60px 60px;
  border-bottom: 0.5px solid rgba(184,147,90,0.15);
}
.post-header h1 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 52px;
  font-weight: 300;
  color: var(--bg);
  line-height: 1.1;
  max-width: 760px;
}
.post-meta {
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #4A4438;
  margin-top: 20px;
}
.post-body {
  padding: 60px;
  max-width: 760px;
  margin: 0 auto;
}
.post-body h2, .post-body h3 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 300;
  color: var(--dark);
  margin: 40px 0 16px;
}
.post-body h2 { font-size: 32px; }
.post-body h3 { font-size: 24px; }
.post-body p { font-size: 16px; color: var(--muted); line-height: 2; margin-bottom: 22px; }
.post-body img { max-width: 100%; height: auto; margin: 32px 0; }
.post-body a { color: var(--gold); }

/* ── ARCHIVE / BLOG ── */
.archive-page {
  background: var(--bg);
  min-height: 60vh;
}
.archive-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  padding: 60px;
}
.archive-card {
  background: var(--surface);
  border: 0.5px solid var(--border);
  transition: border-color 0.25s;
}
.archive-card:hover { border-color: var(--gold); }
.archive-card a { text-decoration: none; color: inherit; display: block; }
.archive-card-img {
  width: 100%;
  height: 220px;
  background: var(--card-bg);
  overflow: hidden;
}
.archive-card-img img { width: 100%; height: 100%; object-fit: cover; }
.archive-card-body { padding: 28px; }
.archive-card-date {
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 10px;
}
.archive-card-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 24px;
  font-weight: 400;
  color: var(--dark);
  line-height: 1.25;
  margin-bottom: 12px;
}
.archive-card-excerpt { font-size: 13px; color: var(--muted); line-height: 1.75; }

/* ── 404 ── */
.error-page {
  min-height: 70vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: var(--bg);
  padding: 60px;
}
.error-page h1 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 120px;
  font-weight: 300;
  color: var(--border);
  line-height: 1;
  margin-bottom: 20px;
}
.error-page h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 36px;
  font-weight: 300;
  color: var(--dark);
  margin-bottom: 16px;
}
.error-page p { font-size: 14px; color: var(--muted); line-height: 1.85; margin-bottom: 32px; }

/* ── WP ALIGNMENT UTILS ── */
.aligncenter { display: block; margin: 0 auto; }
.alignleft { float: left; margin-right: 24px; }
.alignright { float: right; margin-left: 24px; }

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  nav { padding: 16px 24px; }
  .nav-links { display: none; }
  .hero-content { padding: 48px 28px 60px; }
  .hero h1 { font-size: 44px; }
  .trust-bar { gap: 24px; padding: 18px 24px; flex-wrap: wrap; }
  .sourcing { grid-template-columns: 1fr; }
  .sourcing-text { padding: 56px 28px; }
  .sourcing-visual { display: none; }
  .products { padding: 56px 24px; }
  .why { padding: 56px 24px; }
  .why-grid { grid-template-columns: 1fr 1fr; }
  .reviews { padding: 56px 24px; }
  .email-section { grid-template-columns: 1fr; gap: 40px; padding: 56px 24px; }
  footer { grid-template-columns: 1fr; text-align: center; padding: 36px 24px; }
  .footer-contact { text-align: center; }
  .page-header { padding: 48px 28px 36px; }
  .page-content { padding: 40px 28px; }
  .post-header { padding: 48px 28px 36px; }
  .post-body { padding: 40px 28px; }
  .archive-grid { padding: 28px; }
  .error-page h1 { font-size: 72px; }
}
