

.site-header {
  /* background: #333e4a; */
    background: #fbfbfb;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  box-shadow: 0 1px 8px rgba(0, 0, 0, 0.15);
}

.site-header .container {
  max-width: 1500px;
  margin: 0 auto;
  padding-inline: 1rem;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  height: 80px;
}

/* Logo area with slanted white background */
.site-logo {
  height: 100%;
  display: flex;
  align-items: center;
  position: relative;
  padding-right: 30px;
  z-index: 1;
}

.site-logo::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: -50vw; 
  right: -25px; 
  background: #ffffff;
  transform: skewX(-20deg);
  transform-origin: top right;
  z-index: -1;
}

@media (min-width: 992px) {
  .site-logo {
    padding-right: 60px;
  }
}

/* Main nav (desktop) */
.main-nav {
  display: none;
  flex: 1;
  justify-content: center;
}

.main-nav ul {
  display: flex;
  align-items: center;
  gap: 2rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.main-nav ul li a {
  font-family: var(--font-family);
  font-size: 15px;
  font-weight: 700;
  color: var(--automart-white, #14487f);
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.3s;
  position: relative;
  padding-bottom: 5px;
}

.main-nav ul li a:hover,
.main-nav ul li a.active {
  color: var(--red-500);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

/* Offcanvas trigger (desktop only) */
.offcanvas-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 50%;
  background: var(--blue-500-glass);
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
  transition: border-color 0.25s, background 0.25s;
}

.offcanvas-toggle:hover {
  border-color: var(--red-500);
  background: var(--red-500);
}

.offcanvas-toggle img {
  width: 20px;
  height: 20px;
  object-fit: contain;
  display: block;
}

/* Mobile hamburger */
.mobile-nav-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 50%;
  background: var(--blue-500-glass);
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
  transition: border-color 0.25s, background 0.25s;
}

.mobile-nav-toggle:hover {
  border-color: var(--red-500);
  background: var(--red-500);
}

.mobile-nav-toggle img {
  width: 20px;
  height: 20px;
  object-fit: contain;
  display: block;
}

/************************************/
/***  Full-screen mobile panel    ***/
/************************************/
.mobile-menu-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease-in-out, visibility 0.35s ease-in-out;
  z-index: 1039;
}

.mobile-menu-overlay.is-open {
  opacity: 1;
  visibility: visible;
}

.mobile-menu-panel {
  position: fixed;
  top: 0;
  right: 0;
  height: 100%;
  width: 100%;
  max-width: 320px;
  background-color: #14487ff2;
  transform: translateX(100%);
  visibility: hidden;
  transition: transform 0.4s ease-in-out, visibility 0.4s ease-in-out;
  z-index: 1040;
  overflow-y: auto;
}

.mobile-menu-panel.is-open {
  transform: translateX(0);
  visibility: visible;
}

.mobile-menu-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  background: #ffffff;
}

.mobile-menu-close {
  background: var(--red-500);
  border: none;
  border-radius: 50%;
  color: #ffffff;
  font-size: 20px;
  line-height: 1;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  cursor: pointer;
  transition: background 0.2s;
}

.mobile-menu-close:hover {
  background: var(--red-700);
  color: #ffffff;
}

.mobile-menu-nav {
  padding: 8px 0 0;
}

.mobile-menu-item {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-menu-item a {
  display: flex;
  align-items: center;
  padding: 14px 20px;
  color: rgba(255, 255, 255, 0.9);
  font-family: 'Manrope', sans-serif;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  transition: color 0.2s, transform 0.2s;
}

.mobile-menu-item a:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
  transform: translateX(6px);
}

.mobile-menu-contact {
  padding: 32px 20px 40px;
}

.mobile-menu-contact h3 {
  color: #ffffff;
  font-family: 'Manrope', sans-serif;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin: 0 0 14px;
}

.mobile-menu-contact p {
  color: rgba(255, 255, 255, 0.7);
  font-family: 'Manrope', sans-serif;
  font-size: 14px;
  margin-bottom: 8px;
  line-height: 1.5;
}

.mobile-menu-social {
  display: flex;
  gap: 10px;
  margin-top: 18px;
  flex-wrap: wrap;
}

.mobile-menu-social a {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.15);
  display: grid;
  place-items: center;
  color: #cfcbc2;
  text-decoration: none;
  transition: background-color 0.25s, color 0.25s, border-color 0.25s, transform 0.2s;
}

.mobile-menu-social a:hover {
  background: var(--blue-500);
  border-color: var(--blue-500);
  color: #ffffff;
  transform: translateY(-2px);
}

.mobile-menu-social a svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
  stroke: none;
}

.mobile-menu-social a img {
  width: 16px;
  height: 16px;
  object-fit: contain;
  display: block;
}

/************************************/
/***  Off-canvas contact panel    ***/
/************************************/
.offcanvas-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease-in-out, visibility 0.35s ease-in-out;
  z-index: 1030;
}

.offcanvas-overlay.is-open {
  opacity: 1;
  visibility: visible;
}

.offcanvas-panel {
  position: fixed;
  top: 0;
  right: 0;
  height: 100%;
  width: 100%;
  max-width: 370px;
  background-color: #ffffff;
  box-shadow: -8px 0 32px rgba(0, 0, 0, 0.12);
  transform: translateX(100%);
  visibility: hidden;
  transition: transform 0.4s ease-in-out, visibility 0.4s ease-in-out;
  z-index: 1031;
  overflow-y: auto;
}

.offcanvas-panel.is-open {
  transform: translateX(0);
  visibility: visible;
}

.offcanvas-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px 16px;
  border-bottom: 1px solid #ececec;
}

.offcanvas-close {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid #d1d5db;
  background: none;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--blue-600);
  font-size: 15px;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.25s, color 0.25s, border-color 0.25s;
}

.offcanvas-close:hover {
  background: var(--blue-600);
  color: #ffffff;
  border-color: var(--blue-600);
}

.offcanvas-body {
  padding: 26px 24px 40px;
}

.offcanvas-body h3 {
  font-family: 'Manrope', sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: var(--blue-600);
  margin: 0 0 14px;
  line-height: 1.3;
}

.offcanvas-body > p {
  font-family: 'Manrope', sans-serif;
  font-size: 15px;
  line-height: 1.7;
  color: #374151;
  margin: 0 0 28px;
}

.offcanvas-contact-list {
  margin-top: 4px;
}

.offcanvas-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 20px;
}

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

.offcanvas-contact-item .icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  color: var(--blue-500);
  margin-top: 2px;
}

.offcanvas-contact-item p {
  margin: 0;
  font-family: 'Manrope', sans-serif;
  font-size: 14px;
  color: #374151;
  line-height: 1.55;
}

.offcanvas-contact-item p a {
  color: #374151;
  text-decoration: none;
  transition: color 0.2s;
}

.offcanvas-contact-item p a:hover {
  color: var(--blue-500);
}

/************************************/
/***  Responsive breakpoints      ***/
/************************************/
@media (min-width: 1024px) {
  .main-nav {
    display: flex;
  }

  .mobile-nav-toggle {
    display: none;
  }

  .mobile-menu-panel,
  .mobile-menu-overlay {
    display: none !important;
  }
}

@media (max-width: 1023px) {
  .offcanvas-toggle {
    display: none;
  }
}

/************************************/
/***  Off-canvas socials          ***/
/************************************/
.offcanvas-socials {
  padding: 24px 24px 40px;
  border-top: 1px solid #ececec;
}

.offcanvas-socials h3 {
  font-family: 'Manrope', sans-serif;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue-600);
  margin: 0 0 14px;
}

.offcanvas-socials-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.offcanvas-socials-row a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid #e5e7eb;
  display: grid;
  place-items: center;
  color: #374151;
  text-decoration: none;
  transition: background-color 0.25s, color 0.25s, border-color 0.25s, transform 0.2s;
}

.offcanvas-socials-row a:hover {
  background: var(--blue-600);
  border-color: var(--blue-600);
  color: var(--blue-100);
  transform: translateY(-2px);
}

.offcanvas-socials-row a svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
  stroke: none;
}

.offcanvas-socials-row a img {
  width: 16px;
  height: 16px;
  object-fit: contain;
  display: block;
}
