/*
Theme Name: Nutrivend Editable
Theme URI: https://nutrivend.co.uk
Author: Nutrivend
Description: Nutrivend website rebuilt so every page is editable in the WordPress block editor (Gutenberg). Header and footer menus live in Appearance > Menus; header/footer details live in Appearance > Customize > Nutrivend Header & Footer. Run Appearance > Nutrivend Setup once after activating to import the pages.
Version: 4.0.0
Requires at least: 6.3
Requires PHP: 7.4
Text Domain: nutrivend
*/

/* Preloader */
#preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: #111;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 999999;
  transition: opacity 0.8s cubic-bezier(0.77, 0, 0.175, 1), visibility 0.8s;
}

#preloader.loaded {
  opacity: 0;
  visibility: hidden;
}

.loader-content {
  text-align: center;
  position: relative;
  z-index: 10;
}

.loader-layers {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  z-index: 1;
}

.loader-layers span {
  position: absolute;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  transform: scale(0);
  animation: zoomInCircle 2.2s cubic-bezier(0.645, 0.045, 0.355, 1) forwards;
}

.loader-layers span:nth-child(1) {
  background: #2D2B2B;
  animation-delay: 0s;
}

.loader-layers span:nth-child(2) {
  background: #737575;
  animation-delay: 0.15s;
}

.loader-layers span:nth-child(2) {
  background: #737575;
  animation-delay: 0.15s;
}

.loader-layers span:nth-child(3) {
  background: #D9D9D9;
  animation-delay: 0.3s;
}

.loader-layers span:nth-child(4) {
  background: #CCFF33;
  animation-delay: 0.45s;
}

.loader-layers span:nth-child(5) {
  background: #CCFF33;
  animation-delay: 0.6s;
}

.loader-layers span:nth-child(6) {
  background: #000000;
  animation-delay: 0.8s;
}

@keyframes zoomInCircle {
  0% {
    transform: scale(0);
    opacity: 1;
  }

  100% {
    transform: scale(45);
    opacity: 1;
  }
}

.loader-circle {
  width: 60px;
  height: 60px;
  border: 2px solid rgba(255, 255, 255, 0.05);
  border-top: 2px solid var(--accent-secondary);
  border-radius: 50%;
  animation: spin 1s cubic-bezier(0.5, 0, 0.5, 1) infinite;
  margin: 0 auto 20px;
}

.loader-logo-img {
  width: 180px;
  height: auto;
  opacity: 1;
  animation: logoFade 1.5s ease-in-out infinite alternate;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

@keyframes logoFade {
  0% {
    opacity: 0.7;
    transform: scale(0.95);
  }

  100% {
    opacity: 1;
    transform: scale(1.05);
  }
}

/* Base Styles */
:root {
  /* Colors */
  --bg-main: #000000;
  /* Black */
  --bg-secondary: #2D2B2B;
  /* Dark Grey */
  --text-primary: #D9D9D9;
  --text-secondary: #D9D9D9;
  --text-muted: #737575;
  /* Mid Grey */
  --accent-primary: #CCFF33;
  /* Lime Green (Primary) */
  --accent-secondary: #99CC00;
  /* Green (Hover) */
  --accent-tertiary: #CCFF33;

  /* Gradients */
  --grad-primary: linear-gradient(135deg, #CCFF33 0%, #99CC00 100%);
  --grad-glass: linear-gradient(135deg, rgba(217, 217, 217, 0.05) 0%, rgba(217, 217, 217, 0.01) 100%);
  --grad-mesh: radial-gradient(at 0% 0%, rgba(45, 43, 43, 1) 0, transparent 50%), radial-gradient(at 50% 0%, rgba(204, 255, 51, 0.15) 0, transparent 50%), radial-gradient(at 100% 0%, rgba(204, 255, 51, 0.15) 0, transparent 50%);

  /* Effects */
  --glass-border: 1px solid rgba(217, 217, 217, 0.1);
  --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
  --glass-blur: blur(12px);
  --glow-shadow: 0 0 20px rgba(204, 255, 51, 0.4);

  /* Typography */
  --font-main: 'Poppins', sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: var(--font-main);
}

body {
  font-family: var(--font-main);
  background-color: var(--bg-main);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Custom Scrollbar styled to match theme */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: var(--bg-main);
  border-left: var(--glass-border);
}

::-webkit-scrollbar-thumb {
  background: rgba(204, 255, 51, 0.4);
  border-radius: 10px;
  border: 2px solid var(--bg-main);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--accent-primary);
  box-shadow: 0 0 10px rgba(204, 255, 51, 0.5);
}

/* Base mesh background */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-image:
    radial-gradient(circle at 15% 50%, rgba(204, 255, 51, 0.15) 0%, transparent 40%),
    radial-gradient(circle at 85% 30%, rgba(204, 255, 51, 0.15) 0%, transparent 40%);
  z-index: -1;
  pointer-events: none;
}

a {
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
}

h1 {
  font-size: clamp(2.5rem, 8vw, 4.5rem);
  font-weight: 600;
  color: var(--text-primary);
}

h2 {
  font-size: clamp(2rem, 6vw, 3.5rem);
  font-weight: 600;
}


.hero h1 .text-gradient {
  background: var(--grad-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: inline-block;
  font-weight: 700;
}

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* Formats */
.text-gradient {
  background: var(--grad-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: inline-block;
}

.section {
  padding: 50px 0;
  position: relative;
}

.section-title {
  font-size: clamp(28px, 4vw, 42px);
  margin-bottom: 24px;
  text-align: center;
}

/* Utilities */
.bg-alt-green {
  background: radial-gradient(circle at 50% 50%, rgba(204, 255, 51, 0.08) 0%, transparent 70%) !important;
  padding-top: 60px !important;
  padding-bottom: 60px !important;
  position: relative;
}

.bg-alt-green::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-top: 1px solid rgba(204, 255, 51, 0.05);
  border-bottom: 1px solid rgba(204, 255, 51, 0.05);
  pointer-events: none;
}

.pt-0 {
  padding-top: 20px !important;
}

.pb-0 {
  padding-bottom: 0px !important;
}

.pb-40 {
  padding-bottom: 30px !important;
}

/* Global Buttons - Premium Glass Aesthetic */
.btn-primary,
.cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: var(--grad-glass);
  color: #fff;
  padding: 16px 36px;
  border-radius: 100px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  font-weight: 700;
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.btn-primary::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.8), transparent);
  transition: left 0.5s ease;
}

.btn-primary:hover,
.cta-btn:hover {
  transform: translateY(-5px) scale(1.02);
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--accent-secondary);
  color: var(--accent-secondary);
  box-shadow: 0 15px 35px rgba(153, 204, 0, 0.25);
}

.btn-primary:hover::after {
  left: 200%;
}

.btn-sm {
  padding: 8px 16px;
  font-size: 13px;
}

@media (max-width: 480px) {
  .header-action .btn-sm {
    padding: 6px 12px;
    font-size: 11px;
    letter-spacing: 0;
  }

  .site-logo img {
    height: 35px !important;
  }

  .header-action .sticky-cta {
    display: none;
  }
}

.btn-secondary {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-secondary:hover {
  background: rgba(153, 204, 0, 0.05);
  border-color: var(--accent-secondary);
  color: var(--accent-secondary);
}

/* Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  padding: 10px 0;
  /* Reduced padding to decrease height */
  background: rgba(45, 43, 43, 0.7);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border-bottom: var(--glass-border);
  transition: all 0.3s ease;
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.site-logo {
  font-weight: 900;
  font-size: 24px;
  letter-spacing: 2px;
  margin-top: 20px;
}

.site-logo .dot {
  color: var(--accent-primary);
}

.main-navigation>ul {
  display: flex;
  list-style: none;
  gap: 30px;
  align-items: center;
}

.mobile-only-item {
  display: none;
}

/* Mobile Menu Toggle */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 28px;
  height: 18px;
  background: transparent;
  border: none;
  cursor: pointer !important;
  padding: 0;
  z-index: 1001;
  margin-left: 15px;
}

@media (max-width: 1024px) {
  .menu-toggle {
    display: flex !important;
    /* Ensure visibility on mobile */
  }
}

.menu-toggle span {
  width: 100%;
  height: 2px;
  background-color: #fff;
  transition: all 0.3s ease;
  border-radius: 2px;
}

.menu-toggle.active span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

@media (max-width: 1024px) {
  /* Mobile specific adjustments if needed */
}

/* Global Hamburger Drawer Navigation */
@media (max-width: 1024px) {
  .main-navigation {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 400px;
    height: 100vh;
    background: rgba(10, 10, 10, 0.98);
    backdrop-filter: blur(20px);
    z-index: 1000;
    padding: 100px 40px;
    transition: all 0.5s cubic-bezier(0.77, 0, 0.175, 1);
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
  }

  .main-navigation.active {
    right: 0;
  }

  .main-navigation>ul {
    flex-direction: column;
    align-items: center;
    gap: 25px;
    display: flex;
    padding: 0;
    width: 100%;
  }

  .main-navigation>ul>li {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .main-navigation a {
    font-size: 20px;
    justify-content: center;
    text-align: center;
    width: 100%;
  }

  .mobile-nav-cta {
    display: block;
    margin-top: 20px;
    width: 100%;
  }

  .mobile-nav-cta .btn-primary {
    width: 100%;
    justify-content: center;
  }

  /* Mobile Dropdown Resets */
  .dropdown-menu {
    position: static;
    transform: none !important;
    left: auto !important;
    opacity: 1;
    visibility: visible;
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
    width: 100%;
    display: flex !important;
    flex-direction: column;
    align-items: center;
    margin: 0 !important;
  }

  .main-navigation.active .has-dropdown.open .dropdown-menu {
    max-height: 500px;
    margin-top: 10px;
  }

  .dropdown-menu li {
    padding: 0;
    width: 100%;
    display: flex;
    justify-content: center;
  }

  .dropdown-menu a {
    padding: 10px 0;
    width: 100%;
    justify-content: center;
  }
}

@media (min-width: 1025px) {
  .main-navigation {
    position: static;
    display: block;
    width: auto;
    height: auto;
    background: transparent;
    padding: 0;
    box-shadow: none;
    backdrop-filter: none;
  }

  .main-navigation>ul {
    flex-direction: row;
    display: flex;
    gap: 30px;
  }

  .mobile-nav-cta {
    display: none;
  }
}

.main-navigation a {
  color: var(--text-primary);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.3s ease;
  position: relative;
  text-transform: capitalize;
  letter-spacing: 0.3px;
  display: flex;
  align-items: center;
}

.main-navigation a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent-primary);
  transition: width 0.3s ease;
}

.main-navigation a:hover {
  color: var(--accent-secondary);
}

.main-navigation a:hover::after {
  width: 100%;
  background: var(--accent-secondary);
}

/* Dropdown Menu Styles */
.main-navigation ul li {
  position: relative;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  background: rgba(45, 43, 43, 0.95);
  backdrop-filter: var(--glass-blur);
  border: var(--glass-border);
  border-radius: 12px;
  min-width: 220px;
  padding: 15px 0;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
  box-shadow: var(--glass-shadow);
  z-index: 1000;
  list-style: none;
  display: flex !important;
  flex-direction: column;
  gap: 0 !important;
}

.main-navigation ul li:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.dropdown-menu li {
  width: 100%;
  padding: 0 10px;
}

.dropdown-menu a {
  display: block;
  padding: 10px 15px;
  font-size: 13px !important;
  font-weight: 500 !important;
  border-radius: 8px;
  white-space: nowrap;
  transition: all 0.2s ease;
  color: var(--text-primary) !important;
  text-transform: none;
}

.dropdown-menu a:hover {
  background: rgba(204, 255, 51, 0.1);
  color: var(--accent-primary) !important;
  padding-left: 20px;
}

.dropdown-menu a::after {
  display: none !important;
}

/* Site Header Scroll State */
.site-header.scrolled {
  padding: 8px 0;
  background: rgba(0, 0, 0, 0.9);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

/* Dropdown arrow removal */
.has-dropdown>a {
  gap: 0;
}

.has-dropdown>a::after {
  display: none !important;
}

/* Hero Section */
/* Quote Page Layout */
.quote-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 80px;
}

.quote-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 25px;
}

@media (max-width: 991px) {
  .quote-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .quote-form {
    grid-template-columns: 1fr;
  }
}

.quote-full-width {
  grid-column: span 2;
}

@media (max-width: 576px) {
  .quote-full-width {
    grid-column: span 1;
  }
}

/* About Page Layout */
.about-hero {
  min-height: 70vh;
  display: flex;
  align-items: center;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 80px;
  align-items: start;
}

.philosophy-visual {
  background: rgba(45, 43, 43, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 60px;
  border-radius: 40px;
  position: sticky;
  top: 100px;
}

.about-cta-container {
  background: linear-gradient(135deg, rgba(204, 255, 51, 0.1), rgba(0, 0, 0, 0.4));
  border: 1px solid rgba(255, 255, 255, 0.05);
  padding: 80px 40px;
  border-radius: 40px;
  text-align: center;
}

@media (max-width: 991px) {
  .about-hero {
    min-height: 50vh;
    padding: 120px 0 60px;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .philosophy-visual {
    position: static;
    padding: 40px;
    border-radius: 30px;
  }

  .about-cta-container {
    padding: 60px 20px;
    border-radius: 30px;
  }
}

@media (max-width: 576px) {
  .about-hero h1 {
    font-size: 2.8rem !important;
  }

  .about-cta-container h2 {
    font-size: 2.2rem !important;
  }
}

.hero {
  height: 95vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

/* Inner page heroes — prevent oversized empty space */
.hero:not(#home) {
  min-height: 35vh !important;
  height: auto !important;
  padding: 140px 0 80px !important;
}

.hero-content h1 {
  font-size: clamp(40px, 5vw, 72px) !important;
  font-weight: 600 !important;
  line-height: 1.1 !important;
  margin-bottom: 32px !important;
  color: var(--text-primary) !important;
  text-transform: none;
  /* Ensure no unwanted caps */
}

.hero-content p {
  font-size: 20px !important;
  color: rgba(217, 217, 217, 0.9) !important;
  margin-bottom: 40px !important;
  max-width: 800px !important;
  line-height: 1.6 !important;
}

.hero-bg-carousel {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.hero-bg-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.5s ease-in-out;
}

.hero-bg-slide.active {
  opacity: 1;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.3) 100%);
  z-index: 1;
}

.hero .hero-container {
  display: flex;
  flex-direction: column;
  height: 100%;
  justify-content: flex-start;
  /* Move content up */
  padding-top: 12vh;
  /* Space from top */
  position: relative;
  z-index: 2;
  margin-left: 0;
  /* Force to absolute left */
  padding-left: 5%;
  /* Slight gap from the very edge for readability */
  max-width: 100%;
}

.hero-content {
  text-align: left;
}

.hero-category-cards {
  display: flex;
  gap: 15px;
  /* Restored gap as requested */
  justify-content: center;
  flex-wrap: nowrap;
  width: 100%;
  position: absolute;
  bottom: 0px;
  left: 0;
  right: 0;
  padding: 0 20px 10px 20px;
  /* Added 20px side padding */
  margin: 0;
  z-index: 10;
  /* Bring to very front to fix interaction issues */
}

.hero-category-cards::-webkit-scrollbar {
  height: 6px;
}

.hero-category-cards::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 4px;
}

.hero-card {
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  /* Restored rounded corners */
  padding: 20px 15px;
  flex: 1;
  min-width: 100px;
  height: auto;
  min-height: 120px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  transition: all 0.3s ease;
  backdrop-filter: blur(8px);
  color: var(--text-primary);
}

.hero-card.read-more-card {
  background: rgba(10, 10, 10, 0.95);
  border-color: rgba(255, 255, 255, 0.4);
}

.hero-card:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: var(--accent-secondary);
  box-shadow: 0 0 30px rgba(204, 255, 51, 0.2), 0 10px 20px rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(15px);
}

.hero-card i {
  font-size: 38px;
  margin-bottom: 15px;
}

.hero-card span {
  font-size: 15px;
  font-weight: 500;
  line-height: 1.3;
}

/* Spheres Grid */
.spheres-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.sphere-card {
  background: var(--grad-glass);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: var(--glass-border);
  border-radius: 16px;
  padding: 20px 20px;
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}

.sphere-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), transparent);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.sphere-card:hover {
  transform: translateY(-10px);
  border-color: var(--accent-secondary);
  box-shadow: var(--glow-shadow);
}

.sphere-card:hover::before {
  opacity: 1;
}

.sphere-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 15px;
  font-size: 18px;
  color: var(--accent-primary);
  border: var(--glass-border);
}

.sphere-card h3 {
  font-size: 16px;
  margin-bottom: 8px;
}

.sphere-card p {
  color: var(--text-secondary);
  font-size: 13px;
  line-height: 1.4;
}


/* Portfolio Masonry equivalent */
.portfolio-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.portfolio-info p {
  color: var(--text-secondary);
  font-size: 18px;
  margin-bottom: 40px;
}

.portfolio-gallery {
  position: relative;
  height: auto;
}

.portfolio-img {
  position: absolute;
  border-radius: 24px;
  border: var(--glass-border);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
  transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.portfolio-img:hover {
  transform: scale(1.05) translateY(-10px);
  z-index: 10 !important;
}

.img-main {
  width: 70%;
  height: 80%;
  object-fit: cover;
  top: 10%;
  left: 0;
  z-index: 2;
}

.img-second {
  width: 50%;
  height: 60%;
  object-fit: cover;
  bottom: 0;
  right: 0;
  z-index: 3;
}

/* Tariffs/Pricing */
.tariffs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 30px;
}

.tariff-card {
  background: var(--bg-secondary);
  border: var(--glass-border);
  border-radius: 24px;
  padding: 40px;
  display: flex;
  flex-direction: column;
  transition: all 0.3s ease;
  position: relative;
}

.tariff-card.featured {
  background: linear-gradient(135deg, rgba(204, 255, 51, 0.1) 0%, rgba(204, 255, 51, 0.1) 100%);
  border-color: rgba(204, 255, 51, 0.5);
  box-shadow: inset 0 0 40px rgba(204, 255, 51, 0.1), 0 10px 40px rgba(0, 0, 0, 0.5);
  transform: translateY(-15px);
}

.tariff-badge {
  position: absolute;
  top: -15px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--grad-primary);
  color: #fff;
  padding: 6px 16px;
  border-radius: 100px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.tariff-card:hover {
  transform: translateY(-10px);
  border-color: var(--accent-secondary);
}

.tariff-card.featured:hover {
  transform: translateY(-20px);
  border-color: var(--accent-secondary);
}

.tariff-icon {
  font-size: 32px;
  margin-bottom: 20px;
  background: var(--grad-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.tariff-card h3 {
  font-size: 24px;
  margin-bottom: 12px;
}

.tariff-card p {
  color: var(--text-secondary);
  font-size: 15px;
  flex-grow: 1;
}

/* Footer Overhaul */
/* Footer Overhaul */
.site-footer {
  background: #050505;
  padding: 30px 0 10px;
  /* Reduced bottom padding */
  position: relative;
  overflow: hidden;
  border-top: 1px solid rgba(204, 255, 51, 0.1);
}

.site-footer::before {
  content: '';
  position: absolute;
  top: -80px;
  /* Reduced */
  left: 50%;
  transform: translateX(-50%);
  width: 400px;
  height: 150px;
  background: radial-gradient(circle, rgba(204, 255, 51, 0.08) 0%, transparent 70%);
  filter: blur(40px);
  pointer-events: none;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr) 1.5fr;
  gap: 40px;
  margin-bottom: 0;
  /* Removed bottom margin */
}

@media (max-width: 1200px) {
  .footer-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}


.footer-brand .site-logo {
  margin-bottom: 12px;
  /* Reduced from 15px */
}

.footer-brand p {
  color: var(--text-secondary);
  font-size: 13px;
  line-height: 1.6;
  /* Increased from 1.4 */
  max-width: 280px;
  margin-top: 5px;
  /* Added slight buffer from logo */
}

.footer-widget h4 {
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  margin-bottom: 15px;
  /* Reduced from 18px */
  position: relative;
}

.footer-widget h4::after {
  content: '';
  position: absolute;
  bottom: -6px;
  /* Adjusted from -4px */
  left: 0;
  width: 15px;
  height: 2px;
  background: var(--accent-primary);
}

.footer-widget ul {
  list-style: none;
  padding: 0;
}

.footer-widget ul li {
  margin-bottom: 8px;
  /* Reduced from 10px */
}

.footer-widget ul li a {
  color: var(--text-secondary);
  transition: all 0.3s ease;
  font-size: 13px;
  display: inline-block;
}

.footer-widget ul li a:hover {
  color: var(--accent-secondary);
  transform: translateX(3px);
}

.footer-contact-item {
  display: flex;
  gap: 8px;
  margin-bottom: 15px;
  /* Increased from 10px */
}

.footer-contact-item i {
  color: var(--accent-primary);
  font-size: 14px;
  margin-top: 2px;
}

.footer-contact-item span {
  color: var(--text-secondary);
  font-size: 12px;
  line-height: 1.5;
  /* Increased from 1.3 */
}

.footer-newsletter h4 {
  margin-bottom: 12px;
}

.footer-newsletter p {
  font-size: 12px;
  color: var(--text-secondary);
  margin-bottom: 10px;
  /* Reduced from 12px */
}

.newsletter-form {
  display: flex;
  gap: 5px;
  /* Reduced from 6px */
}

.newsletter-form input {
  flex: 1;
  background: rgba(255, 255, 255, 0.05);
  border: var(--glass-border);
  padding: 6px 10px;
  /* Reduced from 8px 12px */
  border-radius: 6px;
  /* Tighter radius */
  color: var(--text-primary);
  font-size: 12px;
  outline: none;
}

.newsletter-form button {
  background: var(--accent-primary);
  color: #000;
  border: none;
  width: 32px;
  /* Reduced from 36px */
  height: 32px;
  /* Reduced from 36px */
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.newsletter-form button:hover {
  background: var(--accent-secondary);
  transform: scale(1.05);
}

.footer-bottom {
  padding-top: 10px;
  /* Reduced from 15px */
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.social-links {
  display: flex;
  gap: 6px;
  /* Reduced from 8px */
}

.social-link {
  width: 28px;
  /* Reduced from 32px */
  height: 28px;
  /* Reduced from 32px */
  background: rgba(255, 255, 255, 0.03);
  border: var(--glass-border);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-primary);
  font-size: 12px;
  /* Reduced from 14px */
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.social-link:hover {
  background: var(--accent-secondary);
  color: #000;
  transform: translateY(-2px) rotate(8deg);
  border-color: var(--accent-secondary);
  box-shadow: 0 4px 10px rgba(153, 204, 0, 0.2);
}

.footer-copy {
  color: rgba(255, 255, 255, 0.15);
  /* Faded more */
  font-size: 10px;
}

.back-to-top {
  position: fixed;
  right: 30px;
  bottom: 30px;
  width: 42px;
  height: 42px;
  background: rgba(45, 43, 43, 0.9);
  backdrop-filter: var(--glass-blur);
  border: var(--glass-border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-primary);
  transition: all 0.3s ease;
  opacity: 0;
  visibility: hidden;
  z-index: 1000;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.back-to-top:hover {
  background: var(--accent-secondary);
  color: #000;
  border-color: var(--accent-secondary);
  transform: translateY(-5px);
}

@media (max-width: 768px) {
  .footer-grid {
    text-align: center;
  }

  .footer-widget {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .footer-widget h4::after {
    left: 50% !important;
    transform: translateX(-50%) !important;
  }

  .footer-widget ul {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .footer-brand p {
    margin: 0 auto 12px !important;
  }

  .footer-contact-info {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .footer-contact-item {
    justify-content: center;
  }

  .newsletter-form {
    justify-content: center;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 15px;
    padding-bottom: 20px;
    text-align: center;
  }
}



/* Animations */
@keyframes pulseOrb {
  0% {
    transform: scale(1) translate(0, 0);
  }

  50% {
    transform: scale(1.1) translate(20px, -20px);
  }

  100% {
    transform: scale(1) translate(-20px, 20px);
  }
}

@keyframes float {
  0% {
    transform: translateY(0px);
  }

  50% {
    transform: translateY(-20px);
  }

  100% {
    transform: translateY(0px);
  }
}

/* Responsive */
@media (max-width: 1024px) {

  .hero .container,
  .portfolio-wrapper {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-content p {
    margin: 0 auto 40px;
  }

  .hero-category-cards {
    justify-content: flex-start;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding: 20px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    /* Hide scrollbar for cleaner look */
  }

  .hero-category-cards::-webkit-scrollbar {
    display: none;
  }

  .hero-card {
    min-width: 150px;
    flex-shrink: 0;
  }

  .portfolio-gallery {
    height: 500px;
  }

  .footer-top {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-brand p {
    margin: 20px auto 0;
  }
}

@media (max-width: 768px) {
  .menu-toggle {
    display: flex;
  }

  .main-navigation {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    background: rgba(45, 43, 43, 0.95);
    backdrop-filter: blur(20px);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.5s cubic-bezier(0.77, 0, 0.175, 1);
    z-index: 1000;
  }

  .main-navigation.active {
    right: 0;
  }

  .main-navigation ul {
    flex-direction: column;
    align-items: center;
    gap: 30px;
  }

  .main-navigation ul li a {
    font-size: 24px;
    font-weight: 400;
  }

  /* Responsive Typography */
  .hero-content h1 {
    font-size: 36px !important;
    line-height: 1.2 !important;
  }

  .hero-content p {
    font-size: 16px !important;
    margin-bottom: 30px !important;
  }

  .desktop-only {
    display: none !important;
  }

  .mobile-only-item {
    display: block;
    margin-top: 10px;
  }

  .mobile-only-item .btn-primary {
    display: inline-flex;
    padding: 12px 28px;
    font-size: 16px;
  }

  .section {
    padding: 60px 0;
  }
}


/* FAQ Accordion */
.faq-accordion {
  max-width: 900px;
  margin: 40px auto 0;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.faq-item {
  background: var(--grad-glass);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: var(--glass-border);
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.faq-item:hover {
  border-color: rgba(153, 204, 0, 0.5);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.faq-input {
  display: none;
}

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 30px;
  cursor: pointer;
  user-select: none;
  font-weight: 700;
  font-size: 18px;
  color: var(--text-primary);
  transition: background 0.3s ease;
}

.faq-question::after {
  content: '\f067';
  /* FontAwesome Plus */
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  font-size: 14px;
  color: var(--accent-primary);
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.faq-input:checked+.faq-question::after {
  transform: rotate(135deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: all 0.5s cubic-bezier(0, 1, 0, 1);
  background: rgba(255, 255, 255, 0.02);
}

.faq-input:checked~.faq-answer {
  max-height: 1000px;
  transition: all 0.5s cubic-bezier(1, 0, 1, 0);
}

.faq-answer-inner {
  padding: 0 30px 24px;
  font-size: 15px;
  line-height: 1.8;
  color: var(--text-secondary);
}

@media (max-width: 768px) {
  .faq-question {
    padding: 18px 20px;
    font-size: 16px;
  }

  .faq-answer-inner {
    padding: 0 20px 18px;
  }
}

/* Header Navigation & CTAs */
.header-action {
  display: flex;
  align-items: center;
  gap: 25px;
}

.cta-icons {
  display: flex;
  gap: 15px;
  font-size: 18px;
}

.cta-icons a {
  color: var(--text-primary);
  opacity: 0.7;
  transition: all 0.3s ease;
}

.cta-icons a:hover {
  opacity: 1;
  color: var(--accent-primary);
  transform: translateY(-2px);
}

.sticky-cta {
  white-space: nowrap;
  padding: 10px 20px !important;
  font-size: 13px !important;
}

/* Footer Overhaul */
.footer-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 40px;
  padding: 30px 0 0;
  /* Removed bottom padding */
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-widget h4 {
  color: var(--text-primary);
  font-size: 16px;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 15px;
  /* Reduced from 30px */
}

.footer-widget ul li {
  margin-bottom: 8px;
  /* Reduced from 15px */
}

.footer-widget ul li a {
  color: var(--text-secondary);
  font-size: 14px;
  transition: all 0.3s ease;
}

.footer-widget ul li a:hover {
  color: var(--accent-primary);
  padding-left: 5px;
}

.footer-contact-column .contact-link {
  display: block;
  color: var(--text-secondary);
  font-size: 14px;
  margin-bottom: 15px;
  transition: all 0.3s ease;
}

.footer-contact-column .contact-link i {
  color: var(--accent-primary);
  margin-right: 10px;
  width: 20px;
}

.footer-contact-column .contact-link:hover {
  color: var(--text-primary);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 5px;
  margin-top: 0px;
}

.footer-copy {
  margin: 0;
  font-size: 13px;
  opacity: 0.9;
  color: var(--text-secondary);
}

.footer-copy a {
  color: var(--accent-primary);
  text-decoration: none;
  font-weight: 700;
}

@media (max-width: 1024px) {
  .footer-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .footer-contact-column {
    grid-column: span 3;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 40px 20px;
  }

  .footer-contact-column {
    grid-column: span 2;
    margin-top: 20px;
  }

  .cta-icons {
    display: none;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 20px;
    text-align: center;
    margin-top: 40px;
  }
}

@media (max-width: 480px) {
  .footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 40px;
  }

  .footer-contact-column {
    grid-column: span 1;
    align-items: center;
  }

  .footer-widget h4 {
    margin-bottom: 20px;
  }

  .footer-widget ul li a {
    padding: 6px 0;
    display: inline-block;
  }

  .footer-widget ul li a:hover {
    padding-left: 0;
  }
}

/* Secondary Page Hero */
.secondary-hero {
  min-height: 50vh !important;
  display: flex;
  align-items: center;
  position: relative;
  background: radial-gradient(circle at 80% 20%, rgba(204, 255, 51, 0.1) 0%, transparent 40%),
    radial-gradient(circle at 20% 80%, rgba(204, 255, 51, 0.05) 0%, transparent 40%);
}

.secondary-hero .hero-content h1 {
  font-size: clamp(32px, 5vw, 56px);
  margin-bottom: 24px;
}

@media (max-width: 768px) {
  h1 {
    font-size: clamp(2.2rem, 10vw, 3.5rem) !important;
    line-height: 1.1 !important;
  }

  .hero-content p {
    font-size: 1rem !important;
  }
}

@media (max-width: 480px) {
  h1 {
    font-size: 2rem !important;
  }

  .hero {
    height: auto !important;
    min-height: 80vh;
    padding-top: 100px;
    padding-bottom: 60px;
  }
}

/* Glass Card Component */
.glass-card {
  background: var(--grad-glass);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: var(--glass-border);
  border-radius: 24px;
  box-shadow: var(--glass-shadow);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.glass-card:hover {
  border-color: rgba(204, 255, 51, 0.3);
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
}

/* Interactive Service Cards */
.service-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
  margin-top: 40px;
}

.hero {
  position: relative;
  height: 80vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background-color: var(--bg-main);
  padding-top: 140px;
}

.service-card-item {
  position: relative;
  height: 400px;
  border-radius: 20px;
  overflow: hidden;
  border: var(--glass-border);
  transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.service-card-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  transition: transform 0.8s ease;
  z-index: 1;
}

.service-card-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.2) 60%, transparent 100%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 30px;
  transition: background 0.4s ease;
}

.service-card-content {
  transform: translateY(60px);
  transition: transform 0.5s ease;
}

.service-card-item h3 {
  font-size: 20px;
  margin-bottom: 12px;
  color: var(--text-primary);
}

.service-card-desc {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-secondary);
  opacity: 0;
  transition: opacity 0.4s ease, transform 0.4s ease;
  transform: translateY(20px);
}

.service-card-item:hover {
  transform: translateY(-10px);
  border-color: var(--accent-secondary);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.service-card-item:hover .service-card-img {
  transform: scale(1.1);
}

.service-card-item:hover .service-card-overlay {
  background: linear-gradient(to top, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0.4) 100%);
}

.service-card-item:hover .service-card-content {
  transform: translateY(0);
}

.service-card-item:hover .service-card-desc {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1024px) {
  .service-card-item {
    height: 350px;
  }
}

/* Machine Categories Section */
.machine-categories-section {
  padding: 60px 0;
  background: #000;
}

.machine-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.machine-cat-card {
  position: relative;
  height: 280px;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  padding: 30px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
}

.card-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  transition: transform 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.machine-cat-card:hover .card-bg {
  transform: scale(1.1);
}

.card-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.2) 60%, transparent 100%);
  z-index: 1;
  transition: opacity 0.3s ease;
}

.machine-cat-card:hover .card-overlay {
  opacity: 0.8;
}

.card-content {
  position: relative;
  z-index: 2;
}

.card-content h3 {
  font-size: 24px;
  color: #fff;
  margin-bottom: 8px;
  font-weight: 700;
  line-height: 1.2;
}

.view-link {
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  opacity: 0.8;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
}

.machine-cat-card:hover .view-link {
  opacity: 1;
  color: var(--accent-primary);
}

@media (max-width: 1024px) {
  .machine-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .machine-cat-card {
    height: 260px;
    padding: 25px;
  }
}

@media (max-width: 768px) {
  .machine-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .machine-cat-card {
    height: 240px;
  }
}

/* Vending Machine Sales CTA Section */
.sales-cta-section {
  padding: 60px 0;
  background: #000;
}

.sales-cta-card {
  position: relative;
  border-radius: 30px;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  padding: 80px 60px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  min-height: 400px;
  display: flex;
  align-items: center;
}

.sales-cta-overlay {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to right, rgba(0, 0, 0, 0.4) 0%, rgba(0, 0, 0, 0.8) 100%);
  z-index: 1;
}

.sales-cta-content {
  position: relative;
  z-index: 2;
  max-width: 600px;
  margin-left: auto;
  text-align: right;
  color: #fff;
}

.sales-cta-content h2 {
  font-size: 3rem;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: -1px;
}

.perfect-fit-text {
  display: block;
  font-size: 2.8rem;
  text-transform: none;
  font-weight: 700;
  margin-top: 5px;
  color: #fff;
}

.sales-cta-content p {
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: 35px;
  opacity: 0.9;
  max-width: 500px;
  margin-left: auto;
}

.cta-btn {
  /* Inherits from standard button styles */
}

@media (max-width: 992px) {
  .sales-cta-card {
    padding: 60px 40px;
  }

  .sales-cta-content h2 {
    font-size: 2.5rem;
  }

  .perfect-fit-text {
    font-size: 2.2rem;
  }
}

@media (max-width: 768px) {
  .sales-cta-section {
    padding: 40px 0;
  }

  .sales-cta-card {
    padding: 60px 25px;
    border-radius: 20px;
    text-align: center;
  }

  .sales-cta-overlay {
    background: rgba(0, 0, 0, 0.7);
  }

  .sales-cta-content {
    text-align: center;
    margin: 0 auto;
  }

  .sales-cta-content p {
    margin-left: auto;
    margin-right: auto;
    font-size: 1rem;
  }

  .sales-cta-content h2 {
    font-size: 2rem;
  }

  .perfect-fit-text {
    font-size: 1.8rem;
  }
}

/* Awards & Trust Section */
.awards-trust-section {
  padding: 120px 0;
  background: #000;
  color: #fff;
  position: relative;
  overflow: hidden;
}

/* Subtle background accent */
.awards-trust-section::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80%;
  height: 80%;
  background: radial-gradient(circle, rgba(153, 204, 0, 0.05) 0%, transparent 70%);
  pointer-events: none;
}

.awards-trust-container {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1.5fr;
  gap: 80px;
  align-items: center;
  position: relative;
  z-index: 2;
}

/* Logistics Image Grid */
.trust-image-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.grid-item {
  height: 180px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.grid-item.large-left {
  grid-row: span 2;
  height: 380px;
}

.grid-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
  filter: grayscale(20%);
}

.grid-item:hover img {
  transform: scale(1.1);
  filter: grayscale(0%);
}

/* Awards Column */
.trust-awards {
  display: flex;
  flex-direction: column;
  gap: 60px;
  align-items: center;
  justify-content: center;
  padding: 40px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.award-item {
  text-align: center;
}

.award-fg50-logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 1;
  gap: 20px;
}

.fg-text {
  font-size: 1.1rem;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.9);
  letter-spacing: 2px;
}

.fg-number {
  font-size: 5rem;
  font-weight: 900;
  color: #CCFF33;
  /* Brand Lime Green */
  margin-top: -5px;
  text-shadow: 0 10px 30px rgba(204, 255, 51, 0.3);
}

.award-years {
  font-size: 0.9rem;
  font-weight: 700;
  color: #999;
  margin-top: 5px;
}

.gbea-highlight {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.02) 100%);
  padding: 20px 30px;
  border-radius: 8px;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.gbea-logo {
  display: flex;
  flex-direction: column;
}

.gbea-text {
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 2px;
}

.gbea-subtext {
  font-size: 0.75rem;
  opacity: 0.7;
  margin-top: 4px;
}

.small-logo .fg-text {
  font-size: 0.9rem;
}

.small-logo .fg-number {
  font-size: 3rem;
}

.award-desc {
  font-size: 0.9rem;
  font-weight: 600;
  color: #ccc;
  line-height: 1.3;
  margin-top: 10px;
}

.award-highlight {
  color: #CCFF33;
  /* Brand Lime Green */
  font-weight: 800;
}

/* Trust Content */
.trust-content h2 {
  font-size: 2rem;
  font-weight: 900;
  line-height: 1.1;
  color: #fff;
  margin-bottom: 25px;
  text-transform: uppercase;
  letter-spacing: -1px;
}

.trust-content h2 .text-gradient {
  display: inline;
  background: var(--grad-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.trust-content p {
  font-size: 0.9rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 18px;
}

.trust-content strong {
  color: #fff;
  font-weight: 800;
  position: relative;
  display: inline-block;
}

.trust-content strong::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 0;
  width: 100%;
  height: 2px;
  background: #99CC00;
  opacity: 0.4;
}

@media (max-width: 1200px) {
  .awards-trust-container {
    gap: 50px;
    grid-template-columns: 1.2fr 1.2fr 1.6fr;
  }
}

@media (max-width: 992px) {
  .awards-trust-section {
    padding: 80px 0;
  }

  .awards-trust-container {
    grid-template-columns: 1fr 1fr;
  }

  .trust-content {
    grid-column: span 2;
    text-align: center;
    max-width: 800px;
    margin: 40px auto 0;
  }

  .trust-awards {
    flex-direction: row;
    grid-column: span 2;
    justify-content: space-around;
    padding: 30px;
  }
}

@media (max-width: 768px) {
  .awards-trust-container {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .trust-content,
  .trust-awards {
    grid-column: span 1;
  }

  .trust-awards {
    flex-direction: column;
    gap: 40px;
  }

  .trust-image-grid {
    max-width: 450px;
    margin: 0 auto;
  }

  .trust-content h2 {
    font-size: 2.2rem;
  }
}

/* Partner Network Section - Infinite Ticker */
.partner-network-section {
  padding: 80px 0;
  background: #000;
  overflow: hidden;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.network-title {
  font-size: 24px;
  font-weight: 700;
  color: #fff;
  letter-spacing: 2px;
  margin-bottom: 60px;
  text-transform: uppercase;
  text-align: center;
}

.partner-ticker {
  display: flex;
  overflow: hidden;
  position: relative;
  width: 100%;
}

.ticker-track {
  display: flex;
  width: calc(200px * 26 + 40px * 26);
  /* 26 items total */
  animation: scroll 60s linear infinite;
  gap: 40px;
  padding: 20px 0;
}

.ticker-track:hover {
  animation-play-state: paused;
}

.partner-logo-item {
  width: 200px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.7;
  filter: invert(1);
  transition: all 0.4s ease;
}

.partner-logo-item:hover {
  opacity: 1;
  filter: invert(1) brightness(1.2);
}

.partner-logo-item img {
  max-width: 100%;
  max-height: 150px;
  /* Larger logos as per reference */
  object-fit: contain;
}

.slider-dots {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  margin-top: 40px;
}

.dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  cursor: pointer;
  transition: all 0.3s ease;
}

.dot.active {
  width: 18px;
  height: 18px;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.dot.active::after {
  content: '';
  width: 4px;
  height: 4px;
  background: rgba(255, 255, 255, 0.8);
  border-radius: 50%;
}

@keyframes scroll {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(calc(-200px * 13 - 40px * 13));
    /* One full set loop */
  }
}

@media (max-width: 768px) {
  .ticker-track {
    animation-duration: 20s;
  }
}

/* Brands Section Specific Styles */
.brands-section {
  border-top: 1px solid rgba(255, 255, 255, 0.05) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
  background: #000 !important;
}

.brands-section .ticker-track {
  width: calc(200px * 34 + 40px * 34);
  /* 34 items total (17 x 2) */
  animation: scroll-brands 80s linear infinite;
}

@keyframes scroll-brands {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(calc(-200px * 17 - 40px * 17));
    /* Loop after 17 items */
  }
}

.brand-logo {
  filter: invert(1) !important;
  opacity: 0.7 !important;
  transition: all 0.4s ease !important;
  margin: 0 50px !important;
}

.brand-logo:hover {
  opacity: 1 !important;
  filter: invert(1) brightness(1.2) !important;
  transform: scale(1.1);
}

/* Managed Vending Page Styles */
.hero-managed h1 {
  font-size: clamp(40px, 6vw, 84px) !important;
  margin-bottom: 20px !important;
  color: #fff !important;
}

.benefit-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  padding: 40px;
  border-radius: 24px;
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}

.benefit-card:hover {
  background: rgba(204, 255, 51, 0.05);
  border-color: rgba(204, 255, 51, 0.3);
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.benefit-icon {
  width: 50px;
  height: 50px;
  background: var(--grad-primary);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  font-size: 20px;
  color: #000;
}

.benefit-card h3 {
  font-size: 20px;
  margin-bottom: 12px;
  color: #fff;
}

.benefit-card p {
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.6;
}

.process-item {
  position: relative;
  padding-top: 40px;
}

.process-num {
  font-size: 48px;
  font-weight: 800;
  color: rgba(204, 255, 51, 0.1);
  position: absolute;
  top: 0;
  left: 0;
  line-height: 1;
}

.process-item h4 {
  font-size: 18px;
  margin-bottom: 15px;
  color: #fff;
  position: relative;
  z-index: 2;
}

.process-item p {
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.6;
}

@media (max-width: 768px) {
  .managed-cta-box {
    padding: 40px 20px !important;
  }
}

/* Machine Rental Cards */
.machine-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 24px;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  display: flex;
  flex-direction: column;
}

.machine-card:hover {
  transform: translateY(-12px);
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(204, 255, 51, 0.2);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

.machine-img-wrapper {
  position: relative;
  height: 380px;
  overflow: hidden;
  background: #111;
}

.machine-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.machine-card:hover .machine-img-wrapper img {
  transform: scale(1.08);
}

.price-badge {
  position: absolute;
  top: 20px;
  right: 20px;
  background: var(--grad-primary);
  color: #000;
  padding: 8px 16px;
  border-radius: 100px;
  font-weight: 700;
  font-size: 14px;
  box-shadow: 0 4px 15px rgba(204, 255, 51, 0.3);
  z-index: 2;
}

.machine-card-content {
  padding: 30px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.machine-card-content h3 {
  font-size: 22px;
  margin-bottom: 12px;
  color: #fff;
}

.machine-card-content p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 20px;
}

.machine-features {
  display: flex;
  gap: 15px;
  margin-bottom: 25px;
  flex-wrap: wrap;
}

.machine-features span {
  font-size: 12px;
  color: #fff;
  background: rgba(255, 255, 255, 0.05);
  padding: 4px 10px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.machine-features i {
  color: var(--brand-color);
  font-size: 10px;
}

.btn-outline-small {
  display: inline-block;
  padding: 10px 20px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  text-align: center;
  margin-top: auto;
}

.btn-outline-small:hover {
  background: #fff;
  color: #000;
  border-color: #fff;
}

.btn-outline-small i {
  margin-left: 8px;
  transition: transform 0.3s ease;
}

.btn-outline-small:hover i {
  transform: translateX(4px);
}

.rent-benefit-item h4 {
  font-size: 18px;
  margin-bottom: 10px;
  color: #fff;
}

.rent-benefit-item p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
}

.benefit-icon {
  font-size: 24px;
  margin-bottom: 20px;
}

/* Impact CTA Box */
.impact-cta-box {
  background: var(--grad-glass);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: var(--glass-border);
  border-radius: 32px;
  padding: 80px 40px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
  box-shadow: var(--glass-shadow);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  overflow: hidden;
  margin-top: 40px;
}

.impact-cta-box::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(204, 255, 51, 0.05) 0%, transparent 60%);
  z-index: 0;
  pointer-events: none;
}

.impact-cta-box:hover {
  border-color: rgba(204, 255, 51, 0.3);
  transform: translateY(-8px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.impact-cta-box>div {
  position: relative;
  z-index: 1;
}

.impact-cta-box h2 {
  font-size: clamp(32px, 5vw, 52px);
  margin-bottom: 15px;
  line-height: 1.1;
}

.impact-cta-box p {
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto;
}

.impact-cta-box .btn-primary {
  position: relative;
  z-index: 1;
}

@media (max-width: 768px) {
  .impact-cta-box {
    padding: 60px 20px;
    gap: 30px;
  }
}

/* --- New Brochure & Service Blocks Integration --- */
/* --- Typography Responsiveness --- */
h1,
.hero h1 {
  font-size: clamp(2.5rem, 8vw, 4.5rem) !important;
  line-height: 1.1;
}

.section-title {
  font-size: clamp(2rem, 5vw, 3.5rem) !important;
  line-height: 1.2;
}

h2 {
  font-size: clamp(1.8rem, 4vw, 2.5rem) !important;
}

/* --- New Brochure & Service Blocks Integration --- */
.brochure-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.brochure-section > * {
  min-width: 0;
}

.brochure-section.reverse {
  direction: rtl;
}

.brochure-section.reverse>* {
  direction: ltr;
}

.brochure-asymmetric {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 60px;
  align-items: center;
}

.brochure-asymmetric > * {
  min-width: 0;
}

/* Responsive Utility Grids */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}

@media (max-width: 991px) {
  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }

  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {

  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr !important;
  }
}

/* Global Premium Grid System */
.premium-feature-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
  margin-bottom: 60px;
}

.premium-feature-card {
  background: rgba(45, 43, 43, 0.4);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: var(--glass-border);
  border-radius: 20px;
  padding: 40px 25px;
  text-align: center;
  width: calc(33.333% - 20px);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  text-decoration: none;
}

.premium-feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--grad-primary);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.premium-feature-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5), 0 0 20px rgba(204, 255, 51, 0.1);
  border-color: rgba(204, 255, 51, 0.3);
  background: rgba(60, 60, 60, 0.5);
}

.premium-feature-card:hover::before {
  opacity: 1;
}

.premium-feature-card i {
  font-size: 50px;
  color: var(--accent-primary);
  margin-bottom: 25px;
  transition: all 0.4s ease;
  filter: drop-shadow(0 0 10px rgba(204, 255, 51, 0.2));
}

.premium-feature-card:hover i {
  transform: scale(1.15);
  filter: drop-shadow(0 0 15px rgba(204, 255, 51, 0.5));
  color: #fff;
}

.premium-feature-card h6 {
  font-size: 16px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #fff;
  line-height: 1.4;
  margin-bottom: 15px;
}

.premium-feature-card p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0;
  font-weight: 400;
}

.setup-card {
  background: rgba(255, 255, 255, 0.02);
  border: var(--glass-border);
  border-radius: 20px;
  padding: 30px;
  transition: all 0.3s ease;
}

.setup-card:hover {
  background: rgba(204, 255, 51, 0.05);
  border-color: rgba(204, 255, 51, 0.3);
  transform: scale(1.02);
}

.bg-deep-grey {
  background: rgba(45, 43, 43, 0.5);
  border: var(--glass-border);
  padding: 50px;
  border-radius: 32px;
}

@media (max-width: 991px) {

  .brochure-section,
  .brochure-asymmetric {
    grid-template-columns: 1fr !important;
    gap: 40px;
    text-align: center;
  }

  .brochure-section.reverse {
    direction: ltr;
  }

  .premium-feature-card {
    width: calc(50% - 15px);
  }

  .section {
    padding: 60px 0;
  }

  .frame-section {
    padding: 0 15px;
  }

  .frame-section h5,
  .frame-section h2.section-title {
    text-align: center !important;
  }

  .hero h1 {
    font-size: clamp(2.2rem, 10vw, 3.5rem);
  }

  .hero p {
    font-size: 1rem !important;
  }
}

@media (max-width: 576px) {
  .premium-feature-card {
    width: 100%;
  }

  .container {
    padding: 0 1.5rem;
  }

  .hero {
    padding-top: 100px;
    padding-bottom: 60px;
  }
}

.feature-chip-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-top: 30px;
}

.feature-chip {
  display: flex;
  align-items: center;
  background: rgba(45, 43, 43, 0.6);
  backdrop-filter: var(--glass-blur);
  border: var(--glass-border);
  border-radius: 12px;
  padding: 15px 25px;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease;
}

.feature-chip:hover {
  transform: translateX(10px);
  border-color: rgba(204, 255, 51, 0.3);
}

.feature-chip::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 15px;
  height: 25px;
  background: var(--grad-primary);
  border-bottom-right-radius: 10px;
}

.feature-chip i {
  font-size: 24px;
  color: var(--accent-primary);
  margin-right: 20px;
  width: 30px;
  text-align: center;
  flex-shrink: 0;
}

.feature-chip span {
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.feature-chip div {
  text-align: left;
}

/* Timeline / How it works */
.timeline-list {
  display: flex;
  flex-direction: column;
  gap: 25px;
  margin-top: 30px;
  padding-left: 10px;
}

.timeline-item {
  display: flex;
  align-items: flex-start;
  position: relative;
}

.timeline-item::before {
  content: '';
  position: absolute;
  top: 40px;
  bottom: -25px;
  left: 19px;
  width: 2px;
  background: rgba(204, 255, 51, 0.2);
}

.timeline-item:last-child::before {
  display: none;
}

.timeline-number {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(204, 255, 51, 0.1);
  border: 1px solid var(--accent-primary);
  color: var(--accent-primary);
  display: flex;
  justify-content: center;
  align-items: center;
  font-weight: 700;
  font-size: 16px;
  flex-shrink: 0;
  margin-right: 20px;
  box-shadow: var(--glow-shadow);
  z-index: 2;
}

.timeline-content h4 {
  color: var(--accent-primary);
  font-size: 16px;
  margin-bottom: 5px;
  text-transform: uppercase;
}

.timeline-content p {
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.5;
}

/* Specific Section BGs */
.bg-deep-grey {
  background: rgba(30, 30, 30, 0.8);
  border-radius: 30px;
  padding: 60px;
  border: var(--glass-border);
}

@media (max-width: 991px) {
  .bg-deep-grey {
    padding: 30px;
  }
}

.uk-map-container {
  position: relative;
  text-align: center;
  display: flex;
  justify-content: center;
  align-items: center;
}

.uk-map-container img {
  max-width: 80%;
  opacity: 0.8;
  filter: drop-shadow(0 0 20px rgba(204, 255, 51, 0.2));
}

.pin-label {
  position: absolute;
  bottom: 0px;
  background: rgba(45, 43, 43, 0.9);
  border: 1px solid var(--accent-primary);
  padding: 10px 20px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 14px;
  text-align: center;
  backdrop-filter: blur(5px);
}

.pin-label span {
  display: block;
  font-size: 11px;
  color: var(--text-muted);
}

.nutristore-banner {
  background: linear-gradient(90deg, rgba(20, 20, 20, 1) 0%, rgba(45, 43, 43, 1) 100%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  overflow: hidden;
  margin-top: 40px;
}

.banner-header {
  background: var(--accent-primary);
  color: #000;
  text-align: center;
  padding: 10px;
  font-weight: 800;
  text-transform: uppercase;
  font-size: 16px;
}

.banner-body {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 30px 40px;
}

.banner-brands {
  display: flex;
  gap: 20px;
  align-items: center;
  flex-wrap: wrap;
}

.banner-brands img {
  height: 30px;
  filter: grayscale(100%) brightness(200%);
  opacity: 0.7;
}

.scan-box {
  background: #000;
  border: 2px solid #333;
  padding: 15px;
  border-radius: 15px;
  text-align: center;
}

.scan-box h5 {
  color: #fff;
  margin-bottom: 10px;
  font-size: 16px;
  text-transform: uppercase;
}

.scan-box img {
  width: 100px;
  height: 100px;
  background: white;
  padding: 5px;
  border-radius: 8px;
}

@media (max-width: 768px) {
  .banner-body {
    flex-direction: column;
    gap: 20px;
    padding: 20px 15px;
  }
  .banner-brands {
    justify-content: center;
  }
  .banner-header {
    font-size: 13px;
    line-height: 1.4;
  }
  .nutristore-banner {
    margin-top: 20px;
  }
}

/* Full Frame Sections for Desktop */
@media (min-width: 992px) {
  .frame-section {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    padding-top: 80px !important;
    padding-bottom: 40px !important;
    scroll-snap-align: start;
  }
}

/* --- Managed Vending Specific Styles --- */

/* 1. Checklist Items */
.managed-checklist {
  display: flex;
  flex-direction: column;
  gap: 30px;
  margin-top: 40px;
}

.managed-checklist-item {
  display: flex;
  align-items: flex-start;
  gap: 20px;
}

.m-check-icon {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: 2px solid var(--accent-primary);
  display: flex;
  justify-content: center;
  align-items: center;
  color: var(--accent-primary);
  font-size: 20px;
  flex-shrink: 0;
  box-shadow: inset 0 0 10px rgba(204, 255, 51, 0.1), 0 0 15px rgba(204, 255, 51, 0.2);
}

.m-check-content h4 {
  font-size: 16px;
  font-weight: 800;
  color: var(--text-primary);
  text-transform: uppercase;
  margin-bottom: 5px;
}

.m-check-content p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* 2. How It Works (Right Aligned) */
.managed-how-list {
  display: flex;
  flex-direction: column;
  gap: 40px;
  max-width: 500px;
  margin-left: auto;
}

.managed-how-item {
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  text-align: right;
  position: relative;
  padding-right: 70px;
}

.how-item-text {
  padding-top: 5px;
}

.how-item-text h4 {
  font-size: 16px;
  font-weight: 800;
  color: #fff;
  text-transform: uppercase;
  margin-bottom: 5px;
}

.how-item-text p {
  font-size: 14px;
  color: #ccc;
  line-height: 1.4;
}

.how-item-num {
  position: absolute;
  top: 0;
  right: 0;
  font-size: 38px;
  font-weight: 800;
  color: transparent;
  -webkit-text-stroke: 1px var(--accent-primary);
  line-height: 1;
}

/* 3. Decided Next Steps Timeline */
.next-steps-container {
  max-width: 1000px;
  margin: 0 auto;
  position: relative;
  padding: 40px 0;
}

.stepper-timeline {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 40px 30px;
  position: relative;
}

/* Connecting line */
.stepper-timeline::before {
  content: '';
  position: absolute;
  top: 50px;
  left: 10%;
  right: 10%;
  height: 2px;
  background: rgba(204, 255, 51, 0.2);
  z-index: 1;
}

.step-card {
  width: calc(33.333% - 20px);
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  z-index: 2;
}

.step-icon {
  width: 100px;
  height: 100px;
  background: #151515;
  border: 4px solid #222;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 32px;
  color: #fff;
  margin-bottom: 25px;
  transition: all 0.3s ease;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5);
}

.step-card:nth-child(1) .step-icon {
  border-color: var(--accent-primary);
  color: var(--accent-primary);
  box-shadow: 0 0 20px rgba(204, 255, 51, 0.3);
}

.step-card:hover .step-icon {
  border-color: var(--accent-primary);
  transform: scale(1.1);
  color: var(--accent-primary);
}

.step-number {
  font-size: 13px;
  font-weight: 800;
  color: var(--accent-primary);
  text-transform: uppercase;
  margin-bottom: 10px;
}

.step-text p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.5;
}

@media (max-width: 991px) {
  .stepper-timeline::before {
    display: none;
    /* remove horizontal line on tablet */
  }
}

@media (max-width: 768px) {
  .managed-how-list {
    margin-left: 0;
    margin-right: auto;
  }

  .managed-how-item {
    justify-content: flex-start;
    text-align: left;
    padding-right: 0;
    padding-left: 60px;
  }

  .how-item-num {
    right: auto;
    left: 0;
  }

  .stepper-timeline {
    flex-direction: column;
    align-items: flex-start;
    padding-left: 20px;
    gap: 0;
  }

  .stepper-timeline::before {
    display: block;
    /* re-add line as vertical */
    top: 0;
    bottom: 0;
    left: 60px;
    right: auto;
    width: 2px;
    height: 100%;
  }

  .step-card {
    width: 100%;
    flex-direction: row;
    text-align: left;
    align-items: flex-start;
    margin-bottom: 40px;
  }

  .step-icon {
    width: 80px;
    height: 80px;
    margin-bottom: 0;
    margin-right: 25px;
    font-size: 24px;
    flex-shrink: 0;
  }

  .step-text {
    padding-top: 10px;
  }
}

.glass-how-it-works-box {
  background: rgba(10, 10, 10, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 50px 40px;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  width: 100%;
  max-width: 550px;
  margin-left: auto;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 1);
}

/* --- Global Mobile Typography & Framework Fixes --- */
@media (max-width: 768px) {
  h1 {
    font-size: 34px !important;
    line-height: 1.2 !important;
  }

  h2,
  .section-title {
    font-size: 28px !important;
    line-height: 1.3 !important;
  }

  h3 {
    font-size: 24px !important;
  }

  .glass-how-it-works-box {
    padding: 30px 20px;
    border-radius: 16px;
  }

  .how-item-num {
    font-size: 32px;
  }

  .premium-feature-card i {
    font-size: 36px;
    margin-bottom: 15px;
  }

  .m-check-icon {
    width: 40px;
    height: 40px;
    font-size: 16px;
  }

  .managed-checklist-item {
    gap: 15px;
  }

  /* Feature chip text scaling */
  .feature-chip span {
    font-size: 12px !important;
  }

  .feature-chip p {
    font-size: 10px !important;
  }

  /* Disable full viewport framing on small screens so it stacks and flows naturally */

  .frame-section {
    min-height: auto !important;
    padding-top: 60px !important;
    padding-bottom: 60px !important;
  }
}

/* ============================================================
   RESPONSIVE FIXES: Managed Vending / Rent / Buy Pages
   ============================================================ */

/* Machine card grid — prevent 320px minmax from overflowing on very small screens */
.machine-grid {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

/* Finance / split section on buy page */
.finance-split-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

/* Calculator shared styles */
.calc-sliders-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px 40px;
  margin-bottom: 24px;
}

.calc-results-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 12px;
}

.calc-cta-row {
  display: grid;
  grid-template-columns: 1fr 3fr;
  gap: 12px;
}

/* Comparison cards (revenue share section) */
.comparison-cards-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  max-width: 960px;
  margin: 0 auto;
}

/* ---- Tablet (≤ 768px) ---- */
@media (max-width: 768px) {

  /* Machine card grid: 2 columns on tablet */
  .machine-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 20px !important;
  }

  /* Finance split: stack on tablet */
  .finance-split-grid {
    grid-template-columns: 1fr !important;
    gap: 30px !important;
  }

  /* Calculator sliders: single column */
  .calc-sliders-grid {
    grid-template-columns: 1fr !important;
    gap: 20px !important;
  }

  /* Results: 2 columns */
  .calc-results-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }

  /* CTA row: stack */
  .calc-cta-row {
    grid-template-columns: 1fr !important;
  }

  /* Comparison cards: stack */
  .comparison-cards-grid {
    grid-template-columns: 1fr !important;
  }

  /* Sticky image sidebar: remove sticky, add margin */
  .managed-sticky-img {
    position: static !important;
    top: auto !important;
    padding: 0 !important;
  }

  /* Rental comparison / investment options — override minmax(350px) which is too wide */
  [style*="minmax(350px"] {
    grid-template-columns: 1fr !important;
  }

  /* Buy page finance section */
  .hero-buy .hero-content,
  .hero-rent .hero-content,
  .hero-managed .hero-content {
    padding: 0 15px;
  }

  /* Profit calculator padding */
  .calc-box-inner {
    padding: 20px !important;
  }
}

/* ---- Mobile (≤ 480px) ---- */
@media (max-width: 480px) {

  /* Machine card grid: single column */
  .machine-grid {
    grid-template-columns: 1fr !important;
  }

  /* Results: single column */
  .calc-results-grid {
    grid-template-columns: 1fr !important;
  }

  /* Machine card image: fixed height */
  .machine-img-wrapper img {
    height: 220px !important;
    object-fit: cover;
  }

  /* Managed vending checklist: tighten */
  .managed-checklist {
    gap: 20px !important;
  }

  /* Section padding reduction */
  .section.pt-80 { padding-top: 40px !important; }
  .section.pb-80 { padding-bottom: 40px !important; }
  .section.pt-100 { padding-top: 50px !important; }
  .section.pb-100 { padding-bottom: 50px !important; }
}
/* ==========================================================================
   Nutrivend Editable additions (menus managed in Appearance > Menus)
   ========================================================================== */
.main-navigation li.menu-highlight {
  border-top: 1px solid rgba(255,255,255,0.08);
  margin-top: 5px;
  padding-top: 5px;
}
.main-navigation li.menu-highlight > a {
  color: var(--brand-color) !important;
  font-weight: 700;
}
