/* ======================================================
   HEADER / MENU
   Auto-Tech Elektronika
   MOBILE FIRST
====================================================== */

:root {
  --menu-h: 92px;
}

.contact-text {
    flex: 1;
    font-size: 1.05rem;
    line-height: 1.4;
    font-weight: 100;
}

/* ==============================
   WRAPPER
============================== */

.site-header {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
  background: #ffffff;
  border-bottom: 1px solid #e5e7eb;
  z-index: 1000;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.10);
  transition: box-shadow 0.25s ease;
}

.site-header.is-shrink {
  --menu-h: 68px;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  transition: padding 0.25s ease;
}

/* ==============================
   LOGO
============================== */

.header-logo img {
  height: 68px;
  display: block;
  transition: height 0.25s ease;
}

/* ==============================
   HAMBURGER (MOBILE)
============================== */

.nav-toggle {
  display: none;
}

.nav-burger {
  display: flex;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
}

.nav-burger span {
  width: 26px;
  height: 2px;
  background-color: #111111;
  display: block;
}

/* ==============================
   MENU – MOBILE
============================== */

.header-nav {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  background: #ffffff;
  display: none;
  border-top: 1px solid #e5e7eb;
}

.header-nav ul {
  list-style: none;
  margin: 0;
  padding: 0px 0;
}

.header-nav li {
  padding: 12px 16px;
}

.header-nav a {
  text-decoration: none;
  color: #111111;
  font-weight: 600;
  font-size: 0.95rem;
}

/* OTWARCIE MENU */
.nav-toggle:checked + .nav-burger + .header-nav {
  display: block;
}

	.header-nav li {
	  padding: 0;
	}

	.header-nav a {
	  display: block;
	  width: 100%;
	  padding: 10px 16px;
	  text-decoration: none;
	  color: #111111;
	  font-weight: 600;
	  font-size: 0.95rem;
	}

	/* ======================================================
	   HEADER — CONTACT ITEM (NADPISANIE TŁA)
	====================================================== */

	.header-nav a.contact-item {
	  background: rgb(125 133 152 / 10%);
	}

.header-nav ul > li:last-child > a.contact-item {
  display: inline-flex;
  align-items: center;
  vertical-align: middle; /* 🔑 KLUCZ */
}

.header-nav ul > li:last-child .contact-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.header-nav ul > li:last-child .contact-icon svg {
  display: block;
  position: relative;
  top: -1px; /* 🔑 optyczne wyrównanie SVG */
}

.header-nav .contact-text {
  font-size: 1rem;
  line-height: 1.2;
  letter-spacing: 0.02em;
  font-weight: 500;
}

/* ======================================================
   SUBMENU — MOBILE / TABLET
====================================================== */

.header-nav .submenu {
  padding-left: 20px;       /* 🔑 odsunięcie od krawędzi */
  margin-top: 4px;
}

li a {
  padding: 10px 16px;
  font-size: 0.92rem;
  font-weight: 500;
  color: #1f2937;           /* slate-800 */
}

.nav-trigger {
  pointer-events: none; /* 🔑 NIE KLIKA SIĘ */
  cursor: default;
}

/* ======================================================
   TABLET ≥ 768px
====================================================== */

@media (min-width: 768px) {

  .nav-burger {
    display: flex;
  }

  .header-nav {
    display: none;
    position: absolute;
  }

  .header-inner {
    padding: 8px 24px;
  }



}

/* ======================================================
   DESKTOP ≥ 1280px
====================================================== */

@media (min-width: 1280px) {

  .nav-burger {
    display: none;
  }

  .header-inner {
    max-width: 1280px;
    margin: 0 auto;
  }

  .header-nav {
    position: static;
    display: block;
    width: auto;
    border-top: none;
  }

.header-nav .submenu {
  padding-left: 20px;       /* 🔑 odsunięcie od krawędzi */
  margin-top: 0px;
}

  .header-nav ul {
    display: flex;
    align-items: center;
    gap: 32px;
    padding: 0;
  }

  .header-nav ul {
    gap: 48px;
  }

  .header-nav a {
    letter-spacing: 0.04em;
  }
  
  
}


/* ======================================================
   MENU — BORDER + RADIUS (INTERAKCJA)
====================================================== */

.header-nav a {
  position: relative;
  border-radius: 10px;
  border: 1px solid transparent;
  transition:
    background-color 0.15s ease,
    border-color 0.15s ease,
    transform 0.08s ease;
}





/* HOVER — tylko tam gdzie hover ma sens */
@media (hover: hover) {
  .header-nav a:hover {
    background: rgb(0 0 0 / 3%);
    border-color: rgb(0 0 0 / 8%);
	color: rgb(0 0 0 / 55%);
  }
}

/* ACTIVE — klik / dotyk */
.header-nav a:active {
  background: rgb(0 0 0 / 7%);
  border-color: rgb(0 0 0 / 14%);
  transform: scale(0.98);
}

/* FOCUS — dostępność */
.header-nav a:focus-visible {
  outline: none;
  border-color: rgb(59 130 246 / 45%);
  background: rgb(59 130 246 / 6%);
}

/* ======================================================
   HAMBURGER — BORDER + RADIUS
====================================================== */

.nav-burger {
  padding: 6px;
  border-radius: 10px;
  border: 1px solid transparent;
  transition:
    background-color 0.15s ease,
    border-color 0.15s ease,
    transform 0.08s ease;
}

.nav-burger span {
  display: block;
  width: 32px;
  height: 3px;

  background-color: var(--icon-primary);
  border-radius: 2px;

  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-burger:active {
  background: rgb(0 0 0 / 6%);
  border-color: rgb(0 0 0 / 14%);
  transform: scale(0.95);
}

/* ======================================================
   MENU — LINK AKTYWNY (PODKREŚLENIE)
====================================================== */

.header-nav a {
  overflow: hidden;
}

.header-nav a.is-active {
  position: relative;
}

/* ==============================
   MOBILE / TABLET — krótki akcent
============================== */
.header-nav a.is-active::after {
  content: "";
  position: absolute;
  left: calc(16px + 0.05em); /* optyczne wejście pod tekst */
  bottom: 4px;
  width: 1.8em;             /* ≈ 3 litery */
  height: 2px;
  background: rgb(59 130 246 / 55%);
  border-radius: 2px;
}


/* ==============================
   DESKTOP — pełniejsze podkreślenie
============================== */
@media (min-width: 1280px) {
  .header-nav a.is-active::after {
    left: 16px;
    width: calc(100% - 32px); /* 🔑 ZAMKNIĘTE */
    right: auto;
  }
}

/* ======================================================
   MENU — SUBMENU SERWIS (DESKTOP FIX)
   Auto-Tech Elektronika
====================================================== */

@media (min-width: 1280px) {

  .header-nav ul {
    gap: 24px;
  }

  .header-nav li.has-submenu {
    position: relative;
  }

  .header-nav .submenu {
    display: none;

    position: absolute;
    top: 100%;                /* 🔑 ZERO PRZERWY */
    left: 0;

    min-width: 260px;

    /* 🔑 WIZUALNA PRZERWA ROBIONA OD ŚRODKA */
    padding: 14px 0 10px;

    background: #ffffff;
    border-radius: 14px;
    border: 1px solid #e5e7eb;

    box-shadow: 0 14px 28px rgba(0,0,0,0.16);

    z-index: 500;
  }

  /* 🔑 hover TRWAŁY */
  .header-nav li.has-submenu:hover > .submenu {
    display: block;
  }

  .header-nav .submenu li {
    padding: 0;
  }

  .header-nav .submenu a {
    display: block;
    padding: 10px 16px;

    color: #0f172a;
    font-size: 0.92rem;
    font-weight: 500;
    letter-spacing: 0.02em;

    border-radius: 10px;
  }

  .header-nav .submenu a:hover {
    background: #f1f5f9;
  }
}

/* menu przyklejone */
.site-header.is-shrink {
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.14);
}

.site-header.is-shrink .header-inner {
  padding-top: 6px;
  padding-bottom: 6px;
}

.site-header.is-shrink .header-logo img {
  height: 52px;
}

@media (min-width: 1280px) {
  .site-header.is-shrink .header-inner {
    padding-top: 8px;
    padding-bottom: 8px;
  }

  .site-header.is-shrink .header-logo img {
    height: 56px;
  }
}