/* =========================================================
   RK — Coffee Page (hero + alternating spec cards)
   ========================================================= */

/* Gallery CTA strip */
.coffee-gallery-cta {
  text-align: center;
  padding: 2rem 1.5rem;
  background: var(--beige, #f4efe7);
}
.coffee-gallery-cta--bottom {
  padding: 2.5rem 1.5rem 3rem;
}
.coffee-gallery-cta__text {
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  color: var(--muted, #545a52);
  margin: 0 0 1rem;
}
.coffee-gallery-cta__btn {
  display: inline-block;
  padding: 0.75rem 2rem;
  background: var(--accent, #385a3a);
  color: #fff;
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-decoration: none;
  border-radius: 6px;
  transition: background 0.2s ease, transform 0.15s ease;
}
.coffee-gallery-cta__btn:hover {
  background: var(--deep, #243a2a);
  transform: translateY(-1px);
}

/* Slim hero banner at fixed height (desktop 450px, mobile 320px) */
.coffee-hero{
  position: relative;
  height: 450px;
  min-height: 300px;
  display: grid;
  place-items: center;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(28,22,18,.45), rgba(22,16,12,.55)),
    var(--hero-url, url('https://raw.githubusercontent.com/rknaturalexports-ai/RK-Website-Images/refs/heads/main/Coffee%20Banner%20Image.jpeg'))
    center / cover no-repeat;
}
@media (max-width: 640px){
  .coffee-hero{ height: 320px; }
}
.coffee-hero__overlay{
  position:absolute; inset:0;
  background: radial-gradient(1200px 400px at 50% 80%, rgba(0,0,0,.25), transparent 70%);
  pointer-events:none;
}
.coffee-hero__inner{
  position: relative;
  text-align: center;
  color: #fff;
  padding: 84px 20px 48px;
}
.coffee-hero h1{
  margin: 0 0 6px;
  font-family: "Playfair Display", serif;
  font-size: clamp(2.2rem, 4.2vw, 3rem);
  font-weight: 700;
  letter-spacing: .02em;
  color: #fff !important;             /* override any inherited green */
  text-shadow: 0 3px 10px rgba(0,0,0,.55), 0 1px 2px rgba(0,0,0,.35);
}
.coffee-hero p{
  margin: 0 0 14px;
  font-family: "Inter", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  font-size: clamp(.98rem, 1.8vw, 1.05rem);
  color: #f7f7f7;
  opacity: .98;
  text-shadow: 0 2px 6px rgba(0,0,0,.5);
}

/* ===== Coffee Intro ===== */
.coffee-intro {
  background: #f8f4ef;
  border-bottom: 1px solid #e8ddd4;
  padding: 22px 0;
}
.coffee-intro__text {
  font-family: "Inter", system-ui, sans-serif;
  font-size: .97rem;
  color: #4a4e48;
  line-height: 1.7;
  margin: 0;
  max-width: 860px;
}

/* ===== Filter Bar ===== */
.coffee-filter-bar {
  background: #fff;
  border-bottom: 2px solid #d0e6d2;
  padding: 16px 0;
  position: sticky;
  top: 0;
  z-index: 90;
  box-shadow: 0 3px 10px rgba(0,0,0,.07);
}
.coffee-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.coffee-filter {
  padding: 9px 28px;
  border-radius: 24px;
  border: 2px solid #9dbfa0;
  background: #fff;
  color: #2d5230;
  font-family: "Inter", system-ui, sans-serif;
  font-size: .9rem;
  font-weight: 600;
  cursor: pointer;
  transition: background .18s, color .18s, border-color .18s, box-shadow .18s;
  line-height: 1;
  letter-spacing: .01em;
}
.coffee-filter:hover {
  background: #eaf3eb;
  border-color: #385a3a;
  color: #243a2a;
}
.coffee-filter.active {
  background: #385a3a;
  border-color: #385a3a;
  color: #fff;
  box-shadow: 0 3px 10px rgba(56, 90, 58, .28);
}
@media (max-width: 480px) {
  .coffee-filters { gap: 8px; }
  .coffee-filter  { padding: 8px 18px; font-size: .84rem; }
}

/* ===== Card visibility on filter ===== */
.spec {
  transition: opacity .2s ease;
}
.spec--hidden {
  display: none;
}

/* Content wrap + fixed frame width */
.coffee-wrap { padding: 28px 0 56px; background: #fff7f4; }
.frame { width: 1210px; max-width: 100%; padding: 20px; margin: 0 auto; box-sizing: border-box; }

/* ===== Spec Card ===== */
.spec{
  background: #fff;
  border: 1px solid #f0e2d9;
  border-radius: 14px;
  box-shadow: 0 12px 26px rgba(0,0,0,.06);
  padding: 18px;
  margin: 0 0 26px;
}

/* Title centered like your reference */
.spec__title{
  text-align: center;
  letter-spacing: .06em;
  color: #6f4a31;
  font-family: "Playfair Display", serif;
  font-size: clamp(1.2rem, 2.4vw, 1.6rem);
  margin: 6px 0 14px;
}

/* Alternating grid: equal columns on desktop */
.spec__grid{
  display: grid;
  grid-template-columns: 1fr 1fr;     /* equal width */
  grid-template-areas: "media body";
  gap: 24px;
  align-items: start;
}
.spec__media{ grid-area: media; }
.spec__body{  grid-area: body;  }

/* flip layout for even specs (still equal widths) */
.spec:nth-of-type(even) .spec__grid{
  grid-template-columns: 1fr 1fr;
  grid-template-areas: "body media";
}

/* Media box — uniform look */
.spec__media{
  border: 1px solid #eadfce;
  border-radius: 12px;
  overflow: hidden;
  background: #faf6f1;
}
.spec__media img{
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 4 / 3;                /* desktop: consistent height */
  object-fit: cover;
}

/* Processing type label */
.spec__process-label {
  text-align: center;
  font-family: "Inter", system-ui, sans-serif;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #7a5742;
  background: #fdf4ec;
  border: 1px solid #e8cfa0;
  border-radius: 20px;
  display: inline-block;
  padding: 3px 14px;
  margin: 0 auto 16px;
  left: 50%;
  position: relative;
  transform: translateX(-50%);
}

/* Body text */
.spec__intro { margin: 0 0 8px; }

/* Common Use line */
.spec__common-use {
  font-family: "Inter", system-ui, sans-serif;
  font-size: .875rem;
  color: #545a52;
  margin: 0 0 10px;
  padding: 7px 10px;
  background: #f7f7f4;
  border-left: 3px solid #9dbfa0;
  border-radius: 0 4px 4px 0;
}

/* Info badges */
.spec__info-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 0 14px;
}
.spec__info-badge {
  font-family: "Inter", system-ui, sans-serif;
  font-size: .75rem;
  font-weight: 600;
  color: #2d5230;
  background: #eaf3eb;
  border: 1px solid #b8d9bb;
  border-radius: 12px;
  padding: 3px 10px;
  letter-spacing: .02em;
}

/* Subheads */
.spec__h4{
  margin: 14px 0 8px;
  color: #6f4a31;
  font-weight: 700;
  font-family: "Inter", system-ui, sans-serif;
}

/* Tables (Barque-like) */
.spec-table{
  width: 100%;
  border-collapse: collapse;
  font-size: .95rem;
  border: 1px solid #ecdccc;
  border-radius: 10px;
  overflow: hidden;
  margin: 0 0 12px;
}
.spec-table thead th{
  text-align: left;
  background: #7a5742;
  color: #fff;
  padding: 10px 12px;
  font-weight: 600;
}
.spec-table tbody td{
  padding: 9px 12px;
  border-top: 1px solid #efdfcf;
  background: #fff;
}
.spec-table tbody tr:nth-child(odd) td{ background: #fffaf6; }

/* ===== Mobile-only fixes ===== */
@media (max-width: 980px){
  /* Stack layout, neutralize alternation */
  .spec__grid,
  .spec:nth-of-type(even) .spec__grid{
    grid-template-columns: 1fr;
    grid-template-areas:
      "media"
      "body";
  }

  /* Center cards */
  .spec{
    max-width: 640px;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
  }

  /* Media box */
  .spec__media{
    display: block;
    width: 100%;
    overflow: hidden;
    border-radius: 12px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
  }
  .spec:nth-of-type(even) .spec__media{
    margin-left: auto !important;
    margin-right: auto !important;
  }

  /* Image: 4:3 crop filling card width */
  .spec__media img{
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    object-position: 50% 50%;
    border-radius: 14px;
  }
}

/* ===== Samples CTA Section ===== */
.coffee-samples-cta {
  background: linear-gradient(135deg, #243a2a 0%, #385a3a 100%);
  padding: 48px 0 52px;
  text-align: center;
}
.coffee-samples-cta__heading {
  font-family: "Playfair Display", serif;
  font-size: clamp(1.3rem, 2.6vw, 1.75rem);
  font-weight: 700;
  color: #fff;
  margin: 0 0 12px;
}
.coffee-samples-cta__text {
  font-family: "Inter", system-ui, sans-serif;
  font-size: .97rem;
  color: rgba(255,255,255,.82);
  margin: 0 auto 28px;
  max-width: 580px;
  line-height: 1.65;
}
.coffee-samples-cta__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
}
.coffee-samples-btn {
  display: inline-block;
  padding: 11px 28px;
  border-radius: 6px;
  font-family: "Inter", system-ui, sans-serif;
  font-size: .95rem;
  font-weight: 600;
  text-decoration: none;
  transition: background .18s, color .18s, border-color .18s, transform .12s;
}
.coffee-samples-btn--primary {
  background: #fff;
  color: #243a2a;
  border: 2px solid #fff;
}
.coffee-samples-btn--primary:hover {
  background: #eaf3eb;
  border-color: #eaf3eb;
  transform: translateY(-1px);
}
.coffee-samples-btn--outline {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255,255,255,.55);
}
.coffee-samples-btn--outline:hover {
  border-color: #fff;
  background: rgba(255,255,255,.08);
  transform: translateY(-1px);
}
@media (max-width: 480px) {
  .coffee-samples-cta__actions { flex-direction: column; align-items: center; }
  .coffee-samples-btn { width: 100%; max-width: 280px; text-align: center; }
}
