/*
Theme Name: Broken Rock Homestead
Theme URI: https://brokenrockhomestead.com
Author: IdeaPro
Description: A warm, editorial storefront theme for Broken Rock Homestead.
Version: 1.0.0
Text Domain: brokenrock
*/

:root {
  --ink: #171b12;
  --pine: #26351f;
  --pine-dark: #151d12;
  --cream: #f8f1e4;
  --paper: #fffaf0;
  --gold: #dfa33c;
  --rust: #a95725;
  --muted: #6e6a5f;
  --line: rgba(37, 48, 29, .16);
  --serif: Georgia, "Times New Roman", serif;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: var(--sans); line-height: 1.55; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
.wrap { width: min(1180px, calc(100% - 40px)); margin-inline: auto; }
.site-header { position: sticky; top: 0; z-index: 20; background: rgba(255,250,240,.96); border-bottom: 1px solid var(--line); backdrop-filter: blur(12px); }
.nav { min-height: 76px; display: flex; align-items: center; gap: 32px; }
.brand { display: flex; align-items: center; gap: 11px; margin-right: auto; font: 700 19px/1 var(--serif); letter-spacing: .02em; }
.brand img { width: 82px; height: 71px; object-fit: contain; }
.menu { display: flex; align-items: center; gap: 26px; font-size: 14px; font-weight: 700; }
.menu a { padding: 27px 0 24px; border-bottom: 3px solid transparent; }
.menu a:hover, .menu .current { color: var(--rust); border-color: var(--gold); }
.pickup { background: var(--pine); color: #fff; padding: 12px 17px; border-radius: 5px; font-size: 13px; font-weight: 800; }
.nav-toggle { display: none; border: 0; background: transparent; font-size: 28px; }

.hero { min-height: 575px; display: grid; align-items: center; color: #fff; background-size: cover; background-position: center; position: relative; overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(15,18,11,.88) 0%, rgba(15,18,11,.62) 42%, rgba(15,18,11,.08) 75%); }
.hero::after { content: ""; position: absolute; inset: auto 0 0; height: 18px; background: linear-gradient(175deg, transparent 48%, var(--cream) 50%); }
.hero-home { background-image: url('assets/images/hero-home.webp'); background-position: center 42%; }
.hero-story { background-image: url('assets/images/hero-story.webp'); }
.hero-blog { background-image: url('assets/images/hero-blog.webp'); }
.hero-store { background-image: url('assets/images/hero-store.webp'); }
.hero-content { position: relative; z-index: 1; max-width: 680px; padding: 80px 0 92px; }
.eyebrow { margin: 0 0 12px; color: var(--gold); font-size: 13px; font-weight: 900; letter-spacing: .22em; text-transform: uppercase; }
h1, h2, h3 { font-family: var(--serif); line-height: 1.03; margin-top: 0; }
h1 { margin-bottom: 20px; font-size: clamp(50px, 7vw, 82px); }
h2 { margin-bottom: 15px; font-size: clamp(38px, 5vw, 56px); }
h3 { margin-bottom: 9px; font-size: 24px; }
.hero p:not(.eyebrow) { max-width: 580px; margin: 0 0 28px; font-size: clamp(17px, 2vw, 21px); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.button { display: inline-block; padding: 13px 22px; border: 1px solid var(--gold); border-radius: 4px; background: var(--gold); color: #171b12; font-weight: 900; }
.button:hover { filter: brightness(.95); transform: translateY(-1px); }
.button-outline { border-color: rgba(255,255,255,.72); background: rgba(15,18,11,.35); color: #fff; }

.icon-strip { background: var(--cream); border-bottom: 1px solid var(--line); }
.icon-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.icon-item { padding: 34px 18px; text-align: center; border-right: 1px solid var(--line); }
.icon-item:last-child { border-right: 0; }
.icon { display: block; margin-bottom: 7px; font-size: 34px; }
.icon-item strong { display: block; font-size: 12px; letter-spacing: .16em; text-transform: uppercase; }
.icon-item small { color: var(--muted); }
.section { padding: 78px 0; }
.section-cream { background: var(--cream); }
.section-pine { background: var(--pine); color: #fff; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 28px; }
.section-head p { margin: 0; color: var(--muted); }
.text-link { color: var(--rust); font-weight: 900; white-space: nowrap; }
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.card { overflow: hidden; background: var(--paper); border: 1px solid var(--line); border-radius: 6px; box-shadow: 0 8px 24px rgba(24,30,18,.06); }
.card img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.card-body { padding: 18px; }
.card h3 { font-size: 21px; }
.card p { margin: 0 0 14px; color: var(--muted); }
.price { font-weight: 900; color: var(--ink); }
.split { display: grid; grid-template-columns: 1fr 1fr; align-items: stretch; }
.split-media { min-height: 460px; background-size: cover; background-position: center; }
.split-copy { padding: 72px clamp(30px, 7vw, 90px); background: var(--cream); }
.split-copy p { max-width: 600px; color: #47463f; }
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.blog-card .meta { color: var(--rust); font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }

.page-hero { min-height: 470px; }
.story-block { display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: 65px; }
.story-block img { width: 100%; min-height: 380px; object-fit: cover; border-radius: 52% 48% 46% 54% / 9% 10% 9% 10%; }
.values { display: grid; grid-template-columns: repeat(4, 1fr); text-align: center; }
.value { padding: 20px 28px; border-right: 1px solid rgba(255,255,255,.28); }
.value:last-child { border-right: 0; }
.value .icon { color: var(--gold); }
.life-grid { display: grid; grid-template-columns: 1.1fr .7fr .9fr; gap: 14px; align-items: stretch; }
.life-grid .copy { padding-right: 30px; }
.life-grid img { width: 100%; height: 100%; min-height: 310px; object-fit: cover; border-radius: 5px; }
.life-stack { display: grid; gap: 14px; }
.life-stack img { min-height: 148px; }

.store-categories { display: grid; grid-template-columns: repeat(6, 1fr); gap: 1px; background: var(--line); }
.store-categories a { padding: 24px 8px; background: var(--cream); text-align: center; font-size: 12px; font-weight: 900; letter-spacing: .13em; text-transform: uppercase; }
.store-categories span { display: block; font-size: 30px; margin-bottom: 4px; }
.store-layout { display: grid; grid-template-columns: 225px 1fr; gap: 30px; }
.filters { padding: 22px; align-self: start; background: var(--cream); border: 1px solid var(--line); border-radius: 5px; }
.filters h3 { font-size: 19px; }
.filters label { display: block; margin: 10px 0; color: #4b4d43; }
.products { grid-template-columns: repeat(4, 1fr); }
.product .stock { color: #4d742d; font-size: 13px; font-weight: 800; }
.product .button { width: 100%; padding: 10px; text-align: center; background: var(--pine); border-color: var(--pine); color: #fff; }

.blog-layout { display: grid; grid-template-columns: 1fr 290px; gap: 32px; }
.post-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.sidebar { align-self: start; }
.side-card { margin-bottom: 20px; padding: 24px; background: var(--cream); border: 1px solid var(--line); border-radius: 6px; }
.side-card.section-pine { background: var(--pine); color: #fff; }
.side-card ul { margin: 0; padding: 0; list-style: none; }
.side-card li { padding: 9px 0; border-bottom: 1px solid var(--line); }
.side-card li:last-child { border-bottom: 0; }
.newsletter { text-align: center; background: var(--pine); color: #fff; }
.newsletter-inner { padding: 55px 0; }
.newsletter form { display: flex; justify-content: center; gap: 10px; max-width: 650px; margin: 22px auto 0; }
.newsletter input { flex: 1; min-width: 0; padding: 14px 16px; border: 0; border-radius: 4px; font: inherit; }
.newsletter button { border: 0; cursor: pointer; }
.site-footer { padding: 55px 0 30px; background: var(--pine-dark); color: #f4ebdc; }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 44px; }
.footer-brand img { width: 170px; padding: 8px; background: var(--cream); border-radius: 6px; }
.footer-title { margin-bottom: 12px; font-weight: 900; }
.footer-links { margin: 0; padding: 0; list-style: none; color: #d7d1c5; font-size: 14px; }
.footer-links li { margin: 7px 0; }
.copyright { margin-top: 36px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.12); color: #aaa99f; font-size: 12px; }
.content { padding: 70px 0; }
.content article { max-width: 780px; }

@media (max-width: 900px) {
  .menu { display: none; }
  .pickup { margin-left: auto; }
  .hero { min-height: 520px; }
  .cards, .products { grid-template-columns: repeat(2, 1fr); }
  .values { grid-template-columns: repeat(2, 1fr); }
  .value:nth-child(2) { border-right: 0; }
  .story-block, .blog-layout, .store-layout { grid-template-columns: 1fr; }
  .filters { display: none; }
  .life-grid { grid-template-columns: 1fr 1fr; }
  .life-grid .copy { grid-column: 1 / -1; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 620px) {
  .wrap { width: min(100% - 28px, 1180px); }
  .nav { min-height: 65px; }
  .brand span { display: none; }
  .brand img { width: 68px; height: 59px; }
  .pickup { padding: 9px 11px; font-size: 12px; }
  .hero { min-height: 560px; background-position: 58% center; }
  .hero::before { background: rgba(15,18,11,.58); }
  .hero-content { padding: 75px 0; }
  .icon-grid, .store-categories { grid-template-columns: repeat(2, 1fr); }
  .icon-item:nth-child(2) { border-right: 0; }
  .section { padding: 55px 0; }
  .section-head { align-items: start; flex-direction: column; }
  .cards, .products, .blog-grid, .post-list, .split, .values, .life-grid, .footer-grid { grid-template-columns: 1fr; }
  .split-media { min-height: 320px; }
  .value { border-right: 0; border-bottom: 1px solid rgba(255,255,255,.2); }
  .newsletter form { flex-direction: column; }
}
