/*
Theme Name:        Hearth & Grain Pro
Theme URI:         https://yourwebsite.com/hearth-grain-pro
Author:            Your Name
Author URI:        https://yourwebsite.com
Description:       PRO VERSION — The complete micro bakery theme with colour schemes, dark mode, lightbox gallery, Instagram feed section, blog/recipes template, and WooCommerce-ready structure. Includes everything in the free version plus premium features and priority support.
Version:           1.0.0
Requires at least: 6.0
Tested up to:      6.5
Requires PHP:      7.4
License:           GNU General Public License v2 or later
License URI:       http://www.gnu.org/licenses/gpl-2.0.html
Text Domain:       hearth-grain
Tags:              one-column, two-columns, custom-colors, custom-logo, custom-menu, featured-images, footer-widgets, full-width-template, theme-options, translation-ready, blog, food-and-drink, portfolio

Hearth & Grain WordPress Theme, Copyright 2026 Your Name
Hearth & Grain is distributed under the terms of the GNU GPL
*/

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

:root {
  --cream:     #f5f0e8;
  --warm-off:  #ede7d9;
  --mocha:     #2c1f14;
  --mocha-mid: #5c3d28;
  --gold:      #b8882a;
  --gold-light:#d4a84b;
  --text:      #2c1f14;
  --muted:     #7a6654;
  --serif:     'Cormorant Garamond', Georgia, serif;
  --sans:      'Jost', sans-serif;
}

html { scroll-behavior: smooth; }

body {
  background: var(--cream);
  color: var(--text);
  font-family: var(--sans);
  font-weight: 300;
  line-height: 1.7;
  overflow-x: hidden;
}

/* Grain overlay */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-size: 200px;
}

/* === NAVIGATION === */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.4rem 4rem;
  background: rgba(245,240,232,0.88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(44,31,20,0.08);
  transition: padding 0.3s;
}

.site-header.scrolled { padding: 0.9rem 4rem; }

.site-branding .site-title a {
  font-family: var(--serif);
  font-size: 1.45rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--mocha);
  text-decoration: none;
}

.main-navigation ul {
  display: flex;
  gap: 2.5rem;
  list-style: none;
}

.main-navigation a {
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--mocha);
  text-decoration: none;
  position: relative;
  transition: color 0.2s;
}

.main-navigation a::after {
  content: '';
  position: absolute;
  bottom: -3px; left: 0;
  width: 0; height: 1px;
  background: var(--gold);
  transition: width 0.3s ease;
}

.main-navigation a:hover { color: var(--gold); }
.main-navigation a:hover::after { width: 100%; }

.header-cta a {
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cream);
  background: var(--mocha);
  padding: 0.65rem 1.6rem;
  text-decoration: none;
  transition: background 0.25s, transform 0.2s;
}

.header-cta a:hover {
  background: var(--mocha-mid);
  transform: translateY(-1px);
}

/* === HERO === */
.hero-section {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding-top: 80px;
  overflow: hidden;
}

.hero-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 6rem 4rem;
  animation: fadeUp 1s ease both;
}

.hero-eyebrow {
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.hero-eyebrow::before {
  content: '';
  display: inline-block;
  width: 2rem; height: 1px;
  background: var(--gold);
}

.hero-content h1 {
  font-family: var(--serif);
  font-size: clamp(3.2rem, 5vw, 5.5rem);
  font-weight: 300;
  line-height: 1.05;
  color: var(--mocha);
  margin-bottom: 1.8rem;
}

.hero-content h1 em {
  font-style: italic;
  font-weight: 300;
  color: var(--mocha-mid);
}

.hero-desc {
  font-size: 1rem;
  color: var(--muted);
  max-width: 420px;
  margin-bottom: 2.8rem;
  line-height: 1.8;
}

.btn-group {
  display: flex;
  gap: 1.2rem;
  align-items: center;
  flex-wrap: wrap;
}

.btn-primary {
  font-family: var(--sans);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cream);
  background: var(--mocha);
  padding: 1rem 2.4rem;
  text-decoration: none;
  display: inline-block;
  transition: background 0.25s, transform 0.2s;
}

.btn-primary:hover { background: var(--gold); transform: translateY(-2px); }

.btn-secondary {
  font-family: var(--sans);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--mocha);
  text-decoration: none;
  border-bottom: 1px solid var(--mocha);
  padding-bottom: 2px;
  transition: color 0.2s, border-color 0.2s;
}

.btn-secondary:hover { color: var(--gold); border-color: var(--gold); }

.hero-visual {
  position: relative;
  overflow: hidden;
  background: var(--mocha);
  animation: fadeIn 1.2s ease both 0.3s;
}

.hero-visual img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}

.hero-badge {
  position: absolute;
  bottom: 2.5rem; left: -2rem;
  background: var(--gold);
  color: var(--cream);
  font-family: var(--serif);
  font-size: 0.85rem;
  font-style: italic;
  padding: 1rem 1.8rem;
  box-shadow: 0 8px 32px rgba(44,31,20,0.3);
}

/* === MARQUEE === */
.marquee-strip {
  background: var(--mocha);
  padding: 1rem 0;
  overflow: hidden;
}

.marquee-track {
  display: flex;
  animation: marquee 20s linear infinite;
  white-space: nowrap;
}

.marquee-item {
  font-family: var(--serif);
  font-size: 0.9rem;
  font-style: italic;
  color: var(--gold-light);
  padding: 0 2.5rem;
  flex-shrink: 0;
}

/* === ABOUT === */
.about-section {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  min-height: 80vh;
  align-items: center;
}

.about-image-col {
  height: 100%;
  min-height: 600px;
  overflow: hidden;
  position: relative;
}

.about-image-col img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}

.about-image-col::after {
  content: 'EST. 2019';
  position: absolute;
  right: 1.5rem; bottom: 3rem;
  writing-mode: vertical-rl;
  font-family: var(--sans);
  font-size: 0.65rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--muted);
  opacity: 0.4;
}

.about-content { padding: 6rem 5rem; }

.section-label {
  font-family: var(--sans);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.2rem;
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.section-label::before {
  content: '';
  width: 1.5rem; height: 1px;
  background: var(--gold);
  display: inline-block;
}

.about-content h2 {
  font-family: var(--serif);
  font-size: clamp(2.2rem, 3.5vw, 3.8rem);
  font-weight: 300;
  line-height: 1.1;
  color: var(--mocha);
  margin-bottom: 1.8rem;
}

.about-content h2 em { font-style: italic; color: var(--mocha-mid); }

.about-content p { color: var(--muted); margin-bottom: 1.2rem; font-size: 0.97rem; }

.about-stats {
  display: flex;
  gap: 3rem;
  margin-top: 3rem;
  padding-top: 2.5rem;
  border-top: 1px solid rgba(44,31,20,0.1);
}

.stat-num {
  font-family: var(--serif);
  font-size: 2.8rem;
  font-weight: 300;
  color: var(--mocha);
  line-height: 1;
}

.stat-label {
  font-family: var(--sans);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 0.3rem;
}

/* === PRODUCTS === */
.products-section {
  padding: 7rem 4rem;
  background: var(--mocha);
}

.products-header {
  text-align: center;
  margin-bottom: 4.5rem;
}

.products-header .section-label {
  justify-content: center;
  color: var(--gold-light);
}

.products-header .section-label::before { background: var(--gold-light); }

.products-header h2 {
  font-family: var(--serif);
  font-size: clamp(2.4rem, 4vw, 4rem);
  font-weight: 300;
  color: var(--cream);
  line-height: 1.1;
}

.products-header h2 em { font-style: italic; color: var(--gold-light); }

.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5px;
  max-width: 1100px;
  margin: 0 auto;
}

.product-card {
  background: rgba(245,240,232,0.04);
  border: 1px solid rgba(245,240,232,0.07);
  overflow: hidden;
  transition: transform 0.3s ease, background 0.3s;
}

.product-card:hover {
  background: rgba(245,240,232,0.08);
  transform: translateY(-4px);
}

.product-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
  border-bottom: 1px solid rgba(245,240,232,0.06);
}

.product-info { padding: 1.8rem; }

.product-category {
  font-family: var(--sans);
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.6rem;
}

.product-name {
  font-family: var(--serif);
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--cream);
  margin-bottom: 0.5rem;
}

.product-desc {
  font-size: 0.82rem;
  color: rgba(245,240,232,0.5);
  margin-bottom: 1.2rem;
  line-height: 1.7;
}

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

.product-price {
  font-family: var(--serif);
  font-size: 1.2rem;
  color: var(--gold-light);
  font-weight: 300;
}

.product-order {
  font-family: var(--sans);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(245,240,232,0.5);
  text-decoration: none;
  border-bottom: 1px solid rgba(245,240,232,0.2);
  padding-bottom: 1px;
  transition: color 0.2s, border-color 0.2s;
}

.product-order:hover { color: var(--gold-light); border-color: var(--gold-light); }

/* === PROCESS === */
.process-section {
  padding: 7rem 4rem;
  background: var(--cream);
}

.process-header {
  max-width: 560px;
  margin-bottom: 5rem;
}

.process-header h2 {
  font-family: var(--serif);
  font-size: clamp(2.2rem, 3.5vw, 3.5rem);
  font-weight: 300;
  color: var(--mocha);
  line-height: 1.1;
  margin-bottom: 1rem;
}

.process-header p { color: var(--muted); font-size: 0.95rem; }

.process-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: rgba(44,31,20,0.08);
}

.step {
  background: var(--cream);
  padding: 3rem 2.5rem;
  position: relative;
  transition: background 0.3s;
}

.step:hover { background: var(--warm-off); }

.step-num {
  font-family: var(--serif);
  font-size: 5rem;
  font-weight: 300;
  color: rgba(44,31,20,0.07);
  line-height: 1;
  margin-bottom: 1.5rem;
  display: block;
}

.step-title {
  font-family: var(--serif);
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--mocha);
  margin-bottom: 0.8rem;
}

.step-desc { font-size: 0.85rem; color: var(--muted); line-height: 1.75; }

.step-icon {
  position: absolute;
  top: 2.5rem; right: 2rem;
  font-size: 1.4rem;
  opacity: 0.3;
}

/* === TESTIMONIALS === */
.testimonials-section {
  background: var(--warm-off);
  padding: 7rem 4rem;
}

.testimonials-header {
  text-align: center;
  margin-bottom: 4rem;
}

.testimonials-header h2 {
  font-family: var(--serif);
  font-size: clamp(2rem, 3vw, 3.2rem);
  font-weight: 300;
  color: var(--mocha);
}

.testimonials-header h2 em { font-style: italic; }

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  max-width: 1100px;
  margin: 0 auto;
}

.testi-card {
  background: var(--cream);
  padding: 2.5rem;
  border-top: 3px solid var(--gold);
  transition: transform 0.3s;
}

.testi-card:hover { transform: translateY(-4px); }

.testi-quote {
  font-family: var(--serif);
  font-size: 1.1rem;
  font-style: italic;
  color: var(--mocha);
  line-height: 1.7;
  margin-bottom: 2rem;
}

.testi-quote::before {
  content: '\201C';
  font-size: 3rem;
  color: var(--gold);
  line-height: 0.5;
  display: block;
  margin-bottom: 0.5rem;
}

.testi-author {
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.testi-stars { color: var(--gold); font-size: 0.8rem; margin-bottom: 0.8rem; }

/* === GALLERY STRIP === */
.gallery-strip {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  height: 260px;
}

.gallery-strip img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.gallery-strip .gallery-cell:hover img { transform: scale(1.05); }

.gallery-cell { overflow: hidden; }

/* === ORDER / CONTACT === */
.order-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 70vh;
}

.order-content {
  background: var(--mocha);
  padding: 6rem 5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.order-content .section-label { color: var(--gold-light); }
.order-content .section-label::before { background: var(--gold-light); }

.order-content h2 {
  font-family: var(--serif);
  font-size: clamp(2.2rem, 3.5vw, 3.8rem);
  font-weight: 300;
  color: var(--cream);
  line-height: 1.1;
  margin-bottom: 1.5rem;
}

.order-content h2 em { font-style: italic; color: var(--gold-light); }
.order-content p { color: rgba(245,240,232,0.6); margin-bottom: 0.8rem; font-size: 0.95rem; }

.order-info { margin-top: 2.5rem; display: flex; flex-direction: column; gap: 1rem; }

.order-info-item { display: flex; align-items: flex-start; gap: 1rem; }

.order-info-icon { color: var(--gold); font-size: 1rem; margin-top: 0.1rem; flex-shrink: 0; }

.order-info-text { font-size: 0.87rem; color: rgba(245,240,232,0.6); line-height: 1.6; }

.order-info-text strong {
  color: var(--cream);
  font-weight: 400;
  display: block;
  font-family: var(--sans);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 0.2rem;
}

.order-form-col {
  background: var(--warm-off);
  padding: 6rem 5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.order-form-col h3 {
  font-family: var(--serif);
  font-size: 1.8rem;
  font-weight: 300;
  color: var(--mocha);
  margin-bottom: 2.5rem;
}

.form-group { margin-bottom: 1.5rem; }

.form-label {
  font-family: var(--sans);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  display: block;
  margin-bottom: 0.5rem;
}

.form-input, .form-select, .form-textarea {
  width: 100%;
  background: var(--cream);
  border: 1px solid rgba(44,31,20,0.15);
  color: var(--text);
  font-family: var(--sans);
  font-size: 0.9rem;
  padding: 0.9rem 1.1rem;
  outline: none;
  transition: border-color 0.2s;
  appearance: none;
}

.form-input:focus, .form-select:focus, .form-textarea:focus { border-color: var(--gold); }

.form-textarea { height: 110px; resize: vertical; line-height: 1.6; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

.form-submit {
  width: 100%;
  background: var(--mocha);
  color: var(--cream);
  border: none;
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 1.1rem;
  cursor: pointer;
  transition: background 0.25s, transform 0.2s;
  margin-top: 0.5rem;
}

.form-submit:hover { background: var(--gold); transform: translateY(-1px); }

/* === FOOTER === */
.site-footer {
  background: #1a0f08;
  color: rgba(245,240,232,0.45);
  padding: 4rem;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 3rem;
  max-width: 1200px;
  margin: 0 auto;
}

.footer-brand p { font-size: 0.83rem; line-height: 1.7; max-width: 260px; }

.footer-col h4 {
  font-family: var(--sans);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.2rem;
}

.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 0.6rem; }

.footer-col ul a { font-size: 0.85rem; color: rgba(245,240,232,0.45); text-decoration: none; transition: color 0.2s; }
.footer-col ul a:hover { color: var(--gold-light); }

.footer-bottom {
  max-width: 1200px;
  margin: 3rem auto 0;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(245,240,232,0.06);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.75rem;
}

/* === ANIMATIONS === */
@keyframes fadeUp { from { opacity:0; transform: translateY(24px); } to { opacity:1; transform: translateY(0); } }
@keyframes fadeIn { from { opacity:0; } to { opacity:1; } }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

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

/* === RESPONSIVE === */
@media (max-width: 1024px) {
  .site-header { padding: 1.2rem 2rem; }
  .hero-section { grid-template-columns: 1fr; min-height: auto; }
  .hero-visual { min-height: 50vw; }
  .hero-content { padding: 4rem 2rem; }
  .about-section { grid-template-columns: 1fr; }
  .about-image-col { min-height: 300px; }
  .about-content { padding: 3rem 2rem; }
  .products-grid { grid-template-columns: 1fr 1fr; }
  .process-steps { grid-template-columns: 1fr 1fr; }
  .testimonials-grid { grid-template-columns: 1fr; }
  .gallery-strip { grid-template-columns: repeat(3, 1fr); height: auto; }
  .gallery-cell { min-height: 160px; }
  .order-section { grid-template-columns: 1fr; }
  .order-content { padding: 4rem 2rem; }
  .order-form-col { padding: 3rem 2rem; }
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .main-navigation { display: none; }
}

@media (max-width: 640px) {
  .products-grid { grid-template-columns: 1fr; }
  .process-steps { grid-template-columns: 1fr; }
  .gallery-strip { grid-template-columns: 1fr 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .about-stats { flex-direction: column; gap: 1.5rem; }
  .footer-inner { grid-template-columns: 1fr; }
  .products-section { padding: 4rem 1.5rem; }
  .process-section { padding: 4rem 1.5rem; }
  .testimonials-section { padding: 4rem 1.5rem; }
}
