/* ==========================================================
   TROPICOR FOODS — Category / About / Contact pages
   ========================================================== */

/* ---------- CATEGORY HERO (image band) ---------- */
.cat-hero {
  position: relative;
  min-height: 62vh; /* fallback for browsers without svh */
  min-height: 62svh;
  display: flex;
  align-items: flex-end;
  color: #fff;
  isolation: isolate;
}
.cat-hero-media { position: absolute; top: 0; right: 0; bottom: 0; left: 0; z-index: -2; background: var(--ink); }
.cat-hero-media img { width: 100%; height: 100%; object-fit: cover; }
.cat-hero::after {
  content: '';
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0;
  z-index: -1;
  background: linear-gradient(to top, rgba(12, 22, 19, 0.85) 0%, rgba(12, 22, 19, 0.30) 60%);
}
.cat-hero-inner { width: 100%; padding-block: clamp(7rem, 12vw, 9rem) clamp(2.75rem, 5vw, 4.5rem); }
.cat-hero h1 { max-width: 16ch; }
.cat-hero p { max-width: 52ch; margin-top: 1.5rem; font-size: var(--fs-lead); line-height: 1.6; color: rgba(255,255,255,0.84); }

/* ---------- PRODUCT LIST (text index) ---------- */
.list-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: clamp(2rem, 4vw, 3rem);
}
.list-grid {
  columns: 3;
  column-gap: clamp(2rem, 4vw, 4rem);
  border-top: 1px solid var(--line);
}
.list-grid li {
  break-inside: avoid;
  padding-block: 0.85rem;
  border-bottom: 1px solid var(--line);
  font-size: var(--fs-small);
}
@media (max-width: 63.99em) { .list-grid { columns: 2; } }
@media (max-width: 39.99em) { .list-grid { columns: 1; } }

/* ---------- CHECK LIST (industries served, ticked columns) ---------- */
.check-list {
  columns: 3;
  column-gap: clamp(2rem, 4vw, 4rem);
}
.check-list li {
  break-inside: avoid;
  position: relative;
  padding: 0.55rem 0 0.55rem 1.9rem;
  font-size: var(--fs-small);
  font-weight: 500;
}
.check-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.72rem;
  width: 1.05rem;
  height: 1.05rem;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231F8277' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 13l5 5L20 7'/%3E%3C/svg%3E") center / contain no-repeat;
}
@media (max-width: 63.99em) { .check-list { columns: 2; } }
@media (max-width: 39.99em) { .check-list { columns: 1; } }

/* ---------- COMPACT GALLERY (smaller frames for context imagery) ----------
   Selector carries img.gallery-item so it outweighs theme.css's
   `.gallery-scroll img.gallery-item { width: 100% }`. */
.gallery-scroll--compact > *,
.gallery-scroll--compact > img.gallery-item {
  width: clamp(11rem, 20vw, 15rem);
  aspect-ratio: 4 / 3;
}
@media (max-width: 39.99em) {
  .gallery-scroll--compact > *,
  .gallery-scroll--compact > img.gallery-item { width: 56vw; }
}

/* ---------- SPLIT FEATURE (contained card) ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 0;
  align-items: stretch;
  background: var(--paper);
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: 0 20px 48px -28px rgba(26, 43, 39, 0.2);
}
.section:not(.section--white) .split { background: var(--white); }
.split.split--flip { grid-template-columns: 1.1fr 1fr; }
/* Image fills its half at whatever height the card becomes.
   Absolute fill + stretched cell beats aspect-ratio, which would
   otherwise cap the media shorter than the copy and leak card bg. */
.split-media { overflow: hidden; position: relative; min-height: 26rem; }
.split-media img { position: absolute; top: 0; right: 0; bottom: 0; left: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease-out); }
.split:hover .split-media img { transform: scale(1.035); }
.split-copy { padding: clamp(2rem, 4vw, 3.5rem); align-self: center; }
.split-copy .t-title { max-width: 16ch; }
.split-copy p { margin-top: 1.25rem; color: var(--muted); max-width: 52ch; }
.split-copy .btn, .split-copy .link-line { margin-top: 1.75rem; }
@media (max-width: 63.99em) {
  .split, .split.split--flip { grid-template-columns: 1fr; }
  .split-media { order: -1; min-height: 0; aspect-ratio: 16 / 10; }
}
/* aspect-ratio fallback: old mobile browsers collapse the frame to 0 */
@supports not (aspect-ratio: 1 / 1) {
  @media (max-width: 63.99em) {
    .split-media { height: 0; padding-top: 62.5%; }
  }
}

/* ---------- ABOUT ---------- */
.vision-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.5rem, 3vw, 2.5rem);
}
.vision-card {
  border-top: 1px solid var(--line-on-dark);
  padding-top: 1.75rem;
}
.vision-card h3 {
  font-family: var(--font-display);
  font-size: var(--fs-subtitle);
  margin-bottom: 1rem;
}
.vision-card p { color: var(--muted-on-dark); font-size: var(--fs-small); line-height: 1.7; }
@media (max-width: 39.99em) { .vision-grid { grid-template-columns: 1fr; } }

.gallery-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1rem, 2vw, 1.75rem);
}
.gallery-strip .media-frame { aspect-ratio: 4 / 3; overflow: hidden; border-radius: var(--r-lg); }
.gallery-strip img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 39.99em) {
  /* Swipe strip with peek instead of a tall stack */
  .gallery-strip {
    display: flex;
    gap: 0.85rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: var(--gutter);
    margin-inline: calc(-1 * var(--gutter));
    padding-inline: var(--gutter);
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  .gallery-strip::-webkit-scrollbar { display: none; }
  .gallery-strip .media-frame { flex: 0 0 80%; scroll-snap-align: start; }
}

.capabilities-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(1.5rem, 2.5vw, 2.5rem);
}
.capability {
  border-top: 1px solid var(--line);
  padding-top: 1.25rem;
}
.capability h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}
.capability p { font-size: var(--fs-small); color: var(--muted); }
@media (max-width: 63.99em) { .capabilities-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 39.99em) { .capabilities-grid { grid-template-columns: 1fr; } }

/* ---------- PENDING MEDIA CARD (asset not yet supplied) ---------- */
.media-card--pending .media-frame { border: 1px dashed var(--line); background: transparent; }
.media-card--pending:hover .media-frame { transform: none; box-shadow: none; }

/* ---------- TESTIMONIALS ---------- */
.quote-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.25rem, 2.5vw, 2rem);
}
.quote-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: clamp(1.75rem, 3vw, 2.5rem);
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.quote-card blockquote {
  font-size: var(--fs-lead);
  line-height: 1.6;
}
.quote-card blockquote::before { content: '\201C'; }
.quote-card blockquote::after { content: '\201D'; }
.quote-card cite {
  font-style: normal;
  font-size: var(--fs-small);
  font-weight: 600;
  margin-top: auto;
}
.quote-card cite span {
  display: block;
  font-weight: 400;
  color: var(--muted);
  margin-top: 0.2rem;
}
/* Placeholder until real reviews are supplied */
.quote-card--pending {
  align-items: center;
  justify-content: center;
  min-height: 14rem;
  border-style: dashed;
  background: transparent;
}
.quote-card--pending span {
  font-size: var(--fs-meta);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
@media (max-width: 63.99em) { .quote-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 39.99em) { .quote-grid { grid-template-columns: 1fr; } }

/* ---------- INSIGHTS / ARTICLES ---------- */
.article-body {
  max-width: 46rem;
}
.article-body h2 {
  font-size: var(--fs-title);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
  margin-bottom: 1rem;
}
.article-body h3 {
  font-family: var(--font-display);
  font-size: var(--fs-subtitle);
  font-weight: 600;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}
.article-body p { margin-bottom: 1.1rem; color: var(--text); }
.article-body p.lede { font-size: var(--fs-lead); color: var(--muted); line-height: 1.65; }
.article-body ul {
  list-style: disc;
  padding-left: 1.4rem;
  margin-bottom: 1.1rem;
}
.article-body ul li { padding-block: 0.2rem; }
.article-body a:not(.btn) { color: var(--teal-deep); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.article-body a:not(.btn):hover { color: var(--teal-dark); }
.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  font-size: var(--fs-meta);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1.25rem;
}

/* In-article image figure. Ships as a dashed placeholder slot until
   the product photo arrives; swap the .media-slot for an <img> with
   the same footprint. 16:10 on desktop, 4:3 on phones. */
.article-figure {
  margin: clamp(1.75rem, 3.5vw, 2.5rem) 0;
}
.article-figure .media-slot {
  aspect-ratio: 16 / 10;
  border-radius: var(--r-lg);
}
.article-figure img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: var(--r-lg);
}
.article-figure figcaption {
  margin-top: 0.65rem;
  font-size: var(--fs-meta);
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
@media (max-width: 39.99em) {
  .article-figure .media-slot,
  .article-figure img { aspect-ratio: 4 / 3; }
}

/* Inline CTA band inside an article */
.article-cta {
  background: var(--teal-deep);
  color: #fff;
  border-radius: var(--r-lg);
  padding: clamp(1.75rem, 3.5vw, 2.5rem);
  margin: clamp(2rem, 4vw, 3rem) 0;
}
.article-cta h3 { font-family: var(--font-display); font-size: var(--fs-subtitle); font-weight: 600; margin: 0 0 0.5rem; }
.article-cta p { color: rgba(255, 255, 255, 0.85); margin-bottom: 1.25rem; }
.article-cta .actions { display: flex; flex-wrap: wrap; gap: 0.85rem; }
@media (max-width: 39.99em) { .article-cta .actions .btn { width: 100%; } }

/* Insights index cards */
.insight-card {
  display: block;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--white);
  padding: clamp(1.75rem, 3vw, 2.5rem);
  transition: transform 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out);
}
.insight-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 44px -24px rgba(26, 43, 39, 0.25);
}
.insight-card h2 {
  font-family: var(--font-display);
  font-size: var(--fs-subtitle);
  font-weight: 600;
  line-height: 1.3;
  margin-top: 0.6rem;
}
.insight-card p { margin-top: 0.6rem; font-size: var(--fs-small); color: var(--muted); }
.insight-card .link-line { margin-top: 1.25rem; color: var(--teal-deep); }

/* ---------- CONTACT ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: start;
}
@media (max-width: 63.99em) { .contact-grid { grid-template-columns: 1fr; } }

.contact-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}
.contact-form .field--full { grid-column: 1 / -1; }
.contact-form .btn { grid-column: 1 / -1; justify-self: start; }
@media (max-width: 39.99em) { .contact-form { grid-template-columns: 1fr; } }

.contact-details { border-top: 1px solid var(--line); }
.contact-detail-row {
  padding-block: 1.5rem;
  border-bottom: 1px solid var(--line);
}
.contact-detail-row h3 {
  font-family: var(--font-body);
  font-size: var(--fs-meta);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.6rem;
}
.contact-detail-row p, .contact-detail-row a {
  font-size: var(--fs-small);
  line-height: 1.7;
}
.contact-detail-row a { font-weight: 600; transition: color 0.25s; }
.contact-detail-row a:hover { color: var(--teal-deep); }

.map-frame {
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  aspect-ratio: 21 / 9;
}
.map-frame iframe { width: 100%; height: 100%; border: 0; display: block; }
@media (max-width: 39.99em) { .map-frame { aspect-ratio: 4 / 3; } }

.form-note {
  grid-column: 1 / -1;
  font-size: var(--fs-meta);
  color: var(--muted);
}

/* ---------- ABOUT: OUR TEAM ----------
   One photo is portrait (3:4), the other landscape (4:3). The column ratio
   below makes them render at matching heights side by side, so neither has to
   be cropped and nobody gets cut out of frame. */
.team-grid {
  display: grid;
  grid-template-columns: 1fr 1.78fr;
  gap: clamp(1rem, 2.5vw, 2rem);
  align-items: start;
}
.team-shot { margin: 0; }
.team-shot img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--r-lg);
}

/* Tablet and phone: stack full width, natural aspect, no cropping */
@media (max-width: 63.99em) {
  .team-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
}
