html, body {
  height: 100vh;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  font-family: Arial, Helvetica, sans-serif;
  color: #333;
}

header {
  position: relative;
  z-index: 1000;
  margin: 0;
}

main, .hero {
  position: relative;
  z-index: 1;
}

header .top-bar {
  background-color: #e26b07;
  color: #fff;
  padding: 0.5em;
  text-align: right;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;

}

header .top-bar ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

header .top-bar li {
  display: inline-block;
  margin-left: 1.5em;
}

header .top-bar a {
  color: #fff;
  text-decoration: none;
}

/* --- Main Nav (Desktop) --- */
header .main-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5em;
  border-bottom: 1px solid #e26b07;
  position: fixed;
  top: 30px;
  width: 98%;
  background: #fff;
  transition: all 0.3s ease;
  z-index: 999;
}

.desktop-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.desktop-nav li {
  display: inline-block;
  margin-left: 1.5em;
}

.desktop-nav a {
  color: #333;
  text-decoration: none;
  font-weight: bold;
}


/* Base logo size */
.logo img {
  height: 60px; /* control with height instead of font-size since it’s an image */
  transition: height 0.3s ease;
  top: 3px; /* move upward */
  padding-bottom: 10px;
}

/* When scrolled */
/* ===== Header Scroll Shrink Effect ===== */
header.scrolled .main-nav {
  padding: 0.6em 1.5em;      /* smaller vertical padding */
  border-bottom: 1px solid #e26b07;
  background: #fff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

header.scrolled .logo img {
  height: 40px;              /* shrink logo */
  transition: height 0.3s ease;
}

/* ====== FOOTER ====== */
footer {
  margin-top: auto;
  padding-bottom: 0;
  background: #f5f5f5;
  font-family: Arial, Helvetica, sans-serif;
  color: #333;
}

/* Top section: columns */
footer .footer-top {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2em;
  background: #f5f5f5;
  padding: 2.5em 3em;
}

footer .footer-top h4 {
  margin-bottom: 0.75em;
  color: #000;
  font-size: 1rem;
}

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

footer .footer-top li {
  margin-bottom: 0.5em;
}

footer .footer-top a {
  color: #333;
  text-decoration: none;
  transition: color 0.3s ease;
}

footer .footer-top a:hover {
  color: #e26b07;
}

/* Social icons */
footer .social-icons a {
  margin-right: 0.75em;
  text-decoration: none;
  color: #333;
  font-size: 1.2rem;
  transition: color 0.3s ease;
}

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

/* Bottom section */
footer .footer-bottom {
  background: #000;
  color: #fff;
  text-align: center;
  padding: 1em 0;           /* ✅ spacing for height */
  line-height: 1.4;         /* ✅ keeps text readable */
  font-size: 0.9rem;
}

footer .footer-bottom p {
  margin: 0;
}

/* ===== Back to Top Button ===== */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 40px;
  height: 40px;
  background-color: #e26b07;
  color: #fff;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.2rem;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
  z-index: 2000;
}

.back-to-top.show {
  opacity: 1;
  pointer-events: all;
  transform: translateY(0);
}

.back-to-top:hover {
  background-color: #cf5f06;
  transform: translateY(-4px);
}


/* ===========================
   MOBILE MENU STYLES
=========================== */
.menu-toggle {
  display: none;
  font-size: 1.8rem;
  color: #e26b07;
  cursor: pointer;
  z-index: 2002;
}

/* Sidebar Menu */
.mobile-nav {
  position: fixed;
  top: 0;
  right: -260px; /* hidden initially */
  width: 250px;
  height: 100%;
  background: #fff;
  box-shadow: -2px 0 8px rgba(0, 0, 0, 0.3);
  transition: right 0.3s ease;
  z-index: 2001;
  padding-top: 100px;
  display: none; /* hidden by default (desktop) */
}

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

.mobile-nav ul {
  list-style: none;
  margin: 0;
  padding: 0 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.mobile-nav a {
  text-decoration: none;
  color: #333;
  font-weight: 600;
  font-size: 1.1rem;
}

/* Overlay */
.nav-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.4);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 2000;
}

.nav-overlay.active {
  opacity: 1;
  pointer-events: all;
}

/* ===========================
   RESPONSIVE BEHAVIOR
=========================== */
@media (max-width: 992px) {
  /* Hide desktop menu */
  .desktop-nav {
    display: none;
  }

  /* Show burger icon */
  .menu-toggle {
    display: block;
  }

  /* Show sidebar structure */
  .mobile-nav {
    display: block;
  }
}

/* ========== Modal Overlay ========== */
.modal {
  display: none;
  position: fixed;
  inset: 0; /* shorthand for top:0; left:0; right:0; bottom:0 */
  z-index: 2000;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px); /* subtle blur for modern look */
  justify-content: center;
  align-items: center;
  transition: opacity 0.3s ease;
}

/* When active (you can add this class with JS) */
.modal.active {
  display: flex;
  animation: fadeIn 0.3s ease forwards;
}

/* ========== Modal Box ========== */
.modal-content {
  background: #fff;
  border-radius: 14px;
  padding: 2.5rem;
  max-width: 600px;
  width: 90%;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.25);
  position: relative;
  animation: scaleIn 0.35s ease forwards;
  text-align: left;
}

/* Subtle header for title (optional) */
.modal-content h2 {
  margin-top: 0;
  margin-bottom: 1rem;
  color: #1a365d;
  font-size: 1.6rem;
  border-bottom: 2px solid #e26b07;
  display: inline-block;
  padding-bottom: 0.3rem;
}

/* Smooth fade + scale animation */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes scaleIn {
  from {
    transform: scale(0.9);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

/* ========== Close Button ========== */
.close-btn {
  position: absolute;
  top: 12px;
  right: 16px;
  font-size: 1.8rem;
  color: #555;
  cursor: pointer;
  transition: all 0.3s ease;
  background: none;
  border: none;
}

.close-btn:hover {
  color: #e26b07;
  transform: rotate(90deg);
}

/* ========== Form Elements inside Modal ========== */
.modal-content form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.modal-content input,
.modal-content textarea {
  width: 100%;
  padding: 0.8em;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 1rem;
  font-family: inherit;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.modal-content input:focus,
.modal-content textarea:focus {
  outline: none;
  border-color: #e26b07;
  box-shadow: 0 0 4px rgba(226, 107, 7, 0.4);
}

.modal-content button[type="submit"] {
  background-color: #e26b07;
  color: #fff;
  border: none;
  padding: 0.8em 1.2em;
  border-radius: 6px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.modal-content button[type="submit"]:hover {
  background-color: #cf5f06;
  transform: translateY(-2px);
}

/* ========== Responsive ========== */
@media (max-width: 600px) {
  .modal-content {
    width: 95%;
    padding: 1.8rem;
  }

  .modal-content h2 {
    font-size: 1.4rem;
  }
}

