:root {
  --pampas: #f4f3f0;
  --cod-gray: #1a1a1a;
  --aqua-forest: #5b9279;
  --oxford-blue: #14213d;
  --mine-shaft: #333333;
  --space-0: 0px;
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-7: 28px;
  --space-8: 32px;
  --radius-small: 4px;
  --radius-medium: 8px;
  --radius-large: 16px;
}

/* Typography */
body {
  font-family: "Raleway", sans-serif;
  font-size: 16px;
  line-height: 1.5;
  margin: 0;
  padding: 0;
  background-color: var(--pampas);
  color: var(--mine-shaft);
}

/* Type Scale */
.small-text {
  font-size: 12px;
}
.large-text {
  font-size: 21px;
}
.extra-large-text {
  font-size: 28px;
}
.huge-text {
  font-size: 37px;
}

/* Margin Utilities */
.m-0 {
  margin: var(--space-0);
}
.m-1 {
  margin: var(--space-1);
}
.m-2 {
  margin: var(--space-2);
}
.m-3 {
  margin: var(--space-3);
}
.m-4 {
  margin: var(--space-4);
}
.m-5 {
  margin: var(--space-5);
}
.m-6 {
  margin: var(--space-6);
}
.m-7 {
  margin: var(--space-7);
}
.m-8 {
  margin: var(--space-8);
}

/* Padding Utilities */
.p-0 {
  padding: var(--space-0);
}
.p-1 {
  padding: var(--space-1);
}
.p-2 {
  padding: var(--space-2);
}
.p-3 {
  padding: var(--space-3);
}
.p-4 {
  padding: var(--space-4);
}
.p-5 {
  padding: var(--space-5);
}
.p-6 {
  padding: var(--space-6);
}
.p-7 {
  padding: var(--space-7);
}
.p-8 {
  padding: var(--space-8);
}

/* Border Radius Utilities */
.radius-small {
  border-radius: var(--radius-small);
}
.radius-medium {
  border-radius: var(--radius-medium);
}
.radius-large {
  border-radius: var(--radius-large);
}

/* General Utility Classes */
.text-center {
  text-align: center;
}
.text-left {
  text-align: left;
}
.text-right {
  text-align: right;
}
.display-flex {
  display: flex;
}
.flex-column {
  flex-direction: column;
}
.flex-row {
  flex-direction: row;
}
.justify-center {
  justify-content: center;
}
.align-center {
  align-items: center;
}

/* Grid System */
.container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: var(--space-4);
  padding: var(--space-4);
}

.item {
  padding: var(--space-3);
  border: 1px solid #ccc;
  border-radius: var(--radius-small);
}

h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0 0 var(--space-4) 0;
}

p {
  margin: 0 0 var(--space-3) 0;
}

.section {
  padding-top: 80px; /* Adjust this value based on your navbar height */
}

/* If your hero section doesn't need this padding, you can exclude it like this: */
#home.section {
  padding-top: 0;
}

/* Ensure the navbar doesn't cover the section titles */
.section h2:first-child {
  padding-top: 20px; /* Adjust as needed */
}

/* Navbar Styles */
.navbar {
  background-color: var(--pampas);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.navbar-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-4) var(--space-6);
  max-width: 1200px;
  margin: 0 auto;
}

.logo {
  height: 40px;
  width: auto;
}

.nav-menu {
  display: flex;
  gap: var(--space-4);
}

.nav-link {
  color: var(--cod-gray);
  text-decoration: none;
  font-weight: bold;
  padding: var(--space-2) var(--space-3);
  transition: color 0.3s ease;
}

.nav-link:hover {
  color: var(--aqua-forest);
}

.menu-toggle {
  display: none;
  cursor: pointer;
}

.bar {
  display: block;
  width: 25px;
  height: 3px;
  margin: 5px auto;
  transition: all 0.3s ease-in-out;
  background-color: var(--cod-gray);
}

/* Hero Styles */
.hero {
  background-image: url("assets/refilwe-bophelo-petroleum-facility-cinematic.webp");
  background-size: cover;
  background-position: center;
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  padding: 0 5%;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(20, 33, 61, 0.6);
  z-index: 1;
}

.hero-content {
  max-width: 800px;
  position: relative;
  z-index: 2;
  color: var(--pampas);
  text-align: left;
}

.cta-button {
  display: inline-block;
  background-color: var(--aqua-forest);
  color: var(--pampas);
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.cta-button:hover {
  background-color: #4a7a64;
}

.nav-circle {
  position: absolute;
  bottom: var(--space-6);
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 60px;
  cursor: pointer;
  z-index: 2;
  transition: transform 0.3s ease;
}

.nav-circle:hover {
  transform: translateX(-50%) scale(1.1);
}

.nav-circle svg {
  width: 100%;
  height: 100%;
}
.nav-link.active {
  color: var(--aqua-forest);
  position: relative;
}

.nav-link.active::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--aqua-forest);
}

/* Services Styles */
.services {
  background-color: var(--pampas);
}

.services-container {
  max-width: 1200px;
  margin: 0 auto;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--space-6);
}

.service-card {
  background-color: white;
  text-align: center;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.service-icon {
  width: 64px;
  height: 64px;
  margin-bottom: var(--space-3);
  color: var(--aqua-forest);
}

.service-card h3 {
  color: var(--cod-gray);
}

.service-card p {
  color: var(--mine-shaft);
}

/* Responsive Design */
@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }

  .nav-menu {
    position: fixed;
    left: -100%;
    top: 70px;
    flex-direction: column;
    background-color: var(--pampas);
    width: 100%;
    text-align: center;
    transition: 0.3s;
    box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
  }

  .nav-menu.active {
    left: 0;
  }

  .nav-link {
    margin: var(--space-6) 0;
  }

  .menu-toggle.active .bar:nth-child(2) {
    opacity: 0;
  }

  .menu-toggle.active .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }

  .menu-toggle.active .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }

  .hero-content h1 {
    font-size: 28px;
  }

  .hero-content p {
    font-size: 16px;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.service-card {
  animation: fadeInUp 0.6s ease-out forwards;
  opacity: 0;
}

.service-card:nth-child(1) {
  animation-delay: 0.1s;
}
.service-card:nth-child(2) {
  animation-delay: 0.2s;
}
.service-card:nth-child(3) {
  animation-delay: 0.3s;
}
.service-card:nth-child(4) {
  animation-delay: 0.4s;
}

/* Products Styles */
.products {
  background: linear-gradient(to bottom, var(--oxford-blue), var(--cod-gray));
  color: var(--pampas);
}

.products-container {
  max-width: 1200px;
  margin: 0 auto;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--space-6);
}

.product-item {
  background-color: rgba(255, 255, 255, 0.1);
  text-align: left;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  backdrop-filter: blur(5px);
}

.product-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}

.product-icon {
  width: 48px;
  height: 48px;
  margin-bottom: var(--space-3);
  color: var(--aqua-forest);
}

.product-item h3 {
  color: var(--pampas);
  border-bottom: 2px solid var(--aqua-forest);
  padding-bottom: var(--space-2);
  display: flex;
  align-items: center;
}

.product-item h3 svg {
  margin-right: var(--space-2);
}

.product-item ul {
  list-style-type: none;
  padding-left: 0;
}

.product-item li,
.product-item p {
  margin-bottom: var(--space-2);
  color: var(--pampas);
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.product-item {
  animation: fadeInUp 0.6s ease-out forwards;
  opacity: 0;
}

.product-item:nth-child(1) {
  animation-delay: 0.1s;
}
.product-item:nth-child(2) {
  animation-delay: 0.2s;
}
.product-item:nth-child(3) {
  animation-delay: 0.3s;
}
.product-item:nth-child(4) {
  animation-delay: 0.4s;
}
.product-item:nth-child(5) {
  animation-delay: 0.5s;
}
.product-item:nth-child(6) {
  animation-delay: 0.6s;
}
.product-item:nth-child(7) {
  animation-delay: 0.7s;
}

@media (max-width: 768px) {
  .products-grid {
    grid-template-columns: 1fr;
  }
}

/* About Us Styles */
.about {
  background-color: var(--pampas);
  color: var(--cod-gray);
}

.about-container {
  max-width: 1200px;
  margin: 0 auto;
}

.masonry-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  grid-gap: var(--space-4);
  grid-auto-flow: dense;
}

.grid-item {
  background-color: white;
  border-radius: var(--radius-medium);
  padding: var(--space-4);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.grid-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.grid-item h3 {
  color: var(--oxford-blue);
  border-bottom: 2px solid var(--aqua-forest);
  padding-bottom: var(--space-2);
}

.grid-item:first-child {
  background: linear-gradient(to bottom, var(--oxford-blue), var(--cod-gray));
  padding: 0;
  overflow: hidden;
}

.owner-image {
  width: 100%;
  height: auto;
  object-fit: cover;
  opacity: 0.8;
  transition: opacity 0.3s ease;
}

.grid-item:first-child:hover .owner-image {
  opacity: 1;
}

.trusted-by {
  grid-column: span 2;
}

.trusted-logos {
  display: flex;
  justify-content: space-around;
  align-items: center;
  flex-wrap: wrap;
}

.partner-logo {
  max-width: 100px;
  height: auto;
  margin: var(--space-2);
}

.policy-list {
  list-style-type: none;
  padding-left: 0;
}

.policy-list li {
  margin-bottom: var(--space-2);
  position: relative;
  padding-left: var(--space-4);
}

.policy-list li::before {
  content: "•";
  color: var(--aqua-forest);
  position: absolute;
  left: 0;
  font-size: 1.2em;
}

@media (max-width: 768px) {
  .masonry-grid {
    grid-template-columns: 1fr;
  }

  .trusted-by {
    grid-column: span 1;
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.grid-item {
  animation: fadeInUp 0.6s ease-out forwards;
  opacity: 0;
}

.grid-item:nth-child(1) {
  animation-delay: 0.1s;
}
.grid-item:nth-child(2) {
  animation-delay: 0.2s;
}
.grid-item:nth-child(3) {
  animation-delay: 0.3s;
}
.grid-item:nth-child(4) {
  animation-delay: 0.4s;
}
.grid-item:nth-child(5) {
  animation-delay: 0.5s;
}
.grid-item:nth-child(6) {
  animation-delay: 0.6s;
}
.grid-item:nth-child(7) {
  animation-delay: 0.7s;
}
.grid-item:nth-child(8) {
  animation-delay: 0.8s;
}

/* Client Base Styles */
.clients {
  background: linear-gradient(to bottom, var(--oxford-blue), var(--cod-gray));
  color: var(--pampas);
  padding: var(--space-8) 0;
}

.clients-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-4);
}

.carousel-container {
  overflow: hidden;
  padding: var(--space-4) 0;
}

.carousel {
  display: flex;
  transition: transform 0.5s ease;
}

.carousel-item {
  flex: 0 0 33.333%;
  min-width: 33.333%;
  padding: 0 var(--space-2);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
}

.client-icon {
  width: 80px;
  height: 80px;
  color: var(--aqua-forest);
  margin-bottom: var(--space-3);
}

.carousel-item p {
  font-size: 1rem;
  color: var(--pampas);
  margin-top: var(--space-2);
}

@media (max-width: 768px) {
  .carousel-item {
    flex: 0 0 50%;
    min-width: 50%;
  }
}

@media (max-width: 480px) {
  .carousel-item {
    flex: 0 0 100%;
    min-width: 100%;
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.carousel-item {
  animation: fadeIn 0.5s ease-out forwards;
}

/* Contact Styles */
.contact {
  background-color: var(--oxford-blue);
  color: var(--pampas);
  padding: var(--space-8) 0;
}

.contact-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 var(--space-4);
}

.contact h2 {
  color: var(--pampas);
  text-align: center;
  margin-bottom: var(--space-6);
  font-size: 2.5rem;
}

.contact-form {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-large);
  padding: var(--space-6);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(10px);
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4) var(--space-6);
}

.form-group {
  margin-bottom: var(--space-4);
}

.full-width {
  grid-column: 1 / -1;
}

label {
  display: block;
  margin-bottom: var(--space-2);
  color: var(--pampas);
  font-weight: bold;
}

input,
textarea {
  width: 90%; /* Reduced from 100% to 70% */
  padding: var(--space-2) var(--space-3);
  background-color: rgba(255, 255, 255, 0.2);
  border: 1px solid var(--aqua-forest);
  border-radius: var(--radius-small);
  color: var(--pampas);
  font-family: inherit;
  font-size: 1rem;
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

.full-width input,
.full-width textarea {
  width: 85%; /* Slightly wider for full-width fields */
}

input:focus,
textarea:focus {
  background-color: rgba(255, 255, 255, 0.3);
  border-color: var(--pampas);
  outline: none;
}

.products-group {
  margin-top: var(--space-4);
}

.checkbox-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-2);
  margin-top: var(--space-2);
}

.checkbox-label {
  display: flex;
  align-items: center;
  cursor: pointer;
  margin-bottom: var(--space-2);
}

.checkbox-label input[type="checkbox"] {
  width: auto;
  margin-right: var(--space-2);
}

.cta-button {
  display: inline-block;
  padding: var(--space-3) var(--space-6);
  background-color: var(--aqua-forest);
  color: var(--pampas);
  text-decoration: none;
  font-weight: bold;
  border: none;
  border-radius: var(--radius-small);
  cursor: pointer;
  transition: background-color 0.3s ease;
  margin-top: var(--space-4);
}

.cta-button:hover {
  background-color: #4a7a64;
}

@media (max-width: 768px) {
  .form-grid {
    grid-template-columns: 1fr;
  }

  .checkbox-grid {
    grid-template-columns: 1fr;
  }

  input,
  textarea,
  .full-width input,
  .full-width textarea {
    width: 90%; /* Full width on mobile for better usability */
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.contact-form {
  animation: fadeIn 0.5s ease-out forwards;
}

/* Footer Styles */
.footer {
  background: linear-gradient(to bottom, var(--oxford-blue), var(--cod-gray));
  color: var(--pampas);
  padding: var(--space-8) 0 var(--space-4);
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-4);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-6);
  margin-bottom: var(--space-6);
}

.footer-section h3 {
  font-size: 1.2rem;
  margin-bottom: var(--space-3);
  color: var(--aqua-forest);
}

.footer-logo {
  max-width: 150px;
  margin-bottom: var(--space-3);
}

.footer-links {
  list-style-type: none;
  padding: 0;
}

.footer-links li {
  margin-bottom: var(--space-2);
}

.footer-links a,
.footer p {
  color: var(--pampas);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: var(--aqua-forest);
}

.business-hours {
  list-style-type: none;
  padding: 0;
}

.business-hours li {
  margin-bottom: var(--space-2);
}

.business-hours span {
  font-weight: bold;
  color: var(--aqua-forest);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: var(--space-4);
  text-align: center;
  font-size: 0.9rem;
}

@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 480px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}
