/*
Theme Name: PetroComp Modern
Theme URI: https://www.petrocomp.sk/
Author: PetroComp
Author URI: https://www.petrocomp.sk/
Description: Ľahká moderná WordPress téma pre PetroComp s editovateľným menu, logom, domovskou stránkou a kontaktmi. Bez závislosti od page buildera.
Version: 1.3.2
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: petrocomp-modern
License: GPL-2.0-or-later
*/

/* WordPress-specific additions. The main visual system is in assets/globals.css. */

body {
  overflow-x: hidden;
}

.petrocomp-fullwidth-template,
.petrocomp-fullwidth-template > .pci-page,
.petrocomp-about-template,
.petrocomp-about-template > .pca-page,
.petrocomp-order-template,
.petrocomp-order-template > .pcm-order {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
}

.petrocomp-fullwidth-template > .pci-page,
.petrocomp-about-template > .pca-page,
.petrocomp-order-template > .pcm-order {
  margin-left: 0 !important;
}

.petrocomp-fullwidth-template .pci-topbar,
.petrocomp-fullwidth-template .pci-nav,
.petrocomp-fullwidth-template .pci-footer {
  display: none !important;
}

.petrocomp-fullwidth-template .pci-hero-inner {
  padding-top: 105px;
  padding-bottom: 105px;
}

.petrocomp-order-template .pcm-topbar,
.petrocomp-order-template .pcm-header {
  display: none !important;
}

body.admin-bar .site-header {
  top: 66px;
}

.site-header.site-header-solid {
  position: relative;
  top: 0;
  background: #061426;
}

body.admin-bar .site-header.site-header-solid {
  top: 0;
}

.brand {
  min-width: max-content;
}

.brand-word {
  color: #fff !important;
  font-size: 30px;
  font-weight: 400;
  letter-spacing: -0.055em;
  line-height: 1;
}

.brand-word strong {
  color: #35bdff !important;
  font-weight: 900;
}

.service-tech-icons {
  display: flex;
  align-items: center;
  margin-bottom: 48px;
}

.service-tech-icons span {
  width: 47px;
  height: 47px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 14px;
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12);
  backdrop-filter: blur(8px);
}

.service-tech-icons span + span {
  margin-left: -8px;
}

.service-tech-icons span:nth-child(2) {
  color: #8fd7ff;
  transform: translateY(6px);
}

.service-tech-icons span:nth-child(3) {
  color: #52e6ff;
}

.service-tech-icons svg {
  width: 22px;
  height: 22px;
}

.petrocomp-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 30px;
  padding: 5px 12px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.78);
  background: rgba(255, 255, 255, 0.06);
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.02em;
  white-space: nowrap;
  transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.petrocomp-status i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.08);
}

.petrocomp-status.is-online {
  color: #74efb2;
  border-color: rgba(43, 210, 129, 0.38);
  background: rgba(15, 157, 91, 0.17);
}

.petrocomp-status.is-online i {
  box-shadow: 0 0 0 3px rgba(43, 210, 129, 0.14), 0 0 10px rgba(43, 210, 129, 0.72);
}

.petrocomp-status.is-offline {
  color: #ff8e96;
  border-color: rgba(255, 91, 103, 0.38);
  background: rgba(207, 46, 58, 0.17);
}

.petrocomp-status.is-offline i {
  box-shadow: 0 0 0 3px rgba(255, 91, 103, 0.13);
}

.nav-links {
  min-width: 0;
}

.nav-menu,
.nav-menu ul,
.footer-menu {
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-menu li a {
  display: block;
  margin: 0 0 13px;
  color: rgba(255, 255, 255, 0.62);
  font-size: 12px;
  transition: color 0.2s ease;
}

.footer-menu li a:hover,
.footer-menu .current-menu-item > a {
  color: #fff;
}

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

.nav-menu > li {
  position: relative;
}

.nav-menu a {
  display: block;
  color: rgba(255, 255, 255, 0.75);
  font-size: 14px;
  font-weight: 650;
  transition: color 0.2s ease;
}

.nav-menu > li > a {
  padding: 28px 0;
}

.nav-menu a:hover,
.nav-menu .current-menu-item > a,
.nav-menu .current-menu-ancestor > a {
  color: #fff;
}

.nav-menu .sub-menu {
  position: absolute;
  top: calc(100% - 10px);
  left: -18px;
  z-index: 20;
  min-width: 220px;
  padding: 10px;
  visibility: hidden;
  opacity: 0;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 14px;
  background: rgba(5, 20, 39, 0.98);
  box-shadow: 0 22px 55px rgba(0, 0, 0, 0.32);
  transform: translateY(-8px);
  transition: 0.2s ease;
}

.nav-menu .sub-menu a {
  padding: 11px 12px;
  border-radius: 8px;
}

.nav-menu .sub-menu a:hover {
  background: rgba(255, 255, 255, 0.08);
}

.nav-menu li:hover > .sub-menu,
.nav-menu li:focus-within > .sub-menu {
  visibility: visible;
  opacity: 1;
  transform: translateY(0);
}

.menu-button {
  color: #fff;
  cursor: pointer;
}

.menu-button svg {
  width: 22px;
  height: 22px;
}

.menu-button .menu-close-icon {
  display: none;
}

.menu-button[aria-expanded="true"] .menu-open-icon {
  display: none;
}

.menu-button[aria-expanded="true"] .menu-close-icon {
  display: block;
}

.hero-image {
  object-position: var(--petrocomp-hero-position, 50%) center;
}

.pricing-group[hidden],
.availability-result[hidden] {
  display: none !important;
}

.pricing-group {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.faq button {
  cursor: pointer;
}

.faq button > span:last-child {
  flex: 0 0 auto;
  color: #8492a5;
  font-size: 20px;
  transition: transform 0.25s ease;
}

.faq.open button > span:last-child {
  transform: rotate(180deg);
}

.availability-result a {
  white-space: nowrap;
}

.editor-content-section {
  padding: 80px 0;
  border-top: 1px solid #e3edf5;
  background: #fff;
}

.editor-content {
  max-width: 850px;
  margin: 0 auto;
  color: #293b53;
  font-size: 17px;
  line-height: 1.75;
}

.editor-content > *:first-child {
  margin-top: 0;
}

.editor-content > *:last-child {
  margin-bottom: 0;
}

.editor-content h2,
.editor-content h3 {
  color: #0b1930;
  letter-spacing: -0.035em;
}

.editor-content a {
  color: #0878f9;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.page-main {
  min-height: 60vh;
  padding: 90px 0;
  background: #f4f8fc;
}

.page-card {
  padding: clamp(28px, 5vw, 64px);
  border: 1px solid #dce7f0;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 24px 70px rgba(8, 35, 74, 0.1);
}

.page-card h1 {
  margin: 0 0 28px;
  color: #0b1930;
  font-size: clamp(38px, 5vw, 64px);
  line-height: 1.02;
  letter-spacing: -0.055em;
}

.page-card .entry-content {
  color: #405069;
  font-size: 17px;
  line-height: 1.75;
}

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 1050px) {
  .nav-menu {
    gap: 18px;
  }
}

@media (max-width: 780px) {
  .petrocomp-fullwidth-template .pci-hero-inner {
    min-height: 850px;
    padding-top: 78px;
    padding-bottom: 95px;
  }

  .topline {
    display: block;
    height: 38px;
  }

  .topline-inner {
    height: 38px;
    justify-content: center;
  }

  .topline-inner > span:first-child,
  .topline-hours,
  .topline-webmail {
    display: none;
  }

  .topline-inner > .topline-contact {
    width: 100%;
    justify-content: space-between;
    gap: 12px;
  }

  .site-header {
    top: 38px;
  }

  body.admin-bar .site-header {
    top: 84px;
  }

  body.admin-bar .site-header.site-header-solid {
    top: 0;
  }

  .brand-word {
    font-size: 26px;
  }

  .nav-links {
    display: block;
  }

  .nav-menu {
    display: grid;
    justify-content: stretch;
    gap: 0;
  }

  .nav-menu > li > a,
  .nav-menu .sub-menu a {
    padding: 13px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  .nav-menu .sub-menu {
    position: static;
    min-width: 0;
    padding: 0 0 0 13px;
    visibility: visible;
    opacity: 1;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    transform: none;
  }

  .pricing-group {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .brand-word {
    font-size: 24px;
  }
}
