/* ==========================================================================
   Leitmann Zsolt | Fotográfia
   Design system — minimál, kártyás elrendezés, lekerekített sarkok.
   ========================================================================== */

@import url("https://fonts.googleapis.com/css2?family=Geist:wght@300;400;500&display=swap");

/* --------------------------------------------------------------- tokens -- */
:root {
  --radius: 0.625rem;
  --r-lg: 10px;
  --r-xl: 14px;
  --notch: 18px;
  --gap: 12px;

  --bg: #ffffff;
  --fg: #0a0a0a;
  --muted: #f5f5f5;
  --muted-hover: #ececec;
  --muted-fg: #737373;
  --border: #e5e5e5;
  --primary: #0a0a0a;
  --primary-fg: #ffffff;
  --overlay: rgba(10, 10, 10, 0.82);

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

:root[data-theme="dark"] {
  --bg: #0a0a0a;
  --fg: #fafafa;
  --muted: #171717;
  --muted-hover: #222222;
  --muted-fg: #a1a1a1;
  --border: #262626;
  --primary: #fafafa;
  --primary-fg: #0a0a0a;
  --overlay: rgba(0, 0, 0, 0.88);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0a0a0a;
    --fg: #fafafa;
    --muted: #171717;
    --muted-hover: #222222;
    --muted-fg: #a1a1a1;
    --border: #262626;
    --primary: #fafafa;
    --primary-fg: #0a0a0a;
    --overlay: rgba(0, 0, 0, 0.88);
  }
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI",
    Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 15px;
  font-weight: 300;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

h1,
h2,
h3,
h4 {
  font-weight: 400;
  line-height: 1.2;
  margin: 0;
}

::selection {
  background: var(--fg);
  color: var(--bg);
}

/* -------------------------------------------------------- notch (vágás) -- */
/* A világos blokk sarkából „kiharapott" ív — a design aláírás-eleme. */
.notch {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 5;
  background: var(--bg);
  border-bottom-right-radius: var(--notch);
  padding: 7px 15px 11px;
  color: var(--fg);
}

.notch::before,
.notch::after {
  content: "";
  position: absolute;
  width: var(--notch);
  height: var(--notch);
  background: var(--bg);
  -webkit-mask: radial-gradient(
    circle var(--notch) at 100% 100%,
    transparent 0 99%,
    #000 100%
  );
  mask: radial-gradient(
    circle var(--notch) at 100% 100%,
    transparent 0 99%,
    #000 100%
  );
}

.notch::before {
  left: 0;
  bottom: calc(var(--notch) * -1);
}

.notch::after {
  top: 0;
  right: calc(var(--notch) * -1);
}

.notch__label {
  display: flex;
  align-items: center;
  font-size: 14px;
  font-weight: 300;
  white-space: nowrap;
}

.notch__arrow {
  width: 0;
  overflow: hidden;
  transition: width 0.3s ease-out;
  display: flex;
}

.notch__arrow svg {
  margin-left: 8px;
  flex: none;
}

/* --------------------------------------------------------------- header -- */
.header {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 96;
  background: var(--bg);
  border-bottom-right-radius: var(--notch);
}

.header::before,
.header::after {
  content: "";
  position: absolute;
  width: var(--notch);
  height: var(--notch);
  background: var(--bg);
  -webkit-mask: radial-gradient(
    circle var(--notch) at 100% 100%,
    transparent 0 99%,
    #000 100%
  );
  mask: radial-gradient(
    circle var(--notch) at 100% 100%,
    transparent 0 99%,
    #000 100%
  );
}

.header::before {
  left: 0;
  bottom: calc(var(--notch) * -1);
}

.header::after {
  top: 0;
  right: calc(var(--notch) * -1);
}

.nav {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 0 16px 12px 4px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
}

.logo svg {
  flex: none;
}

.wordrotate {
  position: relative;
  display: block;
  overflow: hidden;
  height: 1.2em;
  font-size: 14px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.wordrotate span {
  display: block;
  transition: transform 0.3s var(--ease);
}

.logo:hover .wordrotate span {
  transform: translateY(-100%);
}

.nav__links {
  display: flex;
  gap: 16px;
}

/* betű-felpörgető hover, mint a referenciában */
.flip {
  position: relative;
  display: block;
  overflow: hidden;
  white-space: nowrap;
  font-size: 14px;
  font-weight: 300;
  line-height: 1.4;
}

.flip span {
  display: inline-block;
  transition: transform 0.25s ease-in-out;
}

.flip__b {
  position: absolute;
  inset: 0;
}

.flip__b span {
  transform: translateY(100%);
}

.flip:hover .flip__a span {
  transform: translateY(-100%);
}

.flip:hover .flip__b span {
  transform: translateY(0);
}

.flip[aria-current="page"] {
  font-weight: 500;
}

.theme-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--fg);
  transition: transform 0.2s var(--ease), opacity 0.2s;
  flex: none;
}

.theme-dot:hover {
  transform: scale(1.35);
}

.menu-btn {
  display: none;
  position: fixed;
  top: 12px;
  right: 12px;
  z-index: 97;
  padding: 10px 14px;
  background: var(--muted);
  border-radius: var(--r-xl);
  font-size: 14px;
}

/* mobil menü */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 94;
  background: var(--bg);
  padding: 72px 20px 20px;
  display: none;
  flex-direction: column;
  gap: 8px;
  overflow-y: auto;
}

.mobile-menu.is-open {
  display: flex;
}

.mobile-menu a {
  padding: 16px 18px;
  background: var(--muted);
  border-radius: var(--r-xl);
  font-size: 17px;
}

/* ---------------------------------------------------------------- layout -- */
.main {
  padding: var(--gap);
}

.main--inner {
  padding-top: 64px;
  max-width: 1680px;
  margin: 0 auto;
}

.stack {
  display: flex;
  flex-direction: column;
  gap: var(--gap);
}

.split {
  display: flex;
  align-items: flex-start;
  gap: var(--gap);
}

.split__media {
  position: sticky;
  top: var(--gap);
  flex: 0 0 calc(50% - var(--gap) / 2);
  height: calc(100vh - var(--gap) * 2);
}

.split__content {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: var(--gap);
}

/* ----------------------------------------------------------------- cards -- */
.card {
  background: var(--muted);
  border-radius: var(--r-xl);
}

.card--pad {
  padding: 28px;
}

.card--link {
  transition: background 0.15s var(--ease);
}

.card--link:hover {
  background: var(--muted-hover);
}

.card--dark {
  background: var(--primary);
  color: var(--primary-fg);
}

/* profil blokk */
.profile {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: var(--gap);
  align-items: stretch;
}

.profile__card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 28px;
  padding: 34px;
  position: relative;
  height: 100%;
}

.profile__head {
  display: flex;
  gap: 16px;
  align-items: center;
}

.avatar {
  width: 60px;
  height: 60px;
  border-radius: 999px;
  object-fit: cover;
  flex: none;
  background: var(--muted-hover);
}

.profile__name {
  font-size: 18px;
}

.profile__role,
.muted {
  color: var(--muted-fg);
}

.profile__bio {
  font-size: 15px;
  color: var(--muted-fg);
  margin: 0;
}

.profile__arrow {
  position: absolute;
  top: 30px;
  right: 30px;
  opacity: 0;
  transition: all 0.3s ease-in-out;
}

.profile__card:hover .profile__arrow {
  opacity: 1;
  top: 24px;
  right: 24px;
}

.links {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: var(--gap);
}

/* kapcsolat-sor */
.link-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  background: var(--muted);
  border-radius: var(--r-xl);
  font-size: 14px;
  transition: background 0.15s var(--ease);
}

.link-row:hover {
  background: var(--muted-hover);
}

.link-row--primary {
  background: var(--primary);
  color: var(--primary-fg);
}

.link-row--primary:hover {
  background: var(--primary);
  opacity: 0.88;
}

.link-row__value {
  color: var(--muted-fg);
  font-size: 13px;
}

.link-row--primary .link-row__value {
  color: var(--primary-fg);
  opacity: 0.65;
}

.icon-flip {
  position: relative;
  display: block;
  overflow: hidden;
  width: 18px;
  height: 18px;
  flex: none;
}

.icon-flip span {
  display: block;
  transition: transform 0.2s ease-in-out;
}

.icon-flip span:last-child {
  position: absolute;
  inset: 0;
  transform: translateY(100%);
}

.link-row:hover .icon-flip span:first-child {
  transform: translateY(-100%);
}

.link-row:hover .icon-flip span:last-child {
  transform: translateY(0);
}

/* szekció-sáv */
.bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  background: var(--muted);
  border-radius: var(--r-xl);
}

.bar__title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 300;
}

.bar__link {
  position: relative;
  font-size: 14px;
}

.bar__link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 1px;
  background: currentColor;
  transition: width 0.3s var(--ease);
}

.bar__link:hover::after {
  width: 33%;
}

/* ----------------------------------------------------------------- tiles -- */
.tiles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--gap);
}

.tiles--two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.tile {
  position: relative;
  display: block;
}

.tile__frame {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: var(--r-lg);
  background: var(--muted);
}

.tile__frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: filter 0.35s ease-out, transform 0.6s var(--ease);
}

.tile:hover .tile__frame img {
  filter: blur(2px);
  transform: scale(1.02);
}

.tile:hover .notch__arrow {
  width: 24px;
}

.tile__count {
  color: var(--muted-fg);
  margin-left: 10px;
  font-size: 12px;
}

/* --------------------------------------------------------------- carousel -- */
.carousel {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: var(--r-xl);
  background: var(--muted);
}

.carousel__track {
  display: flex;
  height: 100%;
  transition: transform 0.75s var(--ease);
}

.carousel__slide {
  flex: 0 0 100%;
  height: 100%;
}

.carousel__slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.carousel__btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #fff;
  background: rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(6px);
  opacity: 0;
  transition: opacity 0.25s var(--ease), background 0.25s;
}

.carousel:hover .carousel__btn {
  opacity: 1;
}

.carousel__btn:hover {
  background: rgba(0, 0, 0, 0.42);
}

.carousel__btn--prev {
  left: 14px;
}

.carousel__btn--next {
  right: 14px;
}

.carousel__dots {
  position: absolute;
  left: 50%;
  bottom: 16px;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  z-index: 4;
}

.carousel__dot {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.5);
  transition: width 0.3s var(--ease), background 0.3s;
}

.carousel__dot.is-active {
  width: 18px;
  background: #fff;
}

/* --------------------------------------------------------------- masonry -- */
.masonry {
  column-count: 4;
  column-gap: var(--gap);
}

.masonry figure {
  break-inside: avoid;
  margin: 0 0 var(--gap);
  cursor: zoom-in;
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--muted);
}

.masonry img {
  width: 100%;
  height: auto;
  transition: transform 0.6s var(--ease), opacity 0.4s;
}

.masonry figure:hover img {
  transform: scale(1.02);
}

/* ------------------------------------------------------------- képsáv -- */
/* Egységes képarányú rács — a galériák hangulatképeihez. */
.strip {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: var(--gap);
}

.strip figure {
  margin: 0;
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: var(--r-lg);
  background: var(--muted);
  cursor: zoom-in;
}

.strip img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease), filter 0.35s ease-out;
}

.strip figure:hover img {
  transform: scale(1.04);
}

/* -------------------------------------------------------------- lightbox -- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: var(--overlay);
  backdrop-filter: blur(12px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 56px 20px;
}

.lightbox.is-open {
  display: flex;
}

.lightbox img {
  max-width: min(96vw, 1500px);
  max-height: 86vh;
  width: auto;
  height: auto;
  border-radius: var(--r-lg);
  object-fit: contain;
}

.lightbox__btn {
  position: absolute;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
  transition: background 0.2s;
}

.lightbox__btn:hover {
  background: rgba(255, 255, 255, 0.24);
}

.lightbox__close {
  top: 16px;
  right: 16px;
}

.lightbox__prev {
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
}

.lightbox__next {
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
}

.lightbox__count {
  position: absolute;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.7);
  font-size: 13px;
  letter-spacing: 0.04em;
}

/* ----------------------------------------------------------------- prose -- */
.page-title {
  font-size: clamp(30px, 4.4vw, 52px);
  font-weight: 300;
  letter-spacing: -0.02em;
}

.eyebrow {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--muted-fg);
  margin-bottom: 14px;
}

.prose {
  max-width: 68ch;
  color: var(--muted-fg);
}

.prose p {
  margin: 0 0 16px;
}

.prose strong {
  color: var(--fg);
  font-weight: 400;
}

.prose a {
  color: var(--fg);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.cols {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--gap);
  align-items: start;
}

/* rács-elemek zsugorodhassanak a tartalmuk min-content szélessége alá is,
   különben egy térkép-iframe vagy hosszú szó kitolja az oldalt telefonon */
.cols > * {
  min-width: 0;
}

.cols--3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.cols--4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.cols--stretch {
  align-items: stretch;
}

.h-sec {
  font-size: 22px;
  font-weight: 400;
  margin-bottom: 18px;
}

.list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.list li {
  padding: 11px 0;
  border-bottom: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 2px 20px;
  font-size: 14px;
}

.list li:last-child {
  border-bottom: 0;
}

.list li span:only-child {
  color: var(--muted-fg);
}

/* Az érték sosem zsugorodik: ha nem fér el a címke mellett, új sorba kerül,
   így hosszú cím sem tolja szét vízszintesen az oldalt telefonon. */
.list li span + span {
  color: var(--muted-fg);
  flex: 0 0 auto;
  max-width: 100%;
  margin-left: auto;
  text-align: right;
}

.price {
  border-collapse: collapse;
  width: 100%;
  font-size: 14px;
}

.price th,
.price td {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}

.price th {
  font-weight: 400;
  color: var(--muted-fg);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.price td:not(:first-child) {
  text-align: right;
}

.table-scroll {
  overflow-x: auto;
}

.pkg {
  padding: 26px;
  background: var(--bg);
  border-radius: var(--r-lg);
  height: 100%;
}

.pkg__name {
  font-size: 15px;
  margin-bottom: 4px;
}

.pkg__price {
  font-size: 26px;
  font-weight: 300;
  margin-bottom: 16px;
  letter-spacing: -0.01em;
}

.pkg ul {
  list-style: none;
  margin: 0;
  padding: 0;
  color: var(--muted-fg);
  font-size: 14px;
}

.pkg li {
  padding-left: 16px;
  position: relative;
  margin-bottom: 6px;
}

.pkg li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 5px;
  height: 5px;
  border-radius: 999px;
  background: var(--muted-fg);
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip {
  padding: 7px 13px;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 13px;
  color: var(--muted-fg);
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  border-radius: var(--r-xl);
  background: var(--primary);
  color: var(--primary-fg);
  font-size: 14px;
  transition: opacity 0.2s;
}

.btn:hover {
  opacity: 0.85;
}

.btn--ghost {
  background: var(--bg);
  color: var(--fg);
}

.field {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-bottom: 14px;
}

.field label {
  font-size: 13px;
  color: var(--muted-fg);
}

.field input,
.field textarea,
.field select {
  font: inherit;
  padding: 13px 15px;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  background: var(--bg);
  color: var(--fg);
}

.field input:focus,
.field textarea:focus,
.field select:focus {
  outline: 1px solid var(--fg);
  outline-offset: -1px;
}

.map {
  width: 100%;
  height: 100%;
  min-height: 340px;
  border: 0;
  border-radius: var(--r-xl);
  display: block;
  filter: grayscale(1) contrast(1.05);
}

:root[data-theme="dark"] .map {
  filter: grayscale(1) invert(0.92) hue-rotate(180deg);
}

/* ---------------------------------------------------------------- footer -- */
.site-footer {
  display: flex;
  flex-direction: column;
  gap: 56px;
  padding: 62px 62px 46px;
  border-radius: var(--r-xl);
  background: var(--primary);
  color: var(--primary-fg);
}

.site-footer__head {
  display: flex;
  gap: 16px;
  align-items: center;
}

.site-footer__name {
  font-size: 24px;
  font-weight: 300;
}

.site-footer__role {
  font-size: 14px;
  opacity: 0.6;
}

.foot-nav {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 48px;
}

.foot-nav h4 {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  opacity: 0.5;
  font-weight: 400;
  margin-bottom: 14px;
}

.foot-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.foot-nav a {
  font-size: 14px;
  opacity: 0.85;
  transition: opacity 0.2s;
}

.foot-nav a:hover {
  opacity: 1;
}

.site-footer__legal {
  font-size: 12px;
  opacity: 0.55;
}

.site-footer__legal a {
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ------------------------------------------------------------ responsive -- */
@media (max-width: 1280px) {
  .masonry {
    column-count: 3;
  }
  .strip {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .cols--4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .site-footer {
    padding: 46px 40px 38px;
    gap: 40px;
  }
}

@media (max-width: 1024px) {
  .nav__links {
    display: none;
  }
  .menu-btn {
    display: block;
  }
  .split {
    flex-direction: column;
  }
  .split__media {
    position: static;
    flex: none;
    width: 100%;
    height: 72vh;
  }
  .profile {
    grid-template-columns: 1fr;
  }
  .tiles,
  .tiles--two {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .cols,
  .cols--3 {
    grid-template-columns: 1fr;
  }
  .cols--4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .main--inner {
    padding-top: 68px;
  }
  .strip {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  body {
    font-size: 15px;
  }
  .masonry {
    column-count: 2;
  }
  .strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  /* mobilon rövidebb sáv — 6 kép elég */
  .strip figure:nth-child(n + 7) {
    display: none;
  }
  .tiles,
  .tiles--two {
    grid-template-columns: 1fr;
  }
  .cols--4 {
    grid-template-columns: 1fr;
  }
  /* telefonon a tördelt érték a címke alá, balra igazítva kerül */
  .list li span + span {
    margin-left: 0;
    text-align: left;
  }
  .card--pad {
    padding: 22px;
  }
  .profile__card {
    padding: 26px;
  }
  .split__media {
    height: 60vh;
  }
  .site-footer {
    padding: 38px 26px 30px;
    gap: 34px;
    align-items: flex-start;
  }
  .foot-nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 26px;
  }
  .lightbox {
    padding: 64px 8px;
  }
  .lightbox__prev {
    left: 8px;
  }
  .lightbox__next {
    right: 8px;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
