:root {
  --primary: #e5012e; /* Corporate Green */
  --accent: #e5012fc8; /* Silal-inspired Red */
  --dark: #1a1a1a;
  --light: #f4f7f6;
  --white: #ffffff;
  --footercolor: #051329; /* Dark premium corporate blue */
  --marquee-speed: 30s;
  --transition-speed: 0.3s;
  --liner: linear-gradient(135deg, var(--primary), #051329);
}
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  list-style: none;
  text-decoration: none;
}

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}
/* --- NAVIGATION --- */
nav {
  position: fixed;
  width: 100%;
  z-index: 1000;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 5%;
  transition: 0.4s;
  background: transparent;
}
nav.scrolled {
  background: var(--white);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  background: linear-gradient(135deg, var(--primary), #051329);
}
.logo {
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--white);
}
.logo-img {
  width: 200px;

  margin-right: 8px;
}
nav.scrolled .logo {
  color: var(--primary);
}
.logo span {
  color: var(--accent);
}

.navlinks-action {
  display: flex;
  list-style: none;
  align-items: center;
}
.navlinks-action li {
  margin-left: 25px;
  position: relative;
}
.navlinks-action a {
  text-decoration: none;
  color: var(--white);
  font-weight: 500;
  font-size: 0.9rem;
}
nav.scrolled .navlinks-action a {
  color: #fff;
}

.navlinks-direction {
  display: flex;
  list-style: none;
  align-items: center;
}
.navlinks-direction li {
  margin-left: 25px;
  position: relative;
  padding: 25px 10px;
}
.navlinks-direction li:hover {
  background-color: rgba(255, 255, 255, 0.1);

  transform: translateY(-2px);
}

.navlinks-direction a {
  text-decoration: none;
  color: var(--white);
  font-weight: 500;
  font-size: 1rem;
}

nav.scrolled .navlinks-direction a {
  color: #fff;
}
.navlinks-action-mobile {
  display: none !important;
}
.navlinks-action li:hover {
  background-color: rgba(255, 255, 255, 0.1);

  transform: translateY(-2px);
}

/* Mobile menu override for desktop */
/* @media screen and (min-width: 769px) {
        .nav-links {
          display: flex !important;
          position: relative !important;
          top: auto !important;
          width: auto !important;
          height: auto !important;
          background: transparent !important;
          padding: 0 !important;
          flex-direction: row !important;
          z-index: auto !important;
        }
        .nav-links.active {
          display: flex !important;
        }
      }*/

/* Dropdown */
.dropdown-content {
  display: none;
  position: absolute;
  background: var(--white);
  min-width: 280px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
  top: 100%;
  border-radius: 4px;
  margin-top: 10px;
  transform: translateY(-10px);
  transition: all 0.3s ease;
  border-radius: 4px;
  border-top: 2px solid var(--primary);
}

.dropdown:hover .dropdown-content {
  display: block;
}
.dropdown-content a {
  color: #333 !important;
  padding: 12px;
  display: block;
}
.dropdown-content a:hover {
  background: var(--light);
  background: linear-gradient(135deg, var(--primary), #051329);
  color: #fff !important;
  padding-left: 30px;
}

/* Mobile Dropdown */
.dropdown.active-mobile .dropdown-content {
  display: block !important;
}

.login-btn {
  padding: 10px 20px;
  border-radius: 8px;
  color: var(--accent) !important;
  background: #fff;
  font-weight: 500;
  transition: all 0.3s ease;
}
.login-btn:hover {
  background: linear-gradient(135deg, var(--primary), #051329);
  color: #fff !important;
  transform: translateY(-2px);
}
.navlinks-action li:nth-child(1) {
  padding: 25px 10px;
}
.navlinks-action li:nth-child(1) .dropdown-content {
  z-index: 9999;
}

/*============================== nav end ==== */
/* Hero Section */
.hero {
  background:
    linear-gradient(135deg, var(--primary), #051329),
    url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 600"><rect fill="%23f0f0f0" width="1000" height="600"/><circle fill="%23ddd" cx="200" cy="150" r="80"/><circle fill="%23ccc" cx="800" cy="450" r="120"/><rect fill="%23e0e0e0" x="400" y="200" width="200" height="200"/></svg>');
  background-size: cover;
  background-position: center;
  color: #fff;
  text-align: center;
  padding: 120px 20px;
  width: 100%;
  max-width: 100%;
}

.hero-content h1 {
  font-size: 3.5rem;
  margin-bottom: 20px;
  font-weight: 700;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-content p {
  font-size: 1.3rem;
  max-width: 800px;
  margin: 0 auto 30px;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 40px;
}
.cta-buttonx {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 40px;
}
.btn-mobi {
  display: none !important;
  background: #fff;
  color: var(--primary);
  box-shadow: 0 5px 20px rgba(255, 255, 255, 0.4);
  font-weight: 700;
}

.btn {
  padding: 15px 35px;
  font-size: 1.1rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 50px;
  transition: all 0.3s ease;
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.btn-primary {
  background: #fff;
  color: var(--primary);
  box-shadow: 0 5px 20px rgba(255, 255, 255, 0.4);
  font-weight: 700;
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 20px rgba(255, 255, 255, 0.4);
}

.btn-primaryx {
  background: #fff;
  color: var(--primary);
  box-shadow: 0 5px 20px rgba(255, 255, 255, 0.4);
  font-weight: 700;
}

.btn-primaryx:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 20px rgba(255, 255, 255, 0.4);
}

.btn-secondary {
  background: transparent;
  color: #fff;
  border: 2px solid #fff;
}

.btn-secondary:hover {
  background: #fff;
  color: var(--primary);
  font-weight: 700;
  box-shadow: 0 5px 20px rgba(255, 255, 255, 0.4);
  transform: translateY(-3px);
}

/* --- BURGER MENU --- */
.burger {
  display: none;
  cursor: pointer;
  flex-direction: column;
  z-index: 2001;
  position: relative;
  gap: 5px;
}

nav.scrolled .burger span {
  background: #fff;
}
.line {
  background-color: #fff;
  display: block;
  height: 2px;
  width: 20px;
}

.burger.active .line:first-child {
  /*transform: rotate(-45deg) translate(-6px, 1px) !important;
  transition: transform 0.3s ease !important;*/
  transform: translateZ(0) rotate(45deg);
  height: 2px;
  width: 25px;
  gap: 0 !important;
  margin-top-right: 5px !important;
}
.burger.active .line:nth-child(2) {
  opacity: 0 !important;
  transition: opacity 0.3s ease !important;
}
.burger.active .line:nth-child(3) {
  /*transform: rotate(45deg) translate(-6px, -1px) !important;
  transition: transform 0.3s ease !important;*/
  transform: translate3d(0, -0.25rem, 0) rotate(-45deg);
  height: 2px;
  width: 25px;
  gap: 0 !important;
}

/* Ensure transforms apply even when navbar is scrolled */
nav.scrolled .burger.active .line:first-child {
  /*transform: rotate(-45deg) translate(-6px, 1px) !important;*/
  background: white !important;
  transform: translateZ(0) rotate(45deg);
}
nav.scrolled .burger.active .line:nth-child(2) {
  opacity: 0 !important;
  background: white !important;
}
nav.scrolled .burger.active .line:nth-child(3) {
  /*transform: rotate(45deg) translate(-5px, -1px) !important;*/
  background: white !important;
  transform: translate3d(0, -0.25rem, 0) rotate(-45deg);
}

/* ========================================== Sourcing =============================== */
.sourcing-overview {
  font-family:
    -apple-system, "BlinkMacSystemFont", "Segoe UI", "Roboto", sans-serif;
  height: auto;
  padding: 0rem 4rem;
  height: 50px;
}

/* Container Header Layout */
.sourcing-overview-header {
  display: flex;
  max-width: 1200px;

  gap: 10rem;
  margin-top: 15px;
}

/* Title Styling */
.sourcing-overview-title {
  font-size: 1.75rem;
  font-weight: 700;
  color: #000;

  font-size: 2.2rem;
  font-weight: 700;
  display: flex;

  flex-direction: column;
  width: 400px;
}
.h3-1 {
  color: var(--primary);
}

/* Stats Grid - Automatically fits columns based on screen size */
.sourcing-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;

  width: 100%;
  align-items: center;
}

/* Individual Stat Box */
.sourcing-stat-item {
  display: flex;
  flex-direction: column;

  transition: transform 0.2s ease;
}

/* Subtle hover effect for interactive feel */
.sourcing-stat-item:hover {
  transform: translateY(-2px);
}

/* Large Numbers */
.sourcing-stat-number {
  font-size: 2rem;
  font-weight: 800;
  color: var(--liner);
  line-height: 1;
  margin-bottom: 0.5rem;
  text-align: center;
}

/* Labels below numbers */
.sourcing-stat-label {
  font-size: 0.875rem;
  font-weight: 500;
  color: #4b5563; /* Muted grey */
  text-transform: capitalize;
  text-align: center;
}

/* Product Categories Section */
.product-categories {
  margin-top: 80px;
  padding: 60px 40px;
  background: var(--liner);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

/*.categories-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 50px;
  gap: 40px;
}*/

.categories-title {
  font-size: 2.2rem;
  color: #fff;
  font-weight: 700;

  line-height: 1.3;
  margin-bottom: 50px;
}

.stat {
  text-align: center;
}

.stat-number {
  display: block;
  font-size: 2.5rem;
  font-weight: 700;
  color: #e67e22;
  margin-bottom: 5px;
}

.stat-label {
  font-size: 0.95rem;
  color: #666;
  font-weight: 500;
}

.categories-grid {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 25px;
}

.category-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 25px 15px;
  background: #fff;
  border-radius: 15px;
  transition: all 0.3s ease;
  border: 2px solid transparent;
  cursor: pointer;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.category-item:hover {
  transform: translateY(-5px);
  border-color: var(--accent);
  box-shadow: 0 10px 25px rgba(52, 152, 219, 0.15);
}

.category-icon {
  font-size: 2.5rem;
  margin-bottom: 15px;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(45deg, #f8f9fa, #e9ecef);
  border-radius: 50%;
  transition: all 0.3s ease;
}

.category-item:hover .category-icon {
  background: var(--liner);
  transform: scale(1.1);
}

.category-name {
  font-size: 0.9rem;
  color: #2c3e50;
  font-weight: 500;
  line-height: 1.3;
}

/* ========================================== FOOTER =============================== */

/* --- Global Context Base Layout --- */
.footer-section {
  background-color: #051329; /* Dark premium corporate blue background */
  color: #ffffff;
  padding: 60px 20px;
  font-family:
    -apple-system, "BlinkMacSystemFont", "Segoe UI", "Roboto", sans-serif;
  padding: 4rem 2rem 2rem 2rem;
}
.container-section {
  max-width: 1280px;
  margin: 0 auto;
}

.footer-section a {
  color: var(--footer-text);
  text-decoration: none;
  transition: color var(--transition-speed) ease;
  color: #a0aec0;
}

.footer-section a:hover {
  color: var(--primary);
}

/* ==========================================
   2. DESKTOP GRID LAYOUTS
   ========================================== */
.footer-section .grid-4-col {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  margin-bottom: 3rem;
}

.footer-section .grid-3-col {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  border-top: 1px solid var(--border-color);
  padding-top: 2rem;
}

.columx-box {
  width: 100%;
}

/* ==========================================
   3. HEADERS & TYPOGRAPHY
   ========================================== */
.footer-section .section-header {
  color: var(--footer-heading);
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Hide mobile arrow icon on desktop layouts */
.footer-section .arrow-icon {
  display: none;
}

/* ==========================================
   4. LINKS & LISTS
   ========================================== */
.footer-section .links-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: block !important;
}

.footer-section .links-list li {
  margin-bottom: 0.75rem;
}

.footer-section .links-list a {
  font-size: 0.95rem;
}

/* ==========================================
   5. FORMS & SUBSCRIPTIONS
   ========================================== */
.subscription-section {
  width: 100%;
}

.email-form {
  display: flex;
  gap: 0.5rem;
  margin-top: 1rem;
  flex-direction: column;
}

.email-input {
  flex: 1;
  padding: 0.75rem 1rem;
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  border-radius: 4px;
  color: #fff;
  font-size: 0.95rem;
  outline: none;
  transition: border-color var(--transition-speed);
}

.email-input:focus {
  border-color: var(--accent-color);
}

.subscribe-button {
  padding: 0.75rem 1.5rem;

  color: #fff;
  border: none;
  border-radius: 4px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color var(--transition-speed);
  white-space: nowrap;
  background-color: var(--primary);
}

.subscribe-button:hover {
  background-color: var(--accent);
}

/* ==========================================
   6. APP BUTTONS
   ========================================== */
.app-section {
  width: 100%;
}

.app-buttons {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

.app-btn {
  display: inline-flex;
  align-items: center;
  background-color: #000;
  border: 1px solid var(--border-color);
  padding: 0.5rem 1rem;
  border-radius: 6px;
  transition: background-color var(--transition-speed);
}

.app-btn:hover {
  background-color: rgba(255, 255, 255, 0.05);
}

/* ==========================================
   7. Connect Social Icons
   ========================================== */
.connect-section {
  width: 100%;
}
.social-links {
  display: flex;
  gap: 12px;
  margin-top: 1rem;
}

.cp-social-btn {
  width: 36px;
  height: 36px;
  border: 1px solid #1a365d;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #a0aec0;
  text-decoration: none;
  transition: all 0.2s ease;
}

.cp-social-btn:hover {
  background-color: var(--primary);
}
.cp-social-btn:hover i {
  color: #ffffff;
}

/* --- FOOTER --- */
footer {
  background: var(--footercolor);
  color: #aaa;
  padding: 40px 5% 20px;
  display: flex;
  justify-content: space-between;
  text-decoration: none;
  color: var(--white);
  border-top: 1px solid #1a365d;
}
.policx {
  display: flex;
  gap: 15px;
  list-style: none;
}
.policx a {
  text-decoration: none;
  color: #ffffff;
  margin-right: 15px;
}
.policx a:hover {
  color: var(--primary);
}

/*=================   mobile version  ==============================*/

/* Desktop burger always hidden */
@media screen and (min-width: 769px) {
  .burger {
    display: none !important;
  }
}

/* Mobile specific burger transform */
@media screen and (max-width: 768px) {
  .burger span {
    transition:
      transform 0.3s ease,
      opacity 0.3s ease,
      background 0.3s ease !important;
  }
  .burger.active .line:first-child {
    transform: translateZ(0) rotate(45deg) !important;
  }
  .burger.active .line:nth-child(2) {
    opacity: 0 !important;
  }
  .burger.active .line:nth-child(3) {
    /*transform: rotate(45deg) translate(-3px, -1px) !important;*/
    transform: translate3d(0, -0.25rem, 0) rotate(-45deg);
  }

  .navlinks-direction {
    display: none !important;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100vh !important;
    background: linear-gradient(135deg, var(--primary), #051329) !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    justify-content: flex-start !important;
    padding: 80px 20px 20px 20px !important;
    overflow-y: auto !important;
    z-index: 1998 !important;
    margin: 0 !important;
    list-style: none !important;
    border: none !important;
    box-shadow: none !important;
  }
  .navlinks-direction.active {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
  }
  .navlinks-direction li {
    margin-left: 0 !important;
    margin-bottom: 15px !important;
    padding: 0 !important;
    width: 100% !important;
    position: relative !important;
  }
  .navlinks-direction li:hover {
    background: none;
    transform: translateY(0) !important;
  }
  .navlinks-direction a {
    color: var(--white) !important;
    font-size: 1rem !important;
    display: block !important;
    width: 100% !important;
    text-decoration: none !important;
  }
  .navlinks-action-mobile {
    display: block !important;
    justify-content: space-between !important;
    list-style: none !important;
    width: 100% !important;
    align-items: center !important;
    gap: 15px !important;
  }
  .login-btn {
    background: linear-gradient(135deg, var(--primary), #051329) !important;
  }

  .navlinks-action {
    display: none !important;
  }

  .dropdown-content {
    position: static !important;
    background: rgba(255, 255, 255, 0.1) !important;
    box-shadow: none !important;
    margin-top: 20px !important;
    border-radius: 0 !important;
    border-top: #fff 2px solid !important;
  }
  .dropdown-content a {
    color: var(--white) !important;
    padding: 10px 15px !important;
    font-size: 1rem !important;
  }
  .dropdown-content a:hover {
    background: rgba(255, 255, 255, 0.2) !important;
  }
  .dropdown:hover .dropdown-content {
    display: none !important;
  }
  .dropdown.active-mobile .dropdown-content {
    display: block !important;
  }
  .burger {
    display: flex !important;
    z-index: 2001 !important;
    position: relative !important;
    cursor: pointer !important;
    flex-direction: column !important;
    visibility: visible !important;
    opacity: 1 !important;
  }

  /*======== Hero Section Mobile Adjustments ========*/
  .btn-primary,
  .btn-secondary {
    display: none;
  }
  .btn-mobi {
    display: inline-block !important;
    background: #fff;
    color: var(--primary);
    box-shadow: 0 5px 20px rgba(255, 255, 255, 0.4);
    font-weight: 700;
  }

  /*======== sourcing section ===========*/
  .sourcing-overview {
    height: 250px;
    gap: 0;
    padding: 0;
    overflow: hidden;
  }
  .sourcing-overview-header {
    display: block;
    border: 1px solid green;
  }
  .sourcing-overview-title {
    display: flex;
    flex-direction: row;
    gap: 5px;
    font-size: 1.5rem;
  }

  .sourcing-stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }

  /*======== product section ===========*/
  .productsection {
    width: 100%;
    overflow: hidden;
  }
  .categories-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
  }
  .category-item {
    padding: 15px 8px;
  }

  .category-icon {
    font-size: 1.8rem;
    width: 45px;
    height: 45px;
    margin-bottom: 10px;
  }

  .category-name {
    font-size: 0.75rem;
  }
  .categories-title {
    font-size: 1rem;
  }

  /* Stack the desktop multi-column structure into a clean linear flow */
  .footer-section .grid-4-col,
  .footer-section .grid-3-col {
    display: flex;
    flex-direction: column;
    gap: 0; /* Let column boxes define mobile rhythm spacing */
  }
  .grid-4-col:nth-child(2n) {
    margin-top: -50px !important; /* Add vertical spacing between rows */
  }

  /* Structural block adjustment for links columns */
  .columx-box {
    width: 100%;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1); /* Optional dividers for clean mobile containment */
  }

  /* Make headers highly interactable targets for mobile thumbs */
  .footer-section .section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0.5rem;
    margin: 0;
    cursor: pointer;
    user-select: none;
    font-size: 1rem;
  }

  /* Expose and turn on default rotational layout for indicator icon */
  .footer-section .arrow-icon {
    display: block;
    width: 14px;
    height: 14px;
    transition: transform 0.3s ease;
    fill: #fff;
  }

  /* Rotate indicator when parents contain active dynamic status markers */
  .columx-box.active .arrow-icon {
    transform: rotate(180deg);
  }

  /* Hide raw link elements out of sight by default on smaller screens */
  .footer-section .links-list {
    display: none !important;
    padding: 0 0.5rem 1.25rem 0.5rem;
  }

  /* Show element natively when expanded */
  .columx-box.active .links-list {
    display: block !important;
  }

  /* Re-adjust structural layouts for lower items (Forms and Apps) */
  .subscription-section,
  .app-section {
    padding: 1.5rem 0.5rem;
    width: 100%;
  }

  .email-form {
    flex-direction: column;
    width: 100%;
    gap: 0.75rem;
  }

  .email-input,
  .subscribe-button {
    width: 100% !important;
  }

  .app-buttons {
    align-items: flex-start;
    gap: 1rem;
  }

  /*==============================*/
  /* footer for mobile */

  /*=============================*/
  footer {
    flex-direction: column !important;
    text-align: left !important;
    gap: 10px !important;
  }
  .policx {
    flex-direction: column !important;
  }
  .footer-separator {
    display: none !important;
  }
  .copi {
    margin-top: 10px !important;
  }
}
