/* =========================================
   Hyva Naturals – Main Stylesheet
   ========================================= */

@font-face {
  font-family: 'StannumTrial';
  font-weight: 400;
  src: url('/wp-content/uploads/2024/05/StannumTrial-Regular.otf') format('opentype');
}
@font-face {
  font-family: 'ScalaSans';
  font-weight: 400;
  src: url('/wp-content/uploads/2024/05/ScalaSans-Regular.otf') format('opentype');
}

/* ---- Variables ---- */
:root {
  --color-primary: #0a0a0a;
  --color-olive: #727146;
  --color-green: #7a9c59;
  --color-alert: #b20000;
  --color-light: #E8E8E8;
  --color-white: #ffffff;
  --max-width: 1140px;
  --header-height: 83px;
  --font-body: 'Lato', sans-serif;
  --font-heading: 'ScalaSans', 'Lato', sans-serif;
  --font-accent: 'StannumTrial', serif;
  --font-script: 'Dancing Script', cursive;
  --font-ui: 'DM Sans', 'Lato', sans-serif;
}

/* ---- Reset & Base ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  color: #333;
  background: #fff;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-body);
  font-weight: 700;
  line-height: 1.25;
}

img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
address { font-style: normal; }
p { margin-bottom: 1em; }
p:last-child { margin-bottom: 0; }

/* ---- Layout ---- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---- Header ---- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 10, 10, 0.95);
  height: var(--header-height);
  backdrop-filter: blur(4px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.site-logo img {
  height: 52px;
  width: auto;
}

.main-nav ul {
  display: flex;
  gap: 32px;
  align-items: center;
}

.main-nav a {
  color: #fff;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  transition: color 0.2s;
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--color-green);
}

/* Mobile menu toggle (hamburger) */
.mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.mobile-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: #fff;
  transition: all 0.3s;
}

/* Mobile nav drawer */
.mobile-nav {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(10,10,10,0.97);
  z-index: 200;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 32px;
}

.mobile-nav.open { display: flex; }

.mobile-nav a {
  color: #fff;
  font-size: 22px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.mobile-nav a:hover { color: var(--color-green); }

.mobile-nav-close {
  position: absolute;
  top: 24px;
  right: 24px;
  background: none;
  border: none;
  color: #fff;
  font-size: 32px;
  cursor: pointer;
  line-height: 1;
}

@media (max-width: 768px) {
  .main-nav { display: none; }
  .mobile-toggle { display: flex; }
  :root { --header-height: 70px; }
}

/* ---- Hero ---- */
.hero {
  position: relative;
  background-image: url('/wp-content/uploads/2024/05/bghome.jpg');
  background-size: cover;
  background-position: center;
  min-height: 75vh;
  display: flex;
  align-items: center;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
}

.hero-content {
  position: relative;
  padding: 80px 24px;
  max-width: 700px;
  margin-left: 8%;
}

.hero h1 {
  font-family: var(--font-accent);
  font-size: clamp(42px, 6vw, 80px);
  font-weight: 400;
  color: #fff;
  line-height: 1.1;
  margin-bottom: 16px;
}

.hero-subtitle {
  font-family: var(--font-heading);
  font-size: 18px;
  color: rgba(255,255,255,0.85);
  margin-top: 12px;
}

/* ---- Feature Panels ---- */
.feature-panel {
  position: relative;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  min-height: 480px;
  display: flex;
  align-items: center;
}

.feature-panel::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.69);
}

.feature-panel-content {
  position: relative;
  padding: 80px 10%;
  
}

.feature-panel h2 {
  font-family: var(--font-accent);
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 400;
  color: #fff;
  margin-bottom: 16px;
}

.feature-panel hr {
  border: none;
  border-top: 3px solid #D2D2D2;
  width: 13%;
  margin: 16px 0;
}

.feature-panel p {
  font-family: var(--font-heading);
  color: #E1E1E1;
  font-size: 15px;
  line-height: 1.8;
}

@media (max-width: 768px) {
  .feature-panel { background-attachment: scroll; }
  .feature-panel-content { padding: 60px 24px; }
}

/* ---- Our Products Section ---- */
.products-section {
  padding: 80px 24px;
  text-align: center;
  background: #fff;
}

.products-section h2 {
  font-family: var(--font-accent);
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 400;
  margin-bottom: 48px;
  color: var(--color-primary);
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.category-card {
  text-decoration: none;
  color: var(--color-primary);
  display: block;
}

.category-card-img {
  overflow: hidden;
  margin-bottom: 12px;
}

.category-card-img img {
  width: 100%;
  transition: transform 0.4s ease;
}

.category-card:hover .category-card-img img {
  transform: scale(1.05);
}

.category-card h3 {
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
}

@media (max-width: 768px) {
  .category-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .products-section { padding: 60px 16px; }
}

/* ---- Promise Section ---- */
.promise-section {
  background: #000;
  padding: 80px 24px;
}

.promise-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 60px;
}

.promise-text { flex: 1; }

.promise-text h5 {
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2.1px;
  color: #DADADA;
  margin-bottom: 6px;
}

.promise-text h2 {
  font-family: var(--font-accent);
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 400;
  color: #DADADA;
  margin-bottom: 20px;
}

.promise-text p {
  font-family: var(--font-heading);
  color: #DADADA;
  font-size: 15px;
  line-height: 1.8;
}

.promise-image { flex: 0 0 380px; }

@media (max-width: 900px) {
  .promise-inner { flex-direction: column; gap: 40px; }
  .promise-image { flex: 0 0 auto; width: 100%; max-width: 400px; }
}

/* ---- Footer ---- */
.site-footer {
  background-color: #000;
  background-image: url('/wp-content/uploads/2024/05/bg-texture.webp');
  padding: 83px 24px 63px;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  gap: 48px;
  align-items: flex-start;
}

.footer-brand { flex: 1; }

.footer-tagline {
  font-family: var(--font-accent);
  font-size: 24px;
  font-weight: 400;
  color: #fff;
  margin-bottom: 16px;
}

.footer-social {
  display: flex;
  gap: 6px;
  margin-bottom: 24px;
}

.social-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #111;
  color: #fff;
  transition: background 0.2s;
}

.social-btn:hover { background: var(--color-green); }

.social-btn svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.footer-logo img {
  max-width: 200px;
  margin-top: 8px;
}

.footer-contact { flex: 1; }

.footer-contact h5 {
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--color-light);
  margin-bottom: 12px;
}

.footer-contact address {
  color: var(--color-light);
  font-size: 14px;
  line-height: 1.8;
  margin-bottom: 8px;
}

.footer-contact a {
  color: var(--color-light);
  font-size: 14px;
  transition: color 0.2s;
}

.footer-contact a:hover { color: var(--color-green); }

.footer-icon { flex: 0 0 120px; align-self: center; }

@media (max-width: 768px) {
  .footer-inner { flex-direction: column; gap: 40px; }
  .footer-icon { display: none; }
}

/* ---- About Us Page ---- */
.page-banner {
  position: relative;
  background-size: cover;
  background-position: center;
  min-height: 420px;
  display: flex;
  align-items: center;
}

.page-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
}

.page-banner-content {
  position: relative;
  padding: 60px 10%;
  max-width: 700px;
}

.page-banner h5 {
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: rgba(255,255,255,0.75);
  margin-bottom: 12px;
}

.page-banner h1 {
  font-family: var(--font-accent);
  font-size: clamp(32px, 5vw, 60px);
  font-weight: 400;
  color: #fff;
  margin-bottom: 20px;
}

.page-banner p {
  font-family: var(--font-heading);
  color: rgba(255,255,255,0.85);
  font-size: 15px;
  line-height: 1.8;
}

/* About sections */
.about-section {
  padding: 80px 24px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.about-row {
  display: flex;
  gap: 48px;
  align-items: center;
}

.about-row.reverse { flex-direction: row-reverse; }

.about-col { flex: 1; }

.about-col img { width: 100%; border-radius: 2px; }

.about-label {
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--color-olive);
  margin-bottom: 8px;
}

.about-col h4 {
  font-family: var(--font-accent);
  font-size: clamp(22px, 3vw, 36px);
  font-weight: 400;
  color: var(--color-primary);
  margin-bottom: 20px;
}

.about-col h2 {
  font-family: var(--font-accent);
  font-size: clamp(24px, 3.5vw, 42px);
  font-weight: 400;
  color: var(--color-primary);
  margin-bottom: 20px;
}

.about-col p {
  font-family: var(--font-heading);
  font-size: 15px;
  line-height: 1.8;
  color: #444;
}

@media (max-width: 768px) {
  .about-row, .about-row.reverse { flex-direction: column; gap: 32px; }
  .about-section { padding: 60px 16px; }
}

/* Values strip */
.values-strip {
  background: var(--color-light);
  padding: 60px 24px;
}

.values-strip-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  gap: 32px;
  justify-content: center;
}

.value-card {
  text-align: center;
  flex: 1;
  max-width: 280px;
}

.value-card svg {
  width: 48px;
  height: 48px;
  fill: var(--color-green);
  margin: 0 auto 16px;
}

.value-card h3 {
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 700;
  color: var(--color-primary);
}

@media (max-width: 768px) {
  .values-strip-inner { flex-direction: column; align-items: center; }
}

/* ---- Contact Page ---- */
.contact-banner {
  position: relative;
  background-image: url('/wp-content/uploads/2024/05/Contact-us-banner-bg.jpg');
  background-size: cover;
  background-position: center;
  min-height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.contact-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
}

.contact-banner-content { position: relative; padding: 60px 24px; }

.contact-banner h1 {
  font-family: var(--font-accent);
  font-size: clamp(36px, 6vw, 72px);
  font-weight: 400;
  color: #fff;
  margin-bottom: 12px;
}

.contact-banner p {
  color: rgba(255,255,255,0.85);
  font-size: 16px;
  font-family: var(--font-heading);
}

.contact-main {
  padding: 80px 24px;
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  gap: 48px;
  align-items: flex-start;
}

.contact-form-col { flex: 1; }
.contact-image-col { flex: 1; }
.contact-image-col img { width: 100%; border-radius: 2px; }

.contact-label {
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--color-olive);
  margin-bottom: 8px;
}

.contact-form-col h2 {
  font-family: var(--font-accent);
  font-size: clamp(24px, 3.5vw, 40px);
  font-weight: 400;
  color: var(--color-primary);
  margin-bottom: 32px;
}

/* Contact form */
.contact-form .form-group { margin-bottom: 16px; }

.contact-form label {
  display: block;
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 6px;
  color: #555;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #ccc;
  border-radius: 2px;
  font-family: var(--font-heading);
  font-size: 15px;
  color: #333;
  background: #fff;
  transition: border-color 0.2s;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--color-primary);
}

.contact-form textarea { min-height: 140px; resize: vertical; }

.contact-form .cf-turnstile { margin: 16px 0; }

.btn-submit {
  background: var(--color-primary);
  color: #fff;
  border: none;
  padding: 14px 32px;
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  cursor: pointer;
  transition: background 0.2s;
  border-radius: 2px;
}

.btn-submit:hover { background: #333; }

.form-success {
  display: none;
  padding: 16px;
  background: #f0f8ea;
  border: 1px solid var(--color-green);
  color: #2d5a1b;
  font-family: var(--font-heading);
  border-radius: 2px;
  margin-top: 16px;
}

/* Contact info cards */
.contact-cards {
  padding: 0 24px 80px;
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.contact-card {
  flex: 1;
  min-width: 200px;
  text-align: center;
  padding: 32px 24px;
  border: 1px solid #eee;
  border-radius: 4px;
}

.contact-card-icon {
  font-size: 28px;
  margin-bottom: 12px;
}

.contact-card h4 {
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 8px;
  color: var(--color-primary);
}

.contact-card p, .contact-card a {
  font-family: var(--font-heading);
  font-size: 14px;
  color: #555;
  line-height: 1.7;
}

.contact-card a:hover { color: var(--color-green); }

@media (max-width: 768px) {
  .contact-main { flex-direction: column; padding: 60px 16px; }
  .contact-cards { flex-direction: column; padding-bottom: 60px; }
}

/* ---- Shop Page ---- */
.shop-header {
  padding: 60px 24px 0;
  text-align: center;
}

.shop-header h1 {
  font-family: var(--font-accent);
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 400;
  color: var(--color-primary);
  margin-bottom: 8px;
}

.shop-header p {
  font-family: var(--font-heading);
  color: #666;
  font-size: 16px;
}

.shop-body {
  display: flex;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 40px 24px 80px;
  gap: 40px;
  align-items: flex-start;
}

/* Category sidebar */
.category-sidebar {
  flex: 0 0 220px;
  position: sticky;
  top: calc(var(--header-height) + 20px);
}

.category-sidebar h3 {
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 16px;
  color: #888;
}

.category-sidebar ul { padding: 0; }

.category-sidebar li {
  border-bottom: 1px solid #eee;
}

.category-sidebar a {
  display: block;
  padding: 10px 0;
  font-family: var(--font-heading);
  font-size: 14px;
  color: #555;
  transition: color 0.2s;
}

.category-sidebar a:hover,
.category-sidebar li.current a {
  color: var(--color-primary);
  font-weight: 700;
}

/* Product grid */
.product-grid-main {
  flex: 1;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.product-card {
  display: block;
  color: var(--color-primary);
  text-decoration: none;
}

.product-card-thumb {
  overflow: hidden;
  background: #f8f8f8;
  margin-bottom: 12px;
}

.product-card-thumb img {
  width: 100%;
  transition: transform 0.4s ease;
}

.product-card:hover .product-card-thumb img {
  transform: scale(1.04);
}

.product-card-cat {
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: #888;
  margin-bottom: 4px;
}

.product-card-name {
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 700;
  color: var(--color-primary);
}

@media (max-width: 900px) {
  .product-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .shop-body { flex-direction: column; padding: 24px 16px 60px; }
  .category-sidebar { flex: 0 0 auto; width: 100%; position: static; }
  .product-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
}

/* ---- Product Detail Page ---- */
.breadcrumb {
  padding: 20px 24px;
  max-width: var(--max-width);
  margin: 0 auto;
  font-family: var(--font-ui);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #999;
}

.breadcrumb a { color: #999; transition: color 0.2s; }
.breadcrumb a:hover { color: var(--color-primary); }
.breadcrumb span { margin: 0 8px; }

.product-layout {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px 80px;
  display: flex;
  gap: 60px;
  align-items: flex-start;
}

.product-gallery { flex: 0 0 48%; }

.product-gallery img {
  width: 100%;
  border-radius: 2px;
}

.product-info { flex: 1; }

.product-info h1 {
  font-family: var(--font-accent);
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 400;
  color: var(--color-primary);
  margin-bottom: 16px;
}

.product-short-desc {
  font-family: var(--font-heading);
  font-size: 15px;
  color: #666;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 28px;
  padding-bottom: 20px;
  border-bottom: 1px solid #eee;
}

.product-features {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 24px;
}

.product-features tr {
  border-bottom: 1px solid #f0f0f0;
}

.product-features td {
  padding: 12px 8px;
  vertical-align: middle;
  font-family: var(--font-heading);
  font-size: 14px;
  color: #444;
}

.product-features td.icon-cell {
  width: 52px;
  text-align: center;
}

.product-features td.icon-cell img {
  width: 36px;
  height: 36px;
  object-fit: contain;
  margin: 0 auto;
}

.product-sizes {
  font-family: var(--font-heading);
  font-size: 14px;
  color: var(--color-primary);
  font-weight: 700;
  padding: 16px;
  background: #f8f8f8;
  border-radius: 2px;
  margin-top: 8px;
}

.product-sizes span {
  font-weight: 400;
  color: #555;
}

@media (max-width: 768px) {
  .product-layout { flex-direction: column; gap: 32px; padding: 0 16px 60px; }
  .product-gallery { flex: 0 0 auto; width: 100%; }
}

/* ---- Product Details (description / ingredients / nutrition) ---- */
.product-details {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px 60px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
}

.product-description,
.product-ingredients,
.product-nutrition {
  background: #f8f8f6;
  border-radius: 8px;
  padding: 28px 24px;
}

.product-description h3,
.product-ingredients h3,
.product-nutrition h3 {
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-olive);
  margin-bottom: 12px;
}

.product-description p,
.product-ingredients p,
.product-nutrition p {
  font-size: 15px;
  line-height: 1.7;
  color: #444;
}

/* ---- Related Products ---- */
.related-products {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px 80px;
}

.related-products h2 {
  font-family: var(--font-accent);
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 400;
  color: var(--color-primary);
  margin-bottom: 32px;
}

/* ---- Category Page ---- */
.category-hero {
  padding: 60px 24px 0;
  text-align: center;
}

.category-hero h1 {
  font-family: var(--font-accent);
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 400;
  color: var(--color-primary);
}

/* ---- Utility ---- */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}
