/*
Theme Name: Keshobox
Theme URI: https://keshobox.ir/blog/
Author: Keshobox
Description: قالب بلاگ کشوباکس — هم‌سبک با لندینگ: زمین شکلاتی، دکمه کهربایی، استراحت کرم. فونت‌ها: کلمه (تیتر) و وزیرمتن (متن).
Version: 1.0.0
Requires at least: 6.6
Tested up to: 7.1
Requires PHP: 8.1
License: Proprietary
Text Domain: keshobox
*/

/*
 * Tokens mirror frontend/app/globals.css (.storefront) and
 * frontend/lib/storefront-theme.ts — keep the hex values in sync.
 *
 * Kalameh and the logo/mascot are served by the Next.js app from the same
 * origin (/fonts, /keshobox-logo.png), so the browser cache is shared with
 * the landing. Vazirmatn ships with the theme (OFL-1.1).
 */

@font-face {
  font-family: "KalamehWeb";
  src: url("/fonts/kalameh/KalamehWeb-Medium.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "KalamehWeb";
  src: url("/fonts/kalameh/KalamehWeb-SemiBold.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "KalamehWeb";
  src: url("/fonts/kalameh/KalamehWeb-Black.woff2") format("woff2");
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Vazirmatn Variable";
  src: url("assets/fonts/vazirmatn-arabic-wght-normal.woff2") format("woff2-variations");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1,
    U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74,
    U+FE76-FEFC;
}

@font-face {
  font-family: "Vazirmatn Variable";
  src: url("assets/fonts/vazirmatn-latin-wght-normal.woff2") format("woff2-variations");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
    U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215,
    U+FEFF, U+FFFD;
}

:root {
  --brand-surface-dark: #332211;
  --brand-surface-light: #ffeedd;
  --brand-surface-card: #fff8f0;
  --brand: #cc8822;
  --brand-foreground: #332211;
  --brand-accent: #c0392b;
  --brand-accent-foreground: #ffeedd;
  --brand-on-dark: #ffeedd;
  --brand-on-dark-muted: #d4b896;
  --brand-on-light: #332211;
  --brand-on-light-muted: #6b4a32;
  --brand-on-card: #332211;
  --brand-on-card-muted: #6b4a32;
  --brand-accent-on-dark: #e07060;
  --brand-hairline-on-light: #e8d4c0;
  --brand-hairline-on-dark: #4a3428;
  --brand-font-display: "KalamehWeb", Tahoma, sans-serif;
  --brand-font-label: "KalamehWeb", Tahoma, sans-serif;
  --brand-font-body: "Vazirmatn Variable", ui-sans-serif, system-ui, sans-serif;
  --brand-text-h1: clamp(2.25rem, 6vw, 4.25rem);
  --brand-text-h2: clamp(1.75rem, 3.5vw, 2.75rem);
  --brand-body-size: 1.0625rem;
  --brand-body-leading: 1.85;
  --brand-section-y: 4rem;
  --brand-gutter: 1.5rem;
  --brand-max-width: 72rem;
  --brand-card-radius: 1.25rem;
  --header-h: 4.5rem;
  --floating-cta-h: calc(4.5rem + env(safe-area-inset-bottom));
}

@media (min-width: 768px) {
  :root {
    --brand-section-y: 6.5rem;
  }
}

/* ── Base ─────────────────────────────────────────────────────────────── */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
}

html.nav-open {
  overflow: hidden;
}

body {
  margin: 0;
  min-height: 100dvh;
  background: var(--brand-surface-dark);
  color: var(--brand-on-dark);
  font-family: var(--brand-font-body);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img,
video {
  display: block;
  max-width: 100%;
  height: auto;
}

svg {
  flex-shrink: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea,
select {
  font: inherit;
  color: inherit;
}

h1,
h2,
h3,
h4,
h5,
h6,
p,
figure,
blockquote {
  margin: 0;
}

:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}

[id] {
  scroll-margin-top: calc(var(--header-h) + 1rem);
}

.sr-only,
.screen-reader-text {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link:focus {
  position: fixed !important;
  top: 0.75rem;
  inset-inline-start: 0.75rem;
  z-index: 100;
  width: auto;
  height: auto;
  margin: 0;
  clip: auto;
  padding: 0.75rem 1.25rem;
  border-radius: 999px;
  background: var(--brand);
  color: var(--brand-foreground);
  font-family: var(--brand-font-label);
  font-weight: 600;
}

.icon {
  width: 1rem;
  height: 1rem;
}

/* Date-mascot cursor — same as the storefront (mouse/trackpad only). */
@media (pointer: fine) {
  .site,
  .site * {
    cursor: url("/cursor-mascot.png") 8 3, auto;
  }

  .site input:not([type="button"]):not([type="submit"]):not([type="checkbox"]):not([type="radio"]),
  .site textarea {
    cursor: text;
  }
}

.site {
  display: flex;
  min-height: 100dvh;
  flex-direction: column;
  overflow-x: clip;
}

.site-body {
  display: flex;
  min-width: 0;
  flex: 1;
  flex-direction: column;
  padding-bottom: var(--floating-cta-h);
}

@media (min-width: 768px) {
  .site-body {
    padding-bottom: 0;
  }
}

.site-main {
  flex: 1;
}

/* ── Type & layout helpers (same names as the storefront) ─────────────── */

.inner {
  width: 100%;
  max-width: var(--brand-max-width);
  margin-inline: auto;
  padding-inline: var(--brand-gutter);
}

.inner--narrow {
  max-width: calc(46rem + 2 * var(--brand-gutter));
}

.display {
  font-family: var(--brand-font-display);
  font-weight: 900;
}

.label {
  font-family: var(--brand-font-label);
  font-weight: 600;
}

.eyebrow {
  font-family: var(--brand-font-label);
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.5;
}

.eyebrow--amber {
  color: var(--brand);
}

.eyebrow--accent {
  color: var(--brand-accent);
}

.lead {
  color: var(--brand-on-dark-muted);
  font-size: var(--brand-body-size);
  line-height: var(--brand-body-leading);
  text-wrap: pretty;
}

.section {
  padding-block: var(--brand-section-y);
}

.section--light {
  background: var(--brand-surface-light);
  color: var(--brand-on-light);
}

.section--dark {
  background: var(--brand-surface-dark);
  color: var(--brand-on-dark);
}

.section--thin-dark {
  padding-block: 2.5rem;
  background: var(--brand-surface-dark);
  color: var(--brand-on-dark);
}

@media (min-width: 768px) {
  .section--thin-dark {
    padding-block: 3rem;
  }
}

.section-head h2 {
  margin-top: 0.5rem;
  font-size: var(--brand-text-h2);
  line-height: 1.25;
  text-wrap: balance;
}

.section-head p.section-head__lead {
  margin-top: 0.75rem;
  color: var(--brand-on-light-muted);
  line-height: var(--brand-body-leading);
}

@media (max-width: 767px) {
  .section-head {
    text-align: center;
  }

  .section-head .eyebrow {
    font-size: 0.8125rem;
    letter-spacing: 0.1em;
    opacity: 0.78;
  }

  .section-head h2 {
    font-size: 2.25rem;
  }
}

/* ── Buttons (StorefrontAmberLink / StorefrontGhostLink) ──────────────── */

.btn {
  display: inline-flex;
  min-height: 3rem;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding-inline: 1.25rem;
  border: 0;
  border-radius: 999px;
  font-family: var(--brand-font-label);
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.2;
  white-space: nowrap;
  cursor: pointer;
  transition:
    opacity 0.2s ease,
    background-color 0.2s ease,
    color 0.2s ease;
}

.btn--amber {
  background: var(--brand);
  color: var(--brand-foreground);
}

.btn--amber:hover {
  opacity: 0.9;
}

.btn--ghost {
  color: var(--brand-on-dark);
  box-shadow: inset 0 0 0 1px var(--brand-on-dark);
}

.btn--ghost:hover {
  background: color-mix(in srgb, var(--brand-on-dark) 10%, transparent);
}

.btn--dark {
  background: var(--brand-surface-dark);
  color: var(--brand-on-dark);
}

.btn--dark:hover {
  opacity: 0.92;
}

.btn--outline-dark {
  color: var(--brand-foreground);
  box-shadow: inset 0 0 0 1px var(--brand-foreground);
}

.btn--outline-dark:hover {
  background: color-mix(in srgb, var(--brand-foreground) 8%, transparent);
}

.btn--sm {
  font-size: 0.875rem;
}

/* ── Header ───────────────────────────────────────────────────────────── */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid transparent;
  background: transparent;
  transition:
    background-color 0.3s ease,
    border-color 0.3s ease,
    backdrop-filter 0.3s ease;
}

.site-header.is-scrolled {
  border-bottom-color: var(--brand);
  background: color-mix(in srgb, var(--brand-surface-dark) 85%, transparent);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.admin-bar .site-header {
  top: 32px;
}

@media screen and (max-width: 782px) {
  .admin-bar .site-header {
    top: 46px;
  }
}

@media screen and (max-width: 600px) {
  .admin-bar .site-header {
    top: 0;
  }
}

.header-bar {
  display: flex;
  height: var(--header-h);
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.menu-toggle,
.mobile-nav__close {
  display: inline-flex;
  width: 2.75rem;
  height: 2.75rem;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 0.5rem;
  background: none;
  color: var(--brand-on-dark);
  cursor: pointer;
  transition: color 0.2s ease;
}

.menu-toggle:hover,
.mobile-nav__close:hover {
  color: var(--brand);
}

.menu-toggle .icon {
  width: 1.5rem;
  height: 1.5rem;
}

.mobile-nav__close .icon {
  width: 1.25rem;
  height: 1.25rem;
}

.header-logo {
  order: 99;
  flex-shrink: 0;
  border-radius: 0.5rem;
}

.header-logo img {
  width: 3.5rem;
  height: 3.5rem;
  object-fit: contain;
}

.primary-nav,
.header-cta {
  display: none;
}

.primary-nav a {
  border-radius: 0.5rem;
  padding: 0.5rem 0.625rem;
  color: var(--brand-on-dark);
  font-size: 0.875rem;
  transition: color 0.2s ease;
}

.primary-nav a:hover,
.primary-nav a[aria-current="page"] {
  color: var(--brand);
}

.header-cta {
  padding-inline: 1.25rem;
  font-size: 0.875rem;
}

@media (min-width: 768px) {
  .menu-toggle {
    display: none;
  }

  .header-logo {
    order: 0;
  }

  .header-logo img {
    width: 3rem;
    height: 3rem;
  }

  .primary-nav {
    display: flex;
    min-width: 0;
    align-items: center;
    justify-content: center;
    gap: 0.125rem;
  }

  .header-cta {
    display: inline-flex;
  }
}

@media (min-width: 1024px) {
  .primary-nav a {
    padding-inline: 0.75rem;
  }
}

/* ── Mobile drawer (Sheet side="right") ───────────────────────────────── */

.mobile-nav {
  position: fixed;
  inset: 0;
  z-index: 60;
  visibility: hidden;
  transition: visibility 0s linear 0.3s;
}

.mobile-nav.is-open {
  visibility: visible;
  transition-delay: 0s;
}

.mobile-nav__overlay {
  position: absolute;
  inset: 0;
  background: color-mix(in srgb, var(--brand-surface-dark) 70%, transparent);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.mobile-nav.is-open .mobile-nav__overlay {
  opacity: 1;
}

.mobile-nav__panel {
  position: absolute;
  inset-block: 0;
  inset-inline-start: 0;
  display: flex;
  width: min(22rem, 88vw);
  flex-direction: column;
  border-inline-end: 1px solid var(--brand-hairline-on-dark);
  background: var(--brand-surface-dark);
  color: var(--brand-on-dark);
  box-shadow: -16px 0 40px -12px rgba(0, 0, 0, 0.45);
  transform: translateX(100%);
  transition: transform 0.3s ease;
}

.mobile-nav.is-open .mobile-nav__panel {
  transform: none;
}

.mobile-nav__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 1rem;
  border-bottom: 1px solid var(--brand-hairline-on-dark);
}

.mobile-nav__head p {
  font-size: 1.125rem;
}

.mobile-nav__links {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 0.75rem;
  overflow-y: auto;
}

.mobile-nav__links a {
  border-radius: 0.75rem;
  padding: 0.875rem 0.75rem;
  color: var(--brand-on-dark);
  font-size: 1rem;
  transition:
    background-color 0.2s ease,
    color 0.2s ease;
}

.mobile-nav__links a:hover,
.mobile-nav__links a[aria-current="page"] {
  background: var(--brand-hairline-on-dark);
  color: var(--brand);
}

.mobile-nav__actions {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1rem;
  padding-bottom: max(1rem, env(safe-area-inset-bottom));
  border-top: 1px solid var(--brand-hairline-on-dark);
}

.mobile-nav__actions .btn {
  width: 100%;
  font-size: 0.875rem;
}

/* ── Page hero (dark band, amber glow — same as #hero on the landing) ─── */

.page-hero {
  position: relative;
  isolation: isolate;
  overflow: clip;
  background: var(--brand-surface-dark);
  color: var(--brand-on-dark);
  padding-block: calc(var(--brand-section-y) * 0.6) var(--brand-section-y);
}

.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(
    ellipse at top,
    color-mix(in srgb, var(--brand) 22%, transparent),
    transparent 55%
  );
}

.page-hero__grid {
  display: grid;
  align-items: center;
  gap: 2rem;
}

.page-hero__text {
  min-width: 0;
  text-align: center;
}

.page-hero__title {
  margin-top: 0.75rem;
  color: var(--brand-on-dark);
  font-size: clamp(2.25rem, 6vw, 3.75rem);
  line-height: 1.2;
  text-wrap: balance;
}

.page-hero .lead {
  max-width: 38rem;
  margin: 1rem auto 0;
}

.page-hero__visual {
  display: none;
}

@media (max-width: 767px) {
  .page-hero .eyebrow {
    font-size: 0.875rem;
  }
}

@media (min-width: 1024px) {
  .page-hero__grid--visual {
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 20rem);
    gap: 3rem;
  }

  .page-hero__text {
    text-align: start;
  }

  .page-hero .lead {
    margin-inline: 0;
  }

  .page-hero__visual {
    position: relative;
    display: grid;
    aspect-ratio: 1;
    place-items: center;
    justify-self: center;
    width: 100%;
    max-width: 20rem;
  }

  .page-hero__visual::before {
    content: "";
    position: absolute;
    inset: 8%;
    border-radius: 999px;
    background: radial-gradient(
      circle,
      color-mix(in srgb, var(--brand) 30%, transparent),
      transparent 68%
    );
  }

  .page-hero__visual::after {
    content: "";
    position: absolute;
    inset: 4%;
    border-radius: 999px;
    box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--brand) 45%, transparent);
  }

  .page-hero__visual img {
    position: relative;
    z-index: 1;
    width: 66%;
    height: auto;
    object-fit: contain;
    animation: kb-float 6s ease-in-out infinite;
  }
}

@keyframes kb-float {
  0%,
  100% {
    transform: translateY(0) rotate(-2deg);
  }
  50% {
    transform: translateY(-10px) rotate(2deg);
  }
}

/* Category chips + search inside the hero */

.chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin: 1.75rem 0 0;
  padding: 0;
  list-style: none;
}

@media (min-width: 1024px) {
  .chips {
    justify-content: flex-start;
  }
}

.chip {
  display: inline-flex;
  min-height: 2.375rem;
  align-items: center;
  padding-inline: 1rem;
  border-radius: 999px;
  background: color-mix(in srgb, var(--brand-on-dark) 6%, transparent);
  color: var(--brand-on-dark);
  box-shadow: inset 0 0 0 1px var(--brand-hairline-on-dark);
  font-family: var(--brand-font-label);
  font-weight: 600;
  font-size: 0.875rem;
  transition:
    color 0.2s ease,
    box-shadow 0.2s ease,
    background-color 0.2s ease;
}

.chip:hover {
  color: var(--brand);
  box-shadow: inset 0 0 0 1px var(--brand);
}

.chip.is-active {
  background: var(--brand);
  color: var(--brand-foreground);
  box-shadow: none;
}

.search-form {
  position: relative;
  width: 100%;
  max-width: 26rem;
  margin: 1.25rem auto 0;
}

@media (min-width: 1024px) {
  .page-hero .search-form {
    margin-inline: 0;
  }
}

.search-form input[type="search"] {
  width: 100%;
  min-height: 3rem;
  padding-inline: 1.25rem 3.5rem;
  border: 0;
  border-radius: 999px;
  -webkit-appearance: none;
  appearance: none;
  background: color-mix(in srgb, var(--brand-on-dark) 8%, transparent);
  color: var(--brand-on-dark);
  box-shadow: inset 0 0 0 1px var(--brand-hairline-on-dark);
  font-size: 0.9375rem;
}

.search-form input[type="search"]::-webkit-search-cancel-button {
  -webkit-appearance: none;
}

.search-form input[type="search"]::placeholder {
  color: var(--brand-on-dark-muted);
}

.search-form input[type="search"]:focus {
  outline: none;
  box-shadow: inset 0 0 0 2px var(--brand);
}

.search-form button {
  position: absolute;
  inset-block: 0.375rem;
  inset-inline-end: 0.375rem;
  display: grid;
  width: 2.25rem;
  place-items: center;
  border: 0;
  border-radius: 999px;
  background: var(--brand);
  color: var(--brand-foreground);
  cursor: pointer;
}

/* Light variant (404 on cream, empty states) */
.search-form--light input[type="search"] {
  background: var(--brand-surface-card);
  color: var(--brand-on-light);
  box-shadow: inset 0 0 0 1px var(--brand-hairline-on-light);
}

.search-form--light input[type="search"]::placeholder {
  color: var(--brand-on-light-muted);
}

/* ── Post cards (echo the jar cards on the flavor shelf) ──────────────── */

.post-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

@media (min-width: 640px) {
  .post-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.5rem;
  }
}

@media (min-width: 1024px) {
  .post-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.post-card {
  position: relative;
  display: flex;
  height: 100%;
  flex-direction: column;
  overflow: hidden;
  border-radius: var(--brand-card-radius);
  background: var(--brand-surface-dark);
  color: var(--brand-on-dark);
  box-shadow: 0 0 0 1px var(--brand-hairline-on-light);
}

.post-card:has(:focus-visible) {
  outline: 2px solid var(--brand);
  outline-offset: 3px;
}

.post-card__media {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--brand-surface-dark);
}

.post-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.post-card__media::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  height: 45%;
  pointer-events: none;
  background: linear-gradient(to top, var(--brand-surface-dark), transparent);
}

.post-card__media--placeholder {
  display: grid;
  place-items: center;
  background:
    radial-gradient(
      circle at 50% 42%,
      color-mix(in srgb, var(--brand) 30%, transparent),
      transparent 62%
    ),
    var(--brand-surface-dark);
}

.post-card__media--placeholder img {
  width: 36%;
  height: auto;
  object-fit: contain;
}

.post-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 0.5rem;
  padding: 0.75rem 1.125rem 1.25rem;
}

.post-card__cat {
  position: relative;
  z-index: 1;
  align-self: flex-start;
  color: var(--brand);
  font-family: var(--brand-font-label);
  font-weight: 600;
  font-size: 0.8125rem;
}

.post-card__cat:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.post-card__title {
  color: var(--brand-on-dark);
  font-family: var(--brand-font-display);
  font-weight: 900;
  font-size: 1.2rem;
  line-height: 1.5;
  text-wrap: balance;
}

.post-card__title a {
  outline: none;
}

.post-card__title a::after {
  content: "";
  position: absolute;
  inset: 0;
}

.post-card__excerpt {
  display: -webkit-box;
  overflow: hidden;
  color: var(--brand-on-dark-muted);
  font-size: 0.9rem;
  line-height: 1.8;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  line-clamp: 3;
}

.post-card__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.375rem 1rem;
  margin-top: auto;
  padding-top: 0.5rem;
  color: var(--brand-on-dark-muted);
  font-family: var(--brand-font-label);
  font-weight: 500;
  font-size: 0.8125rem;
}

.post-card__meta span {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
}

.post-card__meta .icon {
  width: 0.875rem;
  height: 0.875rem;
  color: var(--brand);
}

.post-card__more {
  display: inline-flex;
  align-items: center;
  gap: 0.125rem;
  color: var(--brand);
  font-family: var(--brand-font-label);
  font-weight: 600;
  font-size: 0.875rem;
}

/* Featured (newest on each page): wide on tablet+ */

.post-card--featured {
  margin-bottom: 1.5rem;
}

.post-card__badge {
  align-self: flex-start;
  border-radius: 999px;
  padding: 0.25rem 0.75rem;
  background: var(--brand);
  color: var(--brand-foreground);
  font-family: var(--brand-font-label);
  font-weight: 600;
  font-size: 0.75rem;
}

@media (min-width: 768px) {
  .post-card--featured {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
    margin-bottom: 2rem;
  }

  .post-card--featured .post-card__media {
    aspect-ratio: auto;
    min-height: 22rem;
  }

  .post-card--featured .post-card__media::after {
    inset: 0;
    height: auto;
    background: linear-gradient(to left, transparent 55%, var(--brand-surface-dark));
  }

  .post-card--featured .post-card__body {
    justify-content: center;
    gap: 0.75rem;
    padding: 2.25rem 2.5rem;
  }

  .post-card--featured .post-card__title {
    font-size: clamp(1.5rem, 2.6vw, 2.125rem);
    line-height: 1.4;
  }

  .post-card--featured .post-card__excerpt {
    font-size: 1rem;
    -webkit-line-clamp: 4;
    line-clamp: 4;
  }

  .post-card--featured .post-card__meta {
    margin-top: 0.5rem;
  }
}

@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .post-card {
    transition:
      transform 200ms ease,
      box-shadow 200ms ease;
  }

  .post-card:hover {
    transform: translateY(-4px);
    box-shadow:
      0 0 0 1px var(--brand-hairline-on-light),
      0 12px 28px -12px color-mix(in srgb, var(--brand-surface-dark) 40%, transparent);
  }

  .post-card__media img {
    transition: transform 400ms ease;
  }

  .post-card:hover .post-card__media img {
    transform: scale(1.03);
  }
}

/* ── Pagination ───────────────────────────────────────────────────────── */

.pagination {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 3rem;
}

.pagination .page-numbers {
  display: inline-flex;
  min-width: 2.75rem;
  height: 2.75rem;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  padding-inline: 0.9rem;
  border-radius: 999px;
  background: var(--brand-surface-card);
  color: var(--brand-on-light);
  box-shadow: inset 0 0 0 1px var(--brand-hairline-on-light);
  font-family: var(--brand-font-label);
  font-weight: 600;
  font-size: 0.9375rem;
}

.pagination a.page-numbers:hover {
  box-shadow: inset 0 0 0 1px var(--brand-on-light);
}

.pagination .page-numbers.current {
  background: var(--brand-surface-dark);
  color: var(--brand-on-dark);
  box-shadow: none;
}

.pagination .page-numbers.dots {
  background: none;
  box-shadow: none;
}

/* ── Empty state ──────────────────────────────────────────────────────── */

.empty-state {
  display: grid;
  justify-items: center;
  gap: 0.75rem;
  max-width: 34rem;
  margin-inline: auto;
  padding: 2.5rem 1.5rem;
  border-radius: var(--brand-card-radius);
  background: var(--brand-surface-card);
  color: var(--brand-on-card);
  box-shadow: 0 0 0 1px var(--brand-hairline-on-light);
  text-align: center;
}

.empty-state img {
  width: 6.5rem;
  height: auto;
}

.empty-state h2 {
  font-size: 1.6rem;
  line-height: 1.35;
}

.empty-state p {
  color: var(--brand-on-card-muted);
  line-height: var(--brand-body-leading);
}

.empty-state .btn {
  margin-top: 0.5rem;
}

/* ── CTA band (thin dark) ─────────────────────────────────────────────── */

.cta-band__inner {
  display: grid;
  align-items: center;
  gap: 1.5rem;
  text-align: center;
}

.cta-band h2 {
  margin-top: 0.5rem;
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  line-height: 1.3;
  text-wrap: balance;
}

.cta-band__actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

@media (min-width: 640px) {
  .cta-band__actions {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
  }
}

@media (min-width: 1024px) {
  .cta-band__inner {
    grid-template-columns: minmax(0, 1fr) auto;
    text-align: start;
  }

  .cta-band__actions {
    justify-content: flex-end;
  }
}

/* ── Single post ──────────────────────────────────────────────────────── */

.post-hero {
  padding-bottom: calc(var(--brand-section-y) * 0.75);
}

.post-hero--with-cover {
  padding-bottom: 2.5rem;
}

.post-hero .page-hero__text {
  text-align: start;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.375rem;
  color: var(--brand-on-dark-muted);
  font-family: var(--brand-font-label);
  font-weight: 500;
  font-size: 0.875rem;
}

.breadcrumbs a:hover {
  color: var(--brand);
}

.breadcrumbs .icon {
  width: 0.875rem;
  height: 0.875rem;
  opacity: 0.6;
}

.post-hero .eyebrow {
  display: inline-block;
  margin-top: 1.5rem;
}

.post-title {
  margin-top: 0.75rem;
  color: var(--brand-on-dark);
  font-size: clamp(1.9rem, 4.6vw, 3.1rem);
  line-height: 1.35;
  text-wrap: balance;
}

.post-hero .lead {
  max-width: none;
  margin: 1rem 0 0;
}

.post-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1.25rem;
  margin-top: 1.5rem;
  color: var(--brand-on-dark-muted);
  font-family: var(--brand-font-label);
  font-weight: 500;
  font-size: 0.9375rem;
}

.post-meta span {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.post-meta .icon {
  color: var(--brand);
}

.post-cover {
  background: linear-gradient(
    to bottom,
    var(--brand-surface-dark) 0 50%,
    var(--brand-surface-light) 50% 100%
  );
}

.post-cover figure {
  max-width: calc(60rem + 2 * var(--brand-gutter));
  margin-inline: auto;
  padding-inline: var(--brand-gutter);
}

.post-cover img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: var(--brand-card-radius);
  box-shadow: 0 24px 48px -24px rgba(0, 0, 0, 0.55);
}

.post-cover figcaption {
  margin-top: 0.75rem;
  color: var(--brand-on-light-muted);
  font-size: 0.875rem;
  text-align: center;
}

.post-body {
  padding-block: var(--brand-section-y);
}

.post-body--after-cover {
  padding-top: 2.5rem;
}

/* Article typography on cream */

.entry-content {
  color: var(--brand-on-light);
  font-size: var(--brand-body-size);
  line-height: 1.95;
  overflow-wrap: break-word;
}

.entry-content > * + * {
  margin-top: 1.25em;
}

.entry-content h2 {
  margin-top: 2.2em;
  font-family: var(--brand-font-display);
  font-weight: 900;
  font-size: clamp(1.45rem, 3vw, 1.9rem);
  line-height: 1.45;
}

.entry-content h3 {
  margin-top: 1.9em;
  font-family: var(--brand-font-label);
  font-weight: 600;
  font-size: 1.3rem;
  line-height: 1.55;
}

.entry-content h4,
.entry-content h5,
.entry-content h6 {
  margin-top: 1.7em;
  font-family: var(--brand-font-label);
  font-weight: 600;
  font-size: 1.1rem;
  line-height: 1.6;
}

.entry-content h2 + *,
.entry-content h3 + *,
.entry-content h4 + * {
  margin-top: 0.6em;
}

.entry-content a {
  color: var(--brand-accent);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

.entry-content a:hover {
  text-decoration-thickness: 2px;
}

.entry-content strong,
.entry-content b {
  font-weight: 700;
}

.entry-content ul,
.entry-content ol {
  padding-inline-start: 1.4em;
}

.entry-content li + li {
  margin-top: 0.45em;
}

.entry-content li::marker {
  color: var(--brand-accent);
}

.entry-content ol > li::marker {
  font-family: var(--brand-font-label);
  font-weight: 600;
}

.entry-content blockquote,
.entry-content .wp-block-quote {
  margin-inline: 0;
  padding: 1.25rem 1.5rem;
  border-inline-start: 4px solid var(--brand);
  border-radius: 1rem;
  background: var(--brand-surface-card);
  box-shadow: inset 0 0 0 1px var(--brand-hairline-on-light);
  font-family: var(--brand-font-label);
  font-weight: 600;
  font-size: 1.1rem;
  line-height: 1.85;
}

.entry-content blockquote p + p {
  margin-top: 0.75em;
}

.entry-content blockquote cite,
.entry-content .wp-block-quote cite {
  display: block;
  margin-top: 0.75rem;
  color: var(--brand-on-light-muted);
  font-size: 0.875rem;
  font-style: normal;
}

.entry-content .wp-block-pullquote {
  padding: 2rem 1.5rem;
  border-block: 2px solid var(--brand);
  text-align: center;
}

.entry-content .wp-block-pullquote blockquote {
  border: 0;
  background: none;
  box-shadow: none;
  font-family: var(--brand-font-display);
  font-weight: 900;
  font-size: 1.5rem;
  line-height: 1.6;
}

.entry-content img {
  height: auto;
  border-radius: 1rem;
}

.entry-content figure {
  margin-inline: 0;
}

.entry-content figcaption,
.entry-content .wp-element-caption {
  margin-top: 0.6rem;
  color: var(--brand-on-light-muted);
  font-size: 0.875rem;
  line-height: 1.7;
  text-align: center;
}

.entry-content hr,
.entry-content .wp-block-separator {
  height: 1px;
  margin-block: 2.5em;
  border: 0;
  background: var(--brand-hairline-on-light);
  opacity: 1;
}

.entry-content table {
  width: 100%;
  overflow: hidden;
  border-collapse: collapse;
  border-radius: 0.75rem;
  background: var(--brand-surface-card);
  font-size: 0.95rem;
  line-height: 1.7;
}

.entry-content th,
.entry-content td {
  padding: 0.7rem 0.9rem;
  border-bottom: 1px solid var(--brand-hairline-on-light);
  text-align: start;
}

.entry-content th {
  background: color-mix(in srgb, var(--brand-hairline-on-light) 45%, var(--brand-surface-card));
  font-family: var(--brand-font-label);
  font-weight: 600;
}

.entry-content .wp-block-table {
  overflow-x: auto;
}

.entry-content pre {
  overflow-x: auto;
  padding: 1rem 1.25rem;
  border-radius: 0.75rem;
  background: var(--brand-surface-dark);
  color: var(--brand-on-dark);
  direction: ltr;
  font-size: 0.875rem;
  line-height: 1.7;
  text-align: left;
}

.entry-content code {
  padding: 0.1em 0.35em;
  border-radius: 0.35em;
  background: color-mix(in srgb, var(--brand-hairline-on-light) 60%, transparent);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.9em;
}

.entry-content pre code {
  padding: 0;
  background: none;
  color: inherit;
}

.entry-content .wp-block-button__link,
.entry-content .wp-element-button {
  border-radius: 999px;
  background: var(--brand);
  color: var(--brand-foreground);
  padding: 0.8rem 1.4rem;
  font-family: var(--brand-font-label);
  font-weight: 600;
  text-decoration: none;
}

.entry-content .is-style-outline .wp-block-button__link {
  background: transparent;
  color: var(--brand-on-light);
  box-shadow: inset 0 0 0 1px var(--brand-on-light);
}

.entry-content .aligncenter {
  margin-inline: auto;
}

.entry-content .alignleft {
  float: left;
  max-width: 50%;
  margin: 0.4em 0 1em 1.5em;
}

.entry-content .alignright {
  float: right;
  max-width: 50%;
  margin: 0.4em 1.5em 1em 0;
}

.entry-content::after {
  content: "";
  display: table;
  clear: both;
}

@media (min-width: 1100px) {
  .entry-content .alignwide {
    margin-inline: -6rem;
  }
}

.entry-content .alignfull {
  width: 100vw;
  max-width: 100vw;
  margin-inline: calc(50% - 50vw);
}

.entry-content .alignfull img {
  border-radius: 0;
}

.entry-content iframe {
  max-width: 100%;
}

.entry-content .wp-block-embed__wrapper iframe {
  border-radius: 1rem;
}

.page-links {
  margin-top: 2rem;
  font-family: var(--brand-font-label);
  font-weight: 600;
}

/* Tags + share */

.post-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 2.5rem;
}

.post-tags a {
  display: inline-flex;
  min-height: 2.125rem;
  align-items: center;
  padding-inline: 0.875rem;
  border-radius: 999px;
  background: var(--brand-surface-card);
  color: var(--brand-on-light);
  box-shadow: inset 0 0 0 1px var(--brand-hairline-on-light);
  font-family: var(--brand-font-label);
  font-weight: 600;
  font-size: 0.8125rem;
}

.post-tags a:hover {
  box-shadow: inset 0 0 0 1px var(--brand-on-light);
}

.share {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--brand-hairline-on-light);
}

.share__label {
  margin-inline-end: 0.25rem;
  color: var(--brand-on-light-muted);
  font-family: var(--brand-font-label);
  font-weight: 600;
  font-size: 0.9375rem;
}

.share__btn {
  display: inline-flex;
  min-height: 2.5rem;
  align-items: center;
  gap: 0.4rem;
  padding-inline: 0.95rem;
  border: 0;
  border-radius: 999px;
  background: var(--brand-surface-card);
  color: var(--brand-on-light);
  box-shadow: inset 0 0 0 1px var(--brand-hairline-on-light);
  font-family: var(--brand-font-label);
  font-weight: 600;
  font-size: 0.8125rem;
  cursor: pointer;
  transition:
    background-color 0.2s ease,
    color 0.2s ease;
}

.share__btn:hover {
  background: var(--brand-surface-dark);
  color: var(--brand-on-dark);
}

.share__btn .share__done {
  display: none;
}

.share__btn.is-copied .share__idle {
  display: none;
}

.share__btn.is-copied .share__done {
  display: inline;
}

/* Amber CTA card (same as #contact on the landing) */

.post-cta {
  margin-top: 3rem;
  padding: 2.25rem 1.5rem;
  border-radius: var(--brand-card-radius);
  background: var(--brand);
  color: var(--brand-foreground);
  text-align: center;
}

@media (min-width: 640px) {
  .post-cta {
    padding: 2.75rem 2.5rem;
  }
}

.post-cta .eyebrow {
  color: color-mix(in srgb, var(--brand-foreground) 75%, transparent);
  font-size: 0.9375rem;
}

.post-cta h2 {
  margin-top: 0.6rem;
  font-size: clamp(1.5rem, 3vw, 2.125rem);
  line-height: 1.35;
  text-wrap: balance;
}

.post-cta p.post-cta__text {
  max-width: 30rem;
  margin: 0.75rem auto 0;
  line-height: var(--brand-body-leading);
}

.post-cta__actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 1.75rem;
}

@media (min-width: 640px) {
  .post-cta__actions {
    flex-direction: row;
    justify-content: center;
  }
}

/* Related */

.related {
  padding-bottom: var(--brand-section-y);
}

.related .section-head {
  margin-bottom: 2rem;
}

/* ── Flavor shelf under each article (jar cards, as on the landing) ───── */

.product-shelf {
  padding-bottom: var(--brand-section-y);
}

.product-shelf .section-head {
  margin-bottom: 1.75rem;
}

/* Phones: a swipeable scroll-snap rail that bleeds to the screen edge. */
.product-shelf__list {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(9.25rem, 40%);
  gap: 0.875rem;
  margin: 0 calc(-1 * var(--brand-gutter));
  padding: 0.5rem var(--brand-gutter) 0.75rem;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--brand-gutter);
  scrollbar-width: none;
  list-style: none;
}

.product-shelf__list::-webkit-scrollbar {
  display: none;
}

.product-shelf__list > li {
  scroll-snap-align: start;
}

/* Tablet and up: a centered wrap, so 5 or 7 flavors never leave a lopsided row. */
@media (min-width: 640px) {
  .product-shelf__list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.25rem;
    margin: 0;
    padding: 0;
    overflow: visible;
    scroll-snap-type: none;
  }

  .product-shelf__list > li {
    flex: 0 0 calc((100% - 2 * 1.25rem) / 3);
  }
}

@media (min-width: 1280px) {
  .product-shelf__list > li {
    flex-basis: calc((100% - 5 * 1.25rem) / 6);
  }
}

.product-card {
  display: flex;
  height: 100%;
  flex-direction: column;
  overflow: hidden;
  border-radius: var(--brand-card-radius);
  background: var(--brand-surface-dark);
  color: var(--brand-on-dark);
  box-shadow: 0 0 0 1px var(--brand-hairline-on-light);
  outline: none;
}

.product-card:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 3px;
}

/* Cut-out jar photos on the same cream backdrop as the landing's shelf. */
.product-card__media {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  background:
    radial-gradient(ellipse 70% 55% at 50% 42%, #fffaf3 0%, transparent 70%),
    linear-gradient(180deg, #fbf1e4 0%, #f1e0cb 100%);
}

.product-card__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 14px 16px color-mix(in srgb, var(--brand-surface-dark) 22%, transparent));
  transition: transform 0.3s ease;
}

.product-card__media img.product-card__mascot {
  width: 40%;
  height: auto;
  margin: auto;
  filter: none;
  opacity: 0.8;
}

.product-card:hover .product-card__media img {
  transform: scale(1.04);
}

.product-card--soldout .product-card__media img {
  filter: grayscale(60%) drop-shadow(0 14px 16px color-mix(in srgb, var(--brand-surface-dark) 22%, transparent));
}

.product-card__badge {
  position: absolute;
  inset-block-start: 0.75rem;
  inset-inline-start: 0.75rem;
  padding: 0.2rem 0.7rem;
  border-radius: 999px;
  background: color-mix(in srgb, var(--brand-surface-dark) 85%, transparent);
  color: var(--brand-on-dark);
  font-family: var(--brand-font-label);
  font-weight: 600;
  font-size: 0.75rem;
}

.product-card__badge--sale {
  background: var(--brand-accent);
  color: var(--brand-accent-foreground);
}

.product-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 0.75rem 0.875rem 0.875rem;
}

.product-card__title {
  color: var(--brand-on-dark);
  font-family: var(--brand-font-display);
  font-weight: 900;
  font-size: 1rem;
  line-height: 1.55;
  text-wrap: balance;
}

.product-card__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.25rem 0.5rem;
  margin-top: auto;
  padding-top: 0.625rem;
  font-family: var(--brand-font-label);
}

.product-card__price {
  color: var(--brand-on-dark);
  font-weight: 600;
  font-size: 0.9rem;
}

.product-card__price s {
  margin-inline-start: 0.375rem;
  color: var(--brand-on-dark-muted);
  font-size: 0.7rem;
}

.product-card__weight {
  margin-top: 0.125rem;
  color: var(--brand-on-dark-muted);
  font-weight: 500;
  font-size: 0.7rem;
}

.product-card__more {
  display: inline-flex;
  align-items: center;
  gap: 0.125rem;
  color: var(--brand);
  font-weight: 600;
  font-size: 0.75rem;
  white-space: nowrap;
}

.product-card__more .icon {
  width: 0.875rem;
  height: 0.875rem;
}

.product-card--soldout .product-card__more {
  color: var(--brand-on-dark-muted);
}

@media (min-width: 640px) {
  .product-card__title {
    font-size: 1.05rem;
  }
}

/* ── Comments ─────────────────────────────────────────────────────────── */

.comments {
  padding-bottom: var(--brand-section-y);
}

.comments-title {
  font-size: 1.6rem;
  line-height: 1.4;
}

.comment-list,
.comment-list .children {
  margin: 1.5rem 0 0;
  padding: 0;
  list-style: none;
}

.comment-list .children {
  padding-inline-start: 1.5rem;
}

.comment-body {
  margin-top: 1rem;
  padding: 1.25rem;
  border-radius: 1rem;
  background: var(--brand-surface-card);
  box-shadow: inset 0 0 0 1px var(--brand-hairline-on-light);
  line-height: 1.85;
}

.comment-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
  font-size: 0.875rem;
}

.comment-author {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--brand-font-label);
  font-weight: 600;
}

.comment-author img {
  border-radius: 999px;
}

.comment-metadata,
.comment-metadata a {
  color: var(--brand-on-light-muted);
}

.reply a {
  color: var(--brand-accent);
  font-family: var(--brand-font-label);
  font-weight: 600;
  font-size: 0.875rem;
}

.comment-respond {
  margin-top: 2.5rem;
}

.comment-reply-title {
  font-family: var(--brand-font-display);
  font-weight: 900;
  font-size: 1.4rem;
}

.comment-form {
  display: grid;
  gap: 1rem;
  margin-top: 1rem;
}

.comment-form label {
  display: block;
  margin-bottom: 0.35rem;
  font-family: var(--brand-font-label);
  font-weight: 600;
  font-size: 0.9375rem;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 0;
  border-radius: 0.875rem;
  background: var(--brand-surface-card);
  color: var(--brand-on-light);
  box-shadow: inset 0 0 0 1px var(--brand-hairline-on-light);
}

.comment-form input:focus,
.comment-form textarea:focus {
  outline: none;
  box-shadow: inset 0 0 0 2px var(--brand);
}

.comment-form .comment-form-cookies-consent {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
}

.comment-form .comment-form-cookies-consent label {
  margin: 0;
  font-family: var(--brand-font-body);
  font-weight: 400;
}

.comment-form .submit {
  min-height: 3rem;
  padding-inline: 1.5rem;
  border: 0;
  border-radius: 999px;
  background: var(--brand);
  color: var(--brand-foreground);
  font-family: var(--brand-font-label);
  font-weight: 600;
  cursor: pointer;
}

/* ── 404 ──────────────────────────────────────────────────────────────── */

.not-found {
  text-align: center;
}

.not-found img {
  width: 9rem;
  height: auto;
  margin-inline: auto;
}

.not-found .page-hero__title {
  margin-top: 1.25rem;
}

.not-found .lead {
  margin-inline: auto;
}

.not-found__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 2rem;
}

.not-found .search-form {
  margin-inline: auto;
}

/* ── Footer (LandingFooter) ───────────────────────────────────────────── */

.site-footer {
  border-top: 1px solid var(--brand-hairline-on-dark);
  background: var(--brand-surface-dark);
  color: var(--brand-on-dark);
}

.footer-grid {
  display: grid;
  gap: 2.5rem;
  padding-block: 3rem;
}

@media (min-width: 640px) {
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .footer-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 2rem;
  }
}

.footer-brand,
.footer-col {
  min-width: 0;
  text-align: center;
}

.footer-col--contact {
  display: flex;
  flex-direction: column;
  align-items: center;
}

@media (min-width: 640px) {
  .footer-brand,
  .footer-col {
    text-align: start;
  }

  .footer-col--contact {
    align-items: flex-start;
  }
}

.footer-brand__logo {
  display: inline-flex;
  border-radius: 0.5rem;
}

.footer-brand__logo img {
  width: 5rem;
  height: 5rem;
  object-fit: contain;
}

.footer-brand p {
  max-width: 20rem;
  margin: 0.75rem auto 0;
  color: var(--brand-on-dark-muted);
  font-size: 0.875rem;
  line-height: 1.75;
}

@media (min-width: 640px) {
  .footer-brand p {
    margin-inline: 0;
  }
}

.footer-instagram {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  margin-top: 1rem;
  padding: 0.5rem 0.875rem;
  border-radius: 999px;
  background: color-mix(in srgb, var(--brand-on-dark) 8%, transparent);
  color: var(--brand-on-dark);
  box-shadow: inset 0 0 0 1px var(--brand-hairline-on-dark);
  font-size: 0.875rem;
  transition: background-color 0.2s ease;
}

.footer-instagram:hover {
  background: color-mix(in srgb, var(--brand-on-dark) 14%, transparent);
}

.footer-instagram__icon {
  display: inline-flex;
  width: 2rem;
  height: 2rem;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: color-mix(in srgb, var(--brand) 15%, transparent);
  color: var(--brand);
  box-shadow: inset 0 0 0 1px var(--brand-hairline-on-dark);
}

.footer-instagram__text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.125rem;
  line-height: 1;
}

.footer-instagram__text small {
  color: var(--brand-on-dark-muted);
  font-size: 0.75rem;
}

.footer-instagram__text span {
  font-family: var(--brand-font-label);
  font-weight: 500;
  letter-spacing: 0.025em;
}

.footer-col h3 {
  color: var(--brand);
  font-family: var(--brand-font-label);
  font-weight: 600;
  font-size: 1rem;
}

.footer-col ul {
  display: grid;
  gap: 0.5rem;
  margin: 0.75rem 0 0;
  padding: 0;
  list-style: none;
  color: var(--brand-on-dark-muted);
  font-size: 0.875rem;
}

.footer-col a {
  color: var(--brand-on-dark-muted);
  transition: color 0.2s ease;
}

.footer-col a:hover {
  color: var(--brand-on-dark);
}

.footer-col a[aria-current="page"] {
  color: var(--brand-on-dark);
}

.footer-col--contact a {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
}

.footer-col--contact .icon {
  width: 0.875rem;
  height: 0.875rem;
}

.footer-seal {
  display: flex;
  grid-column: 1 / -1;
  justify-content: center;
  padding-top: 0.5rem;
}

.footer-seal img {
  width: auto;
  height: 5rem;
}

@media (min-width: 640px) {
  .footer-seal {
    grid-column: auto;
    padding-top: 0;
  }
}

@media (min-width: 768px) {
  .footer-seal img {
    height: 7rem;
  }
}

@media (min-width: 1024px) {
  .footer-seal {
    justify-content: flex-start;
  }

  .footer-seal img {
    height: 8rem;
  }
}

.footer-bottom {
  padding-block: 1.5rem;
  border-top: 1px solid var(--brand-hairline-on-dark);
  color: var(--brand-on-dark-muted);
  font-size: 0.875rem;
  text-align: center;
}

/* ── Floating call/WhatsApp bar (mobile, after the hero) ──────────────── */

.floating-cta {
  position: fixed;
  inset-inline: 0;
  bottom: 0;
  z-index: 50;
  opacity: 0;
  pointer-events: none;
  transform: translateY(100%);
  transition:
    transform 0.3s ease-out,
    opacity 0.3s ease-out;
}

.floating-cta.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: none;
}

@media (min-width: 768px) {
  .floating-cta {
    display: none;
  }
}

.floating-cta__inner {
  display: flex;
  overflow: hidden;
  border-radius: 1rem 1rem 0 0;
  background: var(--brand);
  padding-bottom: env(safe-area-inset-bottom);
  box-shadow: 0 -8px 24px -4px rgba(51, 34, 17, 0.35);
}

.floating-cta a {
  display: flex;
  min-height: 3rem;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--brand-font-label);
  font-weight: 600;
}

.floating-cta__call {
  min-width: 0;
  flex: 1;
  padding-inline: 0.75rem;
  background: var(--brand);
  color: var(--brand-foreground);
  font-size: 1rem;
}

.floating-cta__wa {
  width: 5.5rem;
  flex-shrink: 0;
  gap: 0.25rem !important;
  padding-inline: 0.5rem;
  background: #25d366;
  color: #fff;
  font-size: 0.875rem;
}

/* ── Motion preferences ───────────────────────────────────────────────── */

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

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
