:root {
  --color-primary: #9b59b6; /* Amethyst */
  --color-primary-dark: #8e44ad; /* Wisteria */
  --color-background: #ecf0f1; /* Clouds */
  --color-border: #bdc3c7; /* Silver */
  --color-muted-text: #95a5a6; /* Concrete */
  --color-success: #2ecc71; /* Emerald */
  --color-warning: #f1c40f; /* Sun Flower */
  --color-error: #e74c3c; /* Alizarin */
  --color-accent: #2980b9; /* Belize Hole */

  --color-contact-btn-hover-shadow: rgba(138, 43, 226, 0.4);
  --color-hero-content-bg: rgba(0, 0, 0, 0.6);

  --primary-color: #333333;
  --accent-color: #555555;
  --text-color: #333333;
  --secondary-text-color: #555555;
  --border-color: #cccccc;
  --hover-bg-color: #f5f5f5;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Verdana, sans-serif;
  background-color: var(--color-background);
  color: #333;
}

header {
  background: var(--color-primary-dark);
  color: white;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 1rem;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.logo img {
  height: 40px;
}

.disabled {
  /* opacity: 0.6; */
  cursor: default;
  background-color: #ccc;
  color: #666;
}

.menu {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 1.1rem;
  margin: 0;
  padding: 0;
  width: 100%;
  position: relative;
}

.menu li {
  margin-left: 1rem;
}

.menu a {
  color: white;
  text-decoration: none;
  font-weight: bold;
  font-size: 0.85rem;
  padding: 0.5rem;
  min-width: 120px;
  white-space: nowrap;
}

.menu a:hover,
.menu .cta-link {
  background: var(--color-primary);
  border-radius: 4px;
}

.menu-toggle {
  display: none;
  font-size: 2rem;
  background: none;
  border: none;
  color: white;
  cursor: pointer;
  margin-left: auto;
}

@media (max-width: 768px) {
  .menu {
    display: none;
    flex-direction: column;
    background: var(--color-primary-dark);
    position: absolute;
    top: 60px;
    right: 0;
    width: 200px;
    border-radius: 0 0 0 8px;
    padding: 1rem;
  }

  .menu li {
    margin: 0.5rem 0;
  }

  .menu a {
    color: white;
    font-weight: normal;
    display: block;
  }

  .menu-toggle {
    display: block;
  }

  .menu.show {
    display: flex;
  }

  .contact-buttons {
    flex-direction: row;
    justify-content: center;
  }
  .content p {
    margin-bottom: 1em;
  }
  h2,
  h3 {
    margin-top: 1.5em;
  }
}

.section {
  padding: 4rem 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.section.alt {
  background-color: var(--color-border);
}

.hero {
  background: url("../assets/images/droga-do-bialego-domu-przez-park.jpg")
    center/cover repeat;
  color: white;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.hero-content {
  background: var(--color-hero-content-bg);
  padding: 2rem;
  border-radius: 8px;
}

.hero-content .btn-primary {
  margin-top: 2.5rem;
}

.content {
  display: flex;
  flex-wrap: wrap;
  max-width: 1200px;
  align-items: center;
  gap: 2rem;
}

.content ul {
  margin: 1em 0;
  padding-left: 1.5em;
  list-style-type: disc;
}

.content ul ul {
  list-style-type: circle;
  margin-top: 0.5em;
  padding-left: 1.2em;
}

.content li {
  margin-bottom: 0.4em;
  line-height: 1.5;
}

.text {
  flex: 1 1 400px;
  text-align: left;
}

.image {
  flex: 1 1 400px;
}

.image img {
  width: 100%;
  border-radius: 8px;
}

.btn-primary,
.btn-secondary {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  text-decoration: none;
  border-radius: 4px;
  font-weight: bold;
  border: none;
  box-shadow: none;
}

.btn-primary {
  background: var(--color-primary);
  color: white;
}

.btn-primary:hover {
  background: var(--color-primary-dark);
  box-shadow: 0 4px 8px var(--color-contact-btn-hover-shadow);
  color: white;
}

.btn-secondary {
  background: var(--color-border);
  color: #333;
}

.btn-secondary:hover {
  background: var(--color-primary);
  color: white;
}

.contact {
  background-color: var(--color-hero-content-bg);
  color: white;
  padding: 4rem 1rem;
}

.contact-buttons {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1rem;
}

footer {
  background: #333;
  color: white;
  text-align: center;
  padding: 1rem;
}

/* FAQ Section */
.faq-section {
  max-width: 1200px;
  margin: 50px auto;
  padding: 4rem 1rem;
}

.faq-section h2 {
  text-align: center;
  margin-bottom: 30px;
  color: var(--primary-color);
}

.faq-section details {
  border-bottom: 1px solid var(--border-color);
  padding: 0.5em 0;
}

.faq-section summary {
  list-style: none;
  cursor: pointer;
  font-size: 1.1rem;
  font-weight: bold;
  padding: 15px;
  color: var(--text-color);
  transition: background 0.3s ease, color 0.3s ease;
}

.faq-section summary:hover {
  background: var(--hover-bg-color);
}

.faq-section details[open] summary {
  color: var(--accent-color);
}

.faq-section details > p,
li {
  padding: 0 15px;
  font-size: 0.95rem;
  color: var(--secondary-text-color);
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-5px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

.faq-block {
  margin-top: 2rem;
  padding-top: 1rem;
}

.tooltip {
  border-bottom: 1px dotted #555;
  cursor: help;
  position: relative;
  color: inherit;
}

.tooltip:hover::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: 125%;
  left: 50%;
  transform: translateX(-50%);
  background-color: #333;
  color: #fff;
  padding: 6px 10px;
  border-radius: 4px;
  white-space: nowrap;
  font-size: 0.85em;
  z-index: 10;
  opacity: 0;
  animation: fadeIn 0.3s forwards;
}

@keyframes fadeIn {
  to {
    opacity: 1;
  }
}

.contact-email a,
.faq-section a {
  color: inherit;
  /* text-decoration: none; */
  font-weight: 500;
  transition: color 0.2s;
}

.contact-email a:hover,
.faq-section a:hover {
  color: var(--color-primary);
  text-decoration: underline;
}
