/* ==========================================================================
   RAPPYN MEDIA — HERO SECTION
   Plik: hero.css
   Wklej do: motyw/assets/css/hero.css (albo dołącz do głównego style.css)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Inter:wght@400;500;600;700&family=Rajdhani:wght@600;700&display=swap');

.rm-hero {
  min-height: 100vh;
  background: #060606;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  font-family: 'Inter', sans-serif;
  padding: 60px 24px;
}

.rm-hero canvas.rm-storm {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}

.rm-hero .rm-bg-logo {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  z-index: 2;
}

.rm-hero .rm-bg-logo img {
  width: min(3400px, 450vw);
  max-width: none;
  opacity: 0.06;
  filter: grayscale(15%);
  user-select: none;
  -webkit-user-drag: none;
}

@media (max-width: 640px) {
  .rm-hero .rm-bg-logo img {
    width: 140vw;
    opacity: 0.18;
  }
}

.rm-hero .rm-content {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.rm-hero .rm-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(8, 1, 1, 0.8);
  border: 1px solid rgba(150, 8, 8, 0.55);
  color: #b91c1c;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 3.5px;
  text-transform: uppercase;
  padding: 7px 18px;
  border-radius: 3px;
  margin-bottom: 32px;
}

.rm-hero .rm-badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #dc2626;
  animation: rm-bdot 2s infinite;
}

@keyframes rm-bdot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.2; }
}

.rm-hero .rm-headline {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(54px, 10vw, 100px);
  color: #ffffff;
  text-align: center;
  line-height: 0.93;
  letter-spacing: 2px;
  margin-bottom: 20px;
}

.rm-hero .rm-headline span {
  color: #dc2626;
}

.rm-hero .rm-sub {
  font-size: 15px;
  color: #ffffff;
  text-align: center;
  max-width: 460px;
  line-height: 1.75;
  margin-bottom: 52px;
}

.rm-hero .rm-btn-primary {
  background: #dc2626;
  color: #fff;
  border: none;
  padding: 20px 64px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  border-radius: 3px;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
  box-shadow: 0 0 40px rgba(220, 38, 38, 0.3);
  margin-bottom: 80px;
}

.rm-hero .rm-btn-primary:hover {
  background: #b91c1c;
  transform: translateY(-2px);
  box-shadow: 0 0 64px rgba(220, 38, 38, 0.45);
}

.rm-hero .rm-stats {
  display: flex;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 40px;
}

.rm-hero .rm-stat {
  padding: 0 40px;
  text-align: center;
  border-right: 1px solid rgba(255, 255, 255, 0.06);
}

.rm-hero .rm-stat:first-child { padding-left: 0; }
.rm-hero .rm-stat:last-child { border-right: none; padding-right: 0; }

.rm-hero .rm-stat-num {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 36px;
  color: #fff;
  letter-spacing: 1px;
  line-height: 1;
  margin-bottom: 8px;
}

.rm-hero .rm-stat-num span { color: #dc2626; }

.rm-hero .rm-stat-label {
  font-size: 10px;
  color: #ffffff;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-weight: 600;
}

/* ==========================================================================
   MODAL — formularz kontaktowy
   ========================================================================== */

.rm-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(6px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s;
}

.rm-modal-overlay.open {
  opacity: 1;
  pointer-events: all;
}

.rm-modal {
  background: #0e0e0e;
  border: 1px solid rgba(220, 38, 38, 0.2);
  border-radius: 6px;
  width: 100%;
  max-width: 520px;
  padding: 48px 44px;
  position: relative;
  transform: translateY(20px);
  transition: transform 0.25s;
  font-family: 'Inter', sans-serif;
}

.rm-modal-overlay.open .rm-modal {
  transform: translateY(0);
}

.rm-modal-close {
  position: absolute;
  top: 20px;
  right: 24px;
  background: none;
  border: none;
  color: #ffffff;
  font-size: 22px;
  cursor: pointer;
  line-height: 1;
  transition: color 0.15s;
}

.rm-modal-close:hover { color: #fff; }

.rm-modal-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 36px;
  color: #fff;
  letter-spacing: 1px;
  margin-bottom: 6px;
}

.rm-modal-title span { color: #dc2626; }

.rm-modal-sub {
  font-size: 13px;
  color: #ffffff;
  margin-bottom: 32px;
  line-height: 1.6;
}

.rm-field { margin-bottom: 18px; }

.rm-field label {
  display: block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #ffffff;
  margin-bottom: 8px;
}

.rm-field input,
.rm-field textarea {
  width: 100%;
  background: #141414;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 3px;
  color: #fff;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  padding: 12px 16px;
  outline: none;
  transition: border-color 0.2s;
  resize: none;
}

.rm-field input:focus,
.rm-field textarea:focus {
  border-color: rgba(220, 38, 38, 0.5);
}

.rm-field input::placeholder,
.rm-field textarea::placeholder {
  color: rgba(255, 255, 255, 0.35);
}

.rm-field textarea { height: 90px; }

.rm-modal-send {
  width: 100%;
  background: #dc2626;
  color: #fff;
  border: none;
  padding: 15px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  border-radius: 3px;
  cursor: pointer;
  margin-top: 8px;
  transition: background 0.2s, box-shadow 0.2s;
  box-shadow: 0 0 32px rgba(220, 38, 38, 0.2);
}

.rm-modal-send:hover {
  background: #b91c1c;
  box-shadow: 0 0 48px rgba(220, 38, 38, 0.4);
}

.rm-success {
  display: none;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 20px 0;
}

.rm-success-icon { font-size: 40px; margin-bottom: 20px; }

.rm-success-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 32px;
  color: #fff;
  letter-spacing: 1px;
  margin-bottom: 8px;
}

.rm-success-sub {
  font-size: 13px;
  color: #ffffff;
  line-height: 1.6;
}

/* ==========================================================================
   FOOTER — nowy design dopasowany do motywu hero
   ========================================================================== */

.rm-footer {
  background: #060606;
  padding: 64px 40px 32px;
  font-family: 'Inter', sans-serif;
  color: #ffffff;
}

.rm-footer-top {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
  max-width: 1340px;
  margin: 0 auto;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.rm-footer-logo-img {
  height: 26px;
  width: auto;
  display: block;
}

.rm-footer-contact {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  text-align: right;
}

.rm-footer-contact-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: #dc2626;
  margin-bottom: 10px;
}

.rm-footer-contact a {
  display: block;
  color: #ffffff;
  text-decoration: none;
  font-size: 15px;
  margin-bottom: 4px;
  transition: color 0.2s;
}

.rm-footer-contact a:last-child {
  margin-bottom: 0;
}

.rm-footer-contact a:hover {
  color: #dc2626;
}

.rm-footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  max-width: 1340px;
  margin: 0 auto;
  padding-top: 24px;
}

.rm-footer-copyright {
  font-size: 12px;
  color: #ffffff;
}

.rm-footer-social {
  display: flex;
  gap: 14px;
}

.rm-footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #ffffff;
  text-decoration: none;
  transition: border-color 0.2s, color 0.2s, transform 0.2s;
}

.rm-footer-social a:hover {
  border-color: #dc2626;
  color: #dc2626;
  transform: translateY(-2px);
}

.rm-footer-social svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

@media (max-width: 640px) {
  .rm-footer-top {
    flex-direction: column;
    align-items: center;
    gap: 28px;
  }
  .rm-footer-contact {
    align-items: center;
    text-align: center;
    width: 100%;
  }
  .rm-footer-bottom {
    flex-direction: column;
    align-items: center;
    gap: 20px;
  }
}


.wp-site-blocks > * {
  margin-block-start: 0 !important;
}

.rm-navbar-wrap {
  position: relative;
  background: #060606;
  overflow: hidden;
}

.rm-navbar-glow {
  position: absolute;
  top: -60%;
  left: -10%;
  width: 50%;
  height: 220%;
  background: radial-gradient(ellipse at 30% 0%, rgba(220, 38, 38, 0.18), transparent 60%);
  pointer-events: none;
}

.rm-navbar {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 40px;
  background: rgba(10, 10, 10, 0.4);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.rm-navbar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.rm-navbar-logo-img {
  height: 38px;
  width: auto;
  display: block;
}

.rm-navbar-logo-text {
  height: 22px;
  width: auto;
  display: block;
}

.rm-navbar-links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.rm-navbar-links a {
  color: #ffffff;
  text-decoration: none;
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-weight: 600;
  transition: color 0.2s;
}

.rm-navbar-links a:hover {
  color: #ffffff;
}

.rm-navbar-cta {
  background: rgba(220, 38, 38, 0.9);
  color: #fff;
  border: none;
  padding: 10px 22px;
  border-radius: 30px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
}

.rm-navbar-cta:hover {
  background: #dc2626;
  transform: translateY(-1px);
}

@media (max-width: 640px) {
  .rm-navbar {
    padding: 14px 20px;
  }
  .rm-navbar-logo-img {
    height: 30px;
  }
  .rm-navbar-logo-text {
    height: 18px;
  }
  .rm-navbar-links {
    gap: 14px;
  }
  .rm-navbar-links a {
    display: none;
  }
  .rm-navbar-cta {
    padding: 8px 16px;
    font-size: 10px;
  }
}

.rm-modal {
  max-width: 640px;
}

.rm-modal-split {
  display: flex;
  gap: 28px;
  align-items: flex-start;
}

.rm-modal-col {
  flex: 1;
}

.rm-modal-divider {
  width: 1px;
  background: rgba(255, 255, 255, 0.08);
  flex-shrink: 0;
}

.rm-modal-col-phone {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  padding-top: 4px;
}

.rm-modal-phone-label {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 20px;
  color: #fff;
  letter-spacing: 1px;
  margin-bottom: 14px;
}

.rm-modal-phone-number {
  color: #dc2626;
  font-size: 19px;
  font-weight: 700;
  text-decoration: none;
  margin-bottom: 8px;
  display: block;
}

.rm-modal-phone-number:hover {
  color: #ff3838;
}

.rm-modal-phone-hours {
  font-size: 11px;
  color: #ffffff;
}

@media (max-width: 640px) {
  .rm-modal-split {
    flex-direction: column;
    gap: 24px;
  }
  .rm-modal-divider {
    width: 100%;
    height: 1px;
  }
  .rm-modal-col-phone {
    align-items: flex-start;
  }
}