/* PeckCalc — shared stylesheet */
:root{
  --green-dark:#1b4332; --green:#2d6a4f; --green-light:#e8f3ec;
  --amber:#e07b39; --amber-dark:#c25e1e; --cream:#faf7f0; --card:#ffffff;
  --ink:#1f2937; --muted:#5b6470; --line:#e3ddd0;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;font-family:-apple-system,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;font-size:17px;line-height:1.7;color:var(--ink);background:var(--cream)}
img{max-width:100%;height:auto;display:block}
a{color:var(--green);text-decoration:underline}
a:hover{color:var(--green-dark)}
h1,h2,h3{color:var(--green-dark);line-height:1.25}
h1{font-size:34px;margin:18px 0 12px}
h2{font-size:26px;margin:34px 0 10px}
h3{font-size:20px;margin:26px 0 8px}
p{margin:0 0 14px}
ul,ol{margin:0 0 14px;padding-left:24px}
li{margin-bottom:6px}
.container{max-width:1080px;margin:0 auto;padding:0 20px}
.lead{font-size:19px;color:#374151}

/* Header */
.site-header{background:var(--green-dark);position:sticky;top:0;z-index:50;box-shadow:0 2px 8px rgba(0,0,0,.18)}
.header-inner{display:flex;align-items:center;justify-content:space-between;gap:16px;min-height:64px}
.logo img{height:44px;width:auto}
.logo a,.logo{text-decoration:none}
.main-nav .nav-list{list-style:none;margin:0;padding:0;display:flex;gap:4px}
.main-nav .sub-menu{list-style:none;margin:0}
.main-nav a{color:#fff;text-decoration:none;font-weight:600;padding:10px 12px;display:block;border-radius:6px}
.main-nav a:hover{background:rgba(255,255,255,.14)}
.has-sub{position:relative}
.sub-menu{display:none;position:absolute;left:0;top:100%;background:#fff;width:340px;max-width:calc(100vw - 24px);min-width:280px;border:1px solid var(--line);border-radius:0 0 8px 8px;box-shadow:0 8px 20px rgba(0,0,0,.18);padding:6px;z-index:60}
.sub-menu a{color:var(--ink);padding:9px 12px}
.sub-menu a:hover{background:var(--green-light);color:var(--green-dark)}
.has-sub:hover .sub-menu,.has-sub:focus-within .sub-menu,.has-sub.open .sub-menu{display:block}
/* Guides dropdown sits near the right edge: align its right edge with its
   parent (second .has-sub) so it never runs off the viewport. */
.has-sub + .has-sub .sub-menu{right:0;left:auto}
.nav-toggle{display:none;background:transparent;border:1px solid rgba(255,255,255,.5);color:#fff;font-size:22px;border-radius:6px;padding:4px 10px;cursor:pointer}

/* Hero — full-screen photo background */
.hero{
  min-height:100vh;
  min-height:100svh;
  display:flex;
  align-items:center;
  justify-content:center;
  background-image:
    linear-gradient(rgba(9,25,17,.58) 0%, rgba(9,25,17,.58) 100%),
    linear-gradient(0deg, rgba(9,25,17,.80) 0%, rgba(9,25,17,0) 55%),
    url("../img/hero-chickens.webp");
  background-size:cover;
  background-position:center;
  background-repeat:no-repeat;
  background-color:var(--green-dark);
  padding:56px 0 48px;
  border-bottom:1px solid var(--line);
  color:#fff;
}
.hero h1{margin-top:0;color:#fff;text-shadow:0 2px 12px rgba(0,0,0,.45)}
.hero-inner{position:relative;z-index:1;width:100%;max-width:760px;text-align:center}

/* Tool grid */
.tool-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(240px,1fr));gap:16px;margin:18px 0}
.tool-card{background:var(--card);border:1px solid var(--line);border-radius:10px;padding:18px}
.tool-card h3{margin:0 0 6px;font-size:18px}
.tool-card h3 a{text-decoration:none;color:var(--green-dark)}
.tool-card h3 a:hover{color:var(--green)}
.tool-card p{margin:0;font-size:15px;color:var(--muted)}
.cluster-title{margin-top:34px;border-bottom:2px solid var(--green);padding-bottom:6px}

/* Calculator */
.calc-box{background:var(--card);border:2px solid var(--green);border-radius:12px;padding:22px;margin:22px 0}
.calc-box h2{margin-top:0}
.calc-box label{display:block;font-weight:600;margin:14px 0 4px}
.calc-box input[type=number],.calc-box input[type=text],.calc-box input[type=date],.calc-box select{width:100%;max-width:420px;padding:10px 12px;font-size:16px;border:1px solid #9aa5b1;border-radius:6px;background:#fff;color:var(--ink)}
.calc-box input:focus,.calc-box select:focus{outline:2px solid var(--green);outline-offset:1px}
.btn{display:inline-block;background:var(--amber);color:#fff;font-weight:700;font-size:17px;border:0;border-radius:8px;padding:12px 26px;cursor:pointer;margin-top:18px;text-decoration:none}
.btn:hover{background:var(--amber-dark);color:#fff}
.calc-result{margin-top:18px;background:var(--green-light);border:1px solid var(--green);border-radius:8px;padding:16px;font-size:17px}
.calc-result table{margin:8px 0 0}
.calc-result strong{color:var(--green-dark)}
.calc-note{font-size:14px;color:var(--muted);margin-top:12px}

/* Key facts / callouts */
.key-facts{background:#fff8ec;border:1px solid #ecd9a8;border-left:5px solid var(--amber);border-radius:8px;padding:16px 18px;margin:22px 0}
.key-facts h2,.key-facts h3{margin-top:0}
.callout{background:#fff3f0;border:1px solid #f0c4b8;border-left:5px solid #b3402a;border-radius:8px;padding:16px 18px;margin:22px 0}
.callout strong{color:#8c2b1d}

/* Tables */
.table-wrap{overflow-x:auto;margin:16px 0}
table{border-collapse:collapse;width:100%;background:#fff}
th,td{border:1px solid var(--line);padding:9px 12px;text-align:left;font-size:15px}
th{background:var(--green-dark);color:#fff}
tr:nth-child(even) td{background:#f7f5ef}

/* FAQ */
.faq details{background:var(--card);border:1px solid var(--line);border-radius:8px;margin-bottom:10px;padding:12px 16px}
.faq summary{font-weight:700;color:var(--green-dark);cursor:pointer;font-size:17px}
.faq summary:hover{color:var(--green)}
.faq p{margin:10px 0 0}

/* Breadcrumb */
.breadcrumb{font-size:14px;color:var(--muted);margin:16px 0 0}
.breadcrumb a{color:var(--muted)}

/* Related */
.related{background:var(--card);border:1px solid var(--line);border-radius:10px;padding:18px;margin:26px 0}
.related h2,.related h3{margin-top:0}

/* Footer */
.site-footer{background:var(--green-dark);color:#d7e5dc;margin-top:44px;padding:34px 0 0}
.footer-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:24px}
.site-footer h3{color:#fff;font-size:17px;margin:0 0 10px}
.site-footer ul{list-style:none;margin:0;padding:0}
.site-footer li{margin-bottom:6px}
.site-footer a{color:#d7e5dc}
.site-footer a:hover{color:#fff}
.site-footer p{font-size:14px}
.footer-bottom{border-top:1px solid rgba(255,255,255,.18);margin-top:26px;padding:14px 0 18px}
.footer-bottom p{margin:0;font-size:14px;color:#b9cec2}

/* Article images */
.article-img{border-radius:12px;margin:18px 0}
figcaption{font-size:14px;color:var(--muted);text-align:center;margin-top:6px}

/* Responsive */
@media (max-width:860px){
  h1{font-size:28px}
  .nav-toggle{display:block}
  .main-nav .nav-list{display:none;position:absolute;left:0;right:0;top:64px;background:var(--green-dark);flex-direction:column;padding:10px 20px 16px}
  .main-nav.open .nav-list{display:flex}
  .sub-menu{position:static;display:block;background:transparent;border:0;box-shadow:none;padding:0 0 0 16px;min-width:0}
  .sub-menu a{color:#d7e5dc}
  .has-sub:hover .sub-menu{display:block}
}

/* Click-open dropdowns (JS toggles .open on .has-sub; hover stays as an enhancement;
   the display rule lives with the :hover/:focus-within rule above) */
.has-sub.open > a{background:rgba(255,255,255,.14)}
.sub-menu{max-height:calc(100vh - 90px);overflow-y:auto}
.sub-menu .sub-head{font-size:12px;font-weight:700;text-transform:uppercase;letter-spacing:.05em;color:var(--muted);padding:10px 12px 2px;cursor:default}
.sub-menu .all-link a{font-weight:700;color:var(--green)}
.sub-menu .all-link a:hover{color:var(--green-dark)}
.tool-card .kw{font-size:13px;margin-top:6px}
.site-footer .sub-head{color:#fff;font-weight:700;font-size:13px;text-transform:uppercase;letter-spacing:.05em;padding-top:8px}
.site-footer .all-link a{font-weight:700;color:#fff}

@media (max-width:860px){
  /* Long grouped lists in the expanded mobile menu stay reachable: the open
     menu scrolls instead of running off the bottom of the viewport. */
  .main-nav.open .nav-list{max-height:calc(100vh - 64px);overflow-y:auto}
  .sub-menu{max-height:none;overflow-y:visible}
  .sub-menu .sub-head{color:#9fc3ae}
  .sub-menu .all-link a{color:#fff}
}

/* ---- Homepage hero redesign (2026-11-09) — full-screen photo hero ---- */
.hero-eyebrow{margin:0 0 10px;font-size:14px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:#b7d9c2;text-shadow:0 1px 8px rgba(0,0,0,.5)}
.hero h1{font-size:42px;line-height:1.15;margin:0 0 14px}
.hero .lead{font-size:20px;line-height:1.6;color:#f2f5f1;max-width:640px;margin:0 0 22px;text-shadow:0 1px 8px rgba(0,0,0,.5)}

/* Hero search */
.hero-search{position:relative;max-width:560px;margin:0 auto 20px}
.hero-search-label{display:block;font-weight:700;font-size:15px;color:#fff;margin:0 0 6px;text-shadow:0 1px 8px rgba(0,0,0,.5)}
.hero-search input[type=search]{width:100%;max-width:100%;padding:13px 16px;font-size:17px;border:2px solid var(--green);border-radius:10px;background:#fff;color:var(--ink);box-shadow:0 2px 10px rgba(27,67,50,.10)}
.hero-search input[type=search]:focus{outline:3px solid rgba(45,106,79,.35);outline-offset:1px}
.hero-search-results{position:absolute;left:0;right:0;top:100%;z-index:70;list-style:none;margin:4px 0 0;padding:6px;background:#fff;border:1px solid var(--line);border-radius:10px;box-shadow:0 12px 28px rgba(0,0,0,.18);max-height:340px;overflow-y:auto}
.hero-search-results li{margin:0}
.hero-search-results a{display:flex;justify-content:space-between;align-items:baseline;gap:12px;padding:10px 12px;border-radius:6px;text-decoration:none;color:var(--ink)}
.hero-search-results li.active a,.hero-search-results a:hover{background:var(--green-light);color:var(--green-dark)}
.hero-search-title{font-weight:600;font-size:16px}
.hero-search-type{flex:none;font-size:12px;font-weight:700;text-transform:uppercase;letter-spacing:.04em;color:var(--green);background:var(--green-light);border-radius:4px;padding:2px 7px}

/* Hero CTAs */
.hero-cta{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:18px;margin:0 0 22px}
.hero-cta .btn{margin-top:0}
.hero-secondary{font-weight:700;font-size:17px;text-decoration:none;color:#fff;text-shadow:0 1px 8px rgba(0,0,0,.5)}
.hero-secondary:hover{text-decoration:underline;color:#d7e5dc}

/* Hero trust signals */
.hero-trust{list-style:none;display:flex;flex-wrap:wrap;justify-content:center;gap:8px 0;margin:0;padding:0;font-size:15px;color:#e8efe9;text-shadow:0 1px 8px rgba(0,0,0,.5)}
.hero-trust li{padding:0 14px;border-right:1px solid rgba(255,255,255,.45)}
.hero-trust li:first-child{padding-left:0}
.hero-trust li:last-child{border-right:0;padding-right:0}
.hero-trust strong{color:#fff}

/* No .hero img rule: the photo is now the hero background (cover), not an <img>. */

/* Author byline + author box (John Walker) */
.byline{display:flex;align-items:center;gap:10px;font-size:15px;color:#374151;margin:0 0 18px}
.byline img{width:40px;height:40px;border-radius:50%;object-fit:cover;flex:none}
.byline a{font-weight:700;color:var(--green-dark)}
.author-box{display:flex;gap:18px;background:var(--card);border:1px solid var(--line);border-radius:12px;padding:20px;margin:28px 0}
.author-box img{width:96px;height:96px;border-radius:50%;object-fit:cover;flex:none}
.author-box h3{margin:0 0 6px;font-size:18px}
.author-box p{margin:0 0 8px}
.author-box p:last-child{margin:0}
.author-box.about-author img{width:120px;height:120px}

@media (max-width:860px){
  .hero{padding:38px 0 30px}
  .hero h1{font-size:30px}
  .hero .lead{font-size:18px}
  .hero-search{max-width:100%}
  .hero-search input[type=search]{font-size:16px}
  .hero-cta{flex-direction:column;align-items:stretch;gap:12px}
  .hero-cta .btn{text-align:center}
  .hero-secondary{text-align:center}
  .hero-trust{gap:6px 0}
  .hero-trust li{padding:0 10px}
  .author-box{flex-direction:column}
  .author-box img,.author-box.about-author img{width:72px;height:72px}
}
