/* ===========================================================
   zsoltiacm.hu — az eredeti Symfony/Colorlib dizájn tokenjei
   Bootstrap + jQuery + AOS + Owl nélkül újraépítve.
   Színek, betűtípusok, hátterek 1:1 az eredetiből.
   =========================================================== */

:root {
  --bg: #222831;              /* body háttér */
  --bg-dark: #13171d;         /* .bg-dark szekciók */
  --accent: #e3207b;          /* primary — az eredeti kiemelőszín */
  --text: rgba(255, 255, 255, 0.5);
  --text-strong: #fff;
  --muted: #737373;
  --link-footer: #999;
  --font-body: var(--font-nunito), "Nunito Sans", -apple-system, BlinkMacSystemFont,
    "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-head: var(--font-oswald), "Oswald", sans-serif;
  --container: 1140px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  line-height: 1.7;
  color: var(--text);
  font-weight: 400;
  font-size: 1.1rem;
  font-family: var(--font-body);
  background: var(--bg);
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-head);
  /* Az eredetiben a címsoroknak nincs saját színük — a törzsszövegét öröklik
     (rgba(255,255,255,.5)). Csak a kifejezetten fehérre állított helyeken
     fehérek: borító, szekciócím, lábléc, kártyák. */
  margin-top: 0;
  margin-bottom: 0.5rem;   /* Bootstrap alapértelmezés — az eredeti ezt használta */
  line-height: 1.2;
}

::selection { background: #000; color: #fff; }

a { color: inherit; transition: 0.3s all ease; }
a:hover { text-decoration: none; }

img { max-width: 100%; height: auto; }

/* --- elrendezés --------------------------------------------------------- */

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 15px;
}

.site-section { padding: 3em 0; position: relative; }
@media (min-width: 768px) { .site-section { padding: 4em 0; } }

.bg-dark-section { background: var(--bg-dark); }

/* sötétítő réteg a háttérképes szekciókon */
.layer {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  pointer-events: none;
}
.layer-60 { background: rgba(0, 0, 0, 0.6); }
.layer-50 { background: rgba(0, 0, 0, 0.5); }
.layer-40 { background: rgba(0, 0, 0, 0.4); }

.bg-image {
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center center;
}

.section-inner { position: relative; z-index: 1; }

/* --- fejléc / navigáció ------------------------------------------------- */

.site-navbar {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 99;
  padding-top: 1.5rem;
}

.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.25rem 20px;
}

.your-wedding-text-h1 {
  margin: 40px 0 0;
  width: 300px;
  font-size: 2.5rem;
  line-height: 1.2;
  color: #fff;
  text-shadow: 0 0 10px #000;
}

.site-navigation {
  position: fixed;
  top: 0;
  right: 0;
  width: 100%;
  padding: 0 20px;
  transition: 0.4s all ease;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  z-index: 99;
}
.site-navigation-back { background-color: rgba(30, 40, 49, 0.8); }

.site-menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
}
.site-menu > li { padding: 10px 5px; }
.site-menu > li > a {
  padding: 10px;
  letter-spacing: 0.05em;
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  display: inline-block;
  font-size: 1rem;
}
.site-menu > li > a:hover,
.site-menu > li.active > a { color: #fff; }
.site-menu > li:last-child { padding-right: 0; }

.menu-toggle {
  display: none;
  background: none;
  border: 0;
  color: #fff;
  cursor: pointer;
  padding: 0.75rem 0;
  font-size: 1.75rem;
  line-height: 1;
}

@media (max-width: 991.98px) {
  .site-menu { display: none; }
  .menu-toggle { display: block; }
}

/* mobil offcanvas menü */
.site-mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  height: 100%;
  width: 300px;
  max-width: 85vw;
  background: #fff;
  z-index: 3000;
  transform: translateX(100%);
  transition: 0.3s transform ease;
  overflow-y: auto;
  padding: 1rem;
}
.site-mobile-menu.is-open { transform: translateX(0); }
.site-mobile-menu a { color: #000; text-decoration: none; display: block; padding: 0.6rem 0; }
.site-mobile-menu a:hover { color: var(--accent); }
.site-mobile-menu ul { list-style: none; margin: 0; padding: 0; }
.mobile-menu-close {
  background: none;
  border: 0;
  color: #000;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.5rem 0;
}
.menu-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 2999;
  border: 0;
  padding: 0;
  cursor: pointer;
}

/* --- borító (hero) ------------------------------------------------------ */

.site-blocks-cover {
  background-size: cover;
  background-repeat: no-repeat;
  background-position: top;
  min-height: 600px;
  height: 100vh;
  position: relative;
  display: flex;
  align-items: stretch;
}
.site-blocks-cover::before {
  position: absolute;
  content: "";
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
}
.site-blocks-cover.inner-page-cover {
  min-height: 600px;
  height: 30vh;
}
.site-blocks-cover h1 {
  color: #fff;
  font-size: 4rem;
  font-weight: normal;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.site-blocks-cover p { color: #fff; font-size: 1.5rem; line-height: 1.5; }
.cover-inner { position: relative; z-index: 2; width: 100%; height: 100%; display: flex; flex-direction: column; }

.banner-h1 { text-align: center; margin: auto 0; width: 100%; }

.text-shadow { text-shadow: 0 0 10px #000; }

.personal-image {
  background-repeat: no-repeat;
  background-position: center top;
  background-size: cover;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  height: 100%;
  flex: 1;
  margin: 0 auto;
  max-width: 58.333%;
  width: 100%;
}
.personal-image h2 { margin-top: 200px; font-size: 44px; color: #fff; }
.personal-image h4 { font-size: 36px; color: #fff; font-weight: 400; }
.scroll-down { color: rgba(255, 255, 255, 0.5); font-size: 300%; margin-top: 1.5rem; display: inline-block; }
.scroll-down:hover { color: #fff; }

/* magyar / angol zászlók a hero alján */
.col-flag { position: absolute; bottom: 0; left: 0; width: 380px; height: 200px; }
.col-flag-img { position: absolute; width: 65%; bottom: 0; }
.col-flag-img img { width: 100%; transform: rotate(30deg); opacity: 0.6; }
.img-gb { right: 0; }
.img-gb img { transform: rotate(-30deg); }

/* --- szekciócím --------------------------------------------------------- */

.site-section-heading h2 {
  font-size: 2rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #fff;
  position: relative;
  padding-bottom: 20px;
  display: inline-block;
  margin-bottom: 3rem;
}
.site-section-heading h2::after {
  position: absolute;
  content: "";
  width: 70px;
  left: 0;
  bottom: 0;
  height: 2px;
  background: var(--accent);
}
.site-section-heading.text-center { text-align: center; }
.site-section-heading.text-center h2::after { left: 50%; transform: translateX(-50%); }

/* --- gombok, űrlap ------------------------------------------------------ */

.btn {
  position: relative;
  display: inline-block;
  border: 1px solid transparent;
  border-radius: 0.25rem;
  cursor: pointer;
  font-family: inherit;
  font-size: 1rem;
  text-decoration: none;
  transition: 0.3s all ease;
}
.btn-primary {
  color: #fff;
  background-color: var(--accent);
  border-color: var(--accent);
  padding: 1rem 1.5rem;
}
.btn-primary:hover { background-color: #c31a69; border-color: #c31a69; }
.btn-primary:disabled { opacity: 0.65; cursor: not-allowed; }

.form-control {
  height: 47px;
  width: 100%;
  padding: 0.375rem 0.75rem;
  font-family: inherit;
  font-size: 1rem;
  color: #495057;
  background-color: #fff;
  border: 1px solid #ced4da;
  border-radius: 0.25rem;
}
textarea.form-control { height: auto; }
.form-control:focus { outline: none; border-color: var(--accent); box-shadow: none; }

.form-group { margin-bottom: 1rem; }

.form-note { margin-top: 1rem; }
.form-note.success { color: #6fcf97; }
.form-note.error { color: var(--accent); }

/* --- galéria ------------------------------------------------------------ */


/* világítódoboz — a magnific-popup kiváltása */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.9);
  z-index: 4000;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lightbox img { max-width: 92vw; max-height: 88vh; object-fit: contain; }
.lightbox-btn {
  position: absolute;
  background: none;
  border: 0;
  color: #fff;
  font-size: 2.5rem;
  cursor: pointer;
  padding: 1rem;
  line-height: 1;
  opacity: 0.75;
}
.lightbox-btn:hover { opacity: 1; }
.lightbox-close { top: 0; right: 0; }
.lightbox-prev { left: 0; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 0; top: 50%; transform: translateY(-50%); }
.lightbox-counter {
  position: absolute;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.95rem;
}

/* --- videó blokk -------------------------------------------------------- */

.video-block {
  position: relative;
  background-size: cover;
  background-position: center;
  aspect-ratio: 16 / 9;
  max-width: 66.666%;
  margin: 0 auto 30px;
  width: 100%;
}
@media (max-width: 767.98px) { .video-block { max-width: 100%; } }
.play-button {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 20px;
  width: 70px;
  height: 70px;
  background: #fff;
  border: 0;
  border-radius: 50%;
  color: var(--accent);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.video-block iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* --- referencia-karusszel (Owl kiváltása) ------------------------------- */


/* --- szolgáltatók / csapat kártya --------------------------------------- */

.team-member { position: relative; width: 100%; overflow: hidden; }
.team-member img { transition: 0.3s all ease; transform: scale(1); display: block; width: 100%; }
.team-member::before {
  position: absolute;
  content: "";
  inset: 0;
  background: rgba(227, 32, 123, 0.8);
  z-index: 2;
  opacity: 0;
  visibility: hidden;
  transition: 0.3s all ease;
}
.team-member .text {
  top: 50%;
  left: 0;
  width: 100%;
  text-align: center;
  position: absolute;
  padding: 20px;
  transform: translateY(-30%);
  transition: 0.5s all ease;
  opacity: 0;
  visibility: hidden;
  color: #fff;
}
.team-member .text h2 { color: #fff; font-weight: 300; font-size: 1.5rem; margin-bottom: 0.5rem; }
.team-member .text a { color: #fff; text-decoration: none; }
/* A hover-viselkedés csak egeres eszközön: érintőn nincs "lebegés",
   ott a ragadós hover félrevezető lenne. */
@media (hover: hover) {
  .team-member:hover::before { opacity: 1; visibility: visible; }
  .team-member:hover img { transform: scale(1.1); }
}
.team-member:focus-within::before { opacity: 1; visibility: visible; }
.team-member:focus-within .text,
.team-member:hover .text {
  transform: translateY(-50%);
  transition-delay: 0.2s;
  opacity: 1;
  visibility: visible;
  z-index: 4;
}

/* érintős eszközök kezelése a lap alján, a (hover: none) blokkban */

/* --- lábléc ------------------------------------------------------------- */

.site-footer { padding: 3em 0; }
.site-footer p { color: var(--muted); }
.site-footer h2, .site-footer h3, .site-footer h4, .site-footer h5 { color: #fff; }
.site-footer a { color: var(--link-footer); text-decoration: none; }
.site-footer a:hover { color: #fff; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer ul li { margin-bottom: 10px; }
.footer-heading {
  font-size: 1.3rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #fff;
  position: relative;
  padding-bottom: 15px;
  margin-bottom: 1.5rem;
}
.footer-heading::before {
  content: "";
  background: var(--accent);
  width: 40px;
  height: 2px;
  position: absolute;
  bottom: 0;
  left: 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}
@media (max-width: 991.98px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-social { display: flex; gap: 1rem; font-size: 1.25rem; }
.footer-bottom { text-align: center; padding-top: 3rem; }

/* --- vissza a tetejére -------------------------------------------------- */

.back-to-top {
  position: fixed;
  z-index: 100;
  right: -41px;
  bottom: 50px;
  background-color: #585858;
  height: 40px;
  width: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border: 0;
  color: #fff;
  transition: all 0.4s ease-in-out 0s;
}
.back-to-top.show-top-button { right: 0; }

/* --- görgetősáv (az eredetiből) ----------------------------------------- */

::-webkit-scrollbar { height: 12px; width: 12px; background: rgb(130, 133, 123); }
::-webkit-scrollbar-thumb { background: var(--accent); }

/* --- általános segédosztályok ------------------------------------------- */

.text-center { text-align: center; }
.text-white { color: #fff; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem; }
@media (max-width: 767.98px) { .grid-2 { grid-template-columns: 1fr; } }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; }
@media (max-width: 991.98px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 575.98px) { .grid-4 { grid-template-columns: 1fr; } }
.lead { font-size: 1.25rem; font-weight: 300; }
.prose p { margin-bottom: 1rem; }
.prose h4 { margin-top: 2rem; margin-bottom: 0.75rem; }
.back-link { display: inline-flex; align-items: center; gap: 0.5rem; color: #fff; text-decoration: none; margin-bottom: 1.25rem; }
.back-link:hover { color: var(--accent); }

/* animált megjelenés — az AOS könyvtár kiváltása, CSS-ből */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* --- reszponzív tipográfia (az eredeti töréspontjai) -------------------- */

@media (min-width: 992px) and (max-width: 1199.98px) {
  .col-flag { width: 350px; }
  .personal-image h2 { margin-top: 100px; }
}
@media (max-width: 992px) {
  .col-flag { width: 300px; left: 5%; }
  .personal-image { max-width: 100%; }
}
@media (max-width: 768px) {
  .col-flag { width: 260px; }
  .your-wedding-text-h1 { margin-top: -15px; }
}
@media (max-width: 576px) {
  .banner-h1 h1 { font-size: 42px; }
  .site-blocks-cover h1 { font-size: 42px; }
  .personal-image h2 { font-size: 22px; margin-top: 50px; line-height: 1.5; margin-bottom: 10px; }
  .personal-image h4 { font-size: 20px; line-height: 1.5; margin-bottom: 10px; }
  .your-wedding-text-h1 { font-size: 24px; }
  .col-flag { width: 180px; height: 80%; left: 0; bottom: 0; }
  .col-flag-img { width: 60%; }
}

/* kapcsolat oldal rácsa */
@media (max-width: 991.98px) {
  .contact-grid { grid-template-columns: 1fr !important; }
}

/* ===========================================================
   MODERN RÉTEG — effektek, animációk
   Ugyanaz a paletta és tipográfia, csak mozgással és mélységgel.
   Minden animáció kikapcsol prefers-reduced-motion mellett.
   =========================================================== */

:root {
  --accent-2: #ff5fa2;                 /* világosabb testvér a színátmenetekhez */
  --accent-grad: linear-gradient(135deg, #e3207b 0%, #ff5fa2 100%);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --glass: rgba(19, 23, 29, 0.72);
}

/* --- olvasási haladásjelző a lap tetején ------------------------------- */

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 100%;
  transform-origin: 0 50%;
  background: var(--accent-grad);
  z-index: 200;
  will-change: transform;
}

/* --- fejléc: üveghatás görgetéskor ------------------------------------- */

.site-navigation-back {
  background-color: rgba(19, 23, 29, 0.72);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06);
}

/* aláhúzás, ami a hover irányából nő be */
.site-menu > li > a {
  position: relative;
}
.site-menu > li > a::after {
  content: '';
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 4px;
  height: 2px;
  background: var(--accent-grad);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.35s var(--ease-out);
}
.site-menu > li > a:hover::after,
.site-menu > li.active > a::after {
  transform: scaleX(1);
  transform-origin: left;
}

/* --- borító: lassú ráközelítés (Ken Burns) ----------------------------- */

@keyframes kenburns {
  from { transform: scale(1); }
  to   { transform: scale(1.08); }
}

.site-blocks-cover {
  overflow: hidden;
}
.cover-bg {
  position: absolute;
  inset: -2%;
  background-size: cover;
  background-position: left bottom;
  animation: kenburns 24s var(--ease-in-out) infinite alternate;
  will-change: transform;
}

/* a lefelé mutató nyíl finoman pulzál */
@keyframes nudge {
  0%, 100% { transform: translateY(0); opacity: 0.55; }
  50%      { transform: translateY(10px); opacity: 1; }
}
.scroll-down { animation: nudge 2.4s var(--ease-in-out) infinite; }

/* --- szekciócím: az aláhúzás berajzolódik ------------------------------ */

.site-section-heading h2::after {
  background: var(--accent-grad);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.7s var(--ease-out) 0.15s;
}
.site-section-heading.text-center h2::after { transform: translateX(-50%) scaleX(0); }
.reveal.is-visible .site-section-heading h2::after,
.site-section-heading.is-visible h2::after { transform: scaleX(1); }
.reveal.is-visible .site-section-heading.text-center h2::after,
.site-section-heading.text-center.is-visible h2::after { transform: translateX(-50%) scaleX(1); }

/* --- gomb: fénycsík fut át rajta --------------------------------------- */

.btn-primary {
  background: var(--accent-grad);
  border: 0;
  overflow: hidden;
  isolation: isolate;
  box-shadow: 0 6px 20px -8px rgba(227, 32, 123, 0.9);
}
.btn-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 30%, rgba(255, 255, 255, 0.35) 50%, transparent 70%);
  transform: translateX(-120%);
  transition: transform 0.7s var(--ease-out);
  z-index: -1;
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px -10px rgba(227, 32, 123, 1);
}
.btn-primary:hover::before { transform: translateX(120%); }
.btn-primary:active { transform: translateY(0); }

/* --- űrlapmezők: lágy fókusz ------------------------------------------- */

.form-control {
  transition: box-shadow 0.25s var(--ease-out), border-color 0.25s var(--ease-out);
}
.form-control:focus {
  box-shadow: 0 0 0 3px rgba(227, 32, 123, 0.22) !important;
}

/* --- galéria rács ------------------------------------------------------ */

/* ritmus: minden 5. és 8. elem magasabb — mozaikos hatás */
/* --- világítódoboz ----------------------------------------------------- */

@keyframes lb-in    { from { opacity: 0; } to { opacity: 1; } }
@keyframes lb-pop   { from { opacity: 0; transform: scale(0.94); } to { opacity: 1; transform: scale(1); } }
@keyframes lb-left  { from { opacity: 0; transform: translateX(-40px) scale(0.97); } to { opacity: 1; transform: none; } }
@keyframes lb-right { from { opacity: 0; transform: translateX(40px) scale(0.97); } to { opacity: 1; transform: none; } }

.lightbox {
  background: rgba(8, 10, 13, 0.95);
  backdrop-filter: blur(26px) saturate(120%);
  -webkit-backdrop-filter: blur(26px) saturate(120%);
  animation: lb-in 0.32s var(--ease-out);
  flex-direction: column;
  padding: 72px 16px 116px;
}
/* elmosott háttér magából a képből — mélységet ad */
.lightbox-ambient {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: blur(80px) saturate(170%);
  opacity: 0.16;
  transform: scale(1.2);
  transition: background-image 0.4s linear;
  pointer-events: none;
}

.lightbox-stage {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  flex: 1 1 auto;
  min-height: 0;          /* enélkül a flex elem nem zsugorodik a kép alá */
  z-index: 1;
}
.lightbox img {
  width: auto;
  height: auto;
  max-width: min(94vw, 1500px);
  /* a .lightbox függőleges paddingja 72px + 116px — ezt vonjuk le,
     a százalékos max-height flex/grid alatt nem old fel megbízhatóan */
  max-height: calc(100vh - 188px);
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.9);
  cursor: zoom-in;
  transition: transform 0.35s var(--ease-out);
}
.lightbox img.is-zoomed { cursor: zoom-out; transform: scale(1.9); }
.lightbox-stage.dir-next img { animation: lb-right 0.42s var(--ease-out); }
.lightbox-stage.dir-prev img { animation: lb-left 0.42s var(--ease-out); }
.lightbox-stage.dir-none img { animation: lb-pop 0.42s var(--ease-out); }

/* kerek üveggombok */
.lightbox-btn {
  width: 52px;
  height: 52px;
  padding: 0;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-size: 1.5rem;
  color: #fff;
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  opacity: 1;
  transition: background 0.25s var(--ease-out), transform 0.25s var(--ease-out), border-color 0.25s var(--ease-out);
  z-index: 3;
}
.lightbox-btn:hover {
  background: var(--accent-grad);
  border-color: transparent;
  transform: scale(1.1);
}
.lightbox-close { top: 16px; right: 16px; }
.lightbox-prev  { left: 20px; }
.lightbox-next  { right: 20px; }

.lightbox-counter {
  bottom: auto;
  top: 26px;
  left: 24px;
  transform: none;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.9rem;
  z-index: 3;
}
.lightbox-counter b { color: #fff; font-weight: 700; }

/* alsó bélyegképsáv */
.lightbox-strip {
  position: absolute;
  bottom: 18px;
  left: 0;
  right: 0;
  display: flex;
  gap: 8px;
  padding: 0 20px;
  overflow-x: auto;
  scrollbar-width: none;
  justify-content: flex-start;
  z-index: 3;
  scroll-padding: 20px;
}
.lightbox-strip::-webkit-scrollbar { display: none; }
.lightbox-thumb {
  flex: 0 0 auto;
  width: 74px;
  height: 52px;
  border-radius: 6px;
  overflow: hidden;
  border: 2px solid transparent;
  opacity: 0.45;
  cursor: pointer;
  padding: 0;
  background: none;
  transition: opacity 0.25s var(--ease-out), border-color 0.25s var(--ease-out), transform 0.25s var(--ease-out);
}
.lightbox-thumb img { width: 100%; height: 100%; object-fit: cover; border-radius: 0; box-shadow: none; }
.lightbox-thumb:hover { opacity: 0.85; transform: translateY(-3px); }
.lightbox-thumb.is-active { opacity: 1; border-color: var(--accent); transform: translateY(-3px); }

@media (max-width: 767.98px) {
  .lightbox { padding: 64px 8px 96px; }
  .lightbox img { max-height: calc(100vh - 160px); }
  .lightbox-prev, .lightbox-next { display: none; }  /* mobilon húzással lapozunk */
  .lightbox-thumb { width: 58px; height: 42px; }
}

/* --- referencia-kártyák ------------------------------------------------ */

/* felső akcentcsík */
/* halvány idézőjel a háttérben */
/* körkép akcentgyűrűvel */
/* nyilak + pontok */
/* --- szolgáltatói kártyák: lágyabb átúszás ----------------------------- */

.team-member { border-radius: 12px; }
.team-member::before { background: linear-gradient(to top, rgba(227, 32, 123, 0.88), rgba(19, 23, 29, 0.55)); }

/* --- lépcsőzetes megjelenés -------------------------------------------- */

.reveal { transition-duration: 0.75s; transition-timing-function: var(--ease-out); }
.reveal-up    { transform: translateY(34px); }
.reveal-scale { transform: scale(0.96); }
.reveal-left  { transform: translateX(-34px); }
.reveal-right { transform: translateX(34px); }
.reveal.is-visible { transform: none; }

/* --- vissza a tetejére: kerek, akcentes --------------------------------- */

.back-to-top {
  right: -60px;
  bottom: 32px;
  height: 46px;
  width: 46px;
  border-radius: 50%;
  background: var(--accent-grad);
  box-shadow: 0 10px 26px -10px rgba(227, 32, 123, 0.95);
  transition: right 0.45s var(--ease-out), transform 0.25s var(--ease-out);
}
.back-to-top.show-top-button { right: 24px; }
.back-to-top:hover { transform: translateY(-3px) scale(1.06); }

/* --- mozgáscsökkentés --------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  .cover-bg,
  .scroll-down { animation: none; }
  .lightbox,
  .lightbox-stage img { animation: none !important; }
  .gallery-item img,
  .reference-card,
  .reference-img,
  .btn-primary,
  .back-to-top { transition: none; }
  .site-section-heading h2::after { transition: none; transform: scaleX(1); }
  .site-section-heading.text-center h2::after { transform: translateX(-50%) scaleX(1); }
}

/* ===========================================================
   GALÉRIA — valódi masonry
   Minden kép a saját méretarányában jelenik meg, semmi nincs
   levágva. A hover a teljes csempét emeli, nem a képet nagyítja
   egy fix keretben — így fej sem eshet ki a kivágásból.
   =========================================================== */

.gallery-masonry {
  columns: 3;
  column-gap: 18px;
}
@media (max-width: 991.98px) { .gallery-masonry { columns: 2; column-gap: 14px; } }
@media (max-width: 575.98px) { .gallery-masonry { columns: 1; } }

.gallery-item {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  break-inside: avoid;
  margin: 0 0 18px;
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  cursor: zoom-in;
  transform: translateZ(0);
  transition: transform 0.5s var(--ease-out), box-shadow 0.5s var(--ease-out);
}
@media (max-width: 991.98px) { .gallery-item { margin-bottom: 14px; } }

.gallery-item img {
  display: block;
  width: 100%;
  height: auto;              /* nincs vágás — a kép a saját arányában */
  transition: filter 0.5s var(--ease-out);
  filter: saturate(0.9);
}

/* halvány keret, hogy a világos képek is elváljanak a háttértől */
.gallery-item::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 14px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1);
  z-index: 2;
  pointer-events: none;
  transition: box-shadow 0.4s var(--ease-out);
}

/* alsó sötétedés a nagyító ikon mögé */
.gallery-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(19, 23, 29, 0.75), transparent 45%);
  opacity: 0;
  transition: opacity 0.4s var(--ease-out);
  z-index: 1;
}

.gallery-item:hover,
.gallery-item:focus-visible {
  transform: translateY(-6px) scale(1.015);
  box-shadow: 0 26px 50px -22px rgba(0, 0, 0, 0.85);
  z-index: 3;
}
.gallery-item:hover img,
.gallery-item:focus-visible img { filter: saturate(1.12); }
.gallery-item:hover::after,
.gallery-item:focus-visible::after { opacity: 1; }
.gallery-item:hover::before,
.gallery-item:focus-visible::before { box-shadow: inset 0 0 0 2px rgba(227, 32, 123, 0.85); }
.gallery-item:focus-visible { outline: none; }

.zoom-badge {
  position: absolute;
  left: 16px;
  bottom: 16px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--accent-grad);
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.35s var(--ease-out), transform 0.35s var(--ease-out);
  z-index: 3;
  box-shadow: 0 8px 20px -8px rgba(227, 32, 123, 0.9);
}
.gallery-item:hover .zoom-badge,
.gallery-item:focus-visible .zoom-badge { opacity: 1; transform: none; }

/* ===========================================================
   REFERENCIÁK — kiemelt vélemény
   Egyszerre egy, nagyban. Mobilon egymás alá rendeződik,
   nincs vízszintes görgetés és nincs kilógó kártya.
   =========================================================== */

.testimonial {
  position: relative;
  max-width: 1000px;
  margin: 0 auto;
}

.testimonial-card {
  display: grid;
  grid-template-columns: minmax(0, 380px) minmax(0, 1fr);
  gap: 2.5rem;
  align-items: center;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 22px;
  padding: 2.5rem;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 40px 80px -50px rgba(0, 0, 0, 0.95);
}
@media (max-width: 860px) {
  .testimonial-card {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding: 1.5rem;
    text-align: center;
  }
}

/* a fotó a saját arányában, akcentkerettel */
.testimonial-photo {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  line-height: 0;
  /* nem nyújtjuk a rács teljes magasságára — különben az álló képek
     aránytalanul magasra húznák a kártyát */
  align-self: center;
  justify-self: center;
}
.testimonial-photo img {
  /* magasságkorlát vágás helyett: az álló kép arányosan keskenyebb lesz,
     a fekvő marad széles — így semmi nem esik ki a képből */
  max-height: 430px;
  max-width: 100%;
  width: auto;
  height: auto;
  display: block;
}
.testimonial-photo::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 16px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.16);
}
@media (max-width: 860px) {
  .testimonial-photo img { max-height: 300px; }
}

.testimonial-body { min-width: 0; }

.testimonial-quote {
  font-family: var(--font-head);
  font-size: 4.5rem;
  line-height: 0.7;
  color: var(--accent);
  display: block;
  margin-bottom: 0.5rem;
}

.testimonial-text {
  font-size: 1.08rem;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.86);
  font-style: italic;
  margin: 0 0 1.5rem;
  /* A vélemények hossza 240 és 806 karakter között szór. Korlátozás nélkül
     a leghosszabb kétszeresére nyújtaná a kártyát; a teljes szöveg
     egy kattintásra elérhető a "Teljes vélemény" linken. */
  display: -webkit-box;
  -webkit-line-clamp: 11;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
@media (max-width: 860px) {
  /* hosszú bekezdést középre zárva rossz olvasni */
  .testimonial-text {
    font-size: 1rem;
    text-align: left;
    -webkit-line-clamp: 8;
  }
}

.testimonial-name {
  font-family: var(--font-head);
  font-size: 1.35rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #fff;
  margin: 0 0 0.35rem;
}
.testimonial-name::before {
  content: '';
  display: inline-block;
  width: 26px;
  height: 2px;
  background: var(--accent-grad);
  vertical-align: middle;
  margin-right: 12px;
}
@media (max-width: 860px) { .testimonial-name::before { display: none; } }

.testimonial-link {
  display: inline-block;
  font-size: 0.82rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--accent-2);
  text-decoration: none;
  transition: letter-spacing 0.35s var(--ease-out), color 0.35s var(--ease-out);
}
.testimonial-link:hover { letter-spacing: 0.24em; color: #fff; }

/* váltás animációja */
@keyframes t-in-next { from { opacity: 0; transform: translateX(28px); } to { opacity: 1; transform: none; } }
@keyframes t-in-prev { from { opacity: 0; transform: translateX(-28px); } to { opacity: 1; transform: none; } }
.testimonial-card.dir-next { animation: t-in-next 0.5s var(--ease-out); }
.testimonial-card.dir-prev { animation: t-in-prev 0.5s var(--ease-out); }

/* arcképsáv a párokkal */
.testimonial-rail {
  display: flex;
  gap: 10px;
  justify-content: center;
  align-items: center;
  margin-top: 2rem;
  overflow-x: auto;
  scrollbar-width: none;
  padding: 6px 4px;
  scroll-padding: 12px;
}
.testimonial-rail::-webkit-scrollbar { display: none; }
@media (max-width: 860px) { .testimonial-rail { justify-content: flex-start; } }

.testimonial-avatar {
  flex: 0 0 auto;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid transparent;
  padding: 0;
  background: none;
  cursor: pointer;
  opacity: 0.42;
  filter: grayscale(1);
  transition: opacity 0.3s var(--ease-out), filter 0.3s var(--ease-out),
              border-color 0.3s var(--ease-out), transform 0.3s var(--ease-out);
}
.testimonial-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.testimonial-avatar:hover { opacity: 0.85; filter: none; }
.testimonial-avatar.is-active {
  opacity: 1;
  filter: none;
  border-color: var(--accent);
  transform: scale(1.14);
}

/* nyilak */
.testimonial-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  margin-top: 1.5rem;
}
.testimonial-nav button {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-size: 1.35rem;
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  cursor: pointer;
  transition: background 0.25s var(--ease-out), transform 0.25s var(--ease-out), border-color 0.25s var(--ease-out);
}
.testimonial-nav button:hover {
  background: var(--accent-grad);
  border-color: transparent;
  transform: scale(1.1);
}
.testimonial-count {
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9rem;
  min-width: 72px;
  text-align: center;
}
.testimonial-count b { color: #fff; }

@media (prefers-reduced-motion: reduce) {
  .gallery-item,
  .testimonial-card,
  .testimonial-avatar { transition: none; animation: none; }
}

/* --- lábléc Facebook-doboz ----------------------------------------------
   A valódi Facebook widget lustán tölt be. Amíg nem érkezik meg — vagy ha
   reklámszűrő tiltja —, a tartalék link látszik, a lenti .fb-card stílussal. */

.fb-wrap { min-height: 120px; }

/* a Facebook saját tartaléka: egy blockquote a linkkel */
.fb-page > blockquote {
  margin: 0;
  padding: 1.15rem 1.25rem;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.fb-page > blockquote a {
  color: var(--accent-2);
  text-decoration: none;
  font-size: 0.95rem;
  line-height: 1.5;
}
.fb-page > blockquote a:hover { color: #fff; }

/* a beágyazott widget ne lógjon ki a hasábból */
.fb-page,
.fb-page iframe,
.fb-page span { max-width: 100% !important; }

.fb-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  grid-template-areas: 'icon text' 'cta cta';
  gap: 0.9rem;
  align-items: center;
  padding: 1.15rem 1.25rem;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.1);
  text-decoration: none;
  transition: background 0.35s var(--ease-out), border-color 0.35s var(--ease-out),
              transform 0.35s var(--ease-out);
}
.fb-card:hover {
  background: rgba(255, 255, 255, 0.075);
  border-color: rgba(227, 32, 123, 0.55);
  transform: translateY(-3px);
}

.fb-card-icon {
  grid-area: icon;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--accent-grad);
  box-shadow: 0 8px 20px -8px rgba(227, 32, 123, 0.9);
}

.fb-card-text { grid-area: text; min-width: 0; display: block; }
.fb-card-text strong {
  display: block;
  font-family: var(--font-head);
  font-size: 1.02rem;
  letter-spacing: 0.03em;
  color: #fff;
  line-height: 1.3;
}
.fb-card-text em {
  display: block;
  font-style: normal;
  font-size: 0.86rem;
  color: var(--muted);
  line-height: 1.4;
  margin-top: 2px;
}

.fb-card-cta {
  grid-area: cta;
  margin-top: 0.35rem;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--accent-2);
  transition: letter-spacing 0.35s var(--ease-out);
}
.fb-card:hover .fb-card-cta { letter-spacing: 0.22em; }

@media (prefers-reduced-motion: reduce) {
  .fb-card, .fb-card-cta { transition: none; }
}


/* ===========================================================
   SZOLGÁLTATÓI KÁRTYÁK ÉRINTŐS ESZKÖZÖN
   Telefonon és tableten nincs hover, ezért az adat mindig
   olvasható — de csak semleges sötétítés mögött. A márka
   színátmenete koppintásra villan fel (rövid vagy hosszú
   nyomás, mindegy), a .is-tapped osztállyal.
   =========================================================== */

@media (hover: none) {
  /* a szöveg alapból látszik, nem kell hozzá interakció */
  .team-member .text {
    opacity: 1;
    visibility: visible;
    transform: translateY(-50%);
    z-index: 4;
  }
  .team-member h2,
  .team-member p { color: #fff; }

  /* semleges sötétítés az olvashatóságért — még nem a márkaszín */
  .team-member::before {
    background: linear-gradient(to top, rgba(19, 23, 29, 0.86), rgba(19, 23, 29, 0.42));
    opacity: 1;
    visibility: visible;
  }

  /* koppintásra jön a színátmenet és a ráközelítés */
  .team-member.is-tapped::before {
    background: linear-gradient(to top, rgba(227, 32, 123, 0.9), rgba(19, 23, 29, 0.5));
  }
  .team-member.is-tapped img { transform: scale(1.07); }

  /* nyomva tartás alatt is látszódjon, JS nélkül is */
  .team-member:active::before {
    background: linear-gradient(to top, rgba(227, 32, 123, 0.9), rgba(19, 23, 29, 0.5));
  }
}

@media (hover: none) and (prefers-reduced-motion: reduce) {
  .team-member.is-tapped img { transform: none; }
}
