/* BRANNS LTD Custom Styling */
:root {
  --navy-blue: #1a1f36;
  --gold: #d4af37;
  --navy-blue-light: #2e355a;
  --gold-light: #e9d089;
  --white: #ffffff;
  --light-gray: #f8f9fa;
  --dark-gray: #343a40;
}

body {
  font-family: 'Montserrat', 'Roboto', sans-serif;
  color: #333;
  overflow-x: hidden;
  padding-top: 80px; /* For fixed navbar */
}

/* Navigation */
.navbar {
  background-color: var(--navy-blue);
  padding: 3px 0;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.navbar-brand img {
  height: 65px;
}

.navbar-dark .navbar-nav .nav-link {
  color: var(--white);
  font-weight: 500;
  padding: 8px 15px;
  transition: all 0.3s;
}

.navbar-dark .navbar-nav .nav-link:hover, 
.navbar-dark .navbar-nav .nav-link.active {
  color: var(--gold);
}

.navbar-dark .navbar-toggler {
  border-color: var(--gold);
}

/* Hero Section */
.hero {
  background: linear-gradient(to right, var(--navy-blue), var(--navy-blue-light));
  color: var(--white);
  padding: 100px 0;
  position: relative;
}

.hero h1 {
  font-weight: 700;
  margin-bottom: 20px;
  font-size: 2.8rem;
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 30px;
}

.hero .btn-primary {
  background-color: var(--gold);
  border-color: var(--gold);
  color: var(--navy-blue);
  font-weight: 600;
  padding: 10px 25px;
  border-radius: 30px;
  transition: all 0.3s;
  margin-bottom: 20px;
}

.hero .btn-primary:hover {
  background-color: var(--gold-light);
  border-color: var(--gold-light);
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Sections */
.section {
  padding: 80px 0;
}

.section-title {
  position: relative;
  margin-bottom: 50px;
  font-weight: 700;
  color: var(--navy-blue);
}

.section-title::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -15px;
  width: 80px;
  height: 3px;
  background-color: var(--gold);
}

/* About Section */
.about {
  background-color: var(--light-gray);
}

.about-content {
  padding: 20px;
}

/* Products Section */
.products {
  background-color: var(--white);
}

.product-card {
  margin-bottom: 30px;
  transition: all 0.3s;
  border: none;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

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

.product-card .card-img-top {
  height: 200px;
  object-fit: contain;
  background-color: var(--light-gray);
  padding: 20px;
}

.product-card .card-body {
  padding: 20px;
  text-align: center;
}

.product-card .card-title {
  font-weight: 600;
  margin-bottom: 15px;
  color: var(--navy-blue);
}

.product-icon {
  width: 100px;
  height: 100px;
  margin: 0 auto 20px;
  color: var(--gold);
}

.product-image {
  height: 150px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 15px;
  overflow: hidden;
}

.product-image img {
  max-height: 100%;
  object-fit: contain;
  transition: transform 0.3s ease;
}

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

.card-description {
  display: none;
  margin-top: 10px;
  font-size: 0.9rem;
  color: #555;
}

.product-card:hover .card-description {
  display: block;
}

.product-link {
  text-decoration: none;
  color: inherit;
  display: block;
  height: 100%;
}

.product-link:hover {
  text-decoration: none;
  color: inherit;
}

/* Contact Section */
.contact {
  background: linear-gradient(to right, var(--navy-blue), var(--navy-blue-light));
  color: var(--white);
}

.contact-info {
  background-color: rgba(255, 255, 255, 0.05);
  padding: 30px;
  border-radius: 10px;
  margin-bottom: 30px;
}

.contact-info i {
  font-size: 2rem;
  color: var(--gold);
  margin-bottom: 15px;
}

.contact-info h5 {
  font-weight: 600;
  margin-bottom: 10px;
}

.contact .btn-outline-light {
  border-color: var(--gold);
  color: var(--gold);
}

.contact .btn-outline-light:hover {
  background-color: var(--gold);
  color: var(--navy-blue);
}

/* Footer */
.footer {
  background-color: var(--dark-gray);
  color: var(--white);
  padding: 30px 0;
}

.footer p {
  margin-bottom: 0;
}

.btn-social {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: transparent;
  transition: all 0.3s;
}

.btn-social:hover {
  background-color: var(--gold);
  color: var(--navy-blue);
}

/* Products Page */
.products-grid .product-card {
  height: 100%;
}

.product-header {
  background: linear-gradient(to right, var(--navy-blue), var(--navy-blue-light));
  color: var(--white);
  padding: 60px 0;
}

.product-category {
  margin-bottom: 50px;
}

.product-category h3 {
  color: var(--navy-blue);
  margin-bottom: 20px;
  font-weight: 600;
  position: relative;
  display: inline-block;
  padding-bottom: 10px;
}

.product-category h3::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 50px;
  height: 3px;
  background-color: var(--gold);
}

/* Animation for scroll */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.animate-on-scroll.show {
  opacity: 1;
  transform: translateY(0);
}

/* Back to top button */
.back-to-top {
  position: fixed;
  visibility: hidden;
  opacity: 0;
  right: 15px;
  bottom: 15px;
  z-index: 996;
  background: var(--gold);
  width: 40px;
  height: 40px;
  border-radius: 50px;
  transition: all 0.4s;
  color: var(--navy-blue);
}

.back-to-top i {
  font-size: 24px;
  line-height: 0;
}

.back-to-top:hover {
  background: var(--gold-light);
  color: var(--navy-blue);
}

.back-to-top.active {
  visibility: visible;
  opacity: 1;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .hero {
    padding: 80px 0;
  }
  
  .hero h1 {
    font-size: 2.2rem;
  }
  
  .section {
    padding: 60px 0;
  }
  
  .section-title {
    margin-bottom: 40px;
  }
}

@media (max-width: 576px) {
  .hero h1 {
    font-size: 1.8rem;
  }
  
  .hero p {
    font-size: 1rem;
  }
  
  .section {
    padding: 40px 0;
  }
}