/*
Theme Name: Klima Wizytówka
Theme URI: https://localhost:8080
Description: Prosta wizytówka firmy klimatyzacyjnej
Version: 1.0
Author: CodenOmad
*/

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

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: #333;
  line-height: 1.6;
}

/* LOGO */
.logo-link {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.logo-img {
  height: 44px;
  width: auto;
}

/* HEADER */
header {
  background: linear-gradient(135deg, #0077b6, #023e8a);
  color: white;
  padding: 0.75rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

header nav a {
  color: white;
  text-decoration: none;
  margin-left: 1.5rem;
  font-weight: 500;
  transition: color 0.2s;
}

header nav a:hover {
  color: #90e0ef;
}

/* HERO */
.hero {
  position: relative;
  color: white;
  text-align: center;
  padding: 8rem 2rem;
  overflow: hidden;
  background: #001d3d;
}

.hero__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 0;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0, 29, 61, 0.45) 0%,
    rgba(0, 29, 61, 0.65) 100%
  );
  z-index: 1;
}

.hero__content {
  position: relative;
  z-index: 2;
}

.hero h1 {
  font-size: 2.8rem;
  margin-bottom: 1rem;
  text-shadow: 1px 1px 4px rgba(0,0,0,0.5);
}

.hero p {
  font-size: 1.2rem;
  max-width: 600px;
  margin: 0 auto 2rem;
  opacity: 0.9;
}

.btn {
  display: inline-block;
  background: #90e0ef;
  color: #023e8a;
  padding: 0.8rem 2rem;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1rem;
  transition: background 0.2s, transform 0.1s;
}

.btn:hover {
  background: #caf0f8;
  transform: translateY(-1px);
}

/* SEKCJE */
section {
  padding: 4rem 2rem;
  max-width: 1100px;
  margin: 0 auto;
}

section h2 {
  font-size: 2rem;
  margin-bottom: 2rem;
  color: #023e8a;
  text-align: center;
}

section h2::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background: #0077b6;
  margin: 0.5rem auto 0;
}

/* USŁUGI */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.service-card {
  background: #f0f8ff;
  border: 1px solid #caf0f8;
  border-radius: 8px;
  padding: 2rem;
  text-align: center;
  transition: box-shadow 0.2s, transform 0.2s;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
}

.service-card:hover {
  box-shadow: 0 4px 16px rgba(0,119,182,0.15);
  transform: translateY(-3px);
}

.service-card .icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.service-card h3 {
  color: #023e8a;
  margin-bottom: 0.5rem;
}

/* O NAS */
#o-nas {
  background: #f8f9fa;
  max-width: 100%;
  padding: 4rem 2rem;
}

#o-nas .inner {
  max-width: 1100px;
  margin: 0 auto;
}

#o-nas .about-flex {
  display: flex;
  gap: 3rem;
  align-items: center;
  flex-wrap: wrap;
}

#o-nas .about-text {
  flex: 1;
  min-width: 280px;
}

#o-nas .about-text p {
  margin-bottom: 1rem;
  font-size: 1.05rem;
}

#o-nas .about-stats {
  flex: 0 0 auto;
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
}

.stat {
  text-align: center;
  background: white;
  border: 2px solid #0077b6;
  border-radius: 8px;
  padding: 1.5rem 2rem;
  min-width: 120px;
}

.stat .number {
  font-size: 2.2rem;
  font-weight: 700;
  color: #0077b6;
}

.stat .label {
  font-size: 0.85rem;
  color: #555;
}

/* KONTAKT */
#kontakt {
  background: #023e8a;
  color: white;
  max-width: 100%;
  padding: 4rem 2rem;
}

#kontakt .inner {
  max-width: 1100px;
  margin: 0 auto;
}

#kontakt h2 {
  color: white;
}

#kontakt h2::after {
  background: #90e0ef;
}

.contact-flex {
  display: flex;
  gap: 3rem;
  flex-wrap: wrap;
  margin-top: 2rem;
}

.contact-info {
  flex: 1;
  min-width: 240px;
}

.contact-info p {
  margin-bottom: 1rem;
  font-size: 1.05rem;
  opacity: 0.9;
}

.contact-info strong {
  color: #90e0ef;
}

.contact-info a {
  color: white;
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: 600;
}

.contact-info a:hover {
  color: #90e0ef;
}

.contact-form {
  flex: 2;
  min-width: 280px;
}

.contact-form input,
.contact-form textarea,
.contact-form select {
  width: 100%;
  padding: 0.75rem 1rem;
  margin-bottom: 1rem;
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 4px;
  background: rgba(255,255,255,0.1);
  color: white;
  font-size: 1rem;
  font-family: inherit;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: rgba(255,255,255,0.6);
}

.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
  outline: none;
  border-color: #90e0ef;
  background: rgba(255,255,255,0.15);
}

.contact-form select option {
  color: #333;
  background: white;
}

.contact-form textarea {
  height: 140px;
  resize: vertical;
}

.contact-form button {
  background: #90e0ef;
  color: #023e8a;
  border: none;
  padding: 0.8rem 2.5rem;
  border-radius: 4px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s;
}

.contact-form button:hover {
  background: #caf0f8;
}

.wpcf7-response-output {
  margin-top: 1rem;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  background: rgba(144, 224, 239, 0.2);
  border: 1px solid #90e0ef;
}

/* FOOTER */
footer {
  background: #012a5e;
  color: rgba(255,255,255,0.7);
  text-align: center;
  padding: 1.5rem;
  font-size: 0.9rem;
}

footer a {
  color: #90e0ef;
  text-decoration: none;
}

.card-link {
  display: inline-block;
  margin-top: auto;
  padding-top: 1rem;
  color: #0077b6;
  font-weight: 600;
  font-size: 0.9rem;
  transition: color 0.2s;
}

.service-card:hover .card-link {
  color: #023e8a;
}

/* =====================
   PODSTRONY USŁUG
   ===================== */

.service-hero {
  background: linear-gradient(135deg, #0077b6, #023e8a);
  color: white;
  padding: 4rem 2rem;
}

.service-hero__inner {
  max-width: 1000px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 3rem;
  flex-wrap: wrap;
}

.service-hero__icon {
  flex: 0 0 120px;
  width: 120px;
  height: 120px;
  background: rgba(255,255,255,0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.service-hero__icon svg {
  width: 80px;
  height: 80px;
}

.service-hero h1 {
  font-size: 2.2rem;
  margin-bottom: 0.75rem;
}

.service-hero p {
  font-size: 1.1rem;
  opacity: 0.9;
  max-width: 540px;
  margin-bottom: 1.5rem;
}

.service-content {
  padding: 3rem 2rem;
}

.service-content__inner {
  max-width: 860px;
  margin: 0 auto;
}

.content-section {
  max-width: 100%;
  margin: 0 0 2.5rem;
  padding: 0;
}

.content-section h2 {
  font-size: 1.4rem;
  color: #023e8a;
  margin-bottom: 1rem;
  text-align: left;
}

.content-section h2::after {
  margin: 0.4rem 0 0;
}

.content-body {
  font-size: 1rem;
  color: #444;
  line-height: 1.8;
}

.content-body ul,
.content-body ol {
  padding-left: 1.5rem;
  margin-top: 0.5rem;
}

.content-body li {
  margin-bottom: 0.4rem;
}

/* FAQ */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.faq-item {
  background: #f0f8ff;
  border: 1px solid #caf0f8;
  border-radius: 6px;
  overflow: hidden;
}

.faq-item summary {
  padding: 1rem 1.25rem;
  font-weight: 600;
  color: #023e8a;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  user-select: none;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
  content: '+';
  font-size: 1.3rem;
  color: #0077b6;
  transition: transform 0.2s;
}

.faq-item[open] summary::after {
  transform: rotate(45deg);
}

.faq-item p {
  padding: 0 1.25rem 1rem;
  color: #555;
  font-size: 0.97rem;
  line-height: 1.7;
}

/* CTA box */
.service-cta {
  background: linear-gradient(135deg, #0077b6, #023e8a);
  color: white;
  border-radius: 10px;
  padding: 2.5rem;
  text-align: center;
  margin-top: 3rem;
}

.service-cta h3 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.service-cta p {
  opacity: 0.9;
  margin-bottom: 1.5rem;
}

.btn--dark {
  background: white;
  color: #023e8a;
}

.btn--dark:hover {
  background: #caf0f8;
}

/* RESPONSIVE */
@media (max-width: 600px) {
  .hero h1 { font-size: 2rem; }
  header { flex-direction: column; gap: 0.5rem; }
  header nav a { margin-left: 0.8rem; }
  .service-hero__inner { flex-direction: column; gap: 1.5rem; }
  .service-hero__icon { width: 80px; height: 80px; flex: 0 0 80px; }
  .service-hero h1 { font-size: 1.6rem; }
}
