/*
Theme Name: The Smokin' Squirrel
Theme URI: https://thesmokinsquirrel.com/
Author: The Smokin' Squirrel
Description: A lightweight WooCommerce theme for small-batch smoked pecans.
Version: 1.2.2
Requires at least: 6.5
Requires PHP: 7.4
Text Domain: smokin-squirrel
*/

:root {
  --ss-cream: #fcfaf7;
  --ss-cream-alt: #f4eddf;
  --ss-espresso: #3d1914;
  --ss-espresso-soft: #6b3b2c;
  --ss-orange: #f2561a;
  --ss-orange-dark: #d6430d;
  --ss-amber: #c08a3e;
  --ss-tan: #ae997a;
  --ss-line: rgba(61, 25, 20, 0.12);
  --ss-shadow: 0 18px 45px rgba(61, 25, 20, 0.12);
  --ss-wrap: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ss-cream);
  color: var(--ss-espresso);
  font-family: "Libre Franklin", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.65;
}
body.admin-bar .site-header { top: 32px; }
img { max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, h4, h5, .display {
  font-family: "Anton", Impact, sans-serif;
  font-weight: 400;
  letter-spacing: .015em;
  line-height: 1.03;
  text-transform: uppercase;
}
h1 { font-size: clamp(2.8rem, 7vw, 5.6rem); }
h2 { font-size: clamp(2.15rem, 4.4vw, 3.5rem); }
h3 { font-size: clamp(1.35rem, 2.5vw, 2rem); }
:focus-visible { outline: 3px solid var(--ss-orange); outline-offset: 3px; }
.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; }
.wrap { width: min(100% - 40px, var(--ss-wrap)); margin-inline: auto; }
.eyebrow { color: var(--ss-orange-dark); font-size: .75rem; font-weight: 800; letter-spacing: .17em; text-transform: uppercase; }
.script { color: var(--ss-orange); font-family: "Caveat", cursive; font-weight: 700; text-transform: none; }

.site-header { position: sticky; top: 0; z-index: 80; border-bottom: 1px solid var(--ss-line); background: rgba(252,250,247,.94); backdrop-filter: blur(12px); }
.nav-shell { min-height: 78px; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 30px; }
.site-branding img { display: block; width: 170px; max-height: 62px; object-fit: contain; object-position: left center; }
.site-title { font-family: "Anton", sans-serif; font-size: 1.4rem; text-decoration: none; text-transform: uppercase; }
.primary-menu { display: flex; justify-content: center; gap: 28px; margin: 0; padding: 0; list-style: none; }
.primary-menu a { color: var(--ss-espresso-soft); font-size: .78rem; font-weight: 800; letter-spacing: .05em; text-decoration: none; text-transform: uppercase; }
.primary-menu a:hover { color: var(--ss-orange-dark); }
.nav-actions { display: flex; align-items: center; gap: 12px; }
.cart-link, .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; gap: 8px;
  border: 0; border-radius: 3px; background: var(--ss-orange); color: white;
  padding: 13px 22px; font: 800 .78rem/1 "Libre Franklin", sans-serif;
  letter-spacing: .055em; text-decoration: none; text-transform: uppercase; cursor: pointer;
  transition: transform .2s ease, background .2s ease;
}
.cart-link:hover, .button:hover, button:hover, input[type="submit"]:hover, .wp-element-button:hover, .woocommerce a.button:hover, .woocommerce button.button:hover { background: var(--ss-orange-dark); color: white; transform: translateY(-2px); }
.cart-count { min-width: 21px; height: 21px; display: inline-grid; place-items: center; border-radius: 50%; background: var(--ss-espresso); color: white; font-size: .67rem; }
.menu-toggle { display: none; padding: 10px; background: transparent; color: var(--ss-espresso); border: 1px solid var(--ss-line); }

.hero { position: relative; overflow: hidden; padding: 84px 0 0; }
.hero::before, .hero::after { content: ""; position: absolute; width: 320px; height: 320px; border-radius: 50%; opacity: .18; filter: blur(1px); }
.hero::before { left: -170px; top: 40px; background: var(--ss-orange); }
.hero::after { right: -150px; bottom: -120px; background: var(--ss-amber); }
.hero-layout { position: relative; z-index: 1; display: grid; grid-template-columns: 1.25fr .75fr; align-items: center; gap: 70px; }
.hero-copy { max-width: 720px; }
.hero h1 { margin: 18px 0; }
.hero h1 .script { display: block; font-size: .8em; }
.hero .lede { max-width: 640px; margin: 0 0 30px; color: var(--ss-espresso-soft); font-size: clamp(1rem, 2vw, 1.22rem); }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 22px; }
.text-link { color: var(--ss-orange-dark); font-size: .82rem; font-weight: 800; letter-spacing: .04em; text-decoration: none; text-transform: uppercase; }
.hero-showcase { position: relative; min-height: 430px; display: grid; place-items: center; overflow: hidden; border-radius: 50% 50% 8px 8px; background: var(--ss-orange); box-shadow: var(--ss-shadow); }
.hero-showcase::before { content: ""; position: absolute; inset: 24px; border: 1px solid rgba(255,255,255,.45); border-radius: 50% 50% 8px 8px; }
.hero-nuts { position: relative; z-index: 1; display: flex; align-items: center; justify-content: center; gap: 8px; width: 90%; }
.hero-nuts i { position: relative; width: 92px; height: 190px; display: block; border: 7px solid var(--ss-espresso); border-radius: 52% 48% 50% 50%; transform: rotate(-13deg); box-shadow: 0 12px 0 rgba(61,25,20,.12); }
.hero-nuts i::after { content: ""; position: absolute; inset: 12px 23px; border-left: 7px solid var(--ss-espresso); border-radius: 50%; transform: rotate(-12deg); }
.hero-nuts .nut-chili { background: #ff8a58; }
.hero-nuts .nut-coco { height: 225px; background: var(--ss-espresso); border-color: var(--ss-cream); transform: translateY(-12px); }
.hero-nuts .nut-coco::after { border-color: var(--ss-orange); }
.hero-nuts .nut-vanilla { background: #d7a85b; transform: rotate(13deg); }
.hero-flavors { position: absolute; z-index: 2; right: 20px; bottom: 20px; left: 20px; display: flex; justify-content: center; gap: 8px; }
.hero-flavors span { padding: 8px 10px; border-radius: 2px; background: var(--ss-cream); font-size: .63rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.button-secondary { border: 2px solid var(--ss-espresso); background: transparent; color: var(--ss-espresso); }
.button-secondary:hover { background: var(--ss-espresso); color: white; }
.trust-strip { margin-top: 55px; padding: 20px 0; border-top: 1px solid var(--ss-line); font-size: .76rem; font-weight: 800; letter-spacing: .08em; text-align: center; text-transform: uppercase; }
.hero-treeline { position: relative; z-index: 1; display: block; width: 100%; height: 82px; object-fit: cover; object-position: bottom center; }

.section { padding: 90px 0; }
.section-alt { background: var(--ss-cream-alt); }
.section-dark { background: var(--ss-espresso); color: var(--ss-cream); }
.section-head { max-width: 720px; margin-bottom: 44px; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head h2 { margin: 10px 0 14px; }
.section-head p { margin: 0; color: var(--ss-espresso-soft); }
.section-dark .section-head p { color: #e4d9c4; }
.choice-grid, .flavor-grid, .process-grid, .story-grid, .contact-grid, .client-grid { display: grid; gap: 26px; }
.choice-grid, .flavor-grid { grid-template-columns: repeat(3, 1fr); }
.choice-card, .flavor-card, .info-card { padding: 30px; border: 1px solid var(--ss-line); border-radius: 7px; background: var(--ss-cream); }
.choice-card h3, .flavor-card h3 { margin: 0 0 10px; }
.cant-decide { margin: 30px 0 0; text-align: center; }
.cant-decide a { color: var(--ss-orange-dark); font-weight: 800; }
.flavor-card { display: flex; flex-direction: column; min-height: 100%; transition: transform .25s ease, box-shadow .25s ease; }
.flavor-card:hover { transform: translateY(-6px); box-shadow: var(--ss-shadow); }
.flavor-image { display: block; margin: -30px -30px 25px; overflow: hidden; border-radius: 7px 7px 0 0; background: var(--ss-cream-alt); }
.flavor-image img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .3s ease; }
.flavor-card:hover .flavor-image img { transform: scale(1.035); }
.flavor-card p { color: var(--ss-espresso-soft); }
.flavor-meta { margin-top: auto; padding-top: 18px; border-top: 1px solid var(--ss-line); font-size: .84rem; font-weight: 800; }
.flavor-card .button { margin-top: 18px; align-self: flex-start; }
.video-placeholder, .photo-placeholder, .form-placeholder { padding: 34px 24px; border: 1px solid currentColor; border-radius: 7px; text-align: center; opacity: .82; }
.video-placeholder strong, .photo-placeholder strong, .form-placeholder strong { display: block; margin-bottom: 7px; letter-spacing: .08em; text-transform: uppercase; }
.sampler { padding: 70px 0; background: var(--ss-orange); color: white; text-align: center; }
.sampler h2 { margin: 0 0 12px; }
.sampler p { max-width: 720px; margin: 0 auto 28px; font-size: 1.1rem; }
.sampler .button { background: var(--ss-espresso); }
.process-grid { grid-template-columns: repeat(3, 1fr); }
.process-step { padding: 28px; border-left: 3px solid var(--ss-orange); background: white; }
.process-step small { color: var(--ss-orange-dark); font-weight: 800; letter-spacing: .12em; }
.story-grid { grid-template-columns: .9fr 1.1fr; align-items: center; gap: 60px; }
.story-copy p { color: #e4d9c4; }
.reaction-layout { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 70px; }
.reaction-layout h2 { margin: 10px 0 14px; }
.reaction-layout > div:first-child p { color: #e4d9c4; }
.reaction-card { display: flex; align-items: center; gap: 24px; padding: 34px; border: 1px solid rgba(255,255,255,.22); border-radius: 8px; background: rgba(255,255,255,.06); }
.reaction-card strong { display: block; margin-bottom: 5px; font-size: .82rem; letter-spacing: .05em; text-transform: uppercase; }
.reaction-card p { margin: 0; color: #e4d9c4; }
.play-mark { flex: 0 0 66px; height: 66px; display: grid; place-items: center; border-radius: 50%; background: var(--ss-orange); color: white; }
.story-note { padding: 52px; border: 1px solid rgba(255,255,255,.2); border-radius: 8px; background: rgba(255,255,255,.06); }
.story-note span, .story-note strong { display: block; }
.story-note span { color: var(--ss-orange); font-size: .72rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.story-note strong { margin: 18px 0; font-family: "Anton", sans-serif; font-size: clamp(2rem, 4vw, 3.4rem); font-weight: 400; line-height: 1; text-transform: uppercase; }
.story-note p { margin: 0; color: #e4d9c4; }
.forest-divider { height: 95px; overflow: hidden; background: var(--ss-cream); }
.forest-divider img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: bottom center; }
.gifting { background: var(--ss-cream-alt); }
.gift-details { display: grid; gap: 12px; }
.gift-details div { display: grid; grid-template-columns: 48px 1fr; align-items: center; gap: 15px; padding: 20px 24px; border: 1px solid var(--ss-line); border-radius: 6px; background: var(--ss-cream); }
.gift-details strong { color: var(--ss-orange); font-family: "Anton", sans-serif; font-size: 1.6rem; font-weight: 400; }
.gift-details span { font-weight: 800; }
.promise { padding: 48px 0; background: var(--ss-espresso); color: var(--ss-cream); }
.promise .wrap { display: grid; grid-template-columns: 1.1fr .9fr; align-items: center; gap: 45px; }
.promise h2 { margin: 8px 0 0; font-size: clamp(1.9rem, 3.7vw, 3rem); }
.promise p { margin: 0; color: #e4d9c4; }
.faq-list details { padding: 20px 0; border-bottom: 1px solid var(--ss-line); }
.faq-list summary { cursor: pointer; font-weight: 800; }
.newsletter { padding: 72px 0; background: var(--ss-amber); text-align: center; }
.newsletter .form-placeholder { max-width: 720px; margin: 28px auto 0; }
.signup-coming-soon { width: min(100%, 560px); margin: 28px auto 10px; padding: 17px 22px; border: 2px solid var(--ss-espresso); border-radius: 3px; background: rgba(255,255,255,.35); font-size: .85rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.final-cta { padding: 72px 0; background: var(--ss-orange); color: white; text-align: center; }
.final-cta h2 { margin: 0 0 22px; }
.final-cta .button { background: var(--ss-espresso); }
.client-checklist { padding: 60px 0; background: #fff5df; }
.client-grid { grid-template-columns: repeat(4, 1fr); }
.client-item { padding: 20px; border-left: 3px solid var(--ss-amber); background: white; font-size: .9rem; }

.page-hero { padding: 75px 0 45px; background: var(--ss-cream-alt); }
.page-hero h1 { margin: 8px 0; font-size: clamp(2.5rem, 6vw, 4.7rem); }
.entry-content { padding: 70px 0 90px; }
.entry-content > * { max-width: 900px; margin-inline: auto; }
.entry-content > .alignwide { max-width: var(--ss-wrap); }
.entry-content > .alignfull { max-width: none; }
.entry-content h2 { margin-top: 2em; }
.entry-content .story-fact-card { min-height: 320px; display: flex; flex-direction: column; justify-content: flex-end; padding: 42px; border-radius: 8px; background: var(--ss-orange); color: white; }
.entry-content .story-fact-card h2 { margin: 12px 0; }
.entry-content .story-fact-card .eyebrow { color: white; }
.entry-content .story-fact-card-dark { background: var(--ss-espresso); }
.contact-grid { grid-template-columns: repeat(2, 1fr); }
.contact-card { padding: 34px; background: var(--ss-cream-alt); border-radius: 7px; }

.woocommerce-page main.site-main { width: min(100% - 40px, var(--ss-wrap)); margin: 70px auto 90px; }
.woocommerce ul.products { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.woocommerce ul.products::before, .woocommerce ul.products::after { display: none; }
.woocommerce ul.products li.product { width: auto; float: none; margin: 0; padding: 25px; border: 1px solid var(--ss-line); border-radius: 7px; background: white; }
.woocommerce ul.products li.product .woocommerce-loop-product__title { color: var(--ss-espresso); font-family: "Anton", sans-serif; font-size: 1.55rem; text-transform: uppercase; }
.woocommerce div.product .product_title { font-size: clamp(2.2rem, 5vw, 4rem); }
.woocommerce div.product div.images img { border-radius: 8px; background: var(--ss-cream-alt); }
.woocommerce div.product p.price, .woocommerce div.product span.price { color: var(--ss-orange-dark); font-weight: 800; }
.woocommerce-message, .woocommerce-info { border-top-color: var(--ss-orange); background: var(--ss-cream-alt); }
.woocommerce-message::before, .woocommerce-info::before { color: var(--ss-orange); }
.woocommerce table.shop_table { border-color: var(--ss-line); border-radius: 4px; }
.woocommerce .quantity .qty, input[type="text"], input[type="email"], input[type="tel"], input[type="number"], textarea, select { min-height: 44px; padding: 10px 12px; border: 1px solid var(--ss-tan); border-radius: 3px; background: white; color: var(--ss-espresso); }

.site-footer { padding: 70px 0 25px; background: #27100d; color: #eadfce; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 45px; }
.footer-wordmark { display: block; color: white; font-family: "Anton", sans-serif; font-size: clamp(2rem, 4vw, 3.2rem); line-height: 1; text-decoration: none; text-transform: uppercase; }
.footer-tagline { display: block; margin-top: 10px; color: var(--ss-orange); font-family: "Caveat", cursive; font-size: 1.35rem; font-weight: 700; }
.footer-brand p { max-width: 440px; }
.footer-nav { margin: 0; padding: 0; list-style: none; }
.footer-nav li { margin: 8px 0; }
.footer-nav a { color: #eadfce; text-decoration: none; }
.footer-contact a { color: white; }
.footer-bottom { margin-top: 50px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.14); font-size: .77rem; }

@media (max-width: 900px) {
  body.admin-bar .site-header { top: 46px; }
  .nav-shell { grid-template-columns: 1fr auto auto; }
  .menu-toggle { display: inline-flex; }
  .site-nav { display: none; position: absolute; inset: 78px 0 auto; padding: 20px; background: var(--ss-cream); border-bottom: 1px solid var(--ss-line); }
  .site-nav.is-open { display: block; }
  .primary-menu { flex-direction: column; align-items: center; }
  .choice-grid, .flavor-grid, .process-grid, .client-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-layout, .story-grid, .promise .wrap, .reaction-layout { grid-template-columns: 1fr; }
  .hero-copy { text-align: center; margin-inline: auto; }
  .hero .lede { margin-inline: auto; }
  .hero-actions { justify-content: center; }
  .hero-showcase { width: min(480px, 100%); min-height: 380px; margin-inline: auto; }
  .woocommerce ul.products { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 620px) {
  .wrap { width: min(100% - 28px, var(--ss-wrap)); }
  .site-branding img { width: 135px; }
  .nav-actions .cart-word { display: none; }
  .hero { padding-top: 55px; }
  .section { padding: 65px 0; }
  .choice-grid, .flavor-grid, .process-grid, .client-grid, .contact-grid, .footer-grid, .woocommerce ul.products { grid-template-columns: 1fr; }
  .hero { padding-top: 58px; }
  .hero-layout { gap: 42px; }
  .hero-showcase { min-height: 340px; }
  .hero-nuts i { width: 72px; height: 150px; }
  .hero-nuts .nut-coco { height: 178px; }
  .hero-flavors { flex-wrap: wrap; }
  .trust-strip { line-height: 1.8; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}
