/*
Theme Name: Pulit Redesign
Theme URI: https://pulit-bueroservice.de/
Author: prihowarnait
Author URI: https://prihowarnait.pl
Description: Custom premium WordPress theme for Pulit Büroservice.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.2
Text Domain: pulit-redesign
*/

.google-translate-element,
.goog-te-banner-frame,
.skiptranslate {
  display: none !important;
}

html {
  max-width: 100%;
  overflow-x: hidden;
  scroll-padding-top: 132px;
}

body {
  width: 100%;
  max-width: 100%;
  padding-top: 116px;
  overflow-x: hidden;
  top: 0 !important;
}

.site-header {
  position: fixed;
  top: 0 !important;
  left: 0;
  right: 0;
  z-index: 9990;
  width: 100%;
  padding: 10px clamp(12px, 2.5vw, 34px);
  border-bottom: 1px solid rgba(25, 23, 20, .08);
  background: rgba(244, 245, 239, .9);
  backdrop-filter: blur(22px);
  box-shadow: 0 16px 44px rgba(23, 20, 16, .08);
}

body.admin-bar {
  padding-top: 148px;
}

body.admin-bar .site-header {
  top: 32px !important;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  padding: 0 4px 9px;
  color: #626761;
  font-size: 12px;
  font-weight: 800;
}

.topbar div {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.topbar b,
.topbar a {
  color: #111;
  font-weight: 900;
}

.main-nav {
  position: relative;
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr) auto;
  align-items: center;
  gap: 28px;
  padding: 11px 14px;
  border: 1px solid rgba(25, 23, 20, .1);
  border-radius: 8px;
  background: rgba(255, 255, 255, .92);
}

.brand img {
  width: 148px;
}

.nav-center {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 4px;
}

.nav-link,
.mega-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 13px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: #393d39;
  font: inherit;
  font-size: 14px;
  font-weight: 900;
  cursor: pointer;
  white-space: nowrap;
}

.nav-link:hover,
.mega-toggle:hover,
.mega-wrap:focus-within .mega-toggle,
.mega-wrap:hover .mega-toggle {
  color: #111;
  background: #f1f2ea;
  border-color: rgba(25, 23, 20, .1);
}

.chevron {
  width: 8px;
  height: 8px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
}

.nav-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 10px;
}

.lang-switch {
  display: inline-flex;
  gap: 2px;
  padding: 3px;
  border: 1px solid rgba(25, 23, 20, .12);
  border-radius: 8px;
  background: #f2f3ec;
}

.lang-switch button {
  min-width: 42px;
  min-height: 34px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #111;
  font: inherit;
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
}

.lang-switch button:hover,
.lang-switch button:focus-visible {
  background: #111;
  color: #fff;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-weight: 900;
  white-space: nowrap;
  text-decoration: none;
}

.btn-primary {
  color: #111;
  background: linear-gradient(135deg, #f28c20, #ffaf45);
  box-shadow: 0 16px 36px rgba(242, 140, 32, .24);
}

.site-header .btn-primary {
  color: #fff;
  background: #111;
  box-shadow: none;
}

.mega-wrap {
  position: relative;
}

.mega-panel {
  position: absolute;
  top: calc(100% + 10px);
  left: 14px;
  right: 14px;
  width: min(880px, calc(100vw - 56px));
  transform: translateY(10px);
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 1px;
  overflow: hidden;
  border: 1px solid rgba(25, 23, 20, .12);
  border-radius: 8px;
  background: rgba(255, 255, 255, .98);
  box-shadow: 0 28px 80px rgba(23, 20, 16, .18);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: .18s ease;
}

.mega-wrap:hover .mega-panel,
.mega-wrap:focus-within .mega-panel {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

.mega-services,
.mega-aside {
  padding: 22px;
  background: #fff;
}

.mega-kicker {
  display: block;
  margin-bottom: 14px;
  color: #7fa200;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

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

.mega-card {
  min-height: 126px;
  padding: 17px;
  border: 1px solid rgba(25, 23, 20, .1);
  border-radius: 8px;
  background: #f7f7f2;
  text-decoration: none;
}

.mega-card b {
  display: block;
  margin-bottom: 9px;
  color: #111;
  font-size: 15px;
}

.mega-card p {
  margin: 0;
  color: #626761;
  font-size: 13px;
  line-height: 1.48;
}

.mega-aside {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: #fff;
  background: linear-gradient(135deg, #17110d, #2a2118);
}

.mega-aside h3 {
  margin: 0 0 10px;
  font-size: 28px;
  line-height: 1.05;
}

.mega-aside p {
  max-width: 320px;
  margin: 0;
  color: rgba(255,255,255,.72);
  line-height: 1.5;
}

.mobile-menu {
  display: none;
  min-height: 42px;
  padding: 0 13px;
  border: 1px solid rgba(25, 23, 20, .12);
  border-radius: 8px;
  background: #111;
  color: #fff;
  font-weight: 900;
}

.pulit-hp {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

.pulit-form-message {
  margin: 0 0 16px;
  padding: 13px 15px;
  border-radius: 8px;
  font-weight: 850;
  line-height: 1.4;
}

.pulit-form-message.success {
  background: rgba(167, 213, 0, .18);
  color: #314000;
}

.pulit-form-message.error {
  background: rgba(242, 140, 32, .18);
  color: #6b2600;
}

html.pulit-modal-open,
html.pulit-modal-open body {
  overflow: hidden;
}

.pulit-modal[aria-hidden="true"] {
  display: none;
}

.pulit-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  padding: 22px;
}

.pulit-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 9, 9, .66);
  backdrop-filter: blur(8px);
}

.pulit-modal-panel {
  position: relative;
  z-index: 1;
  width: min(680px, 100%);
  max-height: calc(100vh - 44px);
  overflow: auto;
  padding: clamp(24px, 4vw, 38px);
  border: 1px solid rgba(25, 23, 20, .14);
  border-radius: 8px;
  background: #f7f7f2;
  color: #111;
  box-shadow: 0 34px 90px rgba(0, 0, 0, .42);
}

.pulit-modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(25, 23, 20, .12);
  border-radius: 8px;
  background: #fff;
  color: #111;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

.pulit-modal-kicker {
  display: block;
  margin: 0 48px 10px 0;
  color: #7fa200;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.pulit-modal-panel h2 {
  max-width: 580px;
  margin: 0 42px 12px 0;
  font-size: clamp(30px, 5vw, 48px);
  line-height: .98;
}

.pulit-modal-panel p {
  max-width: 600px;
  margin: 0 0 22px;
  color: #555b56;
  font-size: 16px;
  line-height: 1.58;
}

.pulit-modal .contact-form {
  display: grid;
  gap: 14px;
}

.pulit-modal .contact-form label {
  display: grid;
  gap: 7px;
  color: #242824;
  font-size: 13px;
  font-weight: 900;
}

.pulit-modal .contact-form input,
.pulit-modal .contact-form textarea,
.pulit-modal .contact-form select {
  width: 100%;
  min-height: 48px;
  padding: 12px 13px;
  border: 1px solid rgba(25, 23, 20, .16);
  border-radius: 8px;
  background: #fff;
  color: #111;
  font: inherit;
}

.pulit-modal .contact-form textarea {
  min-height: 124px;
  resize: vertical;
}

.pulit-modal .contact-form button {
  width: 100%;
  border: 0;
  cursor: pointer;
}

.pulit-footer {
  color: rgba(255,255,255,.72);
  background:
    linear-gradient(120deg, rgba(8,9,9,.72), rgba(8,9,9,.9)),
    url("assets/berlin1.jpg") center / cover;
}

.pulit-footer-main {
  display: grid;
  grid-template-columns: minmax(220px, 1.25fr) repeat(4, minmax(150px, .8fr));
  gap: 30px;
  padding: clamp(42px, 6vw, 76px) clamp(18px, 5vw, 72px);
}

.pulit-footer img {
  width: 150px;
  height: auto;
  margin-bottom: 20px;
}

.pulit-footer h3 {
  margin: 0 0 16px;
  color: #a7d500;
  font-size: 15px;
  line-height: 1.2;
}

.pulit-footer p,
.pulit-footer a {
  display: block;
  margin: 0 0 10px;
  color: rgba(255,255,255,.78);
  font-size: 14px;
  line-height: 1.55;
  font-weight: 750;
  text-decoration: none;
}

.pulit-footer a:hover,
.pulit-footer a:focus-visible {
  color: #fff;
}

.pulit-footer-credit {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 20px clamp(18px, 5vw, 72px);
  border-top: 1px solid rgba(255,255,255,.13);
  background: rgba(8,9,9,.78);
  color: rgba(255,255,255,.62);
  font-size: 13px;
  font-weight: 850;
}

.pulit-footer-credit a {
  display: inline-flex;
  margin: 0;
  color: #fff;
  font-size: 13px;
}

@media (max-width: 1140px) {
  .main-nav {
    grid-template-columns: 160px 1fr auto;
  }

  .nav-center {
    display: none;
  }

  .site-header.is-menu-open .nav-center {
    position: absolute;
    top: calc(100% + 8px);
    left: 12px;
    right: 12px;
    display: grid;
    justify-content: stretch;
    gap: 6px;
    padding: 12px;
    border: 1px solid rgba(25, 23, 20, .12);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 22px 60px rgba(23, 20, 16, .18);
  }

  .site-header.is-menu-open .nav-link,
  .site-header.is-menu-open .mega-toggle {
    justify-content: space-between;
    width: 100%;
  }

  .site-header.is-menu-open .mega-panel {
    left: 0;
    right: 0;
    width: 100%;
  }

  .mobile-menu {
    display: inline-flex;
    align-items: center;
  }

  .pulit-footer-main {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  html,
  body {
    overflow-x: hidden;
  }

  html {
    scroll-padding-top: 96px;
  }

  body {
    padding-top: 86px;
  }

  body.admin-bar {
    padding-top: 132px;
  }

  body.admin-bar .site-header {
    top: 46px !important;
  }

  .site-header {
    padding: 8px 8px 10px;
  }

  .topbar {
    display: none;
  }

  .main-nav {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
    width: 100%;
    max-width: 100%;
    padding: 9px 10px;
  }

  .brand {
    min-width: 0;
  }

  .brand img {
    width: clamp(128px, 42vw, 168px);
  }

  .mobile-menu {
    min-height: 44px;
    padding: 0 14px;
    font-size: 15px;
  }

  .site-header.is-menu-open .nav-center {
    left: 8px;
    right: 8px;
    max-width: calc(100vw - 16px);
    max-height: calc(100vh - 132px);
    overflow-y: auto;
  }

  .site-header.is-menu-open .mega-panel {
    position: static;
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
    max-width: 100%;
    margin-top: 6px;
    transform: none;
    box-shadow: none;
  }

  .mega-grid {
    grid-template-columns: 1fr;
  }

  .mega-services,
  .mega-aside {
    padding: 16px;
  }

  .mega-card {
    min-height: auto;
  }

  .site-header.is-menu-open .nav-link,
  .site-header.is-menu-open .mega-toggle,
  .mega-card b,
  .mega-card p {
    white-space: normal;
    overflow-wrap: anywhere;
  }

  .mega-aside .btn-primary {
    width: 100%;
    white-space: normal;
    text-align: center;
  }

  .btn {
    max-width: 100%;
    white-space: normal;
    text-align: center;
    line-height: 1.15;
  }

  .nav-actions .btn-primary,
  .lang-switch {
    display: none;
  }

  .pulit-footer-main {
    grid-template-columns: 1fr;
  }

  .pulit-footer-credit {
    flex-direction: column;
  }

  .pulit-modal {
    padding: 12px;
    place-items: end center;
  }

  .pulit-modal-panel {
    max-height: calc(100vh - 24px);
    padding: 24px 18px 18px;
  }

  .pulit-modal-panel h2 {
    margin-right: 42px;
    font-size: 34px;
  }
}
