/*
Theme Name: Firma Sprzątająca
Theme URI: http://localhost/detailing
Author: Jakub
Description: Landing page motyw dla firmy sprzątającej „Czysto." — hero, usługi, jak to działa, dlaczego my, FAQ i formularz kontaktowy. Zbudowany na podstawie projektu z folderu tymczasowe.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
Text Domain: firma-sprzatajaca
*/

@import url("fonts.css");

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

body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  color: #0d1b33;
  background: #ffffff;
  -webkit-font-smoothing: antialiased;
}

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

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

.hero-photo {
  display: block;
  width: 100%;
  aspect-ratio: 1/1;
  border-radius: 18px;
  background: linear-gradient(160deg, #2a4a85 0%, #0c1f43 100%);
  box-shadow: 0 24px 50px rgba(0,0,0,0.35);
  position: relative;
  overflow: hidden;
}
.hero-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255,255,255,0.08) 1.2px, transparent 1.2px);
  background-size: 26px 26px;
}

.svc-card { transition: transform .15s, box-shadow .15s, border-color .15s; }
.svc-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 34px rgba(13,27,51,0.08);
  border-color: #d6e0f0;
}

.form-field:focus { border: 1px solid #16356d !important; }
.btn-submit { transition: background .15s; }
.btn-submit:hover { background: #0f2752 !important; }

.faq-item { cursor: pointer; }
.faq-answer { display: none; }
.faq-item.open .faq-answer { display: block; }

.rt > :first-child { margin-top: 0; }
.rt > :last-child { margin-bottom: 0; }
.rt p { margin: 0 0 .7em; }
.rt ul, .rt ol { margin: 0 0 .7em 1.2em; }
.rt a { color: inherit; text-decoration: underline; }

.auto-slider::-webkit-scrollbar { display: none; }

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(8,18,40,0.90);
  backdrop-filter: blur(4px);
  cursor: zoom-out;
}
.lightbox.open { display: flex; }
.lightbox img {
  max-width: 92vw;
  max-height: 86vh;
  width: auto;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 30px 80px rgba(0,0,0,0.5);
  cursor: default;
}
.lightbox-close {
  position: absolute;
  top: 18px;
  right: 20px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.14);
  color: #fff;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lightbox-close:hover { background: rgba(255,255,255,0.24); }
.lightbox-cap {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 22px;
  text-align: center;
  padding: 0 24px;
  color: #dfe6f5;
  font-size: 14px;
  font-weight: 600;
}

@media (max-width: 960px) {
  .nav-links, .header-cta { display: none !important; }
  .hero-grid, .why-grid, .faq-grid, .cta-grid { grid-template-columns: 1fr !important; }
  .services-grid { grid-template-columns: 1fr 1fr !important; }
  .hero-h1 { font-size: 44px !important; }
  .section-h2 { font-size: 34px !important; }
  .footer-grid { grid-template-columns: 1fr 1fr !important; }

.hero-media { display: none !important; }

.auto-slider {
    display: flex !important;
    grid-template-columns: none !important;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    gap: 18px !important;
    scrollbar-width: none;
    align-items: flex-start; 
  }
  .auto-slider > * {
    flex: 0 0 72%;
  }
  
  .services-grid.auto-slider { align-items: center; }
  .services-grid.auto-slider > * { min-height: 0 !important; }
  .services-grid.auto-slider > .svc-card {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    flex: 0 0 54vw !important;
    max-width: 200px !important;
    aspect-ratio: 1 / 1;
    padding: 24px !important;
    border: none !important;
    border-radius: 22px !important;
    box-shadow: 0 14px 34px rgba(13,27,51,0.07) !important;
  }
  .services-grid.auto-slider > .svc-card h3 {
    font-size: 17px !important;
    letter-spacing: -0.01em;
    margin-bottom: 9px !important;
  }
  .services-grid.auto-slider > .svc-card .rt {
    font-size: 13.5px !important;
    line-height: 1.5 !important;
    color: #97a1b3 !important;
    margin-bottom: 0 !important;
  }
}
@media (max-width: 560px) {
  .reasons-grid, .form-row { grid-template-columns: 1fr !important; }
  .hero-inner, .cta-inner { padding: 40px 24px !important; }
  .section-pad { padding-left: 22px !important; padding-right: 22px !important; }
  .hero-stats { grid-template-columns: 1fr !important; }

  .auto-slider > * { flex: 0 0 74%; }

.footer-grid { grid-template-columns: 1fr 1fr 1fr !important; gap: 26px 16px !important; }
  .footer-grid > :first-child { grid-column: 1 / -1; }
}
