/*
Theme Name: Hound & Kit
Theme URI: https://houndandkit.com
Description: Lightweight Kadence child theme for the Hound & Kit WooCommerce store. Brand tokens, custom home + single-product templates, bundle radio cards, and a mobile sticky add-to-cart. No page builder.
Author: Hound & Kit
Template: kadence
Version: 1.0.0
Requires PHP: 8.1
Text Domain: houndandkit
*/

/* =========================================================================
   Self-hosted fonts (run bin/fetch-fonts.sh to populate assets/fonts/*.woff2;
   until then the stack falls back to system-ui so nothing breaks).
   ========================================================================= */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url('assets/fonts/inter.woff2') format('woff2');
}
@font-face {
  font-family: 'Outfit';
  font-style: normal;
  font-weight: 500 700;
  font-display: swap;
  src: url('assets/fonts/outfit.woff2') format('woff2');
}

/* =========================================================================
   Design tokens
   ========================================================================= */
:root {
  --hk-forest: #16302B;   /* text, header bar, footer */
  --hk-ember:  #B8501F;   /* buy / primary buttons ONLY */
  --hk-ember-dark: #8F3D17;
  --hk-sage:   #CFE3D6;   /* panels, badges, placeholders */
  --hk-mist:   #F6F8F5;   /* page background */
  --hk-moss:   #3F5A53;   /* secondary text */
  --hk-line:   #DCE5DF;   /* borders */
  --hk-white:  #FFFFFF;

  --hk-font-head: 'Outfit', system-ui, -apple-system, Segoe UI, sans-serif;
  --hk-font-body: 'Inter', system-ui, -apple-system, Segoe UI, sans-serif;

  --hk-radius-btn: 14px;
  --hk-radius-card: 20px;
  --hk-tap: 56px;         /* minimum tap target height */
  --hk-maxw: 1200px;
}

/* =========================================================================
   Base
   ========================================================================= */
body.hk {
  margin: 0;
  background: var(--hk-mist);
  color: var(--hk-forest);
  font-family: var(--hk-font-body);
  font-size: 18px;
  line-height: 1.6;
}
.hk h1, .hk h2, .hk h3, .hk h4 { font-family: var(--hk-font-head); line-height: 1.12; margin: 0; }
.hk a { color: var(--hk-forest); }
.hk a:hover { color: var(--hk-ember); }
.hk img { max-width: 100%; height: auto; display: block; }
.hk *, .hk *::before, .hk *::after { box-sizing: border-box; }

.hk-wrap { max-width: var(--hk-maxw); margin: 0 auto; padding-left: 24px; padding-right: 24px; }
.hk-visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0; padding: 0; margin: -1px;
}

/* Buttons */
.hk-btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 60px; padding: 16px 28px; border-radius: var(--hk-radius-btn);
  font-family: var(--hk-font-body); font-weight: 600; font-size: 18px;
  text-decoration: none; border: 0; cursor: pointer; line-height: 1;
}
.hk-btn--buy { background: var(--hk-ember); color: var(--hk-white); }
.hk-btn--buy:hover { background: var(--hk-ember-dark); color: var(--hk-white); }
.hk-btn--ghost { background: transparent; color: var(--hk-forest); border: 2px solid var(--hk-forest); }
.hk-btn--ghost:hover { color: var(--hk-forest); background: rgba(22,48,43,.05); }
.hk-btn--block { width: 100%; }

.hk-badge {
  display: inline-block; background: var(--hk-sage); color: var(--hk-forest);
  border-radius: 999px; padding: 4px 14px; font-size: 14px; font-weight: 600;
}

/* =========================================================================
   Header + announcement bar
   ========================================================================= */
.hk-announce {
  background: var(--hk-forest); color: var(--hk-white); text-align: center;
  font-size: 15px; font-weight: 600; padding: 10px 16px;
}
.hk-header { background: var(--hk-white); border-bottom: 1px solid var(--hk-line); }
.hk-header__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding-top: 16px; padding-bottom: 16px; flex-wrap: wrap;
}
.hk-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.hk-logo__text { font-family: var(--hk-font-head); font-weight: 700; font-size: 26px; color: var(--hk-forest); }
.hk-logo__amp { color: var(--hk-ember); }
.hk-nav { display: flex; gap: 28px; flex-wrap: wrap; font-weight: 500; }
ul.hk-nav { list-style: none; margin: 0; padding: 0; } /* when a WP menu is assigned */
ul.hk-nav li { display: flex; }
.hk-nav a { text-decoration: none; }
.hk-header__actions { display: flex; align-items: center; gap: 4px; }
.hk-iconbtn {
  background: none; border: 0; width: 44px; height: 44px; cursor: pointer;
  display: flex; align-items: center; justify-content: center; color: var(--hk-forest);
  position: relative; text-decoration: none;
}
.hk-cart-count {
  position: absolute; top: 4px; right: 2px; background: var(--hk-ember); color: #fff;
  font-size: 11px; font-weight: 700; line-height: 1; min-width: 17px; height: 17px;
  border-radius: 999px; display: flex; align-items: center; justify-content: center; padding: 0 4px;
}
.hk-navtoggle { display: none; }

/* Distraction-free checkout header/footer */
.hk-secure-badge { display: flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 600; color: var(--hk-moss); }
.hk-header--checkout .hk-header__inner { justify-content: space-between; }
.hk-footer--checkout { margin-top: 48px; }
.hk-footer--checkout .hk-footer__inner { align-items: center; }
.hk-footer__copy { color: var(--hk-line); font-size: 14px; }

@media (max-width: 860px) {
  .hk-nav {
    flex-basis: 100%; flex-direction: column; gap: 0; order: 3;
    max-height: 0; overflow: hidden; transition: max-height .25s ease;
  }
  .hk-nav.is-open { max-height: 420px; padding: 8px 0; }
  .hk-nav a { padding: 12px 4px; border-top: 1px solid var(--hk-line); }
  .hk-navtoggle { display: flex; }
}

/* =========================================================================
   Footer
   ========================================================================= */
.hk-footer { margin-top: 72px; background: var(--hk-forest); color: var(--hk-line); font-size: 15px; }
.hk-footer__inner {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 20px;
  padding-top: 40px; padding-bottom: 40px;
}
.hk-footer__brand { font-family: var(--hk-font-head); font-weight: 700; font-size: 22px; color: var(--hk-white); }
.hk-footer__links { display: flex; flex-wrap: wrap; gap: 10px 24px; align-items: center; }
.hk-footer a { color: var(--hk-white); }
.hk-footer a:hover { color: var(--hk-sage); }

/* =========================================================================
   Home
   ========================================================================= */
.hk-hero {
  display: flex; flex-wrap: wrap; gap: 48px; align-items: center;
  padding-top: 56px; padding-bottom: 56px;
}
.hk-hero__copy { flex: 1 1 480px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.hk-hero__title { font-size: 56px; font-weight: 700; }
.hk-hero__lede { margin: 0; color: var(--hk-moss); font-size: 20px; }
.hk-hero__actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hk-hero__media {
  flex: 1 1 480px; min-width: 0; min-height: 460px; border-radius: 28px;
  background: var(--hk-sage); display: flex; align-items: center; justify-content: center;
  text-align: center; padding: 24px; color: var(--hk-moss); font-size: 16px; overflow: hidden;
}
.hk-hero__media img { width: 100%; height: 100%; object-fit: cover; border-radius: 28px; }

.hk-trust { background: var(--hk-white); border-top: 1px solid var(--hk-line); border-bottom: 1px solid var(--hk-line); }
.hk-trust__grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px;
  text-align: center; font-weight: 600; font-size: 16px; padding-top: 20px; padding-bottom: 20px;
}

.hk-section { padding-top: 72px; }
.hk-section__head { display: flex; flex-direction: column; gap: 8px; margin-bottom: 28px; }
.hk-section__head h2 { font-size: 40px; }
.hk-section__head p { margin: 0; color: var(--hk-moss); }

.hk-kits { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; }
.hk-kitcard {
  background: var(--hk-white); border: 1px solid var(--hk-line); border-radius: 22px;
  overflow: hidden; text-decoration: none; display: flex; flex-direction: column;
}
.hk-kitcard:hover { box-shadow: 0 8px 24px rgba(22,48,43,.08); }
.hk-kitcard__media {
  aspect-ratio: 5 / 4; background: var(--hk-sage); display: flex; align-items: center;
  justify-content: center; color: var(--hk-moss); font-size: 15px; overflow: hidden;
}
.hk-kitcard__media img { width: 100%; height: 100%; object-fit: cover; }
.hk-kitcard__body { padding: 22px 24px; display: flex; flex-direction: column; gap: 6px; }
.hk-kitcard__tag { font-size: 14px; font-weight: 600; color: var(--hk-moss); }
.hk-kitcard__title { font-family: var(--hk-font-head); font-size: 24px; font-weight: 700; }
.hk-kitcard__summary { color: var(--hk-moss); }
.hk-kitcard__foot { display: flex; justify-content: space-between; align-items: center; margin-top: 8px; }
.hk-kitcard__price { font-size: 20px; font-weight: 700; }
.hk-kitcard__cta { color: var(--hk-ember); font-weight: 600; }

.hk-features { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.hk-feature {
  background: var(--hk-white); border: 1px solid var(--hk-line); border-radius: 20px;
  padding: 28px; display: flex; flex-direction: column; gap: 8px;
}
.hk-feature strong { font-size: 20px; }
.hk-feature span { color: var(--hk-moss); }

.hk-signup {
  background: var(--hk-forest); color: var(--hk-white); border-radius: 28px; padding: 48px;
  display: flex; flex-wrap: wrap; gap: 32px; align-items: center; justify-content: space-between;
}
.hk-signup__copy { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.hk-signup__copy h2 { font-size: 34px; color: var(--hk-white); }
.hk-signup__copy p { margin: 0; color: var(--hk-line); }
.hk-signup__form { flex: 1 1 420px; min-width: 0; display: flex; gap: 10px; flex-wrap: wrap; }
.hk-signup__form input {
  flex: 1 1 240px; min-width: 0; min-height: var(--hk-tap); border-radius: 12px; border: 0;
  padding: 0 16px; font: 400 17px var(--hk-font-body);
}
.hk-signup__form button { min-height: var(--hk-tap); border-radius: 12px; padding: 0 24px; }

.hk-about { max-width: 820px; margin: 0 auto; text-align: center; display: flex; flex-direction: column; gap: 12px; }
.hk-about h2 { font-size: 34px; }
.hk-about p { margin: 0; color: var(--hk-moss); }

@media (max-width: 680px) {
  .hk-hero { padding-top: 28px; gap: 16px; }
  .hk-hero__title { font-size: 36px; }
  .hk-hero__lede { font-size: 18px; }
  .hk-hero__media { min-height: 300px; }
  .hk-hero__actions .hk-btn { width: 100%; }
  .hk-section { padding-top: 40px; }
  .hk-section__head h2 { font-size: 28px; }
  .hk-signup { padding: 28px 20px; }
  .hk-signup__copy h2 { font-size: 26px; }
  .hk-signup__form { flex-direction: column; }
}

/* =========================================================================
   Single product
   ========================================================================= */
.hk-product { padding-top: 40px; padding-bottom: 8px; }
.hk-product__top { display: flex; flex-wrap: wrap; gap: 48px; align-items: flex-start; }
.hk-gallery { flex: 1 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.hk-gallery__main {
  aspect-ratio: 1 / 1; border-radius: 24px; background: var(--hk-sage); overflow: hidden;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 12px; text-align: center; padding: 32px; color: var(--hk-moss);
}
.hk-gallery__main img { width: 100%; height: 100%; object-fit: cover; border-radius: 24px; }
.hk-gallery__thumbs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.hk-thumb {
  aspect-ratio: 1 / 1; border-radius: 14px; background: var(--hk-white); border: 1px solid var(--hk-line);
  overflow: hidden; cursor: pointer; padding: 0; display: flex; align-items: center; justify-content: center;
  color: var(--hk-moss); font-size: 13px;
}
.hk-thumb.is-active { border: 2px solid var(--hk-forest); }
.hk-thumb img { width: 100%; height: 100%; object-fit: cover; }

.hk-summary { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.hk-summary__title { font-size: 48px; font-weight: 700; }
.hk-summary__lede { margin: 0; color: var(--hk-moss); font-size: 19px; }
.hk-summary__lede p { margin: 0; }
.hk-checks { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 8px; }
.hk-checks li { display: flex; gap: 10px; }
.hk-checks li::before { content: "✓"; color: var(--hk-ember); font-weight: 700; }

/* Bundle radio cards */
.hk-bundle { margin: 0; padding: 0; border: 0; display: flex; flex-direction: column; gap: 10px; }
.hk-bundle__legend { font-weight: 600; margin-bottom: 4px; padding: 0; }
.hk-bundle__card {
  position: relative; width: 100%; min-height: 76px; border-radius: 16px; padding: 14px 18px;
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  background: var(--hk-white); border: 2px solid var(--hk-line); cursor: pointer;
}
.hk-bundle__card:has(input:focus-visible) { outline: 3px solid rgba(184,80,31,.4); outline-offset: 2px; }
.hk-bundle__card.is-active { border-color: var(--hk-ember); }
.hk-bundle__card input { position: absolute; opacity: 0; pointer-events: none; }
.hk-bundle__left { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; text-align: left; }
.hk-bundle__name { font-weight: 700; font-size: 19px; }
.hk-bundle__note { font-size: 15px; color: var(--hk-moss); }
.hk-bundle__right { display: flex; flex-direction: column; align-items: flex-end; }
.hk-bundle__price { font-weight: 700; font-size: 22px; }
.hk-bundle__save { font-size: 14px; color: var(--hk-ember); font-weight: 600; min-height: 1em; }

/* Woo variations form: keep the native select for JS, hide it visually */
.hk-summary form.variations_form .variations { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); margin: -1px; }
.hk-summary .single_variation_wrap { display: flex; flex-direction: column; gap: 10px; }
.hk-summary .woocommerce-variation-price { display: none; } /* price shown on cards + CTA button; JS still reads it */
.hk-summary .woocommerce-variation-availability { text-align: center; color: var(--hk-moss); font-size: 14px; }
.hk-summary .single_add_to_cart_button {
  background: var(--hk-ember); color: #fff; border: 0; border-radius: var(--hk-radius-btn);
  min-height: 60px; font: 600 20px var(--hk-font-body); cursor: pointer; width: 100%;
}
.hk-summary .single_add_to_cart_button:hover { background: var(--hk-ember-dark); }
.hk-summary .single_add_to_cart_button.disabled { opacity: .5; cursor: not-allowed; }
.hk-summary .quantity { display: none; } /* kits are sold per bundle */
.hk-secure { text-align: center; font-size: 15px; color: var(--hk-moss); }
.hk-minirow { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; text-align: center; font-size: 14px; font-weight: 600; }
.hk-minirow > div { background: var(--hk-white); border: 1px solid var(--hk-line); border-radius: 14px; padding: 12px 8px; }

/* Product marketing sections */
.hk-band { background: var(--hk-forest); color: var(--hk-white); margin-top: 40px; }
.hk-band__inner { max-width: 820px; margin: 0 auto; padding: 64px 24px; text-align: center; display: flex; flex-direction: column; gap: 14px; }
.hk-band__inner h2 { font-size: 36px; color: var(--hk-white); }
.hk-band__inner p { margin: 0; color: var(--hk-line); font-size: 19px; }

.hk-inkit { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.hk-inkit__item { background: var(--hk-white); border: 1px solid var(--hk-line); border-radius: 20px; overflow: hidden; }
.hk-inkit__media { aspect-ratio: 4 / 3; background: var(--hk-sage); display: flex; align-items: center; justify-content: center; color: var(--hk-moss); font-size: 15px; }
.hk-inkit__media img { width: 100%; height: 100%; object-fit: cover; }
.hk-inkit__body { padding: 20px 24px; }
.hk-inkit__body span { color: var(--hk-moss); }

.hk-steps { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.hk-steps li { background: var(--hk-white); border: 1px solid var(--hk-line); border-radius: 20px; padding: 24px; display: flex; flex-direction: column; gap: 10px; }
.hk-steps__num { width: 44px; height: 44px; border-radius: 999px; background: var(--hk-forest); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; }
.hk-steps strong { font-size: 19px; }
.hk-steps span { color: var(--hk-moss); }

.hk-guarantee { background: var(--hk-sage); border-radius: 24px; padding: 36px 40px; display: flex; flex-wrap: wrap; gap: 24px; align-items: center; justify-content: space-between; }
.hk-guarantee__copy { flex: 1 1 480px; min-width: 0; }
.hk-guarantee__copy h2 { font-size: 30px; margin-bottom: 8px; color: var(--hk-forest); }
.hk-guarantee__copy p { margin: 0; }

/* FAQ via <details>/<summary> */
.hk-faq { max-width: 820px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.hk-faq__item { background: var(--hk-white); border: 1px solid var(--hk-line); border-radius: 16px; overflow: hidden; }
.hk-faq__item > summary {
  list-style: none; cursor: pointer; min-height: 60px; padding: 16px 20px;
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  font: 600 18px var(--hk-font-body); color: var(--hk-forest);
}
.hk-faq__item > summary::-webkit-details-marker { display: none; }
.hk-faq__item > summary::after { content: "+"; font-size: 24px; color: var(--hk-moss); line-height: 1; }
.hk-faq__item[open] > summary::after { content: "\2212"; } /* minus */
.hk-faq__answer { padding: 0 20px 18px; color: var(--hk-moss); }

/* Mobile sticky add-to-cart */
.hk-stickybar {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 90; display: none;
  background: var(--hk-white); border-top: 1px solid var(--hk-line);
  padding: 10px 16px; align-items: center; gap: 12px;
  box-shadow: 0 -4px 16px rgba(22,48,43,.08);
  padding-bottom: calc(10px + env(safe-area-inset-bottom, 0px));
}
.hk-stickybar__info { flex: 1; font-size: 14px; line-height: 1.3; }
.hk-stickybar__info span { color: var(--hk-moss); }
.hk-stickybar__btn {
  background: var(--hk-ember); color: #fff; border: 0; border-radius: 12px;
  min-height: 50px; padding: 0 20px; font: 600 17px var(--hk-font-body); cursor: pointer;
}
.hk-stickybar__btn:hover { background: var(--hk-ember-dark); }

@media (max-width: 860px) {
  .hk-summary__title { font-size: 32px; }
  .hk-gallery__thumbs { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .hk-stickybar { display: flex; }
  .hk-footer { padding-bottom: 80px; } /* clear the sticky bar */
}

/* =========================================================================
   Track Order + Contact widgets (shortcodes)
   ========================================================================= */
.hk-track { max-width: 640px; }
.hk-track__form { display: flex; gap: 10px; flex-wrap: wrap; }
.hk-track__form input {
  flex: 1 1 240px; min-width: 0; min-height: 52px; border: 1px solid #B9C7BF;
  border-radius: 10px; padding: 0 14px; font: 400 17px var(--hk-font-body); color: var(--hk-forest);
}
.hk-track__form input:focus { border-color: var(--hk-forest); outline: none; box-shadow: 0 0 0 1px var(--hk-forest); }
.hk-track__result:not(:empty) { margin-top: 20px; }
.hk-track__hint { font-size: 14px; color: var(--hk-moss); margin-top: 12px; }

/* Contact page 2-column layout */
.hk-contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: 40px;
  align-items: start;
}
.hk-contact-grid__main h2,
.hk-contact-grid__aside h2 { margin-top: 0; }
.hk-contact-grid__aside {
  background: var(--hk-sage);
  border-radius: var(--hk-radius-card);
  padding: 24px 28px;
}
.hk-contact-grid__aside p { margin: 0 0 14px; }
.hk-contact-grid__aside ul { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 8px; }
.hk-contact-grid__aside a { font-weight: 600; }
@media (max-width: 860px) {
  .hk-contact-grid { grid-template-columns: 1fr; gap: 28px; }
}

.hk-contact { max-width: 640px; display: flex; flex-direction: column; gap: 14px; }
.hk-contact .hk-field { margin: 0; display: flex; flex-direction: column; gap: 6px; }
.hk-contact label { font-size: 14px; font-weight: 600; color: var(--hk-forest); }
.hk-contact input, .hk-contact textarea {
  width: 100%; min-height: 52px; border: 1px solid #B9C7BF; border-radius: 10px;
  padding: 12px 14px; font: 400 17px var(--hk-font-body); color: var(--hk-forest); box-sizing: border-box;
}
.hk-contact textarea { min-height: 120px; resize: vertical; }
.hk-contact input:focus, .hk-contact textarea:focus { border-color: var(--hk-forest); outline: none; box-shadow: 0 0 0 1px var(--hk-forest); }
.hk-contact .hk-btn { align-self: flex-start; }
.hk-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.hk-formmsg { border-radius: 14px; padding: 16px 20px; margin-bottom: 20px; font-weight: 600; }
.hk-formmsg--ok { background: var(--hk-sage); color: var(--hk-forest); }

/* =========================================================================
   WooCommerce defaults restyle (shop / cart / checkout) with tokens
   ========================================================================= */
.woocommerce ul.products li.product .button,
.woocommerce a.button, .woocommerce button.button,
.woocommerce #respond input#submit, .woocommerce input.button {
  background: var(--hk-forest); color: #fff; border-radius: 12px;
  font-family: var(--hk-font-body); font-weight: 600; min-height: 48px;
}
.woocommerce a.button.alt, .woocommerce button.button.alt,
.woocommerce #respond input#submit.alt, .woocommerce input.button.alt,
.woocommerce .checkout-button, .woocommerce #place_order {
  background: var(--hk-ember); color: #fff;
}
.woocommerce a.button.alt:hover, .woocommerce button.button.alt:hover,
.woocommerce #place_order:hover { background: var(--hk-ember-dark); }
.woocommerce .price, .woocommerce-Price-amount { color: var(--hk-forest); }
.woocommerce-message, .woocommerce-info { border-top-color: var(--hk-ember); }
