/* ===========================
   Retail & Trading Page Styles
   Equus Energy – Gunvor-inspired, follows global brand language
   =========================== */

: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 – MOVING ENERGY ========== */
.retail-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;
}

.retail-hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image:
   
    url('../assets/Image-Equus/Equus-Pic-Mocks/img23.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); }
}

.retail-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); }
}

.retail-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: var(--brand);
  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); }
}

/* ========== OVERVIEW ========== */
.retail-overview {
  padding: 120px 0;
  background: var(--bg);
  position: relative;
  overflow: hidden;
}

.retail-overview::before {
  content: '';
  position: absolute;
  top: -30%;
  right: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, color-mix(in srgb, var(--brand) 5%, transparent) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.overview-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 70px;
  align-items: center;
}

.overview-text {
  padding-right: 30px;
}

.overview-text h2 {
  font-size: clamp(2rem, 5vw, 2.8rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 25px;
  color: var(--text);
}

.lead {
  font-size: 1.2rem;
  line-height: 1.8;
  color: var(--muted);
  margin-bottom: 25px;
  font-weight: 400;
}

.overview-visual {
  position: relative;
  border-radius: 30px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.overview-visual img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.6s ease;
}

.overview-visual:hover img {
  transform: scale(1.05);
}

.overview-badge {
  position: absolute;
  bottom: 30px;
  left: 30px;
  right: 30px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  padding: 20px 25px;
  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);
}

.overview-badge i {
  font-size: 1.8rem;
  color: var(--brand);
}

/* ========== CAPABILITIES ========== */
.retail-capabilities {
  padding: 120px 0;
  background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('../assets/Image-Equus/img7.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  color: white;
  position: relative;
}

.capabilities-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.capability-card {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  padding: 40px 30px;
  border-radius: 30px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: var(--transition-smooth);
  text-align: center;
}

.capability-card:hover {
  transform: translateY(-15px);
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.4);
  box-shadow: 0 30px 50px rgba(0,0,0,0.3);
}

.capability-icon {
  width: 90px;
  height: 90px;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  border-radius: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 25px;
}

.capability-icon i {
  font-size: 2.8rem;
  color: white;
}

.capability-card h3 {
  font-size: 1.6rem;
  margin-bottom: 15px;
  color: white;
  font-weight: 700;
}

.capability-card p {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.9);
  line-height: 1.7;
}

/* ========== THREE-PRONGED STRATEGY ========== */
.retail-strategy {
  padding: 120px 0;
  background: var(--surface);
}

.strategy-header {
  text-align: center;
  margin-bottom: 60px;
}

.strategy-sub {
  font-size: 1.2rem;
  color: var(--brand);
  font-weight: 600;
  margin-top: 15px;
}

.strategy-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
}

.strategy-card {
  background: var(--surface-2);
  padding: 45px 35px;
  border-radius: 40px;
  border: 1px solid color-mix(in srgb, var(--muted) 15%, transparent);
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
}

.strategy-card:hover {
  transform: translateY(-15px);
  border-color: var(--brand);
  box-shadow: var(--shadow-hover);
}

.strategy-number {
  font-size: 3.5rem;
  font-weight: 800;
  color: color-mix(in srgb, var(--brand));
  line-height: 1;
  margin-bottom: 20px;
}

.strategy-card h3 {
  font-size: 1.8rem;
  margin-bottom: 20px;
  color: var(--text);
  font-weight: 700;
}

.strategy-card p {
  font-size: 1rem;
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 25px;
}

.strategy-example {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 15px 20px;
  background: var(--surface);
  border-radius: 15px;
  border-left: 6px solid var(--brand);
  font-size: 0.9rem;
  color: var(--text);
  font-weight: 600;
}

.strategy-example i {
  color: var(--brand);
  font-size: 1.1rem;
}

/* ========== ASSETS (AXIOS) ========== */
.retail-assets {
  padding: 120px 0;
  background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('../assets/Image-Equus/img7ds.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  color: white;
}/* Fix for retail-capabilities background */
@media (max-width: 768px) {
    .retail-capabilities {
        background-attachment: scroll !important;
        background-size: cover;
        background-position: center;
        position: relative;
    }
    
    .retail-capabilities::after {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
      
        z-index: 1;
        pointer-events: none;
    }
    
    .retail-capabilities .container {
        position: relative;
        z-index: 2;
    }
    
    .retail-capabilities .capability-card {
       
    }
}

/* Fix for retail-cta background */
@media (max-width: 768px) {
    .retail-cta {
        background-attachment: scroll !important;
        background-size: cover;
        background-position: center;
        position: relative;
    }
    
    .retail-cta::after {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
       
        z-index: 1;
        pointer-events: none;
    }
    
    .retail-cta .container {
        position: relative;
        z-index: 2;
    }
}

.assets-loading,
.assets-error {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border-radius: 30px;
  margin-bottom: 30px;
}

.assets-loading i {
  color: white;
  font-size: 3rem;
  margin-bottom: 20px;
}

.assets-error i {
  color: #ff6b6b;
  font-size: 3rem;
  margin-bottom: 20px;
}

.assets-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.asset-card {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  padding: 35px 25px;
  border-radius: 30px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: var(--transition-smooth);
  color: white;
}

.asset-card:hover {
  transform: translateY(-10px);
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.4);
}

.asset-icon {
  width: 70px;
  height: 70px;
  background: rgba(255,255,255,0.2);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.asset-icon i {
  font-size: 2.2rem;
  color: white;
}

.asset-card h3 {
  font-size: 1.5rem;
  margin-bottom: 10px;
  color: white;
}

.asset-location {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  color: rgba(255,255,255,0.8);
  margin-bottom: 15px;
}

.asset-detail {
  padding-top: 15px;
  border-top: 1px solid rgba(255,255,255,0.2);
  font-size: 0.9rem;
  color: rgba(255,255,255,0.9);
}

/* ========== COMPLIANCE ========== */
.retail-compliance {
  padding: 100px 0;
  background: var(--surface);
}

.compliance-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 50px;
  align-items: center;
  background: var(--brand-gradient);
  padding: 60px 70px;
  border-radius: 60px;
  color: white;
  box-shadow: var(--shadow-hover);
}

.compliance-icon {
  flex-shrink: 0;
  width: 120px;
  height: 120px;
  background: rgba(255,255,255,0.2);
  border-radius: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
}

.compliance-content h2 {
  font-size: 2rem;
  margin-bottom: 20px;
  color: white;
}

.compliance-content p {
  font-size: 1.1rem;
  margin-bottom: 25px;
  opacity: 0.95;
  line-height: 1.7;
}

.compliance-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.compliance-badges span {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(255,255,255,0.2);
  padding: 10px 22px;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 600;
}

/* ========== SUBSIDIARIES ========== */
.retail-subsidiaries {
  padding: 120px 0;
  background: var(--bg);
}

.subsidiaries-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 30px;
}

.subsidiary-item {
  background: var(--surface);
  padding: 35px 30px;
  border-radius: 30px;
  border: 1px solid color-mix(in srgb, var(--muted) 15%, transparent);
  transition: var(--transition-smooth);
}

.subsidiary-item:hover {
  transform: translateY(-10px);
  border-color: var(--brand);
  box-shadow: var(--shadow);
}

.subsidiary-item h3 {
  font-size: 1.5rem;
  margin-bottom: 15px;
  color: var(--text);
  font-weight: 700;
}

.subsidiary-item p {
  font-size: 0.95rem;
  color: var(--muted);
  margin-bottom: 20px;
  line-height: 1.6;
}

.subsidiary-tag {
  display: inline-block;
  padding: 6px 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;
}

/* ========== CAREERS SPOTLIGHT ========== */
.retail-careers {
  padding: 80px 0;
  background: var(--surface);
}

.careers-spotlight {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 50px;
  align-items: center;
  background: var(--surface-2);
  padding: 60px 70px;
  border-radius: 60px;
  border: 1px solid color-mix(in srgb, var(--muted) 15%, transparent);
}

.spotlight-badge {
  display: inline-block;
  padding: 8px 22px;
  background: var(--brand-gradient);
  color: white;
  border-radius: 40px;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 2px;
  margin-bottom: 20px;
}

.careers-spotlight-content h2 {
  font-size: 2.2rem;
  margin-bottom: 20px;
  color: var(--text);
}

.careers-spotlight-content p {
  font-size: 1.1rem;
  color: var(--muted);
  margin-bottom: 30px;
  line-height: 1.7;
}

.careers-spotlight-visual {
  display: flex;
  gap: 20px;
  color: var(--brand);
  font-size: 3rem;
  background: var(--surface);
  padding: 30px;
  border-radius: 40px;
}

/* ========== FINAL CTA (NO CONTACT) ========== */
.retail-cta {
  padding: 120px 0;
  background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('../assets/Image-Equus/img7r.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  text-align: center;
  color: white;
}

.cta-content {
  max-width: 900px;
  margin: 0 auto;
}

.cta-badge {
  display: inline-block;
  padding: 10px 28px;
  background: rgba(255,255,255,0.2);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 50px;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 3px;
  margin-bottom: 30px;
}

.cta-content h2 {
  font-size: clamp(2.5rem, 6vw, 3.8rem);
  margin-bottom: 25px;
}

.cta-content p {
  font-size: 1.2rem;
  margin-bottom: 40px;
  opacity: 0.95;
  line-height: 1.7;
}

.cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 30px;
}

.cta-buttons .btn {
  padding: 18px 36px;
  font-size: 1.1rem;
  border-radius: 50px;
  min-width: 220px;
  font-weight: 700;
  transition: var(--transition-smooth);
}

.btn-primary {
  background: white;
  color: var(--brand);
  border: 2px solid white;
}

.btn-primary:hover {
  background: transparent;
  color: white;
}

.btn-outline {
  background: transparent;
  border: 2px solid white;
  color: white;
}

.btn-outline:hover {
  background: white;
  color: var(--brand);
}

.cta-disclaimer {
  font-size: 1rem;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 15px 30px;
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(10px);
  border-radius: 50px;
  margin-top: 20px;
}

/* ========== 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) {
  .overview-grid,
  .compliance-card,
  .careers-spotlight {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .overview-text { padding-right: 0; }
  .compliance-card { padding: 50px; }
  .careers-spotlight { padding: 50px; }
  .careers-spotlight-visual { justify-content: center; }
}

@media (max-width: 768px) {
  .retail-hero { min-height: 90vh; }
  .hero-stats { gap: 30px; }
  .stat-brick-number { font-size: 2rem; }
  
  .capabilities-grid,
  .strategy-grid,
  .assets-grid,
  .subsidiaries-grid {
    grid-template-columns: 1fr;
    max-width: 450px;
    margin-left: auto;
    margin-right: auto;
  }
  
  .compliance-card { padding: 40px 30px; }
  .compliance-icon { width: 90px; height: 90px; font-size: 2.5rem; }
  .cta-buttons { flex-direction: column; align-items: center; }
  .cta-buttons .btn { width: 100%; max-width: 350px; }
}

@media (max-width: 480px) {
  .retail-hero h1 { font-size: 2.4rem; }
  .hero-sub { font-size: 1rem; }
  .overview-badge { flex-direction: column; text-align: center; }
  .strategy-number { font-size: 2.8rem; }
  .strategy-card h3 { font-size: 1.5rem; }
  .careers-spotlight { padding: 40px 25px; }
  .careers-spotlight-visual { flex-wrap: wrap; }
  .back-to-top { width: 45px; height: 45px; }
}

/* ========== DARK THEME ========== */
html[data-theme="dark"] .retail-overview { background: var(--surface); }
html[data-theme="dark"] .retail-strategy { background: var(--surface-2); }
html[data-theme="dark"] .retail-compliance { background: var(--surface-2); }
html[data-theme="dark"] .retail-careers { 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;
  }
  .retail-hero-bg { animation: none; }
  .hero-badge, .hero-scroll, .back-to-top svg { animation: none; }
}