/* Marketplace Homepage Styles */
/*
 * Performance Notes:
 * - All <img> tags use loading="lazy" and decoding="async"
 * - CSS background images cannot use native lazy loading
 * - Background images: Hero, Editorial sections, Vendor spotlight
 */

/* ============================================
   DESIGN TOKENS
   ============================================ */
:root {
  /* Colors */
  --pure-black: #000000;
  --charcoal: #1a1a1a;
  --dark-gray: #333333;
  --medium-gray: #666666;
  --gray: #999999;
  --light-gray: #CCCCCC;
  --pale-gray: #E5E5E5;
  --off-white: #F8F8F8;
  --white: #FFFFFF;

  /* Brand colors */
  --gold: #B8860B;
  --gold-dark: #9B7209;
  --gold-light: #D4A637;

  /* Spacing scale (8px base) */
  --space-xs: 0.5rem;   /* 8px */
  --space-sm: 1rem;     /* 16px */
  --space-md: 1.5rem;   /* 24px */
  --space-lg: 2rem;     /* 32px */
  --space-xl: 3rem;     /* 48px */
  --space-2xl: 4rem;    /* 64px */
  --space-3xl: 6rem;    /* 96px */

  /* Typography scale */
  --text-sm: 0.875rem;  /* 14px */
  --text-base: 1rem;    /* 16px */
  --text-lg: 1.125rem;  /* 18px */
  --text-xl: 1.25rem;   /* 20px */
  --text-2xl: 1.5rem;   /* 24px */
  --text-3xl: 2rem;     /* 32px */
  --text-4xl: 2.5rem;   /* 40px */

  /* Shadows - consistent scale */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.12);
  --shadow-xl: 0 12px 32px rgba(0, 0, 0, 0.15);
  --shadow-gold: 0 4px 15px rgba(184, 134, 11, 0.3);
  --shadow-gold-lg: 0 6px 20px rgba(184, 134, 11, 0.4);

  /* Transitions */
  --transition-fast: 150ms ease;
  --transition: 200ms ease;
  --transition-slow: 300ms ease;

  /* Border radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-full: 50%;

  /* Legacy aliases for compatibility */
  --border-radius: var(--radius-md);
}

/* ============================================
   BASE STYLES
   ============================================ */
h1, h2, h3, h4 {
  font-family: Georgia, 'Times New Roman', serif;
  font-weight: 400;
  line-height: 1.2;
}

/* ============================================
   ACCESSIBILITY
   ============================================ */
.skip-to-content {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--gold);
  color: white;
  padding: var(--space-xs) var(--space-sm);
  text-decoration: none;
  font-weight: 600;
  z-index: 10000;
  border-radius: 0 0 var(--radius-sm) 0;
  transition: top var(--transition);
}

.skip-to-content:focus {
  top: 0;
  outline: 3px solid var(--gold-dark);
  outline-offset: 2px;
}

/* ============================================
   BREADCRUMB NAVIGATION
   ============================================ */
.breadcrumb-container {
  background: var(--off-white);
  border-bottom: 1px solid var(--pale-gray);
  padding: var(--space-sm) 0;
}

.breadcrumb {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 var(--space-lg);
  list-style: none;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-xs);
}

.breadcrumb__item {
  display: flex;
  align-items: center;
  font-size: var(--text-sm);
  color: var(--medium-gray);
}

.breadcrumb__item:not(:last-child)::after {
  content: '›';
  margin-left: var(--space-xs);
  color: var(--gray);
  font-size: var(--text-lg);
  font-weight: 300;
}

.breadcrumb__link {
  color: var(--medium-gray);
  text-decoration: none;
  transition: color var(--transition);
}

.breadcrumb__link:hover {
  color: var(--gold);
  text-decoration: underline;
}

.breadcrumb__link:focus {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
  border-radius: 2px;
}

.breadcrumb__item--active {
  color: var(--charcoal);
  font-weight: 500;
}

@media (max-width: 768px) {
  .breadcrumb {
    padding: 0 var(--space-md);
    font-size: 0.8125rem;
  }
}

/* ============================================
   BACK TO TOP BUTTON
   ============================================ */
.back-to-top {
  position: fixed;
  bottom: var(--space-lg);
  right: var(--space-lg);
  width: 3rem;
  height: 3rem;
  background: var(--gold);
  color: white;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-size: 1.5rem;
  line-height: 1;
  box-shadow: var(--shadow-md);
  transition: all var(--transition);
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
}

.back-to-top:hover {
  background: var(--gold-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.back-to-top:focus {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}

.back-to-top:active {
  transform: translateY(0);
}

/* CSS-only visibility - always visible since we can't detect scroll without JS */
main .back-to-top {
  opacity: 1;
  pointer-events: auto;
}

@media (max-width: 768px) {
  .back-to-top {
    bottom: var(--space-md);
    right: var(--space-md);
    width: 2.5rem;
    height: 2.5rem;
    font-size: 1.25rem;
  }
}

/* Hero Section - Magazine Style */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding: var(--space-2xl) var(--space-lg);
  margin-bottom: 0;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to left,
    rgba(0, 0, 0, 0.6) 0%,
    rgba(0, 0, 0, 0.75) 50%,
    rgba(0, 0, 0, 0.85) 100%
  );
  z-index: 0;
}

.hero-content {
  max-width: 1400px;
  margin: 0 auto;
  width: 100%;
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  min-height: 80vh;
}

.hero-text {
  max-width: 580px;
  padding: var(--space-3xl) 0;
  background: transparent;
  border-left: none;
  box-shadow: none;
  text-align: left;
}

.hero h1 {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  margin-bottom: var(--space-lg);
  letter-spacing: -0.02em;
  color: white;
  line-height: 1.15;
  font-weight: 300;
  text-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

.hero-subtitle {
  font-size: var(--text-xl);
  color: rgba(255, 255, 255, 0.92);
  margin-bottom: var(--space-xl);
  line-height: 1.8;
  font-weight: 300;
  text-shadow: 0 2px 15px rgba(0, 0, 0, 0.4);
}

.hero-secondary {
  font-size: var(--text-base);
  color: var(--medium-gray);
  margin-bottom: var(--space-lg);
  line-height: 1.6;
  font-style: italic;
  border-left: 2px solid var(--gold);
  padding-left: var(--space-md);
}

.hero-cta {
  display: flex;
  gap: var(--space-md);
  margin-top: var(--space-lg);
  align-items: center;
  flex-wrap: wrap;
}

/* Buttons */
.btn {
  padding: var(--space-sm) var(--space-xl);
  font-size: var(--text-base);
  font-weight: 500;
  text-decoration: none;
  transition: var(--transition);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border-radius: 6px;
  display: inline-block;
}

.btn-primary {
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
  color: var(--white);
  border: none;
  box-shadow: var(--shadow-gold);
  padding: 1rem 2.5rem;
  font-size: var(--text-lg);
  font-weight: 600;
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--gold-dark) 0%, var(--gold) 100%);
  transform: translateY(-3px);
  box-shadow: var(--shadow-gold-lg);
}

.btn-primary:focus {
  outline: 3px solid var(--gold-light);
  outline-offset: 2px;
}

.btn-link {
  background: transparent;
  color: var(--dark-gray);
  border: none;
  padding: 0;
  text-transform: none;
  letter-spacing: normal;
  text-decoration: underline;
  font-weight: 400;
  transition: color var(--transition);
}

.btn-link:hover {
  color: var(--gold-dark);
}

.btn-link:focus {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
  border-radius: 2px;
}

/* Hero Search Bar Styles */
.hero-search {
  margin-top: var(--space-2xl);
  margin-bottom: 0;
  max-width: 700px;
}

.hero-search-form {
  display: flex;
  gap: 0;
  background: rgba(255, 255, 255, 0.45);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: var(--radius-lg);
  padding: 6px;
  box-shadow: var(--shadow-md);
  transition: all var(--transition-slow);
}

.hero-search-form:focus-within {
  background: rgba(255, 255, 255, 0.55);
  border-color: rgba(255, 255, 255, 0.5);
  box-shadow: var(--shadow-xl);
}

.hero-search-input {
  flex: 1;
  border: none;
  padding: 1rem 1.25rem;
  font-size: var(--text-base);
  background: transparent;
  outline: none;
  color: white;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.hero-search-input::placeholder {
  color: rgba(255, 255, 255, 0.75);
}

.hero-search-button {
  background: white;
  color: var(--charcoal);
  border: none;
  padding: 1rem 2rem;
  border-radius: var(--radius-md);
  font-size: var(--text-base);
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  text-transform: none;
  letter-spacing: 0.01em;
}

.hero-search-button:hover {
  background: var(--gold);
  color: white;
  box-shadow: var(--shadow-gold-lg);
}

.hero-search-button:focus {
  outline: 3px solid var(--gold-light);
  outline-offset: 2px;
}

.quick-searches {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: var(--space-md);
  margin-top: var(--space-lg);
  flex-wrap: wrap;
}

.quick-search-label {
  font-size: 0.9rem;
  color: var(--dark-gray);
  font-weight: 500;
}

.quick-search-link {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: white;
  text-decoration: none;
  padding: 0.625rem 1.5rem;
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  font-weight: 500;
  transition: all var(--transition);
}

.quick-search-link:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.45);
  color: white;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.quick-search-link:focus {
  outline: 2px solid white;
  outline-offset: 2px;
}

/* Quick Categories Grid */
.quick-categories {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: var(--space-md);
  margin-top: var(--space-md);
}

.quick-category-card {
  background: white;
  border: 2px solid var(--pale-gray);
  border-radius: var(--radius-md);
  padding: var(--space-md);
  text-decoration: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: all var(--transition-slow);
  position: relative;
  overflow: hidden;
}

.quick-category-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  transform: scaleX(0);
  transition: transform var(--transition-slow);
}

.quick-category-card:hover::before {
  transform: scaleX(1);
}

.quick-category-card:hover {
  border-color: var(--gold);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.quick-category-card:focus {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
}

.quick-category-name {
  font-weight: 600;
  color: var(--charcoal);
  font-size: var(--text-base);
  margin-bottom: 4px;
}

.quick-category-count {
  font-size: 0.85rem;
  color: var(--medium-gray);
}

.quick-category-all {
  background: linear-gradient(135deg, var(--gold-light) 0%, var(--gold) 100%);
  border-color: var(--gold-dark);
  color: white;
}

.quick-category-all .quick-category-name {
  color: white;
}

.quick-category-all:hover {
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
}

/* Section Base - Match main site */
.section {
  padding: var(--space-3xl) 0;
  position: relative;
}

.section::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 10%;
  right: 10%;
  height: 1px;
  background: var(--pale-gray);
}

.section:last-of-type::after {
  display: none;
}

.section:nth-child(even) {
  background: var(--off-white);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

.container-narrow {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

/* Section Headers - Match main site */
.section-header {
  text-align: center;
  margin-bottom: var(--space-2xl);
}

.section-header h2 {
  font-size: var(--text-4xl);
  margin-bottom: var(--space-md);
  position: relative;
  display: inline-block;
}

.section-header h2::after {
  content: '';
  position: absolute;
  bottom: -12px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 2px;
  background: var(--gold);
}

.section-header p {
  font-size: var(--text-lg);
  color: var(--medium-gray);
  max-width: 700px;
  margin: var(--space-lg) auto 0;
  line-height: 1.7;
}

/* Content Block - Academic style for body text */
.content-block {
  max-width: 800px;
  margin: 0 auto;
}

.content-block p {
  font-size: var(--text-lg);
  line-height: 1.8;
  color: var(--dark-gray);
  margin-bottom: var(--space-md);
}

.content-block p:last-of-type {
  margin-bottom: 0;
}

/* Emphasis Box - Match organization page style */
.emphasis-box {
  background: rgba(184, 134, 11, 0.08);
  border-left: 3px solid var(--gold);
  padding: var(--space-lg);
  border-radius: 0 var(--border-radius) var(--border-radius) 0;
  margin: var(--space-xl) 0;
}

.emphasis-box p {
  margin-bottom: var(--space-sm);
  line-height: 1.7;
}

.emphasis-box p:last-child {
  margin-bottom: 0;
}

/* Governance/Standards List Style - Match organization page */
.standards-list {
  list-style: none;
  padding: 0;
  max-width: 900px;
  margin: var(--space-2xl) auto 0;
}

.standard-item {
  margin-bottom: var(--space-xl);
  padding-left: var(--space-lg);
  border-left: 3px solid var(--gold);
}

.standard-item h3 {
  margin-top: 0;
  margin-bottom: var(--space-sm);
  color: var(--charcoal);
  font-size: var(--text-xl);
}

.standard-item p {
  margin: 0;
  line-height: 1.7;
  color: var(--dark-gray);
}

/* Process Steps - Visual with icons */
.process-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--space-xl);
  margin-top: var(--space-2xl);
}

.process-step {
  text-align: center;
  padding: var(--space-xl);
  background: white;
  border: 1px solid var(--pale-gray);
  border-radius: var(--radius-md);
  transition: all var(--transition-slow);
  position: relative;
}

.process-step:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl);
}

.process-step__number {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: var(--white);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-3xl);
  font-weight: 300;
  margin: 0 auto var(--space-md);
  font-family: Georgia, 'Times New Roman', serif;
  box-shadow: var(--shadow-gold);
}

.process-step h3 {
  font-size: var(--text-xl);
  margin-bottom: var(--space-md);
  color: var(--charcoal);
  font-weight: 400;
}

.process-step p {
  color: var(--dark-gray);
  line-height: 1.7;
  font-size: var(--text-base);
}

/* Visual Stats Section */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-xl);
  margin: var(--space-3xl) 0;
  text-align: center;
}

.stat-item {
  padding: var(--space-xl);
}

.stat-number {
  font-size: 3.5rem;
  font-weight: 300;
  color: var(--gold);
  font-family: Georgia, 'Times New Roman', serif;
  line-height: 1;
  margin-bottom: var(--space-sm);
}

.stat-label {
  font-size: var(--text-sm);
  color: var(--dark-gray);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* Illustrated Icons for Standards */
.standards-illustrated {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-2xl);
  margin-top: var(--space-2xl);
}

.standard-card {
  text-align: center;
  padding: var(--space-2xl);
  background: white;
  border: 1px solid var(--pale-gray);
  border-radius: var(--radius-md);
  transition: all var(--transition-slow);
  position: relative;
  overflow: hidden;
}

.standard-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--gold) 0%, var(--gold-dark) 100%);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition-slow);
}

.standard-card:hover::before {
  transform: scaleX(1);
}

.standard-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
}

.standard-card h3 {
  font-size: var(--text-xl);
  margin-bottom: var(--space-md);
  color: var(--charcoal);
  font-weight: 400;
}

.standard-card p {
  font-size: var(--text-base);
  line-height: 1.7;
  color: var(--dark-gray);
}

/* Visual Process Flow */
.process-flow {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-lg);
  margin-top: var(--space-2xl);
  padding-top: var(--space-xl);
}

.process-flow::before {
  content: '';
  position: absolute;
  top: 80px;
  left: 12.5%;
  right: 12.5%;
  height: 2px;
  background: linear-gradient(90deg, var(--gold) 0%, var(--gold-light) 50%, var(--gold) 100%);
  z-index: 0;
}

/* Editorial Split Sections */
.editorial-split {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 0;
  min-height: 600px;
}

.editorial-split--reverse {
  grid-template-columns: 7fr 5fr;
}

.editorial-split__image {
  background-size: cover;
  background-position: center;
  min-height: 600px;
  position: relative;
}

.editorial-split__content {
  padding: var(--space-3xl);
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: var(--white);
}

.editorial-split--reverse .editorial-split__content {
  background: var(--off-white);
}

.editorial-tag {
  display: inline-block;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--gold);
  font-weight: 600;
  margin-bottom: var(--space-md);
  padding-bottom: var(--space-sm);
  border-bottom: 2px solid var(--gold);
}

.editorial-title {
  font-size: var(--text-4xl);
  margin-bottom: var(--space-lg);
  color: var(--charcoal);
  font-weight: 300;
  line-height: 1.2;
}

.editorial-text {
  font-size: var(--text-lg);
  line-height: 1.8;
  color: var(--dark-gray);
  margin-bottom: var(--space-md);
}

/* Editorial links row */
.editorial-links {
  display: flex;
  gap: var(--space-lg);
  align-items: center;
  flex-wrap: wrap;
  margin-top: var(--space-md);
}

/* Dark overlay for editorial images */
.editorial-split__image--food::after,
.editorial-split__image--tools::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.25);
  pointer-events: none;
}

/* Services section: composite image from two 4:5 portraits */
.services-image-composite {
  position: absolute;
  inset: 0;
  display: flex;
  width: 100%;
  height: 100%;
}

.services-image {
  flex: 1 1 50%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* Dark overlay for services composite */
.services-image-composite::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.25);
  pointer-events: none;
}

/* Dark overlay for vendor spotlight image */
.vendor-spotlight__image--main::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.25);
  pointer-events: none;
  z-index: 1;
}

/* Philosophy Icons Grid */
.philosophy-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-2xl);
  margin: var(--space-3xl) 0;
}

.philosophy-item {
  text-align: center;
  padding: var(--space-xl);
}

.philosophy-item h3 {
  font-size: var(--text-xl);
  margin-bottom: var(--space-md);
  color: var(--charcoal);
  font-weight: 400;
}

.philosophy-item p {
  font-size: var(--text-base);
  line-height: 1.7;
  color: var(--dark-gray);
}

/* Decorative Section Dividers */
.section-divider {
  text-align: center;
  padding: var(--space-2xl) 0;
}

.section-divider__ornament {
  display: inline-block;
  font-size: 2rem;
  color: var(--gold);
  opacity: 0.5;
  letter-spacing: 1rem;
}

/* Background Pattern for Visual Interest */
.pattern-bg {
  position: relative;
}

.pattern-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0.03;
  background-image:
    repeating-linear-gradient(45deg, transparent, transparent 35px, var(--gold) 35px, var(--gold) 36px),
    repeating-linear-gradient(-45deg, transparent, transparent 35px, var(--gold) 35px, var(--gold) 36px);
  pointer-events: none;
}

/* Vendor Spotlight Section */
.vendor-spotlight {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  margin: var(--space-3xl) 0;
  min-height: 500px;
}

.vendor-spotlight__image {
  background-size: cover;
  background-position: center;
  min-height: 500px;
}

.vendor-spotlight__content {
  padding: var(--space-3xl);
  background: var(--off-white);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.vendor-spotlight__label {
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-size: 0.75rem;
  color: var(--gold);
  margin-bottom: var(--space-md);
  font-weight: 600;
}

.vendor-spotlight__title {
  font-size: var(--text-4xl);
  margin-bottom: var(--space-md);
  color: var(--charcoal);
  font-weight: 300;
  line-height: 1.2;
}

.vendor-spotlight__description {
  font-size: var(--text-lg);
  line-height: 1.8;
  color: var(--dark-gray);
  margin-bottom: var(--space-xl);
}

/* Category Grid - Magazine Style with varied sizes */
.infrastructure-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--space-lg);
  margin-top: var(--space-2xl);
}

.infra-card {
  background: var(--white);
  border: none;
  overflow: hidden;
  transition: var(--transition);
  position: relative;
  box-shadow: 0 2px 15px rgba(0,0,0,0.08);
  text-decoration: none;
  display: block;
}

/* Magazine-style varied sizing */
.infra-card:nth-child(1) { grid-column: span 8; }
.infra-card:nth-child(2) { grid-column: span 4; }
.infra-card:nth-child(3) { grid-column: span 4; }
.infra-card:nth-child(4) { grid-column: span 8; }
.infra-card:nth-child(5) { grid-column: span 6; }
.infra-card:nth-child(6) { grid-column: span 6; }
.infra-card:nth-child(n+7) { grid-column: span 4; }

.infra-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 35px rgba(0,0,0,0.15);
}

.infra-image {
  height: 350px;
  background: var(--off-white);
  overflow: hidden;
  position: relative;
}

.infra-card:nth-child(2) .infra-image,
.infra-card:nth-child(3) .infra-image {
  height: 400px;
}

.infra-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.infra-card:hover .infra-image img {
  transform: scale(1.05);
}

/* Overlay text on image - magazine style */
.infra-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: var(--space-xl);
  background: linear-gradient(to top, rgba(0,0,0,0.85), transparent);
  color: white;
}

.infra-content h3 {
  font-size: var(--text-3xl);
  margin-bottom: var(--space-sm);
  color: white;
  font-weight: 300;
  letter-spacing: -0.02em;
}

.infra-content p {
  color: rgba(255,255,255,0.9);
  margin-bottom: var(--space-sm);
  line-height: 1.5;
  font-size: var(--text-base);
}

.infra-link {
  display: inline-flex;
  align-items: center;
  color: var(--gold-light);
  text-decoration: none;
  font-weight: 500;
  transition: var(--transition);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.85rem;
}

.infra-link::after {
  content: '→';
  margin-left: 8px;
  transition: var(--transition);
}

.infra-card:hover .infra-link {
  color: var(--gold);
  gap: 4px;
}

/* Featured Products - Magazine Grid */
.product-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--space-lg);
  margin-top: var(--space-2xl);
}

/* Varied sizing for visual interest */
.product-card:nth-child(1) { grid-column: span 6; }
.product-card:nth-child(2) { grid-column: span 6; }
.product-card:nth-child(3) { grid-column: span 4; }
.product-card:nth-child(4) { grid-column: span 4; }
.product-card:nth-child(5) { grid-column: span 4; }
.product-card:nth-child(n+6) { grid-column: span 3; }

.product-card {
  background: var(--white);
  border: none;
  overflow: hidden;
  transition: all 0.4s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  position: relative;
}

.product-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 45px rgba(0,0,0,0.15);
}

.product-card__image {
  height: 380px;
  overflow: hidden;
  position: relative;
  background: var(--off-white);
}

.product-card:nth-child(3) .product-card__image,
.product-card:nth-child(4) .product-card__image,
.product-card:nth-child(5) .product-card__image {
  height: 320px;
}

.product-card:nth-child(n+6) .product-card__image {
  height: 280px;
}

.product-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.product-card:hover .product-card__img {
  transform: scale(1.1);
}

.product-card__badge {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: var(--gold);
  color: var(--white);
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.4rem 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  box-shadow: 0 4px 12px rgba(184, 134, 11, 0.4);
}

.product-card__content {
  padding: var(--space-xl);
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  background: white;
}

.product-card__title {
  font-size: var(--text-xl);
  font-weight: 400;
  color: var(--charcoal);
  margin-bottom: var(--space-md);
  line-height: 1.3;
}

.product-card__description {
  font-size: var(--text-base);
  color: var(--medium-gray);
  margin-bottom: var(--space-md);
  line-height: 1.7;
  flex-grow: 1;
}

.product-card__footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
  padding-top: var(--space-md);
}

.product-card__price {
  font-size: var(--text-2xl);
  font-weight: 400;
  color: var(--gold-dark);
  font-family: Georgia, 'Times New Roman', serif;
}

.product-card__link {
  color: var(--charcoal);
  text-decoration: none;
  font-weight: 500;
  transition: var(--transition);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.8rem;
  border-bottom: 2px solid var(--gold);
  padding-bottom: 4px;
}

.product-card__link:hover {
  color: var(--gold-dark);
  border-bottom-color: var(--gold-dark);
}

.view-all {
  text-align: center;
  margin-top: var(--space-3xl);
}

/* Pull Quote Style - Magazine Editorial */
.pull-quote {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: var(--text-2xl);
  line-height: 1.5;
  color: var(--charcoal);
  font-style: italic;
  font-weight: 300;
  padding: var(--space-2xl) var(--space-3xl);
  margin: var(--space-3xl) 0;
  border-left: 4px solid var(--gold);
  background: rgba(184, 134, 11, 0.03);
  position: relative;
}

.pull-quote::before {
  content: '"';
  font-size: 4rem;
  position: absolute;
  top: 0.5rem;
  left: 0.5rem;
  color: var(--gold);
  opacity: 0.3;
  font-family: Georgia, serif;
}

/* ============================================
   RESPONSIVE DESIGN - Mobile & Tablet
   ============================================ */

/* Tablet & Below (1024px) */
@media (max-width: 1024px) {
  .infrastructure-grid,
  .product-grid {
    grid-template-columns: repeat(6, 1fr);
  }

  /* Override nth-child grid-column rules */
  .infrastructure-grid .infra-card,
  .infrastructure-grid .infra-card:nth-child(n),
  .product-grid .product-card,
  .product-grid .product-card:nth-child(n) {
    grid-column: span 6;
  }

  .infrastructure-grid .infra-image {
    height: 300px;
  }

  .product-grid .product-card__image {
    height: 320px;
  }
}

/* Medium Screens (968px) */
@media (max-width: 968px) {
  .process-flow {
    grid-template-columns: 1fr;
  }

  .process-flow::before {
    display: none;
  }

  /* Mobile: Overlay text on images for editorial sections */
  .editorial-split,
  .editorial-split--reverse {
    display: block;
    position: relative;
    min-height: 550px;
  }

  .editorial-split__image {
    position: absolute;
    inset: 0;
    min-height: 550px;
    z-index: 0;
  }

  /* Add dark overlay for text readability */
  .editorial-split__image::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
      to bottom,
      rgba(0, 0, 0, 0.75) 0%,
      rgba(0, 0, 0, 0.65) 100%
    );
    z-index: 1;
  }

  .editorial-split .editorial-split__content,
  .editorial-split--reverse .editorial-split__content {
    position: relative;
    z-index: 2;
    background: transparent;
    padding: var(--space-2xl) var(--space-lg);
    min-height: 550px;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  /* Make all text white and readable on mobile */
  .editorial-split__content .editorial-tag {
    color: var(--gold-light);
    border-bottom-color: var(--gold-light);
  }

  .editorial-split__content .editorial-title {
    color: white;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
  }

  .editorial-split__content .editorial-text {
    color: white;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.8);
  }

  .editorial-split__content .btn-link {
    color: white;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.8);
  }

  .editorial-split__content .btn {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
  }

  .philosophy-grid {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }

  /* Mobile: Overlay text on image for vendor spotlight section */
  .vendor-spotlight {
    display: block;
    position: relative;
    min-height: 550px;
  }

  .vendor-spotlight__image {
    position: absolute;
    inset: 0;
    min-height: 550px;
    z-index: 0;
  }

  /* Add dark overlay for text readability */
  .vendor-spotlight__image::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
      to bottom,
      rgba(0, 0, 0, 0.75) 0%,
      rgba(0, 0, 0, 0.65) 100%
    );
    z-index: 1;
  }

  .vendor-spotlight .vendor-spotlight__content {
    position: relative;
    z-index: 2;
    background: transparent;
    padding: var(--space-2xl) var(--space-lg);
    min-height: 550px;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  /* Make all text white and readable on mobile */
  .vendor-spotlight__content .vendor-tag {
    color: var(--gold-light);
  }

  .vendor-spotlight__content .vendor-spotlight__title {
    color: white;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
  }

  .vendor-spotlight__content .vendor-spotlight__description {
    color: white;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.8);
  }

  .vendor-spotlight__content .btn-link {
    color: white;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.8);
  }
}

/* Testimonials Section */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: var(--space-lg);
  margin-bottom: var(--space-2xl);
}

.testimonial-card {
  background: white;
  border: 1px solid var(--pale-gray);
  border-radius: var(--border-radius);
  padding: var(--space-xl);
  transition: transform var(--transition), box-shadow var(--transition);
}

.testimonial-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.testimonial-quote {
  margin-bottom: var(--space-lg);
  position: relative;
}

.testimonial-quote::before {
  content: '"';
  position: absolute;
  top: -0.5rem;
  left: -0.75rem;
  font-size: 4rem;
  color: var(--gold);
  opacity: 0.2;
  font-family: Georgia, serif;
  line-height: 1;
}

.testimonial-quote p {
  font-size: var(--text-base);
  line-height: 1.7;
  color: var(--dark-gray);
  font-style: italic;
  margin: 0;
  padding-left: var(--space-md);
}

.testimonial-author {
  border-top: 1px solid var(--pale-gray);
  padding-top: var(--space-md);
}

.testimonial-author__name {
  font-weight: 600;
  color: var(--charcoal);
  margin-bottom: 0.25rem;
}

.testimonial-author__role {
  font-size: 0.875rem;
  color: var(--medium-gray);
}

/* Trust Stats */
.trust-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-lg);
  padding: var(--space-2xl);
  background: white;
  border-radius: var(--border-radius);
  border: 2px solid var(--gold);
}

.trust-stat {
  text-align: center;
}

.trust-stat__icon {
  font-size: 2rem;
  color: var(--gold);
  margin-bottom: var(--space-sm);
}

.trust-stat__label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--charcoal);
  line-height: 1.4;
}

@media (max-width: 992px) {
  .testimonials-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-md);
  }

  .testimonial-card {
    padding: var(--space-lg);
  }
}

@media (max-width: 768px) {
  .testimonials-grid {
    grid-template-columns: 1fr;
  }

  .trust-stats {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-md);
    padding: var(--space-lg);
  }

  .trust-stat__label {
    font-size: 0.8125rem;
  }
}

/* Mobile (768px) */
@media (max-width: 768px) {
  .hero {
    min-height: 60vh;
  }

  .hero-text {
    max-width: 100%;
    padding: var(--space-lg);
  }

  .hero h1 {
    font-size: 2rem;
  }

  .hero-cta {
    flex-direction: column;
    align-items: stretch;
  }

  .btn {
    width: 100%;
    text-align: center;
  }

  .hero-search {
    max-width: 100%;
  }

  .hero-search-form {
    flex-direction: column;
    border-radius: var(--border-radius);
    padding: var(--space-sm);
  }

  .hero-search-button {
    width: 100%;
    border-radius: var(--border-radius);
  }

  .quick-categories {
    grid-template-columns: repeat(2, 1fr);
  }

  .infrastructure-grid {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }

  /* Product grid: 2 columns on mobile for better browsing */
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-sm);
  }

  /* Override nth-child grid rules for mobile */
  .infrastructure-grid .infra-card,
  .infrastructure-grid .infra-card:nth-child(n) {
    grid-column: span 1;
  }

  .product-grid .product-card,
  .product-grid .product-card:nth-child(n) {
    grid-column: span 1;
  }

  .infrastructure-grid .infra-image {
    height: 250px;
  }

  .product-grid .product-card__image {
    height: 180px;
  }

  /* Adjust product card content for 2-column layout */
  .product-grid .product-card__content {
    padding: var(--space-md);
  }

  .product-grid .product-card__title {
    font-size: 0.875rem;
    line-height: 1.3;
    margin-bottom: 0.5rem;
  }

  .product-grid .product-card__description {
    font-size: 0.75rem;
    line-height: 1.5;
    margin-bottom: 0.5rem;
  }

  .product-grid .product-card__footer {
    padding-top: 0.5rem;
  }

  .product-grid .product-card__price {
    font-size: 0.875rem;
  }

  .product-grid .product-card__link {
    font-size: 0.75rem;
  }

  .process-steps {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }

  .pull-quote {
    font-size: var(--text-xl);
    padding: var(--space-lg) var(--space-md);
    padding-left: var(--space-xl);
  }

  .section-header h2 {
    font-size: var(--text-3xl);
  }

  /* Partner CTA Section Mobile */
  .partner-cta-section.section {
    min-height: 50vh;
  }

  .partner-cta-section .partner-cta-wrapper {
    min-height: 50vh;
  }

  .partner-cta-section .partner-cta-content {
    max-width: 100%;
    padding: var(--space-lg) var(--space-md);
  }

  .partner-cta-section .partner-cta-box {
    padding: var(--space-md);
  }

  .partner-cta-section .partner-cta-heading {
    font-size: 1.5rem;
    margin-bottom: 1rem;
  }

  .partner-cta-section .partner-cta-text {
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 0.75rem;
  }

  .partner-cta-gradient {
    background: rgba(0, 0, 0, 0.80);
  }

  .hero-text {
    text-align: center;
    max-width: 100%;
  }

  .hero-content {
    justify-content: center;
  }

  .quick-searches {
    justify-content: center;
  }
}

/* ============================================
   UTILITY CLASSES
   ============================================ */

/* Section variants */
.section--no-padding {
  padding: 0;
}

.section--spaced {
  margin-top: var(--space-3xl);
}

/* Quick categories section */
.section--categories {
  padding: var(--space-xl) 0;
  background: var(--off-white);
}

/* Container variants */
.container--wide {
  max-width: 1400px;
}

/* Empty state text */
.empty-state-text {
  text-align: center;
  color: var(--medium-gray);
  padding: var(--space-lg);
}

/* Product card link wrapper */
.product-card__link-wrapper {
  text-decoration: none;
  color: inherit;
  display: contents;
}

/* Product placeholder image */
.product-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #f8f8f8 0%, #e8e8e8 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.product-placeholder__pattern {
  position: absolute;
  inset: 0;
  opacity: 0.04;
  background-image: repeating-linear-gradient(45deg, transparent, transparent 15px, #B8860B 15px, #B8860B 16px);
}

.product-placeholder__icon {
  opacity: 0.3;
}

/* Price unit styling */
.product-card__price-unit {
  font-size: 0.7em;
  color: var(--medium-gray);
}

/* ============================================
   PARTNER CTA SECTION
   ============================================ */

.partner-cta-section {
  padding: 0;
  position: relative;
}

.partner-cta-wrapper {
  position: relative;
  min-height: 60vh;
  overflow: hidden;
}

.partner-cta-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
}

.partner-cta-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.7) 50%, transparent 70%);
  display: flex;
  align-items: center;
}

.partner-cta-content {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
  padding: var(--space-3xl) var(--space-lg);
}

.partner-cta-inner {
  max-width: 600px;
  color: white;
}

.partner-cta-box {
  padding: var(--space-2xl);
  background: rgba(0, 0, 0, 0.3);
  border-left: 4px solid var(--gold);
  backdrop-filter: blur(2px);
  border-radius: 0 var(--border-radius) var(--border-radius) 0;
}

.partner-cta-heading {
  font-size: var(--text-4xl);
  margin-bottom: var(--space-lg);
  color: white;
  font-weight: 300;
}

.partner-cta-text {
  font-size: var(--text-lg);
  line-height: 1.8;
  margin-bottom: var(--space-md);
  color: white;
}

.partner-cta-text--secondary {
  color: rgba(255, 255, 255, 0.95);
  margin-bottom: var(--space-xl);
}

.partner-cta-btn {
  font-size: var(--text-lg);
}
