/*
Theme Name: North House Manual
Theme URI: https://northhousemanual.com
Author: North House Manual
Description: A focused, accessible WordPress and WooCommerce theme for practical older-home maintenance education and digital products.
Version: 1.0.0
Requires at least: 6.4
Tested up to: 7.1
Requires PHP: 7.4
Text Domain: north-house-manual
License: GNU General Public License v2 or later
*/

:root {
  --nhm-ink: #242b31;
  --nhm-ink-2: #35434d;
  --nhm-orange: #e36b2c;
  --nhm-orange-dark: #bf4f18;
  --nhm-cream: #fbf8f2;
  --nhm-white: #ffffff;
  --nhm-slate: #667681;
  --nhm-mist: #e8ecec;
  --nhm-green: #3d6655;
  --nhm-max: 1180px;
  --nhm-radius: 18px;
  --nhm-shadow: 0 16px 45px rgba(36, 43, 49, .10);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--nhm-ink); background: var(--nhm-cream); font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; line-height: 1.65; }
img { max-width: 100%; height: auto; }
a { color: var(--nhm-orange-dark); text-decoration-thickness: .08em; text-underline-offset: .18em; }
a:hover { color: var(--nhm-orange); }
h1, h2, h3, h4 { line-height: 1.12; letter-spacing: -.025em; margin: 0 0 .65em; }
h1 { font-size: clamp(2.6rem, 6vw, 5.4rem); }
h2 { font-size: clamp(2rem, 4vw, 3.35rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.65rem); }
p { margin: 0 0 1.15rem; }
.container { width: min(calc(100% - 40px), var(--nhm-max)); margin-inline: auto; }
.narrow { width: min(calc(100% - 40px), 780px); margin-inline: auto; }
.eyebrow { color: var(--nhm-orange-dark); font-size: .78rem; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.section { padding: clamp(64px, 8vw, 108px) 0; }
.section--white { background: var(--nhm-white); }
.section--ink { color: var(--nhm-white); background: var(--nhm-ink); }
.section-heading { max-width: 760px; margin-bottom: 38px; }
.lead { color: var(--nhm-ink-2); font-size: clamp(1.1rem, 1.8vw, 1.3rem); }
.section--ink .lead { color: #d7dddd; }
.button, button, input[type="submit"], .wp-element-button, .woocommerce a.button, .woocommerce button.button, .woocommerce input.button { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 12px 21px; border: 2px solid var(--nhm-orange); border-radius: 999px; color: #fff; background: var(--nhm-orange); font-weight: 800; text-decoration: none; cursor: pointer; transition: .2s ease; }
.button:hover, button:hover, input[type="submit"]:hover { color: #fff; background: var(--nhm-orange-dark); border-color: var(--nhm-orange-dark); transform: translateY(-1px); }
.button--ghost { color: var(--nhm-ink); background: transparent; border-color: var(--nhm-ink); }
.button--ghost:hover { color: #fff; background: var(--nhm-ink); border-color: var(--nhm-ink); }
.button-row { display: flex; flex-wrap: wrap; gap: 12px; }

.site-header { position: sticky; z-index: 50; top: 0; border-bottom: 1px solid rgba(36,43,49,.09); background: rgba(251,248,242,.96); backdrop-filter: blur(12px); }
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 84px; gap: 28px; }
.brand { display: flex; align-items: center; color: var(--nhm-ink); font-weight: 900; text-decoration: none; letter-spacing: -.02em; }
.brand img { width: 196px; max-height: 68px; object-fit: contain; object-position: left center; }
.brand__text { font-size: 1.05rem; }
.site-nav ul { display: flex; align-items: center; gap: 24px; margin: 0; padding: 0; list-style: none; }
.site-nav a { color: var(--nhm-ink); font-size: .94rem; font-weight: 750; text-decoration: none; }
.site-nav a:hover, .site-nav .current-menu-item > a { color: var(--nhm-orange-dark); }
.nav-toggle { display: none; width: 46px; height: 46px; padding: 0; color: var(--nhm-ink); background: transparent; border-color: var(--nhm-ink); }
.nav-toggle span, .nav-toggle::before, .nav-toggle::after { display: block; width: 20px; height: 2px; background: currentColor; content: ""; }
.nav-toggle span { margin: 4px auto; }
.nav-toggle::before, .nav-toggle::after { margin: 0 auto; }

.hero { position: relative; overflow: hidden; padding: clamp(72px, 10vw, 140px) 0; background: linear-gradient(115deg, var(--nhm-cream) 0 62%, #edf0ee 62% 100%); }
.hero::after { position: absolute; right: -90px; bottom: -170px; width: 510px; height: 510px; border: 80px solid rgba(227,107,44,.12); border-radius: 50%; content: ""; }
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.2fr .8fr; align-items: center; gap: clamp(36px, 7vw, 90px); }
.hero h1 span { color: var(--nhm-orange-dark); }
.hero-copy { max-width: 760px; }
.hero-mark { position: relative; padding: 32px; border-radius: 32px; background: #fff; box-shadow: var(--nhm-shadow); transform: rotate(2deg); }
.hero-mark img { display: block; width: 100%; }
.trust-strip { border-block: 1px solid rgba(36,43,49,.08); background: #fff; }
.trust-grid { display: grid; grid-template-columns: repeat(3, 1fr); }
.trust-item { padding: 24px; text-align: center; font-weight: 800; }
.trust-item + .trust-item { border-left: 1px solid rgba(36,43,49,.1); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.card { padding: 28px; border: 1px solid rgba(36,43,49,.09); border-radius: var(--nhm-radius); background: #fff; box-shadow: 0 8px 24px rgba(36,43,49,.05); }
.card__icon { display: grid; place-items: center; width: 48px; height: 48px; margin-bottom: 22px; border-radius: 14px; color: #fff; background: var(--nhm-orange); font-size: 1.4rem; font-weight: 900; }
.card p { color: var(--nhm-slate); }
.step { display: grid; grid-template-columns: 56px 1fr; gap: 18px; align-items: start; }
.step__number { display: grid; place-items: center; width: 56px; height: 56px; border: 2px solid var(--nhm-orange); border-radius: 50%; color: var(--nhm-orange); font-weight: 900; }
.callout { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 28px; padding: clamp(34px, 6vw, 64px); border-radius: 28px; background: var(--nhm-ink); color: #fff; }
.callout p { color: #d7dddd; }
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.post-card { overflow: hidden; border: 1px solid rgba(36,43,49,.08); border-radius: var(--nhm-radius); background: #fff; }
.post-card__visual { display: grid; place-items: center; min-height: 170px; color: rgba(255,255,255,.92); background: var(--nhm-ink); font-size: 3rem; }
.post-card__body { padding: 25px; }
.post-card__meta { color: var(--nhm-orange-dark); font-size: .8rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.entry-header { padding: 72px 0 36px; }
.entry-content { padding-bottom: 90px; }
.entry-content > * { max-width: 780px; margin-left: auto; margin-right: auto; }
.entry-content > .alignwide { max-width: var(--nhm-max); }
.entry-content ul, .entry-content ol { padding-left: 1.35rem; }
.notice { padding: 18px 20px; border-left: 5px solid var(--nhm-orange); border-radius: 4px 12px 12px 4px; background: #fff2e9; }

.site-footer { padding: 64px 0 28px; color: #d8dddd; background: #1d2429; }
.footer-grid { display: grid; grid-template-columns: 1.3fr .7fr .7fr; gap: 44px; }
.footer-logo { width: 190px; margin-bottom: 18px; filter: brightness(0) invert(1); }
.site-footer h3 { color: #fff; font-size: 1rem; }
.site-footer ul { margin: 0; padding: 0; list-style: none; }
.site-footer a { color: #d8dddd; text-decoration: none; }
.site-footer a:hover { color: #fff; }
.footer-bottom { margin-top: 45px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.12); font-size: .86rem; }

input, textarea, select { width: 100%; padding: 13px 14px; border: 1px solid #bac2c5; border-radius: 10px; color: var(--nhm-ink); background: #fff; font: inherit; }
label { display: block; margin-bottom: 7px; font-weight: 750; }
.form-row { margin-bottom: 18px; }
.nhm-form { max-width: 680px; }
.nhm-form-message { padding: 14px 16px; margin-bottom: 20px; border-radius: 10px; background: #e7f3ec; }

.woocommerce .products ul, .woocommerce ul.products { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.woocommerce ul.products li.product { width: auto !important; margin: 0 !important; padding: 22px; border-radius: var(--nhm-radius); background: #fff; }
.woocommerce div.product { padding: 70px 0; }
.woocommerce span.onsale { background: var(--nhm-orange); }

@media (max-width: 900px) {
  .hero-grid, .grid-3, .post-grid, .footer-grid { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .hero-mark { max-width: 440px; margin: auto; }
  .nav-toggle { display: block; }
  .site-nav { position: absolute; display: none; top: 84px; right: 20px; left: 20px; padding: 20px; border-radius: 14px; background: #fff; box-shadow: var(--nhm-shadow); }
  .site-nav.is-open { display: block; }
  .site-nav ul { display: grid; gap: 14px; }
  .callout { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  .container, .narrow { width: min(calc(100% - 28px), var(--nhm-max)); }
  .brand img { width: 155px; }
  .trust-grid { grid-template-columns: 1fr; }
  .trust-item + .trust-item { border-top: 1px solid rgba(36,43,49,.1); border-left: 0; }
  .hero { background: var(--nhm-cream); }
  .hero-mark { max-width: 300px; padding: 22px; }
  .woocommerce .products ul, .woocommerce ul.products { grid-template-columns: 1fr; }
}

.screen-reader-text { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.screen-reader-text:focus { z-index: 100000; display: block; top: 5px; left: 5px; width: auto; height: auto; padding: 15px 23px; clip: auto; color: var(--nhm-ink); background: #fff; }
