/* Reset & Base Styles */
:root {
  /* Softer palette based on provided colors */
  --primary: #85c001;
  /* from #85c001 softened */
  --primary-light: #98cc3d;
  /* from #98cc3d/#b7e240 softened-->8fc429 */
  --secondary: #ff6e1a;
  /* from #ff6e1a softened */
  --accent-1: #98e90b;
  /* from #98e90b softened ->8bd10b*/
  --accent-2: #b6f21f;
  /* from #C4ff22 softened */
  --accent-3: #a8d63a;
  /* from #98cc3d/#b7e240 softened */
  --dark: #5f8b00;
  --light: #f8f9fa;
  --text: #333;
  --text-light: #6c757d;
  --white: #ffffff;
  --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  --transition: all 0.3s ease;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Poppins', 'Roboto', sans-serif;
  line-height: 1.7;
  color: var(--text);
  background-color: var(--white);
  overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 1rem;
  color: var(--dark);
}

p {
  margin-bottom: 1.5rem;
  color: var(--text-light);
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--primary-light);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 12px 30px;
  background: var(--secondary);
  color: var(--white);
  border: none;
  border-radius: 50px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  text-align: center;
  box-shadow: var(--shadow);
}

.btn:hover {
  background: var(--primary);
  transform: translateY(-3px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

/* Header */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 5%;
  background: rgba(255, 255, 255, 0.95);
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  transition: var(--transition);
}

/* Ensure inner header container handles layout */
header>.container {
  display: flex;
  align-items: center;
  width: 100%;
}

/* Desktop nav alignment to the right */
@media (min-width: 769px) {
  header>.container {
    justify-content: space-between;
  }

  nav {
    position: static;
    width: auto;
    height: auto;
    background: transparent;
    box-shadow: none;
    padding: 0;
    right: auto;
  }

  nav ul {
    margin-left: auto;
    /* push nav to the right */
    justify-content: flex-end;
    gap: 2rem;
  }

  .menu-toggle {
    display: none;
  }
}

header.scrolled {
  padding: 1rem 5%;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

header .logo img {
  height: 50px;
  transition: var(--transition);
}

header.scrolled .logo img {
  height: 40px;
}

nav ul {
  display: flex;
  list-style: none;
  gap: 2rem;
}

nav ul li a {
  color: var(--dark);
  font-weight: 600;
  position: relative;
  padding: 0.5rem 0;
}

nav ul li a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  left: 0;
  background-color: var(--secondary);
  transition: var(--transition);
}

nav ul li a:hover::after,
nav ul li a.active::after {
  width: 100%;
}

/* Hero Section */
#hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 8rem 5% 5rem;
  background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('../images/hero-bg.jpg') center/cover no-repeat;
  color: var(--white);
  position: relative;
}

.hero-content {
  max-width: 800px;
  animation: fadeInUp 1s ease-out;
  margin: 0 auto;
}

#hero h1 {
  font-size: 3.5rem;
  margin-bottom: 1.5rem;
  color: var(--white);
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

#hero p {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  color: rgba(255, 255, 255, 0.9);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* Hero Features (icons list on the hero) */
.hero-features {
  position: absolute;
  right: 5%;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  text-align: left;
}

.hero-features .feature {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  white-space: nowrap;
  /* keep entire feature on one line */
  width: max-content;
  /* allow it to expand to fit text */
}

.hero-features .feature i {
  color: var(--white);
}

.hero-features .feature span {
  color: var(--white);
  white-space: nowrap;
  /* keep label on one line */
  font-size: 0.95rem;
  line-height: 1;
}

@media (max-width: 768px) {
  .hero-features {
    right: 3%;
    gap: 0.35rem;
  }

  .hero-features .feature span {
    font-size: 0.9rem;
  }
}

/* Sections */
section {
  padding: 6rem 5%;
}

.section-title {
  text-align: center;
  margin-bottom: 4rem;
  position: relative;
  padding-bottom: 1rem;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: var(--secondary);
  border-radius: 2px;
}

/* Services */
.service-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.card {
  background: var(--white);
  border-radius: 12px;
  padding: 2rem;
  text-align: center;
  transition: var(--transition);
  box-shadow: var(--shadow);
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.card img {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: 50%;
  margin: 0 auto 1.5rem;
  border: 5px solid rgba(255, 140, 0, 0.1);
  transition: var(--transition);
}

.card:hover img {
  transform: scale(1.05);
  border-color: var(--secondary);
}

.card h3 {
  color: var(--dark);
  margin-bottom: 1rem;
  font-size: 1.5rem;
}

/* Features Section */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin: 3rem 0;
}

.feature-card {
  background: var(--white);
  border-radius: 12px;
  padding: 2rem;
  text-align: center;
  box-shadow: var(--shadow);
  transition: var(--transition);
  border: 1px solid rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.feature-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.feature-icon {
  width: 80px;
  height: 80px;
  background: rgba(121, 171, 1, 0.1);
  /* tint of new primary */
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  color: var(--primary);
  font-size: 1.8rem;
  transition: var(--transition);
}

.feature-card:hover .feature-icon {
  background: var(--primary);
  color: white;
  transform: rotateY(180deg);
}

.feature-card h3 {
  color: var(--dark);
  margin-bottom: 1rem;
  font-size: 1.4rem;
}

.feature-card p {
  color: var(--text-light);
  margin-bottom: 0;
  font-size: 1rem;
  line-height: 1.6;
}

/* Wholesaler Advantage */
.wholesaler-advantage {
  background: linear-gradient(135deg, rgba(44, 122, 44, 0.05) 0%, rgba(255, 140, 0, 0.05) 100%);
  border-radius: 15px;
  padding: 3rem;
  margin-top: 4rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.wholesaler-advantage::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 8px;
  height: 100%;
  background: linear-gradient(to bottom, var(--primary), var(--secondary));
}

.advantage-content {
  padding-right: 2rem;
}

.advantage-content h3 {
  color: var(--dark);
  font-size: 1.8rem;
  margin-bottom: 1.5rem;
  position: relative;
  padding-left: 1.5rem;
}

.advantage-content h3::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 5px;
  height: 40px;
  background: var(--secondary);
  border-radius: 5px;
}

.advantage-content p {
  color: var(--text-light);
  margin-bottom: 2rem;
  line-height: 1.8;
}

.advantage-image {
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
  transition: var(--transition);
}

.advantage-image:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

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

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

/* Contact Form */
form {
  max-width: 600px;
  margin: 0 auto;
  background: var(--white);
  padding: 2.5rem;
  border-radius: 12px;
  box-shadow: var(--shadow);
}

.form-group {
  margin-bottom: 1.5rem;
}

form label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: var(--dark);
}

form input,
form textarea {
  width: 100%;
  padding: 0.8rem 1rem;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-family: inherit;
  font-size: 1rem;
  transition: var(--transition);
}

form input:focus,
form textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(44, 122, 44, 0.2);
}

form textarea {
  min-height: 150px;
  resize: vertical;
}

form button[type="submit"] {
  width: 100%;
  padding: 1rem;
  background: var(--secondary);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  text-transform: uppercase;
  letter-spacing: 1px;
}

form button[type="submit"]:hover {
  background: var(--primary);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Footer */
footer {
  background: var(--dark);
  color: var(--white);
  padding: 3rem 5%;
  text-align: center;
}

/* Footer logo image size to 50% */
footer .logo img {
  width: 50%;
  height: auto;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.25rem;
  text-align: left;
}

.footer-section h3 {
  color: var(--white);
  margin-bottom: 1.5rem;
  position: relative;
  padding-bottom: 0.5rem;
}

.footer-section h3::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 50px;
  height: 2px;
  background: var(--secondary);
}

.footer-section p,
.footer-section a {
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 0.8rem;
  display: block;
  transition: var(--transition);
}

.footer-section a:hover {
  color: var(--secondary);
  padding-left: 5px;
}

.social-links {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
}

.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  color: var(--white);
  transition: var(--transition);
}

.social-links a:hover {
  background: var(--secondary);
  transform: translateY(-3px);
}

.copyright {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.9rem;
}

.copyright p {
  color: #cfd3d7;
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Toast notification */
.notification {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%) translateY(20px);
  background: rgba(26, 60, 26, 0.95);
  color: #fff;
  padding: 12px 16px;
  border-radius: 8px;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
  opacity: 0;
  transition: transform .3s ease, opacity .3s ease;
  z-index: 1100;
  max-width: 90vw;
  text-align: center;
  font-weight: 600;
}

.notification.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* Responsive Design */
@media (max-width: 1200px) {
  .wholesaler-advantage {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .advantage-content {
    padding-right: 0;
  }

  .advantage-content h3::before {
    left: 50%;
    transform: translate(-50%, -50%);
    top: -20px;
    width: 40px;
    height: 5px;
  }
}

@media (max-width: 992px) {
  html {
    font-size: 15px;
  }

  #hero h1 {
    font-size: 2.8rem;
  }

  .service-cards,
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  html {
    font-size: 14px;
  }

  .wholesaler-advantage {
    padding: 2rem;
  }

  .advantage-content h3 {
    font-size: 1.5rem;
  }

  .feature-card {
    padding: 1.5rem 1rem;
  }

  .feature-icon {
    width: 60px;
    height: 60px;
    font-size: 1.5rem;
  }

  header {
    padding: 1rem 5%;
  }

  /* Center logo on mobile while keeping hamburger at right */
  header>.container {
    justify-content: center;
    position: relative;
  }

  header .logo {
    margin: 0 auto;
  }

  .menu-toggle {
    display: block;
    cursor: pointer;
    z-index: 1001;
    /* place hamburger at the far right of the header on mobile */
    position: absolute;
    right: 5%;
    top: 50%;
    transform: translateY(-50%);
  }

  nav {
    position: fixed;
    top: 0;
    right: -300px;
    width: 280px;
    height: 100vh;
    background: var(--white);
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
    z-index: 1000;
    padding: 5rem 2rem 2rem;
  }

  nav.active {
    right: 0;
  }

  nav ul {
    flex-direction: column;
    gap: 1.5rem;
  }

  nav ul li a {
    color: var(--dark);
    font-size: 1.1rem;
  }

  #hero {
    padding: 6rem 5% 4rem;
  }

  #hero h1 {
    font-size: 2.2rem;
  }

  /* Reflow hero features below the hero content on mobile to avoid overlap */
  .hero-features {
    position: static;
    transform: none;
    right: auto;
    top: auto;
    margin-top: 1rem;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    /* allow wrap on small widths */
  }

  .hero-features .feature span {
    font-size: 0.85rem;
  }

  section {
    padding: 4rem 5%;
  }

  .service-cards,
  .features-grid {
    grid-template-columns: 1fr;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
  }

  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-section h3::after {
    left: 50%;
    transform: translateX(-50%);
  }

  .social-links {
    justify-content: center;
  }

  /* Center footer logo image on mobile */
  footer .logo img {
    margin: 0 auto;
    display: block;
  }

  /* Remove bullets from footer link lists on mobile, keep links */
  footer .footer-section ul {
    list-style: none;
    padding-left: 0;
    margin-left: 0;
  }

  footer .footer-section ul li {
    margin: 0.25rem 0;
  }
}

/* Utility Classes */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

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

.mb-1 {
  margin-bottom: 0.5rem;
}

.mb-2 {
  margin-bottom: 1rem;
}

.mb-3 {
  margin-bottom: 1.5rem;
}

.mb-4 {
  margin-bottom: 2rem;
}

.mb-5 {
  margin-bottom: 3rem;
}

.mt-1 {
  margin-top: 0.5rem;
}

.mt-2 {
  margin-top: 1rem;
}

.mt-3 {
  margin-top: 1.5rem;
}

.mt-4 {
  margin-top: 2rem;
}

.mt-5 {
  margin-top: 3rem;
}