/* Sapphire Intelligence - Global Styles */

:root {
  --brand-navy: #0b132b;
  --brand-blue: #2563EB;
  --sic-blue: #2E3192;
  --sic-dark: #1F2937;
  --sic-bg: #FAFAFC;
  --brand-text: #334155;
  --brand-border: #E2E8F0;
  --brand-gray-bg: #F8F9FA;
  --deep-navy: #0B132B;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  color: var(--brand-text);
  background: #ffffff;
  -webkit-font-smoothing: antialiased;
}

.font-serif {
  font-family: 'Playfair Display', serif;
}

.font-sans {
  font-family: 'Inter', sans-serif;
}

/* Navbar Styles */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(11, 19, 43, 0.95);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  transition: box-shadow 0.3s ease;
}

.navbar.scrolled {
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.navbar-container {
  width: 80%;
  margin: 0 auto;
  padding: 0 2rem;
  height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 3rem;
}

.navbar-logo {
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem;
  font-weight: 600;
  color: #ffffff;
  text-decoration: none;
  letter-spacing: -0.02em;
  flex-shrink: 0;
}

.navbar-menu {
  display: flex;
  align-items: center;
  gap: 2rem;
  margin-left: 0;
}

.navbar-menu .navbar-mobile-cta {
  display: none;
}

.navbar-item {
  position: relative;
}

.navbar-link {
  font-size: 0.8125rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  letter-spacing: 0.04em;
  padding: 0.5rem 0;
  transition: color 0.2s ease;
  text-transform: uppercase;
}

.navbar-link:hover {
  color: #ffffff;
}

/* Dropdown Styles */
.dropdown {
  position: relative;
}

.dropdown-trigger {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  cursor: pointer;
}

.dropdown-trigger .material-symbols-outlined {
  font-size: 1rem;
  transition: transform 0.2s ease;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  background: #1A1B41;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 5px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
  padding: 0.75rem;
  min-width: 280px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.2s ease;
}

.dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.dropdown:hover .dropdown-trigger .material-symbols-outlined {
  transform: rotate(180deg);
}

.dropdown-item {
  display: block;
  padding: 0.875rem 1rem;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  border-radius: 4px;
  transition: all 0.15s ease;
  margin-bottom: 0.25rem;
}

.dropdown-item:last-child {
  margin-bottom: 0;
}

.dropdown-item:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #93c5fd;
}

.dropdown-item span {
  display: block;
  font-size: 0.75rem;
  color: rgba(147, 197, 253, 0.6);
  margin-top: 0.25rem;
  letter-spacing: 0.01em;
}

/* CTA Button */
.navbar-cta {
  display: inline-flex;
  align-items: center;
  padding: 0.625rem 1.25rem;
  background: #1e3a8a;
  color: white;
  font-size: 0.75rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 4px;
  letter-spacing: 0.02em;
  transition: background 0.2s ease;
}

.navbar-cta:hover {
  background: #2563eb;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 0.5rem;
}

.mobile-menu-toggle span {
  width: 24px;
  height: 2px;
  background: #ffffff;
  transition: all 0.3s ease;
}

/* Page Content Spacer */
.page-content {
  padding-top: 88px;
}

/* Section Styles */
.section {
  width: 100%;
}

/* Footer Styles */
.footer {
  background: #1A1B41;
  color: white;
  padding: 4rem 2rem 2rem;
}

.footer-container {
  max-width: 1280px;
  margin: 0 auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 2rem;
}

.footer-brand {
  grid-column: span 4;
}

.footer-brand-logo {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: white;
  margin-bottom: 1rem;
}

.footer-brand-desc {
  color: #9ca3af;
  font-size: 1rem;
  line-height: 1.6;
}

.footer-links {
  grid-column: span 2;
}

.footer-links h4 {
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: white;
  margin-bottom: 1.5rem;
}

.footer-links ul {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.75rem;
}

.footer-links a {
  color: #9ca3af;
  font-size: 0.875rem;
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: white;
}

.footer-offices {
  grid-column: span 3;
}

.footer-offices h4 {
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: white;
  margin-bottom: 1.5rem;
}

.footer-office-item {
  margin-bottom: 1.25rem;
}

.footer-office-item strong {
  display: block;
  font-size: 0.875rem;
  color: white;
  margin-bottom: 0.25rem;
}

.footer-office-item span {
  font-size: 0.6875rem;
  color: #9ca3af;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  line-height: 1.5;
}

.footer-newsletter {
  grid-column: span 3;
}

.footer-newsletter h4 {
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: white;
  margin-bottom: 1.5rem;
}

.footer-newsletter form {
  display: flex;
  flex-direction: column;
}

.footer-newsletter input {
  background: transparent;
  border: none;
  border-bottom: 1px solid #4b5563;
  padding: 0.75rem 0;
  color: white;
  font-size: 0.875rem;
  width: 100%;
}

.footer-newsletter input:focus {
  outline: none;
  border-bottom-color: white;
}

.footer-newsletter button {
  background: transparent;
  border: none;
  color: white;
  cursor: pointer;
  align-self: flex-end;
  margin-top: 0.5rem;
  padding: 0.5rem;
}

.footer-newsletter button:hover {
  opacity: 0.8;
}

.footer-bottom {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-copyright {
  font-size: 0.6875rem;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.footer-legal {
  display: flex;
  gap: 2rem;
}

.footer-legal a {
  font-size: 0.6875rem;
  color: #6b7280;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: color 0.2s ease;
}

.footer-legal a:hover {
  color: white;
}

/* Material Symbols */
.material-symbols-outlined {
  font-variation-settings: 'FILL' 0, 'wght' 300, 'GRAD' 0, 'opsz' 24;
}

/* Mobile Navbar Responsive - Tablet */
@media (max-width: 1024px) {
  .navbar-container {
    padding: 0 1.5rem;
    height: 72px;
    gap: 1rem;
  }

  .navbar-logo {
    font-size: 22px;
  }

  .navbar-menu {
    display: none !important;
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    background: #1A1B41;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0;
    margin: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 999;
  }

  .navbar-menu.active {
    display: flex !important;
  }

  .navbar-menu .navbar-link {
    padding: 1rem 1.5rem;
    font-size: 0.875rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.85);
  }

  .navbar-menu .navbar-link:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.05);
  }

  .navbar-menu .dropdown {
    display: block;
  }

  .navbar-menu .dropdown.active {
    display: block;
  }

  .navbar-cta {
    display: none;
  }

  .navbar-menu .navbar-mobile-cta {
    display: flex;
    justify-content: center;
    margin: 1rem 1.5rem;
    padding: 0.875rem 1rem;
    border-bottom: 0;
  }

  .mobile-menu-toggle {
    display: flex;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1001;
    background: transparent;
    border: none;
  }

  .mobile-menu-toggle span {
    width: 24px;
    height: 2px;
    background: #ffffff;
    transition: all 0.3s ease;
    display: block;
  }

  .mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }

  .mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
  }

  .mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
  }

  .page-content {
    padding-top: 72px;
  }
}

/* Mobile Navbar Responsive - Phone */
@media (max-width: 640px) {
  .navbar-container {
    padding: 0 1rem;
    height: 64px;
  }

  .navbar-logo {
    font-size: 22px;
  }

  .mobile-menu-toggle {
    padding: 0.25rem;
  }

  .mobile-menu-toggle span {
    width: 22px;
    height: 2px;
  }

  .navbar-menu {
    top: 64px;
  }

  .page-content {
    padding-top: 64px;
  }
}



.navbar-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.navbar-brand-logo {
  width: 42px;
  height: 42px;
  object-fit: contain;
  border-radius: 8px;
}

.navbar-brand-text {
  font-family: "Playfair Display", serif;
  font-size: 1.45rem;
  font-weight: 600;
  color: white;
  letter-spacing: -0.3px;
}


.navbar-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.logo-img {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.logo-text {
  font-size: 1.4rem;
  font-weight: 600;
}



/* FORCE POPUP IMAGES TO SHOW ORIGINAL COLORS */

.modal img,
.popup img,
[role="dialog"] img,
.modal-content img,
.insight-modal img,
#modal img,
.lightbox img {
  filter: none !important;
  -webkit-filter: none !important;
  grayscale: 0 !important;
  opacity: 1 !important;
  mix-blend-mode: normal !important;
  transform: none;
}