/* Alap beállítások */
/*Fonts */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Lato';
  font-style: normal;
  font-weight: 300;
  src: url('../fonts/lato-v24-latin-300.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Dancing Script';
  font-style: normal;
  font-weight: 600;
  src: url('../fonts/dancing-script-v28-latin-600.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-color: #ddc6b2;
    --secondary-color: #314a3b;
    --btn-primary-bg: #637867;
    --btn-primary-hover-bg: #314a3b;
    --text-light: #ffffff;
    --transition: 0.3s cubic-bezier(.5,.2,.2,1);
    --primary-color: #637867;
    --hover-color: #4d5f4e;
    --radius: 24px;
    --shadow: 0 12px 36px rgba(49, 74, 59, 0.09);
    --font-header: 'Playfair Display', serif;
    --font-body: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  }
  
  body {
    margin: 0;
    background-color: #d8e6d3;
    background-image: url('../img/bg/black-thread-light.png');
    color: var(--secondary-color);
    font-family: var(--font-body);
    min-height: 100vh;
  }
/* Hero képes háttér, menü fölötte */
.hero {
  position: relative;
  height: 100vh;
  background: url('../img/hero/hero6.jpg') center center/cover no-repeat;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background-color: #f7f7f5; /* világos, koszos fehér háttér fallback */
  color: var(--secondary-color); /* sötétzöld szöveg */
}

.nav-bar {
  position: absolute;
  top: 0;
  left: 0; right: 0;
  padding: 1rem 1rem; /* bal és jobb 1rem */
  display: flex;
  align-items: center;
  justify-content: space-between; /* logó balra, menü jobbra */
  background: transparent;
  z-index: 20;
}

.logo img {
  height: 50px;
  transition: transform 0.3s ease, filter 0.3s ease;
  filter: drop-shadow(0 0 2px rgba(49, 74, 59, 0.2));
  margin-top: 1.25rem;
  margin-left: 1.25rem;
}
.logo img:hover {
  transform: scale(1.08);
  filter: drop-shadow(0 0 4px rgba(49, 74, 59, 0.3));
}
.nav-menu {
  list-style: none;
  display: flex;
  gap: 3.5rem; /* nagyobb távolság */
  margin: 0;
  padding: 0;
  margin-left: auto; /* tolja jobbra a menüt */
  margin-right: 3rem; /* kis jobb oldali margó */
  margin-top: 1.25rem;
}

.nav-menu li a {
  color: var(--secondary-color);
  text-decoration: none;
  font-weight: 600;
  font-size: 1.2rem; 
  position: relative;
  transition: color 0.3s ease;
  font-family: 'Lato', sans-serif;
}

.nav-menu li a:hover,
.nav-menu li a:focus {
  color: var(--primary-color);
}

.nav-menu li a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  background-color: var(--primary-color);
  left: 0;
  bottom: -6px;
  transition: width 0.3s ease;
}

.nav-menu li a:hover::after,
.nav-menu li a:focus::after {
  width: 100%;
}
.menu-toggle {
  border: none;
}
/* Hero overlay: halvány színes réteg a háttéren */
.hero-overlay {
  position: absolute;
  inset: 0;
  background-color: rgba(221, 198, 178, 0.4); /* áttetsző --bg-color */
  z-index: 10;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 2rem;
  text-align: center;
}

/* Hero szöveg */
.hero-text {
  max-width: 700px;
  color: var(--secondary-color);
}

.hero-text h1 {
  font-family: 'Dancing Script', cursive;
  font-size: 4.25rem; /* nagyobb méret */
  line-height: 1.1;
  margin-bottom: 1rem;
}

.hero-text .main-color {
  color: var(--primary-color);
}

.hero-text p {
  font-size: 1.4rem; /* nagyobb szöveg */
  margin-bottom: 2.5rem;
  margin-top: 1.5rem;
  font-weight: 500;
  color: var(--hover-color);
}

/* Gombok */
.hero-buttons {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  padding: 12px 28px;
  font-weight: 600;
  font-size: 1rem;
  border-radius: 30px;
  cursor: pointer;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 1.1px;
  transition: all 0.3s ease;
  display: inline-block;
  user-select: none;
  font-family: 'Inter', sans-serif;
  box-shadow: none;
}

.btn-main {
  background-color: var(--btn-primary-bg);
  color: var(--text-light);
  border: 2px solid transparent;
  box-shadow: 0 4px 10px rgba(99, 120, 103, 0.4);
}

.btn-main:hover,
.btn-main:focus {
  background-color: var(--btn-primary-hover-bg);
  color: var(--text-light);
  box-shadow: 0 8px 24px rgba(49, 74, 59, 0.6);
  transform: scale(1.05);
  outline: none;
  border-color: var(--btn-primary-hover-bg);
}

.btn-outline {
  background-color: transparent;
  color: var(--btn-primary-bg);
  border: 2px solid var(--btn-primary-bg);
  box-shadow: none;
}

.btn-outline:hover,
.btn-outline:focus {
  background-color: var(--btn-primary-bg);
  color: var(--text-light);
  box-shadow: 0 8px 24px rgba(99, 120, 103, 0.6);
  transform: scale(1.05);
  outline: none;
}

/* Mobilra reszponzív egyszerűsítés */
@media (max-width: 768px) {
  .nav-menu {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 60px;  /* nav magasság után */
    right: 1rem;
    background: rgba(255,255,255,0.95);
    padding: 1rem 2rem;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
    z-index: 100;
  }
    .logo img {
    margin-top: 0.5rem;
    margin-left: 0.5rem;
    height: 42px;
  }
  .nav-menu.active {
    display: flex;
  }
  .hero-text {
    padding-top: 6rem; /* vagy 5rem ha még kell hely */
  }
  .hero-text p {
    background-color: rgba(255, 255, 255, 0.60); /* áttetsző fehér */
    padding: 1rem;
    border-radius: 1rem;
    backdrop-filter: blur(3px); /* finom elmosás */
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05); /* halvány árnyék */
  }
  .menu-toggle {
    display: flex; 
    flex-direction: column;
    justify-content: space-around;
    width: 25px;
    height: 20px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 110;
  }

  .menu-toggle .line {
    width: 100%;
    height: 3px;
    background-color: var(--secondary-color);
    border-radius: 2px;
    transition: all 0.3s ease;
  }
}
  #about {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background-color: #f9f9f9;
    background-image: url("https://www.transparenttextures.com/patterns/clean-gray-paper.png");
    background-repeat: repeat;
    height: 100vh;
    min-height: 600px;
    overflow: hidden;
  }
  
  .about-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    height: 100%;
    max-width: 1200px;
    gap: 0;
    position: relative;
    z-index: 2;
  }
  
  .about-text {
    max-width: 750px;
    color: var(--secondary-color);
    padding: 2.5rem 4rem 2.5rem 2.5rem;
    border-radius: 22px 0 0 22px;
    box-shadow: 0 8px 32px rgba(99,120,103,0.08);
    line-height: 1.8;
    font-size: 1.15rem;
    position: relative;
    background: rgba(255,255,255,0.74);
    z-index: 2;
    backdrop-filter: blur(3px);
    margin-left: 0;
    margin-right: -70px;
    overflow: hidden;
    border-left: 10px solid var(--primary-color, #637867); /* vizuális sáv a kép felé */
    /* A szövegdoboz és a kép tökéletesen illeszkedik */
  }
  
  /* Dekoráció a textboxban: halvány színfolt vagy négyzet */
  .about-text-decor {
    position: absolute;
    top: 30px;
    left: -60px;
    width: 140px;
    height: 140px;
    background: rgba(99,120,103,0.08);
    border-radius: 24px;
    z-index: 1;
    transform: rotate(-11deg);
    pointer-events: none;
    box-shadow: 0 8px 24px rgba(99,120,103,0.10);
  }
  
  .about-text h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
    text-align: center;
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    letter-spacing: 1px;
    position: relative;
    z-index: 2;
  }
  
  .about-text ul {
    list-style: none;
    padding: 0;
    margin: 2rem 0 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
    position: relative;
    z-index: 2;
  }
  
  .about-text li {
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    color: var(--text-light);
    background-color: var(--primary-color);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    box-shadow: 1px 1px 4px rgba(0, 0, 0, 0.2);
    transition: transform 0.2s ease;
  }
  
  .about-text li:hover {
    transform: scale(1.05);
  }
  
  .about-text .icon {
    color: var(--text-light);
  }  
  .about-image-wrapper {
    flex: 1 1 0;
    height: 100%;
    display: flex;
    align-items: stretch;
    position: relative;
    z-index: 2;
  }
.about-image {
    position: relative;
    flex: 1;
    height: 100%;
    min-width: 320px;
    max-width: 520px;
    background-image: url('../img/intro/intro3.jpg');
    background-size: cover;
    background-position: center;
    clip-path: polygon(15% 0%, 100% 0%, 85% 100%, 0% 100%);
    border-radius: 24px;
    box-shadow: 4px 4px 20px rgba(99, 120, 103, 0.25);
    overflow: visible;
    z-index: 1;
}
/* Dekor négyzetek */
.decor-square {
    position: absolute;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(99, 120, 103, 0.12);
    pointer-events: none;
    z-index: 1;
  }
  
  .square1 {
    width: 160px;
    height: 160px;
    top: 50px;
    left: -70px;
    transform: rotate(14deg);
    background: rgba(99, 120, 103, 0.12);
  }
  
  .square2 {
    width: 100px;
    height: 100px;
    bottom: 50px;
    right: 4px;
    transform: rotate(-10deg);
    background: rgba(99, 120, 103, 0.12);
  }
  
  /* Blur overlay a kép tetején és alján */
  .about-image::before,
  .about-image::after {
    content: "";
    position: absolute;
    left: 0;
    width: 100%;
    height: 60px;
    pointer-events: none;
    filter: blur(14px);
    clip-path: polygon(15% 0%, 100% 0%, 85% 100%, 0% 100%);
    border-radius: 24px;
    z-index: 3;
  }
  
  .about-image::before {
    top: -40px;
    background: linear-gradient(to bottom, rgba(249, 249, 249, 0.9) 0%, rgba(249, 249, 249, 0) 100%);
  }
  
  .about-image::after {
    bottom: -40px;
    background: linear-gradient(to top, rgba(249, 249, 249, 0.9) 0%, rgba(249, 249, 249, 0) 100%);
  }
  
  /* Mobil nézet */
  @media (max-width: 900px) {
    #about {
      height: auto;
      min-height: 100vh;
      padding: 20px 0;
    }
    .about-container {
      flex-direction: column;
      height: auto;
      gap: 32px;
    }
    .about-image-wrapper {
      width: 100%;
      min-width: 0;
      max-width: 100vw;
      height: 40vh;
      margin: 0;
    }
    .about-image {
      width: 100%;
      height: 100%;
      clip-path: none;
      border-radius: 18px;
      margin: 0;
    }
    .about-image::before,
    .about-image::after {
      display: none;
    }
    @media (max-width: 900px) {
    .about-text {
    max-width: 90%;
    margin: 0 auto;          /* Balra tolás helyett középre */
    padding-bottom: 2rem;
    border-radius: 18px;
    border-left: none;
    text-align: center;      /* Opció: szöveg is középre */
    }

    .about-text-decor {
    display: none;
    }
    }
    }
    .about-text::after {
      display: none;
    }
/* Szolgáltatások Section */

#services {
    padding: 3rem 1rem;
    background-color: #f9f9f9;
    height: auto;
    background-image: url("https://www.transparenttextures.com/patterns/clean-gray-paper.png");
}

#services h3 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 2.5rem;
    margin-top: 6rem;
    color: var(--secondary-color);
}

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

/* YOUR ORIGINAL SERVICE-ITEM STYLES (unchanged) */
.service-item {
    text-align: center;
    padding: 2rem;
    background-color: var(--text-light);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    border: 2px solid transparent;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.service-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    border-color: var(--primary-color);
}

.service-item img {
    width: 60px;
    height: 60px;
    margin-bottom: 1rem;
    transition: filter 0.3s ease;
}

.service-item:hover img {
    filter: brightness(1.2);
}

.service-item h4 {
    font-size: 1.25rem;
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
}

.service-item p {
    font-size: 1rem;
    color: var(--secondary-color);
    margin: 0 auto;
    transition: color 0.3s ease;
}

.service-item:hover p {
    color: var(--primary-color);
}

.expand-btn {
    background-color: var(--primary-color);
    color: var(--text-light);
    border: none;
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    cursor: pointer;
    border-radius: 5px;
    margin-top: 1rem;
    margin-bottom: 1rem;
    transition: background-color 0.3s ease;
}

.expand-btn:hover {
    background-color: var(--hover-color);
}

/* MODIFIED SERVICE-ICON-ITEM WITH TEXT OVERFLIX FIXES */
.service-icons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(60px, 1fr));
    gap: 1rem;
    margin: 3rem 0;
    padding: 0 0.5rem; /* Add small padding on sides */
}

.service-icon-item {
    text-align: center;
    padding: 1rem 0.5rem; /* Reduced side padding */
    background-color: var(--text-light);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    border: 2px solid transparent;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    min-height: 90px; /* Ensure consistent height */
    display: flex;
    flex-direction: column;
    align-items: center;
}

.service-icon-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    border-color: var(--primary-color);
}

.service-icon-item img {
    width: 40px;
    height: 40px;
    transition: filter 0.3s ease;
}

.service-icon-item:hover img {
    filter: brightness(1.2);
}
.more-description {
  display: none;
  margin-top: 1rem;
  color: var(--secondary-color);
  font-size: 0.9rem;
  text-align: center;
}

.more-description.show {
  display: block;
}

.service-icon-item p {
    font-size: 0.9rem;
    color: var(--secondary-color);
    margin-top: 0.5rem;
    word-break: break-word;
    overflow-wrap: break-word;
    width: 100%;
}

/* PHONE-SPECIFIC FIXES */
@media (max-width: 480px) {
    .service-icon-item {
        padding: 0.8rem 0.3rem;
        min-height: 85px;
    }
    
    .service-icon-item p {
        font-size: 0.725rem;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
}

/* YOUR EXISTING MEDIA QUERIES (unchanged) */
@media (max-width: 768px) {
    #services h3 {
        font-size: 2rem;
    }

    .services-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }

    .service-item img {
        width: 50px;
        height: 50px;
    }

    .service-item h4 {
        font-size: 1rem;
    }
}

/* Árlista Section */
#price-list {
  padding: 40px 20px;
  max-width: 800px;
  margin: 0 auto;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  position: relative;
  overflow: hidden; /
}

#price-list::before {
  content: "";
  position: absolute;
  top: 11%;
  bottom: 10%;
  left: 25%;
  right: 25%;
  background-image: 
    linear-gradient(to right, rgba(0,0,0,0.1) 1px, transparent 1px);
  background-size: 1px 100%;
  pointer-events: none;
  z-index: 0;
}

#price-list h1 {
  font-size: 2.2rem;
  text-align: center;
  margin-bottom: 40px;
  color: var(--secondary-color);
}

.category {
  position: relative;
  margin-bottom: 50px;
  padding: 25px 30px;
  background-color: #fafafa;
  border-radius: 12px;
  overflow: hidden; /* hogy a pszeudo-elemek ne lógjanak ki */
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Bal felső sarok */
.category::before,
.category::after {
  content: '';
  position: absolute;
  width: 40px;
  height: 40px;
  border: 2px solid var(--btn-primary-bg);
}

.category::before {
  top: 0;
  left: 0;
  border-right: none;
  border-bottom: none;
  border-top-left-radius: 12px;
}

.category::after {
  bottom: 0;
  right: 0;
  border-left: none;
  border-top: none;
  border-bottom-right-radius: 12px;
}


.category h2 {
  font-size: 1.5rem;
  color: #444;
  border-bottom: 1px solid #ddd;
  padding-bottom: 10px;
  margin-bottom: 20px;
}

.category ul.price-items {
  list-style: none;
  padding: 0;
  margin: 0;
}

.category ul.price-items li {
  display: flex;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid #eee;
  font-size: 1rem;
  color: #333;
  transition: all 0.25s ease;
}

.category ul.price-items li:hover {
  background-color: #f9f9f9;
  border-bottom: 1px solid var(--btn-primary-bg);
  color: var(--btn-primary-bg);
}

.service-name {
  font-weight: 400;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.price {
  font-weight: 300;
  color: #555;
}
.price-items li.hidden {
  display: none;
}

/* Gomb stílus */
.toggle-btn {
  display: inline-block;
  margin-top: 15px;
  padding: 8px 16px;
  font-size: 0.95rem;
  border: 1px solid var(--btn-primary-bg);
  color: var(--btn-primary-bg);
  background-color: transparent;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.toggle-btn:hover {
  background-color: var(--btn-primary-hover-bg);
  color: #fff;
}

/* Rejtett elemek - fontos: nem animált, mert a JS display-t kapcsol */
.hidden {
  display: none;
}

/* Galéria Section */
#gallery {
    padding: 3rem 1rem;
    background-color: #f9f9f9;
    text-align: center;
    background-image: url("https://www.transparenttextures.com/patterns/clean-gray-paper.png");
}

#gallery h3 {
    font-size: 2.2rem;
    margin-bottom: 2rem;
    font-weight: bold;
    color: #333;
}

.gallery-wrapper {
    overflow: hidden;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* 4 oszlop a galériához */
    gap: 1.5rem;
    transition: transform 0.5s ease;
}

.gallery-grid img {
    width: 100%;
    aspect-ratio: 1 / 1; /* Négyzet alakú képek */
    object-fit: cover; /* A kép kitölti a helyet, nem torzul */
    border-radius: 0.5rem;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
}

.gallery-grid img.hidden {
    display: none; /* Az elrejtett képek nem jelennek meg */
}

.gallery-grid img:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

/* Gombok (Több megjelenítése és Kevesebb megjelenítése) */
.pagination {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
}

.pagination button {
    padding: 0.8rem 1.5rem;
    background-color: var(--primary-color);
    border: none;
    border-radius: 0.5rem;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.pagination button:hover {
    background-color: var(--hover-color);
}

#show-more {
    display: inline-block;
}

#show-less {
    display: none; /* Kezdetben rejtve */
}

/* Lightbox */
#lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

#lightbox.hidden {
    display: none;
}

.lightbox-content {
    position: relative;
    display: flex;
    align-items: center;
    gap: 1rem;
}

#lightbox img {
    max-width: 90%;
    max-height: 80%;
    border-radius: 0.5rem;
    object-fit: contain; /* A kép arányait megőrzi a lightboxban */
}

#lightbox-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: var(--bg-color);
    z-index: 1000;
}

#lightbox-prev, #lightbox-next {
    background: none;
    color: white;
    font-size: 2rem;
    border: none;
    cursor: pointer;
}
/* Kapcsolatok section */

#contact {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #ffffff;  /* Fehér háttér */
    position: relative;
    overflow: hidden;
    color: #4a5c4d; /* Mélyzöldes szürke árnyalat */
    font-family: var(--font-body);
}

/* Két oldal tartalom */
.contact-container {
    display: flex;
    width: 100%;
    height: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
}

/* Bal oldali tartalom */
.left-content {
    flex: 1;
    background-color: #f7f9f6; /* Világos szürkés-zöldes árnyalat a boxnak */
    color: #314a3b; /* Sötétebb zöld, kontrasztos, de kellemes */
    padding: 3rem 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border-radius: var(--radius);
    box-shadow: 0 8px 24px rgba(49, 74, 59, 0.12);
    border: none; /* Nincs keret, csak árnyék */
}

.left-content h3 {
    font-size: 2.5rem;
    font-weight: bold;
    margin: 0 0 9rem 0; /* fent 0, alul 2rem margó */
    text-align: center; /* középre igazítás */
}

.left-content h4 {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 1.2rem;
}

.left-content p {
    font-size: 1.15rem;
    line-height: 1.6;
    font-weight: 400;
}

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

.contact-box {
    display: flex;
    align-items: center;
    gap: 1rem;
    background-color: #ffffff; /* tiszta fehér box */
    padding: 1rem 1.25rem;
    border-radius: 12px;
    color: #314a3b;
    flex: 1 1 45%;
    text-align: left;
    font-size: 1.1rem;
    box-shadow: 0 4px 15px rgba(49, 74, 59, 0.1);
    transition: box-shadow 0.3s ease;
    cursor: default;
}

.contact-box:hover {
    box-shadow: 0 8px 20px rgba(49, 74, 59, 0.2);
}

.contact-box a {
    color: #4a5c4d;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.contact-box a:hover {
    color: #637867;
    text-decoration: underline;
}

.contact-icon {
    width: 40px;
    height: 40px;
}

/* Jobb oldali tartalom */
.right-image {
    flex: 1;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: var(--radius);
    box-shadow: 0 8px 24px rgba(49, 74, 59, 0.12);
    background: #f7f9f6;
}

.right-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(99,120,103,0.15) 0%, transparent 70%);
    pointer-events: none;
    border-radius: var(--radius);
}

.image-clip {
    width: 100%;
    height: 100%;
    background-image: url('../img/bg/contact.jpg');
    background-size: cover;
    background-position: center;
    clip-path: polygon(25% 0%, 100% 0%, 100% 100%, 25% 100%, 0% 50%);
    box-shadow: 0px 4px 20px rgba(0, 0, 0, 0.15);
    transition: clip-path 0.3s ease;
    border-radius: var(--radius);
}

.image-clip::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.2), rgba(0,0,0,0.3));
    border-radius: var(--radius);
    pointer-events: none;
    transition: background 0.3s ease;
}

.image-clip:hover::before {
    background: linear-gradient(135deg, rgba(255,255,255,0.4), rgba(0,0,0,0.5));
}

/* Hasznos tippek */
.tips {
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 2px solid #d7dbd5;
    margin-bottom: 2rem; 
}

.tips h4 {
    margin-top: 3rem;
    font-size: 1.8rem;
    font-weight: 700;
    color: #4a5c4d;
    font-family: var(--font-header);
    margin-bottom: 1.5rem;
}

.tip-description-container {
    margin-top: 4rem;
    position: relative;
    height: 2em;
    overflow: hidden;
}

.tip-description {
    position: absolute;
    width: 100%;
    text-align: center;
    font-size: 1.6rem;
    color: #637867;
    opacity: 0;
    transform: rotateX(90deg);
    transition: transform 0.6s ease, opacity 0.6s ease;
    will-change: transform, opacity;
    font-weight: 500;
}

.tip-description.show {
    opacity: 1;
    transform: rotateX(0deg);
}

/* Reszponzív nézet */
/* Mobile-specific fixes for contact section */
@media (max-width: 768px) {
    #contact {
        height: auto; /* Changed from 100vh to auto */
        padding: 2rem 0;
    }
    
    .contact-container {
        flex-direction: column;
        height: auto;
    }
    
    .left-content {
        padding: 2rem 1rem;
        order: 2; /* Move content below image on mobile */
    }
    
    .left-content h3 {
        margin-bottom: 3rem; /* Reduced from 9rem */
    }
    
    .right-image {
        height: 300px;
        order: 1;
        margin-top: 0;
    }
    
    .contact-info {
        flex-direction: column; /* Stack boxes vertically */
        gap: 1rem;
        overflow: visible;
    }
    
    .contact-box {
        flex: 0 0 auto;
        width: 100%;
        margin-bottom: 0;
        padding: 1rem;
    }
    
    /* Tips section fixes */
    .tips {
        margin-top: 2.5rem;
        padding-top: 1.5rem;
        display: block; /* Ensure it's visible */
    }
    
    .tip-description-container {
        margin-top: 2rem;
        height: auto;
        min-height: 60px;
    }
    
    .tip-description {
        position: relative;
        opacity: 1;
        transform: none;
        font-size: 1.2rem;
        padding: 0 1rem 1rem 0;
    }
    
    .tip-description.show {
        transform: none;
    }
}

/* Extra small devices (phones, 480px and down) */
@media (max-width: 480px) {
    .left-content h4 {
        font-size: 1.5rem;
    }
    
    .left-content p {
        font-size: 1rem;
    }
    
    .contact-box {
        padding: 0.8rem;
    }
    
    .contact-icon {
        width: 30px;
        height: 30px;
    }
}

/* Footer */
footer {
    background-color: #f9f9f9;
    color: var(--secondary-color);
    text-align: center;
    padding: 1rem;
    position: static;
}

footer p {
    font-size: 1rem;
}


