/* Modern Header & Footer Styles for UAutomate AI (Matches Flagship Design) */
:root {
  --uai-red: #cc4141;
  --uai-red-hover: #b02c2c;
  --uai-red-light: #ff8080;
  --uai-dark-bg: #121212;
  --uai-dark-border: rgba(255, 255, 255, 0.1);
  --uai-gray-text: #a3a3a3;
  --uai-light-border: #f0f0f0;
}

.uai-header-wrapper *,
.uai-header-wrapper *::before,
.uai-header-wrapper *::after,
.uai-footer-wrapper *,
.uai-footer-wrapper *::before,
.uai-footer-wrapper *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

.uai-header-wrapper {
  position: sticky;
  top: 0;
  z-index: 9999;
  width: 100%;
  max-width: 100%;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* 1. Ticker Top Bar */
.uai-top-ticker {
  background: var(--uai-dark-bg);
  color: rgba(255, 255, 255, 0.9);
  height: 34px;
  border-bottom: 1px solid var(--uai-dark-border);
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  user-select: none;
  font-size: 12px;
  width: 100%;
  max-width: 100%;
}

.uai-ticker-fade-left {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 48px;
  background: linear-gradient(to right, #121212, rgba(18, 18, 18, 0.8), transparent);
  pointer-events: none;
  z-index: 10;
}

.uai-ticker-fade-right {
  position: absolute;
  right: 80px;
  top: 0;
  bottom: 0;
  width: 48px;
  background: linear-gradient(to left, #121212, rgba(18, 18, 18, 0.8), transparent);
  pointer-events: none;
  z-index: 10;
}

.uai-ticker-track-container {
  flex: 1 1 0%;
  min-width: 0;
  overflow: hidden;
  position: relative;
  height: 100%;
  display: flex;
  align-items: center;
}

.uai-ticker-track {
  display: flex;
  align-items: center;
  white-space: nowrap;
  animation: uai-marquee 28s linear infinite;
}

.uai-ticker-track:hover {
  animation-play-state: paused;
}

@keyframes uai-marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.uai-ticker-item-group {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 0 20px;
  flex-shrink: 0;
}

.uai-badge-sg {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 2px 10px;
  border-radius: 9999px;
  background: rgba(204, 65, 65, 0.2);
  border: 1px solid rgba(204, 65, 65, 0.4);
  color: var(--uai-red-light);
  font-weight: 600;
  font-size: 11px;
}

.uai-ticker-dot {
  color: rgba(255, 255, 255, 0.25);
  font-weight: bold;
}

.uai-ticker-bold {
  color: rgba(255, 255, 255, 0.88);
  font-weight: 500;
  letter-spacing: 0.01em;
}

.uai-ticker-light {
  color: rgba(255, 255, 255, 0.7);
}

.uai-top-dock {
  position: relative;
  z-index: 20;
  height: 100%;
  background: var(--uai-dark-bg);
  padding: 0 16px 0 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  border-left: 1px solid var(--uai-dark-border);
  box-shadow: -12px 0 16px var(--uai-dark-bg);
}

.uai-dock-btn {
  background: none;
  border: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  color: rgba(255, 255, 255, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
}

.uai-dock-btn:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
}

/* 2. Main Header */
.uai-main-nav {
  background: #ffffff;
  border-bottom: 1px solid var(--uai-light-border);
  width: 100%;
  transition: background 0.2s;
}

.uai-nav-container {
  max-width: 1440px;
  width: 100%;
  margin: 0 auto;
  padding: 0 16px;
  height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

@media (max-width: 639px) {
  .uai-nav-container {
    padding: 0 12px;
    height: 68px;
  }
  .uai-brand-title {
    font-size: 17px !important;
  }
  .uai-brand-sub {
    font-size: 10px !important;
  }
  .uai-brand-logo-img {
    width: 36px !important;
    height: 36px !important;
  }
}

@media (min-width: 1200px) {
  .uai-nav-container {
    padding: 0 36px;
    height: 82px;
  }
}

.uai-brand-link {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  cursor: pointer;
  flex-shrink: 0;
  white-space: nowrap;
}

.uai-brand-logo-img {
  width: auto;
  height: 40px;
  max-width: 32px;
  object-fit: contain;
  transition: transform 0.2s;
  flex-shrink: 0;
}

.uai-brand-link:hover .uai-brand-logo-img {
  transform: scale(1.05);
}

.uai-brand-text {
  display: flex;
  flex-direction: column;
  white-space: nowrap;
  flex-shrink: 0;
}

.uai-brand-title {
  font-size: 21px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #111827;
  line-height: 1;
  white-space: nowrap;
}

.uai-brand-sub {
  font-size: 11px;
  font-weight: 600;
  color: #666666;
  margin-top: 3px;
  white-space: nowrap;
}

/* Desktop Nav Items - Shifted Toward the Right */
.uai-nav-menu {
  display: none;
  align-items: center;
  gap: 4px;
  margin-left: auto;
  margin-right: 16px;
  flex-shrink: 0;
}

@media (min-width: 1024px) {
  .uai-nav-menu {
    display: flex;
  }
}

@media (min-width: 1280px) {
  .uai-nav-menu {
    gap: 10px;
    margin-right: 28px;
  }
}

.uai-nav-item {
  position: relative;
  padding: 8px 0;
}

.uai-nav-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 9px;
  font-size: 13.5px;
  font-weight: 600;
  color: #262626;
  text-decoration: none;
  border-radius: 8px;
  transition: color 0.18s, background 0.18s;
  cursor: pointer;
  white-space: nowrap;
}

@media (min-width: 1280px) {
  .uai-nav-link {
    gap: 6px;
    padding: 8px 12px;
    font-size: 15.5px;
  }
}

.uai-nav-link:hover {
  color: var(--uai-red);
}

.uai-chevron {
  width: 14px;
  height: 14px;
  color: #8c8c8c;
  transition: transform 0.2s, color 0.2s;
}

.uai-nav-item:hover .uai-chevron {
  transform: rotate(180deg);
  color: var(--uai-red);
}

/* Dropdown Menu */
.uai-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  padding-top: 8px;
  display: none;
  z-index: 1000;
  animation: uai-fade-in 0.15s ease-out forwards;
}

.uai-dropdown-right {
  left: auto;
  right: 0;
}

.uai-nav-item:hover .uai-dropdown {
  display: block;
}

@keyframes uai-fade-in {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}

.uai-dropdown-card {
  width: 380px;
  background: #ffffff;
  border: 1px solid #e5e5e5;
  border-radius: 16px;
  box-shadow: 0 20px 40px -10px rgba(0,0,0,0.12), 0 0 1px rgba(0,0,0,0.2);
  padding: 10px;
}

.uai-dropdown-header {
  padding: 6px 12px 8px;
  border-bottom: 1px solid #f0f0f0;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.uai-dropdown-title {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--uai-red);
}

.uai-dropdown-count {
  font-size: 11px;
  font-weight: 500;
  color: #8c8c8c;
}

.uai-dropdown-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 12px;
  text-decoration: none;
  transition: background 0.15s;
  cursor: pointer;
}

.uai-dropdown-row:hover {
  background: #fbfbfb;
}

.uai-dropdown-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: #f5f5f5;
  border: 1px solid #e5e5e5;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--uai-red);
  flex-shrink: 0;
  margin-top: 2px;
  transition: all 0.2s;
}

.uai-dropdown-row:hover .uai-dropdown-icon {
  background: var(--uai-red);
  border-color: var(--uai-red);
  color: #ffffff;
}

.uai-dropdown-icon svg {
  width: 18px;
  height: 18px;
}

.uai-dropdown-content {
  flex: 1;
  min-width: 0;
}

.uai-dropdown-row-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 15px;
  font-weight: 700;
  color: #171717;
  transition: color 0.15s;
}

.uai-dropdown-row:hover .uai-dropdown-row-title {
  color: var(--uai-red);
}

.uai-dropdown-arrow {
  width: 14px;
  height: 14px;
  color: #a3a3a3;
  opacity: 0;
  transition: opacity 0.15s, color 0.15s;
}

.uai-dropdown-row:hover .uai-dropdown-arrow {
  opacity: 1;
  color: var(--uai-red);
}

.uai-dropdown-row-desc {
  font-size: 13px;
  color: #666666;
  line-height: 1.4;
  margin-top: 3px;
}

/* Right Nav Group ("Let's Talk" CTA) */
.uai-nav-right {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: 0;
  flex-shrink: 0;
}

@media (max-width: 1023px) {
  .uai-nav-right {
    margin-left: auto;
  }
}

.uai-btn-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--uai-red);
  color: #ffffff !important;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  padding: 6px 8px 6px 18px;
  border-radius: 9999px;
  transition: all 0.2s;
  box-shadow: 0 2px 8px rgba(204, 65, 65, 0.25);
  white-space: nowrap;
}

@media (max-width: 639px) {
  .uai-nav-right .uai-btn-cta {
    display: none;
  }
}

.uai-btn-cta:hover {
  background: var(--uai-red-hover);
  transform: translateY(-1px);
}

.uai-btn-cta-circle {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #ffffff;
  color: var(--uai-red);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.25s;
}

.uai-btn-cta:hover .uai-btn-cta-circle {
  transform: rotate(45deg);
}

.uai-btn-cta-circle svg {
  width: 15px;
  height: 15px;
}

.uai-mobile-toggle {
  display: flex !important;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  background: #f5f5f5 !important;
  border: 1px solid #e5e5e5 !important;
  border-radius: 8px;
  color: #171717 !important;
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
}

.uai-mobile-toggle svg {
  width: 24px;
  height: 24px;
  stroke: #171717 !important;
  display: block;
}

@media (min-width: 1024px) {
  .uai-mobile-toggle {
    display: none !important;
  }
}

/* Mobile Drawer */
.uai-mobile-drawer {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #ffffff;
  border-bottom: 1px solid #e5e5e5;
  padding: 20px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.15);
  max-height: calc(100vh - 110px);
  overflow-y: auto;
}

.uai-mobile-drawer.open {
  display: block;
}

.uai-mobile-nav-link {
  display: block;
  font-size: 16px;
  font-weight: 700;
  color: #171717;
  text-decoration: none;
  padding: 10px 0;
  border-bottom: 1px solid #f0f0f0;
}

.uai-mobile-nav-link:hover {
  color: var(--uai-red);
}

.uai-mobile-sublink {
  display: block;
  font-size: 14px;
  color: #555555;
  text-decoration: none;
  padding: 8px 16px;
}

.uai-mobile-sublink:hover {
  color: var(--uai-red);
}


/* ------------------------------------------------------------- */
/* 3. Modern Footer Styles                                       */
/* ------------------------------------------------------------- */
.uai-footer-wrapper {
  width: 100%;
  background: var(--uai-dark-bg);
  color: var(--uai-gray-text);
  border-top: 1px solid var(--uai-dark-border);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  position: relative;
}

.uai-footer-container {
  max-width: 1440px;
  margin: 0 auto;
  padding: 60px 20px 40px;
}

@media (min-width: 1024px) {
  .uai-footer-container {
    padding: 68px 36px 44px;
  }
}

.uai-footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  padding-bottom: 40px;
}

@media (min-width: 768px) {
  .uai-footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 1024px) {
  .uai-footer-grid {
    grid-template-columns: 5fr 3fr 4fr;
    gap: 48px;
  }
}

/* Footer Col 1: Brand & Contact */
.uai-footer-brand {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.uai-footer-logo-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.uai-footer-logo-img {
  width: auto;
  height: 40px;
  max-width: 32px;
  object-fit: contain;
}

.uai-footer-brand-title {
  font-size: 22px;
  font-weight: 800;
  color: #ffffff;
  line-height: 1;
  letter-spacing: -0.02em;
}

.uai-footer-brand-sub {
  font-size: 11px;
  font-weight: 500;
  color: var(--uai-gray-text);
  margin-top: 3px;
}

.uai-footer-desc {
  font-size: 13.5px;
  color: var(--uai-gray-text);
  line-height: 1.6;
  max-width: 440px;
}

.uai-footer-contact-block {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 12.5px;
  color: var(--uai-gray-text);
  padding-top: 4px;
}

.uai-footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.uai-footer-contact-icon {
  width: 16px;
  height: 16px;
  color: var(--uai-red);
  flex-shrink: 0;
  margin-top: 2px;
}

.uai-footer-contact-link {
  color: var(--uai-gray-text);
  text-decoration: none;
  transition: color 0.15s;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.uai-footer-contact-link:hover {
  color: var(--uai-red-light);
}

.uai-footer-phone-link {
  color: #ffffff;
  font-weight: 700;
  text-decoration: none;
  transition: color 0.15s;
}

.uai-footer-phone-link:hover {
  color: var(--uai-red-light);
}

.uai-footer-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 14px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 12px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.85);
  align-self: flex-start;
}

.uai-footer-badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--uai-red);
}

/* Social icons */
.uai-footer-socials {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-top: 4px;
}

.uai-social-pill {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: all 0.2s;
}

.uai-social-pill:hover {
  background: #ffffff;
  color: #000000;
  transform: scale(1.1);
}

.uai-social-pill svg {
  width: 15px;
  height: 15px;
  fill: currentColor;
}

/* Footer Col 2: Navigation Menu */
.uai-footer-nav-col {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.uai-footer-heading {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #ffffff;
}

.uai-footer-nav-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.uai-footer-nav-item a {
  color: var(--uai-gray-text);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.15s;
}

.uai-footer-nav-item a:hover {
  color: #ffffff;
}

/* Footer Col 3: Serving Clients From */
.uai-footer-clients-col {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.uai-clients-title {
  font-size: 14px;
  font-weight: 700;
  color: #ffffff;
}

.uai-clients-sub {
  font-size: 11.5px;
  color: #8c8c8c;
  line-height: 1.5;
  margin-top: 2px;
}

.uai-country-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  font-size: 12px;
}

.uai-country-card {
  padding: 10px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.09);
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s;
}

.uai-country-card:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(204, 65, 65, 0.5);
}

.uai-country-flag {
  font-size: 16px;
  line-height: 1;
  flex-shrink: 0;
}

.uai-country-info {
  min-width: 0;
}

.uai-country-name {
  font-weight: 700;
  color: #ffffff;
  font-size: 12px;
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.uai-country-role {
  font-size: 10px;
  color: #8c8c8c;
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Full Width Divider */
.uai-footer-divider {
  width: 100%;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}

/* Sub-Footer Strip */
.uai-sub-footer {
  max-width: 1440px;
  margin: 0 auto;
  padding: 30px 20px 36px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  position: relative;
}

.uai-product-by-row {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  color: #8c8c8c;
}

.uai-chaurasiya-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.uai-chaurasiya-logo-img {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.uai-chaurasiya-text {
  display: flex;
  flex-direction: column;
  text-align: left;
  line-height: 1;
}

.uai-chaurasiya-title {
  font-size: 13px;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: 0.05em;
}

.uai-chaurasiya-sub {
  font-size: 10.5px;
  font-weight: 800;
  color: var(--uai-red);
  letter-spacing: 0.2em;
  margin-top: 2px;
}

.uai-legal-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 20px;
  font-size: 12px;
  color: #737373;
  text-align: center;
}

.uai-legal-strip a {
  color: #737373;
  text-decoration: none;
  transition: color 0.15s;
}

.uai-legal-strip a:hover {
  color: #ffffff;
  text-decoration: underline;
}

/* Docked "Book my Cal" Button */
.uai-book-cal-btn {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 999;
  background: #000000;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff !important;
  font-size: 13px;
  font-weight: 700;
  padding: 10px 18px;
  border-radius: 9999px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  box-shadow: 0 10px 25px rgba(0,0,0,0.5);
  transition: all 0.2s;
}

.uai-book-cal-btn:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.4);
  box-shadow: 0 14px 30px rgba(0,0,0,0.7);
}

.uai-book-cal-btn svg {
  width: 16px;
  height: 16px;
}
