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

html {
  scroll-behavior: smooth;
}

body {
  font-family: system-ui, Avenir, Helvetica, Arial, sans-serif;
  min-height: 100vh;
  background-color: #a9d6e5;
  color: #1a2a2e;
}

.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100px;
  padding: 0 48px;
  background-color: #fff;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
  color: black;
  position: sticky;
  top: 0;
  z-index: 100;
}

.logo-container {
  width: 150px;
  height: 150px;
}
.logo-container img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.8rem;
  cursor: pointer;
  color: #1a2a2e;
}

.nav-container {
  display: flex;
  gap: 32px;
}
.nav-container a {
  color: black;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.2s;
}
.nav-container a:hover {
  color: #f57c00;
}

.hero {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 100px 40px;
  background-color: #2b5e78;
  color: #fff;
}
.hero h1 {
  font-size: 2.8rem;
  font-weight: 700;
  margin-bottom: 8px;
}
.hero p {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.8);
  max-width: 600px;
  margin: 0 auto 32px;
  line-height: 1.7;
}
.hero-subtitle {
  font-size: 1.3rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.95);
  margin-bottom: 8px;
}

.cta-btn {
  display: inline-block;
  padding: 14px 40px;
  font-size: 1rem;
  font-weight: 600;
  border: none;
  border-radius: 8px;
  background-color: #f57c00;
  color: black;
  cursor: pointer;
  text-decoration: none;
  transition:
    background-color 0.2s,
    transform 0.2s;
}
.cta-btn:hover {
  background-color: #e06800;
  transform: translateY(-2px);
}
.cta-btn-large {
  padding: 18px 48px;
  font-size: 1.1rem;
}

section[id] {
  scroll-margin-top: 100px;
}

.section-title {
  text-align: center;
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 48px;
  color: #1a2a2e;
}
.section-title-light {
  color: #fff;
}

.section-intro {
  text-align: center;
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.85);
  max-width: 700px;
  margin: -32px auto 40px;
  line-height: 1.7;
}
.section-intro-dark {
  color: #4a5a5e;
}

.about {
  padding: 80px 40px;
  background-color: #fff;
}
.about-container {
  max-width: 1100px;
  margin: 0 auto;
}
.about-content {
  display: flex;
  gap: 48px;
  align-items: flex-start;
}
.about-text {
  flex: 1;
}
.about-text p {
  font-size: 1rem;
  color: #3a4a4e;
  line-height: 1.8;
  margin-bottom: 16px;
}
.about-text strong {
  color: #1a2a2e;
}
.about-highlights {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.highlight-card {
  background: #f5f9fb;
  border-radius: 10px;
  padding: 24px;
  border-left: 4px solid #f57c00;
}
.highlight-card h3 {
  font-size: 1.05rem;
  color: #1a2a2e;
  margin-bottom: 8px;
}
.highlight-card p {
  font-size: 0.9rem;
  color: #4a5a5e;
  line-height: 1.6;
}

.highlight-icon {
  font-size: 1.4rem;
  margin-bottom: 4px;
  display: block;
}

.services {
  padding: 80px 40px;
  background-color: #a9d6e5;
}
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  max-width: 1100px;
  margin: 0 auto;
}

.service-card {
  background: #fff;
  border-radius: 12px;
  padding: 32px 24px;
  text-align: center;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  transition:
    transform 0.2s,
    box-shadow 0.2s;
  border-top: 3px solid #f57c00;
}
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}
.service-card h3 {
  font-size: 1.1rem;
  margin-bottom: 10px;
  color: #1a2a2e;
}
.service-card p {
  font-size: 0.9rem;
  color: #4a5a5e;
  line-height: 1.7;
}

.service-icon {
  font-size: 2.2rem;
  margin-bottom: 12px;
  color: #f57c00;
}

.climate-types {
  padding: 80px 40px;
  background-color: #2b5e78;
  color: #fff;
}

.types-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px;
  max-width: 800px;
  margin: 0 auto 48px;
}

.type-card {
  background: #365c72;
  backdrop-filter: blur(4px);
  border-radius: 12px;
  padding: 32px;
  border: 1px solid rgba(255, 255, 255, 0.2);
}
.type-card h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: #fff;
}
.type-card p {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.7;
}

.climate-details {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}
.climate-details h3 {
  font-size: 1.2rem;
  margin-bottom: 20px;
}

.detail-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-bottom: 24px;
}

.tag {
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 20px;
  padding: 8px 20px;
  font-size: 0.9rem;
  color: #fff;
}

.climate-note {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.7;
  font-style: italic;
}

.heat-pumps {
  padding: 80px 40px;
  background-color: #fff;
}

.hp-types-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 28px;
  max-width: 1100px;
  margin: 0 auto 64px;
}

.hp-card {
  background: #f5f9fb;
  border-radius: 12px;
  padding: 32px;
  border-top: 3px solid #2b5e78;
}
.hp-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: #1a2a2e;
  margin-bottom: 12px;
}
.hp-card p {
  font-size: 0.9rem;
  color: #4a5a5e;
  line-height: 1.7;
}

.hp-benefits {
  max-width: 1100px;
  margin: 0 auto 64px;
}
.hp-benefits h3 {
  text-align: center;
  font-size: 1.5rem;
  font-weight: 700;
  color: #1a2a2e;
  margin-bottom: 32px;
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}

.benefit {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 20px;
  background: #a9d6e5;
  border-radius: 10px;
}
.benefit h4 {
  font-size: 1rem;
  font-weight: 600;
  color: #1a2a2e;
  margin-bottom: 6px;
}
.benefit p {
  font-size: 0.88rem;
  color: #2a3a3e;
  line-height: 1.6;
}
.benefit-icon {
  font-size: 1.6rem;
  flex-shrink: 0;
}

.hp-important {
  max-width: 800px;
  margin: 0 auto;
  background: #fff8f0;
  border: 2px solid #f57c00;
  border-radius: 12px;
  padding: 40px;
}
.hp-important h3 {
  font-size: 1.3rem;
  font-weight: 700;
  color: #e06800;
  margin-bottom: 16px;
}
.hp-important-intro {
  font-size: 0.95rem;
  color: #4a5a5e;
  line-height: 1.7;
  margin-bottom: 20px;
}

.important-list {
  list-style: none;
  counter-reset: item;
  padding: 0;
  margin-bottom: 24px;
}
.important-list li {
  counter-increment: item;
  padding: 10px 0 10px 36px;
  position: relative;
  font-size: 0.95rem;
  color: #1a2a2e;
  border-bottom: 1px solid #f0e0d0;
}
.important-list li::before {
  content: counter(item);
  position: absolute;
  left: 0;
  top: 10px;
  width: 24px;
  height: 24px;
  background: #f57c00;
  color: #fff;
  border-radius: 50%;
  font-size: 0.8rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}
.important-list li:last-child {
  border-bottom: none;
}

.important-warning {
  font-size: 0.95rem;
  font-weight: 600;
  color: #753800;
  line-height: 1.6;
  padding: 16px;
  background: #ffecdb;
  border-radius: 8px;
}

.gallery {
  padding: 80px 40px;
  background-color: #a9d6e5;
}
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
  max-width: 1100px;
  margin: 0 auto;
  transition: opacity 0.25s ease;
}
.gallery-item {
  display: block;
  border-radius: 10px;
  overflow: hidden;
  aspect-ratio: 4/3;
  cursor: pointer;
  transition:
    transform 0.2s,
    box-shadow 0.2s;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}
.gallery-item:hover {
  transform: scale(1.03);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.gallery-pager {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  max-width: 1100px;
  margin: 24px auto 8px;
}
.gallery-pager button {
  background-color: #f57c00;
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 8px 16px;
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
  transition:
    background-color 0.2s,
    opacity 0.2s;
}
.gallery-pager button:hover:not(:disabled) {
  background-color: #e06800;
}
.gallery-pager button:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
.gallery-page-info {
  font-weight: 600;
  color: #023047;
  min-width: 60px;
  text-align: center;
}

.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.9);
  z-index: 1000;
  align-items: center;
  justify-content: center;
}
.lightbox.active {
  display: flex;
}
.lightbox-img {
  max-width: 90vw;
  max-height: 85vh;
  border-radius: 8px;
  object-fit: contain;
}
.lightbox-close {
  position: absolute;
  top: 20px;
  right: 30px;
  background: none;
  border: none;
  color: #fff;
  font-size: 2.5rem;
  cursor: pointer;
  transition: color 0.2s;
}
.lightbox-close:hover {
  color: #f57c00;
}
.lightbox-prev,
.lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: #fff;
  font-size: 2rem;
  padding: 16px 20px;
  cursor: pointer;
  border-radius: 8px;
  transition: background 0.2s;
}
.lightbox-prev:hover,
.lightbox-next:hover {
  background: rgba(255, 255, 255, 0.25);
}
.lightbox-prev {
  left: 20px;
}
.lightbox-next {
  right: 20px;
}

.cta-section {
  padding: 80px 40px;
  background-color: #2b5e78;
  text-align: center;
  color: #fff;
}
.cta-section h2 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 16px;
}
.cta-section p {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 32px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.contact {
  padding: 80px 40px;
  background-color: #2b5e78;
}
.contact-container {
  display: flex;
  gap: 48px;
  max-width: 1100px;
  margin: 0 auto;
  align-items: flex-start;
}
.contact-info {
  flex: 1;
  color: rgba(255, 255, 255, 0.85);
}
.contact-info h3 {
  font-size: 1.4rem;
  color: #fff;
  margin-bottom: 20px;
}
.contact-info p {
  font-size: 0.95rem;
  line-height: 2;
}
.contact-info strong {
  color: #fff;
}

.footer-social {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin-top: 14px;
  background-color: #1877f2;
  color: #fff;
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
  transition:
    background-color 0.2s,
    transform 0.2s,
    box-shadow 0.2s;
}
.footer-social:hover {
  background-color: #145dc1;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(24, 119, 242, 0.45);
}
.footer-social svg {
  width: 22px;
  height: 22px;
  display: block;
}
.contact-form {
  width: 100%;
  flex: 1;
  background: #fff;
  border-radius: 12px;
  padding: 36px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}
.contact-form h3 {
  font-size: 1.3rem;
  color: #1a2a2e;
  margin-bottom: 24px;
}

.form-group {
  margin-bottom: 20px;
}
.form-group label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: #1a2a2e;
  margin-bottom: 6px;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  font-size: 0.95rem;
  border: 1px solid #d0dde2;
  border-radius: 8px;
  font-family: inherit;
  color: #1a2a2e;
  transition: border-color 0.2s;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #2b5e78;
  box-shadow: 0 0 0 3px rgba(97, 165, 194, 0.15);
}
.form-group textarea {
  resize: vertical;
}

.form-status {
  margin-top: 16px;
  font-size: 0.9rem;
  font-weight: 600;
}
.form-status.success {
  color: #2e7d32;
}
.form-status.error {
  color: #c62828;
}

.footer {
  background-color: #1a2a2e;
  color: rgba(255, 255, 255, 0.7);
  padding: 60px 40px 0;
}
.footer-content {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 40px;
  max-width: 1100px;
  margin: 0 auto;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.footer-col h3 {
  color: #f57c00;
  font-size: 1.4rem;
  margin-bottom: 12px;
}
.footer-col h4 {
  color: #fff;
  margin-bottom: 12px;
}
.footer-col p {
  font-size: 0.9rem;
  line-height: 1.8;
}
.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.footer-nav a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s;
}
.footer-nav a:hover {
  color: #f57c00;
}
.footer-bottom {
  text-align: center;
  padding: 20px 0;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.7);
}

/* --- Ajánlatkérő popup (quote modal) --- */
.quote-modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  z-index: 1100;
  align-items: flex-start;
  justify-content: center;
  padding: 40px 16px;
  overflow-y: auto;
}
.quote-modal.active {
  display: flex;
}
.quote-modal-dialog {
  position: relative;
  background: #fff;
  border-radius: 14px;
  width: 100%;
  max-width: 760px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
  padding: 36px 36px 28px;
  margin: 0 auto;
  animation: quoteModalIn 0.25s ease-out;
}
@keyframes quoteModalIn {
  from {
    transform: translateY(-12px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}
.quote-modal-close {
  position: absolute;
  top: 12px;
  right: 16px;
  background: none;
  border: none;
  font-size: 2rem;
  line-height: 1;
  color: #4a5a5e;
  cursor: pointer;
  transition: color 0.2s;
}
.quote-modal-close:hover {
  color: #f57c00;
}
.quote-modal-header {
  margin-bottom: 24px;
  padding-right: 32px;
}
.quote-modal-header h2 {
  font-size: 1.5rem;
  color: #1a2a2e;
  margin-bottom: 8px;
}
.quote-modal-header p {
  font-size: 0.95rem;
  color: #4a5a5e;
  line-height: 1.5;
}

.quote-fieldset {
  border: 1px solid #d0dde2;
  border-radius: 10px;
  padding: 20px 24px 8px;
  margin-bottom: 20px;
}
.quote-fieldset legend {
  font-weight: 700;
  color: #1a2a2e;
  padding: 0 8px;
  font-size: 1rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.form-row .form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: #1a2a2e;
  margin-bottom: 8px;
}

.form-options {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
}
.form-radio {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.92rem;
  color: #1a2a2e;
  cursor: pointer;
  user-select: none;
}
.form-radio input {
  accent-color: #f57c00;
  cursor: pointer;
}
.form-suboption {
  margin-top: 10px;
}

.quote-form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 8px;
  flex-wrap: wrap;
}
.cta-btn-secondary {
  background-color: #d0dde2;
  color: #1a2a2e;
}
.cta-btn-secondary:hover {
  background-color: #b8c8ce;
}

#quote-form-status {
  margin-top: 12px;
  text-align: right;
}

body.modal-open {
  overflow: hidden;
}

.quote-success {
  text-align: center;
  padding: 32px 12px 16px;
}
.quote-success-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 20px;
  border-radius: 50%;
  background: #e6f4ea;
  color: #2e7d32;
  font-size: 2.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}
.quote-success h2 {
  font-size: 1.6rem;
  color: #1a2a2e;
  margin-bottom: 12px;
}
.quote-success p {
  font-size: 1rem;
  color: #4a5a5e;
  line-height: 1.6;
  max-width: 480px;
  margin: 0 auto 28px;
}
.quote-success .cta-btn {
  min-width: 160px;
}

@media (max-width: 600px) {
  .quote-modal-dialog {
    padding: 28px 20px 20px;
  }
  .quote-modal-header h2 {
    font-size: 1.2rem;
  }
  .form-row {
    grid-template-columns: 1fr;
  }
  .quote-fieldset {
    padding: 16px 14px 4px;
  }
}

@media (max-width: 1000px) {
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .header {
    padding: 0 20px;
  }
  .menu-toggle {
    display: block;
  }
  .nav-container {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    flex-direction: column;
    padding: 20px;
    gap: 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  }
  .nav-container.open {
    display: flex;
  }
  .hero {
    padding: 64px 24px;
  }
  .hero h1 {
    font-size: 2rem;
  }
  .about-content {
    flex-direction: column;
  }
  .services-grid,
  .hp-types-grid,
  .benefits-grid {
    grid-template-columns: 1fr;
  }
  .types-grid {
    grid-template-columns: 1fr;
  }
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .contact-container {
    flex-direction: column;
  }
  .footer-content {
    flex-direction: column;
  }
  .hp-important {
    padding: 24px;
  }
  .lightbox-prev,
  .lightbox-next {
    padding: 12px 14px;
    font-size: 1.4rem;
  }
}
