/* ==========================================================================
   KVEE TECH ENTERPRISES - HEADER & FOOTER STYLES
   ========================================================================== */

/* Topbar */
.topbar {
  background-color: var(--color-primary-dark);
  color: #c2d1e0;
  font-size: 0.815rem;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.topbar-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.topbar-contact {
  display: flex;
  align-items: center;
  gap: 20px;
}

.topbar-item {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #c2d1e0;
  text-decoration: none;
}

.topbar-item:hover {
  color: var(--color-accent);
}

.topbar-item svg {
  width: 14px;
  height: 14px;
  fill: var(--color-accent);
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 15px;
}

/* Language Switcher */
.lang-switcher {
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-full);
  padding: 2px 4px;
  gap: 2px;
}

.lang-btn {
  padding: 2px 8px;
  font-size: 0.75rem;
  font-weight: 700;
  color: #ffffff;
  border-radius: var(--radius-full);
  text-decoration: none;
  transition: all var(--transition-fast);
}

.lang-btn.active {
  background-color: var(--color-accent);
  color: var(--color-white);
}

.lang-btn:not(.active):hover {
  background-color: rgba(255, 255, 255, 0.2);
}

/* Main Header */
.site-header {
  position: sticky;
  top: 0;
  width: 100%;
  background-color: var(--color-white);
  box-shadow: var(--shadow-sm);
  z-index: 1000;
  transition: all var(--transition-normal);
}

.site-header.scrolled {
  box-shadow: var(--shadow-md);
  padding: 2px 0;
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
}

/* Logo & Branding Lockup */
.brand-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}

.brand-logo img {
  height: 44px;
  width: 44px;
  object-fit: contain;
  display: block;
}

.brand-text-wrap {
  display: flex;
  flex-direction: column;
  justify-content: center;
  line-height: 1;
}

.brand-title-text {
  font-family: var(--font-heading);
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: -0.4px;
  line-height: 1.1;
}

.brand-title-text .word-orodi {
  color: var(--color-primary); /* Deep Navy #002b49 */
}

.brand-title-text .word-integral {
  color: #f59e0b; /* Golden Yellow */
}

.brand-subtitle-text {
  font-family: var(--font-heading);
  font-size: 0.58rem;
  font-weight: 700;
  color: #64748b;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-top: 3px;
  line-height: 1;
}

/* Footer Brand Lockup */
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  margin-bottom: 20px;
}

.footer-brand img {
  height: 46px;
  width: auto;
  object-fit: contain;
  display: block;
}

.footer-brand .brand-title-text {
  font-family: var(--font-heading);
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  line-height: 1.1;
}

.footer-brand .brand-title-text .word-orodi {
  color: #ffffff;
}

.footer-brand .brand-title-text .word-integral {
  color: #f59e0b;
}

.footer-brand .brand-subtitle-text {
  font-family: var(--font-heading);
  font-size: 0.58rem;
  font-weight: 700;
  color: #94a3b8;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-top: 3px;
  line-height: 1;
}

/* Navigation Menu */
.main-nav {
  display: flex;
  align-items: center;
  margin-left: 35px;
  margin-right: 15px;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 18px;
}

.nav-item {
  position: relative;
}

.nav-link {
  font-family: var(--font-heading);
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--color-primary);
  padding: 26px 0;
  display: flex;
  align-items: center;
  gap: 4px;
  text-decoration: none;
  white-space: nowrap;
  transition: color var(--transition-fast);
}

.nav-link:hover,
.nav-item.active > .nav-link {
  color: var(--color-accent);
}

.nav-link svg {
  width: 10px;
  height: 10px;
  fill: currentColor;
  transition: transform var(--transition-fast);
}

.nav-item:hover > .nav-link svg {
  transform: rotate(180deg);
}

/* Dropdown Menu */
.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 250px;
  background-color: var(--color-white);
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  box-shadow: var(--shadow-lg);
  border-top: 3px solid var(--color-accent);
  padding: 10px 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all var(--transition-normal);
  z-index: 100;
}

.nav-item:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-item {
  display: block;
  padding: 10px 20px;
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--color-text-main);
  text-decoration: none;
  transition: all var(--transition-fast);
  border-left: 3px solid transparent;
}

.dropdown-item:hover {
  background-color: var(--color-bg-light);
  color: var(--color-accent);
  border-left-color: var(--color-accent);
  padding-left: 24px;
}

/* Mobile Menu Toggle */
.mobile-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  color: var(--color-primary);
}

.mobile-toggle svg {
  width: 28px;
  height: 28px;
  fill: currentColor;
}

/* Header CTA */
.header-cta {
  margin-left: 20px;
}

/* ==========================================================================
   FOOTER STYLES
   ========================================================================== */
.site-footer {
  background-color: var(--color-primary-dark);
  color: #a0aec0;
  padding-top: 70px;
  border-top: 4px solid var(--color-accent);
}

.footer-top {
  padding-bottom: 50px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1.2fr 1.5fr 1.5fr;
  gap: 40px;
}

.footer-col h4 {
  color: var(--color-white);
  font-size: 1.15rem;
  margin-bottom: 22px;
  position: relative;
  padding-bottom: 10px;
}

.footer-col h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 35px;
  height: 2px;
  background-color: var(--color-accent);
}

.footer-about p {
  color: #a0aec0;
  font-size: 0.9rem;
  margin-bottom: 20px;
  line-height: 1.7;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  color: #c2d1e0;
  font-size: 0.875rem;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all var(--transition-fast);
}

.footer-links a:hover {
  color: var(--color-accent);
  transform: translateX(4px);
}

.footer-links a::before {
  content: '›';
  font-size: 1.1rem;
  color: var(--color-accent);
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 15px;
  font-size: 0.875rem;
  color: #c2d1e0;
}

.footer-contact-item svg {
  width: 18px;
  height: 18px;
  fill: var(--color-accent);
  flex-shrink: 0;
  margin-top: 3px;
}

.footer-contact-item a {
  color: #c2d1e0;
}

.footer-contact-item a:hover {
  color: var(--color-accent);
}

/* Footer Bottom */
.footer-bottom {
  padding: 24px 0;
  background-color: #001220;
}

.footer-bottom-wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.815rem;
  color: #718096;
}

.footer-bottom a {
  color: #a0aec0;
}

.footer-bottom a:hover {
  color: var(--color-accent);
}

/* Floating Live Chat Widget Simulation */
.floating-chat-btn {
  position: fixed;
  bottom: 25px;
  right: 25px;
  width: 58px;
  height: 58px;
  background-color: var(--color-accent);
  color: var(--color-white);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-xl);
  cursor: pointer;
  z-index: 999;
  transition: all var(--transition-normal);
  border: none;
}

.floating-chat-btn:hover {
  transform: scale(1.08);
  background-color: var(--color-accent-hover);
}

.floating-chat-btn svg {
  width: 28px;
  height: 28px;
  fill: var(--color-white);
}

/* Scroll To Top Button */
.scroll-to-top {
  position: fixed;
  bottom: 95px;
  right: 30px;
  width: 44px;
  height: 44px;
  background-color: var(--color-primary);
  color: var(--color-white);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 998;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-normal);
  border: none;
  box-shadow: var(--shadow-md);
}

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

.scroll-to-top:hover {
  background-color: var(--color-accent);
}

.scroll-to-top svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

/* Responsive Header / Footer */
@media (max-width: 1024px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
  }
}

@media (max-width: 1180px) {
  .mobile-toggle {
    display: block;
  }
  
  .main-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 300px;
    height: 100vh;
    background-color: var(--color-white);
    box-shadow: var(--shadow-xl);
    flex-direction: column;
    align-items: flex-start;
    padding: 80px 24px 30px;
    transition: right var(--transition-normal);
    overflow-y: auto;
    z-index: 1001;
  }
  
  .main-nav.open {
    right: 0;
  }
  
  .nav-list {
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    gap: 0;
  }
  
  .nav-item {
    width: 100%;
    border-bottom: 1px solid var(--color-border);
  }
  
  .nav-link {
    padding: 14px 0;
    justify-content: space-between;
    width: 100%;
  }
  
  .dropdown-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border-top: none;
    display: none;
    padding-left: 15px;
    background-color: var(--color-bg-light);
  }
  
  .dropdown-menu.show {
    display: block;
  }
  
  .header-cta {
    display: none;
  }

  .nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-fast);
  }

  .nav-overlay.active {
    opacity: 1;
    visibility: visible;
  }
}

@media (max-width: 600px) {
  .topbar-wrapper {
    flex-direction: column;
    gap: 6px;
    text-align: center;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-bottom-wrap {
    flex-direction: column;
    gap: 10px;
    text-align: center;
  }
}
