body {
  margin: 0;
  font-family: "Khand", sans-serif;
  background-color: #ffffff;
  color: #ffffff;
}

section {
  padding: 2rem 2rem;
}

header {
  background-color: #ffffff;
  color: #545454;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 2.5rem;
  position: sticky;
  top: 0;
  z-index: 10000;
}

header img {
  height: 2.5rem;
  object-fit: contain;
  margin-right: 1rem;
  display: block;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

header img:hover {
  transform: scale(1.05);
  opacity: 0.8;
}

nav a {
  color: #545454;
  margin: 0 1.2rem;
  text-decoration: none;
  font-family: "Khand", sans-serif;
  font-weight: 300;
  text-transform: uppercase;
  font-size: 1.1rem;
  padding: 0.5rem 0;
}

nav a:hover {
  color: #000000;
}

#kezdo {
  background-color: #ff9f7d;
  color: #ffffff;
  display: flex;
  justify-content: space-between;
  align-items: stretch;
  padding: 0;
  margin: 0;
  width: 100%;
  box-sizing: border-box;
  height: auto;
}

#kezdo .szoveg {
  max-width: 50%;
  margin: auto auto auto 2rem;
}

#kezdo h1 {
  font-size: 3rem;
  margin-bottom: 0.5rem;
  font-weight: 700;
  font-family: "League Spartan", sans-serif;
}

#kezdo p {
  font-size: 1.42rem;
  line-height: 1.4;
  font-style: italic;
}

#kezdo .kep-container {
  position: relative;
  flex: 1;
  /* Smaller, consistent hero height on desktop to avoid layout jump */
  height: clamp(12rem, 22vw, 16rem);
  width: 100%;
  border-radius: 0;
  overflow: hidden;
  margin: 0;
}

#kezdo .kep-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: opacity 0.7s ease-in-out;
  position: relative;
  z-index: 1;
}

#kezdo .kep-container::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  background: linear-gradient(to right, #ff9f7d 0%, transparent 60%);
  z-index: 2;
}

.section-title {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: #545454;
  text-align: center;
  font-family: "League Spartan", sans-serif;
  font-weight: 300;
  text-transform: uppercase;
}

#kapcsolat .section-title {
  padding-left: 0; /* Remove left padding for contact section */
}

#rolam {
  background-color: #efeade;
}

#dopamin {
  background-color: #ffffff;
}

.dopamin-container {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 2.5rem;
  padding: 3rem 3rem;
}

.dopamin-kep {
  flex: 0 0 auto;
  width: 100%;
  max-width: 25rem;
  order: 1;
}

.dopamin-kep img {
  width: 100%;
  height: auto;
  border-radius: 1rem;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.dopamin-szoveg {
  flex: 1 1 50%;
  font-size: 1.2rem;
  line-height: 1.8;
  color: #545454;
  max-width: 50rem;
  font-family: "Khand", sans-serif;
  order: 2;
  text-align: justify;
}

.dopamin-szoveg span {
  font-weight: bold;
}

#workshop {
  background-color: #efeade;
}

#szolgaltatasok {
  background-color: #ffffff;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Header section for the title */
.szolgaltatasok-header {
  width: 100%;
  text-align: center;
  margin-bottom: 2rem;
}

/* Layout container for the two-column structure */
.szolgaltatasok-layout {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Layout is now always vertical/stacked */
.szolgaltatasok-layout {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

/* Medium breakpoint removed - layout is always vertical */

.szolgaltatasok-intro {
  max-width: 50rem;
  margin: 0 auto 1.5rem auto;
  text-align: center;
}

.szolgaltatasok-intro p {
  font-size: 1.3rem;
  font-weight: 500;
  color: #545454;
  margin-bottom: 2rem;
  font-family: "Khand", sans-serif;
}

.szolgaltatasok-list {
  list-style: none;
  padding: 0;
  margin-bottom: 2rem;
}

.szolgaltatasok-list li {
  font-size: 1.2rem;
  line-height: 1.8;
  color: #545454;
  margin-bottom: 1.5rem;
  font-family: "Khand", sans-serif;
  padding-left: 0.5rem;
  position: relative;
}

.szolgaltatasok-list li::before {
  /* Force text presentation of the checkmark on iOS (avoid emoji), so color applies */
  content: "\2714\FE0E";
  font-size: 1.5rem;
  color: #ff9f7d;
  font-family: "Khand", "League Spartan", system-ui, -apple-system, Segoe UI,
    Roboto, Arial, sans-serif;
  position: absolute;
  left: -2rem;
  top: 0;
}

.szolgaltatasok-list li strong {
  font-weight: 600;
}

.workshop-container {
  max-width: 50rem;
  margin: 0 auto;
  padding: 3rem 3rem;
}

.workshop-intro {
  font-size: 1.3rem;
  font-weight: 500;
  color: #545454;
  margin-bottom: 2rem;
  font-family: "Khand", sans-serif;
  text-align: center;
}

.workshop-list {
  list-style: none;
  padding: 0;
  margin-bottom: 2rem;
}

.workshop-list li {
  font-size: 1.2rem;
  line-height: 1.8;
  color: #545454;
  margin-bottom: 1.5rem;
  font-family: "Khand", sans-serif;
  padding-left: 1.5rem;
  position: relative;
}

.workshop-list li::before {
  /* Use explicit bullet and ensure text font to avoid emoji fallback on iOS */
  content: "\2022";
  color: #8b4513;
  font-size: 1.5rem;
  font-family: "Khand", "League Spartan", system-ui, -apple-system, Segoe UI,
    Roboto, Arial, sans-serif;
  position: absolute;
  left: 0;
  top: 0;
}

.workshop-list li strong {
  color: #8b4513;
  font-weight: 600;
}

.workshop-cta {
  font-size: 1.2rem;
  font-weight: 500;
  color: #545454;
  font-family: "Khand", sans-serif;
  text-align: center;
  font-style: italic;
  background-color: #c7ccd9;
  padding: 1.5rem;
  border-radius: 1rem;
  border-left: 4px solid #545454;
}

.workshop-cta .instagram-link {
  color: #545454;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  position: relative;
}

.workshop-cta .instagram-link::after {
  content: "";
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: #545454;
  transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.workshop-cta .instagram-link:hover {
  color: #545454;
}

.workshop-cta .instagram-link:hover::after {
  width: 100%;
}

.workshop-cta .instagram-link:active {
  transform: translateY(1px);
}

.rolam-uj-container {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 2.5rem;
  padding: 3rem 3rem;
}

.rolam-szoveg-uj {
  flex: 1 1 50%;
  font-size: 1.2rem;
  line-height: 1.8;
  color: #545454;
  max-width: 50rem;
  font-family: "Khand", sans-serif;
  text-align: justify;
}

.rolam-szoveg-uj span {
  font-weight: bold;
}

.rolam-kep {
  flex: 0 0 auto;
  width: 100%;
  max-width: 25rem;
}

.rolam-kep img {
  width: 100%;
  height: auto;
  border-radius: 1rem;
  object-fit: cover;
  transition: transform 0.3s ease;
}

/* Kapcsolat section - same layout as Rólam */
.kapcsolat-uj-container {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 2.5rem;
  padding: 3rem 3rem;
}

.kapcsolat-szoveg-uj {
  flex: 1 1 50%;
  font-size: 1.2rem;
  line-height: 1.8;
  color: #ffffff;
  max-width: 50rem;
  font-family: "Khand", sans-serif;
  text-align: justify;
}

.kapcsolat-szoveg-uj p {
  margin-bottom: 1.5rem;
  color: #545454;
}

.kapcsolat-szoveg-uj form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.kapcsolat-form-frame {
  max-width: 900px;
  width: 100%;
  max-height: 600px;
}

.kapcsolat-szoveg-uj label {
  font-size: 1.1rem;
  font-family: "Khand", sans-serif;
  color: #545454;
}

.kapcsolat-szoveg-uj .uzi {
  padding: 0.6rem 1rem;
  border: none;
  border-radius: 0.5rem;
  font-size: 1rem;
  box-shadow: 0 0.125rem 0.375rem #c7ccd9;
  width: 100%;
  box-sizing: border-box;
  font-family: "Khand", sans-serif;
}

.kapcsolat-szoveg-uj .uzi:focus {
  border: 2px solid #ff9f7d;
  box-shadow: 0 0.125rem 0.375rem #c7ccd9, 0 0 0 3px rgba(255, 0, 0, 0.1);
  outline: none;
}

.kapcsolat-szoveg-uj .checkbox-container {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.kapcsolat-szoveg-uj .checkbox-container input[type="checkbox"] {
  width: 1.25rem;
  height: 1.25rem;
  cursor: pointer;
  accent-color: #ff9f7d;
}

.kapcsolat-szoveg-uj .checkbox-container label {
  font-size: 1rem;
  margin: 0;
  font-family: "Khand", sans-serif;
}

.kapcsolat-szoveg-uj button {
  background-color: #ff9f7d;
  color: #ffffff;
  padding: 0.8rem 1.5rem;
  border: none;
  border-radius: 0.5rem;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  align-self: flex-start;
  font-family: "Khand", sans-serif;
  transition: all 0.3s ease;
}

.kapcsolat-szoveg-uj button:hover {
  background-color: #ff9f7d;
  color: #ffffff;
  transform: translateY(-0.125rem);
}

.kapcsolat-kep {
  flex: 0 0 auto;
  width: 100%;
  max-width: 25rem;
}

.kapcsolat-kep img {
  width: 100%;
  height: auto;
  border-radius: 1rem;
  object-fit: contain;
  max-height: none;
  transition: transform 0.3s ease;
}

.services-menu {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
  padding: 1rem;
  animation: fadeInUp 0.8s ease-out;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(1.875rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.szolg-btn {
  background-color: #ff9f7d;
  color: #ffffff;
  border: none;
  padding: 1.5rem 3rem;
  font-weight: bold;
  font-size: 1.2rem;
  border-radius: 2rem;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 0.25rem 0.75rem #c7ccd9;
  text-transform: uppercase;
  letter-spacing: 0.03125rem;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  position: relative;
  overflow: hidden;
  animation: fadeInUp 0.8s ease-out;
  font-family: "Khand", sans-serif;
}

.szolg-btn:nth-child(1) {
  animation-delay: 0.1s;
}
.szolg-btn:nth-child(2) {
  animation-delay: 0.2s;
}
.szolg-btn:nth-child(3) {
  animation-delay: 0.3s;
}

.szolg-btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  transition: left 0.6s ease;
}

.szolg-btn.active {
  transform: scale(1.05) translateY(-0.125rem);
  box-shadow: 0 0.5rem 1.5625rem #545454;
  background-color: #ff8a65;
}

@media (hover: hover) and (pointer: fine) {
  .szolg-btn:hover::before {
    left: 100%;
  }
}

@media (hover: hover) and (pointer: fine) {
  .szolg-btn:hover {
    transform: scale(1.05) translateY(-0.125rem);
    box-shadow: 0 0.5rem 1.5625rem #545454;
    background-color: #ff8a65;
  }
}

.szolg-btn:active {
  transform: scale(1.02) translateY(0);
  transition: all 0.1s ease;
}

.szolg-icon {
  width: 1.5rem;
  height: 1.5rem;
  transition: transform 0.3s ease;
}

@media (hover: hover) and (pointer: fine) {
  .szolg-btn:hover .szolg-icon {
    transform: scale(1.1) rotate(5deg);
  }
}

.szolgaltatas-card {
  position: relative;
  background-color: #ffffff;
  color: #545454;
  border-radius: 1.5rem;
  padding: 2rem;
  margin: 2rem auto;
  max-width: 62.5rem;
  box-shadow: 0 0.25rem 0.9375rem #545454;
  overflow: hidden;
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 2rem;
  flex-wrap: wrap;
  opacity: 1;
  transform: translateY(0);
  animation: cardSlideIn 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes cardSlideIn {
  from {
    opacity: 0;
    transform: translateY(1.875rem) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.szolgaltatas-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0.09;
  z-index: 0;
  pointer-events: none;
  transition: opacity 0.8s ease;
}

.szolgaltatas-card:hover::before {
  opacity: 0.12;
}

.szolgaltatas-card:hover {
  box-shadow: 0 0.5rem 1.875rem #545454;
  transform: translateY(-0.125rem);
}

.card-text {
  flex: 2;
  transition: transform 0.4s ease;
}

.szolgaltatas-card:hover .card-text {
  transform: translateX(0.3125rem);
}

.stilus-bg::before {
  background-image: url("public/image/used/kozosvasar.png");
}

.gardrob-bg::before {
  background-image: url("public/image/used/kozosvasar.png");
}

.vasarlas-bg::before {
  background-image: url("public/image/used/kozosvasar.png");
}

.szolgaltatas-card * {
  position: relative;
  z-index: 1;
}

.hidden {
  display: none;
  opacity: 0;
  transform: translateY(1.25rem);
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.szolgaltatas-card.show {
  opacity: 1;
  transform: translateY(0);
}

.szolgaltatas-card ul {
  padding-left: 1.5rem;
  margin-bottom: 1.5rem;
}

.szolgaltatas-card li {
  transition: transform 0.3s ease, opacity 0.3s ease;
  transform: translateX(0);
  opacity: 1;
}

.szolgaltatas-card:hover li {
  transform: translateX(0.1875rem);
}

.szolgaltatas-card li:nth-child(1) {
  transition-delay: 0.1s;
}
.szolgaltatas-card li:nth-child(2) {
  transition-delay: 0.15s;
}
.szolgaltatas-card li:nth-child(3) {
  transition-delay: 0.2s;
}
.szolgaltatas-card li:nth-child(4) {
  transition-delay: 0.25s;
}
.szolgaltatas-card li:nth-child(5) {
  transition-delay: 0.3s;
}
.szolgaltatas-card li:nth-child(6) {
  transition-delay: 0.35s;
}
.szolgaltatas-card li:nth-child(7) {
  transition-delay: 0.4s;
}

.szolgaltatas-card p {
  margin-bottom: 1rem;
  font-size: 1.1rem;
  transition: color 0.3s ease;
  font-family: "Khand", sans-serif;
}

/* Subtle emphasis for the opener line inside service cards */
.card-opener {
  color: #545454;
  font-weight: 600;
  font-family: "League Spartan", sans-serif;
}

.szolgaltatas-card strong {
  color: #5ce1ff;
  transition: color 0.3s ease;
}

.szolgaltatas-card:hover strong {
  color: #00bcd4;
}

.szolgaltatas-card img.card-image {
  /* Standardized image sizing for service cards (desktop/tablet) */
  flex: 0 0 auto;
  width: clamp(16rem, 28vw, 24rem);
  aspect-ratio: 1 / 1.4;
  height: auto;
  object-fit: cover;
  margin: 0;
  border-radius: 1rem;
  display: block;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  filter: brightness(1);
}

.szolgaltatas-card:hover img.card-image {
  transform: scale(1.02);
  filter: brightness(1.05);
  box-shadow: 0 0.5rem 1.5625rem #c7ccd9;
}

.szolgaltatas-card.hidden {
  display: none;
  opacity: 0;
  transform: translateY(1.25rem);
}

.interest-btn {
  background-color: #ff9f7d;
  color: #ffffff;
  border: none;
  padding: 1rem 2rem;
  font-weight: bold;
  font-size: 1.1rem;
  border-radius: 1.5rem;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: "Khand", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 0.25rem 0.5rem rgba(0, 0, 0, 0.15);
  margin: 1.5rem 0;
  position: relative;
}

.interest-btn:hover {
  background-color: #a0522d;
  transform: translateY(-0.0625rem);
  box-shadow: 0 0.375rem 0.75rem #545454;
}

.interest-btn:active {
  transform: translateY(0.0625rem);
  box-shadow: 0 0.125rem 0.25rem #c7ccd9;
  transition: all 0.1s ease;
}

.pricing-section {
  margin-top: 1rem;
  padding: 1.5rem;
  background-color: rgba(255, 255, 255, 0.5);
  border-radius: 1rem;
  border-left: 4px solid #8b4513;
  transition: all 0.3s ease;
}

.pricing-section.hidden {
  display: none;
}

.pricing-section.show {
  display: block;
  animation: fadeIn 0.3s ease;
}

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

#egyuttmukodes {
  background-color: #ffffff;
}

.collaboration-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(20rem, 1fr));
  gap: 2rem;
  padding: 0 2rem;
  max-width: 60rem;
  margin: 0 auto;
}

.collaboration-card {
  background-color: #efeade;
  border-radius: 1rem;
  padding: 2rem;
  box-shadow: 0 0.25rem 0.75rem #c7ccd9;
  transition: all 0.3s ease;
  text-align: center;
}

.collaboration-card:hover {
  transform: translateY(-0.25rem);
  box-shadow: 0 0.5rem 1.25rem #c7ccd9;
}

.collaboration-content h3 {
  font-family: "League Spartan", sans-serif;
  font-size: 1.5rem;
  font-weight: 600;
  color: #545454;
  margin-bottom: 1rem;
}

.collaboration-content p {
  font-family: "Khand", sans-serif;
  font-size: 1.1rem;
  color: #545454;
  margin-bottom: 1.5rem;
  line-height: 1.5;
}

.collaboration-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background-color: #ff9f7d;
  color: #ffffff;
  text-decoration: none;
  padding: 0.75rem 1.5rem;
  border-radius: 1.5rem;
  font-family: "Khand", sans-serif;
  font-weight: 500;
  font-size: 1rem;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.collaboration-link:hover {
  background-color: #ff8a65;
  transform: translateY(-0.125rem);
  box-shadow: 0 0.25rem 0.75rem rgba(255, 159, 125, 0.4);
}

.collaboration-link i {
  width: 1rem;
  height: 1rem;
}

/* Rólam CTA based on collaboration-link, bigger and centered */
.rolam-cta-wrap {
  display: flex;
  justify-content: center;
  margin: 1.5rem 0 0 0;
}

.rolam-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  background-color: #ff9f7d;
  color: #ffffff;
  text-decoration: none;
  padding: 1rem 2rem; /* bigger */
  border-radius: 2rem; /* rounder */
  font-family: "Khand", sans-serif;
  font-weight: 600;
  font-size: 1.1rem; /* larger text */
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 0.25rem 0.75rem rgba(84, 84, 84, 0.25);
  width: clamp(12rem, 24vw, 18rem);
}

.rolam-cta:hover {
  background-color: #ff8a65;
  transform: translateY(-0.125rem);
  box-shadow: 0 0.35rem 1rem rgba(255, 159, 125, 0.4);
}

.rolam-cta:active {
  transform: translateY(0);
}

@media (max-width: 768px) {
  .rolam-cta {
    padding: 0.9rem 1.6rem;
    font-size: 1rem;
  }
}

#velemenyek {
  background-color: #efeade;
  padding: 2rem 2rem;
}

.testimonials-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(20rem, 1fr));
  gap: 2rem;
  padding: 0 2rem;
  max-width: 75rem;
  margin: 0 auto;
}

.testimonial-card {
  background-color: #ff9f7d;
  color: #ffffff;
  border-radius: 1rem;
  padding: 1.5rem 2rem;
  box-shadow: 0 4px 15px #c7ccd9;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  font-size: 1.1rem;
  line-height: 1.6;
  font-family: "Khand", sans-serif;
  display: flex;
  flex-direction: column;
  min-height: 12rem;
}

.testimonial-card:hover {
  transform: translateY(-0.3125rem);
  box-shadow: 0 0.375rem 1.25rem #545454;
}

.testimonial-preview {
  margin-bottom: 1rem;
  flex-grow: 1;
}

.expand-btn {
  background-color: #ffffff;
  color: #ff9f7d;
  border: none;
  padding: 0.5rem 1rem;
  font-weight: bold;
  font-size: 0.9rem;
  border-radius: 1rem;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: "Khand", sans-serif;
  text-transform: uppercase;
  margin-top: auto;
  width: 100%;
  align-self: flex-end;
}

.expand-btn:hover {
  background-color: #f5f5f5;
  transform: translateY(-0.0625rem);
}

.expand-btn:active {
  transform: translateY(0.0625rem);
}

/* Modal Styles */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 99999;
  transition: all 0.3s ease;
}

.modal.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 2rem;
  box-sizing: border-box;
}

.modal-content {
  background-color: #ffffff;
  border-radius: 1.5rem;
  padding: 2rem;
  max-width: 50rem;
  max-height: 80vh;
  overflow-y: auto;
  position: relative;
  animation: modalSlideIn 0.3s ease;
  box-shadow: 0 1rem 3rem #545454;
}

@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: translateY(-2rem) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: #545454;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.modal-close:hover {
  background-color: #f5f5f5;
  color: #ff9f7d;
}

.modal-title {
  font-family: "League Spartan", sans-serif;
  font-size: 1.8rem;
  color: #ff9f7d;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.modal-title i {
  color: #5ce1ff;
  background-color: #ff9f7d;
  border-radius: 50%;
  padding: 0.3rem;
}

.modal-text {
  font-family: "Khand", sans-serif;
  font-size: 1.1rem;
  line-height: 1.7;
  color: #545454;
  text-align: justify;
}

.modal-text::before {
  content: '"';
  font-size: 2rem;
  color: #ff9f7d;
  font-family: "League Spartan", sans-serif;
  float: left;
  margin-right: 0.5rem;
  margin-top: -0.5rem;
}

.modal-text::after {
  content: '"';
  font-size: 2rem;
  color: #ff9f7d;
  font-family: "League Spartan", sans-serif;
  display: inline;
  margin-left: 0.4rem;
  margin-top: -0.5rem;
}

.modal-text br {
  margin-bottom: 1rem;
}

#velemenyek h3 {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
  font-size: 1.2rem;
  font-weight: bold;
  color: #ffffff;
  font-family: "League Spartan", sans-serif;
}

#velemenyek .card-icon {
  color: #5ce1ff;
  background-color: #ffffff;
  border-radius: 50%;
  padding: 0.3rem;
}

#velemenyek .card-icon:hover {
  color: #ffffff;
  background-color: #5ce1ff;
}

footer {
  background-color: #5ce1ff;
  color: #545454;
  text-align: center;
  padding: 2rem;
  font-family: "Khand", sans-serif;
}

footer .social-icons {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 0.5rem;
}

/* Policy links in footer */
.policy-links {
  margin: 0.5rem 0 0.75rem 0;
  display: flex; /* take full line */
  justify-content: center; /* center within footer */
  align-items: center;
  gap: 0.5rem;
  color: #545454;
  font-size: 0.95rem;
}

.policy-links a {
  color: #545454;
  text-decoration: none;
  transition: color 0.2s ease;
}

.policy-links a:hover {
  color: #ff8a65;
}

/* Only apply hover styling on devices that actually support hover */
@media (hover: hover) and (pointer: fine) {
  .policy-links a:hover {
    color: #ff8a65;
  }
}

/* Neutralize sticky hover on touch devices */
@media (hover: none) {
  .policy-links a:hover {
    color: #545454; /* base link color */
    background-color: transparent;
  }
}

footer .social-icons a {
  color: #545454;
}

footer .social-icons a:hover {
  color: #ff9f7d; /* opcionális: hover szín */
}

footer .social-icons i {
  width: 1.5rem;
  height: 1.5rem;
}

.card-image {
  width: 100%;
  height: 7.5rem;
  object-fit: cover;
  margin-top: 1rem;
  border-radius: 0 0 1rem 1rem;
}

#kapcsolat {
  padding: 2rem 2rem;
  border-radius: 1rem;
  margin: 0;
}

/* Old kapcsolat styles removed - now using kapcsolat-uj-container layout */

.cookie-banner-card {
  position: fixed;
  bottom: 1rem;
  right: 1rem;
  width: 24rem;
  max-width: calc(100vw - 2rem);
  background-color: #ff9f7d;
  color: #ffffff;
  border-radius: 1rem;
  padding: 1.5rem;
  margin: 0;
  box-shadow: 0 0.25rem 1rem #545454;
  z-index: 9999;
  animation: slideUp 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(2rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideDown {
  from {
    opacity: 1;
    transform: translateY(0);
  }
  to {
    opacity: 0;
    transform: translateY(2rem);
  }
}

.cookie-banner-content {
  padding: 0;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.cookie-banner-main {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  flex: 1;
}

.cookie-icon {
  width: 1.25rem;
  height: 1.25rem;
  color: #ffffff;
  margin-top: 0.125rem;
  flex-shrink: 0;
}

.cookie-text {
  flex: 1;
}

.cookie-text h3 {
  font-size: 1rem;
  font-weight: bold;
  color: #ffffff;
  margin: 0 0 0.5rem 0;
  font-family: "League Spartan", sans-serif;
}

.cookie-text p {
  font-size: 1rem;
  color: #ffffff;
  line-height: 1.4;
  margin: 0 0 1rem 0;
  font-family: "Khand", sans-serif;
}

.cookie-buttons {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.cookie-btn {
  flex: 1;
  min-width: 0;
  max-width: 8.75rem;
  height: 2.25rem;
  padding: 0.5rem 1rem;
  border: none;
  border-radius: 0.5rem;
  font-size: 0.75rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: "Khand", sans-serif;
}

.cookie-accept {
  background-color: #ffffff;
  color: #ff9f7d;
}

.cookie-accept:hover {
  background-color: #ffffff;
  color: #ff9f7d;
  transform: translateY(-0.0625rem);
}

.cookie-decline {
  background-color: #ffffff;
  color: #ff9f7d;
  border: 1px solid #ffffff;
}

.cookie-decline:hover {
  background-color: #f5f5f5;
  color: #ff9f7d;
  transform: translateY(-0.0625rem);
}

.cookie-close {
  background: none;
  border: none;
  color: #ffffff;
  cursor: pointer;
  padding: 0.25rem;
  border-radius: 0.25rem;
  transition: all 0.2s ease;
  flex-shrink: 0;
  width: 1.5rem;
  height: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cookie-close:hover {
  background-color: rgba(255, 255, 255, 0.2);
  color: #ffffff;
}

nav {
  position: relative;
}

nav button {
  display: none;
  background: none;
  border: none;
  color: #545454;
  font-size: 1.8rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

nav button:hover {
  transform: scale(1.1);
  color: #000000;
}

nav button:active {
  transform: scale(0.95);
}

nav ul {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  /* Keep items on one line for desktop */
  flex-wrap: nowrap;
  white-space: nowrap;
}

nav ul li {
  margin: 0 1.2rem;
}

nav ul li a {
  color: #545454;
  text-decoration: none;
  font-weight: 300;
  text-transform: uppercase;
  font-family: "Khand", sans-serif;
}

#slider-image {
  /* Ensure the rotating image always fills the fixed container height */
  height: 100%;
  max-height: none;
}

.mobile-only {
  display: none;
}

#szolgaltatasok .card:hover .mobile-only {
  display: none;
}

.mobile-only-img {
  display: none;
}

/* Mobile Responsive Styles */
@media (max-width: 1200px) {
  nav button {
    display: block;
    padding: 0.2rem 0.5rem;
  }

  nav ul {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 4.5rem; /* Desktop header height */
    left: 0;
    right: 0;
    background-color: #ffffff;
    width: 100%;
    max-width: 100vw;
    box-shadow: 0 0 1.25rem #545454;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transform: scaleY(0);
    transform-origin: top;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-x: hidden;
  }

  nav ul.show {
    opacity: 1;
    visibility: visible;
    transform: scaleY(1);
  }

  nav ul li {
    margin: 0.8rem 0;
    text-align: left;
    opacity: 1;
    transform: translateY(0);
    transition: all 0.3s ease;
  }

  nav ul li a {
    font-size: 1.2rem;
    padding: 0.7rem 0;
    display: block;
    color: #545454;
    text-decoration: none;
    font-weight: 300;
    text-transform: uppercase;
    transition: color 0.3s ease;
    font-family: "Khand", sans-serif;
  }

  nav ul li a:hover {
    color: #000000;
  }

  #kezdo {
    position: relative;
    flex-direction: column;
    min-height: 100%; /* kitölti a képernyőmagasságot */
  }

  #kezdo .kep-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
  }

  #kezdo .kep-container::before {
    background: #ff9f7d80; /* enyhébb overlay */
  }

  #kezdo .szoveg {
    position: relative;
    z-index: 2;
    background: transparent;
    padding: 2rem;
    margin: 0;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  /* Soft, non-solid backdrop for readability on smaller viewports */
  #kezdo .szoveg::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 0;
    background: linear-gradient(
      to bottom,
      rgba(0, 0, 0, 0.35),
      rgba(0, 0, 0, 0.18) 55%,
      rgba(0, 0, 0, 0.08) 85%,
      rgba(0, 0, 0, 0)
    );
    backdrop-filter: blur(6px) saturate(110%);
    -webkit-backdrop-filter: blur(6px) saturate(110%);
    z-index: 0;
    pointer-events: none;
  }

  #kezdo .szoveg p {
    position: relative;
    z-index: 1;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
  }

  #slider-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    max-height: none;
  }

  .rolam-uj-container {
    flex-direction: column;
    gap: 2rem;
    padding: 2rem 2rem;
  }

  .dopamin-container {
    flex-direction: column;
    gap: 2rem;
    padding: 2rem 2rem;
  }

  .dopamin-kep {
    order: 1;
    max-width: 100%;
    margin: 0 auto;
  }

  .dopamin-szoveg {
    order: 2;
    flex: 1 1 100%;
    max-width: 100%;
    font-size: 1.1rem;
    padding: 0 1rem;
    text-align: justify;
  }

  .workshop-container {
    padding: 2rem 2rem;
  }

  .szolgaltatasok-intro {
    padding: 2rem 2rem;
  }

  .szolgaltatasok-intro p {
    font-size: 1.1rem;
  }

  .szolgaltatasok-list li {
    font-size: 1.1rem;
  }

  /* Layout is always vertical now */
  .szolgaltatasok-layout {
    padding: 0;
  }

  .szolgaltatasok-intro {
    max-width: 800px;
    margin: 0 auto 1.5rem auto;
    padding: 2rem;
    text-align: center;
  }

  .services-menu {
    max-width: 800px;
    margin: 0 auto;
    justify-content: center;
  }

  /* Removed medium rule: service button width handled at <=768px */

  .workshop-list li {
    font-size: 1.1rem;
  }

  .rolam-szoveg-uj {
    flex: 1 1 100%;
    max-width: 100%;
    font-size: 1.1rem;
    padding: 0 1rem;
  }

  .rolam-kep {
    max-width: 100%;
    margin: 0 auto;
  }

  /* Hide only service card images up to 1200px */
  .szolgaltatas-card img.card-image {
    display: none;
  }

  /* Keep section images visible, proportional and centered up to 1200px */
  .rolam-kep img,
  .kapcsolat-kep img,
  .dopamin-kep img {
    width: 100%;
    height: auto;
    object-fit: contain;
    display: block;
    margin: 0 auto;
    max-width: 60%;
  }

  .szolgaltatas-card {
    flex-direction: column;
    align-items: center;
    padding: 1.5rem 1rem;
    margin: 1rem;
  }

  .szolgaltatas-card img.card-image {
    max-width: 50%;
    margin: 0.5rem auto 0 auto;
  }

  /* Old kapcsolat mobile styles removed - now using kapcsolat-uj-container layout */

  #kezdo h1 {
    font-size: 2rem;
  }

  #kezdo p {
    font-size: 1rem;
  }

  .services-menu {
    gap: 1rem;
    padding: 0.5rem;
  }

  .szolg-btn {
    padding: 1rem 2rem;
    font-size: 1rem;
  }

  .mobile-only {
    display: inline;
  }

  .mobile-only-img {
    display: block;
    width: 100%;
    max-width: 15.625rem;
    height: auto;
    border-radius: 1rem;
    margin: 0 auto 1rem auto;
  }

  .desktop-only {
    display: none;
  }

  .collaboration-container {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding: 0 1rem;
  }

  .collaboration-card {
    padding: 1.5rem;
  }

  /* Hide contact image on smaller viewports */
  .kapcsolat-kep {
    display: none;
  }
}

/* Between large laptop widths, gently tighten spacing so nav fits one line */
@media (min-width: 1201px) and (max-width: 1440px) {
  nav a {
    margin: 0 0.8rem;
    font-size: 1rem;
  }
  header {
    padding: 0.8rem 1.5rem;
  }
}

/* Small mobile devices */
@media (max-width: 768px) {
  /* Stack policy links vertically on small screens */
  .policy-links {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    margin: 0.75rem 0 1rem 0;
  }

  .policy-links span {
    display: none; /* hide the vertical separators */
  }

  .policy-links a {
    padding: 0.25rem 0.5rem; /* larger tap target */
    border-radius: 0.375rem;
  }

  .policy-links a:active {
    background-color: rgba(0, 0, 0, 0.06);
  }
  header {
    padding: 1rem 2rem;
  }

  header img {
    margin-left: 0.5rem; /* Add spacing from left edge */
  }

  nav ul {
    top: 4.5rem; /* 2.5rem height + 2rem padding */
  }

  .section-title {
    font-size: 2rem;
    text-align: center;
  }

  .rolam-uj-container {
    padding: 1.5rem 1rem;
  }

  .rolam-szoveg-uj {
    font-size: 1rem;
    padding: 0 1rem;
  }

  .rolam-kep {
    max-width: 100%;
  }

  .kapcsolat-uj-container {
    flex-direction: column;
    gap: 2rem;
    padding: 1.5rem 1rem;
  }

  .kapcsolat-szoveg-uj {
    flex: 1 1 100%;
    max-width: 100%;
    font-size: 1rem;
    padding: 0 1rem;
  }

  .kapcsolat-kep {
    max-width: 100%;
    margin: 0 auto;
  }

  .services-menu {
    flex-direction: column;
    gap: 0.8rem;
  }

  .szolg-btn {
    padding: 0.8rem 1.5rem;
    font-size: 0.9rem;
    width: 100%;
    justify-content: center;
    min-width: 16rem; /* widen on small viewports only */
  }

  .szolgaltatas-card {
    padding: 1rem 0.8rem;
    margin: 0.5rem;
    border-radius: 1rem;
  }

  /* Tame image dominance on small screens */
  .szolgaltatas-card img.card-image {
    width: 100%;
    height: auto;
    object-fit: contain; /* preserve original aspect */
    margin-top: 0.5rem;
    max-width: 70%;
  }

  .rolam-kep img,
  .kapcsolat-kep img,
  .dopamin-kep img {
    width: 100%;
    height: auto;
    object-fit: contain; /* preserve original aspect */
    max-width: 90%;
    margin: 0 auto;
  }

  .testimonials-container {
    grid-template-columns: 1fr;
    gap: 1rem;
    padding: 0 1rem;
  }

  .testimonial-card {
    padding: 1rem 1.5rem;
    font-size: 1rem;
  }

  .modal-overlay {
    padding: 1rem;
  }

  .modal-content {
    padding: 1.5rem;
    max-height: 85vh;
  }

  .modal-title {
    font-size: 1.5rem;
  }

  .modal-text {
    font-size: 1rem;
  }

  .modal-text::before,
  .modal-text::after {
    font-size: 1.5rem;
    margin-top: -0.3rem;
  }

  .modal-text::after {
    margin-left: 0.1rem;
  }

  /* On small screens, avoid slider fade causing visibility confusion */
  #kezdo .kep-container img {
    transition: opacity 0.4s ease-in-out; /* slightly slower on small screens */
    opacity: 1;
  }

  #kapcsolat {
    margin: 0;
    padding: 1.5rem 1rem;
  }

  .uzi {
    padding: 0.5rem 0.8rem;
    font-size: 0.9rem;
  }

  .cookie-banner-card {
    right: 0.5rem;
    left: 0.5rem;
    bottom: 0.5rem;
    width: auto;
    max-width: calc(100vw - 1rem);
    padding: 1rem;
  }

  .cookie-text h3 {
    font-size: 0.9rem;
  }

  .cookie-text p {
    font-size: 0.85rem;
  }

  .cookie-buttons {
    flex-direction: row;
    gap: 0.4rem;
  }

  .cookie-btn {
    flex: 1;
    height: 1.75rem;
    font-size: 0.7rem;
    padding: 0.4rem 0.5rem;
  }

  footer {
    padding-bottom: calc(2rem + 5.5rem);
  }
}

/* Extra small mobile devices */
@media (max-width: 480px) {
  header {
    padding: 0.8rem 1rem;
  }

  nav ul {
    top: 4.1rem; /* 2.5rem height + 1.6rem padding */
  }

  header img {
    height: 2rem;
    margin-left: 0.75rem; /* More spacing on very small screens */
  }

  .section-title {
    font-size: 1.8rem;
    text-align: center;
  }

  .rolam-kep {
    max-width: 100%;
  }

  .kapcsolat-uj-container {
    padding: 1rem 1rem;
  }

  .kapcsolat-szoveg-uj {
    font-size: 0.9rem;
    padding: 0 1rem;
  }

  .kapcsolat-kep {
    max-width: 100%;
  }

  .szolg-btn {
    padding: 0.7rem 1rem;
    font-size: 0.8rem;
  }

  .szolgaltatas-card {
    padding: 0.8rem 0.5rem;
    margin: 0.3rem;
  }

  /* Further reduce images on extra small screens */
  .szolgaltatas-card img.card-image {
    width: 100%;
    height: auto;
    object-fit: contain;
    margin-top: 0.5rem;
    max-width: 65%;
  }

  .rolam-kep img,
  .kapcsolat-kep img,
  .dopamin-kep img {
    width: 100%;
    height: auto;
    object-fit: contain;
    max-width: 85%;
    margin: 0 auto;
  }

  .cookie-banner-card {
    right: 0.25rem;
    left: 0.25rem;
    width: auto;
    max-width: calc(100vw - 0.5rem);
    padding: 0.6rem;
  }

  .cookie-text h3 {
    font-size: 0.75rem;
    margin: 0 0 0.3rem 0;
  }

  .cookie-text p {
    font-size: 0.65rem;
    line-height: 1.2;
    margin: 0 0 0.6rem 0;
  }

  .cookie-buttons {
    gap: 0.3rem;
  }

  .cookie-btn {
    flex: 1;
    height: 1.4rem;
    font-size: 0.6rem;
    padding: 0.25rem 0.4rem;
  }

  .cookie-icon {
    width: 1rem;
    height: 1rem;
  }

  .cookie-close {
    width: 1.2rem;
    height: 1.2rem;
  }

  .cookie-banner-main {
    gap: 0.5rem;
  }

  footer {
    padding-bottom: calc(2rem + 4.25rem);
  }
}

@media (min-width: 1201px) {
  .card:hover .desktop-only {
    opacity: 0;
  }
}
