:root {
  /* Core Colors – override per brand/site */
  --color-primary:   #ff6b00;  /* accent or link color */
  --color-accent:    #2a5298;  /* secondary accent (headings) */
  --color-dark:      #111;
  --color-light:     #f9f9f9;
  --color-bg:        #ffffff;

  --color-text-light: #eee;
  --color-muted:      #ccc;
  --color-footer-bg:  var(--color-dark);
  --color-footer-text: #ddd;

  --nav-height: 60px;
}

/* Body Setup */
body {
  background-color: var(--color-bg);
  color: var(--color-dark);
  margin: 0;
  padding-top: var(--nav-height);
}


/* Prevent rubber-band on iOS */
body {
  overscroll-behavior-y: contain;
  font-family: 'Manrope', sans-serif;
  background-color: var(--color-light);
  color: var(--color-dark);
  padding-top: var(--nav-height);
  margin: 0;
}

/* Smooth scrolling with top padding (for fixed nav) */
html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-height);
}

@media (max-width: 575px) {
  :root {
    --nav-height: 56px; /* slightly reduced on mobile */
  }
}


/* ── Glass‐Style Navbar ───────────────────────────────────────────────── */
.glass-nav {
  /* almost-opaque black */
  background: rgba(17, 17, 17, 0.95);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(255,255,255,0.1);
  height: var(--nav-height);
  padding: 0;
  transition: all .3s ease;
}
.glass-nav .container-fluid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

/* Logo */
.nav-logo {
  max-height: 32px;
  width: auto;
  height: auto;
  object-fit: contain;
}

@media (max-width: 575px) {
.nav-logo {
  height: 8vw;  /* Responsive to screen width */
  max-height: 40px;
}
}

/* Nav links */
.glass-nav .nav-link {
  position: relative;
  margin: 0 0.75rem;
  line-height: var(--nav-height);
  font-size: 0.95rem;
  letter-spacing: 0.025em;
  font-weight: 500;
  color: #eee;
  transition: color .2s;
}
.glass-nav .nav-link:hover,
.glass-nav .nav-link.active {
  color: var(--color-primary);
}
.glass-nav .nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 8px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--color-primary);
  border-radius: 1px;
}

/* Demo button in navbar */
.glass-nav .demo-btn {
  padding: .25rem .75rem;
  font-size: .85rem;
  border-width: 1px;
  border-radius: 50px;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: #fff;
  line-height: 1;
  transition: background .2s, color .2s;
  white-space: nowrap; /* Prevent button text from wrapping if too long */
}
.glass-nav .demo-btn:hover {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: var(--color-dark);
}

/* Mobile toggler */
.navbar-toggler {
  border-color: rgba(255,255,255,0.4);
  padding: .25rem .5rem;
  /* Optional: Add some margin for better tap area */
  margin-right: 0.5rem;
}
.navbar-toggler-icon {
  filter: invert(100%) brightness(150%); /* Makes the hamburger icon white/visible */
}

/* Collapsed menu item spacing (on small) and background */
@media (max-width: 991px) {
  .navbar-collapse {
      background-color: rgba(17, 17, 17, 0.98); /* Slightly more opaque for readability */
      padding: 1.5rem 1rem; /* More vertical padding */
      border-radius: 0.5rem;
      box-shadow: 0 0.75rem 1.5rem rgba(0, 0, 0, 0.25);
      
      /* Positioning for full-width overlay below the fixed nav */
      position: absolute;
      top: var(--nav-height); /* Aligns just below the fixed navbar */
      left: 0;
      width: 100%;
      z-index: 1020; /* Ensure it's above other content */
      border-top: 1px solid rgba(255,255,255,0.1); /* Separator from top nav */
  }

  .glass-nav .nav-link {
      padding: 0.75rem 1rem; /* More vertical padding for touch */
      line-height: 1.5;
      text-align: center; /* Center align text */
  }

  .glass-nav .nav-link.active::after {
      bottom: 0; /* Adjust active indicator position for collapsed menu */
  }

  /* Override Bootstrap's default flex behavior for collapsed menu */
  .glass-nav .navbar-nav {
      flex-direction: column; /* Stack items vertically */
      align-items: center; /* Center items horizontally in the column */
      width: 100%; /* Ensure it takes full width for centering */
  }

  .glass-nav .navbar-nav.mx-auto {
      margin-left: 0 !important; /* Override mx-auto */
      margin-right: 0 !important;
  }

  /* Language links specific adjustments */
  .glass-nav .navbar-nav.me-3 {
      margin-right: 0 !important;
      margin-top: 1.5rem; /* Space from main nav links */
      display: flex;
      flex-wrap: wrap; /* Allow wrapping for many languages */
      justify-content: center;
      width: 100%;
  }

  .glass-nav .navbar-nav.me-3 .nav-item {
      margin: 0 0.75rem 0.5rem; /* Space out language links and add bottom margin for wrapping */
  }

  /* Demo button specific adjustments */
  .glass-nav .demo-btn {
      display: block; /* Make it a block element to take full width */
      width: fit-content; /* Adjust width to content, not full block width */
      margin: 1.5rem auto 0 auto; /* Center button and add more top margin */
      font-size: 0.9rem; /* Slightly larger for touch */
      padding: .5rem 1.25rem; /* More padding for touch */
  }
}
/* ── FOOTER STYLES ───────────────────────────── */
.footer-section {
  background-color: var(--color-footer-bg);
  color: var(--color-footer-text);
  padding: 3rem 0 1rem;
  font-size: 0.9rem;
}
.footer-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
}
.footer-grid .col-md-3 {
  flex: 1;
  min-width: 180px;
}

/* Footer Headings */
.footer-section h6 {
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 1px;
  margin-bottom: 1rem;
  color: #fff;
}

/* Footer Links */
.footer-link {
  color: var(--color-muted);
  text-decoration: none;
  display: block;
  margin-bottom: 0.5rem;
  transition: color 0.2s;
}
.footer-link:hover {
  color: var(--color-primary);
}

/* Newsletter Form */
.footer-newsletter .form-control-sm,
.footer-newsletter .form-select-sm {
  background-color: #222;
  border: none;
  border-radius: 20px;
  color: #fff;
  padding: 0.4rem 1rem;
  min-width: 100px;
}
.footer-newsletter .btn-sm {
  border-radius: 20px;
  padding: 0.4rem 1rem;
}

/* Social Icons */
.social-icons {
  display: flex;
  gap: 1rem;
}
.social-icon {
  font-size: 1.2rem;
  color: #ccc;
  transition: color 0.3s, transform 0.3s;
}
.social-icon:hover {
  color: var(--color-primary);
  transform: translateY(-2px);
}

/* Footer Divider */
.footer-divider {
  border-color: rgba(255, 255, 255, 0.1);
  margin: 2rem 0;
}

/* Footer Bottom */
.footer-bottom a.back-to-top {
  color: #aaa;
  text-decoration: none;
  margin-left: 1rem;
  transition: color 0.2s;
}
.footer-bottom a.back-to-top:hover {
  color: #fff;
}

@media (max-width: 768px) {
  .footer-grid {
    flex-direction: column;
    text-align: center;
  }
  .footer-grid .footer-newsletter form {
    justify-content: center;
  }
}

.footer-section .text-muted {
  color: rgba(255, 255, 255, 0.7) !important;
}
