/* Happy Maxxy's Farmhouse — main styles
   Layout: farmhouse kitchen — kraft & cream bands, warm serif headlines, handwritten notes,
   photo-led sections that stack to one column on phones. */
:root {
  --hm-cream: #F7F1E6;
  --hm-kraft: #E9DCC4;
  --hm-paper: #FFFDF8;
  --hm-ink: #2B2118;
  --hm-ink-soft: #4A3D31;
  --hm-muted: #6B5B4B;
  --hm-line: #D8C9AE;
  --hm-red: #A8232A;
  --hm-red-dark: #7E1A20;
  --hm-gold: #E8B04A;
  --hm-bark: #3A2E23;
  --hm-on-dark: #E4D8C4;
  --hm-sage: #5E7A3A;
  --hm-display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --hm-body: 'Work Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --hm-hand: 'Caveat', 'Segoe Print', 'Bradley Hand', cursive;
  --hm-radius: 22px;
  --hm-max: 1240px;
  color-scheme: light;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; } }
body { margin: 0; background: var(--hm-cream); color: var(--hm-ink); font-family: var(--hm-body); font-size: 17px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--hm-red); }
a:hover { color: var(--hm-red-dark); }
:focus-visible { outline: 3px solid var(--hm-gold); outline-offset: 3px; }
h1, h2, h3, h4 { font-family: var(--hm-display); font-weight: 700; line-height: 1.1; margin: 0; text-wrap: balance; color: inherit; }
h2 { font-size: clamp(32px, 4vw, 46px); }
p { margin: 0; }
.screen-reader-text { border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%); height: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute !important; width: 1px; word-wrap: normal !important; }
.screen-reader-text:focus { background: var(--hm-paper); clip: auto !important; clip-path: none; color: var(--hm-ink); display: block; height: auto; left: 8px; padding: 12px 18px; top: 8px; width: auto; z-index: 100000; }

.hm-wrap { max-width: var(--hm-max); margin: 0 auto; padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px)); }
.hm-section { padding-block: clamp(56px, 8vw, 88px); }
.hm-band-kraft { background: var(--hm-kraft); }
.hm-band-paper { background: var(--hm-paper); border-top: 1px solid var(--hm-kraft); border-bottom: 1px solid var(--hm-kraft); }
.hm-band-dark { background: var(--hm-ink); color: var(--hm-cream); }
.hm-hand { font-family: var(--hm-hand); font-weight: 700; color: var(--hm-red); font-size: clamp(24px, 2.6vw, 30px); line-height: 1.2; }
.hm-lead { font-size: 18px; line-height: 1.65; color: var(--hm-ink-soft); }
.hm-section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px 32px; margin-bottom: 36px; }
.hm-section-head > div { display: flex; flex-direction: column; gap: 6px; max-width: 640px; }
.hm-section-head .hm-lead { max-width: 420px; }
.hm-section-head.is-center { justify-content: center; text-align: center; }

/* Buttons */
.hm-btn, .hm-btn:visited { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 12px 28px; border-radius: 999px; font-weight: 600; font-size: 17px; line-height: 1.2; text-decoration: none; border: 2px solid transparent; cursor: pointer; font-family: var(--hm-body); transition: transform .15s ease, background-color .15s ease, color .15s ease; }
.hm-btn:hover { transform: translateY(-1px); }
.hm-btn-red, .hm-btn-red:visited { background: var(--hm-red); color: #FFFFFF; }
.hm-btn-red:hover { background: var(--hm-red-dark); color: #FFFFFF; }
.hm-btn-outline, .hm-btn-outline:visited { border-color: var(--hm-ink); color: var(--hm-ink); background: transparent; }
.hm-btn-outline:hover { background: var(--hm-ink); color: var(--hm-cream); }
.hm-btn-gold, .hm-btn-gold:visited { background: var(--hm-gold); color: var(--hm-ink); }
.hm-btn-gold:hover { background: #F0C064; color: var(--hm-ink); }
.hm-btn-sm { min-height: 42px; padding: 8px 18px; font-size: 15px; }

/* Top bar & header */
.hm-topbar { background: var(--hm-ink); color: var(--hm-cream); font-size: 14px; text-align: center; }
.hm-topbar .hm-wrap { padding-block: 10px; }
.hm-header .hm-wrap { padding-block: 16px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; }
.hm-logo { display: block; line-height: 0; }
.hm-logo img, .hm-logo .custom-logo { height: 58px; width: auto; max-width: 260px; object-fit: contain; }
.hm-header-tools { display: flex; align-items: center; gap: 10px; }
.hm-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 26px; margin-left: auto; }
.hm-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 26px; }
.hm-nav li { position: relative; }
.hm-nav a { color: var(--hm-ink); text-decoration: none; font-weight: 500; padding-block: 8px; display: inline-block; }
.hm-nav a:hover, .hm-nav .current-menu-item > a { color: var(--hm-red); }
.hm-nav .sub-menu { display: none; position: absolute; top: 100%; left: -16px; min-width: 200px; background: var(--hm-paper); border: 1px solid var(--hm-kraft); border-radius: 14px; padding: 8px 16px; flex-direction: column; align-items: stretch; gap: 0; box-shadow: 0 12px 30px rgba(43,33,24,.12); z-index: 20; }
.hm-nav li:hover > .sub-menu, .hm-nav li:focus-within > .sub-menu { display: flex; }
.hm-cart-link { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 46px; height: 46px; border-radius: 50%; color: var(--hm-ink); text-decoration: none; }
.hm-cart-link:hover { background: var(--hm-kraft); color: var(--hm-ink); }
.hm-cart-count { position: absolute; top: 2px; right: 0; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 999px; background: var(--hm-red); color: #FFFFFF; font-size: 12px; font-weight: 600; line-height: 20px; text-align: center; font-variant-numeric: tabular-nums; }
.hm-cart-count.is-empty { display: none; }
.hm-header .hm-shop-btn { min-height: 44px; padding: 10px 22px; font-size: 16px; }
.hm-menu-btn { display: none; align-items: center; gap: 8px; min-height: 44px; padding: 8px 16px; border: 2px solid var(--hm-ink); border-radius: 999px; background: transparent; color: var(--hm-ink); font: 600 16px var(--hm-body); cursor: pointer; }
@media (max-width: 1000px) {
  .hm-menu-btn { display: inline-flex; }
  .hm-header .hm-shop-btn { display: none; }
  .hm-nav { display: none; width: 100%; order: 3; margin-left: 0; flex-direction: column; align-items: stretch; gap: 0; border-top: 1px solid var(--hm-line); padding-top: 8px; }
  .hm-nav.is-open { display: flex; }
  .hm-nav ul { flex-direction: column; align-items: stretch; gap: 0; }
  .hm-nav a { display: block; padding: 12px 4px; border-bottom: 1px solid var(--hm-kraft); }
  .hm-nav .sub-menu { display: flex; position: static; box-shadow: none; border: 0; padding: 0 0 0 16px; background: transparent; }
  .hm-nav a.hm-btn { display: flex; justify-content: center; margin-top: 12px; padding: 12px 28px; border-bottom: 0; color: #FFFFFF; }
  .hm-header .hm-wrap { flex-wrap: wrap; column-gap: 12px; }
  .hm-logo { flex: 1 1 auto; min-width: 0; }
  .hm-logo img, .hm-logo .custom-logo { height: 42px; max-width: 100%; }
  .hm-header-tools { flex: 0 0 auto; gap: 6px; }
}
@media (max-width: 380px) {
  .hm-logo img, .hm-logo .custom-logo { height: 36px; }
  .hm-menu-btn { padding: 8px 12px; }
}
@media (min-width: 1001px) { .hm-nav .hm-nav-shop { display: none; } }

/* Hero */
.hm-hero .hm-wrap { padding-block: 40px 88px; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.hm-hero h1 { font-size: clamp(40px, 5.4vw, 66px); line-height: 1.04; letter-spacing: -0.01em; margin-top: 6px; }
.hm-hero .hm-lead { margin-top: 22px; font-size: 19px; max-width: 520px; }
.hm-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }
.hm-ticks { list-style: none; margin: 34px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 24px; font-size: 15px; font-weight: 500; color: var(--hm-ink-soft); }
.hm-ticks li { display: flex; align-items: center; gap: 8px; }
.hm-ticks svg { flex: 0 0 auto; color: var(--hm-sage); }
.hm-hero-photo { position: relative; }
.hm-hero-photo > img { width: 100%; aspect-ratio: 4 / 4.6; object-fit: cover; border-radius: 28px; }
.hm-hero-note { position: absolute; left: -28px; bottom: -32px; width: 230px; background: var(--hm-paper); padding: 12px 12px 14px; border-radius: 16px; box-shadow: 0 14px 34px rgba(43, 33, 24, 0.18); }
.hm-hero-note img { width: 100%; aspect-ratio: 23 / 16; object-fit: cover; border-radius: 10px; }
.hm-hero-note p { font-family: var(--hm-hand); font-size: 22px; font-weight: 600; margin: 10px 4px 0; line-height: 1.2; }
@media (max-width: 900px) {
  .hm-hero .hm-wrap { grid-template-columns: minmax(0, 1fr); gap: 40px; padding-block: 24px 72px; }
  .hm-hero-note { left: 12px; bottom: -28px; width: min(46%, 200px); }
  .hm-hero-note p { font-size: 18px; }
}

/* Grids & cards */
.hm-grid { display: grid; gap: 24px; }
.hm-grid-4 { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.hm-grid-3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.hm-flavor { background: var(--hm-paper); border-radius: var(--hm-radius); overflow: hidden; display: flex; flex-direction: column; }
.hm-flavor-img { display: block; }
.hm-flavor img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.hm-flavor-body { padding: 20px 22px 22px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.hm-flavor h3 { font-size: 24px; }
.hm-flavor h3 a { color: inherit; text-decoration: none; }
.hm-flavor h3 a:hover { color: var(--hm-red); }
.hm-flavor-text { font-size: 15px; color: var(--hm-ink-soft); line-height: 1.55; flex: 1; }
.hm-flavor-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-top: 6px; }
.hm-price { font-family: var(--hm-display); font-weight: 700; font-size: 20px; font-variant-numeric: tabular-nums; }
.hm-price del { opacity: .55; font-weight: 500; }
.hm-price ins { text-decoration: none; }
.hm-note-line { margin-top: 28px; text-align: center; font-size: 15px; color: var(--hm-ink-soft); }

/* Jerky */
.hm-jerky { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 48px; align-items: center; }
.hm-pill { display: inline-block; align-self: flex-start; background: var(--hm-red); color: #FFFFFF; font-size: 13px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; padding: 6px 12px; border-radius: 999px; }
.hm-jerky-copy { display: flex; flex-direction: column; gap: 16px; }
.hm-price-list { list-style: none; margin: 12px 0 0; padding: 0; border-top: 1px solid var(--hm-line); }
.hm-price-list li { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px 16px; padding: 14px 0; border-bottom: 1px solid var(--hm-line); font-size: 18px; }
.hm-price-list .hm-item-name { flex: 1 1 200px; min-width: 0; }
.hm-price-list .hm-item-name a { color: var(--hm-ink); text-decoration: none; }
.hm-price-list .hm-item-name a:hover { color: var(--hm-red); }
.hm-price-list .hm-item-buy { display: flex; align-items: center; gap: 14px; }
.hm-jerky-photos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.hm-jerky-photos img { width: 100%; height: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--hm-radius); }
@media (max-width: 900px) { .hm-jerky { grid-template-columns: minmax(0, 1fr); } }

/* Bulk & wholesale */
.hm-ship-note { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 16px; }
.hm-ship-note svg { color: var(--hm-red); flex: 0 0 auto; }
.hm-price-card { background: var(--hm-paper); border-radius: var(--hm-radius); padding: 30px 28px; display: flex; flex-direction: column; gap: 14px; }
.hm-price-card h3 { font-size: 26px; }
.hm-price-big { display: flex; align-items: baseline; gap: 10px; }
.hm-price-big strong { font-family: var(--hm-display); font-size: 54px; line-height: 1; color: var(--hm-red); font-variant-numeric: tabular-nums; }
.hm-price-big span { font-size: 17px; color: var(--hm-ink-soft); }
.hm-price-card ul { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; color: var(--hm-ink-soft); flex: 1; }
.hm-price-card .hm-btn { align-self: flex-start; margin-top: 6px; }
.hm-price-card.is-featured { background: var(--hm-ink); color: var(--hm-cream); }
.hm-price-card.is-featured .hm-price-big strong { color: var(--hm-gold); }
.hm-price-card.is-featured .hm-price-big span, .hm-price-card.is-featured ul { color: var(--hm-on-dark); }
.hm-cta-row { display: flex; justify-content: center; margin-top: 36px; }

/* Story */
.hm-story { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 56px; align-items: center; }
.hm-story img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 28px; }
.hm-story-copy { display: flex; flex-direction: column; gap: 16px; }
.hm-story-copy p:not(.hm-hand):not(.hm-signoff) { font-size: 18px; line-height: 1.7; color: var(--hm-ink-soft); max-width: 60ch; }
.hm-signoff { font-family: var(--hm-hand); font-size: 30px; font-weight: 600; color: var(--hm-ink); line-height: 1.2; }
@media (max-width: 900px) { .hm-story { grid-template-columns: minmax(0, 1fr); gap: 36px; } }

/* Reviews */
.hm-review { margin: 0; background: var(--hm-paper); border: 1px solid var(--hm-kraft); border-radius: var(--hm-radius); overflow: hidden; display: flex; flex-direction: column; }
.hm-review img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }
.hm-review figcaption { padding: 22px 22px 26px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.hm-review blockquote { margin: 0; font-family: var(--hm-display); font-size: 20px; line-height: 1.45; font-weight: 500; flex: 1; }
.hm-review cite { font-style: normal; font-size: 14px; color: var(--hm-muted); }

/* Ordering & payment */
.hm-steps { list-style: none; margin: 0; padding: 0; }
.hm-step { background: var(--hm-bark); border-radius: var(--hm-radius); padding: 28px; display: flex; flex-direction: column; gap: 8px; }
.hm-step-num { font-family: var(--hm-display); font-size: 40px; line-height: 1; color: var(--hm-gold); }
.hm-step h3 { font-family: var(--hm-body); font-size: 20px; font-weight: 600; }
.hm-step p { color: var(--hm-on-dark); line-height: 1.6; }
.hm-mono { font-variant-numeric: tabular-nums; overflow-wrap: break-word; }
.hm-pay { margin-top: 24px; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; }
.hm-pay-card { border: 1px solid #4E3F31; border-radius: var(--hm-radius); padding: 24px 28px; display: flex; flex-direction: column; gap: 6px; }
.hm-pay-card h3 { font-family: var(--hm-body); font-size: 14px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--hm-gold); }
.hm-pay-card p { color: var(--hm-on-dark); }
.hm-pay-card strong { color: var(--hm-cream); font-weight: 600; }

/* Prayer */
.hm-prayer { max-width: 760px; margin: 0 auto; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 16px; }
.hm-prayer svg { color: var(--hm-red); }
.hm-prayer h2 { font-size: clamp(32px, 4.4vw, 50px); }
.hm-prayer p { font-size: 18px; line-height: 1.75; color: var(--hm-ink-soft); max-width: 62ch; }
.hm-prayer .hm-btn { margin-top: 10px; }

/* Footer */
.hm-footer { background: var(--hm-paper); border-top: 1px solid var(--hm-kraft); }
.hm-footer-grid { padding-block: 56px 28px; display: flex; flex-wrap: wrap; gap: 40px; justify-content: space-between; }
.hm-footer-brand { flex: 1 1 320px; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.hm-footer-brand img { height: 54px; width: auto; align-self: flex-start; }
.hm-footer-brand p { font-size: 15px; color: var(--hm-ink-soft); max-width: 420px; }
.hm-footer-col { display: flex; flex-direction: column; gap: 8px; font-size: 15px; min-width: 0; }
.hm-footer-col strong { font-size: 15px; }
.hm-footer-col a { color: var(--hm-ink); }
.hm-footer-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.hm-copyright { text-align: center; font-size: 13px; color: var(--hm-muted); padding-block: 0 28px; }

/* Interior pages */
.hm-page-head { background: var(--hm-kraft); }
.hm-page-head .hm-wrap { padding-block: clamp(40px, 6vw, 64px); display: flex; flex-direction: column; gap: 6px; }
.hm-page-head h1 { font-size: clamp(36px, 5vw, 56px); }
.hm-page-head .hm-lead { max-width: 640px; margin-top: 8px; }
.hm-content { padding-block: clamp(40px, 6vw, 72px); }
.hm-content.is-narrow > .hm-wrap { max-width: 860px; }
.hm-entry { font-size: 18px; line-height: 1.75; color: var(--hm-ink-soft); }
.hm-entry > * + * { margin-top: 1.1em; }
.hm-entry h2, .hm-entry h3, .hm-entry h4 { color: var(--hm-ink); margin-top: 1.6em; }
.hm-entry h2 { font-size: clamp(28px, 3vw, 36px); }
.hm-entry h3 { font-size: 24px; }
.hm-entry ul, .hm-entry ol { padding-left: 1.3em; }
.hm-entry img { border-radius: 16px; }
.hm-entry blockquote { margin-left: 0; padding-left: 20px; border-left: 3px solid var(--hm-gold); font-family: var(--hm-display); color: var(--hm-ink); }
.hm-entry table { width: 100%; border-collapse: collapse; }
.hm-entry .alignwide { max-width: none; }
.hm-post-list { display: grid; gap: 28px; }
.hm-post-card { background: var(--hm-paper); border-radius: var(--hm-radius); padding: 28px; display: flex; flex-direction: column; gap: 10px; }
.hm-post-card h2 { font-size: 28px; }
.hm-post-card h2 a { color: inherit; text-decoration: none; }
.hm-pagination { margin-top: 32px; display: flex; gap: 10px; flex-wrap: wrap; }
.hm-pagination .page-numbers { padding: 8px 14px; border-radius: 999px; background: var(--hm-paper); text-decoration: none; color: var(--hm-ink); }
.hm-pagination .current { background: var(--hm-ink); color: var(--hm-cream); }

/* Forms (prayer request & contact) */
.hm-form-wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 48px; align-items: start; }
.hm-form-aside { display: flex; flex-direction: column; gap: 16px; }
.hm-form-aside .hm-verse { font-family: var(--hm-display); font-size: 22px; line-height: 1.5; color: var(--hm-ink); }
.hm-form-aside .hm-verse cite { display: block; margin-top: 8px; font-family: var(--hm-body); font-style: normal; font-size: 15px; color: var(--hm-muted); }
.hm-form { background: var(--hm-paper); border: 1px solid var(--hm-kraft); border-radius: var(--hm-radius); padding: clamp(24px, 4vw, 36px); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.hm-field { display: flex; flex-direction: column; gap: 6px; font-size: 15px; font-weight: 600; min-width: 0; }
.hm-field.is-full { grid-column: 1 / -1; }
.hm-field input, .hm-field textarea, .hm-field select { font: 400 16px var(--hm-body); color: var(--hm-ink); padding: 13px 14px; border: 1px solid #C9B796; border-radius: 12px; background: #FFFFFF; width: 100%; }
.hm-field textarea { min-height: 160px; resize: vertical; }
.hm-field input:focus, .hm-field textarea:focus { outline: 3px solid var(--hm-gold); outline-offset: 1px; border-color: var(--hm-ink); }
.hm-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.hm-form .hm-btn { grid-column: 1 / -1; justify-self: start; }
.hm-form-note { grid-column: 1 / -1; font-size: 14px; color: var(--hm-muted); font-weight: 400; }
.hm-alert { grid-column: 1 / -1; padding: 14px 18px; border-radius: 12px; font-weight: 500; }
.hm-alert.is-success { background: #E7EFDC; color: #2F4419; border: 1px solid #C3D5AC; }
.hm-alert.is-error { background: #F7E1E0; color: #7E1A20; border: 1px solid #E9B9B6; }
@media (max-width: 800px) { .hm-form-wrap { grid-template-columns: minmax(0, 1fr); } .hm-form { grid-template-columns: minmax(0, 1fr); } }

/* WordPress core alignment helpers */
.alignleft { float: left; margin: 0 1.5em 1em 0; }
.alignright { float: right; margin: 0 0 1em 1.5em; }
.aligncenter { margin-left: auto; margin-right: auto; }
.wp-caption-text, figcaption.wp-element-caption { font-size: 14px; color: var(--hm-muted); }
