/* 
 * Bhagwati Logistics - Main Stylesheet
 * Primary: #1F2A44 | Accent: #F47A1F | Text: #2B2B2B | BG: #FFFFFF | Section: #F4F6F8
 */

:root {
  --primary-color: #1F2A44;
  --accent-color: #F47A1F;
  --text-color: #2B2B2B;
  --light-bg: #F4F6F8;
  --white: #FFFFFF;
  --font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  --transition: all 0.3s ease;
}

/* Reset & Base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-family);
  color: var(--text-color);
  line-height: 1.6;
  background-color: var(--white);
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  display: block;
}

/* Container */
.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 12px 24px;
  background-color: var(--accent-color);
  color: var(--white);
  border-radius: 5px;
  font-weight: 600;
  transition: var(--transition);
  border: none;
  cursor: pointer;
  text-align: center;
}

.btn:hover {
  background-color: #d66512;
  transform: translateY(-2px);
}

.btn-outline {
  background-color: transparent;
  border: 2px solid var(--white);
}

.btn-outline:hover {
  background-color: var(--white);
  color: var(--primary-color);
}

/* Header */
header {
  background-color: var(--white);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
  padding: 5px 0;
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-color);
}

.logo img {
  height: 80px;
  margin-right: 5px;
}

.nav-links {
  display: flex;
  gap: 30px;
}

.nav-links a {
  font-weight: 500;
  color: var(--primary-color);
  transition: var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--accent-color);
}

.hamburger {
  display: none;
  cursor: pointer;
}

.bar {
  display: block;
  width: 25px;
  height: 3px;
  margin: 5px auto;
  transition: var(--transition);
  background-color: var(--primary-color);
}

/* Mobile Menu */
@media (max-width: 768px) {
  .hamburger {
    display: none;
  }

  .navbar {
    flex-direction: column;
    padding: 5px 0;
  }

  .logo {
    justify-content: center;
    margin-bottom: 0;
    width: 100%;
  }

  .logo img {
    height: 55px;
  }

  .nav-links {
    display: flex;
    /* Override any potential hiding */
    position: static;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
    gap: 1px;
    background-color: transparent;
    box-shadow: none;
    text-align: center;
    padding: 0;
    left: auto;
    top: auto;
  }

  .nav-links a {
    display: inline-block;
    padding: 1px 3px;
    background-color: transparent;
    border-radius: 0;
    border-bottom: none;
    margin: 0;
    width: auto;
    font-size: 0.9rem;
  }

  /* Adjust Hero text size for better fit with new header */
  .hero {
    padding: 100px 0;
  }

  .about-content {
    flex-direction: column-reverse;
    gap: 30px;
  }
}

/* Sections */
section {
  padding: 60px 0;
}

/* Page Header */
.page-header {
  background: var(--light-bg);
  padding: 80px 0;
}

@media (max-width: 768px) {
  .page-header {
    padding: 30px 0;
  }
}

.section-title {
  text-align: center;
  margin-bottom: 50px;
}

.section-title h2 {
  font-size: 2.5rem;
  color: var(--primary-color);
  margin-bottom: 15px;
}

.section-title p {
  color: #666;
  max-width: 600px;
  margin: 0 auto;
}

/* Hero Section */
.hero {
  background: linear-gradient(rgba(31, 42, 68, 0.8), rgba(31, 42, 68, 0.8)), url('https://images.unsplash.com/photo-1586528116311-ad8dd3c8310d?ixlib=rb-1.2.1&auto=format&fit=crop&w=1350&q=80');
  background-size: cover;
  background-position: center;
  color: var(--white);
  text-align: center;
  padding: 150px 0;
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: 20px;
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 30px;
}

.hero-btns {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

/* Services Grid */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.service-card {
  background: var(--light-bg);
  padding: 30px;
  border-radius: 8px;
  text-align: center;
  transition: var(--transition);
  border: 1px solid #eee;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.service-card h3 {
  color: var(--primary-color);
  margin-bottom: 15px;
}

.service-icon {
  font-size: 3rem;
  color: var(--accent-color);
  margin-bottom: 20px;
}

.client-logo {
  height: 80px;
  width: 100%;
  object-fit: contain;
  margin-bottom: 20px;
}

/* About Section */
.about-content {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 40px;
}

.about-text {
  flex: 1;
  min-width: 300px;
}

.about-text h3 {
  color: var(--primary-color);
  margin-bottom: 15px;
}

.about-text ul {
  margin-top: 20px;
}

.about-text li {
  margin-bottom: 10px;
  position: relative;
  padding-left: 25px;
}

.about-text li::before {
  content: '✓';
  color: var(--accent-color);
  position: absolute;
  left: 0;
  font-weight: bold;
}

/* Gallery Grid */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 20px;
}

.gallery-item img {
  width: 100%;
  height: 300px;
  object-fit: contain;
  border-radius: 8px;
  transition: var(--transition);
}

.gallery-item img:hover {
  transform: scale(1.03);
}

/* Contact Form */
.contact-container {
  display: flex;
  flex-wrap: wrap;
  gap: 50px;
}

.contact-info {
  flex: 1;
  min-width: 300px;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 30px;
}

.contact-item i {
  color: var(--accent-color);
  font-size: 1.5rem;
  margin-right: 15px;
  margin-top: 5px;
}

.contact-form-wrapper {
  flex: 1;
  min-width: 300px;
  background: var(--light-bg);
  padding: 40px;
  border-radius: 8px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  color: var(--primary-color);
  font-weight: 600;
}

.form-control {
  width: 100%;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 5px;
  font-family: inherit;
}

textarea.form-control {
  resize: vertical;
  min-height: 120px;
}

/* Footer */
footer {
  background-color: var(--primary-color);
  color: var(--white);
  padding: 40px 0 20px;
  text-align: center;
}

.footer-content {
  margin-bottom: 30px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 20px;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
}

/* Responsive Font Sizes */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 2.2rem;
  }

  .section-title h2 {
    font-size: 2rem;
  }
}

/* Leadership Section */
.leader-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 30px;
  justify-content: center;
}

.leader-card {
  background: var(--white);
  padding: 40px 30px;
  border-radius: 8px;
  text-align: center;
  transition: var(--transition);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  border: 1px solid #eee;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 450px;
  /* Ensures height is more than width */
}

.leader-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.leader-img {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 25px;
  border: 4px solid var(--light-bg);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.leader-card h3 {
  color: var(--primary-color);
  margin-bottom: 10px;
  font-size: 1.3rem;
}

.leader-role-list {
  color: #000;
  font-weight: 700;
  margin-bottom: 15px;
  font-size: 0.95rem;
  text-align: left;
  display: inline-block;
  padding-left: 20px;
}

.leader-role-list li {
  margin-bottom: 5px;
  list-style-type: disc;
}

.leader-bio {
  color: #666;
  font-size: 0.9rem;
  line-height: 1.6;
}