* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  width: 100%;
  min-height: 100%;
  background: #030403;
  overflow-x: hidden;
  font-family: system-ui, -apple-system, "Segoe UI", Tahoma, Arial, sans-serif;
}

body {
  /* height managed by scroll-space content */
}

.hero-stage {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  background: #030403;
  z-index: 1;
}

#hero-canvas {
  position: absolute;
  inset: 0;
  width: 100vw;
  height: 100vh;
  display: block;
  background: #030403;
}

.story-block {
  position: absolute;
  right: 7vw;
  top: 18vh;
  bottom: auto;
  max-width: 760px;
  opacity: 0;
  transform: translateY(44px);
  transition: opacity 1000ms cubic-bezier(.16,1,.3,1), transform 1000ms cubic-bezier(.16,1,.3,1);
  color: #fff8e8;
  text-shadow: 0 6px 24px rgba(0,0,0,.75), 0 18px 70px rgba(0,0,0,.65);
  z-index: 5;
}

.story-block.active {
  opacity: 1;
  transform: translateY(0);
}

.story-block h1 {
  font-size: clamp(42px, 7vw, 92px);
  font-weight: 800;
  line-height: 1.12;
}

.story-block p {
  margin-top: 14px;
  font-size: clamp(22px, 3vw, 42px);
  font-weight: 500;
  color: #f3d28a;
}

.farms-intro {
  right: 50%;
  top: 50%;
  width: min(1100px, 90vw);
  max-width: none;
  text-align: center;
  transform: translate(50%, calc(-50% + 44px)) scale(0.98);
}

.farms-intro.active {
  transform: translate(50%, -50%) scale(1);
}

.farms-intro h1 {
  color: #fff8e8;
  font-size: clamp(54px, 7.2vw, 128px);
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: 0;
  white-space: nowrap;
  text-shadow:
    0 8px 18px rgba(0, 0, 0, 0.54),
    0 22px 58px rgba(0, 0, 0, 0.42);
}

.farms-intro p {
  margin-top: 18px;
  color: rgba(255, 248, 232, 0.82);
  font-size: clamp(18px, 2.2vw, 32px);
  font-weight: 650;
  text-shadow: 0 8px 22px rgba(0, 0, 0, 0.5);
}

/* --- PREMIUM PILL NAVBAR --- */
.premium-navbar {
  position: fixed;
  top: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 12px;
  background: rgba(20, 20, 20, 0.15);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 100px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2), inset 0 1px 1px rgba(255, 255, 255, 0.15);
  transition: all 0.3s ease;
}

.premium-navbar:hover {
  background: rgba(25, 25, 25, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.premium-navbar .nav-item {
  text-decoration: none;
  color: rgba(255, 255, 255, 0.8);
  font-size: 15px;
  font-weight: 500;
  padding: 8px 24px;
  border-radius: 100px;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.premium-navbar .nav-item:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
}

.premium-navbar .nav-item.active {
  color: #000;
  background: #d8b76a;
  font-weight: 600;
  box-shadow: 0 2px 10px rgba(216, 183, 106, 0.3);
}

@media (max-width: 600px) {
  .premium-navbar {
    top: 20px;
    padding: 6px 8px;
    gap: 4px;
    width: 94vw;
    justify-content: center;
  }
  .premium-navbar .nav-item {
    padding: 8px 14px;
    font-size: 13px;
  }
}

/* --- LOADER --- */
#loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: #030403;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: opacity 0.5s ease;
}

.loader-ring {
  width: 50px;
  height: 50px;
  border: 4px solid rgba(255,255,255,.1);
  border-left-color: #f3d28a;
  border-radius: 50%;
  animation: loader-spin 1s linear infinite;
}

@keyframes loader-spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* --- FARMS LIST --- */
.farms-list-container {
  position: relative;
  z-index: 5;
  display: flex;
  flex-direction: column;
  gap: 24px;
  width: 90vw;
  max-width: 550px;
  margin-top: 100vh; /* Starts after the initial scroll */
  margin-bottom: 20vh;
  margin-right: 5vw; /* Positioned on the right side */
}

.farm-card-horizontal {
  display: flex;
  flex-direction: row-reverse; /* Image on the left in RTL */
  align-items: stretch;
  background: rgba(15, 20, 15, 0.6);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(212, 175, 55, 0.2);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.farm-card-horizontal:hover {
  transform: translateY(-5px);
  border-color: rgba(212, 175, 55, 0.5);
}

.farm-image-slider {
  width: 40%;
  position: relative;
  overflow: hidden;
  border-right: 1px solid rgba(255, 255, 255, 0.05);
  min-height: 140px;
  background: rgba(0, 0, 0, 0.3);
}

.slider-track {
  display: flex;
  transition: transform 0.5s ease-in-out;
  height: 100%;
}

.slide-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  flex-shrink: 0;
}

.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.4);
  color: #fff;
  border: none;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  cursor: pointer;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s;
  font-size: 14px;
}

.slider-btn:hover {
  background: rgba(212, 175, 55, 0.8);
}

.prev-btn { right: 10px; }
.next-btn { left: 10px; }

.slider-dots {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  z-index: 2;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  transition: background 0.3s;
}

.dot.active {
  background: #d4af37;
}

.farm-info-container {
  width: 60%;
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
}

.farm-name {
  color: #d4af37;
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 4px;
}

.farm-text {
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(16px, 1.6vw, 20px);
  line-height: 1.5;
}

.farm-text strong {
  color: #fff;
  font-weight: 700;
  margin-left: 4px;
}

/* Mobile adjustments */
@media (max-width: 768px) {
  .farms-list-container {
    margin-right: auto;
    margin-left: auto;
    width: 92vw;
  }
  .farm-card-horizontal {
    flex-direction: column-reverse; /* Image on top on mobile */
  }
  .farm-image-slider {
    width: 100%;
    min-height: 180px;
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  }
  .farm-info-container {
    width: 100%;
    padding: 16px;
  }
}

/* --- REDESIGNED FARMS CASE STUDIES --- */
.farms-section {
  position: relative;
  z-index: 5;
  width: min(900px, calc(100% - 48px));
  margin: 0 auto;
  padding-top: 138vh;
  padding-bottom: 60px;
}

.farms-section-heading {
  max-width: 720px;
  margin: 0 auto 42px;
  text-align: center;
  color: #fff8e8;
  text-shadow: 0 4px 24px rgba(0, 0, 0, 0.65);
}

.section-eyebrow,
.farm-label {
  display: inline-flex;
  align-items: center;
  color: #d8b76a;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.section-eyebrow::before,
.section-eyebrow::after {
  content: "";
  width: 26px;
  height: 1px;
  margin: 0 10px;
  background: rgba(216, 183, 106, 0.55);
}

.farms-section-heading h2 {
  margin-top: 9px;
  color: #fff8e8;
  font-size: clamp(38px, 5vw, 64px);
  font-weight: 750;
  line-height: 1.08;
}

.farms-section-heading p {
  margin-top: 12px;
  color: rgba(255, 248, 232, 0.78);
  font-size: clamp(16px, 2vw, 20px);
  line-height: 1.7;
}

.farms-list-container {
  position: relative;
  z-index: 5;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.farms-section-heading {
  max-width: 720px;
  margin: 0 auto 42px;
  text-align: center;
  color: #fff8e8;
  text-shadow: 0 4px 24px rgba(0, 0, 0, 0.65);
}

.section-eyebrow,
.farm-label {
  display: inline-flex;
  align-items: center;
  color: #d8b76a;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.section-eyebrow::before,
.section-eyebrow::after {
  content: "";
  width: 26px;
  height: 1px;
  margin: 0 10px;
  background: rgba(216, 183, 106, 0.55);
}

.farms-section-heading h2 {
  margin-top: 9px;
  color: #fff8e8;
  font-size: clamp(38px, 5vw, 64px);
  font-weight: 750;
  line-height: 1.08;
}

.farms-section-heading p {
  margin-top: 12px;
  color: rgba(255, 248, 232, 0.78);
  font-size: clamp(16px, 2vw, 20px);
  line-height: 1.7;
}

.farms-list-container {
  position: relative;
  z-index: 5;
  display: flex;
  flex-direction: column;
  gap: 24px;
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
}

.farm-card-horizontal {
  position: relative;
  display: flex;
  flex-direction: row-reverse; /* Image on left in RTL */
  min-width: 0;
  overflow: hidden;
  background: #23251e;
  border-radius: 20px;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.4);
  transition: transform 400ms cubic-bezier(.22,1,.36,1), box-shadow 400ms ease;
}

.farm-card-horizontal:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.6);
}

.farm-image-slider {
  position: relative;
  width: 45%;
  flex: 0 0 45%;
  min-height: 260px;
  overflow: hidden;
  background: #10140d;
}

.slider-track {
  display: flex;
  height: 100%;
  transition: transform 650ms cubic-bezier(.22, 1, .36, 1);
  will-change: transform;
}

.slide-img {
  width: 100%;
  height: 100%;
  flex: 0 0 100%;
  object-fit: cover;
  object-position: center;
}

.slider-gradient-overlay {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background: linear-gradient(to right, transparent 15%, #23251e 98%);
  pointer-events: none;
  z-index: 2;
}

.card-badge {
  position: absolute;
  top: 15px;
  left: 15px;
  background: rgba(114, 140, 70, 0.35);
  border: 1px solid rgba(114, 140, 70, 0.6);
  color: #c9d8a3;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 6px;
  backdrop-filter: blur(4px);
}

.card-badge i {
  color: #c9d8a3;
}

.slider-btn, .slider-dots {
  display: none; /* Hide slider controls for cleaner look */
}

.farm-info-container {
  display: flex;
  flex: 1;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 30px;
  gap: 16px;
  text-align: center;
  z-index: 3;
}

.farm-name {
  margin: 0;
  color: #ffffff;
  font-size: 36px;
  font-weight: 700;
}

.farm-location {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  color: rgba(255, 255, 255, 0.7);
  font-size: 18px;
}

.farm-location i {
  color: #90a66d;
}

.farm-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 5px;
  margin-bottom: 5px;
}

.tag {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 16px;
  color: #e8e8e8;
  background: transparent;
  border: 1px solid rgba(114, 140, 70, 0.5);
  border-radius: 100px;
  font-size: 14px;
}

.tag i {
  color: #728c46;
}

.farm-subtitle {
  color: #ffffff;
  font-size: 20px;
  margin: 0 0 10px 0;
}

.btn-details {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  color: #d8b76a;
  background: transparent;
  border: 1px solid rgba(216, 183, 106, 0.4);
  border-radius: 20px;
  font-size: 14px;
  text-decoration: none;
  transition: background 0.3s ease;
}

.btn-details:hover {
  background: rgba(216, 183, 106, 0.1);
}

.btn-details i {
  font-size: 12px;
}

.reveal-card {
  opacity: 0;
  transform: translateY(28px);
}

.reveal-card.is-visible {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 800ms cubic-bezier(.16, 1, .3, 1), transform 800ms cubic-bezier(.16, 1, .3, 1), border-color 500ms ease, box-shadow 500ms ease;
}

.farm-card-horizontal.is-visible:hover {
  transform: translateY(-7px);
}

@media (max-width: 768px) {
  .farms-section {
    width: min(100% - 28px, 560px);
    padding-top: 130vh;
  }

  .farm-card-horizontal {
    min-height: auto;
    flex: none;
    mask-image: linear-gradient(to bottom, black 50%, transparent 100%);
    -webkit-mask-image: linear-gradient(to bottom, black 50%, transparent 100%);
  }
  
  .slider-gradient-overlay {
    display: none;
  }
  
  .farm-info-container {
    width: 100%;
    padding: 0 24px 24px;
    margin-top: -85px;
    align-items: center;
    text-align: center;
    gap: 8px;
    z-index: 5;
    position: relative;
    background: transparent;
  }
  
  .farm-name {
    font-size: 22px;
    margin-bottom: 2px;
  }

  .farm-location {
    font-size: 13px;
    margin-bottom: 8px;
  }

  .farm-tags {
    justify-content: center;
    gap: 6px;
    margin-bottom: 8px;
    flex-wrap: nowrap;
    overflow-x: auto;
    width: 100%;
    padding-bottom: 4px;
  }
  
  .farm-tags::-webkit-scrollbar {
    display: none;
  }

  .tag {
    padding: 4px 10px;
    font-size: 11px;
    white-space: nowrap;
  }

  .farm-subtitle {
    font-size: 13px;
    line-height: 1.4;
    margin-bottom: 12px;
    max-width: 95%;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  
  .btn-details {
    align-self: center;
    padding: 8px 24px;
    font-size: 13px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .reveal-card,
  .reveal-card.is-visible {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .slider-track,
  .farm-card-horizontal {
    transition: none;
  }
}

/* --- FULL-WIDTH FARMS LAYOUT + PARTNERS --- */
.farms-section {
  width: min(1600px, calc(100% - 64px));
}

.farms-section .farms-section-heading {
  margin-bottom: 46px;
}

.farms-section .farms-section-heading h2 {
  margin-top: 0;
  font-size: clamp(56px, 6vw, 92px);
}

/* End of card specific overrides */

.partners-section {
  width: 100%;
  margin-top: 96px;
  overflow: hidden;
}

.partners-section h2 {
  margin-bottom: 30px;
  color: #fff;
  font-size: clamp(38px, 5vw, 64px);
  font-weight: 800;
  text-align: center;
  text-shadow: 0 4px 15px rgba(0, 0, 0, 0.8), 0 2px 5px rgba(0, 0, 0, 1);
}

.partners-marquee {
  position: relative;
  width: 100%;
  margin-inline: auto;
  overflow: hidden;
  direction: ltr;
  padding: 4px 0 16px;
  mask-image: linear-gradient(to right, transparent 0, #000 250px, #000 calc(100% - 250px), transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 250px, #000 calc(100% - 250px), transparent 100%);
}

.partners-track {
  display: flex;
  align-items: center;
  gap: 12px;
  width: max-content;
  will-change: transform;
  animation: rayaan-partners-marquee 34s linear infinite;
}

.partners-marquee:hover .partners-track,
.partners-marquee:focus-within .partners-track {
  animation-play-state: paused;
}

.partners-group {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 12px;
}

.partner-card {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 240px;
  height: 130px;
  padding: 8px;
  border: 1.5px solid rgba(216, 183, 106, 0.4);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  overflow: hidden;
}

.partner-card img {
  display: block;
  max-width: 100%;
  max-height: 100%;
  width: 100%;
  height: 100%;
  padding: 0;
  object-fit: contain;
  mix-blend-mode: multiply;
  box-sizing: border-box;
  transform: scale(1.15);
}

@keyframes rayaan-partners-marquee {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(calc(-50% - 9px), 0, 0); }
}

@media (max-width: 768px) {
  .farms-intro {
    width: min(92vw, 560px);
  }

  .farms-intro h1 {
    font-size: clamp(48px, 15vw, 82px);
    white-space: normal;
  }

  .farms-intro p {
    font-size: clamp(16px, 5vw, 24px);
  }

  .farms-section {
    width: min(100% - 28px, 560px);
  }

  .farms-section .farms-section-heading {
    margin-bottom: 28px;
  }

  .farms-section .farms-section-heading h2 {
    font-size: clamp(40px, 11vw, 58px);
  }

  /* Redundant card styles removed */

  .partners-section {
    margin-top: 68px;
  }

  .partners-section h2 {
    margin-bottom: 22px;
  }

  .partners-marquee {
    width: 100%;
    mask-image: linear-gradient(to right, transparent 0, #000 150px, #000 calc(100% - 150px), transparent 100%);
    -webkit-mask-image: linear-gradient(to right, transparent 0, #000 150px, #000 calc(100% - 150px), transparent 100%);
  }

  .partners-track,
  .partners-group {
    gap: 8px;
  }

  .partners-track {
    animation-duration: 28s;
  }

  .partner-card {
    width: 150px;
    height: 90px;
    padding: 6px;
    border: 1px solid rgba(216, 183, 106, 0.4);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    overflow: hidden;
  }

  .partner-card img {
    padding: 0;
    border-radius: 0;
    box-shadow: none;
    background: transparent;
    transform: scale(1.15);
  }

  @keyframes rayaan-partners-marquee {
    from { transform: translate3d(0, 0, 0); }
    to { transform: translate3d(calc(-50% - 6px), 0, 0); }
  }
}

@media (prefers-reduced-motion: reduce) {
  .partners-track {
    animation: none;
    will-change: auto;
  }
}



/* =========================================
   PREMIUM SITE FOOTER (REDESIGN)
   ========================================= */
.site-footer {
  position: relative;
  background-color: transparent;
  background-image: 
    linear-gradient(180deg, rgba(8, 12, 9, 0) 0%, rgba(8, 12, 9, 0.6) 20%, rgba(8, 12, 9, 0.85) 100%),
    url('../assets/images/footer_bg.png');
  background-size: cover;
  background-position: center bottom;
  background-repeat: no-repeat;
  color: #fff;
  padding: 180px 5% 40px; /* Increased padding-top to push content below the transparent area */
  margin-top: -80px; /* Overlap with background for blending */
  z-index: 10;
  direction: rtl;
  overflow: hidden;
  border-top: none;
  
  /* Smooth transparency entering into each other */
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, rgba(0,0,0,0.2) 10%, rgba(0,0,0,0.6) 20%, black 30%);
  mask-image: linear-gradient(to bottom, transparent 0%, rgba(0,0,0,0.2) 10%, rgba(0,0,0,0.6) 20%, black 30%);
}

/* Subtle particle/star decoration */
.site-footer::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(216, 183, 106, 0.4) 1px, transparent 1px);
  background-size: 100px 100px;
  background-position: 0 0;
  opacity: 0.15; /* Very subtle stars */
  pointer-events: none;
  z-index: 1;
}

.footer-shell {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  z-index: 2;
}

/* Depth gradients & glows */
.footer-glow {
  position: absolute;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(216, 183, 106, 0.04) 0%, rgba(216, 183, 106, 0) 70%);
  border-radius: 50%;
  pointer-events: none;
  z-index: -1;
  filter: blur(60px);
}

.footer-glow-right {
  top: -100px;
  right: -200px;
}

.footer-glow-left {
  bottom: 100px;
  left: -200px;
  background: radial-gradient(circle, rgba(65, 83, 59, 0.15) 0%, rgba(65, 83, 59, 0) 70%);
}

.footer-main {
  display: grid;
  grid-template-columns: 1fr;
  gap: 60px;
  margin-bottom: 60px;
}

@media (min-width: 992px) {
  .footer-main {
    grid-template-columns: 1fr 1fr 1fr; /* 3 Equal columns */
    gap: 40px;
    align-items: flex-start;
  }
}

/* Brand Section (RIGHT) */
.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: center; /* Centered in its column */
  text-align: center;
  margin-top: 25px;
}

.footer-logo-img {
  max-width: 250px;
  height: auto;
  margin-bottom: 24px;
  filter: drop-shadow(0 4px 20px rgba(0,0,0,0.6));
}

.footer-brand h2 {
  color: #d8b76a;
  font-size: 20px;
  font-weight: 700;
  margin: 0 0 16px 0;
  letter-spacing: 0.5px;
}

.footer-brand p {
  color: rgba(255, 255, 255, 0.65);
  font-size: 14px;
  line-height: 1.8;
  margin: 0;
  max-width: 280px;
}

/* Titles */
.footer-contact h3,
.footer-action h3 {
  color: #d8b76a;
  font-size: 18px;
  font-weight: 600;
  margin: 0 0 32px 0;
  position: relative;
  padding-bottom: 12px;
  text-align: center;
}

.footer-contact h3::after,
.footer-action h3::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 2px;
  background-color: #d8b76a;
  border-radius: 2px;
}

/* Contact Info (CENTER) */
.footer-contact {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.footer-contact-card {
  display: flex;
  align-items: center;
  gap: 16px;
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  font-size: 14px;
  padding-bottom: 16px;
  margin-bottom: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05); /* Thin separator */
  transition: all 0.3s ease;
  width: 240px;
  direction: ltr; /* Icon on left, text on right */
  justify-content: flex-start;
}

.footer-contact-card:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.footer-contact-card:hover {
  color: #fff;
  transform: translateX(4px); /* Because it's LTR, move right */
}

.footer-contact-card i {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(216, 183, 106, 0.3);
  border-radius: 10px;
  color: #d8b76a;
  font-size: 14px;
  background: transparent;
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.footer-contact-card:hover i {
  background: rgba(216, 183, 106, 0.1);
  border-color: rgba(216, 183, 106, 0.6);
}

.footer-location {
  cursor: default;
  direction: rtl; /* Switch location text back to RTL for natural reading */
}
.footer-location i {
  order: -1;
  margin-left: 16px;
  margin-right: 0;
}
.footer-location span {
  text-align: right;
  flex: 1;
}
.footer-location:hover {
  color: rgba(255, 255, 255, 0.85);
  transform: none;
}
.footer-location:hover i {
  background: transparent;
  border-color: rgba(216, 183, 106, 0.3);
}

/* Action Section (LEFT) */
.footer-action {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.footer-social-icons {
  display: flex;
  gap: 16px;
  margin-bottom: 32px;
}

.footer-social-icons a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: transparent;
  border: 1px solid rgba(216, 183, 106, 0.4);
  color: #d8b76a;
  font-size: 16px;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.footer-social-icons a:hover {
  background: #d8b76a;
  color: #080c09;
  transform: translateY(-3px);
  box-shadow: 0 6px 15px rgba(216, 183, 106, 0.2);
}

/* CTA Card */
.footer-cta-card {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.03) 0%, rgba(255, 255, 255, 0.01) 100%);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 16px;
  padding: 28px 32px;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease, border-color 0.3s ease;
  text-align: center;
  width: 100%;
  max-width: 300px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.footer-cta-card:hover {
  transform: translateY(-2px);
  border-color: rgba(216, 183, 106, 0.2);
}

/* Background leaf hint inside card */
.footer-cta-card::after {
  content: '';
  position: absolute;
  top: -20px;
  right: -20px;
  width: 120px;
  height: 120px;
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><path fill="%2341533b" opacity="0.2" d="M10,90 C30,30 80,10 90,10 C80,50 40,80 10,90 Z"/></svg>');
  background-size: cover;
  pointer-events: none;
  z-index: -1;
}

.footer-cta-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: rgba(216, 183, 106, 0.1);
  color: #d8b76a;
  border-radius: 12px;
  font-size: 18px;
  margin-bottom: 16px;
}

.footer-cta-card h3 {
  color: #d8b76a; /* Gold title inside card */
  font-size: 18px;
  font-weight: 600;
  margin: 0 0 12px 0;
  padding: 0;
}
.footer-cta-card h3::after {
  display: none; /* No underline here */
}

.footer-cta-card p {
  color: rgba(255, 255, 255, 0.6);
  font-size: 13px;
  line-height: 1.6;
  margin: 0 0 24px 0;
}

.footer-cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: #d8b76a;
  color: #080c09;
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  padding: 14px 24px;
  border-radius: 8px;
  transition: all 0.3s ease;
  width: 100%;
}

.footer-cta-button i {
  font-size: 14px;
  transition: transform 0.3s ease;
}

.footer-cta-button:hover {
  background: #e2c682;
  box-shadow: 0 4px 15px rgba(216, 183, 106, 0.3);
}

.footer-cta-button:hover i {
  transform: translateX(-4px); /* Moves left in RTL */
}

/* Bottom Bar */
.footer-bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-top: 40px;
  margin-top: 60px;
  position: relative;
}

.footer-bottom::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: radial-gradient(circle, rgba(216, 183, 106, 0.3) 0%, transparent 80%);
}

.footer-palm-mark {
  font-size: 24px;
  margin-bottom: 12px;
  color: #d8b76a;
  text-shadow: 0 0 15px rgba(216, 183, 106, 0.4);
}

.footer-bottom p {
  color: rgba(255, 255, 255, 0.4);
  font-size: 13px;
  margin: 0;
}

.footer-bottom p strong {
  color: rgba(255, 255, 255, 0.7);
  font-weight: 500;
}

/* Responsive */
@media (max-width: 991px) {
  .site-footer {
    padding: 100px 5% 30px;
    margin-top: -40px;
  }
  
  .footer-main {
    grid-template-columns: 1fr 1fr;
    gap: 30px 15px;
  }

  .footer-brand {
    grid-column: 1 / -1;
    margin-top: 10px;
  }
}

@media (max-width: 768px) {
  .footer-contact h3, 
  .footer-action h3 {
    font-size: 16px;
    margin-bottom: 20px;
  }
  
  .footer-contact-card {
    width: 100%;
    font-size: 11px;
    gap: 8px;
    padding-bottom: 12px;
    margin-bottom: 12px;
  }
  
  .footer-contact-card i {
    width: 28px;
    height: 28px;
    font-size: 12px;
  }
  
  .footer-social-icons {
    gap: 8px;
    margin-bottom: 20px;
  }
  
  .footer-social-icons a {
    width: 34px;
    height: 34px;
    font-size: 14px;
  }
  
  .footer-cta-card {
    padding: 16px 12px;
    max-width: 100%;
  }
  
  .footer-cta-icon {
    width: 32px;
    height: 32px;
    font-size: 14px;
    margin-bottom: 8px;
  }
  
  .footer-cta-card h3 {
    font-size: 14px;
    margin-bottom: 6px;
  }
  
  .footer-cta-card p {
    font-size: 10px;
    line-height: 1.4;
    margin-bottom: 12px;
  }
  
  .footer-cta-button {
    font-size: 12px;
    padding: 8px 12px;
    gap: 6px;
  }
  
  .footer-cta-button i {
    font-size: 12px;
  }
}

/* --- Premium luxury farm card v17 --- */
.farms-section {
  width: min(100%, calc(100% - 32px));
}

.farms-list-container {
  width: 100%;
  max-width: 900px;
  margin-inline: auto;
  gap: 34px;
}

.farm-card-horizontal {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: 45% 55%;
  direction: ltr;
  width: min(900px, 100%);
  min-height: 420px;
  height: 420px;
  margin-inline: auto;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 28px;
  background:
    radial-gradient(circle at 78% 14%, rgba(200, 165, 91, 0.15), transparent 28%),
    radial-gradient(circle at 56% 88%, rgba(141, 170, 86, 0.12), transparent 30%),
    #252B22;
  box-shadow:
    0 28px 80px rgba(0, 0, 0, 0.34),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  transition: transform 300ms ease, box-shadow 300ms ease, border-color 300ms ease;
}

.farm-card-horizontal::before {
  content: "🌴";
  position: absolute;
  top: 28px;
  right: 40px;
  z-index: -1;
  color: rgba(255, 255, 255, 0.035);
  font-size: 260px;
  line-height: 1;
  transform: rotate(-12deg);
  pointer-events: none;
}

.farm-card-horizontal::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at 72% 26%, rgba(200, 165, 91, 0.42) 0 1px, transparent 2px),
    radial-gradient(circle at 88% 66%, rgba(200, 165, 91, 0.28) 0 1px, transparent 2px),
    radial-gradient(circle at 54% 78%, rgba(200, 165, 91, 0.22) 0 1px, transparent 2px),
    repeating-radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.018) 0 1px, transparent 1px 5px);
  opacity: 0.55;
  pointer-events: none;
}

.farm-card-horizontal:hover,
.farm-card-horizontal.is-visible:hover {
  transform: translateY(-6px);
  border-color: rgba(200, 165, 91, 0.34);
  box-shadow:
    0 34px 90px rgba(0, 0, 0, 0.42),
    0 0 38px rgba(200, 165, 91, 0.10),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.farm-image-slider {
  grid-column: 1;
  width: auto;
  min-width: 0;
  height: 100%;
  min-height: 0;
  flex: none;
  direction: rtl;
  border: 0;
  overflow: hidden;
  background: #1F241C;
}

.slider-track {
  height: 100%;
  transition: transform 650ms cubic-bezier(.22, 1, .36, 1);
}

.slide-img {
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 300ms ease, filter 300ms ease;
}

.farm-card-horizontal:hover .slide-img {
  transform: scale(1.05);
  filter: saturate(1.08) contrast(1.04);
}

.slider-gradient-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: block;
  background:
    linear-gradient(90deg, rgba(31, 36, 28, 0.02) 0%, rgba(31, 36, 28, 0.28) 48%, rgba(31, 36, 28, 0.90) 100%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.06), rgba(0, 0, 0, 0.34));
  pointer-events: none;
}

.card-badge {
  position: absolute;
  top: 22px;
  left: 22px;
  right: auto;
  z-index: 5;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 9px 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  background: rgba(141, 170, 86, 0.28);
  color: #FFFFFF;
  font-size: 14px;
  font-weight: 800;
  line-height: 1;
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.farm-image-facts {
  position: absolute;
  right: 22px;
  bottom: 22px;
  left: 22px;
  z-index: 5;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 22px;
  background: rgba(31, 36, 28, 0.58);
  box-shadow:
    0 18px 42px rgba(0, 0, 0, 0.32),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.farm-image-facts span {
  display: grid;
  place-items: center;
  gap: 6px;
  min-height: 74px;
  padding: 10px 8px;
  color: #FFFFFF;
  font-size: 13px;
  font-weight: 800;
  text-align: center;
  background: rgba(255, 255, 255, 0.035);
}

.farm-image-facts i {
  color: #C8A55B;
  font-size: 17px;
}

.slider-btn,
.slider-dots {
  display: none;
}

.farm-info-container {
  grid-column: 2;
  position: relative;
  z-index: 2;
  direction: rtl;
  width: auto;
  min-width: 0;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 13px;
  padding: 36px 42px 34px;
  text-align: right;
  background: transparent;
}

.farm-info-container::before {
  content: "";
  position: absolute;
  inset: 20px 18px;
  z-index: -1;
  border-radius: 24px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.055), transparent 55%),
    rgba(31, 36, 28, 0.22);
  opacity: 0.75;
  pointer-events: none;
}

.farm-name {
  max-width: 100%;
  margin: 0;
  color: #FFFFFF;
  font-size: clamp(34px, 4.1vw, 48px);
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: 0;
  text-shadow: 0 12px 34px rgba(0, 0, 0, 0.32);
}

.farm-card-featured .farm-name {
  background: linear-gradient(90deg, #FFFFFF 12%, #EAD99D 48%, #C8A55B 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.farm-location {
  display: inline-flex;
  align-items: center;
  flex-direction: row-reverse;
  gap: 9px;
  margin: 0;
  color: #B7B9B3;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.5;
}

.farm-location i {
  color: #8DAA56;
  font-size: 18px;
}

.farm-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 10px;
  width: 100%;
  margin: 4px 0 0;
  overflow: visible;
}

.tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 40px;
  padding: 8px 16px;
  border: 1px solid rgba(200, 165, 91, 0.34);
  border-radius: 999px;
  background: transparent;
  color: #FFFFFF;
  font-size: 14px;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  transition: transform 300ms ease, border-color 300ms ease, box-shadow 300ms ease, color 300ms ease;
}

.tag i {
  color: #8DAA56;
  font-size: 14px;
}

.tag:hover {
  transform: translateY(-2px);
  border-color: rgba(200, 165, 91, 0.70);
  color: #F5E7B6;
  box-shadow: 0 0 24px rgba(200, 165, 91, 0.12);
}

.farm-subtitle {
  margin: 8px 0 0;
  color: #FFFFFF;
  font-size: clamp(22px, 2.6vw, 30px);
  font-weight: 900;
  line-height: 1.28;
}

.farm-description {
  max-width: 430px;
  margin: -3px 0 0;
  color: #B7B9B3;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.75;
}

.farm-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  margin-top: 6px;
}

.farm-action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 24px;
  border-radius: 999px;
  font: inherit;
  font-size: 14px;
  font-weight: 900;
  cursor: pointer;
  transition: transform 300ms ease, box-shadow 300ms ease, border-color 300ms ease, color 300ms ease;
}

.farm-action-primary {
  border: 0;
  background: linear-gradient(135deg, #8DAA56 0%, #C8A55B 100%);
  color: #14190F;
  box-shadow: 0 16px 34px rgba(200, 165, 91, 0.22);
}

.farm-action-secondary {
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.02);
  color: #FFFFFF;
}

.farm-action-btn:hover {
  transform: translateY(-2px);
}

.farm-action-primary:hover {
  box-shadow:
    0 18px 40px rgba(200, 165, 91, 0.30),
    0 0 26px rgba(141, 170, 86, 0.22);
}

.farm-action-secondary:hover {
  border-color: rgba(200, 165, 91, 0.50);
  color: #F5E7B6;
  box-shadow: 0 0 22px rgba(200, 165, 91, 0.10);
}

@media (max-width: 768px) {
  .farms-section {
    width: min(100% - 28px, 560px);
  }

  .farms-list-container {
    width: 100%;
    max-width: 560px;
    gap: 28px;
  }

  .farm-card-horizontal {
    grid-template-columns: 1fr;
    height: auto;
    min-height: 0;
    border-radius: 26px;
  }

  .farm-card-horizontal::before {
    top: 38%;
    right: 18px;
    font-size: 190px;
  }

  .farm-image-slider {
    grid-column: 1;
    height: 300px;
    min-height: 300px;
    mask-image: none;
    -webkit-mask-image: none;
  }

  .slider-gradient-overlay {
    background:
      linear-gradient(180deg, rgba(31, 36, 28, 0.00) 0%, rgba(31, 36, 28, 0.30) 56%, rgba(31, 36, 28, 0.88) 100%),
      linear-gradient(90deg, rgba(31, 36, 28, 0.18), rgba(31, 36, 28, 0));
  }

  .card-badge {
    top: 18px;
    left: 18px;
  }

  .farm-image-facts {
    right: 16px;
    bottom: 16px;
    left: 16px;
  }

  .farm-image-facts span {
    min-height: 64px;
    font-size: 12px;
  }

  .farm-info-container {
    grid-column: 1;
    width: 100%;
    height: auto;
    margin: 0;
    padding: 28px 22px 24px;
    align-items: flex-start;
    gap: 12px;
    text-align: right;
  }

  .farm-info-container::before {
    inset: 12px;
  }

  .farm-name {
    font-size: clamp(28px, 9vw, 38px);
  }

  .farm-location {
    font-size: 14px;
  }

  .farm-tags {
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 8px;
    width: 100%;
    padding-bottom: 0;
    overflow: visible;
  }

  .tag {
    min-height: 38px;
    padding: 8px 13px;
    font-size: 13px;
  }

  .farm-subtitle {
    max-width: none;
    margin-top: 4px;
    font-size: 22px;
    line-height: 1.35;
    display: block;
    overflow: visible;
  }

  .farm-description {
    max-width: none;
    font-size: 14px;
  }

  .farm-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    margin-top: 8px;
  }

  .farm-action-btn {
    width: 100%;
  }
}

/* --- Featured card polish v18 --- */
.farm-card-horizontal {
  grid-template-areas: "media content";
}

.farm-image-slider {
  grid-area: media;
}

.farm-info-container {
  grid-area: content;
}

.farm-card-featured {
  border-color: rgba(200, 165, 91, 0.28);
  background:
    radial-gradient(circle at 78% 16%, rgba(200, 165, 91, 0.18), transparent 26%),
    radial-gradient(circle at 92% 88%, rgba(141, 170, 86, 0.16), transparent 30%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.015) 44%, transparent 72%),
    #252B22;
  box-shadow:
    0 34px 90px rgba(0, 0, 0, 0.44),
    0 0 0 1px rgba(200, 165, 91, 0.10),
    inset 0 1px 0 rgba(255, 255, 255, 0.10);
}

.farm-card-featured .farm-image-slider {
  box-shadow: inset -38px 0 80px rgba(31, 36, 28, 0.72);
}

.farm-card-featured .slider-gradient-overlay {
  background:
    linear-gradient(90deg, rgba(31, 36, 28, 0.00) 0%, rgba(31, 36, 28, 0.18) 42%, rgba(31, 36, 28, 0.86) 100%),
    radial-gradient(circle at 20% 14%, rgba(255, 228, 142, 0.18), transparent 28%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.02), rgba(0, 0, 0, 0.38));
}

.farm-card-featured .farm-info-container {
  align-items: center;
  padding: 34px 42px 32px;
  text-align: center;
}

.farm-card-featured .farm-info-container::before {
  inset: 22px 24px;
  border: 1px solid rgba(255, 255, 255, 0.045);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.065), rgba(255, 255, 255, 0.018) 54%, transparent 72%),
    radial-gradient(circle at 50% 0%, rgba(200, 165, 91, 0.09), transparent 36%),
    rgba(31, 36, 28, 0.34);
}

.farm-card-featured .farm-info-container::after {
  content: "";
  position: absolute;
  top: -12%;
  bottom: -12%;
  left: -62px;
  z-index: -1;
  width: 118px;
  border-left: 1px solid rgba(200, 165, 91, 0.52);
  border-radius: 50%;
  background: linear-gradient(90deg, rgba(37, 43, 34, 0.92), rgba(37, 43, 34, 0.12));
  box-shadow: -12px 0 30px rgba(200, 165, 91, 0.09);
  pointer-events: none;
}

.farm-card-featured .farm-name {
  font-size: clamp(38px, 4.4vw, 54px);
}

.farm-card-featured .farm-name::before {
  content: "";
  display: block;
  width: 46px;
  height: 46px;
  margin: 0 auto 14px;
  border: 1px solid rgba(200, 165, 91, 0.62);
  border-radius: 18px 18px 8px 8px;
  background:
    radial-gradient(circle at 50% 64%, rgba(200, 165, 91, 0.80) 0 3px, transparent 4px),
    radial-gradient(ellipse at 50% 44%, rgba(200, 165, 91, 0.36) 0 14px, transparent 15px),
    rgba(31, 36, 28, 0.42);
  box-shadow:
    0 0 22px rgba(200, 165, 91, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.farm-card-featured .farm-location {
  justify-content: center;
}

.farm-card-featured .farm-tags {
  justify-content: center;
  max-width: 420px;
}

.farm-card-featured .tag {
  min-width: 112px;
  background: rgba(255, 255, 255, 0.018);
}

.farm-card-featured .farm-subtitle {
  margin-top: 10px;
  font-size: clamp(23px, 2.7vw, 32px);
}

.farm-card-featured .farm-description {
  max-width: 430px;
  text-align: center;
}

.farm-card-featured .farm-actions {
  justify-content: center;
  margin-top: 10px;
}

.farm-card-featured .farm-action-primary {
  min-width: 230px;
}

.farm-card-featured .farm-action-secondary {
  min-width: 144px;
}

@media (max-width: 768px) {
  .farm-card-horizontal {
    grid-template-areas:
      "media"
      "content";
  }

  .farm-card-featured .farm-info-container {
    align-items: flex-start;
    padding: 28px 22px 24px;
    text-align: right;
  }

  .farm-card-featured .farm-info-container::after {
    display: none;
  }

  .farm-card-featured .farm-name::before {
    margin-inline: 0;
  }

  .farm-card-featured .farm-location,
  .farm-card-featured .farm-tags,
  .farm-card-featured .farm-actions {
    justify-content: flex-start;
  }

  .farm-card-featured .farm-tags {
    max-width: none;
  }

  .farm-card-featured .tag {
    min-width: 0;
  }

  .farm-card-featured .farm-description {
    text-align: right;
  }

  .farm-card-featured .farm-action-primary,
  .farm-card-featured .farm-action-secondary {
    min-width: 0;
  }
}

/* --- Restore old compact farm cards on mobile v19 --- */
@media (max-width: 768px) {
  .farm-card-horizontal,
  .farm-card-featured {
    display: flex;
    flex-direction: column-reverse;
    width: 100%;
    height: auto;
    min-height: 0;
    overflow: hidden;
    border-radius: 20px;
    background: #23251e;
    border: 1px solid rgba(212, 175, 55, 0.20);
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.42);
    transform: none;
    mask-image: none;
    -webkit-mask-image: none;
  }

  .farm-card-horizontal::before,
  .farm-card-horizontal::after,
  .farm-card-featured .farm-info-container::after,
  .farm-card-featured .farm-name::before {
    display: none;
  }

  .farm-image-slider {
    width: 100%;
    height: 230px;
    min-height: 230px;
    flex: none;
    border: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: none;
  }

  .farm-card-featured .farm-image-slider {
    box-shadow: none;
  }

  .slider-gradient-overlay,
  .farm-card-featured .slider-gradient-overlay {
    display: none;
  }

  .card-badge {
    top: 14px;
    left: 14px;
    min-height: 34px;
    padding: 7px 13px;
    border-radius: 18px;
    font-size: 12px;
    background: rgba(114, 140, 70, 0.35);
    border-color: rgba(114, 140, 70, 0.60);
    color: #c9d8a3;
  }

  .farm-image-facts,
  .farm-description,
  .farm-actions {
    display: none;
  }

  .farm-info-container,
  .farm-card-featured .farm-info-container {
    width: 100%;
    height: auto;
    padding: 18px 16px 16px;
    margin: 0;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-align: center;
    background: transparent;
  }

  .farm-info-container::before,
  .farm-card-featured .farm-info-container::before {
    display: none;
  }

  .farm-name,
  .farm-card-featured .farm-name {
    color: #ffffff;
    background: none;
    -webkit-background-clip: initial;
    background-clip: initial;
    font-size: 22px;
    font-weight: 800;
    line-height: 1.3;
    margin: 0 0 2px;
    text-shadow: none;
  }

  .farm-location,
  .farm-card-featured .farm-location {
    justify-content: center;
    flex-direction: row-reverse;
    gap: 7px;
    color: rgba(255, 255, 255, 0.72);
    font-size: 13px;
    font-weight: 600;
    margin: 0 0 8px;
  }

  .farm-tags,
  .farm-card-featured .farm-tags {
    width: 100%;
    max-width: none;
    flex-wrap: nowrap;
    justify-content: flex-start;
    gap: 6px;
    margin: 0 0 8px;
    padding-bottom: 4px;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .farm-tags::-webkit-scrollbar {
    display: none;
  }

  .tag,
  .farm-card-featured .tag {
    min-width: auto;
    min-height: 30px;
    padding: 4px 10px;
    border-color: rgba(114, 140, 70, 0.50);
    color: #e8e8e8;
    font-size: 11px;
    font-weight: 700;
    white-space: nowrap;
    background: transparent;
    box-shadow: none;
  }

  .tag i {
    color: #728c46;
  }

  .farm-subtitle,
  .farm-card-featured .farm-subtitle {
    max-width: 95%;
    margin: 0;
    color: #ffffff;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.45;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
}

/* --- Mobile farm card visual match v20 --- */
@media (max-width: 768px) {
  .farm-card-horizontal,
  .farm-card-featured {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: 250px auto;
    grid-template-areas:
      "media"
      "content";
    border-radius: 22px;
    background: #1f241c;
    border-color: rgba(200, 165, 91, 0.26);
    box-shadow:
      0 18px 44px rgba(0, 0, 0, 0.42),
      inset 0 1px 0 rgba(255, 255, 255, 0.06);
  }

  .farm-image-slider,
  .farm-card-featured .farm-image-slider {
    grid-area: media;
    width: 100%;
    height: 250px;
    min-height: 250px;
    border: 0;
    box-shadow: none;
  }

  .slide-img {
    object-position: center;
  }

  .slider-gradient-overlay,
  .farm-card-featured .slider-gradient-overlay {
    display: block;
    background:
      linear-gradient(180deg, rgba(31, 36, 28, 0) 0%, rgba(31, 36, 28, 0.18) 48%, rgba(31, 36, 28, 0.96) 100%),
      linear-gradient(90deg, rgba(31, 36, 28, 0.22), rgba(31, 36, 28, 0.02));
  }

  .card-badge {
    top: 12px;
    left: 12px;
    z-index: 6;
    min-height: 32px;
    padding: 7px 12px;
    border-radius: 999px;
    background: rgba(141, 170, 86, 0.54);
    border-color: rgba(255, 255, 255, 0.16);
    color: #eef6d5;
    font-size: 11px;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.24);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
  }

  .farm-info-container,
  .farm-card-featured .farm-info-container {
    grid-area: content;
    z-index: 5;
    width: 100%;
    margin-top: -92px;
    padding: 0 16px 20px;
    align-items: center;
    text-align: center;
    gap: 8px;
    background: linear-gradient(180deg, rgba(31, 36, 28, 0), #1f241c 40%);
  }

  .farm-name,
  .farm-card-featured .farm-name {
    margin: 0;
    color: #ffffff;
    font-size: 20px;
    font-weight: 900;
    line-height: 1.2;
    text-shadow: 0 8px 20px rgba(0, 0, 0, 0.52);
  }

  .farm-location,
  .farm-card-featured .farm-location {
    justify-content: center;
    margin: 0;
    color: rgba(255, 255, 255, 0.72);
    font-size: 11px;
    line-height: 1.35;
    text-shadow: 0 7px 18px rgba(0, 0, 0, 0.55);
  }

  .farm-location i {
    color: #9fb66d;
    font-size: 12px;
  }

  .farm-tags,
  .farm-card-featured .farm-tags {
    justify-content: center;
    flex-wrap: wrap;
    gap: 6px;
    margin: 2px 0 6px;
    padding: 0;
    overflow: visible;
  }

  .tag,
  .farm-card-featured .tag {
    min-height: 25px;
    padding: 4px 9px;
    border-radius: 999px;
    border-color: rgba(200, 165, 91, 0.32);
    background: rgba(31, 36, 28, 0.72);
    color: #f5f2e8;
    font-size: 10px;
    line-height: 1;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
  }

  .tag i {
    color: #8DAA56;
    font-size: 10px;
  }

  .farm-subtitle,
  .farm-card-featured .farm-subtitle {
    max-width: none;
    margin: 6px 0 4px;
    color: #ffffff;
    font-size: 13px;
    font-weight: 800;
    line-height: 1.45;
    display: block;
    overflow: visible;
  }

  .farm-description {
    display: none;
  }

  .farm-actions,
  .farm-card-featured .farm-actions {
    display: flex;
    justify-content: center;
    width: 100%;
    margin-top: 4px;
  }

  .farm-action-primary {
    display: none;
  }

  .farm-action-secondary,
  .farm-card-featured .farm-action-secondary {
    display: inline-flex;
    width: auto;
    min-width: 120px;
    min-height: 36px;
    padding: 0 18px;
    border-color: rgba(200, 165, 91, 0.60);
    border-radius: 999px;
    background: rgba(31, 36, 28, 0.40);
    color: #f6e7ba;
    font-size: 12px;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.22);
  }

  .farm-action-secondary::after {
    content: "←";
    margin-right: 8px;
    font-weight: 900;
  }
}

/* --- Desktop compact unified farm cards --- */
@media (min-width: 769px) {
  .farms-section {
    width: min(1360px, calc(100% - 64px));
  }

  .farms-list-container {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 26px;
    width: 100%;
    max-width: 1220px;
    margin-inline: auto;
  }

  .farm-card-horizontal,
  .farm-card-featured {
    display: grid !important;
    grid-template-columns: 1fr !important;
    grid-template-rows: 58% 42%;
    grid-template-areas:
      "media"
      "content";
    width: 100%;
    height: clamp(390px, 29vw, 430px);
    min-height: 0;
    overflow: hidden;
    border-radius: 28px;
    background: #102617;
    border-color: rgba(200, 165, 91, 0.20);
  }

  .farm-card-horizontal::before,
  .farm-card-horizontal::after,
  .farm-info-container::before,
  .farm-card-featured .farm-info-container::after,
  .farm-card-featured .farm-name::before,
  .farm-image-facts {
    display: none !important;
  }

  .farm-image-slider,
  .farm-card-featured .farm-image-slider {
    grid-area: media;
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 0;
    box-shadow: none;
    border: 0;
  }

  .slide-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    filter: saturate(0.96) contrast(1.02);
    transform: scale(1);
  }

  .slide-img[src*="menia/slider6.jpg"] {
    object-position: 50% 8%;
  }

  .slider-gradient-overlay,
  .farm-card-featured .slider-gradient-overlay {
    display: block;
    background:
      linear-gradient(
        180deg,
        rgba(16, 38, 23, 0) 0%,
        rgba(16, 38, 23, 0.10) 38%,
        rgba(16, 38, 23, 0.58) 72%,
        #102617 100%
      ),
      linear-gradient(90deg, rgba(16, 38, 23, 0.20), rgba(16, 38, 23, 0.02), rgba(16, 38, 23, 0.20));
  }

  .farm-info-container,
  .farm-card-featured .farm-info-container {
    grid-area: content;
    z-index: 4;
    width: 100%;
    height: auto;
    margin-top: -88px;
    padding: 42px 28px 24px;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    text-align: center;
    background: linear-gradient(180deg, rgba(16, 38, 23, 0) 0%, rgba(16, 38, 23, 0.72) 34%, #102617 74%, #102617 100%);
  }

  .farm-name,
  .farm-card-featured .farm-name {
    max-width: 100%;
    margin: 0;
    color: #ffffff;
    background: none;
    -webkit-background-clip: initial;
    background-clip: initial;
    font-size: clamp(24px, 2.15vw, 34px);
    line-height: 1.15;
  }

  .farm-location,
  .farm-card-featured .farm-location {
    justify-content: center;
    margin: 0;
    font-size: 13px;
    line-height: 1.35;
  }

  .farm-tags,
  .farm-card-featured .farm-tags {
    justify-content: center;
    gap: 7px;
    margin: 2px 0 0;
  }

  .tag,
  .farm-card-featured .tag {
    min-width: auto;
    min-height: 28px;
    padding: 5px 11px;
    font-size: 12px;
  }

  .farm-subtitle,
  .farm-card-featured .farm-subtitle {
    max-width: 92%;
    margin: 4px 0 0;
    font-size: clamp(14px, 1.25vw, 18px);
    line-height: 1.4;
  }

  .farm-description,
  .farm-card-featured .farm-description {
    max-width: 92%;
    margin: -2px 0 0;
    text-align: center;
    font-size: 12px;
    line-height: 1.55;
  }

  .farm-actions,
  .farm-card-featured .farm-actions {
    display: none !important;
  }

  .farm-card-horizontal:hover .slide-img {
    transform: scale(1.035);
  }
}
