/* ==========================================================================
   Skoda HEADER DESIGN - MATCHING EXACT REFERENCE IMAGE
   ========================================================================== */

:root {
  --skoda-dark: #0e3a2f;
  --skoda-mint-border: #48f7a6;
  --skoda-mint-btn: #4bf69f;
  --skoda-mint-btn-hover: #3de68f;
  --skoda-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --header-height: 68px;
}

/* Base resets for header elements */
.Header-module__ldgnoG__header,
.Header-module__ldgnoG__header * {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: var(--skoda-font);
}

/* Header Outer Container */
.Header-module__ldgnoG__header {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  background-color: #ffffff;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  z-index: 1000;
  display: flex;
  align-items: center;
}

/* Inner Container */
.Header-module__ldgnoG__headerInner {
  width: 100%;
  max-width: 1600px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Left Group (Logo) */
.Header-module__ldgnoG__logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  margin-right: 1.5rem;
  flex-shrink: 0;
}

/* Logo Image (with electric mint border from screenshot) */
.Header-module__ldgnoG__logoImage {
  display: block;
  height: 38px;
  width: auto;
  object-fit: contain;
}

/* Primary Navigation - Right Aligned to fill the position preceding action buttons */
.Header-module__ldgnoG__nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(1.15rem, 1.8vw, 2.2rem);
  flex-grow: 1;
  margin-left: auto;
  margin-right: clamp(1.25rem, 2vw, 2.75rem);
}

/* Nav Link (Buttons & Anchors) */
.Header-module__ldgnoG__navLink {
  background: transparent;
  border: none;
  padding: 0.5rem 0;
  color: #1a2621;
  font-size: 15px;
  font-weight: 550;
  text-decoration: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  position: relative;
  letter-spacing: -0.01em;
  transition: color 0.18s ease;
  white-space: nowrap;
}

.Header-module__ldgnoG__navLink:hover,
.Header-module__ldgnoG__navLink.is-active {
  color: var(--skoda-dark);
}

/* Link Text & Underline */
.Header-module__ldgnoG__navLinkText {
  position: relative;
  display: inline-block;
  padding-bottom: 3px;
}

.Header-module__ldgnoG__navLinkUnderline {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--skoda-dark);
  transition: width 0.22s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 1px;
}

.Header-module__ldgnoG__navLink:hover .Header-module__ldgnoG__navLinkUnderline,
.Header-module__ldgnoG__navLink[aria-expanded="true"] .Header-module__ldgnoG__navLinkUnderline,
.Header-module__ldgnoG__navDropdown:hover .Header-module__ldgnoG__navLinkUnderline,
.Header-module__ldgnoG__navLink.is-active .Header-module__ldgnoG__navLinkUnderline {
  width: 100%;
}

/* ==========================================================================
   DROPDOWN MENU STYLES (SKODA CARS)
   ========================================================================== */

.Header-module__ldgnoG__navDropdown {
  position: relative;
  display: inline-flex;
  align-items: center;
}

/* Chevron Down Icon */
.header-chevron-icon {
  display: inline-block;
  margin-left: 6px;
  width: 10px;
  height: 6px;
  transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  stroke: currentColor;
  flex-shrink: 0;
}

.Header-module__ldgnoG__navDropdown:hover .header-chevron-icon,
.Header-module__ldgnoG__navDropdown.is-open .header-chevron-icon,
.Header-module__ldgnoG__navDropdown:focus-within .header-chevron-icon {
  transform: rotate(180deg);
}

/* Dropdown Menu Panel */
.Header-module__ldgnoG__dropdownMenu {
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  background: #ffffff;
  min-width: 310px;
  border-radius: 16px;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.12), 0 4px 12px rgba(0, 0, 0, 0.04);
  border: 1px solid rgba(14, 58, 47, 0.08);
  padding: 10px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.22s cubic-bezier(0.16, 1, 0.3, 1), transform 0.22s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.22s ease;
  z-index: 1050;
}

/* Invisible hover bridge between trigger and menu */
.Header-module__ldgnoG__dropdownMenu::before {
  content: '';
  position: absolute;
  top: -16px;
  left: 0;
  right: 0;
  height: 18px;
}

/* Dropdown Display on Hover / Focus / Active */
.Header-module__ldgnoG__navDropdown:hover .Header-module__ldgnoG__dropdownMenu,
.Header-module__ldgnoG__navDropdown:focus-within .Header-module__ldgnoG__dropdownMenu,
.Header-module__ldgnoG__dropdownMenu.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

/* Dropdown Items */
.header-dropdown-inner {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.header-dropdown-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  border-radius: 10px;
  text-decoration: none;
  color: #121917;
  transition: all 0.18s ease;
  background: transparent;
}

.header-dropdown-item:hover,
.header-dropdown-item.is-active {
  background: #f1f7f4;
}

.header-dropdown-item:hover .dropdown-item-title,
.header-dropdown-item.is-active .dropdown-item-title {
  color: #0e3a2f;
}

.dropdown-item-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.dropdown-item-title {
  font-size: 14.5px;
  font-weight: 700;
  color: #0e3a2f;
  transition: color 0.15s ease;
}

.dropdown-item-sub {
  font-size: 11.5px;
  color: #6a7c74;
  font-weight: 500;
}

.dropdown-item-arrow {
  color: #9cb5ab;
  transition: transform 0.2s ease, color 0.2s ease;
  flex-shrink: 0;
  margin-left: 8px;
}

.header-dropdown-item:hover .dropdown-item-arrow {
  color: #0e3a2f;
  transform: translateX(3px);
}

.header-dropdown-divider {
  height: 1px;
  background: rgba(14, 58, 47, 0.08);
  margin: 6px 4px;
}

.header-dropdown-all {
  background: #0e3a2f;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  border-radius: 10px;
  font-weight: 700;
  text-decoration: none;
  margin-top: 2px;
  transition: background-color 0.2s ease, transform 0.15s ease;
}

.header-dropdown-all:hover {
  background: #174e40;
  transform: translateY(-1px);
}

.header-dropdown-all .dropdown-all-text {
  font-size: 13.5px;
  color: #ffffff;
}

.header-dropdown-all .dropdown-all-badge {
  background: rgba(75, 246, 159, 0.25);
  color: #4bf69f;
  font-size: 11px;
  padding: 3px 8px;
  border-radius: 999px;
  font-weight: 800;
}

/* Right Header Action Buttons */
.Header-module__ldgnoG__headerActions {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  flex-shrink: 0;
}

/* "Download Brochure" Outlined Pill Button */
.Header-module__ldgnoG__brochureButton {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 7px 18px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--skoda-dark);
  background-color: transparent;
  border: 1.25px solid var(--skoda-dark);
  border-radius: 9999px;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.Header-module__ldgnoG__brochureButton:hover {
  background-color: var(--skoda-dark);
  color: #ffffff;
}

/* "Book a Test Drive" Mint Green Filled Pill Button */
.Header-module__ldgnoG__ctaButton {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 20px;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--skoda-dark);
  background-color: var(--skoda-mint-btn);
  border: none;
  border-radius: 9999px;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.15s ease;
  white-space: nowrap;
}

.Header-module__ldgnoG__ctaButton:hover {
  background-color: var(--skoda-mint-btn-hover);
  transform: translateY(-1px);
}

/* Mobile Toggle Hamburger */
.Header-module__ldgnoG__menuToggle {
  display: none;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 6px;
  width: 38px;
  height: 38px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  border-radius: 8px;
  transition: background-color 0.2s ease;
}

.Header-module__ldgnoG__menuToggle:hover {
  background-color: rgba(14, 58, 47, 0.06);
}

.Header-module__ldgnoG__menuToggle:focus {
  outline: none;
}

.Header-module__ldgnoG__menuBar {
  display: block;
  width: 22px;
  height: 2px;
  background-color: var(--skoda-dark);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.2s ease;
}

/* Animated Hamburger to X */
.Header-module__ldgnoG__menuToggle[aria-expanded="true"] .Header-module__ldgnoG__menuBar:first-child {
  transform: translateY(3.5px) rotate(45deg);
}

.Header-module__ldgnoG__menuToggle[aria-expanded="true"] .Header-module__ldgnoG__menuBar:last-child {
  transform: translateY(-3.5px) rotate(-45deg);
}

/* Mobile Drawer */
.skoda-mobile-drawer {
  display: none;
}

@media (max-width: 1080px) {
  .Header-module__ldgnoG__nav {
    display: none;
  }

  .Header-module__ldgnoG__menuToggle {
    display: flex;
  }

  .Header-module__ldgnoG__logo {
    margin-right: 0;
  }

  /* In top header bar, hide brochure button on tablets to conserve width */
  .Header-module__ldgnoG__headerActions .Header-module__ldgnoG__brochureButton {
    display: none;
  }

  .skoda-mobile-drawer {
    display: block;
    position: fixed;
    top: var(--header-height);
    left: 0;
    width: 100%;
    height: calc(100vh - var(--header-height));
    height: calc(100dvh - var(--header-height));
    background: #ffffff;
    padding: 1.5rem 2rem 3rem;
    transform: translateX(-100%);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 1050;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    box-sizing: border-box;
  }

  .skoda-mobile-drawer.is-active {
    transform: translateX(0);
  }

  .skoda-mobile-nav {
    display: flex;
    flex-direction: column;
    gap: 1.1rem;
    margin-bottom: 2rem;
  }

  .skoda-mobile-nav a {
    color: var(--skoda-dark);
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    padding-bottom: 8px;
    border-bottom: 1px solid #f0f0f0;
    transition: color 0.15s ease;
  }

  .skoda-mobile-nav a.is-active,
  .skoda-mobile-nav a:hover {
    color: #0e3a2f;
    font-weight: 700;
  }

  /* Mobile Accordion for Skoda Cars */
  .skoda-mobile-accordion {
    border-bottom: 1px solid #f0f0f0;
    padding-bottom: 4px;
  }

  .skoda-mobile-accordion-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: transparent;
    border: none;
    color: var(--skoda-dark);
    font-size: 16px;
    font-weight: 600;
    padding: 0 0 8px 0;
    cursor: pointer;
    text-align: left;
    transition: color 0.15s ease;
  }

  .skoda-mobile-accordion-btn.is-active {
    color: #0e3a2f;
    font-weight: 700;
  }

  .skoda-mobile-accordion-btn .header-chevron-icon {
    margin-left: auto;
    transition: transform 0.25s ease;
  }

  .skoda-mobile-accordion-btn[aria-expanded="true"] .header-chevron-icon {
    transform: rotate(180deg);
  }

  .skoda-mobile-submenu {
    display: none;
    flex-direction: column;
    gap: 10px;
    padding: 10px 14px 12px;
    background: #f8fbf9;
    border-radius: 10px;
    margin-bottom: 8px;
  }

  .skoda-mobile-submenu.is-expanded {
    display: flex;
  }

  .skoda-mobile-submenu a {
    font-size: 14.5px !important;
    font-weight: 600 !important;
    color: #27473d !important;
    border-bottom: none !important;
    padding-bottom: 0 !important;
  }

  .skoda-mobile-submenu a.is-active,
  .skoda-mobile-submenu a:hover {
    color: #0e3a2f !important;
    font-weight: 700 !important;
  }

  .skoda-mobile-actions {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    padding-bottom: 2rem;
  }

  .skoda-mobile-actions a {
    text-align: center;
    padding: 12px;
    width: 100%;
    box-sizing: border-box;
    display: inline-flex !important;
    justify-content: center;
  }
}

/* Mobile Screens (<= 768px): Hide top action buttons so header never overflows */
@media (max-width: 768px) {
  :root {
    --header-height: 62px;
  }

  .Header-module__ldgnoG__headerInner {
    padding: 0 1rem;
  }

  .Header-module__ldgnoG__logoImage {
    height: 32px;
    max-width: 165px;
  }

  /* Hide top bar action buttons on mobile (they are prominently available inside the mobile drawer) */
  .Header-module__ldgnoG__headerActions .Header-module__ldgnoG__brochureButton,
  .Header-module__ldgnoG__headerActions .Header-module__ldgnoG__ctaButton {
    display: none !important;
  }

  .Header-module__ldgnoG__headerActions {
    gap: 0;
  }

  .skoda-mobile-drawer {
    padding: 1.25rem 1.25rem 3rem;
  }
}

/* Compact Mobile Screens (<= 480px) */
@media (max-width: 480px) {
  :root {
    --header-height: 60px;
  }

  .Header-module__ldgnoG__headerInner {
    padding: 0 0.85rem;
  }

  .Header-module__ldgnoG__logoImage {
    height: 30px;
    max-width: 155px;
  }

  .skoda-mobile-drawer {
    padding: 1.15rem 1rem 2.5rem;
  }
}

/* Extra Small Screens (<= 360px) */
@media (max-width: 360px) {
  :root {
    --header-height: 58px;
  }

  .Header-module__ldgnoG__headerInner {
    padding: 0 0.65rem;
  }

  .Header-module__ldgnoG__logoImage {
    height: 26px;
    max-width: 135px;
  }

  .skoda-mobile-drawer {
    padding: 1rem 0.85rem 2rem;
  }
}