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

/* Body layout */
body, html {
  height: 100%;
  display: flex;
  flex-direction: column;
  font-family: Arial, sans-serif;
}

/* Navbar */
.navbar {
  display: flex;
    justify-content: flex-end;
  align-items: center;
  background-color: #f8f8f8;
  padding: 10px 20px;
  position: relative;
  z-index: 10;
}

.logo {
  font-weight: bold;
  font-size: 1.5rem;
  margin-right: 20px;
}

.nav-links {
  display: flex;
  gap: 20px;
}

/* .nav-links a {
  text-decoration: none;
  color: #333;
  font-size: 1rem;
} */

.nav-links a {
  text-decoration: none;
  color: #333;
  font-size: 1rem;
  position: relative;
  padding: 5px 10px;
  transition: background-color 0.3s ease;
}

.nav-links a:hover {
  text-decoration: underline;
  background-color: rgba(0, 0, 0, 0.05); /* light shading */
  border-radius: 4px;
}

.nav-links a.active {
  font-weight: bold;
  color: #cc3333; /* or any color that stands out */
  border-bottom: 2px solid #cc3333;
}

/* Hamburger Icon */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 24px;
  cursor: pointer;
  margin-left: auto;
}

.bar {
  height: 4px;
  width: 100%;
  background-color: #333;
  border-radius: 2px;
  transition: all 0.4s ease;
}

/* Animate Hamburger into X */
.change .bar:nth-child(1) {
  transform: rotate(-45deg) translate(-7px, 7px);
}

.change .bar:nth-child(2) {
  opacity: 0;
}

.change .bar:nth-child(3) {
  transform: rotate(45deg) translate(-6px, -6px);
}

/* Main Content */
.content {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
  text-align: center;
}

.center-container {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.responsive-image {
  max-width: 100%;
  height: auto;
}

/* Subtitle styling */
.subtitle {
  margin-top: 20px;
  font-size: 2rem;
  color: #949599;
  padding: 0 20px;
  font-family: Arial, sans-serif;
  font-variant: small-caps;
  letter-spacing: 1px;
}

/* Animation: Image fades in immediately */
.fade-image {
  opacity: 0;
  animation: fadeIn 2.0s ease-in forwards;
}

/* Animation: Text fades in 0.5s later */
.fade-text {
  opacity: 0;
  animation: fadeIn 2.0s ease-in 0.5s forwards;
}

/* Fade-in keyframes */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Footer */
.footer {
  display: flex;
  background-color: #BE1E2D;
  color: white;
  text-align: center;
  flex-wrap: wrap;
  padding: 10px 0;
  margin-bottom: 10px;
}

.footer-item {
  flex: 1 1 25%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  padding: 10px;
}

.footer-link {
  color: white;
  font-size: 1rem;
  text-decoration: none;
}

/* Font Awesome Icon Styling */
.footer-link i {
  color: white;
  transition: color 0.3s ease;
}

.footer-link:hover i {
  color: #dddddd;
}

.footer-phone {
  font-size: 1rem;
}

/* Copyright */
.copyright {
  text-align: center;
  font-size: 0.9rem;
  padding: 10px;
  color: #555;
}

/* Mobile adjustments */
@media (max-width: 600px) {
  .footer {
    flex-direction: column;
    height: 80px;
    padding-top: 30px 0;
	padding-bottom: 10px 0;
    margin-bottom: 20px;
  }
  .footer-item {
    padding: 5px 0;
    font-size: 0.8rem;
	    flex: 1 1 100%;
  }

  .footer-link i {
    font-size: 1.5rem;      /* optional: slightly smaller icons */
  }

}


/* Mobile Styles */
@media (max-width: 768px) {
  .hamburger {
    display: flex;
  }

  .nav-links {
    flex-direction: column;
    background-color: #f8f8f8;
    position: fixed;
    top: 0;
    right: -100%;
    height: 100%;
    width: 250px;
    padding-top: 60px;
    box-shadow: -2px 0 5px rgba(0,0,0,0.3);
    transition: right 0.4s ease;
    text-align: right;
    padding-right: 20px;
  }

  .nav-links.active {
    right: 0;
  }

  .nav-links a {
    margin: 15px 0;
    font-size: 1.2rem;
  }

  .subtitle {
    font-size: 1.8rem;
    letter-spacing: 0.5px;
  }
  
/* 
  .footer-item {
    flex: 1 1 100%;
  } */
}
/* Overlay for mobile nav */
.overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 9;
}

.overlay.active {
  display: block;
}

/* Desktop logo (inside header) */
.desktop-logo {
  display: flex;
  align-items: center;
  margin-right: auto;
}

.logo-img {
  height: 50px;
  width: auto;
}

/* Mobile logo (below header) */
.mobile-logo {
  display: none;
  justify-content: center;
  padding: 10px 0;
}

.mobile-logo img {
  height: 50px;
  width: auto;
}

/* Responsive behavior */
@media (max-width: 768px) {
  .desktop-logo {
    display: none; /* hide logo in header on mobile */
  }

  .mobile-logo {
    display: flex; /* show centered logo below header */
  }

  .mobile-logo img {
    height: 40px;
  }
}

.mobile-logo a {
  display: inline-block;
}