/*
Theme Name: Shelf Cult
Theme URI: https://shelfcult.com
Author: XGC Holdings LLC
Author URI: https://shelfcult.com
Description: Custom theme for Shelf Cult — Niche food finds that don't exist on Amazon.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: shelf-cult
*/

/* ===================== RESET & BASE ===================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --navy: #1B2A4A;
  --blue: #3D5A99;
  --orange: #E8563A;
  --offwhite: #F5F5F0;
  --text-dark: #333333;
  --text-light: #FFFFFF;
  --font-heading: 'Space Grotesk', sans-serif;
  --font-body: 'Inter', sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.7;
  color: var(--text-dark);
  background-color: var(--offwhite);
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--blue);
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: var(--orange);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ===================== TYPOGRAPHY ===================== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--navy);
  line-height: 1.2;
  margin-bottom: 0.5em;
}

h1 {
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 600;
}

h3 {
  font-size: clamp(1.3rem, 3vw, 1.75rem);
  font-weight: 500;
}

p {
  margin-bottom: 1.2em;
}

/* ===================== BUTTONS ===================== */
.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 16px 36px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
}

.btn-primary {
  background-color: var(--orange);
  color: var(--text-light);
}

.btn-primary:hover {
  background-color: #d04a30;
  color: var(--text-light);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(232, 86, 58, 0.4);
}

.btn-secondary {
  background-color: transparent;
  color: var(--text-light);
  border: 2px solid var(--text-light);
}

.btn-secondary:hover {
  background-color: var(--text-light);
  color: var(--navy);
}

.btn-outline {
  background-color: transparent;
  color: var(--navy);
  border: 2px solid var(--navy);
}

.btn-outline:hover {
  background-color: var(--navy);
  color: var(--text-light);
}

/* ===================== HEADER / NAV ===================== */
.site-header {
  background-color: var(--navy);
  padding: 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 20px rgba(0,0,0,0.15);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  padding: 16px 24px;
}

.site-logo {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.6rem;
  color: var(--text-light);
  text-decoration: none;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.site-logo:hover {
  color: var(--orange);
}

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

.main-nav a {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 15px;
  color: rgba(255,255,255,0.85);
  text-decoration: none;
  letter-spacing: 0.03em;
  transition: color 0.3s ease;
}

.main-nav a:hover {
  color: var(--orange);
}

.nav-shop-btn {
  background-color: var(--orange) !important;
  color: var(--text-light) !important;
  padding: 10px 24px !important;
  border-radius: 4px !important;
  font-weight: 600 !important;
  font-size: 13px !important;
  letter-spacing: 0.08em !important;
  text-transform: uppercase !important;
}

.nav-shop-btn:hover {
  background-color: #d04a30 !important;
}

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: white;
  margin: 5px 0;
  transition: 0.3s;
}

@media (max-width: 768px) {
  .nav-toggle {
    display: block;
  }
  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--navy);
    flex-direction: column;
    padding: 20px;
    gap: 16px;
    border-top: 1px solid rgba(255,255,255,0.1);
  }
  .main-nav.active {
    display: flex;
  }
}

/* ===================== HERO ===================== */
.hero {
  background-color: var(--navy);
  padding: 100px 0 120px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(ellipse at center, rgba(61,90,153,0.15) 0%, transparent 70%);
  animation: pulse 8s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 0.5; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.05); }
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 750px;
  margin: 0 auto;
  padding: 0 24px;
}

.hero h1 {
  color: var(--text-light);
  margin-bottom: 24px;
  font-size: clamp(2.4rem, 5.5vw, 3.8rem);
}

.hero p {
  color: rgba(255,255,255,0.8);
  font-size: clamp(1.05rem, 2vw, 1.2rem);
  margin-bottom: 40px;
  line-height: 1.8;
}

.hero .btn {
  font-size: 15px;
  padding: 18px 44px;
}

/* ===================== FEATURED PRODUCTS ===================== */
.featured-products {
  padding: 100px 0;
  background-color: var(--offwhite);
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-header h2 {
  margin-bottom: 12px;
}

.section-header p {
  color: #666;
  font-size: 1.1rem;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 32px;
}

.product-card {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 36px rgba(0,0,0,0.12);
}

.product-card-image {
  width: 100%;
  aspect-ratio: 1;
  background: var(--offwhite);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.product-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-card-image .placeholder-img {
  font-size: 3rem;
  color: #ccc;
}

.product-card-body {
  padding: 24px;
}

.product-card-body .brand-name {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--blue);
  margin-bottom: 4px;
}

.product-card-body h3 {
  font-size: 1.15rem;
  margin-bottom: 4px;
  color: var(--navy);
}

.product-card-body .flavor {
  font-size: 0.9rem;
  color: #888;
  margin-bottom: 16px;
}

.product-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.product-price {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--navy);
}

.btn-buy {
  background-color: var(--orange);
  color: white;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 10px 20px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.3s ease;
}

.btn-buy:hover {
  background-color: #d04a30;
  color: white;
  transform: translateY(-1px);
}

/* ===================== BRAND SPOTLIGHT ===================== */
.brand-spotlight {
  padding: 100px 0;
  background: white;
}

.spotlight-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.spotlight-image {
  width: 100%;
  aspect-ratio: 4/3;
  background: var(--offwhite);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.spotlight-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
}

.spotlight-content h2 {
  margin-bottom: 20px;
}

.spotlight-content p {
  color: #555;
  margin-bottom: 24px;
}

@media (max-width: 768px) {
  .spotlight-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

/* ===================== LATEST BLOG ===================== */
.latest-blog {
  padding: 100px 0;
  background-color: var(--offwhite);
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 32px;
}

.blog-card {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.1);
}

.blog-card-image {
  width: 100%;
  aspect-ratio: 16/9;
  background: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.blog-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.blog-card-body {
  padding: 28px;
}

.blog-card-body .category {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--orange);
  margin-bottom: 8px;
}

.blog-card-body h3 {
  font-size: 1.2rem;
  margin-bottom: 12px;
}

.blog-card-body h3 a {
  color: var(--navy);
  text-decoration: none;
}

.blog-card-body h3 a:hover {
  color: var(--orange);
}

.blog-card-body .excerpt {
  color: #666;
  font-size: 0.95rem;
  margin-bottom: 16px;
}

.blog-card-body .read-more {
  font-weight: 600;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--blue);
}

.blog-card-body .read-more:hover {
  color: var(--orange);
}

/* ===================== FOOTER ===================== */
.site-footer {
  background-color: var(--navy);
  padding: 80px 0 40px;
  color: rgba(255,255,255,0.7);
}

.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 60px;
}

.footer-brand .footer-logo {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.4rem;
  color: white;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.footer-brand .footer-tagline {
  font-size: 0.95rem;
  margin-bottom: 24px;
  line-height: 1.6;
}

.footer-social {
  display: flex;
  gap: 16px;
}

.footer-social a {
  color: rgba(255,255,255,0.6);
  font-size: 14px;
  font-weight: 500;
  transition: color 0.3s;
}

.footer-social a:hover {
  color: var(--orange);
}

.footer-col h4 {
  color: white;
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 20px;
}

.footer-col ul {
  list-style: none;
}

.footer-col ul li {
  margin-bottom: 10px;
}

.footer-col ul li a {
  color: rgba(255,255,255,0.6);
  font-size: 0.95rem;
  transition: color 0.3s;
}

.footer-col ul li a:hover {
  color: var(--orange);
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 30px;
  text-align: center;
  font-size: 0.85rem;
}

@media (max-width: 768px) {
  .footer-inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

/* ===================== PAGE: ABOUT ===================== */
.page-hero {
  background-color: var(--navy);
  padding: 80px 0;
  text-align: center;
}

.page-hero h1 {
  color: var(--text-light);
  margin-bottom: 16px;
}

.page-hero p {
  color: rgba(255,255,255,0.7);
  font-size: 1.15rem;
  max-width: 600px;
  margin: 0 auto;
}

.page-content {
  padding: 80px 0;
}

.page-content .content-block {
  max-width: 760px;
  margin: 0 auto 60px;
}

.page-content .content-block h2 {
  margin-bottom: 20px;
}

.page-content .content-block p {
  color: #555;
  font-size: 1.05rem;
}

/* Values grid */
.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 32px;
  max-width: 960px;
  margin: 0 auto;
}

.value-card {
  background: white;
  padding: 36px;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

.value-card h3 {
  color: var(--navy);
  margin-bottom: 12px;
  font-size: 1.15rem;
}

.value-card p {
  color: #666;
  font-size: 0.95rem;
}

/* ===================== PAGE: BRANDS ===================== */
.brand-header {
  background-color: var(--navy);
  padding: 80px 0;
  text-align: center;
}

.brand-header h1 {
  color: var(--text-light);
  font-size: clamp(2rem, 5vw, 3rem);
  margin-bottom: 16px;
}

.brand-header p {
  color: rgba(255,255,255,0.7);
  font-size: 1.1rem;
  max-width: 650px;
  margin: 0 auto;
}

.brand-story {
  padding: 80px 0;
  background: white;
}

.brand-story-inner {
  max-width: 760px;
  margin: 0 auto;
}

.brand-story-inner h2 {
  margin-bottom: 20px;
}

.brand-story-inner p {
  color: #555;
  font-size: 1.05rem;
  margin-bottom: 1.4em;
}

.brand-products {
  padding: 80px 0;
  background: var(--offwhite);
}

.awards-badge {
  display: inline-block;
  background: var(--orange);
  color: white;
  font-size: 13px;
  font-weight: 600;
  padding: 6px 16px;
  border-radius: 20px;
  margin-bottom: 20px;
}

/* ===================== PAGE: CONTACT ===================== */
.contact-section {
  padding: 80px 0;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  max-width: 960px;
  margin: 0 auto;
}

.contact-info h2 {
  margin-bottom: 20px;
}

.contact-info p {
  color: #555;
  margin-bottom: 20px;
}

.contact-info .maker-note {
  background: white;
  padding: 24px;
  border-radius: 8px;
  border-left: 4px solid var(--orange);
  margin-top: 32px;
}

.contact-info .maker-note p {
  margin: 0;
  font-style: italic;
  color: #555;
}

.contact-form label {
  display: block;
  font-weight: 500;
  margin-bottom: 6px;
  color: var(--navy);
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 14px 16px;
  font-family: var(--font-body);
  font-size: 16px;
  border: 2px solid #e0e0e0;
  border-radius: 6px;
  margin-bottom: 20px;
  transition: border-color 0.3s;
  background: white;
}

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

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

@media (max-width: 768px) {
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

/* ===================== BLOG INDEX ===================== */
.blog-index {
  padding: 80px 0;
}

.blog-list {
  max-width: 800px;
  margin: 0 auto;
}

.blog-list-item {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 28px;
  padding: 28px 0;
  border-bottom: 1px solid #e8e8e4;
  align-items: start;
}

.blog-list-item:first-child {
  padding-top: 0;
}

.blog-list-item .thumb {
  width: 100%;
  aspect-ratio: 16/10;
  background: var(--navy);
  border-radius: 8px;
  overflow: hidden;
}

.blog-list-item .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.blog-list-item .meta {
  font-size: 0.85rem;
  color: #999;
  margin-bottom: 6px;
}

.blog-list-item h2 {
  font-size: 1.3rem;
  margin-bottom: 8px;
}

.blog-list-item h2 a {
  color: var(--navy);
}

.blog-list-item h2 a:hover {
  color: var(--orange);
}

.blog-list-item .excerpt {
  color: #666;
  font-size: 0.95rem;
}

@media (max-width: 600px) {
  .blog-list-item {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

/* ===================== SINGLE POST ===================== */
.single-post-content {
  max-width: 760px;
  margin: 0 auto;
  padding: 60px 24px 80px;
}

.single-post-content .post-meta {
  font-size: 0.9rem;
  color: #999;
  margin-bottom: 32px;
}

.single-post-content h1 {
  margin-bottom: 16px;
}

.single-post-content h2 {
  margin-top: 48px;
  margin-bottom: 16px;
}

.single-post-content p {
  margin-bottom: 1.4em;
  color: #444;
}

.single-post-content img {
  border-radius: 8px;
  margin: 32px 0;
}

.single-post-content blockquote {
  border-left: 4px solid var(--orange);
  padding: 16px 24px;
  margin: 32px 0;
  background: white;
  border-radius: 0 8px 8px 0;
  font-style: italic;
  color: #555;
}

/* WooCommerce / Shop link button in posts */
.shop-cta {
  background: var(--navy);
  padding: 40px;
  border-radius: 12px;
  text-align: center;
  margin: 40px 0;
}

.shop-cta p {
  color: rgba(255,255,255,0.8);
  margin-bottom: 20px;
}

.shop-cta .btn {
  margin-top: 8px;
}

/* ===================== PAGINATION ===================== */
.pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 40px 0;
}

.pagination a,
.pagination span {
  display: inline-block;
  padding: 10px 16px;
  border-radius: 6px;
  font-weight: 500;
  font-size: 0.95rem;
}

.pagination .current {
  background: var(--navy);
  color: white;
}

.pagination a {
  background: white;
  color: var(--navy);
}

.pagination a:hover {
  background: var(--navy);
  color: white;
}

/* ===================== UTILITY ===================== */
.text-center { text-align: center; }
.mt-1 { margin-top: 16px; }
.mt-2 { margin-top: 32px; }
.mt-3 { margin-top: 48px; }
.mb-1 { margin-bottom: 16px; }
.mb-2 { margin-bottom: 32px; }
.mb-3 { margin-bottom: 48px; }

/* ===================== WORDPRESS SPECIFIC ===================== */
.wp-block-image { margin: 32px 0; }
.wp-block-image img { border-radius: 8px; }
.aligncenter { text-align: center; }
.alignleft { float: left; margin-right: 24px; }
.alignright { float: right; margin-left: 24px; }
.wp-caption { max-width: 100%; }
.wp-caption-text { font-size: 0.85rem; color: #999; margin-top: 8px; }
.screen-reader-text {
  clip: rect(1px, 1px, 1px, 1px);
  position: absolute !important;
  height: 1px;
  width: 1px;
  overflow: hidden;
}


/* ===================== CONTENT / HYBRID ELEMENTOR HELPERS ===================== */
.site-main--page {
  min-height: 40vh;
}
.site-main--page > .elementor,
.site-main--page > .entry-content,
.site-main--page > .wp-block-group,
.site-main--page > section:first-child {
  margin-top: 0;
}
.page-content {
  padding: 80px 0;
  background: var(--offwhite);
}
.content-block {
  max-width: 900px;
  margin: 0 auto;
}
.value-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
  margin-top: 24px;
}
.value-card {
  background: white;
  border-radius: 12px;
  padding: 28px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}
.contact-section {
  padding: 80px 0;
  background: var(--offwhite);
}
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
  align-items: start;
}
.contact-info, .contact-form {
  background: white;
  border-radius: 12px;
  padding: 32px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}
.page-hero {
  background-color: var(--navy);
  padding: 90px 0 70px;
}
.page-hero h1,
.page-hero h2,
.page-hero p {
  color: white;
}
.maker-note {
  margin-top: 20px;
  padding: 18px 20px;
  border-left: 4px solid var(--orange);
  background: rgba(232,86,58,0.08);
  border-radius: 6px;
}
.site-main .forminator-ui,
.site-main .wpforms-container {
  margin: 0;
}
@media (max-width: 768px) {
  .contact-grid,
  .footer-inner {
    grid-template-columns: 1fr;
  }
}
