/* ---
🚀 UI/UX ENHANCEMENTS START HERE
---
*/

/* 🎨 NEW: Golden color palette */
:root {
    --accent-gold: #E5C100;
    --accent-gold-dark: #D4AF37;
    --gold-gradient: linear-gradient(110deg, var(--accent-gold), var(--accent-gold-dark));
}


/* 1. Global Polish: Scrollbar and Text Selection */
html {
  scroll-behavior: smooth;
}

/* ENHANCED: Added a subtle page background texture */
.supplier-page {
    background-image: radial-gradient(circle at 50% 0%, rgba(20, 30, 50, 0.3), transparent 30%),
                      radial-gradient(circle at 10% 20%, rgba(229, 193, 0, 0.05), transparent 25%),
                      radial-gradient(circle at 90% 80%, rgba(52, 152, 219, 0.05), transparent 25%);
}

::-webkit-scrollbar {
  width: 10px;
  background-color: #0F172A; /* Match site's dark blue bg */
}

::-webkit-scrollbar-thumb {
  background: var(--gold-gradient);
  border-radius: 10px;
  border: 2px solid #0F172A;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #E5C100, #D4AF37);
}

::selection {
  background-color: var(--accent-gold);
  color: #0F172A;
}

/* 2. Hero Enhancements */

/* NEW: Keyframes for subtle background animation */
@keyframes ken-burns-subtle {
    0% { background-size: 105% 105%; background-position: 50% 50%; }
    100% { background-size: 115% 115%; background-position: 50% 50%; }
}

/* ENHANCED: Added Ken Burns animation */
.supplier-header.alt-hero {
    animation: ken-burns-subtle 20s infinite alternate ease-in-out;
}

/* FIX: Center hero content & buttons */
.supplier-header .hero-left {
  text-align: center; /* WAS: left */
  max-width: 760px;
  margin: 0 auto; /* WAS: margin-right: auto */
}
.supplier-header .cta-buttons {
  margin-top: 1rem;
  display: flex;
  gap: 0.75rem;
  align-items: center;
  justify-content: center; /* ADDED */
}
.supplier-header .hero-features {
  margin-top: 1.25rem;
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center; /* ADDED */
}

/* == Layout refinements applied to all supplier pages == */
/* Add breathing space between top navigation and hero content */
.supplier-header .hero-left {
  padding-top: 36px; /* leaves space below the site nav */
}

/* Ensure hero right images and hero thumbnails stay consistent in size */
.supplier-header .hero-right img,
.supplier-header .hero-right .hero-img,
.hero-right img.tilt {
  width: 100%;
  max-width: 520px; /* reasonable max for hero artwork */
  height: auto;
  object-fit: cover;
  border-radius: 12px;
}

/* Constrain intro and gallery images so they look uniform across pages */
.supplier-intro .img-left,
.supplier-intro .img-right,
.image-gallery .gallery-image {
  width: 100%;
  max-width: 480px;
  height: auto;
  object-fit: cover;
  border-radius: 10px;
  box-shadow: 0 10px 28px rgba(2,6,23,0.45);
}

/* Slightly larger hero headings for supplier pages to match catfish layout */
.supplier-page .supplier-header.alt-hero h1 {
  font-size: 2.6rem;
  line-height: 1.06;
  margin-top: 0.1rem;
}

/* Make alt-card sections more visually prominent like on the catfish page */
.supplier-section.alt-card {
  background: linear-gradient(145deg, rgba(255,255,255,0.02), rgba(255,255,255,0.01));
  border: 1px solid rgba(255,255,255,0.06);
  box-shadow: 0 14px 40px rgba(2,6,23,0.45);
}

/* Keep main content constrained and centered on medium+ screens */
.supplier-content .container {
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
}

/* 🎨 FIX: Brighten "dull" hero H1 with new Gold color */
.catfish-page .supplier-header.alt-hero h1 {
  /* Force pure white header on the catfish page.
     Previously used a gold gradient via background-clip which made the text appear yellow.
     We remove the gradient and ensure the text fill is white so the heading renders pure white. */
  background: none !important;
  -webkit-background-clip: unset !important;
  background-clip: unset !important;
  -webkit-text-fill-color: #ffffff !important;
  color: #ffffff !important;
  text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

/* 🎨 FIX: Feature text not visible */
.supplier-header .hero-features .feature {
  background: rgba(15, 23, 42, 0.7); /* WAS: 0.5 - More opaque bg for text */
  border: 1px solid rgba(255, 255, 255, 0.1); /* Slightly brighter border */
  backdrop-filter: blur(6px); /* More blur */
  color: var(--text-headings); /* Ensure text is bright white */
  transition: all 0.2s ease-in-out;
  padding: 0.6rem 1rem;
}

.supplier-header .hero-features .feature:hover {
  transform: translateY(-2px);
  background: rgba(20, 30, 50, 0.9);
  box-shadow: 0 8px 24px rgba(2,6,23,0.5);
}

/* Ensure lucide icons in hero are sized and aligned */
.supplier-header .hero-features .feature i {
  width: 18px;
  height: 18px;
  margin-right: 0.15rem; /* Tweak alignment */
  color: var(--accent-gold); /* 🎨 UPDATED */
}

/* 3. Button Enhancements (Primary) */
/* (Keeping CTA green/blue for contrast) */
.btn-primary.btn-cta {
  transition: all 0.3s ease;
  will-change: transform, box-shadow;
}

.btn-primary.btn-cta:hover,
.btn-primary.btn-cta:focus {
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(46, 204, 113, 0.15), 0 5px 15px rgba(52, 152, 219, 0.15);
  filter: brightness(1.1);
}

/* 4. Content Card Enhancements */

/* General Card Polish */
.supplier-section {
  border-radius: 16px; /* Modern rounding */
  backdrop-filter: blur(10px) saturate(120%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.01));
  will-change: transform;
  position: relative; /* REQUIRED for new glow effect */
  z-index: 1; /* REQUIRED for new glow effect */
  transition: transform 0.3s ease, 
              box-shadow 0.3s ease, 
              border-color 0.3s ease;
}

/* 🎨 NEW: Glowing border effect on hover (Updated to Gold) */
.supplier-section::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    border-radius: 16px; /* Match the card's border-radius */
    border: 2px solid transparent;
    background: linear-gradient(135deg, var(--accent-gold), var(--accent-gold-dark)) border-box;
    -webkit-mask: linear-gradient(#fff 0 0) padding-box,
                  linear-gradient(#fff 0 0);
    -webkit-mask-composite: destination-out;
    mask-composite: exclude;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

/* ENHANCED: Hover effect now activates the glow */
.supplier-section:hover {
  transform: translateY(-8px); /* More lift */
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.4), /* Deeper shadow */
              0 0 30px rgba(229, 193, 0, 0.1); /* Subtle accent shadow */
  border-color: rgba(255, 255, 255, 0.15);
}

.supplier-section:hover::before {
    opacity: 1; /* Show the glowing border */
}

/* 🎨 NEW: Vertical rhythm */
.supplier-intro,
.supplier-section,
.grid-2-col,
.image-gallery {
    margin-top: 2.25rem;
}
/* Remove margin from the very first element */
.supplier-page .supplier-content > *:first-child {
    margin-top: 0;
}


/* 🎨 FIX: "Clumsy" alignment in intro section */
.supplier-intro {
    display: flex;
    flex-direction: column; /* Mobile first */
    gap: 2rem;
    align-items: center;
    text-align: center;
}
.supplier-intro .intro-text {
    flex: 1; /* Text block takes available space */
}
/* 🎨 NEW: Style for the intro image */
.supplier-intro .img-right {
    flex-shrink: 0;
    width: 100%;
    max-width: 420px;
    height: auto;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(2, 6, 23, 0.6);
}

@media (min-width: 900px) {
    .supplier-intro {
        flex-direction: row; /* Side-by-side on desktop */
        align-items: start;
        text-align: left;
    }
    
    .supplier-intro .img-right {
        flex-basis: 400px; /* Fixed width for the image */
        margin: 0; /* Reset margins */
        order: 1; /* Image on the right */
    }
    .supplier-intro .intro-text {
        order: 0; /* Text on the left */
    }
}

/* Override the old grid layout from base CSS */
@media (min-width: 900px) {
 .supplier-intro {
    display: flex !important; /* Force flex over grid */
    grid-template-columns: none; /* Disable old grid */
 }
}


/* Styled Lists (replaces boring bullets) */
.supplier-section ul {
  list-style: none;
  padding-left: 0.5rem;
}

.supplier-section ul li {
  position: relative;
  padding-left: 2rem;
  margin-bottom: 0.75rem; /* Add spacing */
  font-size: 1.05rem; /* Slightly larger text */
  line-height: 1.7;
}

/* 🎨 UPDATED: List bullets to Gold */
.supplier-section ul li::before {
  content: '✓'; /* Checkmark */
  position: absolute;
  left: 0;
  top: 0;
  color: var(--accent-gold);
  background: rgba(229, 193, 0, 0.1);
  border: 1px solid rgba(229, 193, 0, 0.2);
  width: 24px;
  height: 24px;
  font-size: 14px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-weight: bold;
}

/* Specific style for the "Advantages" list (which uses ✅) */
.advantages-list li {
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--text-headings);
  padding-left: 0; /* Reset padding */
}
.advantages-list li::before {
  display: none; /* Hide the checkmark, emoji is already there */
}


/* NEW: Fix for "clumsy" advantage list */
.advantages-list-detailed {
  list-style: none;
  padding-left: 0;
}
.advantages-list-detailed li {
  padding-left: 0; /* Override base */
  margin-bottom: 1.5rem; /* More spacing */
}
.advantages-list-detailed li::before {
  display: none; /* Hide the checkmark */
}
.advantages-list-detailed li strong {
  font-size: 1.1rem;
  color: var(--text-headings);
  display: block;
  margin-bottom: 0.25rem;
}
.advantages-list-detailed li p {
  color: var(--text-secondary);
  margin: 0;
  padding-left: 1.75rem; /* Indent the description */
}


/* 🎨 UPDATED: Ordered Lists to Gold */
.supplier-section ol {
  list-style: none;
  counter-reset: ordered-list-counter;
  padding-left: 0.5rem;
}

.supplier-section ol li {
  position: relative;
  padding-left: 3.5rem;
  margin-bottom: 1.25rem; /* More spacing for steps */
  font-size: 1.05rem;
  line-height: 1.7;
}

.supplier-section ol li::before {
  content: counter(ordered-list-counter);
  counter-increment: ordered-list-counter;
  position: absolute;
  left: 0;
  top: -2px;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--gold-gradient);
  color: #0F172A; /* Dark text on light bg */
  font-weight: 700;
  font-size: 1.1rem;
  border: 2px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 4px 15px rgba(229, 193, 0, 0.2);
}

.supplier-section ol li strong {
  color: var(--text-headings);
  font-weight: 600;
  display: block; /* Make the title part of the step */
  margin-bottom: 0.25rem;
}

/* 🎨 UPDATED: Section Headings to Gold */
.supplier-section h2 {
    color: var(--accent-gold);
    margin-bottom: 1rem;
    font-size: 1.6rem;
}

.supplier-section h3 {
  color: var(--accent-gold) !important;
  font-weight: 600;
  font-size: 1.3rem;
  margin-top: 1.5rem;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(229, 193, 0, 0.2); /* Gold-tinted border */
}
.supplier-section h3:first-child {
  margin-top: 0;
}

/* 5. Image Gallery Polish */
/* 🎨 NEW: Re-purposed for new 3-col gallery */
.image-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}
.gallery-image {
  cursor: pointer;
  will-change: transform, box-shadow; /* Optimize animation */
  width: 100%;
  height: 280px;
  object-fit: cover;
  border-radius: 12px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid rgba(255,255,255,0.08);
}

.gallery-image:hover {
  transform: translateY(-5px) scale(1.03);
  box-shadow: 0 20px 48px rgba(2,6,23,0.75), 
              0 4px 12px rgba(2,6,23,0.5), 
              inset 0 0 60px 10px rgba(255, 255, 255, 0.05);
}

/* 🎨 NEW: Style for images inside cards */
.card-image {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 10px;
    margin-top: 1rem;
    margin-bottom: 0.5rem;
    border: 1px solid rgba(255,255,255,0.1);
}

/* 6. Contact Section Enhancements */

/* 🎨 UPDATED: Contact Heading to Gold */
.contact-details-cta h2 {
  font-size: 2.5rem;
  font-weight: 700;
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 1rem;
}

.contact-info-block {
  background: linear-gradient(160deg, rgba(15, 23, 42, 0.8), rgba(20, 30, 50, 0.5));
  border: 1px solid rgba(255, 255, 255, 0.05);
  padding: 1.5rem;
  border-radius: 12px;
  transition: all 0.3s ease;
  backdrop-filter: blur(5px);
  box-shadow: 0 8px 24px rgba(2,6,23,0.4);
}

.contact-info-block:hover {
  transform: translateY(-5px) scale(1.02);
  border-color: var(--accent-gold);
  box-shadow: 0 15px 35px rgba(2,6,23,0.7), 0 0 20px rgba(229, 193, 0, 0.1);
}

/* 🎨 UPDATED: Contact Icons to Gold */
.contact-info-block i {
  color: var(--accent-gold);
  width: 28px;
  height: 28px;
}
.contact-info-block h4 {
    color: var(--accent-gold);
}

.contact-info-block a {
  color: var(--text-primary);
  text-decoration: none;
  transition: color 0.2s ease;
}

.contact-info-block a:hover {
  color: var(--accent-gold);
  text-decoration: underline;
}

/* ---
🚀 NEW: STAT CARD / FLASHCARD STYLES
---
*/
.stat-card {
  text-align: center;
  padding: 2rem 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.05);
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.01));
  transition: transform 0.3s ease, background 0.3s ease, border-color 0.3s ease;
}
/* ENHANCED: Stat card hover */
.stat-card:hover {
  transform: translateY(-8px);
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
  border-color: var(--accent-gold);
  box-shadow: 0 15px 30px rgba(2, 6, 23, 0.5), 
              0 0 20px rgba(229, 193, 0, 0.1);
}

/* 🎨 UPDATED: Stat Card Icon to Gold */
.stat-card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--gold-gradient);
  color: #0F172A;
  margin-bottom: 1rem;
  box-shadow: 0 6px 20px rgba(229, 193, 0, 0.2);
}
.stat-card-icon i { 
  width: 28px; 
  height: 28px; 
}
.stat-card h4 {
  color: var(--text-headings) !important; /* Make it white */
  font-size: 1.2rem;
  background: none !important; /* Remove gradient */
  -webkit-text-fill-color: initial !important;
  display: block;
  gap: 0;
}
.stat-card p {
  color: var(--text-secondary);
}

/* ---
🚀 NEW: VARIETY CARD GRID STYLES
---
*/
.variety-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
  /* Remove default UL styles this replaces */
  list-style: none;
  padding-left: 0;
}
.variety-card {
  padding: 1rem;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  text-align: center;
  font-weight: 500;
  color: var(--text-primary);
  transition: all 0.2s ease;
  backdrop-filter: blur(3px);
  cursor: default;
  position: relative; /* for z-index */
}
/* 🎨 ENHANCED: Flashcard hover to Gold */
.variety-card:hover {
  transform: scale(1.05);
  background: var(--accent-gold);
  color: #0F172A;
  font-weight: 600;
  box-shadow: 0 10px 30px rgba(229, 193, 0, 0.3), 
              0 5px 15px rgba(229, 193, 0, 0.2);
  z-index: 2;
}
/* Remove bullet point styles from variety grid */
.variety-grid .variety-card {
  padding-left: 1rem;
  margin-bottom: 0;
}
.variety-grid .variety-card::before {
  display: none;
}

/* ---
🚀 NEW: PROCESS STEP ENHANCEMENTS
---
*/

/* NEW: Keyframes for pulsing line */
@keyframes pulse-line {
    from { opacity: 0.2; }
    to { opacity: 0.6; }
}

.process-steps {
  padding: 2.5rem; /* More padding */
  backdrop-filter: blur(8px);
}
.process-step {
  position: relative;
  padding: 1.5rem;
  background: rgba(255, 255, 255, 0.01);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.04);
  transition: background 0.3s ease, border-color 0.3s ease;
}
.process-step:not(:last-child) {
  margin-bottom: 2.5rem; /* More spacing */
}
.process-step:hover {
  background: rgba(255, 255, 255, 0.03);
  border-color: var(--accent-gold);
}
/* 🎨 ENHANCED: Add pulsing animation to connector line (Gold) */
.process-step:not(:last-child)::after {
  content: '';
  position: absolute;
  left: calc(1.5rem + 24px); /* 1.5rem padding + 24px (half of 48px circle) */
  top: calc(100% + 0.5rem); /* Start after the box */
  bottom: -2rem; /* End before the next box (margin-bottom) */
  width: 2px;
  background: linear-gradient(180deg, var(--accent-gold), transparent);
  animation: pulse-line 2s infinite alternate;
}
/* On mobile, remove the line */
@media (max-width: 768px) {
  .process-step:not(:last-child)::after { display: none; }
}

/* ---
🚀 NEW: TESTIMONIAL / BLOCKQUOTE STYLING
---
*/
.supplier-section blockquote {
  border-left: 4px solid var(--accent-gold);
  padding-left: 1.5rem;
  margin: 1.5rem 0;
  font-size: 1.1rem;
  font-style: italic;
  color: var(--text-secondary);
  position: relative;
}
.supplier-section blockquote::before {
  content: "“";
  font-family: 'Times New Roman', Times, serif;
  font-size: 4rem;
  color: var(--accent-gold);
  line-height: 1;
  opacity: 0.2;
  position: absolute;
  top: -0.5rem;
  left: -1rem;
}

/* ---
🚀 NEW: FAQ STYLING
---
*/
.faq-item {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 1.5rem;
  margin-bottom: 1.5rem;
}
.faq-item:last-child {
  border-bottom: 0;
  margin-bottom: 0;
  padding-bottom: 0;
}
.faq-item h4 {
  color: var(--accent-gold);
  font-weight: 600;
  margin-bottom: 0.75rem;
  /* Override other h4 styles */
  display: block;
  background: none;
  -webkit-text-fill-color: initial;
}
.faq-item p {
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ---
🚀 NEW: 2-COLUMN GRID UTILITY
---
*/
.grid-2-col {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.25rem; /* Match supplier-section margin-bottom */
}
@media (min-width: 900px) {
    .grid-2-col {
        grid-template-columns: 1fr 1fr;
        align-items: start; /* Align cards to top */
    }
    /* Ensure child sections in a grid don't have bottom margin */
    .grid-2-col > .supplier-section {
        margin-bottom: 0;
    }
}


/* ---
UI/UX ENHANCEMENTS END HERE
---
*/


/*
---
BUG FIX SECTION
---
*/
/* This rule is not needed anymore, .gallery-image handles it */
.catfish-page .gallery-image:hover { }

/* FIX: Image size
   Letting flexbox control the width via .supplier-intro rules.
   This rule is now a fallback. */
.catfish-page .img-right, .catfish-page .img-left {
    width: 100%;
    max-width: 400px;
    object-fit: cover;
    height: auto;
}

@media (max-width: 992px) {
    .catfish-page .img-right, .catfish-page .img-left { width: 100%; max-width: 100%; float: none; margin: 0 0 1rem; }
}

/* --- END OF BUG FIX ---
*/


@media (max-width: 768px) {
    .catfish-page .gallery-image { max-height: 200px; }
}

/* Alternate hero variant - This is the original light theme, keep it for other pages */
.supplier-header.alt-hero {
    background: linear-gradient(180deg, rgba(255,250,245,0.98), rgba(245,243,238,0.98));
    color: #07222a;
    box-shadow: 0 10px 30px rgba(6,22,24,0.06);
}

.supplier-header.alt-hero h1 {
    background: linear-gradient(120deg, #073642, #0b6261);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Consistent hero image class */
.hero-img { width:100%; height:auto; border-radius:12px; box-shadow: var(--shadow-glow); display:block; }