/* SEO content & FAQ */
.category-seo-prose a,
.guide-prose a {
  color: #8f482d;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.category-seo-prose a:hover,
.guide-prose a:hover {
  opacity: 0.8;
}

.category-seo-prose ul {
  list-style: disc;
  padding-left: 1.5rem;
  margin-top: 0.75rem;
}

.category-seo-prose li + li {
  margin-top: 0.35rem;
}

.site-faq-item summary::-webkit-details-marker {
  display: none;
}

.site-faq-item[open] summary .material-symbols-outlined {
  transform: rotate(180deg);
}

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

/* El Alma — unified typography */
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

[id] {
  scroll-margin-top: 6rem;
}

.site-header {
  background-color: rgba(255, 248, 245, 0.95);
  backdrop-filter: blur(8px);
}

.site-footer {
  margin-top: auto;
}

/* Logo: fill header/footer height, no artificial width shrink */
.site-brand-link {
  line-height: 0;
  overflow: visible;
}

.site-logo-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  height: 100%;
}

.site-logo-wrap .site-logo {
  display: block;
  height: 100%;
  width: auto;
  max-width: none;
  object-fit: contain;
  object-position: left center;
}

/* Landscape / square logos */
.site-header .site-brand-link--header .site-logo-wrap {
  max-height: 3.5rem;
}

.site-footer .site-brand-link--footer .site-logo-wrap {
  max-height: 4rem;
}

/* Portrait logos (taller than wide) — scale up so they don't look tiny */
.site-header .site-brand-link--header .site-logo-wrap--portrait {
  height: 3.5rem;
  min-width: 10rem;
}

.site-header .site-brand-link--header .site-logo-wrap--portrait .site-logo {
  height: 3.5rem;
  transform: scale(4);
  transform-origin: left center;
}

.site-footer .site-brand-link--footer .site-logo-wrap--portrait {
  height: 4rem;
  min-width: 11rem;
}

.site-footer .site-brand-link--footer .site-logo-wrap--portrait .site-logo {
  height: 4rem;
  transform: scale(4.5);
  transform-origin: left center;
}

/* Wide logos */
.site-logo-wrap--landscape .site-logo {
  max-height: 100%;
  width: auto;
  max-width: 18rem;
}

#mobile-nav {
  border-top: 1px solid rgba(218, 193, 186, 0.3);
}

#mobile-nav a {
  display: block;
  padding: 0.35rem 0;
}

html {
  font-family: "Source Sans 3", system-ui, -apple-system, sans-serif;
}

body {
  font-family: "Source Sans 3", system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  font-style: normal;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1,
h2,
h3,
h4,
h5,
h6,
.font-headline-xl,
.font-headline-lg,
.font-headline-md,
.font-headline-sm,
.font-headline-lg-mobile,
.text-headline-xl,
.text-headline-lg,
.text-headline-md,
.text-headline-sm,
.text-headline-lg-mobile {
  font-family: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  font-style: normal;
}

p,
a,
button,
input,
textarea,
select,
label,
li,
.font-body-lg,
.font-body-md,
.font-label-md,
.text-body-lg,
.text-body-md,
.text-label-md {
  font-family: "Source Sans 3", system-ui, -apple-system, sans-serif;
  font-style: normal;
}

i,
em,
cite,
.italic,
[class~="italic"] {
  font-style: normal !important;
}

html *:not(.material-symbols-outlined),
html *:not(.material-symbols-outlined)::before,
html *:not(.material-symbols-outlined)::after {
  font-style: normal !important;
}

.material-symbols-outlined {
  font-family: "Material Symbols Outlined" !important;
  font-weight: normal;
  font-style: normal;
  font-size: 24px;
  line-height: 1;
  letter-spacing: normal;
  text-transform: none;
  display: inline-block;
  white-space: nowrap;
  word-wrap: normal;
  direction: ltr;
  overflow: hidden;
  -webkit-font-feature-settings: "liga";
  font-feature-settings: "liga";
  -webkit-font-smoothing: antialiased;
  font-variation-settings: "FILL" 0, "wght" 400, "GRAD" 0, "opsz" 24;
  speak: never;
}

button,
a[class*="bg-primary"],
a[class*="border-primary"] {
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.65;
}

button:focus-visible,
a:focus-visible {
  outline: 2px solid #8f482d;
  outline-offset: 2px;
}

#mobile-nav a {
  display: block;
  padding: 0.25rem 0;
}

.partner-logos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 24px;
  align-items: stretch;
}

.partner-logo-card {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 120px;
  padding: 28px 24px;
  background: #fbf2ed;
  border: 1px solid rgba(218, 193, 186, 0.5);
  border-radius: 8px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.partner-logo-card:hover {
  border-color: #8f482d;
  box-shadow: 0 4px 20px rgba(143, 72, 45, 0.08);
}

.partner-logo-card img {
  max-width: 100%;
  max-height: 64px;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: grayscale(100%);
  opacity: 0.75;
  transition: filter 0.25s ease, opacity 0.25s ease;
}

.partner-logo-card:hover img {
  filter: grayscale(0%);
  opacity: 1;
}

.partner-logos-empty {
  grid-column: 1 / -1;
  text-align: center;
  color: #54433d;
  padding: 48px 24px;
  font-size: 16px;
}

@media (max-width: 768px) {
  .text-headline-xl {
    font-size: 36px !important;
    line-height: 1.2 !important;
  }

  .text-headline-lg {
    font-size: 32px !important;
    line-height: 1.25 !important;
  }

  .site-header .site-brand-link--header .site-logo-wrap--portrait {
    min-width: 7rem;
  }

  .site-header .site-brand-link--header .site-logo-wrap--portrait .site-logo {
    height: 3rem;
    transform: scale(3.25);
  }
}

/* Index hero — market photo background */
.index-hero {
  min-height: max(420px, 56vw);
  padding-top: clamp(3.5rem, 10vh, 6rem);
  padding-bottom: clamp(3.5rem, 10vh, 6rem);
}

.index-hero-bg {
  background-color: #efe6e2;
  background-image: url('/images/hero-market-v3.jpg');
  background-size: 100% auto;
  background-position: center top;
  background-repeat: no-repeat;
}

.index-hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(255, 248, 245, 0.35) 0%,
    rgba(255, 248, 245, 0.18) 45%,
    rgba(255, 248, 245, 0.38) 100%
  );
}

.index-hero-title {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(2.75rem, 6vw, 5.5rem);
  font-weight: 700;
  line-height: 1.1;
  color: #6a331c;
  letter-spacing: 0.02em;
  text-shadow:
    0 0 24px rgba(255, 248, 245, 1),
    0 0 48px rgba(255, 248, 245, 0.95),
    0 2px 4px rgba(255, 248, 245, 1),
    0 4px 16px rgba(30, 27, 24, 0.25);
}

.about-us-section-bg {
  background: linear-gradient(180deg, #fff8f5 0%, #f5ece7 50%, #fff8f5 100%);
}

.about-us-eyebrow {
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.about-us-divider {
  width: 3.5rem;
  height: 2px;
  background: linear-gradient(90deg, transparent, #8f482d, transparent);
  border-radius: 1px;
}

.about-us-prose {
  width: 100%;
  margin: 0;
  padding: 0;
}

.about-us-prose p {
  font-family: "Source Sans 3", system-ui, sans-serif;
  font-size: clamp(1.125rem, 1.6vw, 1.3125rem);
  line-height: 1.8;
  font-weight: 400;
  color: #54433d;
  margin: 0 0 1.25rem;
  text-align: justify;
  text-justify: inter-word;
  hyphens: auto;
  -webkit-hyphens: auto;
}

.about-us-prose p:last-child {
  margin-bottom: 0;
}

/* Products catalog — compact category cards */
.products-catalog-grid .category-card--compact {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.products-catalog-grid .category-card--compact:hover {
  transform: translateY(-4px);
}

.products-catalog-grid .category-card--compact .category-card-media {
  height: 8rem;
}

/* Category pages — unified layout */
.category-page {
  min-height: 60vh;
}

.category-back-link {
  text-decoration: none;
}

.category-hero-media {
  box-shadow: 0 8px 24px -12px rgba(143, 72, 45, 0.15);
}

.category-catalog-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  align-items: start;
}

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

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

.catalog-item-tag {
  display: inline-block;
  font-size: 10px;
  line-height: 1;
  padding: 0.25rem 0.45rem;
  border-radius: 999px;
  background: rgba(78, 99, 90, 0.1);
  color: #4e635a;
  text-transform: lowercase;
}

.catalog-item-media {
  aspect-ratio: 1 / 1;
  background: #ffffff;
  overflow: hidden;
}

.catalog-item-image-wrap {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
}

.catalog-item-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center center;
}

.catalog-item-description {
  line-height: 1.45;
  overflow-wrap: anywhere;
  word-break: break-word;
  hyphens: auto;
}

.catalog-item-card {
  transition: box-shadow 0.25s ease;
  height: auto;
  min-height: 100%;
}

.catalog-item-card:hover {
  box-shadow: 0 8px 24px -8px rgba(143, 72, 45, 0.12);
}

@media (max-width: 640px) {
  .products-catalog-grid {
    gap: 0.75rem;
  }

  .products-catalog-grid .category-card--compact {
    padding: 0.75rem;
  }

  .products-catalog-grid .category-card--compact .category-card-media {
    height: 6.5rem;
  }

  .products-catalog-grid .category-card--compact h2 {
    font-size: 1rem !important;
  }
}
