/* ===========================
   Products & Services Page Styles
   Equus Energy – follows who-we-are & refining theme
   =========================== */

:root {
  --brand-gradient: linear-gradient(135deg, var(--brand), var(--brand-2));
  --transition-smooth: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  --shadow-hover: 0 20px 40px color-mix(in srgb, var(--brand) 20%, transparent);
  --glass-bg: rgba(255, 255, 255, 0.1);
  --glass-border: rgba(255, 255, 255, 0.2);
}

html[data-theme="dark"] {
  --glass-bg: rgba(0, 0, 0, 0.2);
  --glass-border: rgba(255, 255, 255, 0.1);
}

/* ========== CONTAINER & SECTION HEADER ========== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  position: relative;
  z-index: 2;
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-header.center {
  text-align: center;
}

.section-header h2 {
  font-size: clamp(2rem, 5vw, 2.8rem);
  margin-bottom: 20px;
  color: var(--text);
  position: relative;
  display: inline-block;
}

.section-header p {
  font-size: 1.1rem;
  color: var(--muted);
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.8;
}

.section-tag {
  display: inline-block;
  padding: 8px 22px;
  background: color-mix(in srgb, var(--brand) 15%, transparent);
  color: var(--brand);
  border-radius: 40px;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 20px;
  border: 1px solid color-mix(in srgb, var(--brand) 30%, transparent);
  backdrop-filter: blur(10px);
}

.section-tag.light {
  background: rgba(255, 255, 255, 0.15);
  color: white;
  border-color: rgba(255, 255, 255, 0.3);
}

/* ========== HERO ========== */
.ps-hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #0b0f14 0%, #1a1f26 100%);
  overflow: hidden;
  padding: 120px 20px;
}

.ps-hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image:
   
    url('../assets/Image-Equus/Equus-Pic-Mocks/imgr45.jpg');
  background-size: cover, cover, cover;
  background-position: center;
  background-blend-mode: overlay;
  opacity: 0.7;
  animation: zoomBg 30s infinite alternate;
}

@keyframes zoomBg {
  0% { transform: scale(1); }
  100% { transform: scale(1.1); }
}

.ps-hero-content {
  position: relative;
  z-index: 3;
  max-width: 1000px;
  margin: 0 auto;
  text-align: center;
  color: white;
}

.hero-badge {
  display: inline-block;
  padding: 10px 28px;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: white;
  border-radius: 50px;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 30px;
  box-shadow: 0 10px 30px rgba(237, 46, 46, 0.4);
  animation: floatBadge 3s ease-in-out infinite;
}

@keyframes floatBadge {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

.ps-hero h1 {
  font-size: clamp(3rem, 8vw, 5rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 25px;

  letter-spacing: -0.02em;
  background: linear-gradient(135deg, #ffffff, #f0f0f0);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-sub {
  font-size: clamp(1.1rem, 3vw, 1.4rem);
  opacity: 0.95;
  max-width: 800px;
  margin: 0 auto 50px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.9);
}

.hero-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 50px;
  flex-wrap: wrap;
  margin-top: 20px;
}

.stat-brick {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.stat-brick-number {
  font-size: clamp(2.5rem, 6vw, 3.5rem);
  font-weight: 800;
  color: white;
  line-height: 1;
  margin-bottom: 8px;
  background: linear-gradient(135deg, #fff, rgba(255, 255, 255, 0.8));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  
}

.stat-brick-label {
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: rgba(255, 255, 255, 0.8);
  font-weight: 500;
}

.hero-scroll {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  color: white;
  font-size: 0.95rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  opacity: 0.8;
  z-index: 4;
  animation: scrollBounce 2.5s infinite;
}

@keyframes scrollBounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(10px); }
}

/* ========== PRODUCT CATEGORIES ========== */
.ps-categories {
  padding: 120px 0;
  background: var(--bg);
  position: relative;
  overflow: hidden;
}

.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.category-card {
  background: var(--surface);
  padding: 40px 30px;
  border-radius: 30px;
  border: 1px solid color-mix(in srgb, var(--muted) 15%, transparent);
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
  text-align: center;
}

.category-card:hover {
  transform: translateY(-15px);
  border-color: var(--brand);
  box-shadow: var(--shadow-hover);
}

.category-icon {
  width: 90px;
  height: 90px;
  background: var(--brand-gradient);
  border-radius: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 25px;
}

.category-icon i {
  font-size: 2.8rem;
  color: white;
}

.category-card h3 {
  font-size: 1.5rem;
  margin-bottom: 15px;
  color: var(--text);
  font-weight: 700;
}

.category-card p {
  font-size: 0.95rem;
  color: var(--muted);
  margin-bottom: 20px;
  line-height: 1.6;
}

.category-spec {
  display: inline-block;
  padding: 8px 18px;
  background: color-mix(in srgb, var(--brand) 10%, transparent);
  color: var(--brand);
  border-radius: 40px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 1px;
  border: 1px solid color-mix(in srgb, var(--brand) 20%, transparent);
}

/* ========== DYNAMIC PRODUCT CATALOG (Axios) ========== */
.ps-dynamic-catalog {
  padding: 120px 0;
  background-image: url('../assets/Image-Equus/img24.jpg');
  background-size: cover;
  background-position: center;

  background-repeat: no-repeat;
  background-color: var(--brand-2);
  color: white;
  position: relative;
}

.ps-dynamic-catalog .section-header h2,
.ps-dynamic-catalog .section-header p {
  color: white;
}

.catalog-loading,
.catalog-error {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px;
  background: rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(10px);
  border-radius: 30px;
  margin-bottom: 30px;
}

.catalog-loading i {
  color: white;
  font-size: 3rem;
  margin-bottom: 20px;
}

.catalog-error i {
  color: #ff6b6b;
  font-size: 3rem;
  margin-bottom: 20px;
}

.catalog-loading span,
.catalog-error span {
  color: white;
  font-size: 1.1rem;
}

.catalog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.product-card {
  background: rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(10px);
  border-radius: 30px;
  padding: 35px 25px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  transition: var(--transition-smooth);
  color: white;
}

.product-card:hover {
  transform: translateY(-10px);
  background: rgba(255, 255, 255, 0.35);
  border-color: rgba(255, 255, 255, 0.5);
  box-shadow: 0 30px 50px rgba(0, 0, 0, 0.3);
}

.product-category {
  display: inline-block;
  padding: 6px 16px;
  background: rgba(255, 255, 255, 0.32);
  border-radius: 40px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 20px;
  color: white;
}

.product-card h3 {
  font-size: 1.6rem;
  margin-bottom: 15px;
  font-weight: 700;
  color: white;
}

.product-specs {
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.product-specs span {
  display: block;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 5px;
}

.product-availability {
  display: inline-block;
  padding: 8px 20px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 40px;
  font-size: 0.8rem;
  font-weight: 600;
}

/* ========== TRADING & SUPPLY ========== */
.ps-trading {
  padding: 120px 0;
  background: var(--surface);
  position: relative;
}

.trading-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.trading-content h2 {
  font-size: clamp(2rem, 5vw, 2.8rem);
  margin-bottom: 25px;
  color: var(--text);
}

.trading-features {
  list-style: none;
  padding: 0;
  margin: 30px 0;
}

.trading-features li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  color: var(--text);
  border-bottom: 1px solid color-mix(in srgb, var(--muted) 15%, transparent);
}

.trading-features li i {
  color: var(--brand);
  font-size: 1.2rem;
}

.trading-highlight {
  display: inline-flex;
  align-items: center;
  gap: 15px;
  padding: 18px 30px;
  background: var(--brand-gradient);
  border-radius: 50px;
  color: white;
  margin-top: 20px;
}

.trading-highlight i {
  font-size: 1.5rem;
}

.trading-highlight span {
  font-weight: 700;
  font-size: 1.1rem;
}

.trading-visual {
  position: relative;
  border-radius: 30px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.trading-visual img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.6s ease;
}

.trading-visual:hover img {
  transform: scale(1.05);
}

.trading-badge {
  position: absolute;
  bottom: 30px;
  left: 30px;
  right: 30px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  padding: 20px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  gap: 15px;
  color: black;
  font-weight: 700;
  box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}

.trading-badge i {
  font-size: 1.8rem;
  color: var(--brand);
}

/* ========== LUBRICANTS SPOTLIGHT ========== */
.ps-lubricants {
  padding: 120px 0;
  background: var(--bg);
}

.lubricants-header {
  text-align: center;
  margin-bottom: 60px;
}

.lubricants-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

.lubricant-card {
  background: var(--surface);
  padding: 35px 25px;
  border-radius: 30px;
  border: 1px solid color-mix(in srgb, var(--muted) 15%, transparent);
  transition: var(--transition-smooth);
  text-align: center;
}

.lubricant-card:hover {
  transform: translateY(-10px);
  border-color: var(--brand);
  box-shadow: var(--shadow-hover);
}

.lubricant-icon {
  width: 80px;
  height: 80px;
  background: var(--brand-gradient);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}

.lubricant-icon i {
  font-size: 2.2rem;
  color: white;
}

.lubricant-card h3 {
  font-size: 1.4rem;
  margin-bottom: 10px;
  color: var(--text);
}

.lubricant-spec {
  font-size: 0.85rem;
  color: var(--brand);
  font-weight: 700;
  margin-bottom: 15px;
  letter-spacing: 1px;
}

.lubricant-desc {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.6;
}

/* ========== CERTIFICATIONS ========== */
.ps-certifications {
  padding: 80px 0;
  background: linear-gradient(135deg,
    color-mix(in srgb, var(--brand) 10%, var(--surface)),
    var(--surface));
}

.cert-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 30px;
  align-items: center;
}

.cert-item {
  text-align: center;
  padding: 30px 20px;
  background: var(--surface-2);
  border-radius: 20px;
  border: 1px solid color-mix(in srgb, var(--muted) 15%, transparent);
  transition: var(--transition-smooth);
}

.cert-item:hover {
  transform: translateY(-5px);
  border-color: var(--brand);
  box-shadow: var(--shadow);
}

.cert-item i {
  font-size: 2.5rem;
  color: var(--brand);
  margin-bottom: 15px;
}

.cert-item h4 {
  font-size: 1.1rem;
  margin-bottom: 8px;
  color: var(--text);
  font-weight: 700;
}

.cert-item p {
  font-size: 0.8rem;
  color: var(--muted);
}

/* ========== CONTACT SECTION (global pattern) ========== */
.contact-section {
  padding: 100px 0;
  background: var(--bg);
}

.contact-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 50px;
  align-items: start;
  padding: 0 20px;
}

.contact-info {
  display: grid;
  gap: 30px;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding: 25px;
  background: var(--surface);
  border-radius: 20px;
  border: 1px solid color-mix(in srgb, var(--muted) 15%, transparent);
  transition: var(--transition-smooth);
}

.contact-item:hover {
  border-color: var(--brand);
  transform: translateX(10px);
  box-shadow: var(--shadow);
}

.contact-icon {
  width: 60px;
  height: 60px;
  background: var(--brand-gradient);
  border-radius: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  color: white;
  flex-shrink: 0;
}

.contact-details h3 {
  margin: 0 0 8px 0;
  color: var(--text);
  font-size: 1.2rem;
}

.contact-details p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.contact-form {
  background: var(--surface);
  padding: 45px;
  border-radius: 30px;
  border: 1px solid color-mix(in srgb, var(--muted) 15%, transparent);
  box-shadow: var(--shadow);
}

.form-group {
  margin-bottom: 25px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  color: var(--text);
  font-weight: 600;
  font-size: 0.95rem;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 16px 20px;
  background: var(--surface-2);
  border: 2px solid color-mix(in srgb, var(--muted) 20%, transparent);
  border-radius: 15px;
  color: var(--text);
  font-size: 1rem;
  transition: var(--transition-smooth);
  font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 20%, transparent);
  background: var(--surface-2);
}

/* ========== BACK TO TOP ========== */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 55px;
  height: 55px;
  background: var(--brand-gradient);
  border: none;
  border-radius: 50%;
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transform: translateY(30px);
  transition: var(--transition-smooth);
  box-shadow: 0 10px 30px rgba(237,46,46,0.4);
  z-index: 999;
}

.back-to-top.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  transform: translateY(-8px) scale(1.1);
  box-shadow: 0 20px 40px rgba(237,46,46,0.6);
}

.back-to-top svg {
  width: 24px;
  height: 24px;
  animation: backToTopBounce 2s infinite;
}

@keyframes backToTopBounce {
  0%,100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

/* ========== RESPONSIVE ========== */
@media (max-width: 1024px) {
  .trading-grid {
    grid-template-columns: 1fr;
    gap: 50px;
  }
  
  .trading-content {
    order: 2;
  }
  
  .trading-visual {
    order: 1;
  }
}/* ===========================
   Mobile Fixes for Products & Services - Dynamic Catalog Background
   =========================== */

/* Fix for dynamic catalog background on mobile */
@media (max-width: 768px) {
  .ps-dynamic-catalog {
    background-attachment: scroll !important; /* Fixed backgrounds don't work on mobile */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
  }
  
  /* Add dark overlay to ensure text readability */
  .ps-dynamic-catalog::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.65);
    z-index: 1;
    pointer-events: none;
  }
  
  .ps-dynamic-catalog .container {
    position: relative;
    z-index: 2;
  }
  
  .ps-dynamic-catalog .section-header h2,
  .ps-dynamic-catalog .section-header p,
  .ps-dynamic-catalog .section-tag {
    position: relative;
    z-index: 2;
  }
  
  .catalog-loading,
  .catalog-error,
  .product-card {
    position: relative;
    z-index: 2;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    background: rgba(0, 0, 0, 0.5) !important;
  }
  
  .catalog-loading {
    background: rgba(0, 0, 0, 0.5) !important;
  }
  
  .catalog-error {
    background: rgba(0, 0, 0, 0.5) !important;
  }
  
  .product-card {
    background: rgba(0, 0, 0, 0.5) !important;
  }
}

/* Extra small devices - better focus point */
@media (max-width: 480px) {
  .ps-dynamic-catalog {
    background-position: 70% center !important; /* Adjust focal point for mobile */
  }
@media (max-width: 480px) {
  .ps-hero h1 {
    font-size: 2.2rem;
  }
  
  .hero-sub {
    font-size: 1rem;
  }
  
  /* ADD THIS LINE */
  .ps-dynamic-catalog {
    background-position: 70% center !important;
  }
  
  /* ... rest of your existing code ... */
}
}

/* Fix for tablet devices */
@media (min-width: 769px) and (max-width: 1024px) {
  .ps-dynamic-catalog {
    background-attachment: scroll !important; /* Disable fixed on tablet too */
  }
}

@media (max-width: 768px) {
  .ps-hero {
    min-height: 90vh;
    padding: 100px 20px;
  }.ps-hero {
    min-height: 90vh;
    padding: 100px 20px;
  }
  
  .hero-stats {
    gap: 30px;
  }
  
  .stat-brick-number {
    font-size: 2rem;
  }
  
  /* ADD THESE LINES - Fix for dynamic catalog background */
  .ps-dynamic-catalog {
    background-attachment: scroll !important;
    background-size: cover;
    background-position: center;
    position: relative;
  }
  
  .ps-dynamic-catalog::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.65);
    z-index: 1;
    pointer-events: none;
  }
  
  .ps-dynamic-catalog .container,
  .ps-dynamic-catalog .section-header,
  .ps-dynamic-catalog .catalog-loading,
  .ps-dynamic-catalog .catalog-error,
  .ps-dynamic-catalog .catalog-grid,
  .ps-dynamic-catalog .product-card {
    position: relative;
    z-index: 2;
  }
  
  .catalog-loading,
  .catalog-error,
  .product-card {
    background: rgba(0, 0, 0, 0.5) !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
  }
  /* END OF ADDED LINES */
  
  .categories-grid,
  .catalog-grid,
  .lubricants-grid {
    grid-template-columns: 1fr;
    max-width: 450px;
    margin-left: auto;
    margin-right: auto;
  }
  
  .cert-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .contact-container {
    grid-template-columns: 1fr;
  }
  
  .hero-stats {
    gap: 30px;
  }
  
  .stat-brick-number {
    font-size: 2rem;
  }
  
  .categories-grid,
  .catalog-grid,
  .lubricants-grid {
    grid-template-columns: 1fr;
    max-width: 450px;
    margin-left: auto;
    margin-right: auto;
  }
  
  .cert-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .contact-container {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .ps-hero h1 {
    font-size: 2.2rem;
  }
  
  .hero-sub {
    font-size: 1rem;
  }
  
  .category-card {
    padding: 30px 20px;
  }
  
  .category-icon {
    width: 70px;
    height: 70px;
  }
  
  .category-icon i {
    font-size: 2rem;
  }
  
  .trading-highlight {
    flex-direction: column;
    text-align: center;
    width: 100%;
  }
  
  .trading-badge {
    flex-direction: column;
    text-align: center;
  }
  
  .cert-grid {
    grid-template-columns: 1fr;
  }
  
  .contact-form {
    padding: 30px 20px;
  }
  
  .back-to-top {
    width: 45px;
    height: 45px;
    bottom: 20px;
    right: 20px;
  }
}

/* ========== DARK THEME ADJUSTMENTS ========== */
html[data-theme="dark"] .ps-categories {
  background: var(--surface);
}

html[data-theme="dark"] .ps-trading {
  background: var(--surface-2);
}

html[data-theme="dark"] .ps-lubricants {
  background: var(--surface);
}

html[data-theme="dark"] .cert-item {
  background: var(--surface);
}

/* ========== REDUCED MOTION ========== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  
  .ps-hero-bg { animation: none; }
  .hero-badge, .hero-scroll, .back-to-top svg { animation: none; }
}