/*
Theme Name: MRPcom
Author: MRPcom
Version: 1.3
Description: Motyw WordPress dla strony MRPcom (zoptymalizowany)
*/

/* ===== BASE ===== */
* { box-sizing: border-box; }

html, body { height: 100%; }

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Ubuntu, sans-serif;
  line-height: 1.6;
  color: #111827;
  background: #ffffff;
}

img { max-width: 100%; height: auto; display: block; }

a { color: inherit; text-decoration: none; }

h1, h2, h3 { line-height: 1.25; margin: 0 0 12px; }
p { margin: 0 0 12px; }

:focus-visible {
  outline: 3px solid rgba(37, 99, 235, 0.65);
  outline-offset: 3px;
}

/* ===== LAYOUT ===== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

section { padding: 80px 0; }

@media (max-width: 768px) {
  section { padding: 60px 0; }
}

/* ===== HEADER / NAV ===== */
header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0,0,0,0.06);
}

header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
}

/* menu poziome */
header nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 24px;
  align-items: center;
}

header nav li { margin: 0; padding: 0; }

header nav a {
  display: inline-block;
  padding: 10px 14px;
  font-weight: 600;
  border-radius: 10px;
  opacity: 0.95;
  transition: background .15s ease, opacity .15s ease;
}

header nav a:hover {
  background: rgba(0,0,0,0.06);
  opacity: 1;
}

/* ===== BUTTONS ===== */
.btn-primary,
.btn-secondary {
  display: inline-block;
  padding: 12px 26px;
  border-radius: 10px;
  font-weight: 700;
  margin: 6px;
  transition: transform .12s ease, opacity .12s ease, background .12s ease;
}

.btn-primary {
  background: #2563eb;
  color: #fff;
}

.btn-primary:hover {
  background: #1d4ed8;
  transform: translateY(-1px);
}

/* jeśli chcesz, żeby oba wyglądały jak primary, możesz dać btn-primary w HTML */
.btn-secondary {
  background: #2563eb;
  color: #fff;
  border: none;
}

.btn-secondary:hover {
  background: #1d4ed8;
  transform: translateY(-1px);
}

/* ===== HERO ===== */
#hero {
  position: relative;
  color: #ffffff;
  text-align: center;
  padding: 110px 20px;
}

#hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.55);
}

#hero .container { position: relative; z-index: 2; }

#hero h1 { font-size: 2.6rem; margin-bottom: 18px; }

#hero p {
  max-width: 860px;
  margin: 0 auto 26px;
  font-size: 1.1rem;
  opacity: 0.95;
}

@media (max-width: 768px) {
  #hero { padding: 90px 16px; }
  #hero h1 { font-size: 2rem; }
  #hero p { font-size: 1rem; }
}

/* ===== SERVICES ===== */
#services { background: #f9fafb; }

.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 28px;
  margin-top: 40px;
  align-items: stretch;
}

.service-item {
  background: #ffffff;
  border-radius: 18px;
  padding: 24px 20px;
  box-shadow: 0 10px 24px rgba(0,0,0,0.06);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  overflow: hidden;
}

.service-icon {
  width: 100%;
  max-width: 260px;
  height: 160px;
  object-fit: contain;
  margin: 0 auto 12px;
}

.service-item h3 {
  font-size: 1.15rem;
  margin: 8px 0 6px;
  line-height: 1.2;
}

.service-item p {
  font-size: 0.95rem;
  opacity: 0.85;
  margin: 0;
}

/* ===== ABOUT ===== */
#about .about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

#about .about-image {
  max-width: 100%;
  height: auto;
  border-radius: 18px;
}

@media (max-width: 900px) {
  #about .about-grid { grid-template-columns: 1fr; }
}

/* ===== FAQ ===== */
#faq ul {
  max-width: 900px;
  margin: 30px auto 0;
  padding: 0;
  list-style: none;
}

#faq li {
  padding: 14px 0;
  border-bottom: 1px solid #e5e7eb;
}

#faq strong { display: inline-block; margin-right: 6px; }

/* ===== CONTACT ===== */
#contact {
  background: #111827;
  color: #ffffff;
  text-align: center;
}

#contact p { opacity: 0.95; }
#contact a { color: #ffffff; }

/* ===== FOOTER ===== */
footer {
  background: #020617;
  color: #9ca3af;
  text-align: center;
  padding: 30px 20px;
  font-size: 0.9rem;
}

/* ===== EXTRA ===== */
main img, article img { max-width: 100%; height: auto; }

/* USŁUGI – ukryj przyciski (zostają tylko w HERO) */
#services .btn-primary,
#services .btn-secondary {
  display: none !important;
}

