/* ==========================================================================
   Subitas Crackers — content pages: the policies, the blog, the galleries,
   the contact page and the status (404) page.

   Same rule as site.css: every colour is a var(--token) from the active
   theme, with the Green & gold preset as the fallback. Never a bare hex.
   ========================================================================== */

/* ---------- Shared page head ---------- */

.page-head {
  padding: 34px 0 26px;
  border-bottom: 1px solid var(--line, #EADFD4);
  margin-bottom: 34px;
}

.page-head .eyebrow {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--accent, #C42130);
  margin-bottom: 9px;
}

.page-head h1 {
  font-size: 34px;
  font-weight: 900;
  line-height: 1.15;
  max-width: 20ch;
}

.page-head .lede {
  margin: 12px 0 0;
  max-width: 62ch;
  font-size: 16px;
  color: var(--ink-muted, #6B5B52);
}

@media (max-width: 720px) {
  .page-head { padding: 24px 0 20px; margin-bottom: 26px; }
  .page-head h1 { font-size: 26px; }
}

/* ---------- Standing pages (privacy, terms, refunds, delivery) ---------- */

.content-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 290px;
  gap: 40px;
  align-items: start;
  padding-bottom: 56px;
}

@media (max-width: 1000px) {
  .content-layout { grid-template-columns: minmax(0, 1fr); gap: 28px; }
}

.prose {
  background: var(--surface, #FFFFFF);
  border: 1px solid var(--line, #EADFD4);
  border-radius: var(--radius);
  padding: 34px 38px 38px;
  max-width: 74ch;
  font-size: 15.5px;
  line-height: 1.72;
  color: var(--ink, #1B1412);
}

@media (max-width: 720px) {
  .prose { padding: 22px 20px 26px; font-size: 15px; }
}

.prose > *:first-child { margin-top: 0; }
.prose > *:last-child { margin-bottom: 0; }

.prose h2 {
  font-size: 19px;
  font-weight: 900;
  margin: 32px 0 10px;
  padding-top: 22px;
  border-top: 1px solid var(--line, #EADFD4);
}

.prose h2:first-of-type { border-top: 0; padding-top: 0; margin-top: 0; }

.prose h3 {
  font-size: 16px;
  font-weight: 800;
  margin: 24px 0 8px;
}

.prose p { margin: 0 0 15px; }

.prose ul, .prose ol { margin: 0 0 16px; padding-left: 22px; }
.prose li { margin-bottom: 8px; }
.prose li::marker { color: var(--accent, #C42130); font-weight: 700; }

.prose ol { counter-reset: none; }

.prose strong { font-weight: 800; }

.prose a { font-weight: 700; text-decoration: underline; text-underline-offset: 2px; }

/* ---------- Page sidebar ---------- */

.content-aside { display: grid; gap: 16px; position: sticky; top: 18px; }

@media (max-width: 1000px) {
  .content-aside { position: static; }
}

.aside-card {
  background: var(--surface, #FFFFFF);
  border: 1px solid var(--line, #EADFD4);
  border-radius: var(--radius);
  padding: 18px 20px 20px;
}

.aside-card h2 {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ink-muted, #6B5B52);
  margin-bottom: 12px;
}

.aside-links { display: grid; gap: 2px; }

.aside-links a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 10px;
  margin: 0 -10px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  color: var(--ink, #1B1412);
}

.aside-links a:hover {
  background: var(--surface-alt, #FDFBF8);
  color: var(--accent, #C42130);
  text-decoration: none;
}

.aside-links a[aria-current="page"] {
  background: var(--surface-alt, #FDFBF8);
  color: var(--accent, #C42130);
}

.aside-links svg { flex: none; opacity: 0.5; }

.aside-note {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--ink-muted, #6B5B52);
}

.aside-note + .aside-note { margin-top: 10px; }

.aside-card .btn-accent { width: 100%; justify-content: center; margin-top: 14px; }

.page-updated {
  margin: 16px 0 0;
  font-size: 13px;
  color: var(--ink-muted, #6B5B52);
}

/* ---------- WhatsApp call to action ---------- */

.wa-cta {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  background: var(--surface-alt, #FDFBF8);
  border: 1px solid var(--line, #EADFD4);
  border-radius: var(--radius);
  padding: 18px 20px;
  margin-bottom: 22px;
}

.wa-cta p { margin: 0; flex: 1 1 280px; font-size: 14.5px; color: var(--ink-muted, #6B5B52); }
.wa-cta strong { display: block; font-size: 16px; color: var(--ink, #1B1412); margin-bottom: 3px; }

/* ---------- Blog ---------- */

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 22px;
  padding-bottom: 56px;
}

.blog-card {
  display: flex;
  flex-direction: column;
  background: var(--surface, #FFFFFF);
  border: 1px solid var(--line, #EADFD4);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.15s ease, transform 0.15s ease;
}

.blog-card:hover { border-color: var(--accent, #C42130); transform: translateY(-2px); }

.blog-card-art {
  aspect-ratio: 16 / 9;
  background: var(--surface-alt, #FDFBF8);
  border-bottom: 1px solid var(--line, #EADFD4);
  display: grid;
  place-items: center;
  overflow: hidden;
}

.blog-card-art img { width: 100%; height: 100%; object-fit: cover; }
.blog-card-art svg { opacity: 0.22; }

.blog-card-body { padding: 18px 20px 20px; display: flex; flex-direction: column; flex: 1; }

.blog-card-body h2 {
  font-size: 18px;
  font-weight: 800;
  line-height: 1.3;
  margin-bottom: 8px;
}

.blog-card-body h2 a { color: var(--ink, #1B1412); }
.blog-card:hover .blog-card-body h2 a { color: var(--accent, #C42130); text-decoration: none; }

.blog-card-body p {
  margin: 0 0 14px;
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--ink-muted, #6B5B52);
}

.blog-meta {
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  color: var(--ink-muted, #6B5B52);
}

.blog-meta .dot { width: 3px; height: 3px; border-radius: 50%; background: currentColor; opacity: 0.5; }

/* ---------- Article ---------- */

.article-cover {
  border-radius: var(--radius);
  border: 1px solid var(--line, #EADFD4);
  overflow: hidden;
  margin-bottom: 26px;
  max-height: 420px;
}

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

.more-posts { display: grid; gap: 4px; }

.more-posts a {
  display: block;
  padding: 11px 12px;
  margin: 0 -12px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 14.5px;
  line-height: 1.4;
  color: var(--ink, #1B1412);
}

.more-posts a:hover { background: var(--surface-alt, #FDFBF8); color: var(--accent, #C42130); text-decoration: none; }
.more-posts em { display: block; font-style: normal; font-weight: 500; font-size: 12.5px; color: var(--ink-muted, #6B5B52); margin-top: 3px; }

/* ---------- Galleries ---------- */

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 18px;
  padding-bottom: 56px;
}

.gallery-tile {
  background: var(--surface, #FFFFFF);
  border: 1px solid var(--line, #EADFD4);
  border-radius: var(--radius);
  overflow: hidden;
}

.gallery-frame {
  aspect-ratio: 16 / 9;
  background: var(--surface-alt, #FDFBF8);
  position: relative;
}

.gallery-frame img { width: 100%; height: 100%; object-fit: cover; }

.gallery-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.gallery-tile figcaption {
  padding: 12px 15px 14px;
  font-size: 14px;
  font-weight: 700;
  border-top: 1px solid var(--line, #EADFD4);
}

.photo-grid { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.photo-grid .gallery-frame { aspect-ratio: 4 / 3; }

/* ---------- Contact ---------- */

.contact-layout {
  display: grid;
  grid-template-columns: 340px minmax(0, 1fr);
  gap: 32px;
  align-items: start;
  padding-bottom: 56px;
}

@media (max-width: 900px) {
  .contact-layout { grid-template-columns: minmax(0, 1fr); }
}

.contact-card {
  background: var(--surface, #FFFFFF);
  border: 1px solid var(--line, #EADFD4);
  border-radius: var(--radius);
  padding: 24px 26px 26px;
}

.contact-card h2 { font-size: 17px; font-weight: 900; margin-bottom: 16px; }

.contact-rows { display: grid; gap: 16px; }

.contact-row { display: flex; gap: 13px; align-items: flex-start; }

.contact-row .ico {
  flex: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--surface-alt, #FDFBF8);
  border: 1px solid var(--line, #EADFD4);
  color: var(--accent, #C42130);
}

.contact-row .label {
  display: block;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ink-muted, #6B5B52);
  margin-bottom: 2px;
}

.contact-row .value { font-size: 15.5px; font-weight: 700; font-style: normal; line-height: 1.5; }
.contact-row .value span { display: block; font-weight: 500; }

.contact-hours {
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--line, #EADFD4);
  font-size: 14px;
  color: var(--ink-muted, #6B5B52);
}

.contact-socials { display: flex; gap: 9px; margin-top: 18px; }

.contact-socials a {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: 1px solid var(--line, #EADFD4);
  color: var(--ink, #1B1412);
}

.contact-socials a:hover { border-color: var(--accent, #C42130); color: var(--accent, #C42130); }

.contact-map {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line, #EADFD4);
  margin-top: 22px;
  aspect-ratio: 16 / 10;
}

.contact-map iframe { width: 100%; height: 100%; border: 0; display: block; }

/* ---------- Empty states ---------- */

.empty-panel {
  background: var(--surface, #FFFFFF);
  border: 1px dashed var(--line, #EADFD4);
  border-radius: var(--radius);
  padding: 46px 30px 48px;
  text-align: center;
  margin-bottom: 56px;
}

.empty-panel svg { color: var(--accent, #C42130); opacity: 0.45; margin-bottom: 14px; }
.empty-panel h2 { font-size: 20px; font-weight: 900; margin-bottom: 8px; }

.empty-panel p {
  margin: 0 auto 20px;
  max-width: 52ch;
  color: var(--ink-muted, #6B5B52);
  font-size: 15px;
  line-height: 1.6;
}

.empty-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }

/* ---------- Status / 404 ---------- */

.status-page { padding: 64px 0 72px; text-align: center; }

.status-code {
  font-family: var(--font-display);
  font-size: 84px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--accent, #C42130);
  opacity: 0.22;
}

.status-page h1 { font-size: 32px; font-weight: 900; margin: 6px 0 12px; }

.status-page > .shell > p {
  margin: 0 auto 10px;
  max-width: 52ch;
  font-size: 16px;
  color: var(--ink-muted, #6B5B52);
}

.status-path {
  display: inline-block;
  margin-bottom: 26px;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--surface-alt, #FDFBF8);
  border: 1px solid var(--line, #EADFD4);
  font-size: 13px;
  word-break: break-all;
}

.status-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-bottom: 38px; }

.status-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 12px;
  max-width: 820px;
  margin: 0 auto;
  text-align: left;
}

.status-links a {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 14px 16px;
  background: var(--surface, #FFFFFF);
  border: 1px solid var(--line, #EADFD4);
  border-radius: var(--radius);
  font-weight: 700;
  color: var(--ink, #1B1412);
}

.status-links a:hover { border-color: var(--accent, #C42130); color: var(--accent, #C42130); text-decoration: none; }
.status-links svg { flex: none; color: var(--accent, #C42130); }

@media (max-width: 720px) {
  .status-page { padding: 44px 0 52px; }
  .status-code { font-size: 62px; }
  .status-page h1 { font-size: 24px; }
}
