/*
Theme Name: Divi Child
Theme URI:  https://www.wpserveur.net
Author:     gnstudio
Author URI: https://gnstudio.pl/
Template:   Divi
Version:    1.0
License:    GNU General Public License v2 or later
*/

.button-amber {
  border: 1px solid #d4830a;
  padding: 0.5em 1em;
  border-radius: 5px;
}

:root {
  /* SKP + Bosch Serwis — Lokalizacja 1 */
  --color-skp-bg: #ffffff;
  --color-skp-blue: #4c90cd;
  --color-skp-red: #e20015;
  --color-skp-red-hover: #b5000f;
  --color-text-dark: #1a2e42;

  /* OKP + Serwis Pojazdów — Lokalizacja 2 */
  --color-okp-bg: #ffffff;
  --color-okp-navy: #1a2e42;
  --color-okp-amber: #ef9f27;
  --color-okp-amber-hover: #ba7517;
  --color-okp-amber-text: #412402;

  --amber: #d4830a;
  --amber-l: #f5a623;
  --bosch-navy: #4c90cd;
  --bosch-blue: #006ead;
  --bosch-blue-l: #4c90cd;
  --black: #000000;
  --dark: #111827;
  --navy: #1a2035;
  --navy2: #232d45;
  --text: #111827;
  --muted: #6b7280;
  --light: #f6f7f9;
  --border: #e2e5ea;
  --white: #ffffff;
  --radius: 12px;
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

@media screen and (max-width: 981px) {
  #main-menu .et_pb_button_module_wrapper {
    display: none;
  }
}

#blog-home article {
  display: flex;
  flex-direction: column;
}

#blog-home .et_pb_image_container {
  margin-bottom: 0;
}

#blog-home .entry-title {
  order: 1;
}

#blog-home .post-meta {
  display: inline-block;
  width: fit-content;
  gap: 5px;
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 20px;
  background: #e3f0fb;
  color: #0c447c;
  order: 0;
}

#blog-home .post-content {
  order: 2;
}

.et_pb_button:after,
.et_pb_button:before {
  font-size: 16px;
}

.box-text h4 {
  padding-bottom: 5px;
}

#info-block:hover .et_pb_icon {
  background-color: #e3f0fb;
}

#info-block-okp:hover .et_pb_icon {
  background-color: #ffffff1a;
}

#info-block-okp:hover h4 {
  color: #ffffff !important;
}

#info-block-okp:hover p {
  color: rgba(255, 255, 255, 0.65) !important;
}

div#info-block-okp:hover a.button-amb {
  color: #ef9f27 !important;
}

/* ────────────────────────────────────────
       SPLIT HERO
    ──────────────────────────────────────── */

.hero {
  display: flex;
  height: calc(100vh - 102px);
  min-height: 520px;
  overflow: hidden;
  position: relative;
}

.hero-panel {
  flex: 1;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 52px 52px 60px;
  cursor: pointer;
  transition: flex 0.55s var(--ease);
  overflow: hidden;
}

/* Default: both panels equal. On hover of container: shrink inactive */
.hero:hover .hero-panel {
  flex: 0.38;
}
.hero:hover .hero-panel:hover {
  flex: 0.62;
}

/* ── Panel LEFT (SKP + Bosch) ── */
.hero-panel.left {
  background: var(--color-skp-bg);
}
.hero-panel.left .panel-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(160deg, rgba(76, 144, 205, 0.06) 0%, transparent 50%),
    radial-gradient(
      ellipse 80% 60% at 0% 100%,
      rgba(76, 144, 205, 0.05) 0%,
      transparent 60%
    );
}
/* Decorative grid */
.hero-panel.left::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
}

/* ── Panel RIGHT (OKP + Serwis) ── */
.hero-panel.right {
  background: var(--color-okp-navy);
}
.hero-panel.right .panel-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse 70% 50% at 100% 0%,
    rgba(239, 159, 39, 0.1) 0%,
    transparent 60%
  );
}

/* ── Panel content ── */
.panel-content {
  position: relative;
  z-index: 2;
}

.panel-tag {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 12px;
  border-radius: 100px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 20px;
}
.left .panel-tag {
  background: rgba(76, 144, 205, 0.08);
  border: 1px solid rgba(76, 144, 205, 0.25);
  color: var(--color-skp-blue);
}
.right .panel-tag {
  background: rgba(239, 159, 39, 0.2);
  border: 1px solid rgba(239, 159, 39, 0.4);
  color: var(--color-okp-amber);
}

.panel-title {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 10px;
}
.left .panel-title {
  color: var(--color-skp-blue);
}
.right .panel-title {
  color: var(--white);
}

.panel-subtitle {
  font-size: clamp(0.85rem, 1.5vw, 1.05rem);
  font-weight: 500;
  margin-bottom: 28px;
  line-height: 1.5;
}
.left .panel-subtitle {
  color: var(--color-text-dark);
}
.right .panel-subtitle {
  color: rgba(255, 255, 255, 0.6);
}

.panel-services {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 36px;
}
.panel-service {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.83rem;
  font-weight: 500;
}
.left .panel-service {
  color: var(--color-text-dark);
}
.right .panel-service {
  color: rgba(255, 255, 255, 0.75);
}
.service-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--amber);
  flex-shrink: 0;
}
.left .service-dot {
  background: var(--color-skp-blue);
}
.right .service-dot {
  background: var(--color-okp-amber);
}

.panel-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: 9px;
  font-size: 0.88rem;
  font-weight: 700;
  transition: all 0.2s;
  align-self: flex-start;
  cursor: pointer;
}
.left .panel-btn {
  background: var(--color-skp-red);
  color: #fff;
}
.left .panel-btn:hover {
  background: var(--color-skp-red-hover);
}
.right .panel-btn {
  background: var(--color-okp-amber);
  color: var(--color-okp-amber-text);
}
.right .panel-btn:hover {
  background: var(--color-okp-amber-hover);
}
.btn-arrow {
  font-size: 1rem;
  transition: transform 0.2s;
  display: inline-block;
}
.panel-btn:hover .btn-arrow {
  transform: translateX(3px);
}

/* Panel number / accent corner */
.panel-num {
  position: absolute;
  top: 36px;
  right: 40px;
  font-size: 6rem;
  font-weight: 900;
  letter-spacing: -0.05em;
  line-height: 1;
  pointer-events: none;
  z-index: 1;
  transition: opacity 0.3s;
}
.left .panel-num {
  color: rgba(76, 144, 205, 0.07);
}
.right .panel-num {
  color: rgba(255, 255, 255, 0.04);
}
.hero-panel:hover .panel-num {
  opacity: 0;
}

/* Separator between panels — amber accent line */
.hero-panel.right {
  border-left: 2px solid var(--color-okp-amber);
}

/* Address strip at bottom of each panel */
.panel-address {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 12px 52px;
  font-size: 0.72rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 6px;
  border-top: 1px solid;
  opacity: 0.55;
  transition: opacity 0.2s;
}
.hero-panel:hover .panel-address {
  opacity: 1;
}
.left .panel-address {
  color: var(--muted);
  border-color: var(--border);
}
.right .panel-address {
  color: rgba(255, 255, 255, 0.55);
  border-color: rgba(255, 255, 255, 0.12);
}

/* Force full-width inside Divi Code module wrappers */
.et_pb_code_inner > .hero {
  width: 100%;
  max-width: none;
  margin: 0;
}

/* ────────────────────────────────────────
       RESPONSIVE — MOBILE
    ──────────────────────────────────────── */
@media (max-width: 640px) {
  /* Hero — stackowany pionowo */
  .hero {
    flex-direction: column;
    height: auto;
  }
  .hero-panel {
    flex: unset !important;
    min-height: 0;
    height: auto;
    padding: 44px 24px 56px;
  }
  .hero:hover .hero-panel {
    flex: unset;
  }

  /* Brak podświetlania hover na touch */
  .hero:hover .hero-panel,
  .hero:hover .hero-panel:hover {
    flex: unset;
  }

  /* Separator między panelami na mobile — poziomy */
  .hero-panel.right {
    border-left: none;
    border-top: 2px solid var(--color-okp-amber);
  }

  .panel-num {
    display: none;
  }

  .panel-title {
    font-size: 2rem;
  }

  .panel-services {
    margin-bottom: 28px;
  }

  .panel-address {
    padding: 10px 24px;
    position: static;
    margin-top: 24px;
    border-top: 1px solid;
    opacity: 0.6;
  }
  .left .panel-address {
    border-color: var(--border);
  }
  .right .panel-address {
    border-color: rgba(255, 255, 255, 0.15);
  }
}

/* ────────────────────────────────────────
       RESPONSIVE — VERY SMALL (<380px)
    ──────────────────────────────────────── */
@media (max-width: 380px) {
  .panel-title {
    font-size: 1.7rem;
  }
  .hero-panel {
    padding: 36px 20px 48px;
  }
}
