@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Plus+Jakarta+Sans:ital,wght@0,400;0,500;0,600;0,700;0,800;1,700;1,800&display=swap');

/* DESIGN TOKENS */
:root {
  /* Colors */
  --color-primary: #E63E26;
  --color-primary-hover: #C52F1A;
  --color-primary-light: rgba(230, 62, 38, 0.1);
  
  --bg-darkest: #06090F;
  --bg-dark-sec: #0D121F;
  --bg-dark-card: #151C2C;
  --bg-dark-border: rgba(255, 255, 255, 0.08);
  
  --bg-lightest: #FFFFFF;
  --bg-light-sec: #F8F9FB;
  --bg-light-card: #FFFFFF;
  --bg-light-border: #E2E8F0;
  --border-light-color: #E2E8F0;
  
  --text-white: #FFFFFF;
  --text-dark-primary: #1A202C;
  --text-dark-secondary: #4A5568;
  --text-dark-muted: #718096;
  
  --text-light-primary: #F7FAFC;
  --text-light-secondary: #CBD5E0;
  --text-light-muted: #718096;

  /* Typography */
  --font-header: 'Plus Jakarta Sans', sans-serif;
  --font-body: 'Inter', sans-serif;
  
  /* Layout */
  --header-height: 80px;
  --border-radius-pill: 50px;
  --border-radius-card: 16px;
  --max-width: 1280px;
  
  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-slow: 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

/* RESET & BASE */
* {
  box-sizing: border-radius;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-lightest);
  color: var(--text-dark-primary);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

/* Custom Elegant Webkit Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: var(--bg-darkest);
}
::-webkit-scrollbar-thumb {
  background: #2D3748;
  border-radius: 5px;
  border: 2px solid var(--bg-darkest);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--color-primary);
}

/* TYPOGRAPHY */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-header);
  font-weight: 700;
  line-height: 1.25;
  color: var(--text-dark-primary);
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition-fast);
}

/* LAYOUT CONTAINER */
.container {
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  padding: 0 5%;
}

/* BUTTONS & PILLS */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-header);
  font-weight: 600;
  font-size: 15px;
  border-radius: var(--border-radius-pill);
  transition: var(--transition-normal);
  cursor: pointer;
  border: none;
}

/* Primary Red Button with white circle arrow */
.btn-primary {
  background-color: var(--color-primary);
  color: var(--text-white);
  padding: 12px 28px;
  gap: 12px;
}

.btn-primary .arrow-circle {
  background-color: var(--text-white);
  border-radius: 50%;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-normal);
}

.btn-primary .arrow-circle svg {
  stroke: var(--color-primary);
  width: 12px;
  height: 12px;
  transition: var(--transition-normal);
}

.btn-primary:hover {
  background-color: var(--color-primary-hover);
  transform: translateY(-2px);
}

.btn-primary:hover .arrow-circle {
  transform: translateX(3px);
}

/* Secondary outline button */
.btn-secondary {
  background-color: transparent;
  border: 1.5px solid var(--text-dark-primary);
  color: var(--text-dark-primary);
  padding: 12px 28px;
}

.btn-secondary.dark-theme-border {
  border-color: var(--text-light-primary);
  color: var(--text-light-primary);
}

.btn-secondary.dark-theme-border:hover {
  background-color: var(--text-light-primary);
  color: var(--bg-darkest);
}

.btn-secondary:hover {
  background-color: var(--text-dark-primary);
  color: var(--bg-lightest);
  transform: translateY(-2px);
}

/* Link Button (text with arrow) */
.btn-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-header);
  font-weight: 700;
  color: var(--color-primary);
  font-size: 15px;
  transition: var(--transition-fast);
}

.btn-link svg {
  stroke: var(--color-primary);
  width: 16px;
  height: 16px;
  transition: var(--transition-normal);
}

.btn-link:hover {
  color: var(--color-primary-hover);
}

.btn-link:hover svg {
  transform: translateX(4px);
}

/* HEADER NAVIGATION */
.site-header {
  position: sticky;
  top: 0;
  width: 100%;
  height: var(--header-height);
  background-color: #ffffff;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-light-color);
  z-index: 1000;
  transition: var(--transition-fast);
}

.site-header .container {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 125px;
  height: 72px;
  overflow: hidden;
  position: relative;
}

.site-header .logo-img {
  display: block;
  width: 125px;
  height: auto;
}

.site-footer .logo-img {
  height: 42px;
  display: block;
  margin: 0;
}

/* Desktop Menu Navigation */
.nav-menu {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 32px;
}

.nav-item {
  position: relative;
}

.nav-link {
  font-family: var(--font-header);
  font-weight: 500;
  font-size: 15px;
  color: var(--text-dark-secondary);
  padding: 8px 0;
  display: flex;
  align-items: center;
  gap: 4px;
}

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

/* Underline Animation */
.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--color-primary);
  transition: var(--transition-normal);
}

.nav-link.active::after, .nav-link:hover::after {
  width: 100%;
}

.nav-link.active {
  color: var(--color-primary);
  font-weight: 700;
}

/* Chevron arrow on dropdowns */
.nav-link svg {
  stroke: var(--text-dark-secondary);
  width: 12px;
  height: 12px;
  transition: var(--transition-fast);
}

.nav-item:hover .nav-link svg {
  transform: rotate(180deg);
  stroke: var(--color-primary);
}

/* DROPDOWN MENU */
.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  background-color: #ffffff;
  border: 1px solid var(--border-light-color);
  border-radius: var(--border-radius-card);
  padding: 16px;
  min-width: 240px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  display: none;
  grid-template-columns: 1fr;
  gap: 8px;
  z-index: 1010;
  opacity: 0;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.nav-item:hover .dropdown-menu {
  display: grid;
  opacity: 1;
  transform: translateX(-50%) translateY(0px);
}

.dropdown-link {
  padding: 10px 16px;
  border-radius: 8px;
  font-family: var(--font-header);
  font-size: 14px;
  font-weight: 500;
  color: var(--text-dark-secondary);
}

.dropdown-link:hover {
  background-color: var(--bg-light-grey);
  color: var(--color-primary);
}

/* Right Nav Actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: 20px;
}

.search-trigger, .lang-selector {
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.search-trigger svg {
  stroke: var(--text-dark-secondary);
  width: 20px;
  height: 20px;
}

.search-trigger:hover svg {
  stroke: var(--color-primary);
}

.lang-selector {
  gap: 6px;
  font-family: var(--font-header);
  font-size: 14px;
  font-weight: 500;
  color: var(--text-dark-secondary);
}

.lang-selector svg.globe {
  stroke: var(--text-dark-secondary);
  width: 18px;
  height: 18px;
}

.lang-selector svg.chevron {
  stroke: var(--text-dark-secondary);
  width: 10px;
  height: 10px;
}

.lang-selector:hover, .lang-selector:hover svg.globe {
  color: var(--color-primary);
  stroke: var(--color-primary);
}

/* HAMBURGER FOR MOBILE */
.hamburger-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 24px;
  height: 18px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 1020;
}

.hamburger-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background-color: var(--text-dark-primary);
  border-radius: 2px;
  transition: var(--transition-normal);
}

/* FOOTER SECTION */
.site-footer {
  background-color: #070b13; /* Deep premium black */
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  padding: 90px 0 40px 0;
  color: #a0aec0;
  position: relative;
}

/* Subtle premium top gradient glow */
.site-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--color-primary), transparent);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2.2fr repeat(4, 1fr);
  gap: 50px 30px;
  margin-bottom: 60px;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 24px;
  max-width: 340px;
}

.footer-desc {
  font-size: 14px;
  color: #718096;
  line-height: 1.65;
}

.footer-socials {
  display: flex;
  gap: 12px;
}

.social-icon {
  width: 38px;
  height: 38px;
  background-color: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 8px; /* Modern squircle shape */
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.social-icon svg {
  fill: #a0aec0;
  width: 16px;
  height: 16px;
  transition: fill 0.3s ease;
}

.social-icon:hover {
  background-color: var(--color-primary);
  border-color: var(--color-primary);
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(230, 62, 38, 0.25);
}

.social-icon:hover svg {
  fill: var(--text-white);
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.footer-col-title {
  font-family: var(--font-header);
  font-size: 14px;
  font-weight: 700;
  color: var(--text-white);
  letter-spacing: 1px;
  text-transform: uppercase;
  position: relative;
  padding-bottom: 8px;
}

/* Accent underline that expands on hover */
.footer-col-title::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 18px;
  height: 2px;
  background-color: var(--color-primary);
  border-radius: 1px;
  transition: width 0.3s ease;
}

.footer-col:hover .footer-col-title::after {
  width: 32px;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-link {
  font-size: 14px;
  color: #718096;
  transition: all 0.25s ease;
  display: inline-block;
  text-decoration: none;
}

.footer-link:hover {
  color: #ffffff;
  transform: translateX(4px);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 35px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: #718096;
}

.footer-legal-links {
  display: flex;
  gap: 24px;
}

.footer-legal-links a {
  color: #718096;
  transition: color 0.25s ease;
  text-decoration: none;
}

.footer-legal-links a:hover {
  color: #ffffff;
}

/* SECTION HELPER CLASSSES */
.dark-section {
  background-color: var(--bg-darkest);
  color: var(--text-light-primary);
  padding: 100px 0;
}

.light-section {
  background-color: var(--bg-lightest);
  color: var(--text-dark-primary);
  padding: 100px 0;
}

.light-section-grey {
  background-color: var(--bg-light-sec);
  color: var(--text-dark-primary);
  padding: 100px 0;
}

.section-tag {
  display: block;
  font-family: var(--font-header);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--color-primary);
  letter-spacing: 1.5px;
  margin-bottom: 12px;
  text-align: center;
}

.section-tag.left-align {
  text-align: left;
}

.section-title {
  font-size: clamp(2rem, 3.5vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.5px;
  margin-bottom: 16px;
  text-align: center;
  color: inherit;
}

.section-title.left-align {
  text-align: left;
}

.section-subtitle {
  font-size: 17px;
  color: var(--text-dark-secondary);
  max-width: 680px;
  margin: 0 auto 60px auto;
  text-align: center;
}

.dark-section .section-subtitle {
  color: var(--text-light-secondary);
}

.section-subtitle.left-align {
  text-align: left;
  margin-left: 0;
}

/* RESPONSIVE BREAKPOINTS */
@media (max-width: 1024px) {
  .footer-grid {
    grid-template-columns: 1.5fr repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  :root {
    --header-height: 70px;
  }
  
  .logo-link {
    width: 108px;
    height: 62px;
  }
  .site-header .logo-img {
    width: 108px;
    height: auto;
  }
  
  .hamburger-toggle {
    display: flex;
  }
  
  .nav-menu {
    position: fixed;
    top: var(--header-height);
    left: 0;
    width: 100%;
    height: calc(100vh - var(--header-height));
    background-color: var(--bg-darkest);
    flex-direction: column;
    padding: 40px;
    align-items: flex-start;
    gap: 24px;
    transform: translateX(-100%);
    transition: var(--transition-normal);
    z-index: 999;
  }
  
  .nav-menu.active {
    transform: translateX(0);
  }
  
  .nav-link {
    font-size: 18px;
  }
  
  .dropdown-menu {
    position: static;
    transform: none;
    box-shadow: none;
    background-color: transparent;
    border: none;
    padding-left: 20px;
    display: flex;
    flex-direction: column;
  }
  
  .header-actions {
    display: none; /* Hide desktop search/lang for simplified mobile */
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  
  .footer-bottom {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }
}

/* Global Section Title Size Standardization */
.section-title {
  font-size: clamp(2rem, 3.5vw, 2.5rem) !important;
  font-weight: 800 !important;
}

/* PRODUCTS MEGA MENU */
.nav-item.has-mega {
  position: static;
}

.mega-menu {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  background-color: #ffffff;
  border-bottom: 1.5px solid var(--border-light-color);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.08);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
  z-index: 1000;
  padding: 30px 0;
}

.nav-item.has-mega:hover .mega-menu {
  opacity: 1;
  visibility: visible;
}

.mega-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 5%;
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 40px;
}

/* Left Column: Brands List */
.mega-brands-list {
  border-right: 1.5px solid var(--border-light-color);
  padding-right: 20px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.mega-brand-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 14px;
  border-radius: 6px;
  cursor: pointer;
  font-family: var(--font-header);
  font-size: 14px;
  font-weight: 600;
  color: var(--text-dark-secondary);
  transition: var(--transition-fast);
}

.mega-brand-item svg {
  width: 14px;
  height: 14px;
  opacity: 0;
  transform: translateX(-5px);
  transition: var(--transition-fast);
  stroke: var(--color-primary);
}

.mega-brand-item:hover, .mega-brand-item.active {
  background-color: var(--color-primary-light);
  color: var(--color-primary);
}

.mega-brand-item:hover svg, .mega-brand-item.active svg {
  opacity: 1;
  transform: translateX(0);
}

/* Right Column: Preview Panel */
.mega-content-panel {
  min-height: 400px;
  position: relative;
}

.mega-panel {
  display: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.mega-panel.active {
  display: block;
  opacity: 1;
}

.mega-panel .panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  border-bottom: 1.5px solid var(--border-light-color);
  padding-bottom: 12px;
}

.mega-panel .panel-header h3 {
  font-family: var(--font-header);
  font-size: 18px;
  font-weight: 800;
  color: var(--text-dark-primary);
}

.mega-panel .panel-header .panel-all-link {
  font-family: var(--font-header);
  font-size: 13px;
  font-weight: 700;
  color: var(--color-primary);
  text-decoration: none;
}

.mega-panel .panel-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.mega-panel .panel-card {
  background-color: var(--bg-light-sec);
  border: 1px solid var(--border-light-color);
  border-radius: 8px;
  padding: 16px 20px;
  text-decoration: none;
  transition: var(--transition-fast);
}

.mega-panel .panel-card:hover {
  border-color: var(--color-primary);
  background-color: #ffffff;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.04);
  transform: translateY(-2px);
}

.mega-panel .panel-card-title {
  font-family: var(--font-header);
  font-size: 14px;
  font-weight: 700;
  color: var(--text-dark-primary);
  margin-bottom: 4px;
}

.mega-panel .panel-card-desc {
  font-family: var(--font-body);
  font-size: 12px;
  color: var(--text-dark-secondary);
  line-height: 1.4;
}

/* Mobile responsive - hide mega menu, keep classic menu */
@media (max-width: 768px) {
  .mega-menu {
    display: none !important;
  }
}

/* APPLICATIONS MEGA MENU */
.mega-menu.app-mega {
  padding: 0;
}

.app-mega-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 5%;
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 0;
}

/* Left: Industry list */
.app-industries-list {
  background: linear-gradient(160deg, #f0f7ff 0%, #eef3fb 100%);
  border-right: 1.5px solid var(--border-light-color);
  padding: 28px 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.app-industry-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 20px;
  cursor: pointer;
  font-family: var(--font-header);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-dark-secondary);
  transition: var(--transition-fast);
  border-left: 3px solid transparent;
}

.app-industry-item .industry-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
  box-shadow: 0 1px 4px rgba(0,0,0,0.08);
  transition: var(--transition-fast);
}

.app-industry-item:hover,
.app-industry-item.active {
  color: var(--color-primary);
  background-color: rgba(255,255,255,0.8);
  border-left-color: var(--color-primary);
}

.app-industry-item:hover .industry-icon,
.app-industry-item.active .industry-icon {
  background: var(--color-primary-light);
}

/* Right: Applications content panel */
.app-content-panel {
  padding: 28px 32px;
}

.app-panel {
  display: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.app-panel.active {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  opacity: 1;
}

.app-panel-section-title {
  font-family: var(--font-header);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--text-dark-secondary);
  margin-bottom: 14px;
}

.app-solutions-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.app-solution-card {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 14px;
  background: var(--bg-light-sec);
  border: 1px solid var(--border-light-color);
  border-radius: 8px;
  text-decoration: none;
  transition: var(--transition-fast);
}

.app-solution-card:hover {
  border-color: var(--color-primary);
  background: #fff;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  transform: translateY(-1px);
}

.app-solution-icon {
  font-size: 20px;
  line-height: 1;
  flex-shrink: 0;
  margin-top: 1px;
}

.app-solution-title {
  font-family: var(--font-header);
  font-size: 13px;
  font-weight: 700;
  color: var(--text-dark-primary);
  margin-bottom: 3px;
}

.app-solution-desc {
  font-family: var(--font-body);
  font-size: 11.5px;
  color: var(--text-dark-secondary);
  line-height: 1.4;
}

.app-ic-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.app-ic-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: var(--bg-light-sec);
  border: 1px solid var(--border-light-color);
  border-radius: 6px;
  text-decoration: none;
  transition: var(--transition-fast);
}

.app-ic-chip:hover {
  background: var(--color-primary-light);
  border-color: var(--color-primary);
}

.app-ic-badge {
  font-size: 10px;
  font-weight: 700;
  font-family: var(--font-header);
  color: #ffffff;
  background: var(--color-primary);
  padding: 2px 7px;
  border-radius: 4px;
  flex-shrink: 0;
}

.app-ic-name {
  font-family: var(--font-header);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-dark-primary);
}

.app-ic-brand {
  font-family: var(--font-body);
  font-size: 11px;
  color: var(--text-dark-secondary);
  margin-left: auto;
}

.app-panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  grid-column: 1 / -1;
  border-bottom: 1.5px solid var(--border-light-color);
  padding-bottom: 12px;
}

.app-panel-header h3 {
  font-family: var(--font-header);
  font-size: 17px;
  font-weight: 800;
  color: var(--text-dark-primary);
}

.app-panel-header .app-all-link {
  font-family: var(--font-header);
  font-size: 12.5px;
  font-weight: 700;
  color: var(--color-primary);
  text-decoration: none;
}

/* Mobile: hide app mega */
@media (max-width: 768px) {
  .mega-menu.app-mega {
    display: none !important;
  }
}

/* =========================================================================
   SEARCH OVERLAY PANEL STYLES
   ========================================================================= */
.search-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(6, 9, 15, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

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

.search-overlay-close {
  position: absolute;
  top: 30px;
  right: 40px;
  font-size: 40px;
  color: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: color 0.25s ease;
  line-height: 1;
  padding: 10px;
}

.search-overlay-close:hover {
  color: var(--color-primary);
}

.search-overlay-content {
  width: 100%;
  max-width: 680px;
  padding: 20px;
  text-align: center;
}

.search-overlay-title {
  font-family: var(--font-header);
  font-size: 28px;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 24px;
}

.search-overlay-field {
  position: relative;
  display: flex;
  align-items: center;
  background-color: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 4px;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.search-overlay-field:focus-within {
  border-color: var(--color-primary);
  box-shadow: 0 0 20px rgba(230, 62, 38, 0.2);
}

.search-overlay-input {
  width: 100%;
  background: none;
  border: none;
  outline: none;
  font-size: 20px;
  font-family: var(--font-body);
  color: #ffffff;
  padding: 16px 20px;
}

.search-overlay-input::placeholder {
  color: rgba(255, 255, 255, 0.3);
}

.search-overlay-submit {
  background: var(--color-primary);
  border: none;
  outline: none;
  width: 50px;
  height: 50px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #ffffff;
  margin-right: 4px;
  transition: background-color 0.25s ease;
}

.search-overlay-submit:hover {
  background-color: #d12e17;
}

.search-overlay-submit svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
}

.search-overlay-hint {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.4);
  margin-top: 16px;
}

/* Temporarily hidden: Applications top-level menu item (site-wide) */
.nav-menu > li.nav-item:has(> a.nav-link[href="applications.html"]) {
  display: none;
}

/* ── FOOTER MOBILE COLLAPSE (columns collapsed by default on <=768px) ── */
@media (max-width: 768px) {
  .site-footer {
    padding: 60px 0 32px 0;
  }

  .footer-col {
    gap: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    padding-bottom: 16px;
  }

  .footer-col-title {
    cursor: pointer;
    user-select: none;
    margin: 0;
    padding-right: 28px;
  }

  /* Chevron indicator (top-right of the title) */
  .footer-col-title::before {
    content: '';
    position: absolute;
    right: 4px;
    top: 4px;
    width: 8px;
    height: 8px;
    border-right: 2px solid #718096;
    border-bottom: 2px solid #718096;
    transform: rotate(45deg);
    transition: transform 0.3s ease, border-color 0.3s ease;
  }

  .footer-col.footer-col-open .footer-col-title::before {
    transform: rotate(225deg);
    border-color: var(--color-primary);
  }

  .footer-col .footer-links {
    display: none;
    margin-top: 16px;
  }

  .footer-col.footer-col-open .footer-links {
    display: flex;
  }
}

/* ── MOBILE NAV · PRODUCTS ACCORDION SUBMENU ── */
@media (max-width: 768px) {
  .nav-menu {
    overflow-y: auto;
  }

  .mobile-mega-submenu {
    display: none;
    flex-direction: column;
    padding: 6px 0 10px 22px;
    gap: 2px;
  }

  .nav-item.has-mega.mobile-open .mobile-mega-submenu {
    display: flex;
  }

  .mobile-mega-label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.4);
    margin: 14px 0 6px;
  }

  .mobile-mega-link {
    display: block;
    padding: 7px 0;
    font-size: 15px;
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
    transition: color 0.2s ease;
  }

  .mobile-mega-link:hover,
  .mobile-mega-link:active {
    color: #ffffff;
  }

  .mobile-mega-all {
    color: var(--color-primary);
    font-weight: 700;
  }

  /* Rotate the chevron when the accordion is open */
  .nav-item.has-mega > .nav-link svg {
    transition: transform 0.3s ease;
  }

  .nav-item.has-mega.mobile-open > .nav-link svg {
    transform: rotate(180deg);
  }

  /* Pages with the legacy dropdown markup: the accordion replaces it */
  .nav-item.has-mega .dropdown-menu {
    display: none !important;
  }
}

@media (min-width: 769px) {
  .mobile-mega-submenu {
    display: none !important;
  }
}

/* ── FOOTER SOCIAL ICONS · FIX STROKE-BASED SVG (e.g. Email) ──
   .social-icon svg sets fill:#a0aec0 which overrides the fill="none"
   presentation attribute on stroke-based icons, turning them into a
   solid blob. Restore fill:none and give them an explicit stroke color. */
.social-icon svg[fill="none"] {
  fill: none;
  stroke: #a0aec0;
  transition: stroke 0.3s ease;
}

.social-icon:hover svg[fill="none"] {
  fill: none;
  stroke: var(--text-white);
}
