:root {
  --primary: #1f73e4;
  --success: #28a745;
  --header-h: 60px;
  --spacing: 1rem;
  --radius: 4px;
  --transition: 0.3s;
}

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

/* Typography & Body */
body {
  font-family: 'Helvetica Neue', Arial, sans-serif;
  color: #333;
  line-height: 1.6;
  background: #f8faff;
  padding-top: var(--header-h);
}
a:focus, button:focus {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

/* Container */
.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

/* Header */
.site-header {
  background: #ffffff;
  border-bottom: 3px solid var(--primary);
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-h);
  z-index: 1000;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}
.site-header .container {
  max-width: 1000px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}
.logo img {
  height: calc(var(--header-h) * 0.66);
}
.site-nav {
  display: flex;
  align-items: center;
}
.site-nav a {
  margin-left: var(--spacing);
  padding: 0.4rem 0.8rem;
  text-decoration: none;
  color: #fff;
  background: var(--primary);
  border-radius: var(--radius);
  font-weight: 600;
  transition: background var(--transition);
}
.site-nav a:hover {
  background: #004a9e;
}
.site-nav a[href$="contact.php"] {
  background: var(--success);
}
.site-nav a[href$="contact.php"]:hover {
  background: #218838;
}

/* Hamburger */
.nav-toggle {
  position: absolute;
  top: 50%;
  right: var(--spacing);
  transform: translateY(-50%);
  background: none;
  border: none;
  padding: var(--spacing);
  display: none;
  z-index: 1100;
}
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  display: block;
  background: var(--primary);
  height: 3px;
  width: 25px;
  border-radius: 2px;
  position: relative;
}
.nav-toggle span::before,
.nav-toggle span::after {
  content: '';
  position: absolute;
  left: 0;
}
.nav-toggle span::before { top: -8px; }
.nav-toggle span::after  { top: 8px; }

/* Hero Section */
.hero {
  padding: 6rem 0;
  background: #eef5fc;
  text-align: center;
}
.hero h1 {
  font-size: clamp(2rem, 5vw, 2.75rem);
  margin-bottom: 1rem;
  color: var(--primary);
}
.hero p {
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  margin-bottom: 1.5rem;
}
.hero-logo {
  text-align: center;
  margin-bottom: calc(var(--spacing) * 2);
}
.hero-logo img {
  max-height: 80px;
  width: auto;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.75rem 1.75rem;
  background: var(--primary);
  color: #fff;
  text-decoration: none;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  transition: transform 0.1s ease, box-shadow 0.2s ease;
}
.btn:hover {
  box-shadow: 0 6px 8px rgba(0,0,0,0.15);
}
.btn:active {
  transform: translateY(2px);
  box-shadow: 0 2px 3px rgba(0,0,0,0.1);
}

/* References Section */
.references h2 {
  text-align: center;
  margin-bottom: 1.5rem;
  color: var(--primary);
}
.references .gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: var(--spacing);
}
.gallery-item img {
  width: 100%;
  height: auto;
  object-fit: contain;
  border-radius: var(--radius);
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition);
}
.gallery-item img:hover,
.gallery-item img:focus {
  transform: scale(1.03);
  box-shadow: 0 8px 16px rgba(0,0,0,0.2);
}

/* Pagination */
.pagination {
  text-align: center;
  margin: 2rem 0;
}
.pagination .btn {
  margin: 0 0.5rem;
}

/* Lightbox overlay */
#lightbox-overlay {
  display: none;
  position: fixed !important;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.9);
  align-items: center;
  justify-content: center;
  padding: var(--spacing);
  z-index: 9999 !important;
}
#lightbox-overlay img {
  max-width: 90%;
  max-height: 90%;
  border-radius: var(--radius);
}

#lightbox-prev,
#lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(31,115,228,0.8);
  border: none;
  padding: 1rem;
  color: #fff;
  font-size: 2rem;
  cursor: pointer;
  border-radius: 50%;
  z-index: 2100;
}

#lightbox-prev:hover,
#lightbox-next:hover {
  background: rgba(31,115,228,1);
}
#lightbox-prev { left: 1rem; }
#lightbox-next { right: 1rem; }
#lightbox-close {
  position: absolute;
  top: var(--spacing);
  right: var(--spacing);
  font-size: 2.5rem;
  color: #fff;
  cursor: pointer;
  z-index: 2100;
}

/* Contact Form */
.contact {
  padding: 3rem 0;
  background: #ffffff;
  border-radius: var(--radius);
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}
.contact h2 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
  color: var(--primary);
  text-align: center;
}
.contact form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing);
}
.contact input,
.contact textarea {
  padding: 0.75rem;
  border: 1px solid #ccc;
  border-radius: var(--radius);
  font-size: 1rem;
  width: 100%;
}
.contact textarea {
  grid-column: span 2;
  resize: none;
}
.contact button.btn {
  grid-column: span 2;
  justify-self: center;
}
.contact form input:focus,
.contact form textarea:focus {
  border-color: var(--primary);
  outline: none;
}

/* Map */
.map-container {
  margin-top: 2rem;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* Footer */
.site-footer {
  background: var(--primary);
  color: #fff;
  text-align: center;
  padding: 2rem 0;
  margin-top: 4rem;
}
.site-footer a {
  color: #fff;
  text-decoration: underline;
}
.footer-links {
  margin-top: var(--spacing);
  font-size: 0.9rem;
}

/* Call Now Mobile Button */
.call-now-mobile {
  display: none;
  text-align: center;
  margin-top: var(--spacing);
}
.call-now-mobile .call-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  background: var(--success);
  border-radius: 50%;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  color: #fff;
  text-decoration: none;
  animation: pulse 2s infinite ease-in-out;
  transition: box-shadow var(--transition);
}
.call-now-mobile .call-btn:hover {
  box-shadow: 0 6px 16px rgba(0,0,0,0.3);
}
.call-now-mobile .call-btn svg {
  width: 1.2rem;
  height: 1.2rem;
  fill: currentColor;
}
@keyframes pulse {
  0%,100% { transform: scale(1); }
  50%     { transform: scale(1.1); }
}
@media (max-width: 768px) {
  .call-now-mobile { display: block; }
}

/* Business Card Download */
.download-card {
  text-align: center;
  margin-bottom: var(--spacing);
}
.download-card p {
  margin-bottom: 0.5rem;
  font-size: 1rem;
  color: #333;
}
.btn--download {
  background: var(--success);
  color: #fff;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius);
  font-weight: 600;
  transition: background var(--transition), transform var(--transition);
}
.btn--download:hover {
  background: #218838;
  transform: translateY(-2px);
}
.btn--download:active {
  transform: translateY(0);
}

/* About Us */
.aboutus h2 {
  text-align: center;
  margin: 2rem 0;
  color: var(--primary);
}
.aboutus p {
  text-align: justify;
  margin-bottom: 1rem;
}
.aboutus .spaced {
  margin-top: 3rem;
}
.aboutus .container > ul {
  list-style: none;
  margin: 2rem 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(5, auto);
  grid-auto-flow: column;
  gap: var(--spacing) 2rem;
}
.aboutus .container > ul li {
  background: #eef5fc;
  padding: 0.75rem 1rem;
  border-radius: var(--radius);
  text-align: center;
  font-weight: 500;
  color: #0056b3;
}

/* Terms & Conditions */
.terms {
  background: #fff;
  padding: 4rem 0;
}
.terms .container {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 var(--spacing);
}
.terms h2 {
  text-align: center;
  color: var(--primary);
  margin-bottom: 2rem;
  font-size: 2rem;
}
.terms h3 {
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  color: var(--primary);
  font-size: 1.25rem;
}
.terms p {
  margin-bottom: 1rem;
  line-height: 1.6;
}
.terms ul {
  list-style: none;
  padding: 0;
  margin-bottom: 1rem;
}
.terms ul li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.5rem;
}
.terms ul li::before {
  content: "•";
  position: absolute;
  left: 0;
  top: 0.1em;
  color: var(--primary);
  font-size: 1.2rem;
}
.terms a {
  color: var(--primary);
  text-decoration: underline;
}
.terms a:hover {
  color: #004a9e;
}

/* Privacy Policy */
.privacy-policy {
  background: #fff;
  padding: 4rem 0;
}
.privacy-policy .container {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 var(--spacing);
}
.privacy-policy h2 {
  text-align: center;
  color: var(--primary);
  margin-bottom: 2rem;
  font-size: 2rem;
}
.privacy-policy h3 {
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  color: var(--primary);
  font-size: 1.25rem;
}
.privacy-policy p {
  margin-bottom: 1rem;
  line-height: 1.6;
}
.privacy-policy ul {
  list-style: none;
  padding: 0;
  margin-bottom: 1rem;
}
.privacy-policy ul li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.5rem;
}
.privacy-policy ul li::before {
  content: "•";
  position: absolute;
  left: 0;
  top: 0.1em;
  color: var(--primary);
  font-size: 1.2rem;
}
.privacy-policy a {
  color: var(--primary);
  text-decoration: underline;
}
.privacy-policy a:hover {
  color: #004a9e;
}

/* Cookie Banner */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: rgba(31,115,228,0.95);
  color: #fff;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  padding: 1rem;
  font-size: 0.9rem;
  z-index: 9999;
  transform: translateY(100%);
  transition: transform 0.3s ease-in-out;
}
.cookie-banner.show {
  transform: translateY(0);
}
.cookie-banner p {
  margin: 0;
  flex: 1 1 auto;
}
.cookie-banner a {
  color: #fff;
  text-decoration: underline;
  margin-left: 0.5rem;
}
.cookie-btn {
  background: var(--success);
  color: #fff;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: var(--radius);
  cursor: pointer;
  flex: 0 0 auto;
  margin-left: 1rem;
  transition: background 0.2s;
}
.cookie-btn:hover {
  background: #218838;
}

/* Responsive Adjustments */
@media (max-width: 992px) {
  .contact form { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .site-header .container { flex-direction: column; height: auto; padding: 0.5rem 0; }
  .site-nav { display: none; flex-direction: column; width: 100%; background: #fff; border-top: 1px solid #ddd; }
  .site-nav.open { display: flex; }
  .site-nav a { margin: 0.5rem 0; }
  .nav-toggle { display: block; }
  .gallery-grid { grid-template-columns: 1fr; }
  #lightbox-prev, #lightbox-next { padding: 0.5rem; font-size: 1.5rem; }
  .aboutus .container > ul { grid-template-columns: repeat(2, 1fr); grid-auto-flow: row; gap: var(--spacing) 1rem; }
}

/* ==== Testimonials Carousel Styling ==== */
.testimonials {
  background: #f9faff;
  padding: 4rem 0;
}
.testimonials h2 {
  text-align: center;
  color: var(--primary);
  font-size: 2rem;
  margin-bottom: 2rem;
}
.testimonials-container {
  position: relative;
}

.testimonial-carousel {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
  overflow: hidden;
}
.testimonials-wrapper {
  position: relative;
  height: 320px;
}
.testimonial {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  padding: calc(var(--spacing)*2);
  background: #fff;
  border-radius: var(--radius);
  box-shadow: 0 8px 24px rgba(0,0,0,0.1);
  opacity: 0;
  transform: scale(0.96);
  transition: opacity var(--transition), transform var(--transition);
  text-align: center;
}
.testimonial.active {
  opacity: 1;
  transform: scale(1);
}
/* Csillagok és arány */
.testimonial-rating {
  margin-bottom: 1rem;
  font-size: 1.25rem;
  color: #ffc107;
}
.testimonial-rating .stars {
  letter-spacing: 0.1rem;
}
.testimonial-rating .ratio {
  margin-left: 0.5rem;
  color: #666;
  font-size: 0.9rem;
  vertical-align: middle;
}
.testimonial-text {
  font-style: italic;
  font-size: 1.125rem;
  line-height: 1.6;
  color: #444;
  margin-bottom: 1.5rem;
}
.testimonial-author {
  font-weight: 600;
  color: var(--primary);
}
/* Navigációs gombok */
.testimonial-carousel .prev,
.testimonial-carousel .next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: var(--primary);
  border: none;
  color: #fff;
  font-size: 1.5rem;
  width: 2.5rem; height: 2.5rem;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition), transform var(--transition);
}
.testimonial-carousel .prev:hover,
.testimonial-carousel .next:hover {
  background: var(--success);
  transform: translateY(-50%) scale(1.1);
}
.testimonial-carousel .prev { left: var(--spacing); }
.testimonial-carousel .next { right: var(--spacing); }
/* Mobilon */
@media (max-width: 768px) {
  .testimonials-wrapper { height: auto; }
  .testimonial { position: relative; margin: 0 auto; }
  .testimonial-carousel .prev,
  .testimonial-carousel .next {
    width: 2rem; height: 2rem; font-size: 1.25rem;
  }
  .testimonial-rating { font-size: 1rem; }
  .testimonial-text { font-size: 1rem; }
}

/* ==== Site Banner ==== */
.site-banner {
  width: 100%;
  overflow: hidden;
  margin-bottom: var(--spacing);
}
.site-banner img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
  border-bottom: 3px solid var(--primary);
}
/* Mobile tweak */
@media (max-width: 768px) {
  .site-banner img {
    object-position: center top;
  }
}.success {  color: #155724;  background: #d4edda;  padding: 1rem;  border-radius: 4px;  margin-bottom: 1.5rem;  text-align: center;}.error {  color: #721c24;  background: #f8d7da;  padding: 1rem;  border-radius: 4px;  margin-bottom: 1.5rem;  text-align: center;}

#lightbox-overlay,
#lightbox-prev,
#lightbox-next,
#lightbox-close {
  display: none;
}

#lightbox-overlay.active {
  display: flex;
}

#lightbox-overlay.active #lightbox-prev,
#lightbox-overlay.active #lightbox-next,
#lightbox-overlay.active #lightbox-close {
  display: block;
}

@media (max-width: 768px) {
  .testimonials-wrapper {
    height: 340px; /* fix vagy min-height, ahogy jól néz ki */
    position: relative;
  }
  .testimonial {
    position: absolute !important;
    top: 0;
    left: 0;
    width: 100%;
  }
}


#lightbox-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  flex-direction: column;
  padding: 1rem;
}

#lightbox-overlay.active {
  display: flex;
}

#lightbox-img {
  max-width: 90%;
  max-height: 90vh;
  border-radius: 8px;
  box-shadow: 0 0 30px rgba(0,0,0,0.5);
}

#lightbox-prev,
#lightbox-next,
#lightbox-close {
  position: absolute;
  background: none;
  border: none;
  color: white;
  font-size: 2.5rem;
  cursor: pointer;
  z-index: 10000;
}

#lightbox-prev {
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
}

#lightbox-next {
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
}

#lightbox-close {
  top: 10px;
  right: 20px;
  font-size: 3rem;
}


