/*
Theme Name: R-Projekt
Theme URI: https://example.com/r-projekt
Author: R-Projekt
Author URI: https://example.com
Description: Lekki, nowoczesny motyw firmowy dla firmy R-Projekt – usługi projektowo-budowlane i transportowe.
Version: 1.0.0
Text Domain: r-projekt
*/

/* Reset / baza */
*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #111827;
  background-color: #f3f4f6;
  line-height: 1.6;
}

a {
  color: #0f766e;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(14px);
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.96), rgba(15, 118, 110, 0.96));
  color: #f9fafb;
  padding: 0.9rem 1rem;
  box-shadow: 0 10px 35px rgba(15, 23, 42, 0.55);
}

.site-header-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.site-title {
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.site-tagline {
  font-size: 0.9rem;
  opacity: 0.9;
}

.site-logo-mark {
  width: 36px;
  height: 36px;
  border-radius: 0.9rem;
  background: radial-gradient(circle at 30% 20%, #a7f3d0, #0f766e 45%, #0f172a 90%);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.7);
  margin-right: 0.9rem;
}

.site-branding {
  display: flex;
  align-items: center;
}

.site-nav .primary-menu {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 0.75rem;
  font-size: 0.9rem;
}

.site-nav .primary-menu > li > a {
  display: inline-flex;
  align-items: center;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  color: #e5e7eb;
  text-decoration: none;
  transition: background-color 0.15s ease, color 0.15s ease, transform 0.1s ease;
}

.site-nav .primary-menu > li > a:hover {
  background-color: rgba(15, 23, 42, 0.7);
  color: #a7f3d0;
  transform: translateY(-1px);
}

.site-nav .primary-menu > li.current-menu-item > a,
.site-nav .primary-menu > li.current_page_item > a {
  background-color: #0f766e;
  color: #ecfdf5;
}

.site-main {
  max-width: 1100px;
  margin: 2rem auto 3rem;
  padding: 0 1rem;
}

.hero {
  position: relative;
  overflow: hidden;
  background: radial-gradient(circle at top left, #1e293b, #020617 55%) no-repeat;
  color: #f9fafb;
  border-radius: 1rem;
  padding: 2.5rem 2rem;
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1.4fr);
  gap: 2rem;
  box-shadow: 0 20px 45px rgba(15, 23, 42, 0.45);
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  filter: blur(45px);
  opacity: 0.4;
  pointer-events: none;
}

.hero::before {
  width: 260px;
  height: 260px;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.75), transparent 60%);
  top: -60px;
  right: -40px;
}

.hero::after {
  width: 220px;
  height: 220px;
  background: radial-gradient(circle, rgba(45, 212, 191, 0.7), transparent 60%);
  bottom: -80px;
  left: -60px;
}

.hero h1 {
  font-size: 2rem;
  margin: 0 0 0.75rem;
}

.hero p {
  margin: 0 0 1rem;
  font-size: 0.98rem;
  color: #e5e7eb;
}

.hero-meta {
  margin-top: 1rem;
  font-size: 0.85rem;
  color: #9ca3af;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.25rem 0.8rem;
  border-radius: 999px;
  background-color: rgba(15, 118, 110, 0.18);
  color: #a7f3d0;
  font-size: 0.8rem;
  margin-bottom: 0.75rem;
}

.hero-cta {
  margin-top: 1.2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.hero-main {
  position: relative;
  z-index: 1;
}

.btn-primary,
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.4rem;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease, background-color 0.12s ease;
}

.btn-primary {
  background-color: #0f766e;
  color: #ecfdf5;
  box-shadow: 0 12px 30px rgba(15, 118, 110, 0.55);
}

.btn-primary:hover {
  background-color: #115e59;
  transform: translateY(-1px);
  box-shadow: 0 18px 40px rgba(15, 118, 110, 0.75);
}

.btn-secondary {
  background-color: transparent;
  color: #a7f3d0;
  border: 1px solid rgba(148, 163, 184, 0.5);
}

.btn-secondary:hover {
  background-color: rgba(15, 23, 42, 0.7);
}

.hero-contact-card {
  background-color: rgba(15, 23, 42, 0.85);
  border-radius: 1rem;
  padding: 1.4rem 1.2rem;
  border: 1px solid rgba(148, 163, 184, 0.35);
  position: relative;
  z-index: 1;
}

.hero-contact-card h2 {
  margin: 0 0 0.9rem;
  font-size: 1.05rem;
}

.hero-contact-list {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 0.9rem;
}

.hero-contact-list li + li {
  margin-top: 0.4rem;
}

.hero-contact-label {
  display: block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #9ca3af;
}

.hero-contact-value {
  font-weight: 600;
  color: #e5e7eb;
}

.hero-gallery {
  margin-top: 1.8rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.9rem;
  position: relative;
  z-index: 1;
}

.hero-gallery-item {
  position: relative;
  border-radius: 0.9rem;
  overflow: hidden;
  min-height: 110px;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.5);
}

.hero-gallery-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-gallery-item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(15, 23, 42, 0.85), transparent 55%);
}

.hero-gallery-label {
  position: absolute;
  left: 0.8rem;
  bottom: 0.7rem;
  z-index: 1;
  font-size: 0.8rem;
  font-weight: 600;
  color: #f9fafb;
}

.hero-gallery-road {
  background-image: linear-gradient(135deg, #0f172a, #0f766e);
}

.hero-gallery-machines {
  background-image: linear-gradient(135deg, #111827, #0369a1);
}

.hero-gallery-traffic {
  background-image: linear-gradient(135deg, #111827, #7c2d12);
}

.stats {
  margin-top: 2.5rem;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.stat-item {
  background-color: #020617;
  border-radius: 0.9rem;
  padding: 1rem 1.1rem 1.1rem;
  color: #e5e7eb;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.5);
  border: 1px solid rgba(148, 163, 184, 0.4);
}

.stat-value {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.2rem;
}

.stat-label {
  font-size: 0.8rem;
  color: #9ca3af;
}

.section {
  margin-top: 3rem;
}

.section-header {
  max-width: 780px;
  margin-bottom: 1.8rem;
}

.section-header h2 {
  margin: 0 0 0.7rem;
  font-size: 1.5rem;
}

.section-header p {
  margin: 0.2rem 0 0;
  font-size: 0.95rem;
  color: #4b5563;
}

.section-kicker {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.75rem;
  font-weight: 600;
  color: #0f766e;
}

.sections-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.card {
  background-color: #ffffff;
  border-radius: 1rem;
  padding: 1.4rem 1.3rem 1.5rem;
  box-shadow: 0 14px 35px rgba(15, 23, 42, 0.12);
  border: 1px solid rgba(148, 163, 184, 0.35);
}

.card h2 {
  font-size: 1.05rem;
  margin: 0 0 0.8rem;
}

.card h3 {
  font-size: 0.95rem;
  margin: 1.1rem 0 0.4rem;
  color: #0f172a;
}

.card ul {
  margin: 0;
  padding-left: 1.1rem;
  font-size: 0.9rem;
}

.card ul li + li {
  margin-top: 0.15rem;
}

.card-intro {
  margin-top: 0;
  margin-bottom: 0.8rem;
  font-size: 0.9rem;
  color: #4b5563;
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.2rem 0.65rem;
  border-radius: 999px;
  background-color: #ecfdf5;
  color: #047857;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.4rem;
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}

.about-item {
  background-color: #ffffff;
  border-radius: 1rem;
  padding: 1.3rem 1.2rem;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
  border: 1px solid rgba(209, 213, 219, 0.9);
  font-size: 0.9rem;
}

.about-item h3 {
  margin-top: 0;
  margin-bottom: 0.4rem;
  font-size: 1rem;
}

.about-item p {
  margin: 0;
  color: #4b5563;
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.5rem;
}

.why-item {
  background-color: #ffffff;
  border-radius: 1rem;
  padding: 1.2rem 1.2rem 1.3rem;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
  border: 1px solid rgba(209, 213, 219, 0.9);
  font-size: 0.9rem;
}

.why-item h3 {
  margin-top: 0;
  margin-bottom: 0.4rem;
  font-size: 0.98rem;
}

.why-item p {
  margin: 0;
  color: #4b5563;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}

.project-card {
  position: relative;
  border-radius: 1.1rem;
  min-height: 190px;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.28);
}

.project-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top, rgba(15, 23, 42, 0.1), transparent 55%),
    linear-gradient(to top, rgba(15, 23, 42, 0.9), transparent 60%);
}

.project-card-overlay {
  position: absolute;
  inset: auto 1.1rem 1.1rem;
  z-index: 1;
  color: #f9fafb;
  font-size: 0.9rem;
}

.project-card-overlay h3 {
  margin: 0 0 0.3rem;
  font-size: 1rem;
}

.project-card-overlay p {
  margin: 0;
  font-size: 0.86rem;
  color: #e5e7eb;
}

.project-card-road {
  background-image: linear-gradient(135deg, #0f172a, #0f766e),
    url("https://r-projekt.you2.pl/wp-content/uploads/2025/05/12b7114a767f890ed0d6119e1ecbc9c909e73ea9.jpg");
}

.project-card-junction {
  background-image: linear-gradient(135deg, #111827, #0369a1),
    url("https://r-projekt.you2.pl/wp-content/uploads/2025/05/e3eb281590930da22f0ed145b388a3df38c81c9f.jpg");
}

.project-card-works {
  background-image: linear-gradient(135deg, #0f172a, #7c2d12),
    url("https://r-projekt.you2.pl/wp-content/uploads/2025/05/6e84e65e76a6f496f16a685401d13b883aecefc3.jpg");
}

.project-card-traffic {
  background-image: linear-gradient(135deg, #111827, #2563eb),
    url("https://r-projekt.you2.pl/wp-content/uploads/2025/05/img-A8wsDKSyqdjTIoK82Q8vCPCk.png");
}

.project-card-supervision {
  background-image: linear-gradient(135deg, #0f172a, #0f766e),
    url("https://r-projekt.you2.pl/wp-content/uploads/2025/05/img-TDWe64NzN4sWFsxBYhfXaNF9.png");
}

.project-card-transport {
  background-image: linear-gradient(135deg, #111827, #0369a1),
    url("https://r-projekt.you2.pl/wp-content/uploads/2025/05/bbb137e2dcba9ddba7c7ab52a14d364c62b3e98c.jpg");
}

.process-steps {
  list-style: none;
  padding: 0;
  margin: 0;
  counter-reset: process-counter;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem 1.5rem;
}

.process-steps li {
  position: relative;
  background-color: #ffffff;
  border-radius: 0.9rem;
  padding: 1.1rem 1.2rem 1.2rem;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08);
  border: 1px solid rgba(209, 213, 219, 0.9);
  font-size: 0.9rem;
}

.process-steps h3 {
  margin: 0 0 0.35rem;
  font-size: 0.96rem;
}

.process-steps p {
  margin: 0;
  color: #4b5563;
}

.faq-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.2rem 1.5rem;
}

.faq-item {
  background-color: #ffffff;
  border-radius: 0.9rem;
  padding: 1rem 1.1rem 1.1rem;
  border: 1px solid rgba(209, 213, 219, 0.9);
  font-size: 0.9rem;
}

.faq-item h3 {
  margin: 0 0 0.35rem;
  font-size: 0.96rem;
}

.faq-item p {
  margin: 0;
  color: #4b5563;
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1.7fr);
  gap: 1.5rem;
}

.contact-details {
  background-color: #ffffff;
  border-radius: 1rem;
  padding: 1.4rem 1.3rem 1.5rem;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
  border: 1px solid rgba(209, 213, 219, 0.9);
  font-size: 0.9rem;
}

.contact-details h3 {
  margin: 0 0 0.6rem;
}

.contact-details ul {
  margin: 0 0 0.8rem;
  padding-left: 1.1rem;
}

.contact-details li + li {
  margin-top: 0.2rem;
}

.contact-note {
  margin: 0;
  font-size: 0.86rem;
  color: #4b5563;
}

.contact-form-placeholder {
  border-radius: 1rem;
  padding: 1.4rem 1.3rem 1.5rem;
  background: linear-gradient(135deg, #e0f2fe, #ecfdf5);
  border: 1px solid rgba(59, 130, 246, 0.35);
  font-size: 0.9rem;
}

.contact-form-placeholder h3 {
  margin: 0 0 0.5rem;
}

.contact-form-placeholder p {
  margin: 0 0 0.5rem;
  color: #1f2937;
}

.contact-form-shortcode {
  font-size: 0.85rem;
  color: #111827;
}

.site-footer {
  border-top: 1px solid #e5e7eb;
  padding: 1.5rem 1rem 2rem;
  font-size: 0.85rem;
  color: #6b7280;
  text-align: center;
}

@media (max-width: 900px) {
  .hero {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .sections-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .projects-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .hero {
    padding: 1.7rem 1.3rem;
  }

  .hero h1 {
    font-size: 1.6rem;
  }

  .sections-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .projects-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-gallery {
    grid-template-columns: minmax(0, 1fr);
  }

  .stats-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}
