/* Shushan Sugar Shack — low-fidelity prototype helpers
   Intentionally neutral. Foundation handles the grid/components;
   foundation-layout.css and foundation-utilities.css handle spacing/layout utilities. */

[x-cloak] { display: none !important; }

:root {
  --wire-ink: #252525;
  --wire-mid: #777;
  --wire-line: #b8b8b8;
  --wire-soft: #e9e9e9;
  --wire-softer: #f5f5f5;
  --wire-white: #fff;
}

html { scroll-behavior: smooth; }
body { color: var(--wire-ink); background: var(--wire-white); }
a { color: inherit; }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: var(--wire-ink);
  color: #fff;
  padding: .75rem 1rem;
}
.skip-link:focus { left: .5rem; top: .5rem; }

.prototype-bar {
  border-bottom: 1px solid var(--wire-line);
  background: var(--wire-softer);
  font-size: .875rem;
}

.site-header {
  border-bottom: 1px solid var(--wire-line);
  background: #fff;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 13rem;
  min-height: 3rem;
  border: 2px solid var(--wire-ink);
  font-weight: 700;
  letter-spacing: .02em;
  text-decoration: none;
}

.nav-links a {
  display: inline-block;
  padding: .5rem .65rem;
  text-decoration: none;
  border-bottom: 2px solid transparent;
}
.nav-links a:hover,
.nav-links a:focus { border-bottom-color: var(--wire-ink); }

.mobile-nav {
  border-top: 1px solid var(--wire-line);
}

.wire-panel,
.wire-card {
  border: 1px solid var(--wire-line);
  background: #fff;
}

.wire-image {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 12rem;
  border: 1px dashed #8d8d8d;
  background:
    linear-gradient(45deg, transparent 49.5%, rgba(0,0,0,.08) 49.5%, rgba(0,0,0,.08) 50.5%, transparent 50.5%),
    linear-gradient(-45deg, transparent 49.5%, rgba(0,0,0,.08) 49.5%, rgba(0,0,0,.08) 50.5%, transparent 50.5%),
    var(--wire-soft);
  color: #555;
  font-size: .8rem;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.wire-image--hero { min-height: 25rem; }
.wire-image--wide { min-height: 18rem; }
.wire-image--square { aspect-ratio: 1 / 1; min-height: 0; }
.wire-image--portrait { aspect-ratio: 4 / 5; min-height: 0; }

.wire-rule { border-top: 1px solid var(--wire-line); }
.wire-label {
  display: inline-block;
  border: 1px solid var(--wire-line);
  background: var(--wire-softer);
  padding: .25rem .5rem;
  font-size: .75rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.button.wire-button,
.wire-button {
  border: 1px solid var(--wire-ink);
  background: var(--wire-ink);
  color: #fff;
  text-decoration: none;
}
.button.wire-button.hollow,
.wire-button.hollow {
  background: transparent;
  color: var(--wire-ink);
}

.button.wire-button:hover,
.button.wire-button:focus { background: #444; color: #fff; }
.button.wire-button.hollow:hover,
.button.wire-button.hollow:focus { background: var(--wire-soft); color: var(--wire-ink); }

.category-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
}
.category-tabs button {
  margin: 0;
  border: 1px solid var(--wire-line);
  background: #fff;
  color: var(--wire-ink);
  padding: .6rem .8rem;
  cursor: pointer;
}
.category-tabs button[aria-pressed="true"] {
  background: var(--wire-ink);
  color: #fff;
  border-color: var(--wire-ink);
}

.flavor-chip {
  display: inline-block;
  margin: .2rem .2rem .2rem 0;
  padding: .3rem .55rem;
  border: 1px solid var(--wire-line);
  border-radius: 999px;
  background: var(--wire-softer);
  font-size: .8rem;
}

.stat-box {
  border-top: 3px solid var(--wire-ink);
  background: var(--wire-softer);
}

.quote-box {
  border-left: 4px solid var(--wire-ink);
  background: var(--wire-softer);
}

.process-step {
  position: relative;
  border: 1px solid var(--wire-line);
}
.process-number {
  width: 2rem;
  height: 2rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--wire-ink);
  color: #fff;
  font-weight: 700;
}

.product-row {
  border-bottom: 1px solid var(--wire-line);
}
.product-row:last-child { border-bottom: 0; }

.faq-item { border-bottom: 1px solid var(--wire-line); }
.faq-trigger {
  width: 100%;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  border: 0;
  background: transparent;
  text-align: left;
  cursor: pointer;
  font-weight: 700;
}

.sticky-card { position: sticky; top: 1rem; }

.footer-block {
  border-top: 1px solid var(--wire-line);
  background: var(--wire-softer);
}

@media screen and (max-width: 39.99875em) {
  .wire-image--hero { min-height: 17rem; }
  .brand-mark { min-width: 11rem; }
  .desktop-nav { display: none; }
}

@media screen and (min-width: 40em) {
  .mobile-menu-button { display: none; }
}

/* Contrast corrections for neutral low-fi dark sections. */
.l-section--dark .wire-label { color: var(--wire-ink); }
.l-section--dark .wire-button.hollow {
  border-color: #fff;
  color: #fff;
}
.l-section--dark .wire-button.hollow:hover,
.l-section--dark .wire-button.hollow:focus {
  background: #fff;
  color: var(--wire-ink);
}

/* Foundation 6 Top Bar compatibility layer.
   Keeps the desktop header visually aligned with the original low-fi prototype
   while using the conventional .top-bar / .top-bar-left / .top-bar-right schema. */
.site-header .desktop-top-bar {
  padding: 1rem 0;
  background: #fff;
}
.site-header .desktop-top-bar,
.site-header .desktop-top-bar ul {
  background: #fff;
}
.site-header .desktop-top-bar .top-bar-left,
.site-header .desktop-top-bar .top-bar-right {
  display: flex;
  align-items: center;
}
.site-header .desktop-top-bar .top-bar-right {
  justify-content: flex-end;
}
.site-header .desktop-top-bar .menu > li > a {
  color: inherit;
}
.site-header .desktop-top-bar .nav-links {
  column-gap: .25rem;
}


/* =========================================================
   Packaging imagery + light/dark theme integration
   ========================================================= */
:root,
html[data-theme="light"] {
  --page-bg: #ffffff;
  --surface-bg: #ffffff;
  --surface-soft: #f5f5f5;
  --surface-muted: #e9e9e9;
  --theme-ink: #252525;
  --theme-mid: #777777;
  --theme-line: #b8b8b8;
  --theme-focus: #1779ba;
}

html[data-theme="dark"] {
  color-scheme: dark;
  --page-bg: #18181a;
  --surface-bg: #1e1e1e;
  --surface-soft: #222225;
  --surface-muted: #2a2a2e;
  --theme-ink: #dcdcdc;
  --theme-mid: #b8b8b8;
  --theme-line: #45454b;
  --theme-focus: #5ca9dd;

  --wire-ink: var(--theme-ink);
  --wire-mid: var(--theme-mid);
  --wire-line: var(--theme-line);
  --wire-soft: var(--surface-muted);
  --wire-softer: var(--surface-soft);
  --wire-white: var(--page-bg);
}

html[data-theme="dark"] body {
  color: var(--theme-ink);
  background: var(--page-bg);
}

html[data-theme="dark"] a { color: inherit; }

html[data-theme="dark"] .prototype-bar,
html[data-theme="dark"] .footer-block {
  background: var(--surface-soft);
  border-color: var(--theme-line);
}

html[data-theme="dark"] .site-header,
html[data-theme="dark"] .site-header .desktop-top-bar,
html[data-theme="dark"] .site-header .desktop-top-bar ul,
html[data-theme="dark"] .wire-panel,
html[data-theme="dark"] .wire-card {
  background: var(--surface-bg);
  border-color: var(--theme-line);
}

html[data-theme="dark"] .site-header .desktop-top-bar .menu > li > a {
  color: var(--theme-ink);
}

html[data-theme="dark"] .l-section--light {
  background: var(--surface-soft);
}

html[data-theme="dark"] .l-section--dark {
  background: #101012;
  color: #f5f5f5;
}

html[data-theme="dark"] .wire-label,
html[data-theme="dark"] .flavor-chip,
html[data-theme="dark"] .stat-box,
html[data-theme="dark"] .quote-box {
  background: var(--surface-soft);
  color: var(--theme-ink);
  border-color: var(--theme-line);
}

html[data-theme="dark"] .button.wire-button,
html[data-theme="dark"] .wire-button {
  background: #e6e6e6;
  border-color: #e6e6e6;
  color: #18181a;
}

html[data-theme="dark"] .button.wire-button.hollow,
html[data-theme="dark"] .wire-button.hollow {
  background: transparent;
  border-color: var(--theme-ink);
  color: var(--theme-ink);
}

html[data-theme="dark"] .button.wire-button:hover,
html[data-theme="dark"] .button.wire-button:focus {
  background: #ffffff;
  color: #18181a;
}

html[data-theme="dark"] .button.wire-button.hollow:hover,
html[data-theme="dark"] .button.wire-button.hollow:focus {
  background: var(--surface-muted);
  color: #ffffff;
}

html[data-theme="dark"] .l-section--dark .wire-button.hollow {
  border-color: #ffffff;
  color: #ffffff;
}

html[data-theme="dark"] input,
html[data-theme="dark"] textarea,
html[data-theme="dark"] select {
  color-scheme: dark;
}

.media-frame {
  overflow: hidden;
  margin: 0;
  border: 1px solid var(--wire-line);
  background: var(--wire-soft);
}

.media-frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.media-frame--hero {
  min-height: 25rem;
  height: 25rem;
}

.media-frame--hero img { object-position: center 55%; }
.media-frame--wide { min-height: 18rem; height: 18rem; }
.media-frame--wide img { object-position: center; }
.media-frame--square { aspect-ratio: 1 / 1; }
.media-frame--square img { object-fit: cover; }
.media-frame--portrait { aspect-ratio: 4 / 5; }

.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.5rem;
  min-height: 2.5rem;
  margin: 0 .15rem;
  padding: .45rem .7rem;
  border: 1px solid var(--wire-line);
  background: transparent;
  color: inherit;
  cursor: pointer;
  line-height: 1;
}

.theme-toggle:hover,
.theme-toggle:focus-visible {
  border-color: var(--wire-ink);
  background: var(--wire-softer);
}

.theme-toggle:focus-visible {
  outline: 3px solid var(--theme-focus);
  outline-offset: 2px;
}

.theme-toggle--mobile {
  width: 100%;
  justify-content: flex-start;
  padding: .75rem;
}

.brand-mark,
.mobile-nav,
.wire-panel,
.wire-card,
.faq-item,
.footer-block,
.prototype-bar,
.site-header,
.wire-rule {
  border-color: var(--wire-line);
}

@media screen and (max-width: 39.99875em) {
  .media-frame--hero { min-height: 17rem; height: 17rem; }
  .media-frame--wide { min-height: 14rem; height: 14rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}


/* Updated product/media treatment */
.media-frame--hero { min-height: 28rem; height: 28rem; }
.media-frame--hero img { object-position: center center; }
.media-frame--wide { min-height: 20rem; height: 20rem; }
.media-frame--product {
  aspect-ratio: 4 / 5;
  padding: .75rem;
  background: color-mix(in srgb, var(--wire-soft) 82%, white 18%);
}
.media-frame--product img {
  object-fit: contain;
  object-position: center bottom;
}
.wire-card--product { overflow: hidden; }
.wire-card--product .u-p-4 { padding-top: 1rem; padding-bottom: 1.2rem; }
.product-grid .wire-card--product .h6, .pantry-grid .wire-card--product .h5 { margin-bottom: .2rem; }
@media print, screen and (min-width: 64em) {
  .product-grid > .cell { width: calc(25% - 1.875rem); }
}
@media screen and (max-width: 39.99875em) {
  .media-frame--hero { min-height: 19rem; height: 19rem; }
  .media-frame--wide { min-height: 15rem; height: 15rem; }
}


/* Integrated polished image update */
.media-frame--feature {
  min-height: 24rem;
  height: 24rem;
  background: color-mix(in srgb, var(--wire-soft) 80%, white 20%);
}
.media-frame--feature img {
  object-fit: cover;
  object-position: center center;
}
.wire-card--feature .u-p-5,
.pantry-copy-card .u-p-5 {
  padding: 1.5rem;
}
.product-grid--featured > .cell {
  display: flex;
}
.pantry-feature .wire-card,
.product-grid--featured .wire-card {
  width: 100%;
}
@media print, screen and (min-width: 64em) {
  .product-grid--featured .cell.large-6 { width: calc(50% - 1.875rem); }
}
@media screen and (max-width: 39.99875em) {
  .media-frame--feature {
    min-height: 17rem;
    height: 17rem;
  }
}
