/* Global CSS Styles for Oil & Chemical Industry Website */
:root {
 /* Color Palette (updated for black & white logo) */
--primary-blue: #002943;       /* near black */
--primary-blue-dark: #444444;  /* neutral dark gray */
--accent-orange: #f59e0b;      /* gold accent */
--accent-orange-dark: #d97706; /* darker gold for hover */

  --metallic-silver: #9ca3af;
  --dark-grey: #1f2937;
  --medium-grey: #4b5563;
  --light-grey: #f3f4f6;
  --white: #ffffff;
  --black: #000000;
  
  /* Typography */
  --font-primary: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  --font-secondary: Georgia, 'Times New Roman', serif;
  
  /* Spacing */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 1.5rem;
  --spacing-lg: 2rem;
  --spacing-xl: 3rem;
  --spacing-2xl: 4rem;
  
  /* Border Radius */
  --radius-sm: 0.375rem;
  --radius-md: 0.75rem;
  --radius-lg: 1rem;
  
  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-primary);
  font-size: 16px;
  line-height: 1.6;
  color: var(--dark-grey);
  background-color: var(--white);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: var(--spacing-sm);
  color: var(--dark-grey);
}

h1 {
  font-size: 3rem;
  font-weight: 800;
}

h2 {
  font-size: 2.25rem;
}

h3 {
  font-size: 1.875rem;
}

h4 {
  font-size: 1.5rem;
}

h5 {
  font-size: 1.25rem;
}

h6 {
  font-size: 1.125rem;
}

p {
  margin-bottom: var(--spacing-sm);
  line-height: 1.7;
}

a {
  color: var(--primary-blue);
  text-decoration: none;
  transition: all 0.3s ease;
}

/* a:hover {
  color: var(--accent-orange);
} */

/* Utility Classes */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--spacing-sm);
  /* overflow: hidden; */
  /* overflow-x: hidden; */
}

.container-fluid {
  width: 100%;
  padding: 0 var(--spacing-sm);
}

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

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

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

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: var(--spacing-xs); }
.mb-2 { margin-bottom: var(--spacing-sm); }
.mb-3 { margin-bottom: var(--spacing-md); }
.mb-4 { margin-bottom: var(--spacing-lg); }
.mb-5 { margin-bottom: var(--spacing-xl); }

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: var(--spacing-xs); }
.mt-2 { margin-top: var(--spacing-sm); }
.mt-3 { margin-top: var(--spacing-md); }
.mt-4 { margin-top: var(--spacing-lg); }
.mt-5 { margin-top: var(--spacing-xl); }

/* Grid System */
.row {
  display: flex;
  flex-wrap: wrap;
  margin: 0 -var(--spacing-xs);
}

.col {
  flex: 1;
  padding: 0 var(--spacing-xs);
}

.col-1 { flex: 0 0 8.33333%; max-width: 8.33333%; }
.col-2 { flex: 0 0 16.66667%; max-width: 16.66667%; }
.col-3 { flex: 0 0 25%; max-width: 25%; }
.col-4 { flex: 0 0 33.33333%; max-width: 33.33333%; }
.col-6 { flex: 0 0 50%; max-width: 50%; }
.col-8 { flex: 0 0 66.66667%; max-width: 66.66667%; }
.col-9 { flex: 0 0 75%; max-width: 75%; }
.col-12 { flex: 0 0 100%; max-width: 100%; }





/* ================= Social Icons ================= */
.social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: transparent;   /* no background */
  color: var(--primary-blue); /* default icon color */
  font-size: 0.875rem;
  transition: color 0.3s ease, transform 0.3s ease;
}

.social-icon:hover {
  color: var(--accent-orange); /* icon color changes */
  transform: translateY(-2px);
}


/* Main Navigation */
.main-nav {
  padding: 0.2rem 0;
  /* background: var(--white); */
  background: #05375A;
  position: fixed;   /* keeps it in place while scrolling */
  top: 0;             /* stick to very top */
  left: 0;
  width: 100%;
  z-index: 1000;      /* ensure it stays above other content */
  box-shadow: 0 2px 8px rgba(0,0,0,0.05); /* optional: subtle shadow */
  padding-top: 0.5rem;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--dark-grey);
}

.logo img {
  height: 75px;
  margin-right: var(--spacing-sm);
  border-radius: 15px;
}
.navbar .logo img {
  height: 100%;       /* fills navbar height */
 
  width: 100%;
  object-fit: contain;
  
  transform: scale(1.3);   /* enlarge logo */
  transform-origin: left center; /* keeps it aligned */
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: var(--spacing-lg);
}

.nav-menu li a {
  font-weight: 500;
  /* color: var(--dark-grey); */
  color: #fff;
  padding: var(--spacing-xs) var(--spacing-sm);
  border-radius: var(--radius-sm);
  transition: all 0.3s ease;
}

.nav-menu li a:hover,
.nav-menu li a.active {
  /* color: var(--primary-blue); */
  color: #000000 ;
  background: var(--light-grey);
}

/* Dropdown base */
.nav-menu .dropdown {
  position: relative;
    text-decoration: none;
}

.nav-menu .dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--white);
  min-width: 200px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  border-radius: var(--radius-sm);
  z-index: 999;
    text-decoration: none;
}

.nav-menu .dropdown-menu li {
  border-bottom: 1px solid #eee;
}

.nav-menu .dropdown-menu li a {
  display: block;
  padding: 10px 15px;
  color: var(--dark-grey);
  text-decoration: none;
  transition: all 0.3s ease;
}

.nav-menu .dropdown-menu li a:hover {
  background: var(--light-grey);
  color: var(--primary-blue);
}


/* Desktop hover */
@media (min-width: 992px) {
  .nav-menu .dropdown:hover .dropdown-menu {
    display: block;
  }
}

/* Mobile dropdown toggle */
@media (max-width: 991px) {
  .nav-menu .dropdown-menu {
    position: static;
    box-shadow: none;
    border-radius: 0;
    color: #000000;
  }
  .dropdown-menu.show-dropdown {
    display: block;
    color: #000000;
  }
     
  .nav-menu li a {
  font-weight: 500;
  /* color: var(--dark-grey); */
  color:#000000;
  padding: var(--spacing-xs) var(--spacing-sm);
  border-radius: var(--radius-sm);
  transition: all 0.3s ease;

}
}

/* Mobile fixed navbar */
@media (max-width: 991px) {
  .main-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: var(--white);
    box-shadow: 0 2px 8px rgba(0,0,0,0.05); 
  }
}


.cta-button {
  background: var(--primary-blue);
  color: var(--white);
  /* padding: var(--spacing-sm) var(--spacing-lg); */
  padding: 0.5rem 1rem;
  border-radius: var(--radius-md);
  font-weight: 600;
  transition: all 0.3s ease;
  border: 2px solid var(--primary-blue);

  display: inline-block;
   position: relative;
  z-index: 1000;

}

.cta-button:hover {
  background: var(--accent-orange);
  border-color: var(--accent-orange);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
  padding: var(--spacing-xs);
}

.mobile-menu-toggle span {
  width: 25px;
  height: 3px;
  background: var(--dark-grey);
  margin: 3px 0;
  transition: 0.3s;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  
  padding: 1rem;
  border: none;
  border-radius: var(--radius-md);
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s ease;
  gap: var(--spacing-xs);
}

.btn-primary {
  background: var(--primary-blue);
  color: var(--white);
  border: 2px solid var(--primary-blue);
}

.btn-primary:hover {
  background: var(--accent-orange);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  color: #000000;
}

.btn-secondary {
  background: transparent;
  color: var(--primary-blue);
  border: 2px solid var(--primary-blue);
}

.btn-secondary:hover {
  background: var(--primary-blue);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-orange {
  background: var(--accent-orange);
  color: var(--white);
  border: 2px solid var(--accent-orange);
}

.btn-orange:hover {
  background: var(--accent-orange-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

/* Cards */
.card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  transition: all 0.3s ease;
  height: 100%;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-xl);
}

.card-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.card-content {
  padding: var(--spacing-lg);
}

.card-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: var(--spacing-sm);
  color: var(--dark-grey);
}

.card-text {
  color: var(--medium-grey);
  margin-bottom: var(--spacing-md);
}

/* Hero Section */
.hero {
  position: relative;
  height: 50vh;
  min-height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  text-align: center;
  overflow: hidden;
  margin-top: 5.8rem;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(30, 58, 138, 0.8), rgba(0, 0, 0, 0.5));
  z-index: 1;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  padding: 0 var(--spacing-sm);
  animation: fadeInUp 1s ease-out;
}

.hero h1 {
  color: var(--white);
  font-size: 3.5rem;
  margin-bottom: var(--spacing-md);
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  /* margin-top: 5rem; */
}

.hero p {
  font-size: 1.25rem;
  margin-bottom: var(--spacing-xl);
  opacity: 0.9;
  margin-top: 2rem;
}

/* Sections */
.section {
  padding: 2rem 0;
  /* margin-top: 2rem; */
}

.section-dark {
  background: var(--dark-grey);
  color: var(--white);
}

.section-light {
  background: var(--light-grey);
}

.section-title {
  text-align: center;
  margin-bottom: var(--spacing-xl);
}

.section-title h2 {
  font-size: 2.5rem;
  margin-bottom: var(--spacing-sm);
}

.section-title p {
  font-size: 1.125rem;
  color: var(--medium-grey);
  max-width: 600px;
  margin: 0 auto;
}

.section-dark .section-title p {
  color: var(--metallic-silver);
}

/* Footer */
.footer {
  position: relative;
  background: var(--dark-grey);
  color: var(--white);
  overflow: hidden;
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url('https://images.pexels.com/photos/162568/oil-refinery-industrial-plant-oil-162568.jpeg');
  background-size: cover;
  background-position: center;
  opacity: 0.1;
  z-index: 0;
}

.footer-content {
  position: relative;
  z-index: 1;
  padding: var(--spacing-2xl) 0 var(--spacing-lg);
}

.footer-section {
  margin-bottom: var(--spacing-lg);
}

.footer-section h3 {
  color: var(--white);
  margin-bottom: var(--spacing-md);
  font-size: 1.25rem;
}

.footer-section p,
.footer-section li {
  color: var(--metallic-silver);
  line-height: 1.8;
}

.footer-section ul {
  list-style: none;
}

.footer-section ul li {
  margin-bottom: var(--spacing-xs);
}

.footer-section ul li a {
  color: var(--metallic-silver);
  transition: all 0.3s ease;
}

.footer-section ul li a:hover {
  color: var(--accent-orange);
  padding-left: var(--spacing-xs);
}

.footer-social {
  display: flex;
  gap: var(--spacing-sm);
  margin-top: var(--spacing-md);
}

.footer-social .social-icon {
  width: 40px;
  height: 40px;
  font-size: 1rem;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.footer-social .social-icon:hover {
  background: var(--accent-orange);
  border-color: var(--accent-orange);
  box-shadow: 0 0 20px rgba(249, 115, 22, 0.5);
}

.footer-bottom {
  position: relative;
  z-index: 1;
  background: rgba(0, 0, 0, 0.5);
  padding: var(--spacing-md) 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
  color: var(--metallic-silver);
}
.footer .col-4 {
  flex: 1; /* each takes equal width */
  min-width: 250px; /* prevents shrinking too small */
}

.footer .row {
  display: flex;
  justify-content: space-between;
  gap: 3rem; /* space between columns */
}

/* Mobile footer adjustments */
@media (max-width: 768px) {
  .custom-footer-bottom {
    padding: 1rem;
    text-align: center;
  }

  .custom-footer-bottom p {
    font-size: 0.85rem;
    line-height: 1.4;
    word-break: break-word; /* avoid overflow */
    padding: 0.6rem;
  }

  .custom-footer-bottom .custom-container {
    max-width: 100%;
  }
}


/* Forms */
/* .form-group {
  margin-bottom: var(--spacing-md);
} */

/* .form-label {
  display: block;
  margin-bottom: var(--spacing-xs);
  font-weight: 600;
  color: var(--dark-grey);
} */

/* .form-control {
  width: 100%;
  padding: var(--spacing-sm);
  border: 2px solid var(--light-grey);
  border-radius: var(--radius-md);
  font-size: 1rem;
  transition: all 0.3s ease;
} */

/* .form-control:focus {
  outline: none;
  border-color: var(--primary-blue);
  box-shadow: 0 0 0 3px rgba(30, 58, 138, 0.1);
} */



.custom-footer {
  background: #032843;
  color: #ddd;
  font-family: Arial, sans-serif;
  padding-top: 3rem;
}

.custom-footer-content .custom-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.custom-row {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
}

.custom-col {
  flex: 1 1 30%;
  min-width: 250px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 1rem;
}

.footer-logo img {
  width: 100px;
  height: auto;
  border-radius: 20%;
  background: white;
  padding: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.3);
}

.footer-logo span {
  color: white;
  font-size: 1.2rem;
  font-weight: 600;
}

.footer-desc {
  color: #ddd;
  font-size: 0.95rem;
  line-height: 1.6;
  margin-top: 0.5rem;
}

.footer-social {
  margin-top: 1rem;
  display: flex;
  gap: 30px;
}

.footer-social a {
  color: white;
  font-size: 1.2rem;
  transition: color 0.3s;
}

.footer-social a:hover {
  color: #EFBC38;
}

.footer-links h3,
.footer-contact h3 {
  color: #EFBC38;
  margin-bottom: 1rem;
}

.footer-links ul {
  list-style: none;
  padding: 0;
}

.footer-links li {
  margin-bottom: 0.5rem;
}

.footer-links a {
  color: #ddd;
  text-decoration: none;
  transition: color 0.3s;
}

.footer-links a:hover {
  color: #EFBC38;
}
a.email-link {
  color: #ddd;
  text-decoration: none;
}

a.email-link:hover {
  color: #EFBC38;
}
.footer-contact p {
  margin-bottom: 0.8rem;
  font-size: 0.95rem;
  line-height: 1.6;
}

.footer-contact i {
  color: #EFBC38;
  margin-right: 6px;
}

.custom-footer-bottom {
  background: #021b2d;
  text-align: center;
  padding: 1rem 0;
  margin-top: 2rem;
  font-size: 0.85rem;
}

.custom-footer-bottom a {
  color: #EFBC38;
  text-decoration: none;
  margin: 0 4px;
}

.custom-footer-bottom a:hover {
  text-decoration: underline;
}






/* Animations */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Scroll animations */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease;
}

.fade-in.animate {
  opacity: 1;
  transform: translateY(0);
}


/* Responsive Design */
@media (max-width: 768px) {
  .container {
    padding: 0 var(--spacing-sm);
    text-align: center;
   
  }

  
  h1 {
    font-size: 2.5rem;
  }
  
  h2 {
    font-size: 2rem;
  }
  
  .hero h1 {
    font-size: 2.5rem;
  }
  
  .nav-menu {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    box-shadow: var(--shadow-lg);
    padding: var(--spacing-md);
    gap: var(--spacing-sm);
  }
  
  .nav-menu.active {
    display: flex;
  }
  
  .mobile-menu-toggle {
    display: flex;
  }
  
  .cta-button {
    display: none;
  }
  
  .row {
    flex-direction: column;
  }
  
  .col-3,
  .col-4,
  .col-6 {
    max-width: 100%;
    flex: 0 0 100%;
    margin-bottom: var(--spacing-md);
  }
  
  .section {
    padding: var(--spacing-xl) 0;
  }
  
  .hero {
    height: 70vh;
    min-height: 500px;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 2rem;
  }
  
  .hero p {
    font-size: 1rem;
  }
  
  h1 {
    font-size: 2rem;
  }
  
  h2 {
    font-size: 1.75rem;
  }
  
  .section-title h2 {
    font-size: 2rem;
  }
}

/* Additional utility classes for specific components */
.counter {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--primary-blue);
  display: block;
}

.icon-large {
  font-size: 3rem;
  color: var(--primary-blue);
  margin-bottom: var(--spacing-md);
}

.testimonial {
  background: var(--white);
  padding: var(--spacing-xl);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  text-align: center;
  margin-bottom: var(--spacing-lg);
}

.testimonial-text {
  font-style: italic;
  font-size: 1.125rem;
  color: var(--medium-grey);
  margin-bottom: var(--spacing-md);
}

.testimonial-author {
  font-weight: 600;
  color: var(--dark-grey);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--spacing-lg);
  text-align: center;
}

.stat-item {
  /* padding: var(--spacing-lg); */
  padding: 1rem;
}

.accordion {
  border: 1px solid var(--light-grey);
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: var(--spacing-sm);
}

.accordion-header {
  background: var(--light-grey);
  padding: var(--spacing-md);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
  transition: all 0.3s ease;
}

.accordion-header:hover {
  background: var(--primary-blue);
  color: var(--white);
}

.accordion-content {
  padding: 0;
  max-height: 0;
  overflow: hidden;
  transition: all 0.3s ease;
}

.accordion-content.active {
  padding: var(--spacing-md);
  max-height: 500px;
}

.bg-pattern {
  position: relative;
  overflow: hidden;
}

.bg-pattern::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: linear-gradient(45deg, rgba(30, 58, 138, 0.05) 25%, transparent 25%), 
                    linear-gradient(-45deg, rgba(30, 58, 138, 0.05) 25%, transparent 25%), 
                    linear-gradient(45deg, transparent 75%, rgba(30, 58, 138, 0.05) 75%), 
                    linear-gradient(-45deg, transparent 75%, rgba(30, 58, 138, 0.05) 75%);
  background-size: 20px 20px;
  background-position: 0 0, 0 10px, 10px -10px, -10px 0px;
  z-index: 0;
}


/* Product page whatsapp */
.whatsapp-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px; /* space between icon and text */
  background-color: #25d366; /* WhatsApp green */
  color: #fff;
  padding: 10px 18px;
  /* border-radius: 50px; */
  font-weight: 600;
  text-decoration: none;
  font-size: 16px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(37, 211, 102, 0.4);
}

.whatsapp-btn i {
  font-size: 20px;
}

.whatsapp-btn:hover {
  background-color: #1ebc57;
  box-shadow: 0 6px 14px rgba(37, 211, 102, 0.6);
  transform: translateY(-2px);
}