/* ==========================================================================
   SHYNE LIVESTOCK FARMS VENTURE - Homepage Specific Styles
   ========================================================================== */

/* ==========================================================================
   1. Hero Section - Wireframe Specific Layout
   ========================================================================== */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: var(--header-height);
  overflow: hidden;
  background-color: var(--color-primary-dark);
}

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.hero-background picture,
.hero-background img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg, 
    rgba(15, 61, 34, 0.95) 0%, 
    rgba(15, 61, 34, 0.85) 40%, 
    rgba(15, 61, 34, 0.4) 100%
  );
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: var(--spacing-3xl) 0;
  max-width: 720px;
}

.hero-headline {
  color: var(--color-white);
  font-size: clamp(2rem, 5vw, 3.75rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: var(--spacing-lg);
  letter-spacing: -0.03em;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.hero-subheadline {
  color: rgba(255, 255, 255, 0.95);
  font-size: clamp(1rem, 2vw, 1.25rem);
  line-height: 1.7;
  margin-bottom: var(--spacing-lg);
  max-width: 600px;
}

.hero-trust-statement {
  margin-bottom: var(--spacing-xl);
  padding: var(--spacing-md) var(--spacing-lg);
  background-color: rgba(255, 255, 255, 0.08);
  border-left: 4px solid var(--color-secondary);
  border-radius: 0 var(--border-radius-md) var(--border-radius-md) 0;
  backdrop-filter: blur(4px);
}

.hero-trust-statement p {
  color: rgba(255, 255, 255, 0.95);
  font-size: var(--font-size-base);
  margin-bottom: var(--spacing-xs);
}

.hero-trust-statement p:last-child {
  margin-bottom: 0;
}

.hero-cta-group {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
  max-width: 400px;
}

@media (min-width: 768px) {
  .hero-cta-group {
    flex-direction: row;
    max-width: none;
  }
}

/* ==========================================================================
   2. Trust Section - Card Polish
   ========================================================================== */
.trust-section {
  padding: var(--spacing-4xl) 0;
  background-color: var(--color-gray-50);
}

.trust-layout {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-2xl);
}

.trust-content .section-title {
  text-align: left;
}

.trust-content .section-title::after {
  left: 0;
  transform: none;
}

.trust-image {
  border-radius: var(--border-radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  aspect-ratio: 4/3;
}

.trust-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-slow);
}

.trust-image:hover img {
  transform: scale(1.03);
}

.trust-card {
  background-color: var(--color-white);
  padding: var(--spacing-lg);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-sm);
  transition: var(--transition-base);
  border: 1px solid var(--color-gray-200);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.trust-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
  border-color: var(--color-secondary-light);
}

.trust-card-icon {
  margin-bottom: var(--spacing-md);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  background-color: var(--color-gray-50);
  border-radius: 50%;
}

.trust-card-icon svg {
  width: 32px;
  height: 32px;
}

.trust-card-title {
  font-size: var(--font-size-xl);
  margin-bottom: var(--spacing-sm);
  color: var(--color-gray-900);
  font-weight: 700;
}

.trust-card-description {
  color: var(--color-gray-600);
  font-size: var(--font-size-base);
  line-height: 1.6;
  flex-grow: 1;
}

@media (min-width: 1024px) {
  .trust-layout {
    flex-direction: row;
    align-items: center;
  }
  
  .trust-content {
    flex: 1;
  }
  
  .trust-image {
    flex: 1;
    max-width: 500px;
  }
}

/* ==========================================================================
   3. Product Showcase - Image Slider & Cards
   ========================================================================== */
.product-showcase-section {
  padding: var(--spacing-4xl) 0;
  background-color: var(--color-white);
}

.product-categories-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--spacing-lg);
}

.product-category-card {
  background-color: var(--color-white);
  border-radius: var(--border-radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: var(--transition-base);
  border: 1px solid var(--color-gray-200);
  display: flex;
  flex-direction: column;
}

.product-category-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-2xl);
  border-color: var(--color-secondary-light);
}

.product-image-wrapper {
  position: relative;
  width: 100%;
  height: 280px;
  overflow: hidden;
  background-color: var(--color-gray-100);
}

.product-image-wrapper picture {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
  transition: opacity 0.8s ease-in-out;
}

.product-image-wrapper picture.active {
  opacity: 1;
}

.product-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-content {
  padding: var(--spacing-lg);
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.product-category-title {
  font-size: var(--font-size-2xl);
  margin-bottom: var(--spacing-md);
  color: var(--color-gray-900);
  font-weight: 700;
}

.product-list {
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-xs);
  margin-bottom: var(--spacing-md);
}

.product-tag {
  display: inline-block;
  padding: 0.375rem 0.875rem;
  background-color: var(--color-primary);
  color: var(--color-white);
  font-size: var(--font-size-xs);
  font-weight: 600;
  border-radius: var(--border-radius-sm);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.product-category-description {
  color: var(--color-gray-600);
  margin-bottom: var(--spacing-lg);
  line-height: 1.7;
  flex-grow: 1;
}

@media (min-width: 768px) {
  .product-categories-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .product-categories-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .product-image-wrapper {
    height: 320px;
  }
}

/* ==========================================================================
   4. Product Catalogue CTA
   ========================================================================== */
.product-catalogue-cta {
  padding: var(--spacing-3xl) 0;
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.product-catalogue-cta::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: radial-gradient(circle at 20% 50%, rgba(217, 119, 6, 0.15) 0%, transparent 50%);
  pointer-events: none;
}

.cta-content {
  max-width: 700px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.cta-title {
  color: var(--color-white);
  font-size: var(--font-size-3xl);
  margin-bottom: var(--spacing-md);
  font-weight: 700;
}

.cta-description {
  color: rgba(255, 255, 255, 0.9);
  font-size: var(--font-size-lg);
  margin-bottom: var(--spacing-xl);
  line-height: 1.7;
}

/* ==========================================================================
   5. Industries Section - B2B Grid
   ========================================================================== */
.industries-section {
  padding: var(--spacing-4xl) 0;
  background-color: var(--color-gray-50);
}

.industries-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--spacing-lg);
}

.industry-card {
  background-color: var(--color-white);
  border-radius: var(--border-radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: var(--transition-base);
  border: 1px solid var(--color-gray-200);
  display: flex;
  flex-direction: column;
}

.industry-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl);
  border-color: var(--color-secondary-light);
}

.industry-image-wrapper {
  width: 100%;
  height: 220px;
  overflow: hidden;
  background-color: var(--color-gray-100);
}

.industry-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-slow);
}

.industry-card:hover .industry-image-wrapper img {
  transform: scale(1.08);
}

.industry-content {
  padding: var(--spacing-lg);
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.industry-title {
  font-size: var(--font-size-xl);
  margin-bottom: var(--spacing-sm);
  color: var(--color-gray-900);
  font-weight: 700;
}

.industry-description {
  color: var(--color-gray-600);
  margin-bottom: var(--spacing-lg);
  line-height: 1.6;
  flex-grow: 1;
}

@media (min-width: 768px) {
  .industries-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .industry-image-wrapper {
    height: 240px;
  }
}

@media (min-width: 1024px) {
  .industries-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .industry-image-wrapper {
    height: 260px;
  }
}

/* ==========================================================================
   6. Process Section - Timeline Layout
   ========================================================================== */
.process-section {
  padding: var(--spacing-4xl) 0;
  background-color: var(--color-white);
}

.process-steps {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-3xl);
  position: relative;
}

.process-step {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
  position: relative;
}

.step-number {
  position: absolute;
  top: -24px;
  left: 24px;
  width: 56px;
  height: 56px;
  background-color: var(--color-secondary);
  color: var(--color-white);
  font-size: var(--font-size-2xl);
  font-weight: 800;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-lg);
  z-index: 2;
  border: 4px solid var(--color-white);
}

.step-image {
  width: 100%;
  height: 300px;
  border-radius: var(--border-radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.step-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-slow);
}

.process-step:hover .step-image img {
  transform: scale(1.03);
}

.step-content {
  padding: var(--spacing-md) 0;
}

.step-title {
  font-size: var(--font-size-2xl);
  margin-bottom: var(--spacing-sm);
  color: var(--color-gray-900);
  font-weight: 700;
}

.step-description {
  color: var(--color-gray-600);
  font-size: var(--font-size-lg);
  line-height: 1.7;
}

@media (min-width: 1024px) {
  .process-step {
    flex-direction: row;
    align-items: center;
    gap: var(--spacing-2xl);
  }
  
  .process-step-reverse {
    flex-direction: row-reverse;
  }
  
  .step-number {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
  }
  
  .step-image {
    flex: 1;
    height: 420px;
  }
  
  .step-content {
    flex: 1;
    padding: var(--spacing-xl);
  }
}

/* ==========================================================================
   7. Founder Section - Storytelling Layout
   ========================================================================== */
.founder-section {
  padding: var(--spacing-4xl) 0;
  background-color: var(--color-gray-50);
}

.founder-content-wrapper {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-2xl);
  align-items: center;
}

.founder-image {
  flex: 1;
  width: 100%;
  max-width: 500px;
  border-radius: var(--border-radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  position: relative;
}

.founder-image::after {
  content: '';
  position: absolute;
  top: 20px;
  left: 20px;
  right: -20px;
  bottom: -20px;
  border: 2px solid var(--color-secondary);
  border-radius: var(--border-radius-xl);
  z-index: -1;
}

.founder-image img {
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
}

.founder-text {
  flex: 1;
}

.founder-title {
  font-size: var(--font-size-3xl);
  margin-bottom: var(--spacing-lg);
  color: var(--color-gray-900);
  line-height: 1.2;
  font-weight: 800;
}

.founder-paragraphs {
  margin-bottom: var(--spacing-xl);
}

.founder-paragraphs p {
  font-size: var(--font-size-lg);
  color: var(--color-gray-600);
  line-height: 1.8;
  margin-bottom: var(--spacing-md);
}

@media (min-width: 1024px) {
  .founder-content-wrapper {
    flex-direction: row;
    gap: var(--spacing-3xl);
  }
  
  .founder-title {
    font-size: var(--font-size-4xl);
  }
}

/* ==========================================================================
   8. Final CTA Section - Conversion Focus
   ========================================================================== */
.final-cta-section {
  padding: var(--spacing-4xl) 0;
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.final-cta-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    radial-gradient(circle at 10% 20%, rgba(217, 119, 6, 0.1) 0%, transparent 40%),
    radial-gradient(circle at 90% 80%, rgba(255, 255, 255, 0.05) 0%, transparent 40%);
  pointer-events: none;
}

.final-cta-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  margin: 0 auto;
}

.final-cta-title {
  color: var(--color-white);
  font-size: var(--font-size-3xl);
  margin-bottom: var(--spacing-md);
  font-weight: 800;
  line-height: 1.2;
}

.final-cta-message {
  color: rgba(255, 255, 255, 0.9);
  font-size: var(--font-size-lg);
  margin-bottom: var(--spacing-xl);
  line-height: 1.7;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.final-cta-buttons {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
  max-width: 400px;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .final-cta-buttons {
    flex-direction: row;
    justify-content: center;
    max-width: none;
  }
}

@media (min-width: 1024px) {
  .final-cta-title {
    font-size: var(--font-size-4xl);
  }
}

/* ==========================================================================
   9. Homepage Specific Responsive Tweaks
   ========================================================================== */
@media (max-width: 767px) {
  .section-header {
    margin-bottom: var(--spacing-2xl);
  }
  
  .section-title {
    font-size: var(--font-size-2xl);
  }
  
  .trust-section,
  .product-showcase-section,
  .industries-section,
  .process-section,
  .founder-section,
  .final-cta-section {
    padding: var(--spacing-2xl) 0;
  }
}

/* ==========================================================================
   Mobile Portrait Image Fix for Cards
   ========================================================================== */
@media (max-width: 767px) {
  /* Product Showcase Cards */
  .product-image-wrapper {
    height: auto;
    aspect-ratio: 3 / 4; /* Creates a true portrait shape */
  }

  /* Industry Cards (if you want these to be portrait on mobile too) */
  .industry-image-wrapper {
    height: auto;
    aspect-ratio: 3 / 4;
  }
  
  /* Trust Section Image (optional, if you want it taller on mobile) */
  .trust-image {
    aspect-ratio: 4 / 5;
    height: auto;
  }
}


/* ==========================================================================
   Trust Section - Card Polish (Updated)
   ========================================================================== */
.trust-section {
  padding: var(--spacing-4xl) 0;
  background-color: var(--color-gray-50);
}
.trust-layout {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-2xl);
}
.trust-content .section-title {
  text-align: left;
}
.trust-content .section-title::after {
  left: 0;
  transform: none;
}
.trust-image {
  border-radius: var(--border-radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  aspect-ratio: 4/3;
  width: 100%;
}
.trust-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-slow);
}
.trust-image:hover img {
  transform: scale(1.03);
}
.trust-card {
  background-color: var(--color-white);
  padding: var(--spacing-md); /* Reduced padding to make cards more compact */
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-sm);
  transition: var(--transition-base);
  border: 1px solid var(--color-gray-200);
  /* Removed height: 100% so cards fit their content naturally without awkward stretching */
  display: flex;
  flex-direction: column;
}
.trust-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
  border-color: var(--color-secondary-light);
}
.trust-card-icon {
  margin-bottom: var(--spacing-md);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px; /* Slightly smaller for better proportion */
  height: 56px;
  background-color: var(--color-gray-50);
  border-radius: 50%;
}
.trust-card-icon svg {
  width: 28px;
  height: 28px;
}
.trust-card-title {
  font-size: var(--font-size-lg);
  margin-bottom: var(--spacing-sm);
  color: var(--color-gray-900);
  font-weight: 700;
}
.trust-card-description {
  color: var(--color-gray-600);
  font-size: var(--font-size-base);
  line-height: 1.6;
  flex-grow: 1;
}

@media (min-width: 1024px) {
  .trust-layout {
    flex-direction: row;
    /* Removed align-items: center so the image can stretch to its full natural height */
  }
  .trust-content {
    flex: 1;
  }
  .trust-image {
    flex: 1.2; /* Give the image more prominence on desktop */
    max-width: 650px; /* Increased from 500px so it's not too small */
    aspect-ratio: 16 / 9; /* Better, wider desktop ratio */
  }
}

/* ==========================================================================
   Process Section - Timeline Layout (Updated)
   ========================================================================== */
.process-section {
  padding: var(--spacing-4xl) 0;
  background-color: var(--color-white);
}
.process-steps {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-3xl);
  position: relative;
}
.process-step {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
  position: relative;
}
.step-number {
  position: absolute;
  top: -24px;
  left: 24px;
  width: 56px;
  height: 56px;
  background-color: var(--color-secondary);
  color: var(--color-white);
  font-size: var(--font-size-2xl);
  font-weight: 800;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-lg);
  z-index: 2;
  border: 4px solid var(--color-white);
}
.step-image {
  width: 100%;
  aspect-ratio: 16 / 9; /* Ensures consistent, modern proportions without empty space */
  border-radius: var(--border-radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  cursor: zoom-in; /* Indicates the image can be expanded */
  position: relative;
  background-color: var(--color-gray-100);
}
.step-image img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Fills the container perfectly without empty space */
  transition: var(--transition-slow);
}
.process-step:hover .step-image img {
  transform: scale(1.03);
}
.step-content {
  padding: var(--spacing-md) 0;
}
.step-title {
  font-size: var(--font-size-2xl);
  margin-bottom: var(--spacing-sm);
  color: var(--color-gray-900);
  font-weight: 700;
}
.step-description {
  color: var(--color-gray-600);
  font-size: var(--font-size-lg);
  line-height: 1.7;
}

@media (min-width: 1024px) {
  .process-step {
    flex-direction: row;
    align-items: center;
    gap: var(--spacing-2xl);
  }
  .process-step-reverse {
    flex-direction: row-reverse;
  }
  .step-number {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
  }
  .step-image {
    flex: 1;
    /* Removed fixed height, aspect-ratio handles it beautifully on all screens */
  }
  .step-content {
    flex: 1;
    padding: var(--spacing-xl);
  }
}

/* ==========================================================================
   Simple Lightbox for Process Images (New)
   ========================================================================== */
.image-lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(8px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition-base);
  cursor: zoom-out;
  padding: var(--spacing-md);
}
.image-lightbox.active {
  opacity: 1;
  visibility: visible;
}
.image-lightbox img {
  max-width: 90%;
  max-height: 90vh;
  object-fit: contain;
  border-radius: var(--border-radius-md);
  box-shadow: var(--shadow-2xl);
  transform: scale(0.9);
  transition: var(--transition-base);
}
.image-lightbox.active img {
  transform: scale(1);
}




