/*
Theme Name: zbig-bud Landing
Theme URI: https://example.com/
Author: Kamil Kaczmarczyk
Description: Jednostronicowy motyw dla firmy zbig-bud.
Version: 1.0
Text Domain: zbigbud
*/

:root {
  --primary: #f39c12;
  --primary-dark: #d98200;
  --dark: #222;
  --light: #f7f7f7;
  --text: #444;
  --max-width: 1180px;
  --radius: 14px;
  --shadow-soft: 0 10px 30px rgba(0,0,0,0.08);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: "Roboto", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  line-height: 1.6;
  background: #fff;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* HEADER */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,0.97);
  box-shadow: 0 2px 10px rgba(0,0,0,0.04);
  backdrop-filter: blur(12px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 0.75rem 0;
}

.logo {
  font-family: "Montserrat", sans-serif;
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--dark);
}

.logo span {
  color: var(--primary);
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav a {
  font-size: 0.95rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  position: relative;
  padding-bottom: 0.2rem;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: width 0.2s ease;
}

.nav a:hover::after {
  width: 100%;
}

.header-phone {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.55rem 0.9rem;
  border-radius: 999px;
  border: 1px solid rgba(0,0,0,0.06);
  background: #fff;
  box-shadow: 0 6px 18px rgba(0,0,0,0.06);
  cursor: pointer;
  white-space: nowrap;
}

.header-phone svg {
  width: 16px;
  height: 16px;
  fill: var(--primary);
}

/* MOBILE NAV */

.nav-toggle {
  display: none;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 1px solid rgba(0,0,0,0.12);
  background: #fff;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: #333;
  position: relative;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle span::before {
  position: absolute;
  top: -5px;
}

.nav-toggle span::after {
  position: absolute;
  top: 5px;
}

.nav-open .nav-toggle span {
  transform: rotate(45deg);
}

.nav-open .nav-toggle span::before {
  transform: rotate(90deg) translateX(-5px);
}

.nav-open .nav-toggle span::after {
  opacity: 0;
}

@media (max-width: 880px) {
  .nav {
    position: absolute;
    inset: 100% 0 auto 0;
    background: #fff;
    flex-direction: column;
    align-items: flex-start;
    padding: 0.75rem 1.5rem 1rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.06);
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transform: translateY(-6px);
    transition: all 0.18s ease;
  }

  .nav-open .nav {
    max-height: 260px;
    opacity: 1;
    transform: translateY(0);
  }

  .nav-toggle {
    display: inline-flex;
  }
}

@media (max-width: 600px) {
  .header-phone {
    display: none;
  }
}

/* HERO */

.hero {
  background: linear-gradient(to right, #00000088, #00000055),
    url("https://images.pexels.com/photos/8092/pexels-photo.jpg") center/cover no-repeat;
  color: #fff;
  padding: 4.5rem 0 4rem;
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
  gap: 3rem;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.28rem 1rem;
  border-radius: 999px;
  background: rgba(255,255,255,0.16);
  border: 1px solid rgba(255,255,255,0.4);
  font-size: 0.9rem;
  margin-bottom: 1rem;
  backdrop-filter: blur(14px);
}

.hero-badge span {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: #2ecc71;
  box-shadow: 0 0 0 4px rgba(46,204,113,0.35);
}

.hero h1 {
  font-family: "Montserrat", sans-serif;
  font-size: clamp(2.1rem, 3.3vw, 3rem);
  line-height: 1.1;
  margin-bottom: 1rem;
  font-weight: 700;
}

.hero h1 span {
  color: var(--primary);
}

.hero-lead {
  font-size: 1rem;
  max-width: 34rem;
  opacity: 0.95;
  margin-bottom: 1.6rem;
}

.hero-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem 1.2rem;
  margin-bottom: 2rem;
  font-size: 0.9rem;
}

.hero-list li {
  list-style: none;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.hero-list li::before {
  content: "✓";
  font-size: 0.85rem;
  color: var(--primary);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  align-items: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.85rem 1.6rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease;
  white-space: nowrap;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 16px 30px rgba(0,0,0,0.25);
}

.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.35);
}

.btn-outline {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255,255,255,0.65);
}

.btn-outline:hover {
  background: #fff;
  color: #000;
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(0,0,0,0.35);
}

.hero-aside {
  background: rgba(255,255,255,0.06);
  border-radius: var(--radius);
  padding: 1.2rem 1.2rem 1.4rem;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.25);
  box-shadow: 0 16px 40px rgba(0,0,0,0.35);
}

.hero-aside-title {
  font-family: "Montserrat", sans-serif;
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 0.9rem;
}

.hero-aside-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  font-size: 0.9rem;
}

.hero-aside-box {
  background: rgba(0,0,0,0.5);
  border-radius: 12px;
  padding: 0.7rem 0.75rem;
  border: 1px solid rgba(255,255,255,0.15);
}

.hero-aside-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  opacity: 0.8;
  margin-bottom: 0.1rem;
}

.hero-aside-value {
  font-weight: 600;
}

@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-aside {
    max-width: 360px;
    margin-top: 0.8rem;
  }
}

@media (max-width: 600px) {
  .hero {
    padding: 3.2rem 0 3rem;
  }
}

/* SECTIONS */

section {
  padding: 3.5rem 0;
}

.section-header {
  margin-bottom: 2.2rem;
  text-align: center;
}

.section-title {
  font-family: "Montserrat", sans-serif;
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 0.5rem;
}

.section-subtitle {
  font-size: 0.98rem;
  color: #777;
  max-width: 560px;
  margin: 0 auto;
}

/* O NAS */

.about {
  background: #fff;
}

.about-inner {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 2.2fr);
  gap: 2.8rem;
  align-items: center;
}

.about-text p {
  margin-bottom: 0.9rem;
}

.about-highlights {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1.4rem;
}

.highlight-box {
  border-radius: var(--radius);
  padding: 0.85rem;
  background: var(--light);
  text-align: left;
}

.highlight-title {
  font-family: "Montserrat", sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 0.2rem;
}

.highlight-desc {
  font-size: 0.85rem;
  color: #777;
}

.about-photo {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  position: relative;
  min-height: 260px;
  background: url("https://images.pexels.com/photos/416405/pexels-photo-416405.jpeg") center/cover no-repeat;
}

.about-photo-tag {
  position: absolute;
  left: 1rem;
  bottom: 1rem;
  background: rgba(0,0,0,0.7);
  color: #fff;
  padding: 0.4rem 0.8rem;
  border-radius: 999px;
  font-size: 0.8rem;
}

@media (max-width: 900px) {
  .about-inner {
    grid-template-columns: minmax(0, 1fr);
  }

  .about-highlights {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  .about-highlights {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* USŁUGI */

.services {
  background: var(--light);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}

.service-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 1.1rem 1.1rem 1.2rem;
  box-shadow: var(--shadow-soft);
  position: relative;
}

.service-card-tag {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: #999;
  margin-bottom: 0.2rem;
}

.service-card-title {
  font-family: "Montserrat", sans-serif;
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 0.6rem;
  color: var(--dark);
}

.service-card ul {
  list-style: none;
  font-size: 0.9rem;
}

.service-card li {
  position: relative;
  padding-left: 1rem;
  margin-bottom: 0.35rem;
}

.service-card li::before {
  content: "•";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--primary);
}

.services-note {
  margin-top: 1.5rem;
  font-size: 0.9rem;
  text-align: center;
  color: #666;
}

@media (max-width: 1000px) {
  .services-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 700px) {
  .services-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* PROCES */

.process {
  background: #fff;
}

.process-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.3rem;
}

.process-step {
  background: #fff;
  border-radius: var(--radius);
  padding: 1rem;
  border: 1px solid #eee;
  text-align: left;
}

.process-step-number {
  width: 30px;
  height: 30px;
  border-radius: 999px;
  background: var(--primary);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
}

.process-step-title {
  font-family: "Montserrat", sans-serif;
  font-size: 0.98rem;
  font-weight: 600;
  margin-bottom: 0.2rem;
}

.process-step-desc {
  font-size: 0.88rem;
  color: #777;
}

@media (max-width: 950px) {
  .process-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  .process-steps {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* OPINIE + GALERIA */

.testimonials {
  background: var(--light);
}

.testimonials-inner {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
  gap: 2rem;
  align-items: center;
}

.testimonial-box {
  background: #fff;
  border-radius: var(--radius);
  padding: 1.2rem 1.3rem;
  box-shadow: var(--shadow-soft);
  position: relative;
  margin-bottom: 1rem;
}

.testimonial-box::before {
  content: "„";
  position: absolute;
  top: -12px;
  left: 18px;
  font-size: 2.8rem;
  color: var(--primary);
  opacity: 0.25;
}

.testimonial-text {
  font-size: 0.95rem;
  color: #555;
}

.testimonial-author {
  margin-top: 0.5rem;
  font-weight: 600;
  font-size: 0.9rem;
}

.testimonial-city {
  font-size: 0.85rem;
  color: #888;
}

/* SLIDER GALERII */

.gallery-slider {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  background: #000;
  position: relative;
}

.gallery-slider-track {
  display: flex;
  transition: transform 0.5s ease;
  will-change: transform;
}

.gallery-slide {
  min-width: 100%;
  max-width: 100%;
  height: 0;
  padding-bottom: 66%;
  position: relative;
}

.gallery-slide img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-nav {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  pointer-events: none;
  padding: 0 0.35rem;
}

.gallery-nav button {
  pointer-events: auto;
  border-radius: 999px;
  border: none;
  width: 32px;
  height: 32px;
  background: rgba(0,0,0,0.55);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.2rem;
  transition: background 0.15s ease, transform 0.15s ease;
}

.gallery-nav button:hover {
  background: rgba(0,0,0,0.8);
  transform: translateY(-1px);
}

.gallery-dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  pointer-events: none;
}

.gallery-dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.8);
  background: transparent;
  pointer-events: auto;
  cursor: pointer;
  padding: 0;
  outline: none;
  transition: background 0.15s ease, transform 0.15s ease, border-color 0.15s ease;
}

.gallery-dot.active {
  background: #fff;
  transform: scale(1.15);
  border-color: #fff;
}

@media (max-width: 900px) {
  .testimonials-inner {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* KONTAKT */

.contact {
  background: #111;
  color: #f5f5f5;
  padding-bottom: 3rem;
}

.contact .section-header {
  text-align: left;
}

.contact .section-title {
  color: #fff;
}

.contact-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 2.5rem;
  align-items: flex-start;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-bottom: 1.2rem;
  font-size: 0.92rem;
}

.contact-item-title {
  font-family: "Montserrat", sans-serif;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.2rem;
  color: #bbb;
}

.contact-item-value {
  font-size: 0.96rem;
  font-weight: 500;
}

.contact-note {
  font-size: 0.85rem;
  color: #aaa;
  margin-top: 0.5rem;
  max-width: 380px;
}

.contact-map {
  margin-top: 1.5rem;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid #2c2c2c;
  background: #050505;
}

.contact-map-embed {
  width: 100%;
  height: 260px;
  border-top: 1px solid #2c2c2c;
}

.contact-map-embed iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

@media (max-width: 950px) {
  .contact-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* FOOTER */

.site-footer {
  background: #050505;
  color: #aaa;
  padding: 1.3rem 0;
  font-size: 0.82rem;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer-links a {
  margin-left: 0.8rem;
  text-decoration: underline;
  text-decoration-color: rgba(255,255,255,0.25);
  text-underline-offset: 3px;
}

@media (max-width: 600px) {
  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* WP menu w nagłówku */
.nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav li {
  margin: 0;
}

.nav a {
  font-size: 0.95rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  position: relative;
  padding-bottom: 0.2rem;
}

/* Lista w menu głównym WP */
.nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav-list li {
  margin: 0;
}

/* Linki w menu – możesz zostawić swoje poprzednie .nav a, ale dla pewności: */
.nav-list a {
  font-size: 0.95rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  position: relative;
  padding-bottom: 0.2rem;
}

/* Podkreślenie przy hoverze jak wcześniej */
.nav-list a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: width 0.2s ease;
}

.nav-list a:hover::after {
  width: 100%;
}

/* Mobile – ten sam mechanizm, tylko kolumnowo */
@media (max-width: 880px) {
  .nav {
    position: absolute;
    inset: 100% 0 auto 0;
    background: #fff;
    padding: 0.75rem 1.5rem 1rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.06);
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transform: translateY(-6px);
    transition: all 0.18s ease;
  }

  .nav-open .nav {
    max-height: 260px;
    opacity: 1;
    transform: translateY(0);
  }

  .nav-list {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }
}

/* ANIMACJE POJAWIANIA PRZY PRZEWIJANIU */

.reveal-on-scroll {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
  will-change: opacity, transform;
}

.reveal-in-view {
  opacity: 1;
  transform: translateY(0);
}
