/*
Theme Name: Hairy Heifer
Theme URI: https://hairyheifer.com
Author: Hairy Heifer Cattle Co.
Description: Mini and Micro Highland cattle theme for Hairy Heifer Cattle Co. Deep forest-green and gold brand with Georgia serif headings. Elementor-ready: page bodies are editable with Elementor while header and footer are theme-level. Framework-free.
Version: 1.4.0
Requires at least: 6.0
Tested up to: 6.6
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: hairyheifer
Tags: business, custom-menu, featured-images, full-width-template, elementor
*/
/* =========================================================
   Hairy Heifer Cattle Co. — Design System
   Deep forest green + gold, serif headings, cream CTAs
   ========================================================= */

:root {
    --bg:        #142415;   /* deep premium forest green */
    --bg-2:      #17291a;   /* section alt */
    --panel:     #1c3221;   /* raised card */
    --panel-2:   #234029;   /* hover / inset */
    --line:      rgba(235, 220, 197, 0.14);
    --line-2:    rgba(235, 220, 197, 0.28);

    --gold:      #bfa37a;   /* gold heading tint / accent */
    --gold-2:    #d8c199;   /* brighter gold (hover) */
    --cream:     #eadcc0;   /* warm CTA */
    --sage:      #b3c2b7;   /* muted body text */
    --text:      #f3efe6;   /* off-white */
    --white:     #ffffff;

    --maxw: 1200px;
    --radius: 14px;
    --radius-sm: 9px;
    --shadow: 0 18px 45px rgba(0,0,0,.35);

    --serif: Georgia, 'Times New Roman', 'Cardo', serif;
    --sans: Arial, Helvetica, 'Inter', system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
:target, [id] { scroll-margin-top: 92px; }

/* Animal profile block */
.profile { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 30px; align-items: start; padding: 30px 0; border-top: 1px solid var(--line); }
.profile:first-of-type { border-top: 0; }
.profile .imgph { aspect-ratio: 4/3; }
.profile > img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: var(--radius); }
.hh-badge {
    background: rgba(15,27,16,.78); color: var(--gold-2);
    font-size: .72rem; font-weight: 700; letter-spacing: .5px;
    padding: 5px 10px; border-radius: 999px; border: 1px solid var(--line-2);
    white-space: nowrap;
}
.spec { list-style: none; margin: 14px 0 16px; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 20px; }
.spec li { font-size: .9rem; color: var(--sage); border-bottom: 1px dotted var(--line); padding-bottom: 8px; }
.spec li b { color: var(--gold-2); display: block; font-family: var(--sans); font-size: .72rem; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 2px; }
.offspring { display: flex; flex-wrap: wrap; gap: 8px; margin: 6px 0 16px; }
.offspring a { font-size: .82rem; background: var(--bg-2); border: 1px solid var(--line); padding: 5px 11px; border-radius: 999px; }
@media (max-width: 720px) { .profile { grid-template-columns: 1fr; } .spec { grid-template-columns: 1fr; } }

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: var(--sans);
    font-size: 17px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

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

a { color: var(--gold-2); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--cream); }

h1, h2, h3, h4 { font-family: var(--serif); color: var(--white); line-height: 1.2; margin: 0 0 .5em; }
h1 { font-size: clamp(2rem, 4.4vw, 3.3rem); letter-spacing: .3px; }
h2 { font-size: clamp(1.55rem, 3.1vw, 2.3rem); }
h3 { font-size: 1.28rem; }
h4 { font-size: 1.05rem; }
p  { margin: 0 0 1rem; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.section { padding: 72px 0; }
.section--tight { padding: 48px 0; }
.section--alt { background: var(--bg-2); }

.eyebrow {
    display: inline-block;
    font-family: var(--sans);
    font-size: .72rem;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: var(--gold);
    font-weight: 700;
    margin-bottom: 14px;
}
.lead { font-size: 1.15rem; color: var(--sage); max-width: 62ch; }
.muted { color: var(--sage); }
.center { text-align: center; }
.center .lead { margin-left: auto; margin-right: auto; }
.gold { color: var(--gold-2); }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex; align-items: center; gap: 9px;
    font-family: var(--sans); font-weight: 700; font-size: .95rem;
    letter-spacing: .3px;
    padding: 14px 26px; border-radius: 999px;
    cursor: pointer; border: 1px solid transparent;
    transition: transform .15s ease, background .2s ease, color .2s ease, border-color .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--cream); color: #2a2416; }
.btn--primary:hover { background: var(--gold-2); color: #241f12; }
.btn--gold { background: var(--gold); color: #211c10; }
.btn--gold:hover { background: var(--gold-2); color: #211c10; }
.btn--ghost { background: transparent; color: var(--text); border-color: var(--line-2); }
.btn--ghost:hover { border-color: var(--gold); color: var(--gold-2); }
.btn--sm { padding: 10px 18px; font-size: .85rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }
.btn-row.center { justify-content: center; }

/* ---------- Header / Nav ---------- */
.site-header {
    position: sticky; top: 0; z-index: 50;
    background: rgba(15, 27, 16, .92);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--line);
}
.nav {
    display: flex; align-items: center; justify-content: space-between;
    gap: 20px; height: 74px;
}
.brand { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.brand svg { height: 30px; width: auto; }
.brand-fallback { font-family: var(--serif); font-size: 1.15rem; color: var(--white); font-weight: 700; }

.menu { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.menu > li { position: relative; }
.menu > li > a {
    display: inline-flex; align-items: center; gap: 5px;
    color: var(--text); font-size: .93rem; font-weight: 600;
    padding: 10px 13px; border-radius: 8px;
}
.menu > li > a:hover, .menu > li.current > a { color: var(--gold-2); background: rgba(191,163,122,.08); }
.has-sub > a::after { content: "▾"; font-size: .7rem; color: var(--gold); }

.submenu {
    position: absolute; top: calc(100% + 8px); left: 0;
    min-width: 232px; background: var(--panel);
    border: 1px solid var(--line-2); border-radius: 12px;
    box-shadow: var(--shadow); padding: 8px;
    list-style: none; margin: 0;
    opacity: 0; visibility: hidden; transform: translateY(6px);
    transition: all .18s ease;
}
.has-sub:hover .submenu, .has-sub:focus-within .submenu { opacity: 1; visibility: visible; transform: translateY(0); }
.submenu li a {
    display: block; color: var(--text); font-size: .9rem;
    padding: 9px 12px; border-radius: 7px;
}
.submenu li a:hover { background: var(--panel-2); color: var(--gold-2); }

.nav-cta { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.nav-toggle {
    display: none; background: none; border: 1px solid var(--line-2);
    color: var(--text); border-radius: 8px; padding: 8px 11px; cursor: pointer; font-size: 1.1rem;
}

/* ---------- Hero ---------- */
.hero {
    position: relative;
    padding: 92px 0 84px;
    background:
        radial-gradient(1100px 520px at 78% -10%, rgba(191,163,122,.16), transparent 60%),
        linear-gradient(180deg, #17291a 0%, var(--bg) 70%);
    border-bottom: 1px solid var(--line);
    overflow: hidden;
}
.hero h1 { max-width: 15ch; }
.hero .lead { margin-top: 6px; }
.hero .btn-row { margin-top: 30px; }

/* ---------- Stat strip ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 48px; }
.stat { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.stat b { display: block; font-family: var(--serif); color: var(--gold-2); font-size: 1.15rem; margin-bottom: 3px; }
.stat span { color: var(--sage); font-size: .85rem; }

/* ---------- Cards / grids ---------- */
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
    background: var(--panel); border: 1px solid var(--line);
    border-radius: var(--radius); padding: 26px;
    transition: border-color .2s ease, transform .2s ease;
}
.card:hover { border-color: var(--line-2); transform: translateY(-3px); }
.card h3 { margin-bottom: .35em; }
.card .icon { width: 42px; height: 42px; color: var(--gold); margin-bottom: 14px; }
.card p:last-child { margin-bottom: 0; }

/* ---------- Cattle listing cards ---------- */
.cattle-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.cattle {
    background: var(--panel); border: 1px solid var(--line);
    border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column;
    transition: border-color .2s ease, transform .2s ease;
}
.cattle:hover { border-color: var(--gold); transform: translateY(-3px); }
.cattle .photo {
    aspect-ratio: 4/3; background:
        repeating-linear-gradient(135deg, #1f3826 0 14px, #22402a 14px 28px);
    display: flex; align-items: flex-end; justify-content: space-between;
    padding: 14px; position: relative; overflow: hidden;
}
.cattle .photo img {
    position: absolute; inset: 0; top: 0; left: 0;
    width: 100%; height: 100%; object-fit: cover; z-index: 0;
}
.cattle .photo .tag {
    background: rgba(15,27,16,.78); color: var(--gold-2);
    font-size: .72rem; font-weight: 700; letter-spacing: .5px;
    padding: 5px 10px; border-radius: 999px; border: 1px solid var(--line-2);
    position: relative; z-index: 1;
}
.cattle .photo .price {
    background: var(--cream); color: #2a2416; font-weight: 800; font-size: .9rem;
    padding: 5px 12px; border-radius: 999px;
    position: relative; z-index: 1;
}
.cattle .body { padding: 20px; flex: 1; display: flex; flex-direction: column; }
.cattle .body h3 { margin-bottom: 4px; }
.cattle .meta { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 14px; }
.cattle .meta span {
    font-size: .74rem; color: var(--sage); background: var(--bg-2);
    border: 1px solid var(--line); padding: 4px 9px; border-radius: 999px;
}
.cattle .body p { font-size: .9rem; color: var(--sage); }
.cattle .parents { font-size: .82rem; margin: 4px 0 14px; color: var(--sage); }
.cattle .parents a { font-weight: 600; }
.cattle .foot { margin-top: auto; }
.status-sold { filter: grayscale(.35) brightness(.9); }
.status-sold .price { background: #3a3020; color: var(--cream); }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
table.data { width: 100%; border-collapse: collapse; min-width: 520px; }
table.data th, table.data td { text-align: left; padding: 14px 18px; border-bottom: 1px solid var(--line); }
table.data thead th { background: var(--panel); color: var(--gold-2); font-family: var(--serif); font-weight: 700; }
table.data tbody tr:last-child td { border-bottom: none; }
table.data tbody tr.highlight td { background: rgba(191,163,122,.09); color: var(--white); }

/* ---------- Color swatches ---------- */
.swatches { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.swatch { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--panel); }
.swatch .chip { height: 84px; }
.swatch .label { padding: 12px 16px; }
.swatch .label b { color: var(--white); font-family: var(--serif); }
.swatch .label span { display: block; font-size: .8rem; color: var(--sage); }
.chip-red    { background: linear-gradient(135deg,#7a3620,#a24a29); }
.chip-yellow { background: linear-gradient(135deg,#b98a3d,#d8b05e); }
.chip-black  { background: linear-gradient(135deg,#20211d,#3b3d36); }
.chip-silver { background: linear-gradient(135deg,#8f9488,#c3c7bc); }
.chip-brindle{ background: repeating-linear-gradient(60deg,#5a3421 0 8px,#8a5230 8px 16px); }
.chip-white  { background: linear-gradient(135deg,#d9d6ca,#f2efe6); }

/* ---------- Calculators ---------- */
.calc {
    background: var(--panel); border: 1px solid var(--line-2);
    border-radius: var(--radius); padding: 28px;
}
.calc .field { margin-bottom: 18px; }
.calc label { display: block; font-size: .85rem; font-weight: 700; color: var(--gold-2); margin-bottom: 7px; letter-spacing: .3px; }
.calc select, .calc input[type="number"] {
    width: 100%; background: var(--bg); color: var(--text);
    border: 1px solid var(--line-2); border-radius: var(--radius-sm);
    padding: 12px 14px; font-size: 1rem; font-family: var(--sans);
}
.calc select:focus, .calc input:focus { outline: none; border-color: var(--gold); }
.calc-result {
    margin-top: 8px; background: var(--bg); border: 1px dashed var(--gold);
    border-radius: var(--radius-sm); padding: 22px; text-align: center;
}
.calc-result .big { font-family: var(--serif); font-size: 2.1rem; color: var(--gold-2); display: block; }
.calc-result .note { font-size: .85rem; color: var(--sage); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 10px; }
.chips .c { padding: 6px 12px; border-radius: 999px; font-size: .82rem; font-weight: 700; border: 1px solid var(--line-2); }

/* ---------- Auction / callouts ---------- */
.callout {
    background: linear-gradient(120deg, #1d3322, #142415);
    border: 1px solid var(--gold); border-radius: var(--radius);
    padding: 34px; display: flex; flex-wrap: wrap; gap: 24px;
    align-items: center; justify-content: space-between;
}
.callout .cal-date {
    text-align: center; background: var(--bg); border: 1px solid var(--line-2);
    border-radius: var(--radius-sm); padding: 14px 22px; flex-shrink: 0;
}
.callout .cal-date .m { color: var(--gold-2); font-weight: 800; letter-spacing: 2px; text-transform: uppercase; font-size: .8rem; }
.callout .cal-date .d { font-family: var(--serif); font-size: 2.6rem; color: var(--white); line-height: 1; }
.callout .cal-date .y { color: var(--sage); font-size: .85rem; }

.embed-frame {
    width: 100%; min-height: 560px; border: 1px solid var(--line-2);
    border-radius: var(--radius); background: var(--panel);
}
.embed-note {
    background: rgba(191,163,122,.1); border: 1px dashed var(--gold);
    border-radius: var(--radius-sm); padding: 14px 18px; font-size: .85rem; color: var(--sage);
    margin-top: 14px;
}
.embed-note code { color: var(--gold-2); background: var(--bg); padding: 2px 6px; border-radius: 5px; }

/* ---------- Steps ---------- */
.steps { counter-reset: step; display: grid; gap: 18px; }
.step { display: flex; gap: 18px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.step .num {
    flex-shrink: 0; width: 46px; height: 46px; border-radius: 50%;
    background: var(--bg); border: 1px solid var(--gold);
    display: grid; place-items: center; font-family: var(--serif); color: var(--gold-2); font-size: 1.2rem; font-weight: 700;
}
.step h3 { margin: 4px 0 6px; }
.step p { margin: 0; color: var(--sage); font-size: .95rem; }

/* ---------- FAQ ---------- */
.faq-item { border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 12px; background: var(--panel); overflow: hidden; }
.faq-item summary {
    cursor: pointer; padding: 18px 22px; font-family: var(--serif); font-size: 1.08rem; color: var(--white);
    list-style: none; display: flex; justify-content: space-between; gap: 14px; align-items: center;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; color: var(--gold); font-size: 1.4rem; }
.faq-item[open] summary::after { content: "–"; }
.faq-item .ans { padding: 0 22px 20px; color: var(--sage); }
.faq-cat { color: var(--gold); font-size: .72rem; text-transform: uppercase; letter-spacing: 1.5px; font-weight: 700; margin: 30px 0 12px; }

/* ---------- Forms ---------- */
.form-grid { display: grid; gap: 16px; }
.form-grid .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-grid label { font-size: .82rem; font-weight: 700; color: var(--gold-2); display: block; margin-bottom: 6px; }
.form-grid input, .form-grid select, .form-grid textarea {
    width: 100%; background: var(--bg); color: var(--text);
    border: 1px solid var(--line-2); border-radius: var(--radius-sm); padding: 12px 14px; font-family: var(--sans); font-size: 1rem;
}
.form-grid textarea { min-height: 130px; resize: vertical; }

/* ---------- Related links block ---------- */
.related { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; }
.related a.rl {
    display: block; background: var(--panel); border: 1px solid var(--line);
    border-radius: var(--radius); padding: 20px; color: var(--text);
}
.related a.rl:hover { border-color: var(--gold); }
.related a.rl b { display: block; font-family: var(--serif); color: var(--white); font-size: 1.1rem; margin-bottom: 4px; }
.related a.rl span { color: var(--sage); font-size: .88rem; }
.related a.rl .arrow { color: var(--gold-2); font-weight: 700; margin-top: 8px; display: inline-block; }

/* ---------- Breadcrumb ---------- */
.crumb { font-size: .82rem; color: var(--sage); padding: 18px 0 0; }
.crumb a { color: var(--sage); }
.crumb a:hover { color: var(--gold-2); }

/* ---------- Image placeholder ---------- */
.imgph {
    border-radius: var(--radius); border: 1px solid var(--line);
    background:
        radial-gradient(600px 200px at 30% 0%, rgba(191,163,122,.14), transparent 60%),
        repeating-linear-gradient(135deg, #1c3221 0 16px, #1f3826 16px 32px);
    aspect-ratio: 16/10; display: grid; place-items: center; text-align: center; color: var(--sage);
}
.imgph span { font-size: .85rem; letter-spacing: .5px; padding: 6px 14px; border: 1px solid var(--line-2); border-radius: 999px; background: rgba(15,27,16,.5); }

/* ---------- Footer ---------- */
.site-footer { background: var(--bg); padding: 66px 0 0; border-top: 1px solid var(--line); }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 44px; }
.footer-brand svg { height: 34px; width: auto; margin-bottom: 18px; }
.footer-brand p { color: var(--sage); font-size: .9rem; max-width: 320px; }
.footer-col h4 { font-family: var(--sans); font-size: .72rem; letter-spacing: 2px; text-transform: uppercase; color: var(--gold); margin-bottom: 18px; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 11px; }
.footer-col ul a { color: var(--text); font-size: .9rem; }
.footer-col ul a:hover { color: var(--gold-2); }
.sub-footer { border-top: 1px solid var(--line); padding: 22px 0; display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between; }
.sub-footer p { margin: 0; color: var(--sage); font-size: .82rem; }

/* ---------- Utility spacing ---------- */
.mt-0 { margin-top: 0; } .mt-1 { margin-top: 12px; } .mt-2 { margin-top: 28px; } .mt-3 { margin-top: 44px; }
.mb-2 { margin-bottom: 28px; }
.divider { height: 1px; background: var(--line); border: 0; margin: 0; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
    .stats { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
    .nav-toggle { display: inline-flex; }
    .menu {
        display: none; position: absolute; top: 74px; left: 0; right: 0;
        flex-direction: column; align-items: stretch; gap: 2px;
        background: var(--panel); border-bottom: 1px solid var(--line-2);
        padding: 12px; max-height: calc(100vh - 74px); overflow-y: auto;
    }
    .menu.open { display: flex; }
    .menu > li > a { padding: 12px 14px; }
    .submenu {
        position: static; opacity: 1; visibility: visible; transform: none;
        box-shadow: none; border: none; background: transparent; padding: 0 0 6px 14px;
    }
    .has-sub > a::after { margin-left: auto; }
    .nav-cta .btn { display: none; }
}
@media (max-width: 720px) {
    .grid-2, .grid-3, .grid-4, .cattle-grid, .swatches, .related, .stats { grid-template-columns: 1fr; }
    .form-grid .row2 { grid-template-columns: 1fr; }
    .section { padding: 52px 0; }
    .callout { flex-direction: column; align-items: flex-start; }
}
