/************************************************************
 * PRIVA HEADER – DESIGN TOKENS
 ************************************************************/

:root {
  --priva-surface: #ffffff;
  --priva-surface-muted: #f3f8f5;
  --priva-text-main: #000319;
  --priva-primary: #008b00;
  --priva-badge-bg: #122a54;

  --priva-shadow-dropdown: 0px 4px 20.6px rgba(0, 0, 0, 0.1);
  --priva-shadow-card: 0px 1px 3px rgba(0, 0, 0, 0.05);

  --priva-radius-xs: 4px;
  --priva-radius-md: 8px;
  --priva-radius-pill: 74px;

  --priva-font-inter: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --priva-font-manrope: 'Manrope', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/************************************************************
 * HEADER – FULL WIDTH SHELL
 ************************************************************/

.header {
  position: relative;
  width: 100%;
  background: var(--priva-surface);

  display: flex;
  align-items: center;
  justify-content: space-between;

  /* SINGLE SOURCE OF HORIZONTAL RHYTHM */
  padding: 16px 120px;

  color: var(--priva-text-main);
  box-sizing: border-box;
}

/************************************************************
 * HEADER / HERO SEPARATOR (SUBTLE DIVIDER)
 ************************************************************/

.header {
  border-bottom: 1px solid rgba(18, 42, 84, 0.08);
}


/************************************************************
 * HEADER INNER GROUPS
 ************************************************************/

/* Left nav */
.home-parent {
  display: flex;
  align-items: center;
  gap: 32px;
}

/* Right actions */
.button-parent {
  display: flex;
  align-items: center;
  gap: 24px;
}

/************************************************************
 * HEADER LINKS – RESET & HOVER
 ************************************************************/

.header a {
  text-decoration: none;
  color: inherit;
}

.header a:hover {
  color: var(--priva-primary);
}

/************************************************************
 * CTA – REQUEST DEMO (LOCKED SIZE)
 ************************************************************/

.header .button {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  padding: 16px 24px;
  min-width: 174px;
  height: 51px;

  border-radius: var(--priva-radius-pill);
  background: var(--priva-primary);

  box-sizing: border-box;
}

.header .button,
.header .button:hover,
.header .button:focus,
.header .button .request-a-demo {
  color: #ffffff;
  text-decoration: none;
}

/************************************************************
 * DROPDOWN PANELS (DESKTOP)
 ************************************************************/

.dropdown-panel {
  position: absolute;
  top: 83px;
  left: 50%;
  transform: translateX(-50%);

  display: none;
  flex-direction: row;
  gap: 24px;
  padding: 24px;

  width: 100%;
  max-width: 1059px;

  background: var(--priva-surface);
  box-shadow: var(--priva-shadow-dropdown);
  border-radius: var(--priva-radius-md);
  z-index: 2000;
}

.dropdown-panel.is-open {
  display: flex;
}

/************************************************************
 * DROPDOWN CONTENT
 ************************************************************/

.dropdown-column {
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}

.dropdown-item {
  padding: 12px;
  border-radius: var(--priva-radius-xs);
}

.dropdown-item.highlight {
  background: var(--priva-surface);
  box-shadow: var(--priva-shadow-card);
}

.dropdown-title {
  font-family: var(--priva-font-inter);
  font-weight: 500;
  font-size: 14px;
  color: var(--priva-text-main);
}

.dropdown-subtitle {
  font-family: var(--priva-font-inter);
  font-size: 14px;
  opacity: 0.85;
}

.dropdown-link {
  font-family: var(--priva-font-inter);
  font-weight: 500;
  font-size: 14px;

  padding: 12px;
  border-radius: var(--priva-radius-xs);
  cursor: pointer;
  text-decoration: none;
  color: var(--priva-text-main);
}

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


/************************************************************
 * DROPDOWN SECTIONS (PRODUCTS / FRAMEWORKS)
 ************************************************************/

/* Section containers inside dropdown-panel */
.dropdown-section {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 24px;

  background: var(--priva-surface-muted);
  border-radius: var(--priva-radius-md);
  flex: 1;
}

/* Products column sizing */
.dropdown-section--products {
  max-width: 560px;
}

/* Frameworks column sizing */
.dropdown-section--frameworks {
  max-width: 440px;
}

/************************************************************
 * DROPDOWN BADGES (PRODUCTS / FRAMEWORKS / COMPANY)
 ************************************************************/

.dropdown-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  padding: 6px 12px;
  width: fit-content;

  background: var(--priva-badge-bg);
  border-radius: var(--priva-radius-xs);

  font-family: var(--priva-font-manrope);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: -0.05em;
  color: #ffffff;
}

/************************************************************
 * DROPDOWN GRIDS
 ************************************************************/

.dropdown-products-grid,
.dropdown-frameworks-grid {
  display: flex;
  gap: 24px;
  width: 100%;
}

/************************************************************
 * PRODUCT CARD – PRIMARY (Scanner)
 ************************************************************/

.dropdown-title--primary {
  color: var(--priva-primary);
}

/************************************************************
 * PRODUCT CARD HOVER (MATCH PA)
 ************************************************************/

.dropdown-item:hover {
  background: #ffffff;
  box-shadow: var(--priva-shadow-card);
}

.dropdown-item:hover .dropdown-title {
  color: var(--priva-primary);
}

/************************************************************
 * FRAMEWORK ITEMS (RIGHT COLUMN)
 ************************************************************/

.dropdown-frameworks-grid .dropdown-link {
  background: transparent;
}

.dropdown-frameworks-grid .dropdown-link:hover {
  background: rgba(0, 139, 0, 0.04);
}

/************************************************************
 * COMPANY DROPDOWN – INNER STRUCTURE
 ************************************************************/

#dropdown-company {
  padding: 16px;
  background: var(--priva-surface-muted);
  border-radius: var(--priva-radius-md);
}

/* Company links spacing */
#dropdown-company .dropdown-link {
  padding: 12px;
}

/************************************************************
 * SAFETY – PREVENT DROPDOWN COLLAPSE ON TABLETS
 ************************************************************/

@media (max-width: 1024px) {
  .dropdown-products-grid,
  .dropdown-frameworks-grid {
    flex-direction: column;
  }
}


/************************************************************
 * COMPANY DROPDOWN WIDTH
 ************************************************************/

#dropdown-company {
  max-width: 260px;
}

/************************************************************
 * LANGUAGE SELECTOR
 ************************************************************/

.en-parent {
  position: relative;
  cursor: pointer;
}

.language-menu {
  position: absolute;
  top: 28px;
  right: 0;

  display: none;
  flex-direction: column;

  background: var(--priva-surface);
  border-radius: var(--priva-radius-md);
  box-shadow: var(--priva-shadow-dropdown);
  border: 1px solid #e9e9e9;
  z-index: 3000;
}

.language-menu.is-open {
  display: flex;
}

.language-option {
  padding: 10px 16px;
  cursor: pointer;
}

.language-option:hover {
  background: rgba(0, 139, 0, 0.05);
  color: var(--priva-primary);
}

/************************************************************
 * DROPDOWN TRIGGER HOVER (TEXT + ICON)
 ************************************************************/

.products-parent.has-dropdown,
.en-parent.has-dropdown {
  cursor: pointer;
}

.products-parent.has-dropdown:hover .home,
.en-parent.has-dropdown:hover .home {
  color: var(--priva-primary);
}

/************************************************************
 * MOBILE BEHAVIOR
 ************************************************************/


 /************************************************************
 * MOBILE MENU VISIBILITY
 ************************************************************/

/************************************************************
 * MOBILE MENU VISIBILITY — JS CONTROLLED
 ************************************************************/

/* Mobile menu hidden by default */
.mobile-menu {
  display: none;
}

/* Shown only when JS toggles it */
.mobile-menu.is-open {
  display: flex;
  flex-direction: column;
  gap: 24px;

  position: fixed;
  top: 64px; /* header height */
  left: 0;
  right: 0;

  padding: 24px;
  background: var(--priva-surface);
  box-shadow: var(--priva-shadow-dropdown);
  z-index: 2500;
}


/* Desktop safety — hide mobile menu completely */
@media (min-width: 769px) {
  .mobile-menu {
    display: none !important;
  }
}




/************************************************************
 * MOBILE HAMBURGER ICON (3 BARS)
 ************************************************************/

.mobile-menu-toggle {
  display: none;
  width: 28px;
  height: 22px;
  position: relative;

  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
}

/* Hamburger bars */
.mobile-menu-toggle::before,
.mobile-menu-toggle::after,
.mobile-menu-toggle span {
  content: "";
  position: absolute;
  left: 0;

  width: 100%;
  height: 2px;
  background: var(--priva-text-main);
  border-radius: 2px;

  transition: transform 0.25s ease, opacity 0.25s ease;
}

.mobile-menu-toggle::before {
  top: 0;
}

.mobile-menu-toggle span {
  top: 10px;
}

.mobile-menu-toggle::after {
  bottom: 0;
}

/* Show only on mobile */
@media (max-width: 768px) {
  .mobile-menu-toggle {
    display: block;
  }
}

/************************************************************
 * HAMBURGER → CLOSE (X)
 ************************************************************/

.mobile-menu-toggle[aria-expanded="true"]::before {
  transform: translateY(10px) rotate(45deg);
}

.mobile-menu-toggle[aria-expanded="true"] span {
  opacity: 0;
}

.mobile-menu-toggle[aria-expanded="true"]::after {
  transform: translateY(-10px) rotate(-45deg);
}


/************************************************************
 * MOBILE MENU LAYOUT
 ************************************************************/
.mobile-menu {
  display: none;
}

.mobile-menu.is-open {
  display: flex;
  flex-direction: column;
  gap: 20px;

  position: fixed;
  top: 64px;
  left: 0;
  right: 0;

  padding: 24px;
  background: #fff;
  box-shadow: 0 16px 40px rgba(0,0,0,.12);
  z-index: 9999;
}

/* Links */
.mobile-link {
  font-size: 16px;
  font-weight: 500;
  text-decoration: none;
  color: var(--priva-text-main);
}

/* CTA */
.mobile-cta {
  margin-top: 12px;
  padding: 14px;
  text-align: center;
  background: var(--priva-primary);
  color: #fff;
  border-radius: 999px;
  font-weight: 600;
}

/* Accordion */
.mobile-accordion-trigger {
  display: flex;
  justify-content: space-between;
  width: 100%;
  background: none;
  border: none;
  font-size: 16px;
  font-weight: 500;
  padding: 0;
  cursor: pointer;
}

.mobile-accordion-panel {
  display: none;
  flex-direction: column;
  gap: 12px;
  padding-left: 12px;
}

.mobile-accordion.open .mobile-accordion-panel {
  display: flex;
}

.mobile-group-title {
  font-size: 12px;
  text-transform: uppercase;
  opacity: 0.6;
  margin-top: 8px;
}


/************************************************************
 * MOBILE LANGUAGE SELECTOR (FIXED)
 ************************************************************/

/************************************************************
 * MOBILE LANGUAGE DROPDOWN (PROPER UX)
 ************************************************************/

.mobile-language {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* Trigger */
.mobile-language-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;

  background: none;
  border: none;
  padding: 12px 0;

  font-family: var(--priva-font-inter);
  font-size: 16px;
  font-weight: 500;
  color: var(--priva-text-main);

  cursor: pointer;
}

.mobile-language-arrow {
  font-size: 14px;
  transition: transform 0.2s ease;
}

/* Rotate arrow when open */
.mobile-language-toggle[aria-expanded="true"] .mobile-language-arrow {
  transform: rotate(180deg);
}

/* Dropdown menu */
.mobile-language-menu {
  display: none;
  flex-direction: column;

  border-radius: var(--priva-radius-md);
  background: var(--priva-surface);
  box-shadow: var(--priva-shadow-card);
}

/* Open state */
.mobile-language-menu.is-open {
  display: flex;
}

/* Options */
.mobile-lang-option {
  background: none;
  border: none;

  padding: 12px 16px;
  text-align: left;

  font-family: var(--priva-font-inter);
  font-size: 16px;
  font-weight: 500;

  color: var(--priva-text-main);
  cursor: pointer;
}

.mobile-lang-option:hover {
  color: var(--priva-primary);
  background: rgba(0, 139, 0, 0.05);
}





@media (max-width: 768px) {
  .home-parent,
  .button-parent,
  .dropdown-panel {
    display: none;
  }

  .mobile-menu-toggle {
    display: block;
  }

  .header {
    padding: 16px;
  }

  .image-1-icon {
    max-width: 160px;
  }
}

/************************************************************
 * RESPONSIVE HORIZONTAL RHYTHM
 ************************************************************/

/* Laptops */
@media (max-width: 1439px) {
  .header {
    padding-left: 64px;
    padding-right: 64px;
  }
}

/* Tablets */
@media (max-width: 1024px) {
  .header {
    padding-left: 32px;
    padding-right: 32px;
  }

  .home-parent {
    gap: 24px;
  }

  .button-parent {
    gap: 16px;
  }
}

/* Small phones */
@media (max-width: 420px) {
  .image-1-icon {
    max-width: 140px;
  }
}


/************************************************************
 * CTA BUTTON LABEL – RESTORE ORIGINAL TYPOGRAPHY
 ************************************************************/

.header .button .request-a-demo {
  font-family: var(--priva-font-inter);
  font-size: 16px;
  line-height: 19px;
  font-weight: 500;
  color: #ffffff;

  /* Prevent inherited scaling issues */
  white-space: nowrap;
}


/************************************************************
 * HEADER NAVIGATION TYPOGRAPHY – RESTORE ORIGINAL SIZE
 ************************************************************/

/* Primary header navigation labels */
.header .home,
.header .home-parent a,
.header .products-parent .home,
.header .en-parent .home {
  font-family: var(--priva-font-inter);
  font-size: 16px;
  line-height: 19px;
  font-weight: 400;
  color: var(--priva-text-main);

  /* Prevent shrink due to inheritance */
  white-space: nowrap;
}


/************************************************************
 * DROPDOWN TRIGGER CONSISTENCY
 ************************************************************/

.products-parent,
.en-parent {
  font-family: var(--priva-font-inter);
  font-size: 16px;
  line-height: 19px;
  font-weight: 400;
}


/************************************************************
 * IPAD AIR (820px) – PREVENT HEADER OVERFLOW
 ************************************************************/
@media (max-width: 860px) and (min-width: 769px) {
  .header {
    padding-left: 16px;
    padding-right: 16px;
  }

  .home-parent {
    gap: 16px;
  }

  .button-parent {
    gap: 12px;
  }

  /* Shrink the CTA button slightly */
  .header .button {
    min-width: auto;
    padding: 12px 16px;
    height: 44px;
  }

  .header .button .request-a-demo {
    font-size: 14px;
  }

  /* Tighten nav link font slightly */
  .header .home,
  .header .home-parent a,
  .header .products-parent .home,
  .header .en-parent .home {
    font-size: 14px;
  }
}

/************************************************************
 * SURFACE PRO 7 (912px) – HEADER BREATHING ROOM
 ************************************************************/
@media (max-width: 960px) and (min-width: 861px) {
  .header {
    padding-left: 24px;
    padding-right: 24px;
  }

  .home-parent {
    gap: 20px;
  }

  .button-parent {
    gap: 14px;
  }

  .header .button {
    min-width: auto;
    padding: 12px 18px;
    height: 44px;
  }

  .header .button .request-a-demo {
    font-size: 15px;
  }

  .header .home,
  .header .home-parent a,
  .header .products-parent .home,
  .header .en-parent .home {
    font-size: 15px;
  }
}

/************************************************************
 * TABLETS (up to 1024px) – TIGHTEN LAYOUT
 ************************************************************/
@media (max-width: 1024px) {
  .header {
    padding-left: 24px;
    padding-right: 24px;
  }

  .home-parent {
    gap: 16px;
  }

  .button-parent {
    gap: 12px;
  }

  /* Shrink CTA so it doesn't overflow */
  .header .button {
    min-width: auto;
    padding: 12px 16px;
    height: 44px;
  }

  .header .button .request-a-demo {
    font-size: 14px;
  }

  .header .home,
  .header .home-parent a,
  .header .products-parent .home,
  .header .en-parent .home {
    font-size: 14px;
  }
}

/************************************************************
 * SURFACE PRO 7 / IPAD AIR – EXTRA SQUEEZE (769px–960px)
 ************************************************************/
@media (max-width: 960px) and (min-width: 769px) {
  .header {
    padding-left: 16px;
    padding-right: 16px;
  }

  .home-parent {
    gap: 12px;
  }

  .button-parent {
    gap: 8px;
  }

  .header .button {
    min-width: auto;
    padding: 10px 14px;
    height: 40px;
  }
}

/************************************************************
 * LOGO – PROPORTIONAL SIZING ACROSS DEVICES
 ************************************************************/

/* Desktop default */
.image-1-icon {
  width: auto;
  height: 36px;
}

/* Laptops (max 1439px) */
@media (max-width: 1439px) {
  .image-1-icon {
    height: 34px;
  }
}

/* Tablets / iPad Pro (max 1024px) */
@media (max-width: 1024px) {
  .image-1-icon {
    height: 30px;
  }
}

/* Surface Pro 7 / iPad Air (769px–960px) */
@media (max-width: 960px) and (min-width: 769px) {
  .image-1-icon {
    height: 28px;
  }
}

/* Mobile (max 768px) — make it more prominent */
@media (max-width: 768px) {
  .image-1-icon {
    height: 38px;
    max-width: unset; /* remove the 160px cap from before */
  }
}

/* Small phones (max 420px) */
@media (max-width: 420px) {
  .image-1-icon {
    height: 34px;
    max-width: unset;
  }
}